/*
Theme Name: Hattrick
Theme URI: https://example.com/hattrick
Author: Hattrick Studio
Author URI: https://example.com
Description: Hattrick — lavender page, floating violet pill menu, big rounded cards and gradient accents. Part of the Fieldline sports theme family: shared content contract (pillar/cluster import, meta boxes, SEO schema), mega-menu with automatic "More" overflow, paginated Hub template. No page builder or SEO plugin required.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hattrick
Tags: blog, one-column, custom-logo, custom-menu, featured-images, translation-ready, editor-style

Design card
------------
Composition   : content column + sticky right-hand sidebar (auto Table of Contents) on
                page.php/single.php; the front page keeps its own PILLAR hero/layout
                untouched, since that markup and its <style> ship with the content.
Header        : one sticky portal header — thin top bar (site tagline with live dot),
                navy brand/nav row, optional second "sports strip" (menu location
                "Sports Strip"). Primary nav: first FLD_NAV_VISIBLE (default 6) items
                stay in the bar, the rest go into an automatic "More" dropdown; items
                with 2 levels of children open as a multi-column mega-menu; mobile is a
                slide-in accordion drawer.
Palette       : Newsroom light — cool grey-white page, white cards, deep navy chrome,
                one electric-blue accent, a red "live" dot. Optional dark variant via
                FLD_THEME_VARIANT.
Typography    : "Barlow Condensed" (bold, uppercase in nav/labels) for headlines and
                navigation, "Inter" for body copy. Fluid scale via clamp().
Cards         : white, 1px rule, 8px radius, soft shadow, blue top rule + lift on hover.
Density       : compact and scannable — tight rhythm, strong hierarchy.

Compatibility notes (read before editing selectors)
----------------------------------------------------
The imported PILLAR page ships its own <style> block (element selectors: body, h1,
h2, h3, p, ul, a[href], figure, blockquote, table, plus content classes such as
.hero, .toc, .card-grid, .site-header, .site-footer, .header-meta, etc.) and that
block is printed by the theme on EVERY page via #pillar-custom-styles (see
inc/pillar-integration.php), positioned in <head> AFTER this stylesheet on purpose,
so content wins any tie on shared selectors. Two consequences drive how this file
is written:

  1. Every class here is prefixed "fld-" — never a bare/generic name like
     .container, .card, .header, .footer, .hero, .toc (those belong to content).
  2. Chrome that must survive the content stylesheet's low-specificity element
     rules (nav links, sidebar, cards, footer fallback, buttons) is scoped under a
     stable ID (#fld-shell, #fld-site-header, #fld-sidebar, #fld-site-footer,
     #fld-related, #fld-articles-grid, #main-content, ...). An ID always outranks
     "a[href]" / "h1" / ".some-content-class" without ever resorting to
     !important, which the brief explicitly forbids for fighting content styles.
*/

/* ============================================================
   1) FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

/* ============================================================
   2) DESIGN TOKENS (all prefixed --fld-)
   ============================================================ */
:root{
  --fld-bg:#f1f4f9;
  --fld-surface:#ffffff;
  --fld-surface-raised:#f7f9fc;
  --fld-ink:#0d1b2e;
  --fld-ink-muted:#4f6078;
  --fld-ink-faint:#8190a5;
  --fld-border:#dce3ed;
  --fld-border-strong:#c3cddc;
  --fld-accent:#1457f5;
  --fld-accent-bright:#4d8bff;
  --fld-accent-ink:#ffffff;
  --fld-accent-wash:#e8efff;
  --fld-danger:#c9302c;
  --fld-info:#2f7df6;
  --fld-warning:#e8a317;
  --fld-success:#1fa971;
  --fld-live:#ff3b30;
  --fld-navy:#0b2447;
  --fld-navy-2:#102d58;
  --fld-navy-deep:#071a35;
  --fld-header-bg:var(--fld-navy);
  --fld-header-bg-2:var(--fld-navy-2);
  --fld-header-ink:#ffffff;
  --fld-header-ink-soft:#d6def0;
  --fld-header-line:rgba(255,255,255,.14);
  --fld-header-hover:rgba(255,255,255,.08);
  --fld-topbar-bg:var(--fld-navy-deep);
  --fld-topbar-ink:#c9d3e6;
  --fld-topbar-strong:#ffffff;
  --fld-topbar-line:rgba(255,255,255,.1);

  --fld-font-head:"Barlow Condensed","Arial Narrow",Impact,sans-serif;
  --fld-font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --fld-font-mono:"Inter",system-ui,sans-serif;

  --fld-shell-width:1240px;
  --fld-read-width:780px;
  --fld-radius:8px;
  --fld-gap:1.4rem;
  --fld-shadow-sm:0 1px 2px rgba(13,27,46,.06),0 4px 14px rgba(13,27,46,.05);
  --fld-shadow-md:0 2px 4px rgba(13,27,46,.08),0 12px 28px rgba(13,27,46,.12);
}

/* Dark-variant token overrides live in assets/css/theme-dark.css, enqueued
   conditionally (only when FLD_THEME_VARIANT === 'dark', see functions.php)
   so a light-only install never downloads them. */

*,*::before,*::after{box-sizing:border-box;}
/* baseline reset — the browser default 8px body margin must never show around the theme shell */
body{margin:0;}

/* ============================================================
   3) SHELL — everything the theme owns lives inside #fld-shell so
      content's global body{background/color/font} rule (printed
      after this file) cannot repaint the theme's own chrome.
   ============================================================ */
#fld-shell{
  background:var(--fld-bg);
  color:var(--fld-ink);
  font-family:var(--fld-font-body);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
#fld-shell img{max-width:100%;height:auto;}
#fld-shell :focus-visible{outline:3px solid var(--fld-accent);outline-offset:2px;}

.fld-skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:9999;
  background:var(--fld-accent);
  color:var(--fld-accent-ink);
  padding:.8em 1.2em;
  font-family:var(--fld-font-mono);
  font-size:.85rem;
  text-decoration:none;
}
.fld-skip-link:focus{left:1rem;top:1rem;}

.fld-visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* ============================================================
   4) HEADER — top bar, sticky brand+nav row, mega-menu, "More"
      overflow, sports strip, mobile accordion drawer
   ============================================================ */
#fld-topbar{background:var(--fld-topbar-bg);color:var(--fld-topbar-ink);border-bottom:1px solid var(--fld-topbar-line);}
#fld-topbar .fld-topbar-inner{
  max-width:var(--fld-shell-width);margin:0 auto;padding:.4rem 1.5rem;
  font-family:var(--fld-font-body);font-size:.74rem;font-weight:500;letter-spacing:.02em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
#fld-topbar .fld-topbar-tag{overflow:hidden;text-overflow:ellipsis;min-width:0;}
#fld-topbar .fld-topbar-tag::before{
  content:"";display:inline-block;width:7px;height:7px;border-radius:50%;
  background:var(--fld-live);margin-right:.6em;vertical-align:middle;
  box-shadow:0 0 0 3px rgba(255,59,48,.22);
}

#fld-site-header{
  background:var(--fld-header-bg);
  color:var(--fld-header-ink);
  position:sticky;
  top:0;
  z-index:40;
  box-shadow:0 2px 0 var(--fld-accent),0 6px 18px rgba(8,18,40,.18);
}
#fld-site-header .fld-header-row{
  max-width:var(--fld-shell-width);
  margin:0 auto;
  padding:0 1.5rem;
  min-height:62px;
  display:flex;
  align-items:stretch;
  gap:1.25rem;
}
#fld-site-header .fld-brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  text-decoration:none;
  color:var(--fld-header-ink);
  flex:0 0 auto;
}
#fld-site-header .custom-logo-link{display:inline-flex;align-items:center;flex:0 0 auto;}
#fld-site-header .custom-logo-link img,
#fld-site-header .fld-brand img{display:block;height:36px;width:auto;}
#fld-site-header .fld-brand .fld-brand-mark{
  width:26px;height:26px;border-radius:50%;
  background:conic-gradient(from 20deg,var(--fld-accent) 0 25%,var(--fld-header-ink) 0 50%,var(--fld-accent) 0 75%,var(--fld-header-ink) 0);
  box-shadow:inset 0 0 0 5px var(--fld-header-bg);
  border:2px solid var(--fld-header-ink);
}
#fld-site-header .fld-brand .fld-brand-name{
  font-family:var(--fld-font-head);
  font-weight:800;
  font-size:1.55rem;
  letter-spacing:.01em;
  text-transform:uppercase;
  line-height:1;
}

/* primary nav */
#fld-site-header .fld-nav{display:flex;flex:1 1 auto;min-width:0;align-items:stretch;}
#fld-site-header .fld-nav .fld-menu{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:nowrap;align-items:stretch;gap:.1rem;
  width:100%;
}
#fld-site-header .fld-nav li{position:relative;margin:0;}
#fld-site-header .fld-nav .fld-nav-item--l0{display:flex;align-items:stretch;flex:0 0 auto;}
#fld-site-header .fld-nav .fld-nav-item--l0 > .fld-nav__link,
#fld-site-header .fld-nav .fld-more-btn{
  display:flex;align-items:center;
  font-family:var(--fld-font-head);
  font-weight:700;
  font-size:1.02rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--fld-header-ink);
  text-decoration:none;
  padding:0 .8rem;
  border:0;background:none;cursor:pointer;
  border-bottom:3px solid transparent;
  transition:background .15s ease,border-color .15s ease;
  white-space:nowrap;
}
#fld-site-header .fld-nav .fld-nav-item--l0:hover > .fld-nav__link,
#fld-site-header .fld-nav .fld-nav-item--l0 > .fld-nav__link:focus-visible,
#fld-site-header .fld-nav .fld-more-btn:hover,
#fld-site-header .fld-nav .fld-is-current > .fld-nav__link{
  background:var(--fld-header-hover);
  border-bottom-color:var(--fld-accent-bright);
}
#fld-site-header .fld-nav .fld-more-btn i{
  width:7px;height:7px;margin-left:.5em;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
}

