:root {
    --bg: #050708;
    --surface: #0b1012;
    --surface-2: #11191d;
    --text: #f5f7f4;
    --muted: #a8b8b4;
    --line: rgba(255,255,255,.13);
    --accent: #18c9b7;
    --gold: #f4c84b;
    --coral: #ff6b57;
    --max: 1180px;
}

* { box-sizing: border-box; }

html,
body {
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--gh-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.site-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(24,201,183,.035), transparent 280px),
        var(--bg);
}

.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max);
    min-height: 50px;
    margin: 0 auto;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    text-decoration: none;
}

.brand img {
    width: 138px;
    height: auto;
}

.site-nav ul,
.site-foot ul {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a,
.site-foot a {
    color: rgba(245,247,244,.82);
    font-size: .88rem;
    font-weight: 720;
    text-decoration: none;
}

.site-nav a:hover,
.site-foot a:hover {
    color: var(--accent);
}

.site-main,
.article-main {
    padding: 0 24px 64px;
}

.hero-banner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 0 10px;
}

.eyebrow,
.article-tag,
.card-tag {
    margin: 0;
    color: var(--accent);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy {
    display: grid;
    grid-template-columns: minmax(0, .62fr) minmax(300px, .48fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 8px;
}

.hero-copy h1 {
    max-width: 480px;
    margin: 4px 0 0;
    color: #fff;
    font-family: var(--gh-font-heading, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: clamp(1.35rem, 2.05vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero-copy p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.42;
}

.hero-visual {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: 0 26px 80px rgba(0,0,0,.42);
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 16 / 4.65;
    object-fit: cover;
    object-position: center;
}

.tag-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: var(--max);
    margin: 6px auto 22px;
}

.tag-menu a,
.tag-menu span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: 0 10px;
    color: rgba(245,247,244,.9);
    font-size: .82rem;
    font-weight: 760;
    text-decoration: none;
    background: rgba(255,255,255,.045);
}

.tag-menu a:hover {
    border-color: rgba(24,201,183,.55);
    color: #fff;
    background: rgba(24,201,183,.12);
}

.tag-menu span {
    cursor: default;
    color: rgba(245,247,244,.62);
}

.guide-table-section,
.tag-header,
.post-grid-section,
.home-intent-section,
.home-standard-section,
.home-proof-section {
    max-width: var(--max);
    margin: 0 auto 34px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.section-head h2,
.tag-header h1,
.article-header h1 {
    margin: 0;
    color: #fff;
    font-family: var(--gh-font-heading, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    letter-spacing: 0;
}

.section-head h2 {
    font-size: 1.65rem;
    line-height: 1.1;
}

.section-head p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.guide-table {
    border-top: 1px solid var(--line);
}

.guide-table a,
.guide-table > div {
    display: grid;
    grid-template-columns: 128px minmax(0, .8fr) minmax(240px, .65fr);
    gap: 16px;
    align-items: center;
    min-height: 76px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.guide-table span {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 820;
    text-transform: uppercase;
}

.guide-table strong {
    color: #fff;
    line-height: 1.28;
}

.guide-table em {
    margin: 0;
    color: var(--muted);
    font-style: normal;
    line-height: 1.46;
}

.workflow-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.workflow-map article {
    min-height: 188px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255,255,255,.035);
}

.workflow-map span {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 840;
}

.workflow-map h3 {
    margin: 18px 0 8px;
    color: #fff;
    font-size: 1.04rem;
    line-height: 1.2;
}

.workflow-map p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}

.home-standard-section {
    display: grid;
    grid-template-columns: minmax(0, .45fr) minmax(0, .75fr);
    gap: 28px;
    align-items: start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
}

.home-standard-section h2,
.home-proof-section h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 1.65rem;
    line-height: 1.12;
}

.standard-list p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.58;
}

.standard-list ul {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(245,247,244,.88);
    line-height: 1.55;
}

.standard-list li + li {
    margin-top: 6px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.proof-grid p {
    min-height: 92px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    color: rgba(245,247,244,.88);
    line-height: 1.45;
    background: rgba(255,255,255,.03);
}

.tag-header {
    padding: 52px 0 28px;
    border-bottom: 1px solid var(--line);
}

.tag-header h1 {
    margin-top: 8px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.04;
}

.tag-header p:not(.eyebrow) {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

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

.post-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
}

.card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    text-decoration: none;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--gold);
    font-weight: 900;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-body h2 {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.26;
}

.card-body h2 a,
.card-tag {
    text-decoration: none;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.card-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(168,184,180,.84);
    font-size: .88rem;
}

.article {
    max-width: 880px;
    margin: 0 auto;
}

.article-header {
    padding: 64px 0 30px;
    border-bottom: 1px solid var(--line);
}

.article-header.compact {
    padding-bottom: 12px;
}

.article-header h1 {
    margin-top: 12px;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1.04;
    text-wrap: balance;
}

.article-excerpt {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1.04rem, 1.5vw, 1.2rem);
    line-height: 1.65;
}

