/* Firefly Collective — "Guild Hall": the crest, the Stack, technology pages and the Watch.
 * Loaded after _core_sections.css, so the guild's voice wins where the two meet:
 * heavier display type, square corners, crests instead of a round seal. */

/* ---------- Guild voice ------------------------------------------------- */
.fcg-page h1, .editor-styles-wrapper h1 { font-weight: 700; letter-spacing: -0.012em; }
.fcg-page h2, .editor-styles-wrapper h2 { font-weight: 600; letter-spacing: -0.01em; }
.fcg-page h3, .editor-styles-wrapper h3 { font-weight: 600; }
.fcg-page .is-style-fcg-roles { font-family: var(--fcg-font-display); font-size: var(--fcg-step-2); font-weight: 500; letter-spacing: 0.02em; color: var(--fcg-lantern); word-spacing: 0.5em; }
.fcg-page-hero .fcg-signup__form, .fcg-page-hero .wp-block-firefly-fcg-signup-form { max-width: 620px; margin: var(--fcg-space-5) auto 0; text-align: left; }
.fcg-page-hero .fcg-form__privacy { color: var(--fcg-on-hall-muted); }

/* ---------- The crest (fcg_crest(), models/stack.php) -------------------- */
.fcg-crest { display: inline-block; width: 64px; aspect-ratio: 80 / 92; flex: none; line-height: 0; }
.fcg-crest svg { width: 100%; height: 100%; overflow: visible; }
.fcg-crest__field { fill: var(--fcg-hall-deep); stroke: var(--fcg-copper); stroke-width: 2.2; }
.fcg-crest__inner { fill: none; stroke: var(--fcg-copper-soft); stroke-width: 0.9; stroke-opacity: 0.55; }
.fcg-crest__mark { fill: var(--fcg-lantern); font-family: var(--fcg-font-display); font-weight: 700; letter-spacing: 0.02em; }
.fcg-crest__light circle { fill: var(--fcg-lantern); }
.fcg-crest__light .fcg-crest__halo { fill: var(--fcg-lantern); opacity: 0.22; }
.fcg-crest__courses rect { fill: var(--fcg-copper); }
.fcg-motion .fcg-crest__halo { animation: fcg-glow 4.5s ease-in-out infinite; transform-origin: 40px 33px; }
@keyframes fcg-glow { 50% { opacity: 0.08; transform: scale(0.82); } }
@media (prefers-reduced-motion: reduce) { .fcg-motion .fcg-crest__halo { animation: none; } }

/* The seal is a crest now (fcg_sigil() calls fcg_crest()). */
.fcg-sigil { aspect-ratio: 80 / 92; width: var(--_s, 48px); }
.fcg-sigil.fcg-crest svg { position: static; }
.fcg-brand .fcg-sigil { width: 36px; }
.fcg-sigil--lg::after { display: none; }
.fcg-motion .fcg-sigil--lg svg { animation: none; }

/* ---------- The Stacks: crest cards (fcg-stack) -------------------------- */
/* Each card spans four rows of the grid and shares them (subgrid), so in any row of cards the
   crests, names, roles and footers line up whatever their length. The flourish is static paint
   (gradients, rules, one clip-path); only hover moves anything, by transform. */
.fcg-stack { display: grid; gap: var(--fcg-space-7); }
.fcg-stack__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(44%, 216px), 1fr));
    column-gap: var(--fcg-space-4); row-gap: var(--fcg-space-5); }
.fcg-crestcard { --_frame: color-mix(in oklab, var(--fcg-copper) 55%, transparent);
    position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; text-align: center;
    grid-template-columns: minmax(0, 1fr); min-width: 0;   /* the card's column never grows past its grid cell, whatever its text */
    background: var(--fcg-surface);
    border: 1px solid var(--fcg-line-strong); border-radius: var(--fcg-radius);
    outline: 1px solid var(--_frame); outline-offset: -6px;   /* the inner frame: an outline paints far cheaper than inset shadows */
    box-shadow: 0 1px 0 rgba(26, 8, 9, 0.08);
    transition: outline-color var(--fcg-med), border-color var(--fcg-med); }
