/* ============================================================================
   Frugal Americans — "Aisles" (fga-theme 1.0.0, 2026-10-08)
   Loads after theme-variables.css and main.css. All site styling lives here.
   The site as a well-run store: navy hanging signs over grey shelves with a
   red shelf edge; the site's own navy #1E2A3A (masthead, signs, footer) and
   red #C0392B (the one action hue); Barlow Condensed signage over Barlow
   text; white ground; photos in their own frames, never text on them.
   No shadows.
   ========================================================================= */

/* --- Base ------------------------------------------------------------------- */

html { overflow-x: clip; background: var(--tp-paper); }
body {
    background: var(--tp-paper);
    color: var(--tp-ink);
    font-family: var(--tp-text);
    font-size: var(--tp-size-body);
    line-height: var(--tp-lh-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--tp-display); color: var(--tp-ink); line-height: var(--tp-lh-head); font-weight: 700; letter-spacing: 0; }
a { color: var(--tp-brick); }
a:hover { color: var(--tp-brick-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--tp-brick); outline-offset: 2px; }
button, input, select, textarea { font-family: var(--tp-text); }
::selection { background: var(--tp-brick); color: var(--tp-on-brick); }
img { background: var(--tp-tint); }

.site-container { max-width: var(--tp-page-max); margin: 0 auto; padding-left: var(--tp-gutter); padding-right: var(--tp-gutter); }
.site-main { padding-top: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: 0; }

.fga-skip-link { position: absolute; left: -9999px; top: 0; background: var(--tp-brick); color: var(--tp-on-brick); padding: 0.75rem 1rem; z-index: 2000; font-weight: 700; }
.fga-skip-link:focus { left: 1rem; top: 1rem; }

/* Labels: Barlow Condensed, uppercase, tracked. */
.fga-label, .fga-meta, .fga-kicker, .fga-breadcrumb, .fga-archive-count, .fga-shead-label, .fga-scard-kicker,
.fga-newsletter-label, .fga-fhead, .fga-drawer-label, .fga-toc-count, .fga-contents-cat, .fga-count, .fga-age-chip, .fga-pager-count {
    font-family: var(--tp-display); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.fga-label { margin: 0; font-size: 0.875rem; color: var(--tp-meta); }
.fga-meta { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--tp-meta); }
.fga-meta a { color: inherit; text-decoration: none; }
.fga-dot { color: var(--tp-meta); padding: 0 0.15em; }
.fga-kicker { margin: 0; font-size: 0.875rem; line-height: 1.4; }
.fga-kicker a { color: var(--tp-brick); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.fga-kicker a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Framed photo: its own box, 1px border, 4px corners. */
.fga-frame { display: block; background: var(--tp-tint); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); overflow: hidden; }
.fga-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fga-frame--wide img { aspect-ratio: 16 / 9; }
.fga-frame--photo img { aspect-ratio: 3 / 2; }
.fga-frame--four img { aspect-ratio: 4 / 3; }
.fga-frame--square img { aspect-ratio: 1 / 1; }
.fga-frame--hero img { aspect-ratio: 16 / 9; height: auto; }

/* --- Masthead: the navy bar with the red shelf edge -------------------------------- */

.fga-masthead { background: var(--tp-navy); border-bottom: 4px solid var(--tp-brick); position: relative; z-index: 100; }
.fga-mast-inner { max-width: var(--tp-page-max); margin: 0 auto; padding: 0.55rem var(--tp-gutter); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.fga-brand { min-width: 0; flex: none; }
.fga-brand-name { margin: 0; font-size: inherit; line-height: 1; font-weight: inherit; letter-spacing: inherit; }
.fga-wordmark { display: inline-flex; text-decoration: none; }
.fga-logo { display: block; height: 40px; width: auto; max-width: 100%; background: none; }

.fga-mast-nav { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.fga-drawer-clip { display: contents; }
.fga-mast-nav .main-navigation { min-width: 0; display: flex; }
.fga-mast-nav .primary-menu { display: flex; align-items: stretch; flex-wrap: nowrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.fga-mast-nav .main-navigation li { margin: 0; }
.fga-mast-nav .main-navigation a {
    display: inline-flex; align-items: center; gap: 0.55rem; min-height: 64px; padding: 0 0.85rem; position: relative; white-space: nowrap;
    font-family: var(--tp-display); font-size: 1.1875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tp-on-navy); text-decoration: none;
}
.fga-nav-no {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 3px; flex: none;
    background: var(--tp-brick); color: var(--tp-on-brick); font-family: var(--tp-display); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums;
}
.fga-mast-nav .main-navigation a:hover { color: var(--tp-on-navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.fga-mast-nav .main-navigation a::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -4px; height: 4px; background: var(--tp-on-navy); opacity: 0; }
.fga-mast-nav .main-navigation .current-cat > a::after { opacity: 1; }
.fga-mast-nav .main-navigation .fga-drawer-label, .fga-mast-nav .main-navigation .fga-drawer-sub { display: none; }

.fga-nav-tools { display: flex; align-items: center; gap: 0.5rem; }
.fga-search-toggle {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--tp-on-navy); cursor: pointer; border-radius: var(--tp-radius);
}
.fga-search-toggle svg { color: currentColor; width: 22px; height: 22px; }
.fga-search-toggle:hover, .fga-search-toggle[aria-expanded="true"] { background: var(--tp-navy-deep); color: var(--tp-on-navy); }
.fga-subscribe-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: var(--tp-radius); background: var(--tp-brick);
    font-family: var(--tp-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tp-on-brick); text-decoration: none;
}
.fga-subscribe-btn:hover { background: var(--tp-brick-dark); color: var(--tp-on-brick); }
.fga-masthead .mobile-menu-toggle { display: none; }
/* Search opens as a row under the masthead, pushing the page down (main.css made it a fixed overlay). */
.fga-masthead .mobile-search-form { position: static; transform: none; box-shadow: none; z-index: auto; padding: 0.9rem var(--tp-gutter); background: var(--tp-tint); border-top: 0; }
.fga-masthead .mobile-search-form form { max-width: calc(var(--tp-page-max) - 2 * var(--tp-gutter)); margin: 0 auto; }
.fga-masthead .search-field { font-size: 1.0625rem; min-height: 48px; border-radius: var(--tp-radius); border: 1px solid var(--tp-ink); background: var(--tp-paper); color: var(--tp-ink); }
.fga-masthead .mobile-search-form button[type="submit"] { min-height: 48px; border-radius: var(--tp-radius); font-weight: 700; background: var(--tp-brick); color: var(--tp-on-brick); border: 0; }
.fga-masthead .mobile-search-close { background: transparent !important; color: var(--tp-ink) !important; min-width: 44px; min-height: 44px; }

/* --- Breadcrumb + aisle chip ---------------------------------------------------- */

.fga-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--tp-meta); }
.fga-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tp-meta); text-decoration: none; }
.fga-breadcrumb a:hover { color: var(--tp-brick); text-decoration: underline; }
.fga-breadcrumb [aria-current], .fga-breadcrumb a:last-of-type:not(:first-child) { color: var(--tp-brick); }
.fga-breadcrumb .sep { color: var(--tp-meta); }
.fga-age-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 0.6rem; margin-left: 0.35rem; border-radius: 3px; background: var(--tp-navy); color: var(--tp-on-navy); font-size: 0.8125rem; letter-spacing: 0.06em; }