.article-feature,
.fch-figure {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.article-feature {
    margin: 30px 0 0;
}

.fch-figure {
    margin: 1.7rem 0;
}

.article-feature img,
.fch-figure img {
    width: 100%;
}

.article-feature figcaption,
.fch-figure figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
    background: rgba(255,255,255,.035);
}

.article-content {
    color: rgba(245,247,244,.93);
    font-size: 1.08rem;
    line-height: 1.78;
}

.article-content h2,
.article-content h3 {
    color: #fff;
    font-family: var(--gh-font-heading, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    letter-spacing: 0;
}

.article-content h2 {
    margin: 2.15em 0 .55em;
    font-size: clamp(1.6rem, 3vw, 2.32rem);
    line-height: 1.12;
}

.article-content h3 {
    margin-top: 1.6em;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin: 0 0 1.05em;
}

.article-content li + li {
    margin-top: .38em;
}

.article-content a {
    color: #a9fff4;
}

.fch-tldr,
.fch-callout,
.article-content blockquote {
    margin: 1.35em 0;
    padding: 1.05rem 1.15rem;
    border: 1px solid rgba(24,201,183,.28);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: rgba(24,201,183,.07);
}

.fch-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.fch-table-wrap table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.fch-table-wrap th,
.fch-table-wrap td {
    padding: .85rem .95rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.fch-table-wrap th {
    color: #fff;
    background: rgba(255,255,255,.055);
    text-align: left;
}

.kg-width-wide {
    width: min(1120px, calc(100vw - 48px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img,
.kg-width-wide img {
    width: 100%;
}

.fch-faq details {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
}

.fch-faq summary {
    cursor: pointer;
    color: #fff;
    font-weight: 760;
}

.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    height: 3px;
    appearance: none;
    border: 0;
    background: transparent;
}

.read-progress::-webkit-progress-bar { background: transparent; }
.read-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--gold), var(--coral)); }

.site-foot {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 34px 24px;
    border-top: 1px solid var(--line);
}

.site-foot p {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .hero-copy,
    .guide-table a,
    .guide-table > div,
    .home-standard-section {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .post-grid,
    .workflow-map,
    .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-head {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .site-foot {
        display: block;
    }

    .site-foot ul {
        flex-wrap: wrap;
        margin-top: 14px;
    }
}

@media (max-width: 640px) {
    .site-main,
    .article-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .site-head,
    .site-foot {
        padding-right: 16px;
        padding-left: 16px;
    }

    .site-nav ul {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        column-gap: 18px;
        row-gap: 10px;
    }

    .site-nav a {
        font-size: .86rem;
    }

    .brand img {
        width: 132px;
    }

    .hero-banner {
        padding-top: 12px;
    }

    .hero-copy h1 {
        font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    }

    .hero-copy p:not(.eyebrow) {
        font-size: .82rem;
    }

    .hero-visual img {
        aspect-ratio: 16 / 7.2;
    }

    .tag-menu {
        margin-bottom: 24px;
    }

    .section-head {
        display: block;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .workflow-map,
    .proof-grid {
        grid-template-columns: 1fr;
    }

    .tag-header h1,
    .article-header h1 {
        font-size: clamp(2.2rem, 11vw, 3.55rem);
    }
}
