/* =========================================================================
   SeekOut Guides (/guides/ and /guides/{slug}/), loaded on those pages only
   by inc/guides.php. Versioned by file time, so a change here needs no
   SEEKOUT_VERSION bump.

   Built on the October 2026 visual upgrade (the pages carry .so-upgraded):
   Indigo banner, GT Alpina display type, Lilac and Aubergine accents, gray
   tiles. Every class is prefixed gd- (seekout.css styles .step and the bare
   nav element globally, so neither is used here).
   ========================================================================= */

.page-guide,
.page-guides-hub {
    --gd-ink: #21003b;
    --gd-aubergine: #4f0064;
    --gd-lilac: #ebdeff;
    --gd-lavender: #d8b3ff;
    --gd-vanilla: #fff9f1;
    --gd-tile: #f5f5f5;
    --gd-line: #e5e5e5;
    --gd-muted: #525252;
    --gd-soft: #737373;
    --gd-radius: 16px;
    --gd-display: var(--so-display, 'SeekOut Display', Georgia, 'Times New Roman', serif);
}

.page-guide [id] { scroll-margin-top: 150px; }   /* the site header plus the pinned contents bar */

/* ---------- Preview banner (editors only) ---------- */
.gd-preview {
    max-width: 1100px;
    margin: 1rem auto;
    padding: 0.85rem 1.25rem;
    background: var(--gd-lilac);
    color: var(--gd-aubergine);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.page-guide > .gd-preview { margin: 1rem 2rem; max-width: none; }

/* ---------- Hero: the upgraded Indigo banner, edge to edge ---------- */
.gd-hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--gd-ink);
    color: var(--gd-lilac);
    padding: clamp(2.25rem, 5vw, 4.25rem) clamp(1.25rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.5rem);
}
.gd-hero > :not(.strands-bg) { position: relative; z-index: 1; }
.gd-hero-inner {
    max-width: calc(1100px - 4rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}
.gd-hero-inner.has-art { grid-template-columns: minmax(0, 1fr) 340px; }
.gd-hero-art img { display: block; width: 100%; height: auto; }

.gd-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
    font-size: 0.8rem;
    color: var(--gd-lavender);
}
.gd-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.gd-crumbs li + li::before { content: '/'; color: #7a5a95; margin-right: 0.35rem; }
.gd-crumbs a { color: var(--gd-lilac); text-decoration: none; }
.gd-crumbs a:hover { color: #fff; text-decoration: underline; }
.gd-crumbs [aria-current] { color: var(--gd-lavender); }
.gd-crumbs [aria-current] span {
    max-width: 42ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-hero .gd-eyebrow {
    margin-bottom: 1.1rem;
    background: var(--gd-aubergine);
    color: var(--gd-vanilla);
}
.gd-title {
    font-family: var(--gd-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.6vw, 3.05rem);
    line-height: 1.1;
    letter-spacing: -0.012em;
    color: var(--gd-vanilla);
    margin: 0;
    text-wrap: balance;
}
.gd-dek {
    margin: 1.1rem 0 0;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--gd-lilac);
    max-width: 62ch;
}

/* ---------- Layout: contents on top, then the article at full width (as on the e-book pages) ---------- */
.gd-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem 1rem;
}
.gd-article { min-width: 0; }

/* Contents: a full-width tile under the hero, numbered, with the demo card beside it */
.gd-toc {
    background: var(--gd-tile);
    border-radius: 18px;
    padding: 1.3rem 1.6rem 1.15rem;
    margin: 0 0 2.75rem;
}
.gd-toc > summary {
    list-style: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gd-aubergine);
    margin: 0 0 1rem;
}
.gd-toc > summary::-webkit-details-marker { display: none; }
.gd-toc-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 2.25rem;
    align-items: start;
}
.gd-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3;
    column-gap: 2rem;
    counter-reset: gdtoc;
}
.gd-toc-list li {
    break-inside: avoid;
    counter-increment: gdtoc;
    display: flex;
    gap: 0.6rem;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}