#fld-site-header .fld-nav .fld-nav-item--more[hidden]{display:none;}

/* chevron toggle button next to parent links */
#fld-site-header .fld-subtoggle{
  display:flex;align-items:center;justify-content:center;
  width:22px;margin-left:-.65rem;padding:0 .35rem 0 0;
  background:none;border:0;cursor:pointer;color:var(--fld-header-ink);
}
#fld-site-header .fld-subtoggle span{
  width:7px;height:7px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transition:transform .15s ease;
}
#fld-site-header .fld-nav .fld-nav-item--l0:hover > .fld-subtoggle,
#fld-site-header .fld-nav .fld-nav-item--l0.fld-open > .fld-subtoggle{background:var(--fld-header-hover);}
#fld-site-header .fld-open > .fld-subtoggle span{transform:rotate(-135deg) translateY(-2px);}

/* dropdown / mega panel */
#fld-site-header .fld-nav .fld-sub{
  list-style:none;margin:0;padding:.5rem 0;
  position:absolute;left:0;top:100%;
  min-width:230px;
  background:var(--fld-surface);
  color:var(--fld-ink);
  border-top:3px solid var(--fld-accent);
  border-radius:0 0 var(--fld-radius) var(--fld-radius);
  box-shadow:0 18px 40px rgba(8,18,40,.22);
  display:none;
  z-index:50;
}
#fld-site-header .fld-nav .fld-sub .fld-nav-item{display:block;}
#fld-site-header .fld-nav .fld-sub .fld-nav__link{
  display:block;
  font-family:var(--fld-font-body);
  font-weight:600;
  font-size:.92rem;
  letter-spacing:0;text-transform:none;
  color:var(--fld-ink);
  text-decoration:none;
  padding:.55rem 1.1rem;
  border:0;
}
#fld-site-header .fld-nav .fld-sub .fld-nav__link:hover,
#fld-site-header .fld-nav .fld-sub .fld-nav__link:focus-visible{background:var(--fld-accent-wash);color:var(--fld-accent);}
@media (hover:hover){
  #fld-site-header .fld-nav .fld-nav-item--l0:hover > .fld-sub{display:block;}
}
#fld-site-header .fld-nav .fld-nav-item--l0.fld-open > .fld-sub,
#fld-site-header .fld-nav .fld-nav-item--l0:focus-within > .fld-sub{display:block;}

/* mega layout: a level-1 item that itself has children => multi-column panel */
#fld-site-header .fld-nav .fld-nav-item--l0:has(.fld-sub--l2){position:static;}
#fld-site-header .fld-nav .fld-nav-item--l0:has(.fld-sub--l2) > .fld-sub--l1{
  left:0;right:0;margin:0 auto;
  width:min(900px,calc(100vw - 3rem));
  padding:1.1rem 1.2rem 1.3rem;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:1.2rem 1.6rem;
}
@media (hover:hover){
  #fld-site-header .fld-nav .fld-nav-item--l0:has(.fld-sub--l2):hover > .fld-sub--l1{display:grid;}
}
#fld-site-header .fld-nav .fld-nav-item--l0.fld-open:has(.fld-sub--l2) > .fld-sub--l1,
#fld-site-header .fld-nav .fld-nav-item--l0:has(.fld-sub--l2):focus-within > .fld-sub--l1{display:grid;}
#fld-site-header .fld-nav .fld-sub--l1 > .fld-nav-item--parent > .fld-nav__link{
  font-family:var(--fld-font-head);
  font-weight:800;font-size:.95rem;letter-spacing:.07em;text-transform:uppercase;
  color:var(--fld-accent);
  padding:0 0 .45rem;margin-bottom:.35rem;
  border-bottom:2px solid var(--fld-border);
  border-radius:0;
}
#fld-site-header .fld-nav .fld-sub--l1 > .fld-nav-item--parent > .fld-nav__link:hover{background:none;}
#fld-site-header .fld-nav .fld-sub--l1 > .fld-nav-item--parent > .fld-subtoggle{display:none;}
#fld-site-header .fld-nav .fld-sub--l2{
  position:static;display:block;min-width:0;padding:0;
  background:none;border:0;box-shadow:none;
}
#fld-site-header .fld-nav .fld-sub--l2 .fld-nav__link{padding:.32rem 0;font-weight:500;font-size:.9rem;border-radius:4px;}
#fld-site-header .fld-nav .fld-sub--l2 .fld-nav__link:hover{padding-left:.4rem;}
/* last items: open panel to the left so it never leaves the viewport */
#fld-site-header .fld-nav .fld-nav-item--l0:nth-last-child(-n+2) > .fld-sub,
#fld-site-header .fld-nav .fld-nav-item--more > .fld-sub{left:auto;right:0;}

/* "More" dropdown — nested menus are collapsed groups, opened with their chevron */
#fld-site-header .fld-nav .fld-sub--more{min-width:270px;max-height:min(70vh,520px);overflow-y:auto;}
#fld-site-header .fld-nav .fld-sub--more .fld-nav-item--l0{display:block;position:relative;}
#fld-site-header .fld-nav .fld-sub--more .fld-subtoggle{
  position:absolute;right:.4rem;top:.25rem;width:34px;height:34px;margin:0;padding:0;color:var(--fld-ink);
}
#fld-site-header .fld-nav .fld-sub--more .fld-sub{
  position:static;display:none;min-width:0;padding:0 0 .3rem 1rem;
  background:none;border:0;box-shadow:none;grid-template-columns:none;width:auto;margin:0;
}
#fld-site-header .fld-nav .fld-sub--more .fld-open > .fld-sub{display:block;}
#fld-site-header .fld-nav .fld-sub--more .fld-sub .fld-nav__link{font-weight:500;font-size:.88rem;color:var(--fld-ink-muted);padding:.32rem 1.1rem;}
#fld-site-header .fld-nav .fld-sub--more .fld-nav-item--l0:hover > .fld-sub{display:none;}
#fld-site-header .fld-nav .fld-sub--more .fld-nav-item--l0.fld-open:hover > .fld-sub{display:block;}

/* burger */
#fld-site-header .fld-header-aside{display:none;align-items:center;margin-left:auto;}
#fld-site-header .fld-burger{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  width:44px;height:44px;border:1px solid var(--fld-header-line);border-radius:var(--fld-radius);
  background:transparent;cursor:pointer;padding:0;
}
#fld-site-header .fld-burger span,
#fld-site-header .fld-burger::before,
#fld-site-header .fld-burger::after{
  content:"";display:block;width:20px;height:2px;background:var(--fld-header-ink);position:relative;
}

/* sports strip */
#fld-sports-strip{background:var(--fld-header-bg-2);border-top:1px solid var(--fld-header-line);}
#fld-sports-strip .fld-sports-inner{max-width:var(--fld-shell-width);margin:0 auto;padding:0 1.5rem;}
#fld-sports-strip .fld-sportsbar{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#fld-sports-strip .fld-sportsbar::-webkit-scrollbar{display:none;}
#fld-sports-strip .fld-sports-menu{list-style:none;margin:0;padding:.45rem 0;display:flex;gap:.45rem;white-space:nowrap;}
#fld-sports-strip .fld-sports-menu .fld-nav__link{
  display:inline-flex;align-items:center;
  font-family:var(--fld-font-body);font-weight:600;font-size:.82rem;
  color:var(--fld-header-ink-soft);text-decoration:none;
  padding:.38rem .9rem;border-radius:999px;
  background:var(--fld-header-hover);
  transition:background .15s ease,color .15s ease;
}
#fld-sports-strip .fld-sports-menu .fld-nav__link:hover,
#fld-sports-strip .fld-sports-menu .fld-is-current > .fld-nav__link{background:var(--fld-accent);color:var(--fld-accent-ink);}

/* mobile drawer (accordion) */
#fld-mobile-drawer{
  position:fixed;
  inset:0 0 0 auto;
  width:min(88vw,360px);
  background:var(--fld-header-bg);
  color:var(--fld-header-ink);
  transform:translateX(100%);
  transition:transform .28s ease;
  z-index:60;
  padding:1rem 1.25rem 2rem;
  overflow-y:auto;
}
#fld-mobile-drawer.fld-is-open{transform:translateX(0);}
#fld-mobile-drawer ul{list-style:none;margin:0;padding:0;}
#fld-mobile-drawer li{position:relative;border-bottom:1px solid var(--fld-header-line);}
#fld-mobile-drawer .fld-nav__link{
  display:block;
  padding:.9em 3rem .9em 0;
  font-family:var(--fld-font-head);font-weight:700;font-size:1.1rem;letter-spacing:.05em;text-transform:uppercase;
  color:var(--fld-header-ink);text-decoration:none;
}
#fld-mobile-drawer .fld-sub{display:none;padding:0 0 .6rem .9rem;}
#fld-mobile-drawer .fld-open > .fld-sub{display:block;}
#fld-mobile-drawer .fld-sub li{border-bottom:0;}
#fld-mobile-drawer .fld-sub .fld-nav__link{
  font-family:var(--fld-font-body);font-weight:500;font-size:.95rem;letter-spacing:0;text-transform:none;
  color:var(--fld-header-ink-soft);padding:.55em 3rem .55em 0;
}
#fld-mobile-drawer .fld-sub--l2 .fld-nav__link{font-size:.9rem;color:var(--fld-header-ink-soft);opacity:.8;}
#fld-mobile-drawer .fld-subtoggle{
  position:absolute;right:0;top:0;width:46px;height:46px;
  display:flex;align-items:center;justify-content:center;
  background:none;border:0;border-left:1px solid var(--fld-header-line);color:var(--fld-header-ink);cursor:pointer;
}
#fld-mobile-drawer .fld-sub .fld-subtoggle{height:38px;width:40px;border-left:0;}
#fld-mobile-drawer .fld-subtoggle span{
  width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform .15s ease;
}
#fld-mobile-drawer .fld-open > .fld-subtoggle span{transform:rotate(-135deg) translateY(-2px);}
#fld-mobile-drawer .fld-drawer-close{
  border:1px solid var(--fld-header-line);background:none;color:var(--fld-header-ink);border-radius:var(--fld-radius);
  width:38px;height:38px;font-size:1.2rem;cursor:pointer;margin-bottom:.8rem;
}
#fld-drawer-overlay{
  position:fixed;inset:0;
  background:rgba(8,18,40,.55);
  opacity:0;pointer-events:none;
  transition:opacity .25s ease;
  z-index:55;
}
#fld-drawer-overlay.fld-is-open{opacity:1;pointer-events:auto;}