/* --- Section heads (plain): red label over a condensed title ---------------------- */

.fga-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.fga-shead-text { min-width: 0; max-width: 46rem; }
.fga-shead-label { margin: 0 0 0.35rem; font-size: 0.9375rem; color: var(--tp-brick); }
.fga-shead-title { margin: 0; font-size: clamp(1.875rem, 1.55rem + 1vw, 2.375rem); font-weight: 700; line-height: 1.05; }
.fga-shead-dek { margin: 0.5rem 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--tp-meta); }
.fga-shead-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-family: var(--tp-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.fga-shead-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* --- Front: intro + store directory ------------------------------------------------- */

.fga-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: center; margin: 0 0 clamp(2rem, 4vw, 3rem); padding-bottom: clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--tp-rule); }
.fga-intro-text { min-width: 0; }
.fga-intro-title { margin: 0; font-size: clamp(2.75rem, 1.9rem + 3.2vw, 4.5rem); font-weight: 700; line-height: 0.98; letter-spacing: 0; text-transform: uppercase; text-wrap: balance; }
.fga-intro-dek { margin: 0.9rem 0 0; max-width: 40rem; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); line-height: 1.55; color: var(--tp-meta); }

.fga-directory { min-width: 0; background: var(--tp-tint); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); padding: 1rem 1.1rem 0.6rem; }
.fga-directory-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 0.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--tp-rule); font-family: var(--tp-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tp-ink); line-height: 1.2; }
.fga-directory-total { font-size: 0.875rem; font-weight: 600; color: var(--tp-meta); }
.fga-directory ul { list-style: none; margin: 0; padding: 0; }
.fga-directory li { margin: 0; border-bottom: 1px solid var(--tp-rule); }
.fga-directory li:last-child { border-bottom: 0; }
.fga-directory a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; min-height: 48px; color: var(--tp-ink); text-decoration: none; font-family: var(--tp-display); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.fga-directory-no { color: var(--tp-brick); font-size: 0.9375rem; }
.fga-directory a:hover .fga-directory-name { color: var(--tp-brick); text-decoration: underline; text-underline-offset: 0.2em; }
.fga-directory .fga-count { color: var(--tp-meta); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

/* --- The aisle: hanging sign + shelf -------------------------------------------------- */

.fga-aisle { margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.fga-sign-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; margin: 0 0 0; }
.fga-sign {
    position: relative; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 0.6rem; margin: 16px 0 0; padding: 0.55rem 1.1rem;
    background: var(--tp-navy); color: var(--tp-on-navy); border-radius: var(--tp-radius) var(--tp-radius) 0 0;
    font-family: var(--tp-display); font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.15;
}
/* The two hanger wires. */
.fga-sign::before, .fga-sign::after { content: ""; position: absolute; top: -16px; width: 2px; height: 16px; background: var(--tp-meta); }
.fga-sign::before { left: 22px; }
.fga-sign::after { right: 22px; }
.fga-sign-no { color: var(--tp-on-navy-accent); }
.fga-sign-name + .fga-sign-count::before, .fga-sign-no + .fga-sign-name::before { content: "·"; margin-right: 0.6rem; color: var(--tp-on-navy-meta); }
.fga-sign-count { font-weight: 600; color: var(--tp-on-navy-meta); font-size: 0.85em; }
.fga-sign-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-family: var(--tp-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.fga-sign-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.fga-shelf-more { display: none; }

/* The shelf: grey band, red 4px shelf edge along the bottom. */
.fga-shelf { background: var(--tp-tint); border: 1px solid var(--tp-rule); border-bottom: 4px solid var(--tp-brick); border-radius: 0 var(--tp-radius) 0 0; padding: 1.1rem; }
.fga-shelf-row { display: grid; gap: 1.1rem; }
.fga-shelf--c5 .fga-shelf-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fga-shelf--c4 .fga-shelf-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fga-shelf--c3 .fga-shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fga-shelf--grid .fga-shelf-row { row-gap: 1.25rem; }

/* Shelf card: white, image on top in its frame, condensed title. */
.fga-scard { min-width: 0; display: flex; flex-direction: column; background: var(--tp-paper); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); overflow: hidden; }
.fga-scard .fga-frame { border: 0; border-radius: 0; border-bottom: 1px solid var(--tp-rule); }
.fga-scard-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.85rem 0.95rem 1rem; }
.fga-scard-kicker { margin: 0; font-size: 0.875rem; line-height: 1.3; }
.fga-scard-kicker a { color: var(--tp-brick); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.fga-scard-kicker a:hover { text-decoration: underline; }
.fga-scard-title { margin: 0; font-size: clamp(1.1875rem, 1.12rem + 0.25vw, 1.375rem); font-weight: 700; line-height: 1.15; letter-spacing: 0.005em; text-wrap: balance; }
.fga-scard-title a { color: var(--tp-ink); text-decoration: none; }
.fga-scard-title a::after { content: ""; position: absolute; inset: 0; }
.fga-scard { position: relative; }
.fga-scard .fga-frame, .fga-scard-kicker a { position: relative; z-index: 1; }
.fga-scard:hover { border-color: var(--tp-ink); }
.fga-scard:hover .fga-scard-title a { color: var(--tp-brick); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.fga-scard-date { margin: auto 0 0; padding-top: 0.6rem; border-top: 1px solid var(--tp-rule); font-size: 0.9375rem; color: var(--tp-meta); }
.fga-scard-title + .fga-scard-date { margin-top: auto; }

/* The end-cap: the first shelf, a touch bigger. */
.fga-aisle--endcap .fga-scard-title { font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.4375rem); }

/* --- Image-left rows (kept from the fork; used where a list is wanted) ---------------- */

.fga-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 3.5rem); margin: 0 0 2rem; }
.fga-hrow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 0 1.25rem; align-items: start; padding: 1.25rem 0; border-top: 1px solid var(--tp-rule); min-width: 0; }
.fga-hrow--text { grid-template-columns: minmax(0, 1fr); }
.fga-hrow-body { min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.fga-hrow-title { margin: 0; font-size: 1.375rem; font-weight: 700; line-height: 1.15; text-wrap: balance; }
.fga-hrow-title a { color: var(--tp-ink); text-decoration: none; }
.fga-hrow-title a:hover { color: var(--tp-brick); text-decoration: underline; }
.fga-hrow-dek { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--tp-meta); }

