:root {
    --ink: #071539;
    --muted: #52617f;
    --blue: var(--ghost-accent-color, #0759ff);
    --blue-dark: #0346d8;
    --navy: #02132f;
    --navy-2: #001b42;
    --line: #dce3ef;
    --soft: #f5f8ff;
    --white: #fff;
    --shadow: 0 18px 50px rgba(0, 28, 78, .08);
    --radius: 10px;
    --shell: 1380px;
    --chrome-shell: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--gh-font-body, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--gh-font-heading, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.chrome-shell { width: min(calc(100% - 48px), var(--chrome-shell)); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 999;
    padding: 10px 16px;
    color: #fff;
    background: var(--blue);
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.eyebrow {
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #0345ee);
    box-shadow: 0 10px 24px rgba(0, 82, 255, .24);
    font-weight: 700;
}

/* Header */
.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(20px);
}
.header-inner {
    display: grid;
    min-height: 80px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img.header-logo { width: auto; max-width: 200px; height: 40px; object-fit: contain; object-position: left center; }
.brand img.brand-icon { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; }
.brand-mark { position: relative; display: flex; width: 33px; height: 34px; gap: 4px; transform: rotate(1deg); }
.brand-mark i {
    display: block;
    width: 13px;
    height: 30px;
    border-radius: 10px 2px 10px 10px;
    background: linear-gradient(180deg, #1478ff, #0750f5);
    transform: rotate(-34deg);
}
.brand-mark i:last-child {
    height: 23px;
    margin-top: 3px;
    border-radius: 2px 10px 10px;
    transform: rotate(34deg);
}
.site-nav { justify-self: center; }
.site-nav .nav { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav .nav > li { position: relative; }
.site-nav a { position: relative; display: block; padding: 29px 0 27px; font-size: .875rem; font-weight: 700; letter-spacing: 0; }
.site-nav .nav-dropdown > a { padding-right: 18px; }
.nav-dropdown-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    display: grid;
    width: 18px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
}
.nav-dropdown-toggle span {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
}
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 30;
    display: grid;
    visibility: hidden;
    width: 288px;
    gap: 4px;
    margin: 0;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, .13);
    list-style: none;
    opacity: 0;
    transform: translate(-50%, -8px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.site-nav .nav-submenu a {
    padding: 12px 16px;
    border-radius: 6px;
    color: #334155;
    font-size: .875rem;
    line-height: 1.35;
}
.site-nav .nav-submenu a::after { display: none; }
.site-nav .nav-submenu a:hover,
.site-nav .nav-submenu .nav-current a { color: #0648f6; background: #eff6ff; }
.nav-dropdown:hover > .nav-submenu,
.nav-dropdown:focus-within > .nav-submenu,
.nav-dropdown.is-open > .nav-submenu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}
.nav-dropdown.is-open > .nav-dropdown-toggle span { transform: translateY(2px) rotate(225deg); }
.site-nav .nav-current a::after,
.site-nav a:hover::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 2px;
    background: var(--blue);
    content: "";
}
.header-cta {
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    padding-inline: 24px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(6, 72, 246, .2);
    font-size: .875rem;
}
.nav-toggle { display: none; padding: 8px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px; background: var(--ink); }

/* Listing hero */
.listing-hero {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.hero-inner {
    position: relative;
    display: grid;
    min-height: 0;
    grid-template-columns: .82fr 1.18fr;
    align-items: center;
    gap: 56px;
    padding-block: 64px;
}
.hero-copy { position: relative; z-index: 2; width: auto; }
.hero-copy h1 {
    max-width: 580px;
    margin: 25px 0 18px;
    color: var(--ink);
    font-size: clamp(2.5rem, 4vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.hero-copy p { max-width: 610px; margin: 0 0 32px; color: #475569; font-size: 1.06rem; }
.search-box {
    display: flex;
    width: min(100%, 470px);
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.listing-hero-visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 8px;
    background: #061841;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
}
.listing-hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Listing */
.listing-section { padding: 44px 0 100px; }
.filter-bar { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.filter-bar select,
.sort-label {
    min-width: 210px;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
}
.sort-label { display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.filter-spacer { flex: 1; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.post-card {
    display: flex;
    min-width: 0;
    min-height: 600px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 25, 72, .035);
    transition: transform .2s, box-shadow .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card-image-link { display: block; aspect-ratio: 1.2; overflow: hidden; background: #031838; }
.post-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-image { transform: scale(1.035); }
.post-card-placeholder {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: radial-gradient(circle, #0878ff 0 2%, transparent 3%), linear-gradient(140deg, #00112e, #0347ad);
}
.post-card-placeholder span { width: 45%; height: 45%; border: 1px solid #1688ff; border-radius: 50%; box-shadow: 0 0 40px #0875ff; }
.post-card-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.post-card h2 { margin: 8px 0 12px; font-size: 1.24rem; line-height: 1.45; letter-spacing: -.025em; }
.post-card h2 a:hover { color: var(--blue); }
.post-card-content > p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    color: var(--muted);
    font-size: .75rem;
}
.post-card-meta span + span::before { margin-right: 14px; content: "◷"; color: var(--blue); }
.card-arrow { margin-left: auto; color: var(--blue); font-size: 1.35rem; }

/* Sidebar */
.sidebar { display: grid; gap: 28px; }
.sidebar-card,
.newsletter-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.sidebar h2 { margin: 0 0 20px; font-size: 1.25rem; }
.topic-list, .footer-list { margin: 0; padding: 0; list-style: none; }
.topic-list li + li { border-top: 1px solid #e9edf4; }
.topic-list a { display: flex; min-height: 52px; align-items: center; gap: 14px; font-size: .92rem; font-weight: 600; }
.topic-list a:hover { color: var(--blue); }
.topic-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: #eef3ff;
}
.latest-list { display: grid; gap: 18px; }
.latest-item { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: center; }
.latest-item img, .latest-placeholder { width: 82px; height: 65px; border-radius: 7px; object-fit: cover; background: linear-gradient(145deg, #001533, #0758d8); }
.latest-item strong { display: -webkit-box; overflow: hidden; font-size: .83rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.latest-item small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.newsletter-card { padding: 30px; background: linear-gradient(145deg, #f8faff, #eef3ff); }
.newsletter-card .mail-icon { color: var(--blue); font-size: 2.2rem; }
.newsletter-card h2 { margin: 15px 0 8px; }
.newsletter-card p { color: var(--muted); font-size: .88rem; }
.newsletter-card > small { display: block; margin-top: 14px; color: var(--muted); font-size: .68rem; }
.subscribe-fields { display: flex; gap: 8px; }
.subscribe-fields input { min-width: 0; height: 46px; flex: 1; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.subscribe-fields .button { min-height: 46px; padding-inline: 17px; }
.newsletter-card .subscribe-fields { display: grid; }
.form-success, .form-error, .button-loading { display: none; }
.subscribe-form.success .subscribe-fields { display: none; }
.subscribe-form.success .form-success,
.subscribe-form.error .form-error,
.subscribe-form.loading .button-loading { display: block; }
.subscribe-form.loading .button-label { display: none; }

/* Article */
.article { padding: 36px 0 80px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 55px; align-items: start; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 34px; color: var(--muted); font-size: .75rem; }
.breadcrumbs a:hover { color: var(--blue); }
.article-header h1 {
    max-width: 950px;
    margin: 12px 0 14px;
    font-size: clamp(2.6rem, 4.2vw, 4.25rem);
    line-height: 1.1;
    letter-spacing: -.05em;
}
.article-excerpt { max-width: 870px; margin: 0 0 26px; color: var(--muted); font-size: 1.18rem; }
.article-meta { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; color: var(--muted); font-size: .78rem; }
.author-chip { display: flex; align-items: center; gap: 12px; padding-right: 24px; border-right: 1px solid var(--line); color: var(--ink); }
.author-chip img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-chip span { display: grid; }
.author-chip small { color: var(--muted); }
.share-links { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.share-links a, .share-links button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--blue);
    background: #fff;
    font-weight: 700;
}
.article-feature { margin: 0 0 30px; }
.article-feature img { width: 100%; max-height: 620px; border-radius: var(--radius); object-fit: cover; }
.article-feature figcaption { margin-top: 8px; color: var(--muted); font-size: .75rem; text-align: center; }
.article .sidebar { position: sticky; top: 24px; padding-top: 64px; }
.toc { display: grid; gap: 2px; }
.toc a { margin-left: -27px; padding: 9px 14px 9px 24px; border-left: 3px solid transparent; color: var(--muted); font-size: .87rem; }
.toc a:hover { border-color: var(--blue); color: var(--blue); }
.toc .toc-subitem { padding-left: 36px; font-size: .8rem; }

/* Ghost editor content */
.gh-content { color: #172446; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.75; }
.gh-content > * { max-width: 820px; margin-inline: auto; }
.gh-content > * + * { margin-top: 1.45em; }
.gh-content h2, .gh-content h3, .gh-content h4 {
    color: var(--ink);
    font-family: Inter, "Segoe UI", sans-serif;
    line-height: 1.25;
    letter-spacing: -.025em;
    scroll-margin-top: 32px;
}
.gh-content h2 { margin-top: 2.2em; font-size: 1.7rem; }
.gh-content h3 { margin-top: 1.8em; font-size: 1.3rem; }
.gh-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.gh-content blockquote { padding: 8px 0 8px 25px; border-left: 4px solid var(--blue); color: var(--muted); font-size: 1.25rem; font-style: italic; }
.gh-content pre { overflow-x: auto; padding: 22px; border-radius: 7px; color: #eaf2ff; background: var(--navy); }
.gh-content code { font-size: .86em; }
.gh-content :not(pre) > code { padding: .15em .35em; border-radius: 4px; background: #edf2fb; }
.gh-content img { height: auto; border-radius: 8px; }
.gh-content .kg-width-wide { max-width: 1050px; }
.gh-content .kg-width-full { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.gh-content .kg-card { font-family: Inter, "Segoe UI", sans-serif; }
.gh-content .kg-image-card figcaption,
.gh-content .kg-gallery-card figcaption { color: var(--muted); font-size: .75rem; text-align: center; }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.gh-content .kg-gallery-row { display: flex; gap: 10px; }
.gh-content .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.gh-content .kg-bookmark-card a { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.gh-content .kg-bookmark-content { flex: 1; padding: 20px; }
.gh-content .kg-bookmark-title { font-weight: 800; }
.gh-content .kg-bookmark-description { margin-top: 7px; color: var(--muted); font-size: .85rem; }
.gh-content .kg-bookmark-thumbnail { width: 32%; }
.gh-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.gh-content .kg-callout-card { display: flex; gap: 16px; padding: 24px; border-radius: 8px; }
.gh-content .kg-button-card .kg-btn { display: inline-flex; padding: 12px 20px; border-radius: 5px; color: #fff; background: var(--blue); text-decoration: none; }
.gh-content .kg-toggle-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; }
.gh-content .kg-product-card-container { padding: 26px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.author-box { display: flex; max-width: 820px; gap: 20px; margin: 45px auto 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; }
.author-box img { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.author-box div { display: grid; }
.author-box span { color: var(--muted); font-size: .78rem; }
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.comments-section { max-width: 820px; margin: 55px auto 0; }
.post-navigation { display: grid; max-width: 820px; grid-template-columns: 1fr 1fr; margin: 35px auto 0; border: 1px solid var(--line); border-radius: 8px; }
.post-navigation a { display: grid; padding: 20px; }
.post-navigation a + a { border-left: 1px solid var(--line); text-align: right; }
.post-navigation small { color: var(--blue); }
.post-navigation strong { margin-top: 5px; font-size: .85rem; line-height: 1.4; }

/* Archives, pages, pagination */
.archive-header { padding: 80px 0; color: #fff; background: linear-gradient(120deg, var(--navy), var(--navy-2)); }
.archive-header h1, .page-header h1 { margin: 8px 0; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1.1; letter-spacing: -.05em; }
.archive-header p { max-width: 700px; color: #ced8e9; }
.archive-listing { padding-top: 60px; }
.author-header { display: flex; align-items: center; gap: 28px; }
.author-header img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 42px; color: var(--muted); font-size: .84rem; }
.page-link { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--blue); font-size: 1.4rem; }
.page-header { padding: 80px 0 40px; text-align: center; }
.page-header p { max-width: 700px; margin-inline: auto; color: var(--muted); font-size: 1.15rem; }
.page-header img { width: 100%; max-height: 600px; margin-top: 35px; border-radius: 10px; object-fit: cover; }
.static-page-content > .gh-content { padding-bottom: 90px; }
.error-page { min-height: 65vh; padding-block: 120px; text-align: center; }
.error-page h1 { margin: 8px 0; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.06em; }
.error-page p { color: var(--muted); }

/* Footer */
.site-footer {
    padding: 48px 0 0;
    color: rgba(239, 246, 255, .75);
    border: 0;
    border-radius: 0;
    background: #001f3f;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr .8fr .95fr .75fr 1.05fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-logo { display: block; width: 190px; }
.footer-logo img { width: 100%; height: auto; }
.footer-about { padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, .1); }
.footer-about p, .site-footer section > p {
    max-width: 320px;
    margin: 20px 0 0;
    color: rgba(239, 246, 255, .8);
    font-size: .875rem;
    line-height: 1.75rem;
}
.site-footer h2 { margin: 0 0 16px; color: #fff; font-size: .875rem; }
.footer-column { padding: 0; }
.footer-connect { padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, .1); }
.footer-nav .nav { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-nav a, .footer-list a { color: rgba(239, 246, 255, .75); font-size: .875rem; line-height: 1.45; }
.footer-nav a:hover, .footer-list a:hover { color: #fff; }
.footer-list { display: grid; gap: 10px; }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 4px;
    color: rgba(255, 255, 255, .8);
    font-size: .625rem;
    font-weight: 700;
}
.site-footer .subscribe-form { margin-top: 24px; }
.site-footer .subscribe-fields { gap: 0; }
.site-footer .subscribe-fields input {
    height: 48px;
    padding-inline: 16px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: transparent;
    font-size: .875rem;
}
.site-footer .subscribe-fields .button {
    width: 56px;
    min-height: 48px;
    padding: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    font-size: 1rem;
}
.site-footer .subscribe-fields .button-label { display: grid; place-items: center; }
.site-footer .subscribe-fields svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(239, 246, 255, .7);
    font-size: .75rem;
}
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.footer-bottom a { color: #b8c5d8; }

@media (max-width: 1200px) {
    .header-inner { gap: 24px; }
    .site-nav .nav { gap: 24px; }
    .header-cta { padding-inline: 18px; font-size: .8rem; }
    .content-with-sidebar { grid-template-columns: minmax(0, 1fr) 310px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; }
}

@media (max-width: 1023px) {
    .shell { width: min(calc(100% - 40px), var(--shell)); }
    .chrome-shell { width: min(calc(100% - 40px), var(--chrome-shell)); }
    .header-inner { min-height: 80px; grid-template-columns: auto auto; justify-content: space-between; }
    .nav-toggle { display: block; grid-column: 2; }
    .header-cta { display: none; }
    .site-nav {
        position: fixed;
        inset: 80px 0 auto;
        display: none;
        padding: 20px;
        border-top: 1px solid var(--line);
        background: #fff;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: block; }
    .site-nav .nav { display: grid; gap: 0; }
    .site-nav a { padding: 14px; }
    .site-nav .nav-dropdown > a { padding-right: 48px; }
    .nav-dropdown-toggle { top: 25px; right: 12px; width: 36px; height: 36px; }
    .nav-submenu {
        position: static;
        display: none;
        visibility: visible;
        width: auto;
        gap: 2px;
        margin: 0 0 8px 14px;
        padding: 4px 8px;
        border: 0;
        border-left: 2px solid #dbeafe;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }
    .nav-dropdown:hover > .nav-submenu,
    .nav-dropdown:focus-within > .nav-submenu { display: none; transform: none; }
    .nav-dropdown.is-open > .nav-submenu { display: grid; transform: none; }
    .site-nav .nav-submenu a { padding: 10px 14px; }
    .site-nav .nav-current a::after, .site-nav a:hover::after { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
    .hero-copy { width: min(650px, 100%); }
    .listing-hero-visual { min-height: 390px; }
    .content-with-sidebar,
    .article-layout { grid-template-columns: 1fr; }
    .article .sidebar { position: static; padding-top: 20px; }
    .sidebar { grid-template-columns: repeat(2, 1fr); }
    .sidebar .newsletter-card { grid-column: 1 / -1; }
    .toc-card { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
    .footer-about, .footer-column { padding-inline: 0; border-right: 0; }
    .footer-connect { margin-top: 0; padding-inline: 0; border-left: 0; }
}

@media (max-width: 680px) {
    body { font-size: 15px; }
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .brand img.header-logo { max-width: 160px; height: 40px; }
    .brand img.brand-icon { width: 40px; }
    .brand-name { font-size: 1.45rem; }
    .hero-inner { min-height: 0; gap: 32px; padding-block: 42px; }
    .hero-copy { width: 100%; }
    .hero-copy h1 { font-size: 2.65rem; }
    .listing-hero-visual { min-height: 280px; }
    .listing-section { padding-top: 26px; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar select, .sort-label { width: 100%; min-width: 0; }
    .filter-spacer { display: none; }
    .post-grid { grid-template-columns: 1fr; }
    .post-card { min-height: 0; }
    .sidebar { grid-template-columns: 1fr; }
    .sidebar .newsletter-card { grid-column: auto; }
    .article { padding-top: 22px; }
    .article-header h1 { font-size: 2.55rem; }
    .article-meta { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
    .author-chip { width: 100%; border-right: 0; }
    .share-links { width: 100%; margin-left: 0; }
    .gh-content { font-size: 1.02rem; }
    .gh-content .kg-width-full { width: auto; margin-left: 0; }
    .post-navigation { grid-template-columns: 1fr; }
    .post-navigation a + a { border-top: 1px solid var(--line); border-left: 0; }
    .author-box { align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-about, .footer-column, .footer-connect { padding-inline: 0; }
    .footer-connect { padding-top: 35px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 18px; padding-inline: 0; }
    .legal-nav { flex-wrap: wrap; gap: 12px 22px; }
    .author-header { align-items: flex-start; flex-direction: column; }
}