.fcg-crestcard::before, .fcg-crestcard::after { /* copper studs in the two lower corners of the frame */
    content: ""; position: absolute; bottom: 9px; width: 7px; height: 7px; background: var(--fcg-copper); transform: rotate(45deg); opacity: 0.8; }
.fcg-crestcard::before { left: 9px; } .fcg-crestcard::after { right: 9px; }
.fcg-crestcard__banner { /* the hanging banner: oxblood, a faint starfield, cut in a swallowtail */
    position: relative; margin: 6px 6px 0; padding: var(--fcg-space-4) 0 var(--fcg-space-6);
    background:
        radial-gradient(1px 1px at 18% 30%, rgba(248, 238, 219, 0.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 22%, rgba(248, 238, 219, 0.45) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 64% 62%, rgba(246, 196, 83, 0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 32% 70%, rgba(248, 238, 219, 0.35) 50%, transparent 51%),
        radial-gradient(60% 70% at 50% 42%, color-mix(in oklab, var(--fcg-lantern) 22%, transparent), transparent 70%),
        linear-gradient(180deg, var(--fcg-hall-2), var(--fcg-hall-deep));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 18px), 0 100%);
    border-top: 3px solid var(--fcg-copper); }
.fcg-crestcard__tier { position: absolute; top: 8px; left: 12px; font-family: var(--fcg-font-display); font-style: italic; font-weight: 600;
    font-size: var(--fcg-step--1); letter-spacing: 0.04em; color: var(--fcg-copper-soft); }
.fcg-crestcard__crest { width: 64px; margin-inline: auto; display: block; transition: transform var(--fcg-med) var(--fcg-ease-out); }
.fcg-crestcard__name { align-self: end; margin: var(--fcg-space-3) var(--fcg-space-4) 0; font-size: var(--fcg-step-1); line-height: 1.15; text-wrap: balance; }
.fcg-crestcard__name a { color: inherit; text-decoration: none; }
.fcg-crestcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole card is the link */
.fcg-crestcard__name a:focus-visible { outline: none; }
.fcg-crestcard:focus-within { outline: 2px solid var(--fcg-copper-ink); outline-offset: 3px; }
.fcg-crestcard__role { align-self: start; margin: var(--fcg-space-2) var(--fcg-space-4) 0; font-family: var(--fcg-font-display); font-style: italic;
    font-size: var(--fcg-step--1); color: var(--fcg-muted); text-wrap: balance; }
.fcg-crestcard__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--fcg-space-2); margin: var(--fcg-space-4) 6px 6px;
    padding: var(--fcg-space-2) var(--fcg-space-4) var(--fcg-space-3); border-top: 1px solid var(--fcg-line);
    font-size: var(--fcg-step--2); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fcg-muted); }
