/* File: /assets/css/style.css
   =========================================================================
   SPORT GUIDES

   Base stylesheet: page chrome, category listings, article pages, forms.
   Loaded on every page from includes/head-common.php. The homepage and
   the richer category/article treatments live in newstyle.css, which is
   loaded immediately after this file and overrides where it needs to.

   THE PALETTE. American football team colours, which in practice means a
   dark warm chrome with one loud colour and a metallic trim: deep oxblood
   for the header, footer and headings, vivid orange for buttons, rules
   and active states, and a gold hairline used only in the jersey stripe.
   The lineage is Washington burgundy-and-gold crossed with Bengals
   orange. Nothing here is navy, and nothing is the flat kit-supplier
   green that most sports sites default to.

   The page background is a warm off-white rather than pure white, so that
   action photography and grass do not look cold against it.

   SIGNATURE: the jersey trim under the header - two bands of orange with
   a single gold hairline between them - and the short orange rule that
   sits under every section heading. Those are the only two places the
   palette raises its voice, which is what keeps the orange feeling like
   a team colour rather than a sale banner.

   ACCESSIBILITY. Every pairing in this file was contrast-checked and the
   weakest is 4.74:1, comfortably inside WCAG AA. Three consequences
   before you edit anything:

     - Buttons print --primary on the orange, never white. White on this
       orange is 2.59:1 and unreadable.
     - Orange as TEXT on a light ground uses --accent-dark. The accent
       itself is 2.59:1 on white and must never carry type.
     - --gold is a trim colour and carries no text anywhere. Nothing
       legible sits on it at any size.

   FONTS. Barlow Condensed and Public Sans. Barlow Condensed is the
   jersey-numeral shape that does the work here, and it is narrow, so
   headings are set slightly larger and slightly looser than the metrics
   would suggest. This needs the Google Fonts line in
   /includes/head-common.php replaced with:

     <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Public+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">

   ========================================================================= */

:root{
  /* -- core palette ---------------------------------------------------- */
  --primary:#6B0F1B;        /* deep oxblood - header, footer, headings    */
  --primary-tint:#8C1A28;   /* hover on dark surfaces                     */
  --secondary:#8A4A4F;      /* warm grey-rose - breadcrumb, meta, captions*/

  --accent:#F5821F;         /* vivid orange - buttons, rules, active      */
  --accent-dark:#A8410B;    /* orange as TEXT on light - 6.13:1 on white  */
  --accent-light:#FFC98A;   /* orange as TEXT on oxblood - 8.17:1         */
  --gold:#F2B705;           /* jersey trim only - never carries type      */

  --text:#231114;
  --bg:#FBF6F1;             /* warm off-white, so grass reads warm        */
  --card:#FFFFFF;
  --cream:#FBF6F1;
  --footer:#4E0A14;         /* a step below primary                       */
  --muted-on-dark:#E6C2C6;  /* body copy on oxblood - 7.54:1              */

  --hairline:rgba(107,15,27,.14);
  --hairline-strong:rgba(107,15,27,.28);

  /* -- type ------------------------------------------------------------ */
  --display:"Barlow Condensed", "Arial Narrow", Haettenschweiler, sans-serif;
  --sans:"Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:var(--display);   /* alias - the rules below head with --serif  */

  --logo-mask:url(/assets/images/sglogo.png);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4{
  font-family:var(--display);
  margin:0;color:var(--primary);
  line-height:1.14;            /* condensed faces can sit tighter */
  letter-spacing:.005em;       /* ...but need the tracking back   */
  font-weight:600;
}

/* The eyebrow is the one small-text use of orange, so it takes
   --accent-dark; --accent itself is 2.59:1 on this background. */
.eyebrow{
  font-family:var(--sans);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent-dark);
}

.wrap{max-width:1240px;margin:0 auto;padding:0 24px;}
.visually-hidden,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