/* --- Ad frames: labelled, reserved; collapse when unfilled ---------------------------- */

.fga-ad { text-align: center; background: var(--tp-paper); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); padding: 0.6rem 0.5rem 1rem; min-height: 290px; }
.fga-ad::before { content: "Advertisement"; display: block; font-family: var(--tp-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-meta); margin-bottom: 0.6rem; }
.fga-ad:has(ins[data-ad-status="unfill-optimized"]), .fga-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.fga-ad-placeholder { border: 1px dashed var(--tp-rule); padding: 2rem 1rem; color: var(--tp-meta); font-size: 0.875rem; margin: 0 0.5rem; }

/* --- Archive ---------------------------------------------------------------------------- */

.fga-archive-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: center; margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem); padding-bottom: clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--tp-rule); }
.fga-archive-head > :only-child { grid-column: 1 / -1; }
.fga-archive-text { min-width: 0; }
.fga-archive-titlerow { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.5rem 1rem; }
.fga-archive-titlerow .fga-sign--plate { margin-bottom: 0.45rem; border-radius: var(--tp-radius); }
.fga-archive-title { margin: 0; font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); font-weight: 700; line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.fga-archive-count { display: inline-flex; align-items: center; min-height: 34px; margin: 0 0 0.45rem; padding: 0 0.7rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-tint); font-size: 1rem; color: var(--tp-ink); }
.fga-archive-line { margin: 0.9rem 0 0; max-width: 42em; font-size: 1.125rem; line-height: 1.6; color: var(--tp-meta); }
.fga-archive-head--search .search-form { display: flex; gap: 0.5rem; max-width: 520px; margin: 1.1rem 0 0; }
.fga-archive-head--search .search-field, .fga-empty .search-field { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 0.9rem; border: 1px solid var(--tp-ink); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-size: 1.0625rem; }
.fga-archive-head--search .search-submit, .fga-empty .search-submit { min-height: 48px; padding: 0 1.2rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-brick); color: var(--tp-on-brick); font-weight: 700; cursor: pointer; }
.fga-archive-head--search .fga-archive-count { margin-top: 0.75rem; }

