:root {
    --guide-green: #00a86b;
    --guide-green-dark: #087f57;
    --guide-charcoal: #232727;
    --guide-text: #303637;
    --guide-muted: #687172;
    --guide-border: #dde3e2;
    --guide-soft: #f4f6f5;
    --guide-white: #ffffff;
    --guide-blue: #315f8f;
    --guide-yellow: #a86f00;
}


.guide-desktop-hero {
    border-bottom: 1px solid var(--guide-border);
}

.guide-desktop-hero .desktop-hero-copy-block h1 {
    margin-bottom: 18px;
}

.guide-desktop-hero .desktop-hero-visual {
    height: 230px;
}

.guide-desktop-hero .desktop-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(0.965);
}


.guide-hero-image-panel {
    position: relative;
    padding-bottom: 28px;
}

.guide-hero-image-note {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 2px;
    max-width: 330px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 168, 107, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(35, 39, 39, 0.14);
    backdrop-filter: blur(8px);
}

.guide-hero-image-note span {
    display: block;
    margin-bottom: 4px;
    color: var(--guide-green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-hero-image-note strong {
    display: block;
    color: var(--guide-charcoal);
    font-size: 16px;
    line-height: 1.25;
}

.guide-hero-image-note p {
    margin: 4px 0 0;
    color: var(--guide-muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .guide-hero-image-panel {
        padding-bottom: 40px;
    }

    .guide-hero-image-note {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

.guide-hero,
.guide-article-hero,
.glossary-hero {
    background:
        radial-gradient(circle at 80% 25%, rgba(0, 168, 107, 0.12), transparent 34%),
        linear-gradient(180deg, #f7fbf9 0%, #eef5f2 100%);
    border-bottom: 1px solid var(--guide-border);
}

.guide-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    gap: 64px;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 76px;
}

.guide-hero h1,
.guide-article-hero h1,
.glossary-hero h1 {
    margin: 10px 0 18px;
    color: var(--guide-charcoal);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.guide-hero-copy > p,
.guide-article-hero > .desktop-shell > p,
.glossary-hero > .desktop-shell > p {
    max-width: 760px;
    margin: 0;
    color: var(--guide-muted);
    font-size: 19px;
    line-height: 1.7;
}

.guide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.guide-primary-button,
.guide-secondary-button {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 750;
    text-decoration: none;
}

.guide-primary-button {
    background: var(--guide-green);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 168, 107, .2);
}

.guide-primary-button:hover {
    background: var(--guide-green-dark);
}

.guide-secondary-button {
    border: 1px solid var(--guide-border);
    background: white;
    color: var(--guide-charcoal);
}

.guide-hero-note {
    padding: 28px;
    border: 1px solid rgba(0, 168, 107, .25);
    border-radius: 18px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 20px 60px rgba(35,39,39,.08);
}

.guide-hero-note span,
.guide-eyebrow,
.guide-section-label {
    display: block;
    color: var(--guide-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guide-hero-note strong {
    display: block;
    margin: 10px 0;
    color: var(--guide-charcoal);
    font-size: 25px;
    line-height: 1.25;
}

.guide-hero-note p {
    margin: 0;
    color: var(--guide-muted);
    line-height: 1.65;
}


.guide-main-section,
.guide-popular-section,
.guide-article-section,
.glossary-content-section {
    padding: 64px 0;
}

.guide-section-heading,
.glossary-results-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 28px;
}

.guide-section-heading h2,
.guide-popular-main h2,
.glossary-results-heading h2 {
    margin: 7px 0 0;
    color: var(--guide-charcoal);
    font-size: 32px;
    letter-spacing: -.025em;
}

.guide-section-heading > p {
    max-width: 600px;
    margin: 0;
    color: var(--guide-muted);
    line-height: 1.7;
}

.guide-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.guide-feature-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--guide-border);
    border-radius: 16px;
    background: white;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(35,39,39,.045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.guide-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,168,107,.45);
    box-shadow: 0 16px 40px rgba(35,39,39,.09);
}

.guide-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(0,168,107,.1);
    color: var(--guide-green-dark);
    font-size: 13px;
    font-weight: 850;
}

.guide-feature-card h2 {
    margin: 2px 0 10px;
    color: var(--guide-charcoal);
    font-size: 24px;
}

.guide-feature-card p {
    margin: 0;
    color: var(--guide-muted);
    line-height: 1.65;
}

.guide-card-link {
    grid-column: 2;
    align-self: end;
    color: var(--guide-green-dark);
    font-weight: 800;
}

.guide-glossary-card {
    background: var(--guide-charcoal);
    border-color: var(--guide-charcoal);
}

.guide-glossary-card h2,
.guide-glossary-card p {
    color: white;
}

.guide-glossary-card p {
    opacity: .75;
}

.guide-glossary-card .guide-card-number {
    background: rgba(255,255,255,.12);
    color: white;
}

.guide-glossary-card .guide-card-link {
    color: #6ce0ac;
}

.guide-popular-section {
    background: var(--guide-soft);
    border-top: 1px solid var(--guide-border);
}

.guide-popular-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr);
    gap: 48px;
}

.guide-popular-list {
    display: grid;
    margin-top: 28px;
    border-top: 1px solid var(--guide-border);
}

.guide-popular-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--guide-border);
    color: var(--guide-charcoal);
    font-weight: 720;
    text-decoration: none;
}