.skip-link{position:absolute;left:-999px;top:0;background:var(--primary);color:#fff;padding:10px 16px;z-index:200;}
.skip-link:focus{left:12px;top:12px;}

:focus-visible{outline:3px solid var(--primary);outline-offset:2px;border-radius:3px;}

/* ===================== HEADER ===================== */
/* The header is the dark, not the accent. A full-width bar of orange at
   this saturation reads as a clearance sale; confined to a 5px trim it
   reads as a jersey. That trim is the site's signature, so it is on the
   header rather than in newstyle.css - every page gets it, including the
   legal pages and the 404. */
header.site-header{
  background:var(--primary);
  border-bottom:none;
  position:sticky;top:0;z-index:100;
}
/* Two bands of orange with a gold hairline between them. Sizes are in px
   rather than percentages so the gold stays exactly one pixel at any
   viewport width - at 1% it disappears on narrow screens. */
header.site-header::after{
  content:"";
  position:absolute;left:0;right:0;bottom:0;
  height:5px;
  background:linear-gradient(180deg,
    var(--accent) 0 2px,
    var(--gold)   2px 3px,
    var(--accent) 3px 5px);
}
.header-inner{
  display:flex;align-items:center;gap:28px;
  padding:10px 24px;max-width:1240px;margin:0 auto;
}
.logo-link{flex:0 0 auto;}
.logo-link img{height:auto;width:310px;border-radius:3px;}

nav.primary-nav{flex:1 1 auto;}
.nav-list{display:flex;align-items:center;justify-content:space-between;width:100%;}
.nav-list > li{position:relative;}
.nav-list > li > a,
.nav-list > li > button.nav-toggle{
  display:flex;align-items:center;gap:5px;
  font-family:var(--sans);
  font-weight:700;font-size:.86rem;letter-spacing:.03em;
  color:#fff;
  padding:10px 6px;
  background:none;border:none;cursor:pointer;
  position:relative;
}
/* Underline slides in from the left. The 2px bar is --primary, which sits
   at 4.74:1 on the orange, so the affordance never relies on colour
   alone. */
.nav-list > li > a::after,
.nav-list > li > button.nav-toggle::after{
  content:"";position:absolute;left:6px;right:6px;bottom:4px;height:2px;
  background:var(--accent);
  transform:scaleX(0);transform-origin:left;
  transition:transform .18s ease;
}
.nav-list > li > a:hover::after,
.nav-list > li:hover > button.nav-toggle::after{transform:scaleX(1);}
.nav-list > li > a.is-active,
.nav-list > li > button.nav-toggle.is-active{color:var(--accent-light);}
.nav-list > li > a.is-active::after,
.nav-list > li > button.nav-toggle.is-active::after{transform:scaleX(1);}
.caret{font-size:.6rem;margin-top:2px;}

/* The dropdown sits flush against the button, with no margin gap. A gap
   belongs to neither element, so crossing it makes li:hover go false and
   the menu closes before the pointer arrives. There is no JavaScript here,
   so :hover carries the whole interaction. */
.dropdown{
  display:none;position:absolute;top:100%;left:50%;
  transform:translateX(-50%);
  min-width:230px;
  background:var(--primary);
  border-top:3px solid var(--accent);
  box-shadow:0 12px 24px rgba(78,10,20,.30);
  padding:10px 0;z-index:50;
}
.nav-list > li:hover .dropdown,
.nav-list > li:focus-within .dropdown{display:block;}
.dropdown a{
  display:block;padding:9px 20px;font-size:.85rem;
  color:var(--cream);border-left:3px solid transparent;
}
.dropdown a:hover{background:var(--primary-tint);border-left-color:var(--accent);color:#fff;}

.dropdown-wide{min-width:560px;columns:3;column-gap:0;left:auto;right:0;transform:none;}
.dropdown-wide li{break-inside:avoid;}

.header-actions{display:flex;align-items:center;gap:14px;flex:0 0 auto;}
.icon-btn{
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);font-size:.9rem;
}
.icon-btn:hover{background:var(--accent);color:var(--primary);border-color:var(--accent);}

.header-search{
  display:flex;align-items:center;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);
  border-radius:20px;padding:4px 4px 4px 16px;min-width:310px;
}
.header-search input{
  border:none;background:none;outline:none;
  font-family:var(--sans);font-size:.84rem;color:#fff;width:100%;
}
.header-search input::placeholder{color:var(--muted-on-dark);}
.header-search button{
  flex:0 0 auto;width:32px;height:32px;border-radius:50%;border:none;
  background:var(--accent);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;cursor:pointer;
}
.header-search button:hover{background:var(--accent-light);}