.gd-toc-list li::before {
    content: counter(gdtoc);
    flex: 0 0 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: #fff;
    color: var(--gd-aubergine);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gd-toc-list a { color: var(--gd-ink); text-decoration: none; font-weight: 500; }
.gd-toc-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gd-toc-cta {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.1rem;
}
.gd-toc-cta p { margin: 0 0 0.2rem; font-size: 0.9rem; color: var(--gd-muted); line-height: 1.45; }
.gd-toc-cta .gd-toc-cta-title { font-weight: 700; color: var(--gd-ink); }
.gd-toc-cta .btn { margin-top: 0.8rem; width: 100%; }

/* Pinned contents bar: shows under the site header once the tile above has scrolled
   away, and hides at the end of the article (script in guides/views/single.php).
   Without JavaScript it never shows, and the tile at the top does the job. */
.gd-tocbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    z-index: 990;   /* under the header (9999), its menus (10000) and the phone menu (999) */
    padding: 0 max(2rem, calc((100% - 1036px) / 2));
    background: #fff;
    border-bottom: 1px solid var(--gd-line);
    box-shadow: 0 10px 24px -18px rgba(33, 0, 59, 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.gd-tocbar.is-shown {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.gd-tocbar-inner { display: flex; align-items: center; gap: 1rem; height: 54px; }
.gd-tocbar-menu { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; }
.gd-tocbar-menu > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
    cursor: pointer;
    min-width: 0;
}
.gd-tocbar-menu > summary::-webkit-details-marker { display: none; }
.gd-tocbar-label {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gd-aubergine);
}
.gd-tocbar-current {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gd-ink);
}
.gd-tocbar-chev { flex: 0 0 auto; width: 16px; height: 16px; color: var(--gd-aubergine); transition: transform 0.2s ease; }
.gd-tocbar-menu[open] .gd-tocbar-chev { transform: rotate(180deg); }
.gd-tocbar-list {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: min(460px, calc(100vw - 2.5rem));
    max-height: min(70vh, 560px);
    overflow-y: auto;
    margin: 0;
    padding: 0.55rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--gd-line);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px -18px rgba(33, 0, 59, 0.35);
    counter-reset: gdtocbar;
}
.gd-tocbar-list li { counter-increment: gdtocbar; margin: 0; }
.gd-tocbar-list a {
    display: flex;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    color: var(--gd-ink);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}
.gd-tocbar-list a::before {
    content: counter(gdtocbar);
    flex: 0 0 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--gd-tile);
    color: var(--gd-aubergine);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gd-tocbar-list a:hover { background: var(--gd-tile); }
.gd-tocbar-list a[aria-current] { background: var(--gd-lilac); font-weight: 600; }
.gd-tocbar-list a[aria-current]::before { background: var(--gd-ink); color: var(--gd-vanilla); }
.gd-tocbar-count { flex: 0 0 auto; font-size: 0.8rem; color: var(--gd-soft); font-variant-numeric: tabular-nums; }

/* ---------- Article typography ---------- */
.gd-article { font-size: 1.05rem; line-height: 1.8; color: #2f203b; }
.gd-article > h2,
.gd-article .gd-faq > h2 {
    font-family: var(--gd-display);
    font-weight: 400;
    font-size: clamp(1.7rem, 2.4vw, 2rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--gd-ink);
    margin: 3.25rem 0 1rem;
    text-wrap: pretty;   /* fill the first line; only avoid a one-word last line */
}
.gd-article > h2:first-child { margin-top: 0.5rem; }
.gd-article h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gd-ink);
    margin: 2.1rem 0 0.7rem;
}
.gd-article h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--gd-ink);
    margin: 1.4rem 0 0.4rem;
}
.gd-article p { margin: 0 0 1.25rem; }
.gd-article ul,
.gd-article ol { margin: 0.75rem 0 1.5rem 1.35rem; padding: 0; }
.gd-article li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.gd-article li > ul,
.gd-article li > ol { margin-top: 0.5rem; margin-bottom: 0.25rem; }
.gd-article a { color: var(--gd-ink); text-decoration: underline; text-decoration-color: var(--gd-lavender); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.gd-article a:hover { text-decoration-color: var(--gd-ink); }
.gd-article strong { color: var(--gd-ink); }

/* Research notes and the "In brief" box */
.gd-notes {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gd-muted);
    padding: 0.85rem 1.1rem;
    border: 1px dashed var(--gd-line);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.gd-notes p { margin: 0; }
.gd-notes p + p { margin-top: 0.4rem; }

.gd-brief {
    background: var(--gd-tile);
    border-radius: var(--gd-radius);
    padding: 1.5rem 1.6rem 0.4rem;
    margin: 0 0 2.25rem;
    border-left: 4px solid var(--gd-ink);
}
.gd-brief-label,
.gd-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gd-aubergine);
    margin: 0 0 0.6rem !important;
}
.gd-brief p { font-size: 1.06rem; }