/* Pager: square 44px boxes, centred. */
.fga-pager { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 1.75rem 0 0; }
.fga-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.fga-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 0.6rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-family: var(--tp-display); font-size: 1.125rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.fga-pager a.page-numbers:hover { border-color: var(--tp-brick); color: var(--tp-brick); }
.fga-pager .page-numbers.current { background: var(--tp-navy); border-color: var(--tp-navy); color: var(--tp-on-navy); }
.fga-pager .page-numbers.dots { border: 0; background: transparent; min-width: 24px; }
.fga-pager-count { margin: 0; font-size: 0.875rem; color: var(--tp-meta); }

/* --- Single ------------------------------------------------------------------------------ */

.fga-article-head { max-width: 980px; margin: 0 0 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--tp-rule); }
.fga-title { margin: 0.35rem 0 0; font-size: var(--tp-title); font-weight: 700; line-height: 1.04; text-wrap: balance; }
.fga-standfirst { margin: 0.85rem 0 0; max-width: 46em; font-family: var(--tp-text); font-size: clamp(1.1875rem, 1.12rem + 0.35vw, 1.4375rem); line-height: 1.5; color: var(--tp-meta); }
.fga-article-meta { margin: 0.9rem 0 0; font-family: var(--tp-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tp-meta); }
.fga-byline a { color: var(--tp-ink); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.fga-byline a:hover { color: var(--tp-brick); text-decoration: underline; }

.fga-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--tp-sidebar); gap: var(--tp-side-gap); align-items: start; }
.fga-layout-main { min-width: 0; }
.fga-hero { margin: 0 0 1.75rem; }
.fga-hero .fga-frame { padding: 0; }
.fga-caption { font-size: 0.9375rem; line-height: 1.5; color: var(--tp-meta); padding: 0.55rem 0.1rem 0; }

.fga-article { min-width: 0; }
.fga-article .entry-content { font-size: var(--tp-size-body); line-height: var(--tp-lh-body); color: var(--tp-ink); }
.fga-article .entry-content > * { max-width: 100%; }
.fga-article .entry-content p { text-wrap: pretty; }
.fga-article .entry-content h2 { font-size: var(--tp-h2); font-weight: 700; line-height: 1.1; margin: 2.75rem 0 1rem; padding: 0.9rem 0 0; border-top: 1px solid var(--tp-rule); border-bottom: 0; letter-spacing: 0; scroll-margin-top: 1.5rem; text-wrap: balance; }
.fga-h2-num { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; margin-right: 0.35em; padding: 0 0.25em; border-radius: 3px; background: var(--tp-navy); color: var(--tp-on-navy); font-size: 0.8em; vertical-align: 0.08em; }
.fga-article .entry-content h3 { font-size: var(--tp-h3); margin: 2rem 0 0.75rem; scroll-margin-top: 1.5rem; }
.fga-article .entry-content h4 { font-family: var(--tp-text); font-weight: 700; font-size: 1.125rem; }
.fga-article .entry-content a { color: var(--tp-brick); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.fga-article .entry-content a:hover { color: var(--tp-brick-dark); text-decoration-thickness: 2px; }
.fga-article .entry-content strong { font-weight: 700; color: var(--tp-ink); }
.fga-article .entry-content figure { margin: 2.25rem 0; }
.fga-article .entry-content figure img, .fga-article .entry-content p > img { display: block; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); height: auto; box-shadow: none; }
.fga-article .entry-content figcaption { text-align: left; font-style: normal; font-size: 1rem; line-height: 1.5; color: var(--tp-meta); padding-top: 0.55rem; }
.fga-article .entry-content ol, .fga-article .entry-content ul { padding-left: 1.5rem; }
.fga-article .entry-content li { margin-bottom: 0.5rem; }
.fga-article .entry-content li::marker { color: var(--tp-brick); font-weight: 700; }
.fga-article .entry-content blockquote { border: 0; border-left: 4px solid var(--tp-brick); background: var(--tp-tint); margin: 2rem 0; padding: 1rem 1.25rem; font-size: 1.1875rem; line-height: 1.55; color: var(--tp-ink); }
.fga-article .entry-content blockquote p { margin: 0; }
.fga-article .entry-content blockquote p + p { margin-top: 0.75rem; }
.fga-article .entry-content hr { border: 0; border-top: 1px solid var(--tp-rule); }
.table-scroll { overflow-x: auto; margin: 1.75rem 0; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--tp-ink); border-bottom: 1px solid var(--tp-ink); }
.table-scroll table { min-width: 560px; margin: 0; }
.fga-article .entry-content table { border-collapse: collapse; width: 100%; font-size: 0.95em; background: transparent; }
.fga-article .entry-content th { background: var(--tp-tint); color: var(--tp-ink); font-family: var(--tp-display); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--tp-rule); }
.fga-article .entry-content td, .fga-article .entry-content th { border-bottom: 1px solid var(--tp-rule); padding: 0.75rem 0.9rem; vertical-align: top; min-width: 9rem; }
.fga-article .entry-content tr:last-child td { border-bottom: 0; }
.fga-article .entry-content td:first-child, .fga-article .entry-content th:first-child { position: sticky; left: 0; z-index: 1; }
.fga-article .entry-content td:first-child { background: var(--tp-paper); font-weight: 600; }