.fcg-crestcard__watch { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.fcg-crestcard__watch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fcg-crestcard__watch.is-clear { color: #4f6b48; }
.fcg-crestcard__watch.is-open { color: #875a10; }   /* 5.6:1 on the card (was #a8741a, 3.8:1) */
.fcg-crestcard__watch.is-kev { color: #8f1d1d; }
.fcg-crestcard__watch.is-kev::before { box-shadow: 0 0 0 3px color-mix(in oklab, #8f1d1d 22%, transparent); }
.fcg-crestcard--t1 { --_frame: var(--fcg-copper); }   /* the foundation wears the brightest frame */
.fcg-crestcard.is-hot, .fcg-crestcard:focus-within { outline-color: var(--fcg-lantern); border-color: var(--fcg-copper); }
.fcg-crestcard.is-hot .fcg-crestcard__crest, .fcg-crestcard:focus-within .fcg-crestcard__crest { transform: translateY(-2px) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .fcg-crestcard, .fcg-crestcard__crest { transition: none; } }
/* Measured 2026-10-27 on /tech/ (138 cards) at 6x slowed CPU: a lift with a large blurred shadow on hover
   stalled the wheel; frame colour, crest scale, sheen and spotlight do not. */
@media (max-width: 560px) { .fcg-stack__grid { column-gap: var(--fcg-space-3); row-gap: var(--fcg-space-4); }
    .fcg-crestcard__crest { width: 52px; } .fcg-crestcard__name { font-size: var(--fcg-step-0); margin-inline: var(--fcg-space-3); }
    .fcg-crestcard__role { margin-inline: var(--fcg-space-3); }
    .fcg-crestcard__meta { flex-direction: column; gap: 2px; padding-inline: var(--fcg-space-2); } }
.fcg-stack__tier { display: grid; gap: var(--fcg-space-5); }
.fcg-stack__head { display: grid; grid-template-columns: auto 1fr; column-gap: var(--fcg-space-5); align-items: baseline; padding-bottom: var(--fcg-space-4); border-bottom: 2px solid var(--fcg-copper); }
.fcg-stack__num { grid-row: span 2; margin: 0; font-family: var(--fcg-font-display); font-size: var(--fcg-step-4); font-weight: 700; color: var(--fcg-copper-ink); line-height: 1; }
.fcg-stack__name { margin: 0; font-size: var(--fcg-step-3); }
.fcg-stack__text { margin: var(--fcg-space-1) 0 0; color: var(--fcg-muted); max-width: 60ch; }
@media (max-width: 560px) { .fcg-stack__head { grid-template-columns: 1fr; } .fcg-stack__num { grid-row: auto; font-size: var(--fcg-step-3); } }

/* ---------- A technology's banner (fcg-tech-hero) ----------------------- */
.fcg-techhero { position: relative; isolation: isolate; overflow: hidden; color: var(--fcg-on-hall); background: var(--fcg-hall-deep);
    padding: calc(var(--fcg-header-h) + var(--fcg-space-7)) var(--fcg-gutter) var(--fcg-space-7); }
.fcg-techhero__art { position: absolute; inset: 0; z-index: -1; }
.fcg-techhero__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.fcg-techhero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--fcg-hall-deep) 55%, transparent), var(--fcg-hall-deep) 92%); }
.fcg-techhero__inner { max-width: var(--fcg-wrap); margin: 0 auto; display: grid; gap: var(--fcg-space-4); }
.fcg-techhero__crumbs { display: flex; flex-wrap: wrap; gap: var(--fcg-space-2); font-size: var(--fcg-step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fcg-on-hall-muted); }
.fcg-techhero__crumbs a { color: var(--fcg-copper-soft); text-decoration: none; }
.fcg-techhero__crumbs a:hover { text-decoration: underline; }
.fcg-techhero__title { display: flex; align-items: center; gap: var(--fcg-space-5); }
.fcg-techhero__crest { width: clamp(84px, 12vw, 128px); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)); }
.fcg-techhero h1 { margin: 0; font-size: var(--fcg-step-6); line-height: 0.98; color: var(--fcg-vellum); text-wrap: balance; }
.fcg-techhero__role { margin: 0 0 var(--fcg-space-2); font-family: var(--fcg-font-display); font-style: italic; font-size: var(--fcg-step-2); color: var(--fcg-lantern); }
.fcg-techhero__lead { margin: 0; max-width: 62ch; font-family: var(--fcg-font-read); font-size: var(--fcg-step-1); line-height: 1.6; color: var(--fcg-on-hall); }
.fcg-facts { margin: var(--fcg-space-4) 0 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--fcg-hall-line); border-left: 1px solid var(--fcg-hall-line); }
.fcg-facts__item { flex: 1 1 170px; padding: var(--fcg-space-4); border-right: 1px solid var(--fcg-hall-line); border-bottom: 1px solid var(--fcg-hall-line); background: color-mix(in oklab, var(--fcg-hall-deep) 88%, transparent); }
.fcg-facts dt { font-size: var(--fcg-step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fcg-on-hall-muted); }
.fcg-facts dd { margin: var(--fcg-space-1) 0 0; font-family: var(--fcg-font-display); font-size: var(--fcg-step-2); font-weight: 600; color: var(--fcg-vellum); }
.fcg-facts small { display: block; margin-top: 2px; font-family: var(--fcg-font-body); font-size: var(--fcg-step--2); font-weight: 400; color: var(--fcg-on-hall-muted); }
@media (max-width: 560px) { .fcg-techhero__title { flex-direction: column; align-items: flex-start; gap: var(--fcg-space-3); } }