/* ---- header layouts (selected per theme via FLD_HEADER_STYLE) ---- */
/* centered: logo centred, nav centred on its own row */
#fld-site-header.fld-header--centered .fld-header-row{flex-direction:column;align-items:center;gap:0;padding-top:.9rem;}
#fld-site-header.fld-header--centered .fld-brand .fld-brand-name{font-size:2.1rem;}
#fld-site-header.fld-header--centered .fld-nav{width:100%;justify-content:center;border-top:1px solid var(--fld-header-line);margin-top:.7rem;}
#fld-site-header.fld-header--centered .fld-nav .fld-menu{justify-content:center;width:auto;}
#fld-site-header.fld-header--centered .fld-nav .fld-nav-item--l0 > .fld-nav__link{min-height:48px;}
/* minimal: burger + slide-in drawer on every width, no inline nav */
#fld-site-header.fld-header--minimal .fld-nav{display:none;}
#fld-site-header.fld-header--minimal .fld-header-aside{display:flex;}
#fld-site-header.fld-header--minimal .fld-header-row{align-items:center;}
/* stacked: brand row on top, full-width menu bar underneath */
#fld-site-header.fld-header--stacked .fld-header-row{flex-wrap:wrap;align-items:center;min-height:0;padding-top:.85rem;padding-bottom:0;gap:0 1.5rem;}
#fld-site-header.fld-header--stacked .fld-brand{padding-bottom:.85rem;}
#fld-site-header.fld-header--stacked .fld-brand .fld-brand-name{font-size:2rem;}
#fld-site-header.fld-header--stacked .fld-header-tagline{margin-left:auto;padding-bottom:.85rem;font-size:.85rem;color:var(--fld-header-ink-soft);max-width:34ch;text-align:right;line-height:1.35;}
#fld-site-header.fld-header--stacked .fld-nav{order:5;flex:1 0 100%;border-top:1px solid var(--fld-header-line);}
#fld-site-header.fld-header--stacked .fld-nav .fld-nav-item--l0 > .fld-nav__link,
#fld-site-header.fld-header--stacked .fld-nav .fld-more-btn{min-height:48px;}
#fld-site-header.fld-header--stacked .fld-header-aside{order:2;}

/* pill: detached rounded menu floating over the page */
#fld-site-header.fld-header--pill{background:transparent;box-shadow:none;top:.6rem;margin-bottom:.4rem;}
#fld-site-header.fld-header--pill .fld-header-row{
  background:var(--fld-header-bg);border-radius:999px;min-height:58px;
  max-width:calc(var(--fld-shell-width) - 1.5rem);padding:0 1.1rem 0 1.4rem;
  box-shadow:0 12px 32px rgba(8,18,40,.22),0 0 0 1px var(--fld-header-line);
}
#fld-site-header.fld-header--pill .fld-nav{justify-content:flex-end;}
#fld-site-header.fld-header--pill .fld-nav .fld-menu{justify-content:flex-end;gap:.15rem;}
#fld-site-header.fld-header--pill .fld-nav .fld-nav-item--l0 > .fld-nav__link,
#fld-site-header.fld-header--pill .fld-nav .fld-more-btn{border-bottom:0;border-radius:999px;margin:.5rem 0;padding:0 .95rem;}
#fld-site-header.fld-header--pill .fld-nav .fld-subtoggle{margin:.5rem 0;border-radius:0 999px 999px 0;}
#fld-site-header.fld-header--pill .fld-nav .fld-nav-item--l0:hover > .fld-nav__link,
#fld-site-header.fld-header--pill .fld-nav .fld-more-btn:hover{background:var(--fld-header-hover);}
#fld-site-header.fld-header--pill .fld-nav .fld-is-current > .fld-nav__link{background:var(--fld-accent);color:var(--fld-accent-ink);}
#fld-site-header.fld-header--pill .fld-nav .fld-sub{margin-top:.5rem;border-radius:var(--fld-radius);border-top-width:0;}
#fld-site-header.fld-header--pill #fld-sports-strip{background:transparent;border:0;}
#fld-site-header.fld-header--pill #fld-sports-strip .fld-sports-menu{padding:.55rem 0 .15rem;}
#fld-site-header.fld-header--pill #fld-sports-strip .fld-sports-menu .fld-nav__link{background:var(--fld-surface);color:var(--fld-ink);box-shadow:var(--fld-shadow-sm);}
#fld-site-header.fld-header--pill #fld-sports-strip .fld-sports-menu .fld-nav__link:hover,
#fld-site-header.fld-header--pill #fld-sports-strip .fld-sports-menu .fld-is-current > .fld-nav__link{background:var(--fld-accent);color:var(--fld-accent-ink);}
#fld-site-header.fld-header--pill .fld-brand .fld-brand-name{font-size:1.4rem;}
/* compact: single slim row, no top bar */
#fld-site-header.fld-header--compact .fld-header-row{min-height:54px;}
#fld-site-header.fld-header--compact .fld-brand .fld-brand-name{font-size:1.35rem;}
#fld-site-header.fld-header--compact .fld-nav .fld-nav-item--l0 > .fld-nav__link,
#fld-site-header.fld-header--compact .fld-nav .fld-more-btn{font-size:.95rem;padding:0 .65rem;}

@media (max-width:900px){
  #fld-site-header.fld-header--stacked .fld-header-tagline{display:none;}
  #fld-site-header.fld-header--stacked .fld-header-row{padding-bottom:0;}
  #fld-site-header.fld-header--stacked .fld-brand{padding:0;}
  #fld-site-header.fld-header--pill .fld-header-row{border-radius:var(--fld-radius);margin:0 .6rem;}
  #fld-site-header.fld-header--centered .fld-header-row{flex-direction:row;padding-top:0;}
  #fld-site-header.fld-header--centered .fld-brand .fld-brand-name{font-size:1.5rem;}
  #fld-site-header .fld-nav{display:none;}
  #fld-site-header .fld-header-aside{display:flex;}
  #fld-site-header .fld-header-row{align-items:center;min-height:56px;}
}



/* ---- long menu labels: shortened with an ellipsis (full text in the title tooltip) ---- */
.fld-nav__text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#fld-site-header .fld-nav .fld-nav-item--l0 > .fld-nav__link .fld-nav__text{max-width:12em;}
#fld-site-header .fld-nav .fld-sub .fld-nav__link .fld-nav__text{max-width:100%;}
#fld-site-header .fld-nav .fld-sub{max-width:92vw;}
#fld-site-header .fld-nav .fld-sub--l1 > .fld-nav-item > .fld-nav__link{max-width:320px;}
#fld-site-header .fld-nav .fld-nav-item--l0.fld-has-many > .fld-sub--l1 > .fld-nav-item > .fld-nav__link{max-width:none;}
#fld-sports-strip .fld-sports-menu .fld-nav__link .fld-nav__text{max-width:14em;}
#fld-mobile-drawer .fld-nav__text{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* ---- auto child pages in the menu (inc/menu-auto-children.php) ---- */
/* long lists (more than 8 children) open as a 2-3 column panel */
#fld-site-header .fld-nav .fld-nav-item--l0.fld-has-many > .fld-sub--l1{min-width:min(640px,92vw);padding:.8rem 1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));column-gap:1.2rem;}
@media (hover:hover){
  #fld-site-header .fld-nav .fld-nav-item--l0.fld-has-many:hover > .fld-sub--l1{display:grid;}
}
#fld-site-header .fld-nav .fld-nav-item--l0.fld-has-many.fld-open > .fld-sub--l1,
#fld-site-header .fld-nav .fld-nav-item--l0.fld-has-many:focus-within > .fld-sub--l1{display:grid;}
#fld-site-header .fld-nav .fld-sub .fld-menu-viewall{grid-column:1/-1;}
#fld-site-header .fld-nav .fld-sub .fld-menu-viewall > .fld-nav__link{
  margin-top:.3rem;border-top:1px solid var(--fld-border);font-weight:700;color:var(--fld-accent);
}
#fld-mobile-drawer .fld-menu-viewall > .fld-nav__link{color:var(--fld-accent-bright);font-weight:700;}

/* ---- geo chip (header top bar) + notice bar ---- */
.fld-geo{display:inline-flex;align-items:center;gap:.5em;flex:0 0 auto;position:relative;padding-bottom:3px;font-size:.74rem;font-weight:600;color:var(--fld-topbar-ink);}
.fld-geo .fld-geo__code{font-weight:800;font-size:.68rem;letter-spacing:.06em;padding:.1em .45em;border-radius:3px;background:var(--fld-accent);color:var(--fld-accent-ink);}
.fld-geo .fld-geo__age{font-weight:800;font-size:.68rem;padding:.1em .45em;border-radius:999px;border:1px solid currentColor;}
.fld-geo--it::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#009246 0 33.3%,#ffffff 0 66.6%,#ce2b37 0);}
@media (max-width:560px){.fld-geo .fld-geo__name{display:none;}}
#fld-geo-note{background:var(--fld-topbar-bg);color:var(--fld-topbar-ink);border-top:1px solid var(--fld-topbar-line);font-family:var(--fld-font-body);}
#fld-geo-note .fld-geo-note__inner{max-width:var(--fld-shell-width);margin:0 auto;padding:.7rem 1.5rem;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;font-size:.78rem;line-height:1.45;}
#fld-geo-note .fld-geo-note__age{font-weight:800;border:1.5px solid currentColor;border-radius:999px;padding:.05em .55em;color:var(--fld-topbar-strong);}
#fld-geo-note .fld-geo-note__text{flex:1 1 320px;}
#fld-geo-note .fld-geo-note__item{color:var(--fld-topbar-strong);font-weight:600;}
#fld-geo-note .fld-geo-note__item a{color:var(--fld-topbar-strong);text-decoration:underline;}
#fld-geo-note.fld-geo-note--it{border-top:3px solid transparent;border-image:linear-gradient(90deg,#009246 0 33.3%,#fff 0 66.6%,#ce2b37 0) 1;}