/* ---------- Tables ---------- */
.gd-table-wrap {
    position: relative;
    margin: 1.5rem 0 2rem;
    overflow-x: auto;
    border: 1px solid var(--gd-line);
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
    /* Shadows at an edge that has more columns past it (they scroll away with the content) */
    background:
        linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
        linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(33, 0, 59, 0.16), rgba(33, 0, 59, 0)) left center / 16px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(33, 0, 59, 0.16), rgba(33, 0, 59, 0)) right center / 16px 100% no-repeat scroll,
        #fff;
}
.gd-table-wrap:focus { outline: 2px solid var(--gd-lavender); outline-offset: 2px; }
.gd-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    min-width: 640px;
}
.gd-table th,
.gd-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--gd-line);
}
.gd-table thead th {
    background: var(--gd-ink);
    color: var(--gd-vanilla);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    white-space: normal;
    position: sticky;
    top: 0;
}
.gd-table thead th strong { color: var(--gd-vanilla); }
.gd-table tbody th {
    font-weight: 700;
    color: var(--gd-ink);
    background: #fafafa;
    min-width: 140px;
}
.gd-table tbody tr:last-child th,
.gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-table td { color: #2f203b; min-width: 150px; }
.gd-table p { margin: 0 0 0.5rem; }
.gd-table p:last-child { margin-bottom: 0; }
.gd-table a { word-break: break-word; }
.gd-table-wide tbody th { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--gd-line); }

/* ---------- Shortlist: one card per tool ---------- */
.gd-tool {
    border: 1px solid var(--gd-line);
    border-radius: 18px;
    padding: 1.6rem 1.75rem 0.75rem;
    margin: 1.75rem 0;
    background: #fff;
    box-shadow: 0 10px 40px -18px rgba(33, 0, 59, 0.12);
}
.gd-article .gd-tool-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    font-size: 1.4rem;
}
.gd-tool-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--gd-ink);
    color: var(--gd-vanilla);
    font-size: 1rem;
    font-weight: 700;
}
.gd-tool h4 {
    font-size: 0.74rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--gd-aubergine);
    margin: 1.4rem 0 0.55rem;
}
.gd-sub > :last-child { margin-bottom: 1rem; }
.gd-sub-features ul,
.gd-checklist { list-style: none; margin-left: 0 !important; }
.gd-sub-features li,
.gd-checklist li {
    position: relative;
    padding-left: 1.85rem;
}
.gd-sub-features li::before,
.gd-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--gd-lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f0064' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}
.gd-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
}
.gd-proscons > .gd-sub {
    background: var(--gd-tile);
    border-radius: 14px;
    padding: 0.2rem 1.1rem 0.4rem;
}
.gd-proscons h4 { display: flex; align-items: center; gap: 0.5rem; }
.gd-proscons h4::before {
    content: '';
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--gd-ink) center / 0.7rem no-repeat;
}
.gd-sub-pros h4::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff9f1' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.gd-sub-cons h4::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff9f1' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.gd-proscons p,
.gd-proscons li { font-size: 0.95rem; }
.gd-sub-pricing {
    border-top: 1px solid var(--gd-line);
    margin-top: 0.5rem;
}