/* ---------- The Watch (fcg-advisories) ---------------------------------- */
.fcg-watch { display: grid; gap: var(--fcg-space-4); }
.fcg-watch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--fcg-space-3); }
.fcg-advisory { padding: var(--fcg-space-4) var(--fcg-space-5); background: var(--fcg-surface); border: 1px solid var(--fcg-line-strong); border-left: 4px solid var(--_sev, var(--fcg-line-strong)); border-radius: var(--fcg-radius); }
.fcg-advisory--critical { --_sev: #8f1d1d; }
.fcg-advisory--high { --_sev: #b4441a; }
.fcg-advisory--medium { --_sev: #a8741a; }
.fcg-advisory--low { --_sev: #4f6b48; }
.fcg-advisory__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fcg-space-2) var(--fcg-space-3); font-size: var(--fcg-step--1); color: var(--fcg-muted); }
.fcg-advisory__sev { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--fcg-step--2); color: var(--fcg-ink); }
.fcg-advisory__kev { padding: 2px 8px; border-radius: 2px; background: #8f1d1d; color: #fff; font-weight: 600; font-size: var(--fcg-step--2); letter-spacing: 0.06em; text-transform: uppercase; }
.fcg-advisory__tech { font-weight: 600; color: var(--fcg-copper-ink); text-decoration: none; }
.fcg-advisory__tech:hover { text-decoration: underline; }
.fcg-page .fcg-advisory__title, .editor-styles-wrapper .fcg-advisory__title { margin: var(--fcg-space-2) 0 var(--fcg-space-1); font-family: var(--fcg-font-body); font-size: var(--fcg-step-0); font-weight: 600; letter-spacing: 0; line-height: 1.45; }
.fcg-advisory__title a { color: var(--fcg-ink); text-decoration: none; }
.fcg-advisory__title a:hover { color: var(--fcg-copper-ink); text-decoration: underline; }
.fcg-advisory__ids { margin: 0; font-family: var(--fcg-font-mono); font-size: var(--fcg-step--2); color: var(--fcg-muted); overflow-wrap: anywhere; }
.fcg-advisory__fix { margin: var(--fcg-space-2) 0 0; font-size: var(--fcg-step--1); }
.fcg-advisory__fix strong { color: var(--fcg-copper-ink); }
.fcg-advisory__fix span { color: var(--fcg-muted); }
.fcg-watch__clear { display: flex; align-items: center; gap: var(--fcg-space-4); margin: 0; padding: var(--fcg-space-5); background: var(--fcg-surface); border: 1px solid var(--fcg-line-strong); border-radius: var(--fcg-radius); }
.fcg-watch__clearcrest { width: 44px; }
.fcg-watch__more, .fcg-watch__stamp { margin: 0; font-size: var(--fcg-step--1); color: var(--fcg-muted); }
.fcg-watch__stamp { font-style: italic; }
.fcg-sec--watch .fcg-wrap { display: grid; gap: var(--fcg-space-5); }

/* ---------- A technology's links (fcg-tech-links) ----------------------- */
.fcg-techlinks { padding: var(--fcg-space-5); border: 1px solid var(--fcg-copper); border-radius: var(--fcg-radius); background: var(--fcg-surface); }
.fcg-techlinks__label { margin: 0 0 var(--fcg-space-3); font-size: var(--fcg-step--2); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fcg-copper-ink); }
.fcg-techlinks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--fcg-space-2) var(--fcg-space-5); }
.fcg-techlinks a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--fcg-ink); text-decoration: none; }
.fcg-techlinks a:hover { color: var(--fcg-copper-ink); }
.fcg-techlinks svg { color: var(--fcg-copper-ink); }