.guide-popular-list a:hover {
    color: var(--guide-green-dark);
}

.guide-sidebar-card,
.guide-related-sidebar section {
    padding: 26px;
    border: 1px solid var(--guide-border);
    border-radius: 15px;
    background: white;
}

.guide-sidebar-card h2,
.guide-related-sidebar h2 {
    margin: 8px 0 12px;
    color: var(--guide-charcoal);
    font-size: 23px;
}

.guide-sidebar-card p {
    color: var(--guide-muted);
    line-height: 1.7;
}

.guide-sidebar-card a,
.guide-related-sidebar a {
    color: var(--guide-green-dark);
    font-weight: 750;
    text-decoration: none;
}

.guide-article-hero,
.glossary-hero {
    padding: 54px 0 58px;
}

.guide-article-hero h1,
.glossary-hero h1 {
    max-width: 920px;
    font-size: clamp(40px, 4.5vw, 60px);
}

.guide-back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--guide-green-dark);
    font-weight: 750;
    text-decoration: none;
}

.guide-article-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 760px) minmax(220px, 1fr);
    gap: 40px;
    align-items: start;
}

.guide-toc-inner {
    position: sticky;
    top: 28px;
}

.guide-toc-inner > span {
    display: block;
    margin-bottom: 14px;
    color: var(--guide-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guide-toc nav {
    display: grid;
    border-left: 1px solid var(--guide-border);
}

.guide-toc a {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr);
    gap: 8px;
    padding: 9px 0 9px 14px;
    color: var(--guide-muted);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.guide-toc a:hover {
    border-left: 2px solid var(--guide-green);
    color: var(--guide-charcoal);
}

.guide-toc small {
    color: var(--guide-green-dark);
    font-weight: 800;
}

.guide-introduction {
    margin-bottom: 28px;
    padding: 25px;
    border-left: 4px solid var(--guide-green);
    border-radius: 8px 14px 14px 8px;
    background: #f2faf6;
    color: var(--guide-text);
    font-size: 18px;
    line-height: 1.75;
}

.guide-content-section {
    margin-bottom: 24px;
    padding: 30px;
    border: 1px solid var(--guide-border);
    border-radius: 15px;
    background: white;
    scroll-margin-top: 24px;
}

.guide-content-section h2 {
    margin: 8px 0 18px;
    color: var(--guide-charcoal);
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.guide-section-body {
    color: var(--guide-text);
    line-height: 1.75;
}

.guide-section-body p:first-child {
    margin-top: 0;
}

.guide-section-body p:last-child {
    margin-bottom: 0;
}

.guide-section-body ul,
.guide-section-body ol {
    padding-left: 23px;
}

.guide-section-body li {
    margin: 7px 0;
}

.guide-section-example {
    border-left: 5px solid var(--guide-blue);
}

.guide-section-checklist {
    border-left: 5px solid var(--guide-green);
    background: #fbfefc;
}

.guide-section-warning {
    border-left: 5px solid #b42318;
    background: #fffafa;
}

.guide-section-tip {
    border-left: 5px solid var(--guide-yellow);
    background: #fffdf7;
}

.guide-section-summary {
    background: var(--guide-charcoal);
    border-color: var(--guide-charcoal);
}

.guide-section-summary h2,
.guide-section-summary .guide-section-body,
.guide-section-summary .guide-section-label {
    color: white;
}

.guide-article-disclaimer {
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--guide-soft);
    color: var(--guide-muted);
    line-height: 1.6;
}

.guide-related-sidebar {
    display: grid;
    gap: 18px;
}

.guide-related-sidebar section {
    display: grid;
    gap: 12px;
}

.guide-related-sidebar a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--guide-border);
}

