/* ============================================================
   Dara blog theme — DoorDash/Medium editorial layout, Dara skin
   ============================================================ */

:root {
    --ink:        #111111;
    --ink-soft:   #2a2a2a;
    --gray:       #6b6b6b;
    --gray-light: #9a9a9a;
    --line:       #e7e7e4;
    --bg:         #ffffff;
    --bg-soft:    #f6f6f4;
    --accent:     #111111;

    --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;

    --container: 1200px;
    --article:   720px;
    --radius:    12px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1.4em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.site-wrap { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
.site-main { flex: 1 0 auto; }

/* ---------- shared bits ---------- */
.tag-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 14px;
}
.tag-label:hover { color: var(--ink); }

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}
.meta-author { color: var(--ink-soft); font-weight: 500; }
.dot { color: var(--gray-light); }

.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-lg { width: 44px; height: 44px; }
.avatar-xl { width: 84px; height: 84px; margin: 0 auto 18px; }

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity .15s ease, background .15s ease;
}
.btn-filled { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-filled:hover { opacity: .85; }

/* ---------- header (DoorDash-style nav) ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 14px rgba(0,0,0,.07); }
.site-header-inner {
    display: flex; align-items: center; gap: 34px;
    height: 64px;
}
.site-logo {
    flex-shrink: 0;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.site-logo img { max-height: 28px; width: auto; }

/* category links sit right after the logo, DoorDash-style */
.site-nav { margin-right: auto; }
.nav-list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-item a {
    display: inline-block;
    font-size: 15px; font-weight: 500; color: var(--ink);
    padding: 3px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
.nav-item a:hover { color: #000; border-bottom-color: var(--ink); }
.nav-current a { border-bottom-color: var(--ink); }

.site-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.nav-search {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0; margin: 0;
    background: none; border: 0; color: var(--ink); cursor: pointer;
    border-radius: 50%; transition: background .15s ease;
}
.nav-search:hover { background: var(--bg-soft); }
.header-subscribe { white-space: nowrap; padding: 10px 18px; font-size: 15px; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    background: none; border: 0; padding: 9px; cursor: pointer;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--ink); border-radius: 2px;
}
.nav-toggle span + span { margin-top: 5px; }

/* ---------- secondary nav (DoorDash-style blog pill) ---------- */
.subnav { background: #fff; padding: 12px 0; border-bottom: 1px solid var(--line); }
.subnav-bar {
    display: flex; align-items: stretch;
    height: 44px;
    background: var(--bg-soft);
    border-radius: 999px;
}
.subnav-badge {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center;
    height: 44px; padding: 0 22px;
    background: var(--ink); color: #fff;
    font-family: var(--sans); font-weight: 600; font-size: 14px;
    border-radius: 999px 0 0 999px;
    white-space: nowrap; flex-shrink: 0;
}
.subnav-badge::after {   /* the pennant point */
    content: ""; position: absolute; left: 100%; top: 0;
    width: 0; height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 14px solid var(--ink);
}
.subnav-links { flex: 1 1 0; min-width: 0; display: flex; align-items: center; margin-left: 30px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links .nav-list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.subnav-links .nav-item a {
    font-size: 15px; font-weight: 500; color: var(--ink);
    white-space: nowrap; padding: 3px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .15s ease;
}
.subnav-links .nav-item a:hover { border-bottom-color: var(--ink); }
.subnav-links .nav-current a { font-weight: 700; border-bottom-color: var(--ink); }

/* ---------- reading progress bar ---------- */
.reading-progress {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: transparent; z-index: 60; pointer-events: none;
}
.reading-progress span {
    display: block; height: 100%; width: 0;
    background: var(--ink); transition: width .08s linear;
}

/* ---------- featured hero ---------- */
.featured { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.featured-inner {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 52px;
    align-items: center;
}
.featured-image-link { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.featured-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.featured-image-link:hover .featured-image { transform: scale(1.03); }
.featured-title { font-size: 42px; margin-bottom: 16px; }
.featured-title-link:hover .featured-title { color: var(--ink-soft); }
.featured-excerpt { font-size: 19px; color: var(--gray); margin-bottom: 22px; }

/* ---------- post grid ---------- */
.post-feed { padding: 56px 0 72px; }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.post-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { border-color: #d6d6d2; box-shadow: 0 10px 30px rgba(0,0,0,.07); transform: translateY(-2px); }
.post-card-image-link { display: block; overflow: hidden; background: var(--bg-soft); }
.post-card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-image { transform: scale(1.04); }
.post-card-content { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 22px 24px; }
.post-card .tag-label { margin-bottom: 12px; }
.post-card-title { font-size: 20px; margin-bottom: 10px; }
.post-card-title-link:hover .post-card-title { color: var(--ink-soft); }
.post-card-excerpt { font-size: 15px; color: var(--gray); line-height: 1.55; margin-bottom: 18px; }
.post-card-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-top: auto; margin-bottom: 16px;
    font-size: 13px; color: var(--gray);
}
.post-card-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.post-card-meta svg { width: 14px; height: 14px; opacity: .65; flex-shrink: 0; }
.post-card-more { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.post-card-more .arrow { transition: transform .15s ease; }
.post-card-more:hover .arrow { transform: translateX(4px); }
.post-card-no-image .post-card-content { border-top: 3px solid var(--ink); }

/* ---------- load more ---------- */
.load-more-wrap { display: flex; justify-content: center; margin-top: 56px; }
.load-more { font-size: 16px; padding: 13px 30px; }
.load-more.is-loading { opacity: .6; pointer-events: none; }

/* ---------- spotlight carousel (category block) ---------- */
.spotlight { padding: 24px 0 80px; }
.spotlight-alt { background: var(--bg-soft); padding-top: 72px; }
.spotlight-head { text-align: center; margin-bottom: 40px; }
.spotlight-title { font-size: 32px; }
.spotlight-sub { font-size: 17px; color: var(--gray); margin-top: 10px; }
.carousel { position: relative; }
.carousel-track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 80px) / 3);
    gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding-bottom: 4px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .post-card { scroll-snap-align: start; }
.carousel-arrow {
    position: absolute; top: 31%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    font-size: 26px; line-height: 1; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.carousel-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
.carousel-arrow.is-disabled { opacity: .3; pointer-events: none; box-shadow: none; }

/* ---------- article (single post) ---------- */
.article { padding-top: 56px; }
.article-header-inner, .article-content, .article-footer {
    max-width: var(--article);
    margin-left: auto; margin-right: auto;
    padding-left: 28px; padding-right: 28px;
}
.article-header { text-align: left; margin-bottom: 36px; }
.article-title { font-size: 46px; line-height: 1.1; margin-bottom: 18px; }
.article-subtitle {
    font-family: var(--serif);
    font-size: 22px; line-height: 1.45; color: var(--gray);
    margin-bottom: 28px; font-weight: 400;
}
.article-byline { display: flex; align-items: center; gap: 12px; }
.byline-author { font-weight: 600; color: var(--ink); }
.byline-author:hover { color: var(--gray); }
.byline-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray); }

.article-image {
    max-width: 1040px; margin: 0 auto 48px; padding: 0 28px;
}
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption { text-align: center; font-size: 14px; color: var(--gray); margin-top: 12px; }

/* ---------- article body (Ghost / Koenig content) ---------- */
.gh-content {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.75;
    color: var(--ink-soft);
}
.gh-content > * + * { margin-top: 1.5em; }
.gh-content h2 { font-family: var(--sans); font-size: 30px; margin: 1.8em 0 .1em; letter-spacing: -0.02em; }
.gh-content h3 { font-family: var(--sans); font-size: 23px; margin: 1.6em 0 .1em; }
.gh-content a { box-shadow: inset 0 -1px 0 var(--ink); transition: box-shadow .15s ease, color .15s ease; }
.gh-content a:hover { color: var(--gray); box-shadow: inset 0 -1px 0 var(--gray); }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li { margin: .5em 0; }
.gh-content blockquote {
    margin: 1.5em 0; padding: 4px 0 4px 24px;
    border-left: 3px solid var(--ink);
    font-style: italic; color: var(--ink);
}
.gh-content hr { border: 0; height: 1px; background: var(--line); margin: 2.6em 0; }
.gh-content img, .gh-content .kg-card { border-radius: var(--radius); }
.gh-content figure { margin: 0; }
.gh-content figcaption { text-align: center; font-family: var(--sans); font-size: 14px; color: var(--gray); margin-top: 10px; }
.gh-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .85em; background: var(--bg-soft);
    padding: 2px 6px; border-radius: 5px;
}
.gh-content pre {
    background: #161616; color: #f4f4f4; border-radius: var(--radius);
    padding: 20px 22px; overflow-x: auto; font-size: 15px; line-height: 1.5;
}
.gh-content pre code { background: none; padding: 0; color: inherit; }

/* full / wide width Koenig images */
.gh-content .kg-width-wide { width: 100vw; max-width: 1040px; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }

/* ---------- article footer ---------- */
.article-footer { margin-top: 56px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tag-chip {
    font-size: 13px; font-weight: 500; color: var(--ink-soft);
    background: var(--bg-soft); padding: 7px 14px; border-radius: 999px;
}
.tag-chip:hover { background: var(--line); }
.author-card {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 28px 0; border-top: 1px solid var(--line);
}
.author-card-name { font-weight: 600; font-size: 17px; }
.author-card-bio { margin: 6px 0 0; font-size: 15px; color: var(--gray); }

/* ---------- read more ---------- */
.read-more { background: var(--bg-soft); padding: 64px 0; margin-top: 0; }
.read-more-title { font-size: 24px; margin-bottom: 36px; }

/* ---------- archive (tag / author) ---------- */
.archive-header { padding: 64px 0 8px; text-align: center; }
.archive-title { font-size: 44px; margin-bottom: 14px; }
.archive-desc { max-width: 620px; margin: 0 auto; font-size: 18px; color: var(--gray); }
.archive-count { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--gray-light); }
.archive-author .archive-desc { font-family: var(--serif); }

/* ---------- error ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-code { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 4px; }
.error-title { font-size: 26px; margin-bottom: 12px; }
.error-desc { color: var(--gray); margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: auto; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .site-logo { font-size: 22px; }
.footer-tagline { max-width: 320px; margin: 14px 0 0; font-size: 15px; color: var(--gray); }
.footer-nav .nav-list { flex-wrap: wrap; gap: 22px; }
.footer-nav .nav-item a { font-size: 15px; color: var(--gray); }
.footer-nav .nav-item a:hover { color: var(--ink); }
.site-footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--gray-light);
}
/* Platform disclosure — same weight as the main site's: legible, not shouted. */
.site-footer-disclosure { margin-top: 40px; }
.site-footer-disclosure p {
    max-width: 62ch; margin: 0;
    font-size: 13px; line-height: 1.6; color: var(--gray-light);
}
.site-footer-disclosure + .site-footer-bottom { margin-top: 24px; }

/* ---------- author avatar fallback (initials) ---------- */
.avatar-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff;
    font-family: var(--sans); font-weight: 600; letter-spacing: .02em;
    font-size: 12px;
}
.avatar-lg.avatar-fallback { font-size: 16px; }
.avatar-xl.avatar-fallback { font-size: 30px; }

/* ---------- share row ---------- */
.article-byline-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.article-share { display: flex; align-items: center; gap: 8px; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0; margin: 0;
    border: 1px solid var(--line); border-radius: 50%;
    background: #fff; color: var(--ink); cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share-copy.copied { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- floating share rail (desktop) ---------- */
.share-rail { display: none; }
@media (min-width: 1180px) {
    .share-rail {
        position: fixed; left: 38px; top: 50%; transform: translateY(-50%);
        display: flex; flex-direction: column; gap: 10px; z-index: 40;
    }
}

/* ---------- comments (Ghost native) ---------- */
.article-comments { padding: 28px 0 8px; }
.article-comments-inner { max-width: var(--article); }
.article-comments-title { font-size: 22px; margin-bottom: 16px; }

/* ---------- in-content button cards (Ghost/Koenig) ---------- */
.gh-content .kg-button-card { display: flex; margin: 1.8em 0; }
.gh-content .kg-button-card.kg-align-center { justify-content: center; }
.gh-content .kg-button-card.kg-align-left { justify-content: flex-start; }
.gh-content .kg-btn, .gh-content a.kg-btn {
    display: inline-flex; align-items: center;
    background: var(--ink); color: #fff;
    font-family: var(--sans); font-weight: 600; font-size: 16px;
    padding: 13px 30px; border-radius: 999px; box-shadow: none;
}
.gh-content .kg-btn:hover { opacity: .85; color: #fff; box-shadow: none; }

/* ---------- inline subscribe CTA ---------- */
.subscribe-cta { background: var(--ink); color: #fff; margin-top: 72px; padding: 64px 0; }
.subscribe-cta-inner { max-width: var(--article); text-align: center; }
.subscribe-cta-title { font-size: 30px; color: #fff; margin-bottom: 12px; }
.subscribe-cta-text { font-size: 18px; color: rgba(255,255,255,.72); margin-bottom: 28px; }
.subscribe-cta .btn-filled { background: #fff; color: var(--ink); border-color: #fff; }
.subscribe-cta .btn-filled:hover { opacity: .9; }

/* ---------- image lightbox (click to expand) ---------- */
.gh-content img, .article-image img { cursor: zoom-in; }
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,.93); cursor: zoom-out; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 6px; cursor: zoom-out; }

/* ============================================================
   Koenig content blocks — full Ghost editor card support
   ============================================================ */

/* Image card */
.gh-content .kg-image-card { margin: 1.8em 0; }
.gh-content .kg-image-card img { width: 100%; border-radius: var(--radius); }

/* Gallery card */
.gh-content .kg-gallery-card { margin: 1.8em 0; }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 12px; }
.gh-content .kg-gallery-row { display: flex; gap: 12px; }
.gh-content .kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* Bookmark card */
.gh-content .kg-bookmark-card { margin: 1.8em 0; }
.gh-content .kg-bookmark-container {
    display: flex; min-height: 140px;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .2s ease;
}
.gh-content .kg-bookmark-container:hover { border-color: #d6d6d2; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.gh-content .kg-bookmark-content { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px 22px; overflow: hidden; }
.gh-content .kg-bookmark-title { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.4; }
.gh-content .kg-bookmark-description { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-content .kg-bookmark-metadata { display: flex; align-items: center; margin-top: auto; padding-top: 14px; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
.gh-content .kg-bookmark-icon { width: 18px; height: 18px; margin-right: 8px; border-radius: 4px; }
.gh-content .kg-bookmark-thumbnail { position: relative; flex: 0 0 30%; min-width: 30%; }
.gh-content .kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.gh-content .kg-callout-card { display: flex; gap: 12px; margin: 1.6em 0; padding: 18px 20px; border-radius: var(--radius); font-family: var(--sans); background: var(--bg-soft); }
.gh-content .kg-callout-emoji { font-size: 20px; line-height: 1.5; padding-right: 2px; }
.gh-content .kg-callout-text { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.gh-content .kg-callout-card-grey, .gh-content .kg-callout-card-white { background: var(--bg-soft); }
.gh-content .kg-callout-card-accent { background: var(--ink); }
.gh-content .kg-callout-card-accent .kg-callout-text { color: #fff; }

/* Toggle card */
.gh-content .kg-toggle-card { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.gh-content .kg-toggle-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; margin: 0; }
.gh-content .kg-toggle-heading-text { font-family: var(--sans); font-weight: 600; font-size: 18px; margin: 0; }
.gh-content .kg-toggle-card-icon { flex-shrink: 0; width: 24px; height: 24px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; transition: transform .2s ease; }
.gh-content .kg-toggle-card-icon svg { width: 100%; height: 100%; }
.gh-content .kg-toggle-content { margin-top: 12px; }
.gh-content .kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }
.gh-content .kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon { transform: rotate(180deg); }

/* Embed card (video / social) */
.gh-content .kg-embed-card { display: flex; flex-direction: column; align-items: center; margin: 1.8em 0; }
.gh-content .kg-embed-card iframe { max-width: 100%; border-radius: var(--radius); }

/* File card */
.gh-content .kg-file-card { margin: 1.6em 0; }
.gh-content .kg-file-card-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.gh-content .kg-file-card-container:hover { border-color: #d6d6d2; }
.gh-content .kg-file-card-title { font-family: var(--sans); font-weight: 600; font-size: 16px; }
.gh-content .kg-file-card-caption { font-size: 14px; color: var(--gray); margin-top: 2px; }

/* Audio card */
.gh-content .kg-audio-card { display: flex; align-items: center; gap: 14px; margin: 1.6em 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); }

/* Video card */
.gh-content .kg-video-card { margin: 1.8em 0; }
.gh-content .kg-video-container { border-radius: var(--radius); overflow: hidden; }

/* Product card */
.gh-content .kg-product-card-container { display: flex; flex-direction: column; gap: 8px; margin: 1.6em 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); }
.gh-content .kg-product-card-title { font-weight: 600; font-size: 18px; }
.gh-content .kg-product-card-description { color: var(--gray); font-size: 15px; }

/* Header card */
.gh-content .kg-header-card { margin: 2em 0; padding: 56px 40px; border-radius: var(--radius); text-align: center; background: var(--bg-soft); }
.gh-content .kg-header-card-heading { font-size: 34px; margin-bottom: 12px; }
.gh-content .kg-header-card-subheading { color: var(--gray); font-size: 18px; }

/* Signup card */
.gh-content .kg-signup-card { border-radius: var(--radius); }
.gh-content .kg-signup-card-button { background: var(--ink); color: #fff; border-radius: 999px; font-family: var(--sans); font-weight: 600; }

/* Pull quote (alternate blockquote) */
.gh-content .kg-blockquote-alt { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; text-align: center; color: var(--ink); border: 0; padding: 0; margin: 1.6em auto; max-width: 92%; }

/* Tables */
.gh-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; margin: 1.8em 0; }
.gh-content th, .gh-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.gh-content th { background: var(--bg-soft); font-weight: 600; }

/* Shared captions */
.gh-content .kg-card figcaption { text-align: center; font-family: var(--sans); font-size: 14px; color: var(--gray); padding-top: 10px; }

/* ---------- post page: two-column (DoorDash-style) ---------- */
.post { padding-top: 48px; }
.post-hero {
    display: grid; grid-template-columns: 1fr 1.05fr;
    gap: 56px; align-items: center; margin-bottom: 56px;
}
.post-title { font-size: 44px; line-height: 1.1; margin-bottom: 20px; }
.post-dek { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--gray); margin-bottom: 22px; }
.post-hero-meta { display: flex; gap: 20px; font-size: 14px; color: var(--gray); }
.post-hero-meta .meta-item { display: inline-flex; align-items: center; gap: 7px; }
.post-hero-meta svg { width: 15px; height: 15px; opacity: .65; }
.post-hero-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.post-body {
    display: grid; grid-template-columns: minmax(0, 1fr) 290px;
    gap: 60px; align-items: start; padding-bottom: 16px;
}
.post-main .gh-content { max-width: 760px; }
.post-main .kg-width-wide, .post-main .kg-width-full {
    width: 100%; max-width: 100%; margin-left: 0; transform: none; border-radius: var(--radius);
}

.post-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 30px; }
.sidebar-label {
    display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--gray); margin-bottom: 14px;
}
.sidebar-block .share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pill {
    display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink);
    border: 1px solid var(--line); border-radius: 7px; padding: 7px 13px;
    transition: border-color .15s ease, background .15s ease;
}
.topic-pill:hover { border-color: var(--ink); background: var(--bg-soft); }
.author-mini { display: flex; align-items: flex-start; gap: 12px; }
.author-mini-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.author-mini-name:hover { color: var(--gray); }
.author-mini-bio { margin: 6px 0 0; font-size: 14px; color: var(--gray); line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (max-width: 920px) {
    .featured-inner { grid-template-columns: 1fr; gap: 28px; }
    .featured-title { font-size: 34px; }
    .article-title { font-size: 36px; }
    .post-hero { grid-template-columns: 1fr; gap: 26px; margin-bottom: 36px; }
    .post-title { font-size: 34px; }
    .post-body { grid-template-columns: 1fr; gap: 40px; }
    .post-main .gh-content { max-width: 100%; }
    .post-sidebar { position: static; top: auto; }
}
@media (max-width: 640px) {
    body { font-size: 17px; }
    .container { padding: 0 20px; }
    .carousel-arrow { display: none; }
    .carousel-track { grid-auto-columns: 80%; }
    .post-grid { grid-template-columns: 1fr; gap: 28px; }
    .featured { padding: 32px 0 28px; }
    .post-feed { padding: 36px 0 48px; }
    .article { padding-top: 32px; }
    .article-title, .post-title, .featured-title { font-size: 27px; line-height: 1.18; }
    .article-subtitle, .post-dek, .featured-excerpt { font-size: 18px; }
    .spotlight-title { font-size: 26px; }
    .subscribe-cta-title { font-size: 26px; }
    .read-more-title, .article-comments-title { font-size: 22px; }
    .post { padding-top: 28px; }
    .gh-content { font-size: 18px; }
    .gh-content h2 { font-size: 25px; }
    .article-image { padding: 0 20px; }
    .site-footer-inner { flex-direction: column; gap: 28px; }
    /* keep the header from overflowing on small screens */
    .site-header-inner { gap: 14px; }
    .header-subscribe { padding: 9px 15px; font-size: 14px; }
    .meta-row { flex-wrap: wrap; row-gap: 4px; }
}