/* ---------- FAQ (site accordion, set in the article column) ---------- */
.gd-article .gd-faq {
    max-width: none;
    padding: 0;
    margin: 3.25rem 0 0;
}
.gd-article .gd-faq > h2 { text-align: left; margin-bottom: 1.25rem; }
.gd-faq .faq-trigger { font-size: 1.02rem; line-height: 1.45; padding: 1.15rem 0; }
.gd-faq .faq-answer > :last-child { padding-bottom: 1.25rem; margin-bottom: 0; }
.gd-faq .faq-answer p { font-size: 0.98rem; color: #404040; }

/* ---------- Share ---------- */
.gd-article .gd-share { margin-top: 2.5rem; }

/* ---------- Cards (hub and related) ---------- */
.gd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.gd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.gd-card:hover { box-shadow: 0 14px 34px -14px rgba(33, 0, 59, 0.22); transform: translateY(-2px); border-color: var(--gd-lavender); }
.gd-card-img { display: block; aspect-ratio: 16 / 9; background: var(--gd-ink); overflow: hidden; }
.gd-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gd-card-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.gd-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--gd-aubergine);
}
.gd-card .gd-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--gd-ink);
    margin: 0;
}
.gd-card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--gd-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gd-card-meta { margin-top: auto; padding-top: 0.35rem; font-size: 0.8rem; color: var(--gd-soft); }

.gd-related {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fafafa;
    border-top: 1px solid var(--gd-line);
    padding: 3.5rem 2rem 3rem;
    margin-top: 3rem;
}
.gd-related-inner { max-width: 1100px; margin: 0 auto; }
.gd-related h2 {
    font-family: var(--gd-display);
    font-weight: 400;
    font-size: 2rem;
    color: var(--gd-ink);
    margin: 0 0 1.5rem;
}
.gd-all { margin: 1.5rem 0 0; font-weight: 600; }
.gd-all a { color: var(--gd-ink); }

/* Hub */
.gd-hub-list { padding: 3rem 2rem 4rem; }
.gd-hub-inner { max-width: 1100px; margin: 0 auto; }
.gd-hub-list .gd-preview { margin: 0 0 1.5rem; }

/* =========================================================================
   Enhancements: figures built from each article's own content (see the
   build pipeline's catalog files). All text, no pictures of text.
   ========================================================================= */

.gd-fig {
    margin: 2rem 0 2.25rem;
    padding: 1.5rem 1.6rem 1.4rem;
    border: 1px solid var(--gd-line);
    border-radius: 18px;
    background: #fff;
}
.gd-fig > figcaption,
.gd-fig-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--gd-ink);
    margin: 0 0 1.1rem;
    line-height: 1.4;
}
.gd-fig-note {
    margin: 1rem 0 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.5;
    color: var(--gd-soft);
}

/* Flow: numbered steps joined by chevrons */
.gd-flow {
    list-style: none;
    margin: 0 !important;
    padding: 0;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 1.6rem;
    counter-reset: gdflow;
}
.gd-flow > li {
    position: relative;
    margin: 0;
    padding: 1rem 1.05rem 1.1rem;
    background: var(--gd-tile);
    border-radius: 14px;
    counter-increment: gdflow;
}
.gd-flow > li::before {
    content: counter(gdflow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--gd-ink);
    color: var(--gd-vanilla);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}