/* ---------- Editor: server-drawn blocks keep their room ----------------- */
.editor-styles-wrapper .fcg-ed-ssr .fcg-crestcard__name a::after { display: none; }

/* ---------- The Stacks (fcg-stacks) and a technology's stacks ----------- */
.fcg-stacks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--fcg-space-4); }
.fcg-stackcard { position: relative; display: flex; flex-direction: column; gap: var(--fcg-space-3); padding: var(--fcg-space-5);
    background: var(--fcg-surface); border: 1px solid var(--fcg-line-strong); border-top: 3px solid var(--fcg-copper); border-radius: var(--fcg-radius);
    transition: transform var(--fcg-med) var(--fcg-ease-out), border-color var(--fcg-med); }
.fcg-stackcard:hover, .fcg-stackcard:focus-within { border-color: var(--fcg-copper); }
.fcg-stackcard:focus-within { outline: 2px solid var(--fcg-copper-ink); outline-offset: 3px; }
.fcg-stackcard__name { margin: 0; font-size: var(--fcg-step-2); }
.fcg-stackcard__name a { color: inherit; text-decoration: none; }
.fcg-stackcard__name a::after { content: ""; position: absolute; inset: 0; }
.fcg-stackcard__name a:focus-visible { outline: none; }
.fcg-stackcard__text { margin: 0; color: var(--fcg-muted); }
.fcg-stackcard__crests { display: flex; gap: 6px; margin-top: auto; }
.fcg-stackcard__crest { width: 32px; }
.fcg-stackcard__count { margin: 0; font-size: var(--fcg-step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fcg-copper-ink); }
.fcg-techhero__stacks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fcg-space-2); margin: 0; font-size: var(--fcg-step--1); }
.fcg-techhero__stacks span { letter-spacing: 0.12em; text-transform: uppercase; color: var(--fcg-on-hall-muted); margin-right: var(--fcg-space-2); }
.fcg-techhero__stacks a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--fcg-hall-line); border-radius: 2px; color: var(--fcg-copper-soft); text-decoration: none; }
.fcg-techhero__stacks a:hover { border-color: var(--fcg-copper); color: var(--fcg-vellum); }
.editor-styles-wrapper .fcg-ed-ssr .fcg-stackcard__name a::after { display: none; }
.fcg-techlinks__suggest { margin: var(--fcg-space-4) 0 0; padding-top: var(--fcg-space-3); border-top: 1px solid var(--fcg-line); font-size: var(--fcg-step--1); color: var(--fcg-muted); }
.fcg-techlinks__suggest a { color: var(--fcg-copper-ink); font-weight: 600; }
/* A button in a reading column sits on the column, not on the page edge. */
.fcg-page .fcg-prose > .wp-block-buttons { max-width: var(--fcg-measure); margin-left: auto; margin-right: auto; }
/* "Think this list is missing something?": ends each tier and the stack cards, scrolls to the invitation. */
.fcg-stack__suggest { margin: var(--fcg-space-4) 0 0; text-align: right; font-size: var(--fcg-step--1); }
.fcg-stack__suggest a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--fcg-muted); text-decoration: none; }
.fcg-stack__suggest span { color: var(--fcg-copper-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fcg-stack__suggest a:hover span { text-decoration-thickness: 2px; }
.fcg-stack__suggest svg { color: var(--fcg-copper-ink); }
#add-to-the-stacks { scroll-margin-top: calc(var(--fcg-header-h) + 16px); }
/* Modern flourish, on .is-hot (the card under a MOVING pointer, set by _core_stack.js): a pointer spotlight, a sheen across the banner,
   a lantern-lit frame. Nothing animates while the page scrolls. */
.fcg-crestcard.is-hot { background-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, -40%), color-mix(in oklab, var(--fcg-lantern) 16%, transparent), transparent 70%); }
.fcg-crestcard__banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 190, 0.22) 50%, transparent 65%);
    transform: translateX(-120%); transition: transform 700ms var(--fcg-ease-out); }