/* ============================================================
   5) LAYOUT — main content grid with sticky sidebar
   ============================================================ */
#main-content{max-width:var(--fld-shell-width);margin:0 auto;padding:2.5rem 1.5rem 4rem;width:100%;flex:1;}

#fld-page-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:3rem;
  align-items:start;
}
#fld-page-grid.fld-no-sidebar{grid-template-columns:minmax(0,1fr);}
#fld-page-grid .fld-primary{min-width:0;}

#fld-sidebar{
  position:sticky;
  top:5.5rem;
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}
#fld-sidebar .fld-sidebar-box{
  border:1px solid var(--fld-border);
  border-top:3px solid var(--fld-accent);
  border-radius:var(--fld-radius);
  box-shadow:var(--fld-shadow-sm);
  padding:1.25rem 1.35rem;
  background:var(--fld-surface);
}
#fld-sidebar .fld-sidebar-title{
  font-family:var(--fld-font-head);
  font-size:.95rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--fld-ink-muted);
  margin:0 0 .9em;
  padding-bottom:.6em;
  border-bottom:1px solid var(--fld-border);
}
/* Portable TOC component — .fld-toc + two-class children only, so it keeps
   priority over content's element-level rules (a[href], h2...) whether it's
   dropped in #fld-sidebar (page.php/single.php) or standalone in
   #fld-front-toc (front page, replacing the manual [data-content="toc"]
   block — see inc/table-of-contents.php). Two classes = specificity (0,2,0),
   which beats a[href]'s (0,1,1) without an ID wrapper or !important. */
.fld-toc .fld-toc__title{
  font-family:var(--fld-font-head);
  font-size:.95rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--fld-ink-muted);
  margin:0 0 .9em;
  padding-bottom:.6em;
  border-bottom:1px solid var(--fld-border);
}
.fld-toc .fld-toc__list,
.fld-toc .fld-toc__list ol{list-style:none;margin:0;padding:0;}
.fld-toc .fld-toc__list li{margin:0;}
.fld-toc .fld-toc__link{
  display:block;
  padding:.4em 0;
  font-size:.88rem;
  line-height:1.35;
  color:var(--fld-ink-muted);
  text-decoration:none;
  border-left:2px solid transparent;
  padding-left:.6em;
  margin-left:-.6em;
}
.fld-toc .fld-toc__link:hover,
.fld-toc .fld-toc__link:focus-visible,
.fld-toc .fld-toc__link.fld-is-active{
  color:var(--fld-ink);
  border-left-color:var(--fld-accent);
}
#fld-front-toc{
  max-width:var(--fld-read-width);
  margin:1.6rem auto;
  border-radius:var(--fld-radius);
  border:1px solid var(--fld-border);
  background:var(--fld-surface);
  padding:1.3rem 1.5rem;
}
#fld-sidebar .fld-toc{display:block;}

@media (max-width:1000px){
  #fld-page-grid{grid-template-columns:minmax(0,1fr);}
  #fld-sidebar{position:static;}
}

/* ============================================================
   6) BREADCRUMBS
   ============================================================ */
#fld-breadcrumbs{max-width:var(--fld-shell-width);margin:0 auto;padding:1.1rem 1.5rem 0;}
#fld-breadcrumbs .fld-crumbs{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:.4em;
  margin:0;padding:0;
  font-family:var(--fld-font-mono);
  font-size:.76rem;
  color:var(--fld-ink-faint);
}
#fld-breadcrumbs .fld-crumbs li:not(:last-child)::after{content:"/";margin-left:.4em;color:var(--fld-border-strong);}
#fld-breadcrumbs .fld-crumbs a{color:var(--fld-ink-muted);text-decoration:none;}
#fld-breadcrumbs .fld-crumbs a:hover{color:var(--fld-accent);text-decoration:underline;}
#fld-breadcrumbs .fld-crumbs [aria-current="page"]{color:var(--fld-ink);}

/* ============================================================
   7) ENTRY HEADER (page.php / single.php)
   ============================================================ */
#fld-entry-header{max-width:var(--fld-read-width);margin:1.4rem 0 1.6rem;}
#fld-entry-header .fld-eyebrow{
  display:inline-block;
  font-family:var(--fld-font-head);
  font-size:.9rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--fld-accent-ink);background:var(--fld-accent);
  padding:.15em .7em;border-radius:3px;
  margin-bottom:.8em;
}
#fld-entry-header.fld-front-header{max-width:var(--fld-shell-width);margin:0 auto;}
#fld-entry-header .fld-entry-title{
  font-family:var(--fld-font-head);
  font-weight:800;
  font-size:clamp(2.3rem,5vw,3.5rem);
  line-height:1.04;
  letter-spacing:.005em;
  text-transform:uppercase;
  margin:0 0 .5em;
  color:var(--fld-ink);
}
.fld-meta-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:.5em 1.4em;
  font-family:var(--fld-font-body);
  font-size:.8rem;
  color:var(--fld-ink-muted);
  padding-top:.9em;
  border-top:1px solid var(--fld-border);
}
.fld-meta-row .fld-meta-icon{flex:0 0 auto;width:1.05em;height:1.05em;color:var(--fld-accent);}
.fld-meta-row .fld-meta-item{display:inline-flex;align-items:center;gap:.4em;}
/* .fld-meta-row .fld-meta-item a — two classes (0,2,1), not ".fld-meta-row
   a" (0,1,1), which would tie with content's global a[href] and lose since
   content's stylesheet is printed after this one (see compatibility note
   at the top of this file). */
.fld-meta-row .fld-meta-item a{color:var(--fld-ink-muted);text-decoration:none;}
.fld-meta-row .fld-meta-item a:hover{color:var(--fld-accent);text-decoration:underline;}

#fld-featured-figure{margin:0 0 2rem;max-width:var(--fld-shell-width);}
#fld-featured-figure img{width:100%;height:auto;display:block;border:1px solid var(--fld-border);border-radius:var(--fld-radius);}

/* ============================================================
   8) ENTRY CONTENT — keep specificity low here on purpose: the
      imported article HTML (h2/p/ul/figure/table/[data-content]
      blocks) must be styled by the content's own <style>, not by
      this file. We only constrain width via the wrapper below.
   ============================================================ */
.fld-entry-content{max-width:var(--fld-read-width);}

/* ---- content tables --------------------------------------------------
   Every <table> in page/post content (wrapped in .fld-table-responsive by
   functions.php). Scrolls sideways on small screens instead of breaking the
   layout. Low specificity on purpose so a page's own CSS can still win. */