.gd-flow > li + li::after {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 1.4rem;
    width: 0.9rem;
    height: 0.9rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f0064' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4l8 8-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gd-flow-label { display: block; font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--gd-ink); font-size: 0.98rem; line-height: 1.35; }
.gd-flow-text { display: block; margin-top: 0.35rem; font-size: 0.88rem; line-height: 1.5; color: var(--gd-muted); }

/* Stat strip: numbers set in GT Alpina, with what they do and do not show */
.gd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.gd-stat { background: var(--gd-tile); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; }
.gd-stat-value {
    display: block;
    font-family: var(--gd-display);
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    line-height: 1.05;
    color: var(--gd-aubergine);
}
.gd-stat-from { font-size: 0.6em; color: var(--gd-soft); }
.gd-stat-long .gd-stat-value { font-size: 1.3rem; line-height: 1.2; padding-top: 0.35rem; }
.gd-stats-single { display: block; }
.gd-stats-single .gd-stat { display: flex; align-items: center; gap: 1.4rem; padding: 1.1rem 1.4rem; }
.gd-stats-single .gd-stat-value { flex: 0 0 auto; }
.gd-stats-single .gd-stat-label { margin-top: 0; font-size: 0.95rem; max-width: 60ch; }
.gd-stat-label { display: block; margin-top: 0.45rem; font-size: 0.86rem; line-height: 1.45; color: #404040; }

/* Weight bars: the editorial rubric at a glance */
.gd-bars { list-style: none; margin: 0 !important; padding: 0; display: grid; gap: 0.7rem; }
.gd-bars li { margin: 0; display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 3rem; align-items: center; gap: 0.9rem; font-size: 0.9rem; }
.gd-bar-label { color: var(--gd-ink); font-weight: 600; line-height: 1.35; }
.gd-bar-track { height: 0.7rem; background: #ececec; border-radius: 999px; overflow: hidden; }
.gd-bar-fill { display: block; height: 100%; background: var(--gd-ink); border-radius: 999px; }
.gd-bar-value { text-align: right; font-weight: 700; color: var(--gd-aubergine); font-variant-numeric: tabular-nums; }

/* Compare: two (or three) panels side by side */
.gd-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.gd-panel { background: var(--gd-tile); border-radius: 14px; padding: 1.1rem 1.2rem 0.6rem; }
.gd-panel-title { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--gd-ink); margin: 0 0 0.45rem !important; font-size: 1rem; line-height: 1.35; }
.gd-panel-sub { font-size: 0.82rem !important; color: var(--gd-soft); margin: 0 0 0.7rem !important; }
.gd-panel ul { list-style: none; margin: 0 0 0.6rem !important; }
.gd-panel li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.45rem; }
.gd-panel li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--gd-aubergine); }

/* Callouts */
.gd-callout {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    margin: 1.75rem 0 2rem;
    padding: 1.1rem 1.25rem 0.35rem 1.1rem;
    background: var(--gd-tile);
    border-radius: 14px;
}
.gd-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gd-ink);
    color: var(--gd-vanilla);
}
.gd-callout-icon svg { width: 1.45rem; height: 1.45rem; }
.gd-callout-title { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--gd-ink); margin: 0.2rem 0 0.35rem !important; font-size: 0.98rem; }
.gd-callout p { font-size: 0.95rem; line-height: 1.65; margin-bottom: 0.85rem; }
.gd-callout-key { background: var(--gd-lilac); }
.gd-callout-key .gd-callout-icon { background: var(--gd-aubergine); }

/* Pull quote: the site's featured-quote treatment */
.gd-quote {
    margin: 2.25rem 0 2.5rem;
    padding: 0.25rem 0 0.25rem 2.6rem;
    position: relative;
}
.gd-quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -0.65rem;
    font-family: var(--gd-display);
    font-size: 4.2rem;
    line-height: 1;
    color: #ff7d00;
}
.gd-quote p {
    font-family: var(--gd-display);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
    line-height: 1.3 !important;
    color: var(--gd-ink);
    margin: 0 !important;
    text-wrap: balance;
}
.gd-quote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.85rem; color: var(--gd-soft); }

/* Six or more steps: a grid of numbered tiles instead of one row */
.gd-flow.gd-flow-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-flow.gd-flow-grid > li + li::after { display: none; }

