/* VSGV public shell: calm, readable, community-first overrides on top of Crafto SEO Agency assets */
:root {
    --base-color: #2f5d50;
    --dark-gray: #1f2a24;
    --medium-gray: #5f675f;
    --vsgv-border: rgba(31, 42, 36, 0.12);
    --vsgv-surface: #ffffff;
    --vsgv-surface-muted: #f4f7f5;
    --vsgv-surface-soft: #f7faf8;
    --vsgv-hero: linear-gradient(180deg, #f8fbf8 0%, #eef4f1 100%);
}

body.vsgv-public-shell {
    font-family: var(--primary-font);
    color: var(--dark-gray);
    background: #eef2f1;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.vsgv-public-shell p,
.vsgv-public-shell li,
.vsgv-public-shell label,
.vsgv-public-shell input,
.vsgv-public-shell select,
.vsgv-public-shell button {
    font-size: 1rem;
}

.vsgv-public-shell a {
    color: var(--base-color);
}

.vsgv-public-shell .alt-font,
.vsgv-public-shell h1,
.vsgv-public-shell h2,
.vsgv-public-shell h3,
.vsgv-public-shell h4 {
    color: var(--dark-gray);
}

.vsgv-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vsgv-border);
    box-shadow: 0 8px 24px rgba(28, 39, 34, 0.04);
}

.vsgv-site-header .navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.vsgv-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    min-width: 0;
}

.vsgv-brand-title {
    font-family: var(--alt-font);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.vsgv-brand-subtitle {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.vsgv-nav-links,
.vsgv-switch-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.vsgv-nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-family: var(--alt-font);
    font-weight: 600;
    padding-bottom: 0.1rem;
    border-bottom: 1px solid transparent;
}

.vsgv-nav-links a:hover,
.vsgv-nav-links a:focus {
    color: var(--base-color);
    border-bottom-color: rgba(47, 93, 80, 0.35);
}

.vsgv-switch-wrap {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.vsgv-switch-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--medium-gray);
}

.vsgv-switch-group {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.vsgv-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--vsgv-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.2;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.vsgv-switch.is-active,
.vsgv-switch:hover,
.vsgv-switch:focus {
    background: var(--base-color);
    color: #fff;
    border-color: var(--base-color);
}

.vsgv-hero {
    background: var(--vsgv-hero);
    position: relative;
    overflow: hidden;
}

.vsgv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/main-theme/images/demo-seo-agency-vertical-line-bg.svg');
    background-position: center top;
    opacity: 0.18;
    pointer-events: none;
}

.vsgv-hero-panel,
.vsgv-surface-card,
.vsgv-filter-panel,
.vsgv-results-panel,
.vsgv-reader-card,
.vsgv-empty-panel,
.vsgv-info-card {
    position: relative;
    background: var(--vsgv-surface);
    border: 1px solid var(--vsgv-border);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(28, 39, 34, 0.045);
}

.vsgv-hero-panel {
    padding: 3rem;
}

.vsgv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(47, 93, 80, 0.08);
    color: var(--base-color);
    font-family: var(--alt-font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vsgv-hero h1 {
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 1.02;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.vsgv-lead {
    font-size: 1.12rem;
    color: var(--medium-gray);
    max-width: 46rem;
}

.vsgv-hero-note {
    max-width: 42rem;
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--medium-gray);
}

.vsgv-chip-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.vsgv-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--vsgv-surface-soft);
    border: 1px solid var(--vsgv-border);
    color: var(--dark-gray);
    font-size: 0.92rem;
    line-height: 1.35;
}

.vsgv-chip-link {
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.vsgv-chip-link:hover,
.vsgv-chip-link:focus {
    background: var(--base-color);
    color: #fff;
    border-color: var(--base-color);
}

.vsgv-status-card {
    height: 100%;
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfa 100%);
}

.vsgv-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.vsgv-status-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--medium-gray);
    font-size: 0.8rem;
    font-family: var(--alt-font);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vsgv-status-divider {
    height: 1px;
    margin: 1.25rem 0;
    background: var(--vsgv-border);
}

.vsgv-status-card strong {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--alt-font);
    font-size: 1.05rem;
}

.vsgv-info-card {
    padding: 1.6rem;
    height: 100%;
}