.fld-table-responsive{
  overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;margin:1.8em 0;
  border:1px solid var(--fld-border);border-radius:var(--fld-radius);
  background:var(--fld-surface);box-shadow:var(--fld-shadow-sm);
}
.fld-table-responsive table{margin:0;min-width:540px;border:0;}
:is(.fld-entry-content,#fld-front-page) table{
  width:100%;border-collapse:separate;border-spacing:0;
  font-size:.95rem;line-height:1.5;color:var(--fld-ink);
}
:is(.fld-entry-content,#fld-front-page) table caption{
  caption-side:top;text-align:left;padding:.9rem 1.1rem;
  font-family:var(--fld-font-head);font-weight:800;font-size:1.25rem;letter-spacing:.03em;text-transform:uppercase;
  color:var(--fld-ink);background:var(--fld-surface);border-bottom:1px solid var(--fld-border);
}
:is(.fld-entry-content,#fld-front-page) table th,
:is(.fld-entry-content,#fld-front-page) table td{padding:.75rem 1.05rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--fld-border);}
:is(.fld-entry-content,#fld-front-page) table thead th,
:is(.fld-entry-content,#fld-front-page) table tr:first-child > th:not(:only-child){
  background:var(--fld-header-bg);color:var(--fld-header-ink);
  font-family:var(--fld-font-head);font-weight:700;font-size:.98rem;letter-spacing:.07em;text-transform:uppercase;
  white-space:nowrap;border-bottom:3px solid var(--fld-accent);
}
:is(.fld-entry-content,#fld-front-page) table tbody th,
:is(.fld-entry-content,#fld-front-page) table tr > th:first-child:not(thead th){font-weight:700;color:var(--fld-ink);background:var(--fld-surface-raised);}
:is(.fld-entry-content,#fld-front-page) table tbody tr:nth-child(even) > td{background:var(--fld-surface-raised);}
:is(.fld-entry-content,#fld-front-page) table tbody tr:hover > td,
:is(.fld-entry-content,#fld-front-page) table tbody tr:hover > th{background:var(--fld-accent-wash);}
:is(.fld-entry-content,#fld-front-page) table tbody tr:last-child > td,
:is(.fld-entry-content,#fld-front-page) table tbody tr:last-child > th{border-bottom:0;}
:is(.fld-entry-content,#fld-front-page) table tfoot td,
:is(.fld-entry-content,#fld-front-page) table tfoot th{background:var(--fld-surface-raised);font-weight:700;border-top:2px solid var(--fld-border-strong);}
:is(.fld-entry-content,#fld-front-page) table a{color:var(--fld-accent);font-weight:600;}
:is(.fld-entry-content,#fld-front-page) table td strong{color:var(--fld-ink);}
@media (max-width:640px){
  :is(.fld-entry-content,#fld-front-page) table th,:is(.fld-entry-content,#fld-front-page) table td{padding:.6rem .8rem;font-size:.9rem;}
}

/* ---- $$LINKCARD …$$ link cards (inc/linkcard.php) ---- */
.fld-linkcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1.8rem 0;}
.fld-linkcards .fld-linkcard{
  position:relative;display:flex;align-items:center;gap:1rem;
  padding:.9rem 1rem;background:var(--fld-surface);color:var(--fld-ink);text-decoration:none;
  border:1px solid var(--fld-border);border-left:4px solid var(--fld-accent);border-radius:var(--fld-radius);
  box-shadow:var(--fld-shadow-sm);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.fld-linkcards .fld-linkcard:hover,.fld-linkcards .fld-linkcard:focus-visible{transform:translateY(-2px);box-shadow:var(--fld-shadow-md);border-color:var(--fld-accent);}
.fld-linkcards .fld-linkcard__media{flex:0 0 92px;aspect-ratio:4/3;overflow:hidden;border-radius:calc(var(--fld-radius) - 2px);background:var(--fld-accent-wash);}
.fld-linkcards .fld-linkcard__media img{width:100%;height:100%;object-fit:cover;display:block;}
.fld-linkcards .fld-linkcard__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.25rem;}
.fld-linkcards .fld-linkcard__title{font-family:var(--fld-font-head);font-weight:700;font-size:1.25rem;line-height:1.1;color:var(--fld-ink);}
.fld-linkcards .fld-linkcard:hover .fld-linkcard__title{color:var(--fld-accent);}
.fld-linkcards .fld-linkcard__text{font-size:.85rem;line-height:1.45;color:var(--fld-ink-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.fld-linkcards .fld-linkcard__arrow{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--fld-accent-wash);color:var(--fld-accent);font-weight:700;transition:background .18s ease,color .18s ease;}
.fld-linkcards .fld-linkcard:hover .fld-linkcard__arrow{background:var(--fld-accent);color:var(--fld-accent-ink);}

/* ---- sf-* content components — universal: built only from theme tokens, so
   they read correctly on light AND dark themes. #main-content prefix keeps
   them above a content stylesheet's generic a[href] / element rules. ---- */
#main-content .sf-hero{
  position:relative;overflow:hidden;margin:1.6rem 0;
  padding:clamp(.9rem,2.2vw,1.4rem);border-radius:var(--fld-radius);
  background:radial-gradient(circle at 85% 10%,color-mix(in srgb,var(--fld-accent) 38%,transparent),transparent 55%),linear-gradient(135deg,var(--fld-navy),var(--fld-navy-2));
  color:#fff;box-shadow:var(--fld-shadow-md);
}
#main-content .sf-hero :is(h1,h2,h3,.sf-hero__title){color:#fff;margin-top:0;}
#main-content .sf-hero :is(p,.sf-hero__text){color:rgba(255,255,255,.84);}
#main-content .sf-hero__actions{display:flex;flex-direction:column;align-items:stretch;gap:.6rem;margin:.9rem 0 0;padding:0;}

/* buttons: primary = accent fill (text = accent-ink); secondary/ghost/outline = transparent, border + text follow the surrounding colour */
#main-content :is(.sf-hero__action,.sf-btn){
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  width:100%;margin:0;box-sizing:border-box;
  padding:.72rem 1.4rem;border-radius:calc(var(--fld-radius) + 2px);
  background:var(--fld-accent);color:var(--fld-accent-ink);border:2px solid var(--fld-accent);
  font-family:var(--fld-font-head);font-weight:700;font-size:1.05rem;letter-spacing:.06em;text-transform:uppercase;line-height:1.1;
  text-decoration:none;cursor:pointer;
  transition:transform .15s ease,filter .15s ease,background .15s ease,box-shadow .15s ease;
}
#main-content :is(.sf-hero__action,.sf-btn):hover,
#main-content :is(.sf-hero__action,.sf-btn):focus-visible{
  filter:brightness(1.08);transform:translateY(-1px);color:var(--fld-accent-ink);text-decoration:none;
  box-shadow:0 8px 20px color-mix(in srgb,var(--fld-accent) 35%,transparent);
}
#main-content :is(.sf-hero__action,.sf-btn):visited{color:var(--fld-accent-ink);}
#main-content :is(.sf-hero__action,.sf-btn):is(.sf-hero__action--secondary,.sf-hero__action--ghost,.sf-hero__action--outline,.sf-hero__action--alt,.sf-btn--secondary,.sf-btn--ghost,.sf-btn--outline,.is-secondary,.is-ghost,.is-outline),
#main-content .sf-hero__action + .sf-hero__action:not(.sf-hero__action--primary):not(.is-primary){
  background:transparent;color:inherit;border-color:currentColor;
}
#main-content :is(.sf-hero__action,.sf-btn):is(.sf-hero__action--secondary,.sf-hero__action--ghost,.sf-hero__action--outline,.sf-hero__action--alt,.sf-btn--secondary,.sf-btn--ghost,.sf-btn--outline,.is-secondary,.is-ghost,.is-outline):hover,
#main-content .sf-hero__action + .sf-hero__action:not(.sf-hero__action--primary):not(.is-primary):hover{
  background:color-mix(in srgb,currentColor 14%,transparent);color:inherit;filter:none;box-shadow:none;
}
#main-content .sf-hero :is(.sf-hero__action--secondary,.sf-hero__action--ghost,.sf-hero__action--outline,.sf-hero__action--alt),
#main-content .sf-hero .sf-hero__action + .sf-hero__action:not(.sf-hero__action--primary):not(.is-primary){color:#fff;}

#main-content .sf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.1rem;margin:1.6rem 0;}
#main-content .sf-card{
  position:relative;display:flex;flex-direction:column;gap:.6rem;
  padding:1.15rem 1.25rem;background:var(--fld-surface);color:var(--fld-ink);
  border:1px solid var(--fld-border);border-top:3px solid var(--fld-accent);border-radius:var(--fld-radius);
  box-shadow:var(--fld-shadow-sm);text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
#main-content a.sf-card:hover,#main-content .sf-card:focus-within{transform:translateY(-2px);box-shadow:var(--fld-shadow-md);}
#main-content .sf-card :is(h2,h3,h4,.sf-card__title){margin:0;font-family:var(--fld-font-head);font-weight:700;font-size:1.35rem;line-height:1.1;color:var(--fld-ink);}
#main-content .sf-card :is(p,.sf-card__text){margin:0;font-size:.95rem;line-height:1.55;color:var(--fld-ink-muted);}
#main-content .sf-card a:not(.sf-btn):not(.sf-hero__action){color:var(--fld-accent);font-weight:600;}
#main-content .sf-card img{max-width:100%;height:auto;border-radius:calc(var(--fld-radius) - 2px);display:block;}
#main-content .sf-badge{display:inline-block;padding:.15em .65em;border-radius:999px;background:var(--fld-accent-wash);color:var(--fld-accent);font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;}

/* sf-callout (+ --info / --warning / --success / --danger / --tip) — tinted from
   the semantic colour mixed into the theme surface, so contrast holds on light and dark. */
#main-content .sf-callout{
  --sf-c:var(--fld-accent);
  position:relative;margin:1.5rem 0;padding:1rem 1.2rem 1rem 3.4rem;
  background:color-mix(in srgb,var(--sf-c) 11%,var(--fld-surface));
  color:var(--fld-ink);
  border:1px solid color-mix(in srgb,var(--sf-c) 38%,var(--fld-border));
  border-left:5px solid var(--sf-c);border-radius:var(--fld-radius);
  box-shadow:var(--fld-shadow-sm);line-height:1.6;
}
#main-content .sf-callout::before{
  content:"i";position:absolute;left:1rem;top:1rem;
  display:flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;border-radius:50%;
  background:var(--sf-c);color:#fff;font-family:var(--fld-font-body);font-weight:800;font-size:1rem;line-height:1;
}
#main-content .sf-callout--info{--sf-c:var(--fld-info);}
#main-content .sf-callout--warning{--sf-c:var(--fld-warning);}
#main-content .sf-callout--warning::before{content:"!";color:#1b1200;}
#main-content .sf-callout--success,#main-content .sf-callout--tip{--sf-c:var(--fld-success);}
#main-content .sf-callout--success::before,#main-content .sf-callout--tip::before{content:"\2713";}
#main-content .sf-callout--danger,#main-content .sf-callout--error{--sf-c:var(--fld-danger);}
#main-content .sf-callout--danger::before,#main-content .sf-callout--error::before{content:"!";}
#main-content .sf-callout :is(h2,h3,h4,h5,.sf-callout__title,strong:first-child){
  display:block;margin:0 0 .3rem;font-family:var(--fld-font-head);font-weight:700;font-size:1.2rem;line-height:1.15;letter-spacing:.02em;
  color:color-mix(in srgb,var(--sf-c) 62%,var(--fld-ink));
}
#main-content .sf-callout :is(p,ul,ol,.sf-callout__text){margin:0 0 .5rem;font-size:.97rem;color:var(--fld-ink);}
#main-content .sf-callout > :last-child{margin-bottom:0;}
#main-content .sf-callout a{color:color-mix(in srgb,var(--sf-c) 70%,var(--fld-ink));font-weight:600;text-decoration:underline;}
@media (max-width:560px){#main-content .sf-callout{padding:.9rem 1rem .9rem 3rem;}#main-content .sf-callout::before{left:.8rem;top:.9rem;width:1.5rem;height:1.5rem;font-size:.9rem;}}

/* sf-details — collapsible block (<details class="sf-details"><summary>…</summary>…</details>).
   Colours come only from theme tokens and are set on the summary AND on the
   body text, so nothing turns invisible on light or dark themes. */
#main-content .sf-details{
  margin:1rem 0;background:var(--fld-surface);color:var(--fld-ink);
  border:1px solid var(--fld-border);border-left:4px solid var(--fld-border-strong);border-radius:var(--fld-radius);
  box-shadow:var(--fld-shadow-sm);overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease;
}
#main-content .sf-details:hover{border-left-color:var(--fld-accent);}
#main-content .sf-details[open]{border-left-color:var(--fld-accent);box-shadow:var(--fld-shadow-md);}
#main-content .sf-details > summary,
#main-content .sf-details > .sf-details__summary{
  display:flex;align-items:center;gap:.8rem;list-style:none;cursor:pointer;
  padding:.9rem 1.15rem;background:var(--fld-surface);color:var(--fld-ink);
  font-family:var(--fld-font-body);font-weight:600;font-size:1.02rem;line-height:1.35;
  transition:background .15s ease;
}
#main-content .sf-details > summary::-webkit-details-marker{display:none;}
#main-content .sf-details > summary::marker{content:"";}
#main-content .sf-details > summary:hover{background:var(--fld-surface-raised);}
#main-content .sf-details[open] > summary{background:var(--fld-accent-wash);}
#main-content .sf-details > summary :is(h2,h3,h4,h5,h6,span,strong,b){margin:0;font:inherit;color:inherit;display:inline;}
#main-content .sf-details > summary::after{
  content:"";flex:0 0 auto;margin-left:auto;width:.6rem;height:.6rem;
  border-right:2px solid var(--fld-accent);border-bottom:2px solid var(--fld-accent);
  transform:rotate(45deg) translateY(-2px);transition:transform .2s ease;
}
#main-content .sf-details[open] > summary::after{transform:rotate(-135deg) translateY(-2px);}
#main-content .sf-details > :not(summary){
  margin:0;padding:.95rem 1.2rem 1.1rem;color:var(--fld-ink-muted);font-size:.97rem;line-height:1.65;
  border-top:1px solid var(--fld-border);background:var(--fld-surface);
}
#main-content .sf-details > :not(summary) ~ :not(summary){border-top:0;padding-top:0;}
#main-content .sf-details :is(p,li,td,th,dd,dt,span){color:var(--fld-ink-muted);}
#main-content .sf-details :is(strong,b,h2,h3,h4,h5,h6){color:var(--fld-ink);}
#main-content .sf-details p{margin:0 0 .7em;}
#main-content .sf-details > :not(summary) > :last-child{margin-bottom:0;}
#main-content .sf-details a:not(.sf-btn):not(.sf-hero__action){color:var(--fld-accent);font-weight:600;}
#main-content .sf-details :is(ul,ol){margin:.3em 0 .8em;padding-left:1.3em;}

/* sf-linkcard (+ the sf-linkcar spelling) — same look as $$LINKCARD cards */
#main-content :is(.sf-linkcards,.sf-linkcars){display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1.8rem 0;}
#main-content :is(.sf-linkcard,.sf-linkcar){
  position:relative;display:flex;align-items:center;gap:1rem;
  padding:.9rem 1rem;background:var(--fld-surface);color:var(--fld-ink);text-decoration:none;
  border:1px solid var(--fld-border);border-left:4px solid var(--fld-accent);border-radius:var(--fld-radius);
  box-shadow:var(--fld-shadow-sm);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
#main-content :is(.sf-linkcard,.sf-linkcar):hover,#main-content :is(.sf-linkcard,.sf-linkcar):focus-within{transform:translateY(-2px);box-shadow:var(--fld-shadow-md);border-color:var(--fld-accent);}
#main-content :is(.sf-linkcard,.sf-linkcar) :is(h2,h3,h4,.sf-linkcard__title,.sf-linkcar__title){margin:0;font-family:var(--fld-font-head);font-weight:700;font-size:1.25rem;line-height:1.1;color:var(--fld-ink);}
#main-content :is(.sf-linkcard,.sf-linkcar) :is(p,.sf-linkcard__text,.sf-linkcar__text){margin:.25rem 0 0;font-size:.85rem;line-height:1.45;color:var(--fld-ink-muted);}
#main-content :is(.sf-linkcard,.sf-linkcar) a{color:inherit;text-decoration:none;}
#main-content :is(.sf-linkcard,.sf-linkcar):hover :is(h2,h3,h4,.sf-linkcard__title,.sf-linkcar__title){color:var(--fld-accent);}
#main-content :is(.sf-linkcard,.sf-linkcar) img{width:92px;max-width:30%;aspect-ratio:4/3;object-fit:cover;border-radius:calc(var(--fld-radius) - 2px);flex:0 0 auto;}

/* ============================================================
   9) CARDS — flat, thin rule, zero radius, accent rule on hover
   ============================================================ */
.fld-card{
  position:relative;
  display:flex;
  flex-direction:column;
  border:1px solid var(--fld-border);
  border-top:3px solid var(--fld-border);
  border-radius:var(--fld-radius);
  background:var(--fld-surface);
  box-shadow:var(--fld-shadow-sm);
  overflow:hidden;
  transition:transform .18s ease,box-shadow .18s ease,border-top-color .18s ease;
}
.fld-card:hover,.fld-card:focus-within{border-top-color:var(--fld-accent);box-shadow:var(--fld-shadow-md);transform:translateY(-2px);}
.fld-card .fld-card__media{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--fld-surface-raised);}
.fld-card .fld-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease;}
.fld-card:hover .fld-card__media img{transform:scale(1.04);}
.fld-card .fld-card__body{padding:1rem 1.15rem 1.2rem;display:flex;flex-direction:column;gap:.5rem;flex:1;}
.fld-card .fld-card__eyebrow{font-family:var(--fld-font-head);font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--fld-accent);}
.fld-card .fld-card__title{font-family:var(--fld-font-head);font-weight:700;font-size:1.4rem;line-height:1.12;margin:0;}
.fld-card .fld-card__title a{color:var(--fld-ink);text-decoration:none;}
.fld-card:hover .fld-card__title a{color:var(--fld-accent);}
.fld-card .fld-card__title a::after{content:"";position:absolute;inset:0;}
.fld-card .fld-card__title{position:relative;}
.fld-card .fld-card__excerpt{font-size:.92rem;line-height:1.55;color:var(--fld-ink-muted);margin:0;}
.fld-card .fld-card__foot{margin-top:auto;font-family:var(--fld-font-body);font-size:.74rem;color:var(--fld-ink-faint);display:flex;gap:.9em;}

#fld-articles-grid,#fld-related-grid,#fld-news-grid,#fld-predictions-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:var(--fld-gap);
  margin:1.5rem 0;
}
#fld-related{max-width:var(--fld-read-width);margin:3rem auto 0;padding-top:2rem;border-top:1px solid var(--fld-border);}
#fld-related .fld-section-title{
  font-family:var(--fld-font-head);
  font-weight:800;
  font-size:1.9rem;
  text-transform:uppercase;
  margin:0 0 1.2rem;
  padding-left:.6rem;border-left:5px solid var(--fld-accent);line-height:1;
}