.nav-toggle-mobile{display:none;}

/* ===================== BREADCRUMB ===================== */
.breadcrumb-bar{background:var(--secondary);color:#fff;}
.breadcrumb-bar .wrap{
  padding:9px 24px;display:flex;align-items:center;gap:8px;
  font-size:.78rem;letter-spacing:.02em;
}
.breadcrumb-bar a{opacity:.9;}
.breadcrumb-bar a:hover{opacity:1;text-decoration:underline;}
.breadcrumb-bar .sep{opacity:.55;}
.breadcrumb-bar .current{color:var(--accent-light);font-weight:600;}

/* ===================== LAYOUT ===================== */
main{padding:36px 0 8px;}
.layout{display:grid;grid-template-columns:1fr 320px;gap:40px;align-items:start;}
.primary-content{min-width:0;}

/* ===================== HERO ===================== */
.hero-card{
  position:relative;background:var(--primary);
  border-radius:10px;overflow:hidden;
  aspect-ratio:16/9;max-height:560px;margin-bottom:44px;
  box-shadow:0 14px 30px rgba(107,15,27,.20);
}
.hero-media{position:absolute;inset:0;z-index:1;}
.hero-media img{width:100%;height:100%;object-fit:cover;display:block;}
.hero-media-fallback{
  width:100%;height:100%;
  background:linear-gradient(135deg,var(--primary-tint),var(--primary));
  display:flex;align-items:center;justify-content:center;color:rgba(255,201,138,.55);
}
.hero-media-fallback i{font-size:4rem;}
.hero-scrim{
  position:absolute;inset:0;z-index:2;
  background:linear-gradient(180deg, rgba(78,10,20,.05) 0%, rgba(78,10,20,.45) 45%, rgba(46,6,12,.94) 100%);
}
.hero-copy{
  position:relative;z-index:3;height:100%;
  padding:40px 48px;color:var(--cream);
  display:flex;flex-direction:column;justify-content:flex-end;gap:12px;max-width:640px;
}
.hero-copy .eyebrow{color:var(--accent-light);}
.hero-copy h1{color:#fff;font-size:2.15rem;line-height:1.15;font-weight:600;text-shadow:0 2px 12px rgba(0,0,0,.35);}
.hero-copy p{color:#EEDCD7;font-size:.98rem;max-width:52ch;margin:0;}
.hero-meta{display:flex;gap:14px;font-size:.78rem;color:var(--accent-light);letter-spacing:.02em;}
.hero-cta{
  margin-top:6px;display:inline-flex;align-items:center;gap:8px;
  color:var(--accent-light);font-weight:700;font-size:.88rem;width:fit-content;
  border-bottom:2px solid var(--accent);padding-bottom:3px;
}
.hero-cta:hover{color:#fff;border-color:#fff;}

/* ===================== SECTION HEAD ===================== */
.section-head{
  position:relative;
  display:flex;align-items:baseline;justify-content:space-between;
  margin-bottom:20px;border-bottom:2px solid var(--hairline);padding-bottom:10px;
}
.section-head::after{
  content:"";
  position:absolute;left:0;bottom:-2px;
  width:44px;height:2px;
  background:var(--accent);
}
/* Barlow Condensed is narrow, so headings are set a little larger than
   the old metrics and given back a touch of tracking. */
.section-head h2{font-size:1.72rem;letter-spacing:.005em;}
.section-head a.view-all{font-size:.8rem;font-weight:700;color:var(--secondary);letter-spacing:.02em;}
.section-head a.view-all:hover{color:var(--accent-dark);}

/* ===================== CATEGORY PAGE ===================== */
.category-hero{margin-bottom:24px;}
.category-hero h1{font-size:2.55rem;margin:6px 0 12px;line-height:1.08;}
.category-hero p{font-size:.98rem;color:var(--secondary);max-width:70ch;margin:0 0 16px;}
.category-meta{display:flex;gap:20px;font-size:.82rem;color:var(--secondary);font-weight:600;}
.category-meta i{color:var(--accent-dark);margin-right:6px;}

.era-filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:40px;}
.era-pill{
  padding:9px 18px;border-radius:30px;font-size:.85rem;font-weight:600;
  background:var(--card);border:1px solid var(--hairline);color:var(--primary);
}
.era-pill:hover{border-color:var(--accent);}
.era-pill.is-active{background:var(--primary);border-color:var(--primary);color:#fff;}

.sort-form{display:flex;align-items:center;gap:8px;font-size:.78rem;color:var(--secondary);align-self:center;}
.sort-form label{font-weight:600;}
.sort-form select{
  padding:7px 30px 7px 12px;border-radius:6px;border:1px solid var(--hairline);
  background:var(--card);color:var(--primary);font-family:var(--sans);font-size:.82rem;font-weight:600;
  cursor:pointer;-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B0F1B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 8px center;background-size:14px;
}
.sort-form select:focus{outline:none;border-color:var(--accent);}
.article-grid.category-grid{margin-bottom:8px;grid-template-columns:repeat(3,1fr);}

.pagination{
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin-top:12px;padding-top:28px;border-top:1px solid var(--hairline);
}
.page-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 16px;border-radius:6px;font-size:.85rem;font-weight:600;
  color:var(--primary);border:1px solid var(--hairline);background:var(--card);
}
.page-btn:hover{border-color:var(--accent);}
.page-btn.is-disabled{opacity:.4;pointer-events:none;}
.page-num{
  width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  border-radius:6px;font-size:.85rem;font-weight:600;color:var(--primary);
}
.page-num:hover{background:var(--card);}
/* Oxblood on the orange, not white. White here is 2.59:1. */
.page-num.is-active{background:var(--accent);color:var(--primary);}

/* ===================== ERAS ===================== */
/* Two columns by default, so the cards stay readable at any count.
   Odd counts of five or more leave a single orphan card on the final row,
   which reads as a mistake rather than a choice - so at exactly 5, 7 or 9
   the whole set collapses onto one row instead.

   :nth-child(N):last-child matches only when the Nth child is also the
   last, i.e. when there are exactly N of them. :has() applies that count
   to the grid container. Browsers without :has() keep the two-column
   default, which is a reasonable place to land. */
.eras{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;margin-bottom:46px;
}
.eras:has(> :nth-child(5):last-child){grid-template-columns:repeat(5, minmax(0,1fr));}
.eras:has(> :nth-child(7):last-child){grid-template-columns:repeat(7, minmax(0,1fr));}
.eras:has(> :nth-child(9):last-child){grid-template-columns:repeat(9, minmax(0,1fr));}
.era-card{
  background:var(--card);border:1px solid var(--hairline);border-radius:8px;
  padding:18px 14px;text-align:center;transition:transform .15s ease, box-shadow .15s ease;
}
.era-card:hover{transform:translateY(-3px);box-shadow:0 10px 20px rgba(107,15,27,.12);border-color:var(--accent);}
.era-card .era-icon{
  width:44px;height:44px;margin:0 auto 10px;border-radius:50%;
  background:var(--bg);border:1px solid var(--hairline);
  display:flex;align-items:center;justify-content:center;color:var(--accent-dark);
}
.era-card:hover .era-icon{background:var(--accent);border-color:var(--accent);color:var(--primary);}
.era-card .era-icon i{font-size:1.2rem;}
.era-card .era-range{display:block;font-size:.68rem;color:var(--secondary);letter-spacing:.06em;text-transform:uppercase;margin-bottom:3px;}
.era-card h3{font-size:.95rem;color:var(--primary);}

/* ===================== ARTICLE GRID ===================== */
.article-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-bottom:46px;}
.article-card{
  background:var(--card);border:1px solid var(--hairline);border-radius:8px;overflow:hidden;
  display:flex;flex-direction:column;transition:box-shadow .15s ease, transform .15s ease;
}
.article-card:hover{box-shadow:0 12px 22px rgba(107,15,27,.14);transform:translateY(-2px);}
.article-thumb{
  width:100%;aspect-ratio:16/9;
  background:linear-gradient(135deg,var(--primary-tint),var(--primary));
  display:flex;align-items:center;justify-content:center;color:rgba(255,201,138,.55);
  overflow:hidden;
}
.article-thumb i{font-size:1.8rem;}
.article-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.article-body{padding:18px 20px 20px;}
.article-tag{font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-dark);}
.article-card h3{font-size:1.08rem;margin:8px 0 8px;line-height:1.3;}
.article-card h3 a:hover{color:var(--accent-dark);}
.article-card p{font-size:.86rem;color:var(--secondary);margin:0 0 12px;}
.article-foot{display:flex;justify-content:space-between;font-size:.72rem;color:var(--secondary);border-top:1px solid var(--hairline);padding-top:10px;}

/* ===================== ARTICLE PAGE ===================== */
.back-to-category{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.85rem;font-weight:700;color:var(--secondary);margin-bottom:24px;
}
.back-to-category:hover{color:var(--accent-dark);}

.article-hero-image{
  width:100%;aspect-ratio:16/9;border-radius:10px;overflow:hidden;margin-bottom:28px;
  background:linear-gradient(135deg,var(--primary-tint),var(--primary));
  display:flex;align-items:center;justify-content:center;color:rgba(255,201,138,.55);
}
.article-hero-image img{width:100%;height:100%;object-fit:cover;display:block;}
.article-hero-image i{font-size:3rem;}

.article-page-header{margin-bottom:8px;}
/* The hero image sits between the title and the byline, so its spacing is
   tighter than it was as a standalone block above the article. */
.article-page-header .article-hero-image{margin:18px 0 24px;}
.article-page-header h1{font-size:2rem;line-height:1.2;margin:10px 0 16px;}
.article-page-meta{
  display:flex;gap:18px;flex-wrap:wrap;font-size:.82rem;color:var(--secondary);
  border-bottom:2px solid var(--hairline);padding-bottom:22px;margin-bottom:28px;
}
.article-page-meta span{display:flex;align-items:center;gap:6px;}
.article-page-meta i{color:var(--accent-dark);}

.article-content{font-size:1.02rem;line-height:1.75;color:var(--text);}
.article-content p{margin:0 0 20px;}
.article-content h2{font-family:var(--serif);color:var(--primary);font-size:1.5rem;margin:36px 0 16px;}
.article-content h3{font-family:var(--serif);color:var(--primary);font-size:1.25rem;margin:28px 0 12px;}
.article-content a{color:var(--accent-dark);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px;}
.article-content a:hover{color:var(--primary);text-decoration-color:var(--primary);}
.article-content blockquote{
  border-left:4px solid var(--accent);margin:24px 0;padding:2px 0 2px 20px;
  font-family:var(--serif);font-style:italic;font-size:1.15rem;color:var(--primary);
}
.article-content img{width:100%;border-radius:8px;margin:8px 0 24px;}
.article-content ul,.article-content ol{margin:0 0 20px;padding-left:24px;}
.article-content ul{list-style:disc;}
.article-content ol{list-style:decimal;}
.article-content li{margin-bottom:8px;}
.article-content strong{font-weight:700;color:var(--primary);}

.related-articles{margin-top:48px;padding-top:8px;}

/* ===================== CHIPS ===================== */
.places-section{margin-bottom:46px;}
.place-chips{display:flex;flex-wrap:wrap;gap:10px;}
.place-chips a{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--card);border:1px solid var(--hairline);
  padding:9px 16px;border-radius:30px;font-size:.85rem;font-weight:600;color:var(--primary);
}
.place-chips a:hover{background:var(--primary);color:#fff;border-color:var(--primary);}
.place-chips a .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);}
.place-chips a:hover .dot{background:var(--accent-light);}