/* "In this guide" (the article's own contents block, fga_toc_panel): grey shelf, red left edge, navy number badges. */
.fga-toc { margin: 1.5rem 0 2rem; background: var(--tp-tint); border-left: 4px solid var(--tp-brick); border-radius: 0 var(--tp-radius) var(--tp-radius) 0; }
.fga-toc summary { display: flex; align-items: center; gap: 1rem; min-height: 56px; padding: 0.5rem 1.25rem; cursor: pointer; list-style: none; }
.fga-toc summary::-webkit-details-marker { display: none; }
.fga-toc summary::after { content: "+"; font-size: 1.5rem; color: var(--tp-brick); margin-left: 0.25rem; }
.fga-toc[open] summary::after { content: "−"; }
.fga-toc-title { font-family: var(--tp-display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.fga-toc-count { margin-left: auto; font-size: 0.875rem; color: var(--tp-meta); }
.fga-article .entry-content .fga-toc-list { list-style: none; margin: 0; padding: 0.25rem 1.25rem 1rem; border-top: 1px solid var(--tp-rule); counter-reset: fgatoc; columns: 2; column-gap: 2rem; }
.fga-article .entry-content .fga-toc-list li { margin: 0; padding: 0; counter-increment: fgatoc; break-inside: avoid; }
.fga-article .entry-content .fga-toc-list li::marker { content: none; }
.fga-article .entry-content .fga-toc-list a { display: flex; gap: 0.7rem; align-items: center; min-height: 44px; padding: 0.35rem 0; color: var(--tp-ink); text-decoration: none; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.fga-article .entry-content .fga-toc-list a::before { content: counter(fgatoc); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 3px; background: var(--tp-navy); color: var(--tp-on-navy); font-family: var(--tp-display); font-size: 0.875rem; font-weight: 700; }
.fga-article .entry-content .fga-toc-list a:hover { color: var(--tp-brick); text-decoration: underline; }

/* Article pager (posts split with <!--nextpage-->): numbers only. */
.fga-page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 2.25rem 0 0.5rem; }
.entry-content .fga-page-links .post-page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 0.75rem;
    border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink);
    font-family: var(--tp-display); font-size: 1.125rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums;
}
.entry-content .fga-page-links a.post-page-numbers:hover { border-color: var(--tp-brick); color: var(--tp-brick); }
.entry-content .fga-page-links .post-page-numbers.current { background: var(--tp-navy); border-color: var(--tp-navy); color: var(--tp-on-navy); }

.fga-team { margin: 2.5rem 0 0; padding: 1.25rem 1.4rem; background: var(--tp-tint); border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); }
.fga-team-title { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tp-ink); }
.fga-team p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--tp-ink); }
.fga-team .fga-team-more { margin-top: 0.5rem; }
.fga-team-more a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }

.fga-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; margin: 2rem 0 0; padding: 0.3rem 0; border-top: 1px solid var(--tp-rule); border-bottom: 1px solid var(--tp-rule); }
.fga-share .fga-label { color: var(--tp-ink); }
.fga-share a { text-decoration: none; font-weight: 700; font-size: 1rem; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.fga-share a:hover { text-decoration: underline; }

/* More from Aisle N. */
.fga-related { margin: clamp(2.75rem, 5vw, 3.75rem) 0 0; padding-top: 1.5rem; border-top: 1px solid var(--tp-rule); }
.fga-related .fga-sign { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); }

/* main.css sets content-visibility:auto (500px placeholder) on the comments; the form is ~850-950px,
   so it painted late and shifted the page (visual QA 2026-10-08). */