/* featured/hero card used at top of page-news.php */
.fld-card--feature{grid-column:1/-1;flex-direction:row;}
.fld-card--feature .fld-card__media{flex:0 0 52%;aspect-ratio:auto;min-height:300px;}
.fld-card--feature .fld-card__body{flex:1;justify-content:center;padding:1.6rem 1.8rem;}
.fld-card--feature .fld-card__title{font-size:2.3rem;}
@media (max-width:700px){
  .fld-card--feature{flex-direction:column;}
  .fld-card--feature .fld-card__media{flex:none;aspect-ratio:16/10;min-height:0;}
}


/* ============================================================
   9c) HUB cards (page-hub.php, template-parts/hub-card.php)
   ============================================================ */
#fld-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem;margin:1.5rem 0;}
#fld-hub-grid .fld-hcard{
  position:relative;display:flex;flex-direction:column;
  background:var(--fld-surface);border:1px solid var(--fld-border);border-radius:var(--fld-radius);
  box-shadow:var(--fld-shadow-sm);overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
#fld-hub-grid .fld-hcard:hover,#fld-hub-grid .fld-hcard:focus-within{transform:translateY(-3px);box-shadow:var(--fld-shadow-md);border-color:var(--fld-accent);}
#fld-hub-grid .fld-hcard__media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:var(--fld-accent-wash);}
#fld-hub-grid .fld-hcard__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease;}
#fld-hub-grid .fld-hcard:hover .fld-hcard__media img{transform:scale(1.06);}
#fld-hub-grid .fld-hcard__media::after{
  content:"";position:absolute;inset:auto 0 0 0;height:45%;
  background:linear-gradient(to top,rgba(8,18,40,.45),transparent);pointer-events:none;
}
#fld-hub-grid .fld-hcard__badge{
  position:absolute;left:.8rem;bottom:.7rem;z-index:2;
  font-family:var(--fld-font-head);font-weight:700;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;
  color:#fff;background:rgba(8,18,40,.62);padding:.2em .65em;border-radius:3px;backdrop-filter:blur(3px);
}
/* no thumbnail: tinted placeholder with the page initial */
#fld-hub-grid .fld-hcard__ph{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:var(--fld-font-head);font-weight:800;font-size:5rem;line-height:1;color:var(--fld-accent);opacity:.9;
  background:
    radial-gradient(circle at 20% 15%,rgba(255,255,255,.55),transparent 55%),
    linear-gradient(135deg,var(--fld-accent-wash),var(--fld-surface-raised));
}
#fld-hub-grid .fld-hcard--noimg .fld-hcard__media::after{display:none;}
#fld-hub-grid .fld-hcard--noimg .fld-hcard__badge{background:var(--fld-accent);color:var(--fld-accent-ink);backdrop-filter:none;}
#fld-hub-grid .fld-hcard__body{display:flex;flex-direction:column;gap:.55rem;padding:1.05rem 1.2rem 1.15rem;flex:1;}
#fld-hub-grid .fld-hcard__title{font-family:var(--fld-font-head);font-weight:700;font-size:1.45rem;line-height:1.1;margin:0;}
#fld-hub-grid .fld-hcard__title a{color:var(--fld-ink);text-decoration:none;}
#fld-hub-grid .fld-hcard__title a::after{content:"";position:absolute;inset:0;z-index:1;}
#fld-hub-grid .fld-hcard:hover .fld-hcard__title a{color:var(--fld-accent);}
#fld-hub-grid .fld-hcard__excerpt{margin:0;font-size:.93rem;line-height:1.55;color:var(--fld-ink-muted);}
#fld-hub-grid .fld-hcard__foot{margin-top:auto;padding-top:.7rem;border-top:1px solid var(--fld-border);display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.78rem;color:var(--fld-ink-faint);}
#fld-hub-grid .fld-hcard__more{font-weight:700;color:var(--fld-accent);text-decoration:none;position:relative;z-index:2;}
#fld-hub-grid .fld-hcard__more:hover{text-decoration:underline;}