.glossary-search {
    max-width: 820px;
    margin-top: 30px;
}

.glossary-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--guide-charcoal);
    font-size: 13px;
    font-weight: 800;
}

.glossary-search-row {
    display: flex;
    gap: 10px;
}

.glossary-search input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0 17px;
    border: 1px solid var(--guide-border);
    border-radius: 11px;
    background: white;
    color: var(--guide-charcoal);
    font-size: 16px;
}

.glossary-search button {
    min-width: 112px;
    border: 0;
    border-radius: 11px;
    background: var(--guide-green);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.glossary-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.glossary-categories {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 5px;
}

.glossary-categories > .guide-eyebrow {
    margin-bottom: 8px;
}

.glossary-categories a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--guide-muted);
    text-decoration: none;
}

.glossary-categories a:hover,
.glossary-categories a.is-active {
    background: rgba(0,168,107,.09);
    color: var(--guide-green-dark);
}

.glossary-categories small {
    font-weight: 800;
}

.glossary-results-heading {
    margin-bottom: 20px;
}

.glossary-results-heading strong {
    color: var(--guide-muted);
    white-space: nowrap;
}

.glossary-term-list {
    display: grid;
    gap: 14px;
}

.glossary-term-card {
    padding: 25px;
    border: 1px solid var(--guide-border);
    border-radius: 14px;
    background: white;
    scroll-margin-top: 20px;
}

.glossary-term-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.glossary-term-heading span {
    color: var(--guide-green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.glossary-term-heading h2 {
    margin: 5px 0 13px;
    color: var(--guide-charcoal);
    font-size: 26px;
}

.glossary-term-heading > a {
    color: #a4acab;
    font-size: 20px;
    text-decoration: none;
}

.glossary-definition {
    margin: 0;
    color: var(--guide-text);
    font-size: 17px;
    line-height: 1.7;
}

.glossary-why,
.glossary-example {
    margin-top: 17px;
    padding: 15px 17px;
    border-radius: 9px;
}

.glossary-why {
    background: #f1f9f5;
}

.glossary-example {
    background: var(--guide-soft);
}

.glossary-why strong,
.glossary-example strong {
    color: var(--guide-charcoal);
    font-size: 13px;
}

.glossary-why p,
.glossary-example p {
    margin: 5px 0 0;
    color: var(--guide-muted);
    line-height: 1.6;
}

.guide-empty,
.guide-not-found .desktop-shell {
    padding: 38px;
    border: 1px dashed var(--guide-border);
    border-radius: 14px;
    background: white;
    text-align: center;
}

.guide-not-found {
    padding: 90px 0;
}

.guide-empty h2,
.guide-not-found h1 {
    color: var(--guide-charcoal);
}

@media (max-width: 1120px) {
    .guide-article-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .guide-related-sidebar {
        grid-column: 2;
    }
}

@media (max-width: 860px) {
    .guide-hero-inner,
    .guide-popular-layout,
    .guide-article-layout,
    .glossary-layout {
        grid-template-columns: 1fr;
    }

    .guide-feature-grid {
        grid-template-columns: 1fr;
    }

    .guide-toc,
    .glossary-categories {
        position: static;
    }

    .guide-toc nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-left: 0;
    }

    .guide-toc a {
        border: 1px solid var(--guide-border);
        border-radius: 8px;
        padding: 10px;
    }

    .guide-related-sidebar {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .guide-hero-inner,
    .guide-main-section,
    .guide-popular-section,
    .guide-article-section,
    .glossary-content-section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .guide-hero-inner {
        gap: 28px;
    }

    .guide-hero h1,
    .guide-article-hero h1,
    .glossary-hero h1 {
        font-size: 40px;
    }

    .guide-section-heading,
    .glossary-results-heading {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }

    .guide-feature-card {
        grid-template-columns: 1fr;
    }

    .guide-card-link {
        grid-column: 1;
    }

    .guide-content-section {
        padding: 22px;
    }

    .guide-toc nav {
        grid-template-columns: 1fr;
    }

    .glossary-search-row {
        flex-direction: column;
    }

    .glossary-search button {
        min-height: 48px;
    }
}