.comments-area { margin-top: 2rem; padding-top: 0; border-top: 0; content-visibility: visible; contain-intrinsic-size: none; }
.comments-area .comments-title, .comments-area .comment-reply-title { font-size: var(--tp-h3); }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-respond { margin: 0; background: var(--tp-tint); border: 0; border-radius: var(--tp-radius); }
.comments-area label, .comments-area .comment-notes, .comments-area .logged-in-as { color: var(--tp-meta); }
.comments-area input:not([type="checkbox"]):not([type="submit"]), .comments-area textarea { border-radius: var(--tp-radius); border: 1px solid var(--tp-ink); background: var(--tp-paper); color: var(--tp-ink); }
.comments-area input:focus, .comments-area textarea:focus { border-color: var(--tp-brick); outline: none; }
.comments-area .submit, .comments-area #submit { background: var(--tp-brick) !important; border: none; border-radius: var(--tp-radius) !important; color: var(--tp-on-brick) !important; font-weight: 700; min-height: 48px; padding: 0 1.5rem; cursor: pointer; }
.comments-area .submit:hover, .comments-area #submit:hover { background: var(--tp-brick-dark) !important; }
.comments-area .comment-body { background: transparent; border: 0; border-bottom: 1px solid var(--tp-rule); border-radius: 0; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.comment-form-cookies-consent input { flex: 0 0 auto; margin: 0.3rem 0 0; }
.comment-form-cookies-consent label { margin: 0; }

/* --- Sidebar: widget heads are small navy signs with the red shelf edge ------------------- */

.fga-sidebar { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.fga-widget { background: transparent; border: 0; padding: 0; }
.fga-widget-pop { border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); overflow: hidden; }
.fga-widget-title { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.fga-widget-pop .fga-widget-title { padding: 0.7rem 1rem; background: var(--tp-navy); color: var(--tp-on-navy); border-bottom: 4px solid var(--tp-brick); }
.fga-contents { list-style: none; margin: 0; padding: 0 1rem; }
.fga-contents li { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--tp-rule); }
.fga-contents li:last-child { border-bottom: 0; }
.fga-contents-num { flex: none; min-width: 1.4rem; font-family: var(--tp-display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--tp-brick); font-variant-numeric: tabular-nums; }
.fga-contents-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.fga-contents-cat { font-size: 0.8125rem; color: var(--tp-meta); }
.fga-contents-title { font-family: var(--tp-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.2; color: var(--tp-ink); text-decoration: none; }
.fga-contents-title:hover { color: var(--tp-brick); text-decoration: underline; text-decoration-thickness: 1px; }
.fga-widget-dept .fga-directory { background: var(--tp-paper); padding: 0; overflow: hidden; }
.fga-widget-dept .fga-directory-title { margin: 0; padding: 0.7rem 1rem; background: var(--tp-navy); color: var(--tp-on-navy); border-bottom: 4px solid var(--tp-brick); font-size: 1.25rem; }
.fga-widget-dept .fga-directory-total { color: var(--tp-on-navy-meta); }
.fga-widget-dept .fga-directory ul { padding: 0 1rem 0.25rem; }
.fga-widget-news { background: var(--tp-navy); color: var(--tp-on-navy); padding: 1.25rem; border-radius: var(--tp-radius); border-top: 4px solid var(--tp-brick); }
.fga-widget-news .fga-widget-title { color: var(--tp-on-navy); font-size: 1.4375rem; line-height: 1.1; margin: 0 0 0.9rem; }
.fga-widget-news .fga-newsletter-label { color: var(--tp-on-navy-meta); }
.fga-widget-news .newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.fga-widget-news input[type="email"] { min-height: 48px; padding: 0 0.85rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-size: 1.0625rem; }
.fga-widget-news button { min-height: 48px; padding: 0 1.25rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-brick); color: var(--tp-on-brick); font-family: var(--tp-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; }
.fga-widget-news button:hover { background: var(--tp-brick-dark); }
.fga-widget-news .fga-newsletter-note, .fga-widget-news .newsletter-message { color: var(--tp-on-navy-meta); }
.fga-newsletter-note { margin: 0.6rem 0 0 !important; font-size: 0.9375rem !important; color: var(--tp-meta); }
.fga-sidebar .fga-ad { min-height: 290px; }

/* --- Newsletter band: the checkout lane ------------------------------------------------------ */

/* 1.0.2: top margin trimmed — after the archive pager it stacked to ~150px (user, 2026-10-08). */
.fga-newsletter { max-width: var(--tp-page-max); margin: clamp(1.5rem, 3vw, 2rem) auto clamp(2rem, 4vw, 3rem); padding: 0 var(--tp-gutter); }
.fga-newsletter-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem); background: var(--tp-navy); border-top: 4px solid var(--tp-brick); border-radius: var(--tp-radius); color: var(--tp-on-navy); }
.fga-newsletter-label { margin: 0 0 0.35rem; font-size: 0.9375rem; color: var(--tp-on-navy-accent); }
.fga-newsletter h2 { margin: 0 0 0.5rem; color: var(--tp-on-navy); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 700; line-height: 1; text-transform: uppercase; text-wrap: balance; }
.fga-newsletter-dek { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--tp-on-navy-meta); }
.fga-newsletter .newsletter-form { display: flex; flex-direction: row; gap: 0.6rem; }
.fga-newsletter input[type="email"] { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 1rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-size: 1.0625rem; }
.fga-newsletter button { min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-brick); color: var(--tp-on-brick); font-family: var(--tp-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; flex: none; cursor: pointer; }
.fga-newsletter button:hover { background: var(--tp-brick-dark); }
.fga-newsletter .fga-newsletter-note { color: var(--tp-on-navy-meta); }
.newsletter-message { margin-top: 0.75rem; font-weight: 600; }

/* --- Footer: navy, red shelf edge ------------------------------------------------------------- */