/* ===================== PROFILE CARDS ===================== */
.people-section{margin-bottom:10px;}
.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.person-card{
  background:var(--card);border:1px solid var(--hairline);border-radius:8px;
  padding:20px;display:flex;gap:14px;align-items:flex-start;
}
.person-avatar{
  flex:0 0 auto;width:52px;height:52px;border-radius:50%;
  background:var(--accent-light);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-weight:600;border:2px solid var(--accent);
}
.person-card h3{font-size:.98rem;margin-bottom:3px;}
.person-card .role{font-size:.72rem;color:var(--secondary);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;display:block;}
.person-card p{font-size:.82rem;color:var(--secondary);margin:0;}

/* ===================== SIDEBAR ===================== */
aside.sidebar{display:flex;flex-direction:column;gap:34px;}
.widget h2{font-size:1.02rem;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid var(--hairline);}

.ad-slot{
  width:100%;max-width:300px;height:250px;margin:0 auto 14px;
  background:repeating-linear-gradient(45deg,#F6E9E5,#F6E9E5 10px,#EBD8D3 10px,#EBD8D3 20px);
  border:1px dashed var(--secondary);border-radius:6px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--secondary);
}
.ad-slot span.label{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;}
.ad-slot span.dims{font-size:.72rem;}
.ad-slot-live{background:none;border:none;padding:0;overflow:hidden;}
.ad-slot-live img{width:100%;height:100%;object-fit:cover;display:block;}