.vsgv-info-card img {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
}

.vsgv-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.vsgv-filter-panel,
.vsgv-results-panel,
.vsgv-reader-card,
.vsgv-empty-panel {
    padding: 2rem;
}

.vsgv-about-panel,
.vsgv-purpose-card {
    background: var(--vsgv-surface);
    border: 1px solid var(--vsgv-border);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(28, 39, 34, 0.035);
}

.vsgv-about-panel {
    padding: 1.75rem 2rem;
}

.vsgv-purpose-card {
    height: 100%;
    padding: 1.5rem;
}

.vsgv-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(120px, 1fr)) auto;
    gap: 1rem;
    align-items: end;
}

.vsgv-filter-heading {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.vsgv-filter-summary {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.vsgv-filter-grid label {
    display: block;
    margin-bottom: 0.45rem;
    font-family: var(--alt-font);
    font-size: 0.9rem;
    font-weight: 600;
}

.vsgv-filter-grid input,
.vsgv-filter-grid select {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid var(--vsgv-border);
    background: #fcfdfc;
    padding: 0.8rem 0.95rem;
    color: var(--dark-gray);
}

.vsgv-filter-grid button,
.vsgv-link-button {
    min-height: 50px;
    border-radius: 999px;
    border: 1px solid var(--base-color);
    padding: 0.78rem 1.2rem;
    background: var(--base-color);
    color: #fff;
    font-family: var(--alt-font);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.vsgv-filter-grid button:hover,
.vsgv-link-button:hover {
    background: #274a40;
    color: #fff;
}

.vsgv-results-meta {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.vsgv-results-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.vsgv-results-count {
    min-width: 190px;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--vsgv-border);
    background: var(--vsgv-surface-muted);
}

.vsgv-results-count strong {
    display: block;
    font-family: var(--alt-font);
    font-size: 1.4rem;
    line-height: 1.1;
}

.vsgv-results-count p {
    color: var(--medium-gray);
}

.vsgv-results-feedback {
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem 1.1rem;
    border-radius: 18px;
    background: var(--vsgv-surface-soft);
    border: 1px solid rgba(31, 42, 36, 0.08);
}

.vsgv-results-feedback-line,
.vsgv-results-helper,
.vsgv-empty-copy,
.vsgv-reader-intro {
    color: var(--medium-gray);
}

.vsgv-results-feedback-line {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.vsgv-results-summary {
    margin-bottom: 0.75rem;
}

.vsgv-results-helper {
    margin-bottom: 0;
    font-size: 0.96rem;
}

.vsgv-results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vsgv-result-card {
    padding: 1.4rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--vsgv-border);
    background: #fff;
    box-shadow: none;
}

.vsgv-result-card::before {
    content: "";
    position: absolute;
    top: 1.4rem;
    left: 0;
    bottom: 1.4rem;
    width: 4px;
    border-radius: 999px;
    background: rgba(47, 93, 80, 0.18);
}

.vsgv-result-card-document::before {
    background: rgba(47, 93, 80, 0.26);
}

.vsgv-result-card-content::before {
    background: rgba(79, 107, 140, 0.24);
}

.vsgv-result-type-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.vsgv-record-label {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--vsgv-border);
    font-size: 0.8rem;
    font-family: var(--alt-font);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vsgv-record-label-document {
    color: #234b40;
    background: rgba(47, 93, 80, 0.08);
}

.vsgv-record-label-content {
    color: #415973;
    background: rgba(79, 107, 140, 0.08);
}

.vsgv-record-context {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.vsgv-badge-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.vsgv-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #f3f7f5;
    border: 1px solid var(--vsgv-border);
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.vsgv-result-card h2,
.vsgv-result-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    padding-right: 1rem;
    line-height: 1.2;
}

.vsgv-result-card h2 a,
.vsgv-result-card h3 a {
    color: var(--dark-gray);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.vsgv-result-card h2 a:hover,
.vsgv-result-card h3 a:hover {
    color: var(--base-color);
}

.vsgv-result-card p,
.vsgv-reader-body {
    color: var(--medium-gray);
}

.vsgv-result-snippet {
    margin-bottom: 1rem;
    max-width: 58rem;
    font-size: 1rem;
}

.vsgv-result-meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem 1rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 42, 36, 0.08);
}

.vsgv-result-meta-list div {
    min-width: 0;
}

.vsgv-result-meta-list dt {
    margin-bottom: 0.2rem;
    color: var(--medium-gray);
    font-size: 0.8rem;
    font-family: var(--alt-font);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vsgv-result-meta-list dd {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.96rem;
}

.vsgv-result-actions {
    margin-top: 1rem;
}

.vsgv-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--base-color);
    font-family: var(--alt-font);
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.vsgv-text-link:hover,
.vsgv-text-link:focus {
    color: #274a40;
    text-decoration: underline;
}

.vsgv-empty-actions {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.vsgv-reader-header {
    margin-bottom: 1rem;
}

.vsgv-reader-intro {
    margin-bottom: 0;
}

.vsgv-reader-meta-list {
    margin-bottom: 1.4rem;
}

.vsgv-reader-body {
    font-size: 1.05rem;
    max-width: 60rem;
    line-height: 1.85;
}

.vsgv-reader-page .container {
    position: relative;
}

.vsgv-reader-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.vsgv-reader-nav-row {
    margin-bottom: 1.1rem;
}

.vsgv-reader-card {
    padding: 2.25rem 2.5rem;
}

.vsgv-reader-topline {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.vsgv-reader-header h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    max-width: 18ch;
}

.vsgv-reader-language-card {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: var(--vsgv-surface-soft);
    border: 1px solid rgba(31, 42, 36, 0.08);
}

.vsgv-reader-action-row {
    display: flex;
    gap: 1rem 1.4rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(31, 42, 36, 0.08);
}

.vsgv-reader-body p {
    margin-bottom: 1.25rem;
    color: var(--dark-gray);
}

.vsgv-reader-body p:last-child {
    margin-bottom: 0;
}

.vsgv-reader-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(31, 42, 36, 0.08);
}

.vsgv-reader-empty {
    max-width: 760px;
    margin: 0 auto;
}

.vsgv-footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid rgba(31, 42, 36, 0.08);
    background: rgba(255, 255, 255, 0.55);
}

.vsgv-footer-note {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.vsgv-section-heading {
    margin-bottom: 1.1rem;
}

.vsgv-section-heading h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    line-height: 1.15;
}

.vsgv-section-heading p {
    color: var(--medium-gray);
    max-width: 44rem;
}

.vsgv-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0;
    text-decoration: none;
    font-family: var(--alt-font);
    font-weight: 700;
}