.fcg-crestcard.is-hot .fcg-crestcard__banner::after { transform: translateX(120%); }

.fcg-crestcard__meta { font-variant-numeric: tabular-nums lining-nums; }
@media (prefers-reduced-motion: reduce) { .fcg-crestcard__banner::after { display: none; } }
/* The crest on its banner: a warmer field and a lit rim, so it stands off the oxblood. */
.fcg-crestcard__crest .fcg-crest__field { fill: color-mix(in oklab, var(--fcg-hall) 78%, var(--fcg-copper)); stroke: var(--fcg-copper-soft); stroke-width: 2.6; }
.fcg-crestcard__crest .fcg-crest__inner { stroke: var(--fcg-lantern); stroke-opacity: 0.45; }
.fcg-crestcard__meta { flex-wrap: wrap; row-gap: 2px; }   /* a long licence wraps the seal to its own line rather than overflow */
.fcg-crestcard__meta > span { white-space: nowrap; }
.fcg-crestcard__meta > span:first-child { white-space: normal; text-align: start; }
.fcg-crestcard__meta > .fcg-crestcard__watch { margin-inline-start: auto; }
.fcg-crestcard__meta { letter-spacing: 0.04em; padding-inline: var(--fcg-space-3); }
@media (max-width: 560px) { .fcg-stack__suggest { text-align: center; } .fcg-stack__suggest a { flex-wrap: wrap; justify-content: center; } }
@media (max-width: 560px) { .fcg-crestcard__meta > .fcg-crestcard__watch { margin-inline-start: 0; } .fcg-crestcard__meta > span:first-child { text-align: center; } }

/* The home hero (size "tall") fills the screen under the header and fits in it on any screen, a wide TV or a
   small phone: type and spacing follow the screen's height as well as its width (svh), so nothing needs a scroll. */
.fcg-page-hero--tall { min-height: calc(100svh - var(--fcg-header-h)); display: grid; align-items: center; padding-block: clamp(0.5rem, 4.5svh, 5rem); }
.fcg-page .fcg-page-hero--tall .fcg-page-hero__title { font-size: clamp(1.55rem, min(1.9rem + 3.4vw, 7.4svh), 5.6rem); line-height: 1.04; margin-bottom: min(0.3em, 2.2svh); text-wrap: balance; }
.fcg-page .fcg-page-hero--tall p.is-style-fcg-eyebrow { margin-bottom: min(13px, 1.6svh); }
.fcg-page .fcg-page-hero--tall p.is-style-fcg-lead { font-size: clamp(0.88rem, min(0.95rem + 0.4vw, 2.6svh), 1.4rem); line-height: 1.5; }
.fcg-page-hero--tall .wp-block-firefly-fcg-signup-form { margin-top: min(var(--fcg-space-5), 3.6svh); }
.fcg-page-hero--tall .fcg-signup-form .fcg-form__fields { gap: min(var(--fcg-space-3), 1.4svh); }
.fcg-page .fcg-page-hero--tall .fcg-page-hero__body > .wp-block-buttons { margin-top: min(var(--fcg-space-5), 2.4svh); margin-bottom: min(20px, 1.6svh); }
.fcg-page .fcg-page-hero--tall p.is-style-fcg-roles { margin: 0; font-size: clamp(1rem, min(1rem + 0.5vw, 3svh), 1.6rem); }
@media (max-width: 720px) {
    .fcg-page .fcg-page-hero--tall .fcg-page-hero__title { font-size: clamp(1.4rem, min(1.2rem + 4.5vw, 5.2svh), 3rem); }
    .fcg-page .fcg-page-hero--tall p.is-style-fcg-lead { font-size: clamp(0.84rem, 2.35svh, 1rem); }
    .fcg-page .fcg-page-hero--tall p.is-style-fcg-roles { font-size: clamp(0.9rem, 2.6svh, 1.15rem); word-spacing: 0.25em; }
    .fcg-page-hero--tall .fcg-form__privacy { font-size: 0.8rem; } }