.side-list li{border-bottom:1px solid var(--hairline);padding:11px 0;}
.side-list li:first-child{padding-top:0;}
.side-list li:last-child{border-bottom:none;padding-bottom:0;}
.side-list a{font-size:.87rem;font-weight:600;color:var(--primary);line-height:1.35;}
.side-list a:hover{color:var(--accent-dark);}
.side-list .meta{display:block;font-size:.72rem;color:var(--secondary);margin-top:3px;font-weight:400;}

.popular-list li{display:flex;gap:12px;align-items:flex-start;}
.rank{
  flex:0 0 auto;width:24px;height:24px;border-radius:50%;
  background:var(--primary);color:var(--accent-light);
  font-family:var(--serif);font-size:.78rem;font-weight:600;
  display:flex;align-items:center;justify-content:center;
}

.cat-list li{padding:0;border:none;}
.cat-list a{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 0;border-bottom:1px solid var(--hairline);
  font-size:.87rem;font-weight:600;color:var(--primary);
}
.cat-list li:last-child a{border-bottom:none;}
.cat-list .count{
  font-size:.72rem;font-weight:700;color:var(--secondary);
  background:var(--bg);border:1px solid var(--hairline);border-radius:20px;padding:2px 9px;
}
.cat-list a:hover .count{background:var(--accent);color:var(--primary);border-color:var(--accent);}