/* In-place treatments for the article's own paragraphs and lists */
.gd-article p.gd-disclosure {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #404040;
    background: var(--gd-tile);
    border-radius: 12px;
    padding: 0.95rem 1.15rem;
}
.gd-article ul.gd-tiles {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.gd-article ul.gd-tiles > li {
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--gd-tile);
    border-radius: 14px;
    font-size: 0.94rem;
    line-height: 1.6;
}
.gd-article ul.gd-tiles.gd-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-article ul.gd-flowlist {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 1.6rem;
}
.gd-article ul.gd-flowlist > li {
    position: relative;
    margin: 0;
    padding: 1rem 1.05rem;
    background: var(--gd-tile);
    border-radius: 14px;
    font-size: 0.93rem;
    line-height: 1.55;
}
.gd-article ul.gd-flowlist > li + li::after {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 1.15rem;
    width: 0.9rem;
    height: 0.9rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f0064' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4l8 8-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Numbered steps on an existing list */
.gd-article .gd-steps { list-style: none; margin-left: 0; counter-reset: gdstep; }
.gd-steps > li { position: relative; padding-left: 2.6rem; counter-increment: gdstep; min-height: 1.9rem; }
.gd-steps > li::before {
    content: counter(gdstep);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--gd-ink);
    color: var(--gd-vanilla);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Responsive ---------- */
@media (min-width: 761px) {
    .gd-toc > summary { pointer-events: none; }   /* the tile stays open on wider screens */
}
@media (max-width: 1024px) {
    .gd-toc-inner { grid-template-columns: minmax(0, 1fr); }
    .gd-toc-list { columns: 2; }
    .gd-toc-cta { display: none; }
    .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gd-hero-inner.has-art { grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 760px) {
    .gd-hero-inner.has-art { grid-template-columns: minmax(0, 1fr); }
    .gd-hero-art { display: none; }
    .gd-body { padding: 1.5rem 1.25rem 0.5rem; }
    .gd-toc { padding: 0.95rem 1.1rem; margin-bottom: 2rem; }
    .gd-toc > summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; }
    .gd-toc[open] > summary { margin-bottom: 0.9rem; }
    .gd-toc > summary::after { content: '+'; font-size: 1.1rem; color: var(--gd-aubergine); }
    .gd-toc[open] > summary::after { content: '\2212'; }
    .gd-toc-list { columns: 1; }
    .gd-tocbar { padding: 0 1.25rem; }
    /* Phones: each table row becomes a card (row name as its title, every column as a
       labeled line), instead of a narrow window onto a wide grid */
    .gd-table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
    .gd-table,
    .gd-table tbody,
    .gd-table tr,
    .gd-table th,
    .gd-table td { display: block; width: 100%; min-width: 0; }
    .gd-table { min-width: 0; font-size: 0.92rem; }
    .gd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .gd-table tbody tr {
        border: 1px solid var(--gd-line);
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        margin: 0 0 1rem;
    }
    .gd-table tbody th,
    .gd-table-wide tbody th {
        position: static;
        box-shadow: none;
        background: var(--gd-ink);
        color: var(--gd-vanilla);
        padding: 0.8rem 1rem;
        border-bottom: 0;
    }
    .gd-table tbody th a,
    .gd-table tbody th strong { color: var(--gd-vanilla); text-decoration-color: rgba(255, 249, 241, 0.5); }
    .gd-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gd-line); }
    .gd-table tbody tr td:last-child { border-bottom: 0; }
    .gd-table tbody tr:last-child th { border-bottom: 0; }
    .gd-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--gd-aubergine);
    }
    .gd-grid { grid-template-columns: minmax(0, 1fr); }
    .gd-proscons { grid-template-columns: minmax(0, 1fr); }
    .gd-tool { padding: 1.25rem 1.15rem 0.5rem; }
    .gd-article .gd-tool-title { font-size: 1.22rem; }
    .gd-flow,
    .gd-flow.gd-flow-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .gd-flow > li + li::after { left: 1.15rem; top: -0.85rem; transform: rotate(90deg); width: 0.75rem; height: 0.75rem; }
    .gd-article ul.gd-flowlist { grid-auto-flow: row; grid-auto-columns: auto; gap: 1rem; }
    .gd-article ul.gd-flowlist > li + li::after { left: 1.15rem; top: -0.85rem; transform: rotate(90deg); width: 0.75rem; height: 0.75rem; }
    .gd-article ul.gd-tiles,
    .gd-article ul.gd-tiles.gd-tiles-3 { grid-template-columns: minmax(0, 1fr); }
    .gd-bars li { grid-template-columns: minmax(0, 1fr) 3rem; }
    .gd-bar-track { grid-column: 1 / -1; grid-row: 2; }
    .gd-fig { padding: 1.15rem 1.1rem 1.1rem; }
    .gd-related { padding: 2.5rem 1.25rem 2rem; }
    .gd-hub-list { padding: 2rem 1.25rem 3rem; }
    .gd-crumbs [aria-current] span { max-width: 24ch; }
}
@media (prefers-reduced-motion: reduce) {
    .gd-card { transition: none; }
    .gd-card:hover { transform: none; }
}