@media (max-width: 560px) { /* name and email side by side, the button under them: two rows instead of three */
    .fcg-page-hero--tall .fcg-signup-form__row { grid-template-columns: 1fr 1fr; }
    .fcg-page-hero--tall .fcg-signup-form__row .fcg-btn { grid-column: 1 / -1; } }
@media (min-width: 561px) and (max-width: 720px) { .fcg-page-hero--tall .fcg-signup-form__row { grid-template-columns: 1fr 1.3fr auto; } .fcg-page-hero--tall .fcg-signup-form__row .fcg-btn { width: auto; } }
/* Short screens (a small phone, any phone on its side): the motto under the buttons gives way. */
@media (max-height: 480px), (max-width: 720px) and (max-height: 700px) { .fcg-page-hero--tall p.is-style-fcg-roles { display: none; } }
/* Short screens: tighter padding and gaps, the form's note in one small line where it can be. */
@media (max-height: 700px) and (max-width: 720px), (max-height: 480px) {
    .fcg-page-hero--tall { padding-block: clamp(0.5rem, 2.6svh, 2rem); }
    .fcg-page .fcg-page-hero--tall p.is-style-fcg-eyebrow { letter-spacing: 0.12em; }
    .fcg-page .fcg-page-hero--tall p.is-style-fcg-lead { line-height: 1.42; }
    .fcg-page-hero--tall .fcg-signup-form__row { row-gap: 8px; }
    .fcg-page-hero--tall .fcg-signup-form .fcg-field label { margin-bottom: 2px; }
    .fcg-page-hero--tall .fcg-form__privacy { font-size: 0.75rem; line-height: 1.35; } }
.fcg-page-hero--tall .fcg-hp { position: absolute; }   /* the hidden spam trap takes no row (and no gap) in the hero */
@media (max-height: 600px) and (max-width: 720px), (max-height: 420px) { /* the smallest phones: still 44px touch targets */
    .fcg-page-hero--tall .fcg-signup-form .fcg-field { gap: 2px; }
    .fcg-page-hero--tall .fcg-signup-form .fcg-input, .fcg-page-hero--tall .fcg-signup-form .fcg-btn { min-height: 44px; height: 44px; padding-block: 0; }
    .fcg-page .fcg-page-hero--tall p.is-style-fcg-lead { font-size: 0.8rem; } }

/* The home hero's scrim: a warm-dark vignette, darkest behind the centred words and open at the edges, so the
   text reads over the busiest part of the painting while the painting still shows. Measured with
   fcg-herocontrast.js: every line at 4.5:1 or better (3:1 for the headline) against the brightest tenth of the
   pixels behind it, at 1366, 1920 and 390 wide. */