/* ===================== NEWSLETTER BAND ===================== */
.newsletter-band{
  background:var(--primary);
  background-image:radial-gradient(circle at 15% 20%, rgba(245,130,31,.20), transparent 55%);
  color:#fff;margin-top:56px;
}
.newsletter-inner{
  max-width:1240px;margin:0 auto;padding:52px 24px;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:40px;
}
.newsletter-copy{max-width:460px;flex:1 1 360px;}
.newsletter-copy .eyebrow{color:var(--accent-light);}
.newsletter-copy h2{color:#fff;font-size:1.65rem;margin:6px 0 8px;}
.newsletter-copy p{color:var(--muted-on-dark);font-size:.92rem;margin:0;}
.newsletter-form{display:flex;flex-direction:column;gap:10px;flex:1 1 500px;max-width:580px;}
.newsletter-fields{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;}
.newsletter-form input{
  flex:1 1 200px;min-width:0;padding:13px 16px;border-radius:4px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);color:#fff;font-family:var(--sans);font-size:.88rem;
}
.newsletter-form input::placeholder{color:var(--muted-on-dark);}
.newsletter-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(245,130,31,.28);}
.newsletter-form button{
  flex:0 0 auto;padding:13px 24px;border-radius:4px;border:none;
  background:var(--accent);color:var(--primary);
  font-weight:800;font-size:.86rem;letter-spacing:.02em;cursor:pointer;white-space:nowrap;
}
.newsletter-form button:hover{background:var(--accent-light);}
.newsletter-form small{display:block;color:var(--muted-on-dark);font-size:.72rem;}
.newsletter-errors{color:#FBD5D0;font-size:.8rem;margin:0;}

/* ===================== FOOTER ===================== */
footer.site-footer{background:var(--footer);color:var(--muted-on-dark);border-top:4px solid var(--accent);}
/* Brand block, then one equal column per footer category.
   The original template sized this for four categories plus a long list
   of areas, which is why the last column was 1.75fr. With five categories
   of six sub-categories each that made the final column sprawl, and put
   six children into a five-column grid so the last one wrapped.
   If you change footer_max_columns, change the repeat() count to match. */
.footer-main{
  max-width:1240px;margin:0 auto;padding:52px 24px 36px;
  display:grid;
  grid-template-columns:1.5fr repeat(5, minmax(0,1fr));
  gap:28px 20px;
}
.footer-brand img{height:46px;margin-bottom:14px;border-radius:3px;}
.footer-logo-mark{
  display:block;width:230px;aspect-ratio:1653/213;margin-bottom:14px;
  background-color:var(--accent);
  -webkit-mask-image:var(--logo-mask);mask-image:var(--logo-mask);
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:left center;mask-position:left center;
  -webkit-mask-mode:alpha;mask-mode:alpha;
}
.footer-brand p{font-size:.83rem;line-height:1.65;color:var(--muted-on-dark);margin:0 0 16px;}
footer h3{font-family:var(--sans);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-light);margin-bottom:16px;}
footer .footer-links li{margin-bottom:10px;}
footer .footer-links a{font-size:.85rem;color:var(--muted-on-dark);}
footer .footer-links a:hover{color:#fff;text-decoration:underline;}
/* footer.php still tags the final column .footer-areas, which in the
   original carried a three-column list of ~21 area links. Six links do
   not need three sub-columns, so it matches every other column. */
.footer-areas .footer-links{columns:1;}
.footer-areas .footer-links li{margin-bottom:10px;}
.footer-areas .footer-links a{font-size:.85rem;}

/* Section headings carry a short orange rule - a yard marker rather than
   a full underline. The 2px hairline below runs the width of the row; the
   orange segment sits on top of its left end. */
.section-head{border-bottom-color:var(--accent);}

.footer-bottom{border-top:1px solid rgba(255,255,255,.12);}
.footer-bottom .wrap{
  max-width:1240px;margin:0 auto;padding:18px 24px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;
  font-size:.76rem;color:var(--muted-on-dark);
}
.footer-bottom .legal-links{display:flex;gap:18px;flex-wrap:wrap;}
.footer-bottom a:hover{color:#fff;text-decoration:underline;}

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 22px;border-radius:6px;border:1px solid transparent;
  font-family:var(--sans);font-weight:700;font-size:.86rem;cursor:pointer;
}
.btn-primary{background:var(--primary);color:#fff;}
.btn-primary:hover{background:var(--primary-tint);}
/* Oxblood on orange is 4.74:1. White on the same orange is 2.59:1, so
   this pairing is not interchangeable - do not "tidy" it to #fff. */
.btn-accent{background:var(--accent);color:var(--primary);}
.btn-accent:hover{background:var(--accent-light);}
.btn-secondary{background:var(--card);color:var(--primary);border-color:var(--hairline-strong);}
.btn-secondary:hover{border-color:var(--accent);}
.btn-danger{background:#A81C10;color:#fff;}
.btn-sm{padding:7px 14px;font-size:.8rem;border-radius:5px;}
.btn-sm:hover{border-color:var(--accent);color:var(--accent-dark);}

/* ===================== FORMS & UTILITY PAGES ===================== */
.form-grid{display:grid;gap:18px;max-width:640px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.form-group{display:flex;flex-direction:column;gap:6px;}
.form-group label{font-size:.82rem;font-weight:700;color:var(--primary);}
.form-group input,.form-group textarea,.form-group select{
  padding:11px 14px;border-radius:6px;border:1px solid var(--hairline-strong);
  background:var(--card);font-family:var(--sans);font-size:.92rem;color:var(--text);
}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{
  outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(245,130,31,.25);
}
.form-group .hint{font-size:.76rem;color:var(--secondary);}
.form-actions{display:flex;gap:12px;align-items:center;margin-top:6px;}
.captcha-row{display:flex;align-items:center;gap:14px;}
.contact-errors,.alert-error{
  background:#FDE8E6;border:1px solid #F3B9B2;color:#8C1408;
  padding:12px 16px;border-radius:6px;font-size:.86rem;margin-bottom:20px;
}
.alert-success{
  background:#DCF7E7;border:1px solid #A6DFC0;color:#0B5B2E;
  padding:12px 16px;border-radius:6px;font-size:.86rem;margin-bottom:20px;
}
.confirmation-box{
  background:var(--card);border:1px solid var(--hairline);border-left:4px solid var(--accent);
  border-radius:0 8px 8px 0;padding:24px 26px;margin-bottom:28px;
}
.confirmation-box h1{font-size:1.6rem;margin-bottom:10px;}
.confirmation-box p{color:var(--secondary);margin:0 0 12px;font-size:.94rem;}
.unsub-btn{margin-top:8px;}

.sitemap-section{margin-bottom:44px;}
.sitemap-jump{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px;}
.sitemap-jump a{
  padding:8px 16px;border-radius:30px;font-size:.82rem;font-weight:600;
  background:var(--card);border:1px solid var(--hairline);color:var(--primary);
}
.sitemap-jump a:hover{border-color:var(--accent);background:var(--accent);color:var(--primary);}
.sitemap-group{margin-bottom:26px;}
.sitemap-group h3{font-size:1rem;margin-bottom:10px;}
.sitemap-links{columns:2;column-gap:32px;}
.sitemap-links li{break-inside:avoid;margin-bottom:8px;}
.sitemap-links a{font-size:.88rem;color:var(--primary);}
.sitemap-links a:hover{color:var(--accent-dark);text-decoration:underline;}
.sitemap-pages{display:flex;flex-wrap:wrap;gap:18px;}

/* ===================== RESPONSIVE ===================== */
@media (max-width:1080px){
  .layout{grid-template-columns:1fr;}
  aside.sidebar{flex-direction:row;flex-wrap:wrap;}
  aside.sidebar .widget{flex:1 1 260px;}
  .footer-main{grid-template-columns:repeat(3, minmax(0,1fr));}
  .article-grid.category-grid{grid-template-columns:repeat(2,1fr);}
  .eras,
  .eras:has(> :nth-child(5):last-child),
  .eras:has(> :nth-child(7):last-child),
  .eras:has(> :nth-child(9):last-child){grid-template-columns:repeat(3, minmax(0,1fr));}
}
@media (max-width:900px){
  .logo-link img{height:44px;}
  .nav-list{display:none;}
  .nav-toggle-mobile{display:flex;}
  .header-inner{justify-content:space-between;gap:14px;}
  .header-search{min-width:0;flex:1 1 auto;}
  .hero-card{aspect-ratio:4/3;max-height:none;}
  .hero-copy{padding:28px 24px;}
  .hero-copy h1{font-size:1.6rem;}
  .article-grid,.article-grid.category-grid{grid-template-columns:1fr;}
  .people-grid{grid-template-columns:1fr;}
  .footer-main{grid-template-columns:repeat(2, minmax(0,1fr));}
  .form-row{grid-template-columns:1fr;}
  .sitemap-links{columns:1;}
}
@media (max-width:560px){
  .header-search{display:none;}
  .eras,
  .eras:has(> :nth-child(5):last-child),
  .eras:has(> :nth-child(7):last-child),
  .eras:has(> :nth-child(9):last-child){grid-template-columns:repeat(2, minmax(0,1fr));}
  .footer-main{grid-template-columns:1fr;}
  .newsletter-fields{flex-wrap:wrap;}
  .newsletter-form button{width:100%;justify-content:center;}
  .article-page-header h1{font-size:1.55rem;}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important;scroll-behavior:auto !important;}
  .article-card:hover,.era-card:hover{transform:none;}
}