/* feature card: first on page 1 — image left, larger type right */
#fld-hub-grid .fld-hcard--feature{grid-column:1/-1;flex-direction:row;}
#fld-hub-grid .fld-hcard--feature .fld-hcard__media{flex:0 0 56%;aspect-ratio:auto;min-height:340px;}
#fld-hub-grid .fld-hcard--feature .fld-hcard__ph{font-size:9rem;}
#fld-hub-grid .fld-hcard--feature .fld-hcard__body{justify-content:center;padding:2rem 2.2rem;gap:.9rem;}
#fld-hub-grid .fld-hcard--feature .fld-hcard__title{font-size:2.5rem;line-height:1.04;}
#fld-hub-grid .fld-hcard--feature .fld-hcard__excerpt{font-size:1.02rem;}
#fld-hub-grid .fld-hcard--feature .fld-hcard__foot{margin-top:.4rem;}

@media (max-width:980px){
  #fld-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:720px){
  #fld-hub-grid .fld-hcard--feature{flex-direction:column;}
  #fld-hub-grid .fld-hcard--feature .fld-hcard__media{flex:none;aspect-ratio:16/10;min-height:0;}
  #fld-hub-grid .fld-hcard--feature .fld-hcard__body{padding:1.1rem 1.2rem 1.2rem;}
  #fld-hub-grid .fld-hcard--feature .fld-hcard__title{font-size:1.9rem;}
}
@media (max-width:560px){
  #fld-hub-grid{grid-template-columns:minmax(0,1fr);}
}

/* ============================================================
   9b) FAQ accordion — output of the [faq] shortcode (inc/faq.php).
       Two-class selectors again, so it isn't clobbered by content's
       generic details/summary rules on pages where both appear.
   ============================================================ */
.fld-faq{display:flex;flex-direction:column;gap:.75rem;margin:2em 0;max-width:var(--fld-read-width);counter-reset:fld-faq;}
.fld-faq .fld-faq__item{
  counter-increment:fld-faq;
  border:1px solid var(--fld-border);border-left:4px solid var(--fld-border-strong);
  border-radius:var(--fld-radius);background:var(--fld-surface);box-shadow:var(--fld-shadow-sm);
  overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease;
}
.fld-faq .fld-faq__item:hover{border-left-color:var(--fld-accent);}
.fld-faq .fld-faq__item[open]{border-left-color:var(--fld-accent);box-shadow:var(--fld-shadow-md);}
.fld-faq .fld-faq__summary{
  list-style:none;cursor:pointer;
  padding:1rem 1.2rem;
  display:flex;align-items:center;gap:.9rem;
  transition:background .15s ease;
}
.fld-faq .fld-faq__summary:hover{background:var(--fld-surface-raised);}
.fld-faq .fld-faq__item[open] .fld-faq__summary{background:var(--fld-accent-wash);}
.fld-faq .fld-faq__summary::-webkit-details-marker{display:none;}
.fld-faq .fld-faq__summary::marker{content:"";}
.fld-faq .fld-faq__summary::before{
  content:counter(fld-faq);
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:1.9rem;height:1.9rem;border-radius:50%;
  background:var(--fld-accent-wash);color:var(--fld-accent);
  font-family:var(--fld-font-head);font-weight:800;font-size:1rem;line-height:1;
}
.fld-faq .fld-faq__item[open] .fld-faq__summary::before{background:var(--fld-accent);color:var(--fld-accent-ink);}
.fld-faq .fld-faq__summary::after{
  content:"";flex:0 0 auto;margin-left:auto;
  width:.6rem;height:.6rem;
  border-right:2px solid var(--fld-accent);border-bottom:2px solid var(--fld-accent);
  transform:rotate(45deg) translateY(-2px);transition:transform .2s ease;
}
.fld-faq .fld-faq__item[open] .fld-faq__summary::after{transform:rotate(-135deg) translateY(-2px);}
.fld-faq .fld-faq__question{
  font-family:var(--fld-font-body);font-weight:600;font-size:1.02rem;line-height:1.35;
  margin:0;color:var(--fld-ink);
}
.fld-faq .fld-faq__answer{
  padding:1rem 1.3rem 1.2rem 4.1rem;
  border-top:1px solid var(--fld-border);
  color:var(--fld-ink-muted);font-size:.97rem;line-height:1.65;
}
.fld-faq .fld-faq__answer p{margin:0;}
.fld-faq .fld-faq__answer p + p{margin-top:.7em;}
.fld-faq .fld-faq__answer a{color:var(--fld-accent);}
@media (max-width:560px){
  .fld-faq .fld-faq__answer{padding:.9rem 1.1rem 1.1rem;}
  .fld-faq .fld-faq__summary{padding:.9rem 1rem;}
}
/* FAQ headings produced for hand-authored <details><summary> (inc/faq.php) */
summary > .fld-faq__question{display:inline;margin:0;font-size:1.02rem;font-weight:600;line-height:1.35;}

/* ============================================================
   10) PAGINATION / PREV-NEXT
   ============================================================ */
.fld-pagination{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  margin:2.5rem 0 0;
  padding-top:1.5rem;
  border-top:1px solid var(--fld-border);
  font-family:var(--fld-font-mono);
  font-size:.85rem;
}
/* .fld-pagination .fld-pagination__link — two classes (0,2,1), not
   ".fld-pagination a" (0,1,1), which would tie with content's global
   a[href] and lose since content's stylesheet is printed after this one. */
.fld-pagination .fld-pagination__link,.fld-pagination .fld-pagination__disabled{
  color:var(--fld-ink);
  text-decoration:none;
  padding:.5em .9em;
  border:1px solid var(--fld-border);
  border-radius:var(--fld-radius);
  background:var(--fld-surface);
  display:inline-block;
}
.fld-pagination .fld-pagination__link:hover{border-color:var(--fld-accent);color:var(--fld-accent);}
.fld-pagination .fld-pagination__disabled{color:var(--fld-ink-faint);}

.fld-hub-count{margin:1.2rem 0 0;font-family:var(--fld-font-head);font-weight:700;font-size:1rem;letter-spacing:.08em;text-transform:uppercase;color:var(--fld-ink-muted);}
.fld-pagination--numbered{align-items:center;flex-wrap:wrap;justify-content:center;gap:.6rem;}
.fld-pagination--numbered .fld-pagination__pages{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;justify-content:center;}
.fld-pagination .fld-pagination__num,.fld-pagination .fld-pagination__current{
  min-width:2.4em;text-align:center;padding:.5em .6em;border-radius:var(--fld-radius);
  border:1px solid var(--fld-border);background:var(--fld-surface);color:var(--fld-ink);text-decoration:none;
}
.fld-pagination .fld-pagination__num:hover{border-color:var(--fld-accent);color:var(--fld-accent);}
.fld-pagination .fld-pagination__current{background:var(--fld-accent);border-color:var(--fld-accent);color:var(--fld-accent-ink);font-weight:700;}
.fld-pagination .fld-pagination__gap{color:var(--fld-ink-faint);padding:0 .2em;}
@media (max-width:560px){.fld-pagination--numbered .fld-pagination__link,.fld-pagination--numbered .fld-pagination__disabled{flex:1 1 40%;text-align:center;}}

/* ============================================================
   11) AUTHOR BIO / FALLBACK MESSAGE
   ============================================================ */
.fld-author-bio{
  display:flex;
  gap:1rem;
  align-items:center;
  max-width:var(--fld-read-width);
  margin:2.5rem 0 0;
  padding-top:1.5rem;
  border-top:1px solid var(--fld-border);
  font-size:.85rem;
  color:var(--fld-ink-muted);
}
.fld-empty-notice{
  border:1px dashed var(--fld-border-strong);
  border-radius:var(--fld-radius);
  padding:2rem;
  text-align:center;
  font-family:var(--fld-font-head);
  font-size:.9rem;
  color:var(--fld-ink-muted);
  margin:1.5rem 0;
}

/* ============================================================
   12) FOOTER FALLBACK (#fld-site-footer) — only rendered when
       _pillar_custom_footer is not available yet (pre-import).
   ============================================================ */