.fcg-page-hero--tall .fcg-page-hero__media::after {
    background:
        radial-gradient(ellipse 62% 58% at 50% 52%, color-mix(in oklab, var(--fcg-hall-deep) 78%, transparent) 0%, color-mix(in oklab, var(--fcg-hall-deep) 62%, transparent) 45%, transparent 82%),
        linear-gradient(to bottom, color-mix(in oklab, var(--fcg-hall) 58%, transparent), color-mix(in oklab, var(--fcg-hall) 46%, transparent) 45%, var(--fcg-hall));
}
@media (max-width: 720px) { /* a phone's text block fills the width: an even scrim, not a vignette */
    .fcg-page-hero--tall .fcg-page-hero__media::after {
        background: linear-gradient(to bottom, color-mix(in oklab, var(--fcg-hall-deep) 70%, transparent), color-mix(in oklab, var(--fcg-hall-deep) 76%, transparent) 50%, var(--fcg-hall));
    }
}
.fcg-page .fcg-page-hero--tall p.is-style-fcg-lead { color: var(--fcg-vellum); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.45); }
.fcg-page .fcg-page-hero--tall p.is-style-fcg-eyebrow,
.fcg-page .fcg-page-hero--tall p.is-style-fcg-roles,
.fcg-page .fcg-page-hero--tall .wp-block-button.is-style-fcg-link a { color: color-mix(in oklab, var(--fcg-copper-soft) 70%, var(--fcg-vellum)); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.fcg-page .fcg-page-hero--tall p.fcg-form__privacy { color: var(--fcg-on-hall); opacity: 1; }

/* ---------- The Stacks as a guide (2026-11-12): shelves of kinds, options reviewed against the charter ---------- */
.fcg-library { display: grid; gap: var(--fcg-space-8, 4rem); }
.fcg-library__shelf { display: grid; gap: var(--fcg-space-5); scroll-margin-top: calc(var(--fcg-header-h) + 16px); }
.fcg-crestcard__meta .fcg-crestcard__since { color: var(--fcg-muted); font-weight: 600; }

/* The charter checklist: three pillars of facts, a tick where the fact holds, a dash where it was not found. */
.fcg-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--fcg-space-4); }
.fcg-checklist__pillar { background: var(--fcg-surface); border: 1px solid var(--fcg-line-strong); border-radius: var(--fcg-radius);
    outline: 1px solid color-mix(in oklab, var(--fcg-copper) 45%, transparent); outline-offset: -6px; padding: var(--fcg-space-5) var(--fcg-space-5) var(--fcg-space-4); }
.fcg-checklist__pillar h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--fcg-space-3); font-size: var(--fcg-step-1); }
.fcg-checklist__pillar h3 .fcg-icon { color: var(--fcg-copper-ink); }
.fcg-checklist__pillar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--fcg-space-3); }
.fcg-check { display: grid; grid-template-columns: 1.6em 1fr; column-gap: 8px; align-items: baseline; }
.fcg-check__mark { grid-row: span 2; font-weight: 700; text-align: center; color: var(--fcg-muted); }
.fcg-check.is-yes .fcg-check__mark { color: #4f6b48; }
.fcg-check__label { font-weight: 600; }
.fcg-check__detail { grid-column: 2; color: var(--fcg-muted); font-size: var(--fcg-step--1); overflow-wrap: anywhere; }
.fcg-check__detail a { color: var(--fcg-copper-ink); }
.fcg-page p.fcg-checklist__note { margin: var(--fcg-space-4) 0 0; font-size: var(--fcg-step--1); color: var(--fcg-muted); }

/* Compare: a kind's options side by side. The table scrolls inside its own box on a phone, never the page. */
.fcg-compare__scroll { overflow-x: auto; border: 1px solid var(--fcg-line-strong); border-radius: var(--fcg-radius); background: var(--fcg-surface); }
.fcg-compare__scroll:focus-visible { outline: 2px solid var(--fcg-copper-ink); outline-offset: 2px; }
.fcg-compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fcg-step--1); }
.fcg-compare th, .fcg-compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--fcg-line); vertical-align: top; }
.fcg-compare thead th { font-size: var(--fcg-step--2); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fcg-muted); background: color-mix(in oklab, var(--fcg-paper) 70%, #fff); }
.fcg-compare tbody tr:last-child > * { border-bottom: 0; }
.fcg-compare tbody th a { color: var(--fcg-ink); font-family: var(--fcg-font-display); font-size: var(--fcg-step-0); font-weight: 600; }
.fcg-compare td a { color: var(--fcg-copper-ink); }
.fcg-compare__no { color: var(--fcg-muted); }

/* The independence line under the Stacks and in the footer. */
.fcg-page p.is-style-fcg-footnote.fcg-independence, .fcg-independence { font-size: var(--fcg-step--1); color: var(--fcg-muted); }
.fcg-compare__scroll { position: relative; }   /* holds the absolutely positioned screen-reader text in its links, which otherwise widened the page on phones */