.fga-footer { background: var(--tp-navy); border-top: 4px solid var(--tp-brick); color: var(--tp-on-navy); }
.fga-footer-inner { max-width: var(--tp-page-max); margin: 0 auto; padding: clamp(2rem, 4vw, 2.75rem) var(--tp-gutter) 1.5rem; }
.fga-footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.fga-footer-word { display: inline-flex; text-decoration: none; }
.fga-footer-word .fga-logo--footer { height: 36px; }
.fga-footer-about { margin: 0.9rem 0 0; max-width: 34rem; font-size: 1rem; line-height: 1.6; color: var(--tp-on-navy-meta); }
.fga-footer-owner { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--tp-on-navy-meta); }
.fga-footer-owner a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 700; color: var(--tp-on-navy); }
.fga-fhead { margin: 0 0 0.35rem; font-size: 0.9375rem; color: var(--tp-on-navy-accent); }
.fga-flist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.fga-flist li { margin: 0; }
.fga-flist a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--tp-on-navy); font-size: 1rem; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 0.25em; }
.fga-flist a:hover { color: var(--tp-on-navy); text-decoration-color: currentColor; }
.fga-flist--sections { display: flex; flex-direction: column; }
.fga-flist--sections a { font-family: var(--tp-display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.fga-flist--sections a:hover { text-decoration: underline; }
.fga-footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.fga-footer-links > nav { min-width: 0; }
.fga-footer-links > nav:last-child { flex: 1 0 100%; }
.fga-flist--legal a { font-size: 0.9375rem; color: var(--tp-on-navy-meta); }
.fga-colophon { margin: 1rem 0 0; max-width: 64rem; font-size: 0.9375rem; line-height: 1.6; color: var(--tp-on-navy-meta); }
.fga-footer .fga-footer-note { color: var(--tp-on-navy-meta); }

/* --- Static pages, empty states ------------------------------------------------------------ */

.fga-page { max-width: 820px; margin: 0 auto 0.5rem; }
.fga-empty { max-width: 680px; margin: 0 auto 2rem; padding: 2.5rem 1.5rem; text-align: center; background: var(--tp-tint); border-bottom: 4px solid var(--tp-brick); border-radius: var(--tp-radius) var(--tp-radius) 0 0; }
.fga-empty h1, .fga-empty h2 { font-size: var(--tp-title); font-weight: 700; margin: 0.5rem 0 0.75rem; text-transform: uppercase; }
.fga-empty .search-form { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.fga-deptlist { list-style: none; margin: 0; padding: 0; }
.fga-deptlist li { margin: 0; }
.fga-deptlist a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; color: var(--tp-ink); text-decoration: none; font-family: var(--tp-display); font-weight: 700; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.fga-deptlist .fga-count { font-size: 0.875rem; color: var(--tp-meta); }
.fga-deptlist--chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.fga-deptlist--chips a { padding: 0 1rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); }
.fga-deptlist--chips a:hover { border-color: var(--tp-brick); color: var(--tp-brick); }

.fga-page-head { text-align: left; margin: 0 0 2rem; padding: 0 0 1.5rem; border-bottom: 1px solid var(--tp-rule); }
.fga-page-kicker { margin: 0 0 .4rem; font-family: var(--tp-display); font-size: 0.9375rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-brick); }
.fga-page-head .fga-page-title { margin: 0; font-family: var(--tp-display); font-size: var(--tp-title); font-weight: 700; line-height: 1.02; color: var(--tp-ink); text-transform: uppercase; text-wrap: balance; }
.fga-page-standfirst { margin: .75rem 0 0; font-size: 1.1875rem; line-height: 1.5; color: var(--tp-meta); max-width: 40rem; }
.fga-page-updated { margin: .9rem 0 0; font-family: var(--tp-display); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-meta); }
.fga-page .entry-content { font-size: var(--tp-size-body); line-height: var(--tp-lh-body); }
.fga-page .entry-content h2 { font-family: var(--tp-display); font-size: clamp(1.625rem, 1.4rem + .6vw, 2rem); font-weight: 700; line-height: 1.1; margin: 2.25rem 0 .75rem; padding-bottom: 0; border-bottom: 0; scroll-margin-top: 1.25rem; }
.fga-page .entry-content h2:first-child { margin-top: 0; }
.fga-page .entry-content a { color: var(--tp-brick); }
.fga-onpage { margin: 0 0 2rem; padding: 1rem 1.25rem; background: var(--tp-tint); border-left: 4px solid var(--tp-brick); border-radius: 0 var(--tp-radius) var(--tp-radius) 0; }
.fga-onpage-title { margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--tp-rule); font-family: var(--tp-display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tp-ink); }
.fga-page .entry-content .fga-onpage ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.fga-page .entry-content .fga-onpage li { margin: 0; padding: 0; break-inside: avoid; }
.fga-page .entry-content .fga-onpage li::marker { content: none; }
.fga-page .entry-content .fga-onpage a { display: flex; gap: .6rem; align-items: baseline; min-height: 44px; padding: .45rem 0; color: var(--tp-ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.fga-page .entry-content .fga-onpage a:hover span:last-child { color: var(--tp-brick); text-decoration: underline; }
.fga-onpage-num { flex: none; color: var(--tp-brick); font-family: var(--tp-display); font-weight: 700; }
.fga-page-ask { margin: 2rem 0 0; padding: 1rem 0; border-top: 1px solid var(--tp-rule); }
.fga-page-ask-title { margin: 0 0 .25rem; font-family: var(--tp-display); font-weight: 700; font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0.04em; }
.fga-page-ask p { margin: 0; }
.fga-page-ask a, .fga-contact-email a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tp-brick); font-weight: 600; }
.fga-contact-intro { margin: 0 0 1.5rem; padding: 0 0 1.25rem; border-bottom: 1px solid var(--tp-rule); }
.fga-contact-intro p { margin: 0 0 .5rem; }
.fga-contact-email { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.fga-page .inedit-form-group { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.fga-page .inedit-form-group label { font-weight: 600; }
.fga-page .inedit-form-group input, .fga-page .inedit-form-group textarea { font: inherit; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--tp-ink); border-radius: var(--tp-radius); background: #FFFFFF; color: var(--tp-ink); }
.fga-page .inedit-form-group textarea { min-height: 160px; }
.fga-page .inedit-contact-submit { min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-brick); color: var(--tp-on-brick); font-weight: 700; cursor: pointer; }

/* --- Responsive ------------------------------------------------------------------------------ */

@media (max-width: 1180px) {
    .fga-subscribe-btn { display: none; }
    .fga-mast-nav .main-navigation a { padding: 0 0.6rem; }
    /* Five-across and four-across shelves become a sideways swipe inside the shelf. */
    .fga-shelf--scroll { padding-right: 0; }
    .fga-shelf--scroll .fga-shelf-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 0 1.1rem 0.5rem 0; scrollbar-width: thin; }
    .fga-shelf--scroll .fga-scard { flex: 0 0 min(260px, 72vw); scroll-snap-align: start; }
}