#fld-site-footer{
  margin-top:auto;
  background:var(--fld-navy-deep);
  color:#b4c0d6;
  border-top:4px solid var(--fld-accent);
  font-family:var(--fld-font-body);
}
#fld-site-footer a{color:#d6def0;text-decoration:none;}
#fld-site-footer a:hover,#fld-site-footer a:focus-visible{color:var(--fld-accent-bright);text-decoration:underline;}
#fld-site-footer .fld-f-wrap{max-width:var(--fld-shell-width);margin:0 auto;padding:3rem 1.5rem 2.2rem;}
#fld-site-footer ul{list-style:none;margin:0;padding:0;}
#fld-site-footer .fld-f-brand__name{font-family:var(--fld-font-head);font-weight:800;font-size:1.9rem;letter-spacing:.02em;text-transform:uppercase;color:#fff;line-height:1;}
#fld-site-footer .fld-f-brand__about{margin:.8rem 0 0;font-size:.9rem;line-height:1.65;max-width:34ch;color:#b4c0d6;}
#fld-site-footer .fld-f-title{font-family:var(--fld-font-head);font-weight:700;font-size:1.15rem;letter-spacing:.1em;text-transform:uppercase;color:#fff;margin:0 0 .9rem;padding-bottom:.55rem;border-bottom:2px solid var(--fld-accent);display:inline-block;}
#fld-site-footer .fld-f-title a{color:#fff;}
#fld-site-footer .fld-f-list li{margin:.42rem 0;}
#fld-site-footer .fld-f-list a{font-size:.9rem;}
#fld-site-footer .fld-f-list a::before{content:"\203A";margin-right:.5em;color:var(--fld-accent-bright);}
/* social pills */
#fld-site-footer .fld-f-social{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.2rem;}
#fld-site-footer .fld-f-social a{display:inline-block;padding:.35rem .85rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;font-size:.78rem;font-weight:600;color:#fff;text-decoration:none;transition:background .15s ease,border-color .15s ease;}
#fld-site-footer .fld-f-social a:hover{background:var(--fld-accent);border-color:var(--fld-accent);color:var(--fld-accent-ink);text-decoration:none;}
#fld-site-footer .fld-f-social--center{justify-content:center;}
/* grids */
#fld-site-footer .fld-f-grid{display:grid;gap:2.2rem 2.5rem;}
#fld-site-footer .fld-f-grid--mega{grid-template-columns:1.5fr repeat(3,1fr);}
#fld-site-footer .fld-f-grid--columns{grid-template-columns:1.4fr 1fr 1fr;}
/* centered */
#fld-site-footer .fld-f-center{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1.3rem;padding-top:2.6rem;}
#fld-site-footer .fld-f-center .fld-f-brand__about{margin-left:auto;margin-right:auto;}
#fld-site-footer .fld-f-inline{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.6rem;}
#fld-site-footer .fld-f-inline a{font-size:.88rem;}
#fld-site-footer .fld-f-inline--strong a{font-family:var(--fld-font-head);font-weight:700;font-size:1.05rem;letter-spacing:.08em;text-transform:uppercase;color:#fff;}
/* bar */
#fld-site-footer .fld-f-barrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;padding-top:1.4rem;padding-bottom:1.2rem;}
#fld-site-footer .fld-f-barrow .fld-f-brand__name{font-size:1.4rem;}
#fld-site-footer .fld-f-barrow .fld-f-inline{justify-content:flex-start;flex:1 1 auto;margin-left:1rem;}
#fld-site-footer .fld-f-barrow .fld-f-social{margin-top:0;}
/* bottom line */
#fld-site-footer .fld-f-bottom{border-top:1px solid rgba(255,255,255,.1);}
#fld-site-footer .fld-f-bottom__inner{max-width:var(--fld-shell-width);margin:0 auto;padding:1rem 1.5rem 1.4rem;font-size:.75rem;color:#8190a5;}
@media (max-width:900px){
  #fld-site-footer .fld-f-grid--mega{grid-template-columns:1fr 1fr;}
  #fld-site-footer .fld-f-grid--columns{grid-template-columns:1fr 1fr;}
  #fld-site-footer .fld-f-col--brand{grid-column:1/-1;}
}
@media (max-width:520px){
  #fld-site-footer .fld-f-grid--mega,#fld-site-footer .fld-f-grid--columns{grid-template-columns:1fr;}
  #fld-site-footer .fld-f-barrow .fld-f-inline{margin-left:0;}
}

/* ============================================================
   13) BACK TO TOP
   ============================================================ */
#fld-back-to-top{
  position:fixed;
  right:1.5rem;
  bottom:1.5rem;
  width:44px;height:44px;
  border:1px solid var(--fld-border-strong);
  background:var(--fld-surface);
  color:var(--fld-ink);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s ease,transform .2s ease,border-color .2s ease;
  z-index:45;
}
#fld-back-to-top.fld-is-visible{opacity:1;visibility:visible;transform:translateY(0);}
#fld-back-to-top:hover{border-color:var(--fld-accent);color:var(--fld-accent);}

/* ============================================================
   14) 404
   ============================================================ */
#fld-404{max-width:var(--fld-read-width);margin:3rem auto;text-align:center;}
#fld-404 .fld-404-code{
  font-family:var(--fld-font-mono);
  font-size:.85rem;
  letter-spacing:.2em;
  color:var(--fld-accent);
}
#fld-404 h1{font-family:var(--fld-font-head);font-weight:800;text-transform:uppercase;font-size:clamp(2.4rem,6vw,3.6rem);margin:.3em 0;}
#fld-404 .fld-404-subtitle{
  font-family:var(--fld-font-head);
  font-size:.95rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--fld-ink-muted);
  margin:2rem 0 0;
}
#fld-404 .fld-404-list{list-style:none;margin:.8rem 0 0;padding:0;text-align:left;display:inline-block;}
#fld-404 .fld-404-list li{border-bottom:1px solid var(--fld-border);}
#fld-404 .fld-404-list a{display:block;padding:.7em 0;color:var(--fld-ink);text-decoration:none;font-family:var(--fld-font-body);}
#fld-404 .fld-404-list a:hover{color:var(--fld-accent);}

/* ============================================================
   15) SITEMAP TEMPLATE
   ============================================================ */
/* sitemap — cards per section (page-sitemap.php) */
.fld-primary--wide #fld-entry-header.fld-entry-header--wide{max-width:none;}
.fld-smap-summary{margin:.2rem 0 0;font-family:var(--fld-font-head);font-weight:700;font-size:1.05rem;letter-spacing:.08em;text-transform:uppercase;color:var(--fld-ink-muted);}
.fld-smap-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.2rem 0 1.8rem;}
.fld-smap-chips .fld-smap-chip{
  display:inline-flex;align-items:center;gap:.5em;padding:.4rem .85rem;border:1px solid var(--fld-border);border-radius:999px;
  background:var(--fld-surface);color:var(--fld-ink);font-size:.85rem;font-weight:600;text-decoration:none;
  transition:border-color .15s ease,color .15s ease,background .15s ease;
}
.fld-smap-chips .fld-smap-chip:hover{border-color:var(--fld-accent);color:var(--fld-accent);}
.fld-smap-chips .fld-smap-chip__n{font-size:.72rem;font-weight:700;background:var(--fld-accent-wash);color:var(--fld-accent);border-radius:999px;padding:.05em .55em;}
.fld-smap{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.4rem;align-items:start;}
.fld-smap__card{
  background:var(--fld-surface);border:1px solid var(--fld-border);border-top:3px solid var(--fld-accent);
  border-radius:var(--fld-radius);box-shadow:var(--fld-shadow-sm);padding:1.1rem 1.3rem 1.3rem;scroll-margin-top:7rem;
}
.fld-smap__card--wide{grid-column:1/-1;}
.fld-smap__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-bottom:.7rem;margin-bottom:.8rem;border-bottom:1px solid var(--fld-border);}
.fld-smap__title{margin:0;font-family:var(--fld-font-head);font-weight:800;font-size:1.55rem;line-height:1.1;text-transform:uppercase;letter-spacing:.01em;}
.fld-smap__title a{color:var(--fld-ink);text-decoration:none;}
.fld-smap__title a:hover{color:var(--fld-accent);}
.fld-smap__count{flex:0 0 auto;min-width:2rem;text-align:center;font-weight:700;font-size:.8rem;background:var(--fld-accent);color:var(--fld-accent-ink);border-radius:999px;padding:.2em .7em;}
.fld-smap__list{list-style:none;margin:0;padding:0;}
.fld-smap__card--wide > .fld-smap__list--d1{column-width:260px;column-gap:2rem;}
.fld-smap__item{break-inside:avoid;position:relative;margin:0;padding:.28rem 0 .28rem 1.15rem;}
.fld-smap__item::before{content:"";position:absolute;left:0;top:.82em;width:6px;height:6px;border-radius:50%;background:var(--fld-accent);}
.fld-smap__item--parent > .fld-smap__link{font-weight:700;}
.fld-smap__list--d2,.fld-smap__list--d3,.fld-smap__list--d4{margin:.15rem 0 .3rem .15rem;padding-left:.9rem;border-left:2px solid var(--fld-border);}
.fld-smap__list--d2 > .fld-smap__item::before,.fld-smap__list--d3 > .fld-smap__item::before,.fld-smap__list--d4 > .fld-smap__item::before{width:5px;height:2px;border-radius:0;background:var(--fld-border-strong);top:.95em;}
.fld-smap .fld-smap__link{color:var(--fld-ink);text-decoration:none;font-size:.93rem;line-height:1.4;}
.fld-smap .fld-smap__link:hover,.fld-smap .fld-smap__link:focus-visible{color:var(--fld-accent);text-decoration:underline;}

/* ============================================================
   16) PRINT
   ============================================================ */
@media print{
  #fld-site-header,#fld-sidebar,#fld-back-to-top,#fld-mobile-drawer,#fld-drawer-overlay,#fld-site-footer{display:none!important;}
}

/* ============================================================
   THEME VARIANT: Hattrick — palette / fonts / header layout
   ============================================================ */
:root{
  --fld-bg:#f4f1ff;
  --fld-surface:#ffffff;
  --fld-surface-raised:#f8f6ff;
  --fld-ink:#1b1033;
  --fld-ink-muted:#5a4d7a;
  --fld-ink-faint:#8f84ad;
  --fld-border:#e1daf5;
  --fld-border-strong:#c8bce8;
  --fld-accent:#7c3aed;
  --fld-accent-bright:#a78bfa;
  --fld-accent-wash:#ede7fe;
  --fld-accent-ink:#ffffff;
  --fld-navy:#1b1033;
  --fld-navy-2:#2a1856;
  --fld-navy-deep:#120a25;
  --fld-radius:16px;
  --fld-header-bg:#1b1033;
  --fld-header-bg-2:#2a1856;
  --fld-topbar-bg:#ebe5fb;
  --fld-topbar-ink:#5a4d7a;
  --fld-topbar-strong:#1b1033;
  --fld-topbar-line:rgba(27,16,51,.1);
  --fld-shadow-md:0 4px 8px rgba(27,16,51,.08),0 18px 38px rgba(124,58,237,.18);
  --fld-font-head:"Chakra Petch","Arial Narrow",sans-serif;
  --fld-font-body:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
}
#main-content :is(.sf-hero__action,.sf-btn){background:linear-gradient(135deg,var(--fld-accent),var(--fld-accent-bright));border-color:transparent;}
.fld-card{border-top-width:1px;}