@media (max-width: 1199px) {
    .vsgv-switch-wrap {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .vsgv-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vsgv-status-grid {
        grid-template-columns: 1fr;
    }

    .vsgv-reader-wrap {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .vsgv-site-header .navbar > .container-fluid {
        gap: 1rem;
    }

    .vsgv-nav-links {
        width: 100%;
    }

    .vsgv-nav-links a {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .vsgv-hero-panel {
        padding: 2rem;
    }

    .vsgv-about-panel {
        padding: 1.5rem;
    }

    .vsgv-reader-card {
        padding: 1.75rem;
    }
}

@media (max-width: 767px) {
    .vsgv-filter-grid {
        grid-template-columns: 1fr;
    }

    .vsgv-filter-panel,
    .vsgv-results-panel,
    .vsgv-reader-card,
    .vsgv-empty-panel {
        padding: 1.4rem;
    }

    .vsgv-results-count {
        min-width: 0;
        width: 100%;
    }

    .vsgv-results-header,
    .vsgv-filter-heading,
    .vsgv-results-meta {
        gap: 0.85rem;
    }

    .vsgv-chip-row,
    .vsgv-filter-summary,
    .vsgv-switch-wrap,
    .vsgv-empty-actions {
        gap: 0.65rem;
    }

    .vsgv-result-card,
    .vsgv-info-card,
    .vsgv-purpose-card,
    .vsgv-about-panel,
    .vsgv-status-card {
        border-radius: 18px;
    }

    .vsgv-reader-language-card,
    .vsgv-reader-action-row {
        gap: 0.75rem;
    }

    .vsgv-hero h1 {
        font-size: 2.1rem;
    }

    .vsgv-section-heading h2,
    .vsgv-reader-header h1 {
        max-width: 100%;
    }
}