@media (max-width: 1024px) {
    /* Masthead: logo left; search + menu right; aisles in the drawer. */
    .fga-mast-inner { min-height: 64px; padding-top: 0.6rem; padding-bottom: 0.6rem; }
    .fga-logo { height: 34px; }
    .fga-masthead .mobile-menu-toggle { display: inline-flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: transparent; border: 0; }
    .fga-masthead .hamburger-line { background: var(--tp-on-navy); }
    .fga-masthead .mobile-menu-toggle.active .hamburger-line { background: var(--tp-ink); }
    .fga-drawer-clip { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1000; }
    .fga-drawer-clip .main-navigation { position: absolute; pointer-events: auto; background: var(--tp-paper); overflow-y: auto; padding: 0; max-width: none; display: block; }
    .fga-mast-nav .primary-menu, .fga-mast-nav .main-navigation ul.primary-menu { display: block; text-align: left; margin: 0; }
    .fga-mast-nav .main-navigation .primary-menu li { border-bottom: 1px solid var(--tp-rule); }
    .fga-mast-nav .main-navigation a { min-height: 60px; width: 100%; padding: 0 1.5rem; font-size: 1.5rem; color: var(--tp-ink); }
    .fga-mast-nav .main-navigation a:hover { color: var(--tp-brick); }
    .fga-mast-nav .main-navigation a::after { display: none; }
    .fga-mast-nav .main-navigation .current-cat > a { background: var(--tp-tint); }
    .fga-mast-nav .main-navigation .fga-drawer-label { display: block; margin: 1.25rem 1.5rem 0.5rem; padding-bottom: 0.5rem; border-bottom: 4px solid var(--tp-brick); font-size: 1rem; color: var(--tp-ink); }
    .fga-mast-nav .main-navigation .fga-drawer-sub { display: flex; align-items: center; justify-content: center; width: auto; margin: 1.5rem; min-height: 52px; padding: 0 1rem; font-size: 1.25rem; background: var(--tp-brick); color: var(--tp-on-brick); border-radius: var(--tp-radius); text-decoration: none; }
    .fga-masthead .mobile-menu-toggle.active { position: fixed; top: 0.75rem; left: auto; right: 0.75rem; z-index: 1002; }

    .fga-layout { grid-template-columns: minmax(0, 1fr); }
    .fga-layout > .fga-sidebar { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-rule); }
    .fga-sidebar .fga-widget-news, .fga-sidebar .fga-widget-dept { display: none; }

    .fga-intro, .fga-archive-head { grid-template-columns: minmax(0, 1fr); }
    .fga-shelf--c3 .fga-shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .fga-shelf--grid.fga-shelf--c3 .fga-shelf-row, .fga-shelf--grid.fga-shelf--c4 .fga-shelf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fga-rows { grid-template-columns: minmax(0, 1fr); }
    .fga-newsletter-inner { grid-template-columns: minmax(0, 1fr); }
    .fga-footer-top { grid-template-columns: minmax(0, 1fr); }
    .fga-footer-links { flex-direction: column; }
}

@media (max-width: 720px) {
    .fga-shelf { padding: 0.8rem; }
    .fga-shelf--scroll { padding-right: 0; }
    .fga-shelf--scroll .fga-shelf-row { gap: 0.8rem; padding-right: 0.8rem; }
    .fga-sign { font-size: 1.1875rem; padding: 0.5rem 0.9rem; }
    /* The sign stays on its shelf; the aisle link moves under the shelf. */
    .fga-sign-row .fga-sign-link { display: none; }
    .fga-shelf-more { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; margin-top: 0.35rem; font-family: var(--tp-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
    .fga-hrow { grid-template-columns: 38% minmax(0, 1fr); gap: 0 1rem; }
    .fga-hrow-dek { display: none; }
    .fga-newsletter .newsletter-form { flex-direction: column; }
    .fga-page .entry-content .fga-onpage ol { columns: 1; }
    .fga-article .entry-content .fga-toc-list { columns: 1; }
    .fga-age-chip { margin-left: 0; }
    .fga-archive-title { font-size: clamp(2.5rem, 1.8rem + 4vw, 3.25rem); }
}

@media (max-width: 560px) {
    .fga-shelf--grid .fga-shelf-row, .fga-shelf--grid.fga-shelf--c3 .fga-shelf-row, .fga-shelf--grid.fga-shelf--c4 .fga-shelf-row { grid-template-columns: minmax(0, 1fr); }
    /* One column: image left, title right — a 16:9 card per row runs too long. */
    .fga-shelf--grid .fga-scard { display: grid; grid-template-columns: 40% minmax(0, 1fr); }
    .fga-shelf--grid .fga-scard .fga-frame { position: relative; min-height: 104px; border-bottom: 0; border-right: 1px solid var(--tp-rule); }
    /* The photo fills the left cell without setting its height (a tall source image stretched the row). */
    .fga-shelf--grid .fga-scard .fga-frame img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
    .fga-shelf--grid .fga-scard-body { padding: 0.65rem 0.75rem; }
    .fga-shelf--grid .fga-scard-title { font-size: 1.1875rem; }
    .fga-shelf--grid .fga-scard-date { border-top: 0; padding-top: 0.25rem; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
