/*
Theme Name: Sailing Times
Theme URI: https://sailingtimes.news
Author: Sailing Times
Description: Global sailing and yacht racing news — racing, cruising, gear, weather and ocean coverage.
Version: 1.0
Requires PHP: 7.4
Text Domain: sailing-times
*/

:root{
  --ink:#0c1116;
  --ink-soft:#3a4450;
  --paper:#ffffff;
  --paper-dim:#f3f4f6;
  --line:#e4e6ea;
  --ticker-bg:#091017;
  --ticker-bg-2:#101923;
  /* a small set of bars/chips (masthead-adjacent utility bar, panel heads,
     the footer, the wx-search block) are meant to read as permanently dark
     regardless of site theme — this token, unlike --ink, never changes
     under [data-theme="dark"] */
  --surface-fixed-dark:#13213c;
  --accent:#f5821f;
  --accent-dark:#c2630f;
  --accent-2:#f4b400;
  --live:#e0332f;
  /* one accent per section, so browsing between them reads like flipping
     through a printed paper's sections rather than one undifferentiated feed */
  --cat-racing:#d32f2f;
  --cat-cruising:#1565c0;
  --cat-gear:#f9a825;
  --cat-ocean-eco:#2e7d32;
  --cat-marinas:#6a1b9a;
  --cat-industry:#546e7a;
  --cat-columns:#ad1457;
  --cat-feature:#00838f;
  --cat-news:#3a4450;
  --cat-guides:#8d5524;
  /* current menu's sections -- classes/offshore/league are parent categories,
     so every class (470, ILCA...), race (Rolex Fastnet...) or tour (44Cup...)
     filed under one inherits its color via st_cat_slug() automatically. */
  --cat-sailgp:#e91e63;
  --cat-classes:#7c4dff;
  --cat-regattas:#ef6c00;
  --cat-offshore:#00acc1;
  --cat-people:#3949ab;
  --cat-league:#b8860b;
  --font-display: "Cormorant Garamond", "Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-headline-photo: var(--font-display);
  --font-photo-caption: "Playfair Display", "EB Garamond", Georgia, serif;
}

/* dark mode: only the page-surface and text tokens flip. --surface-fixed-dark
   and the section accent colors stay put on purpose (see their own comments). */
:root[data-theme="dark"]{
  --ink:#eceef0;
  --ink-soft:#aab0b8;
  --paper:#12161b;
  --paper-dim:#1b2027;
  --line:#2b323b;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-sans);
  font-size:15px;
  line-height:1.5;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1320px;margin:0 auto;padding:0 20px;}

/* ---------------- ticker ---------------- */
.st-ticker{
  background:rgba(9,15,23,.92);
  color:#aab3bd;
  font-family:var(--font-mono);
  font-size:12px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.st-ticker{position:relative;display:flex;align-items:center;}
.st-ticker-live-label{
  flex:none;display:flex;align-items:center;gap:7px;
  padding:0 18px;font-weight:700;color:#fff;
  text-transform:uppercase;letter-spacing:.04em;font-size:11.5px;
  border-right:1px solid rgba(255,255,255,.14);align-self:stretch;
}
.st-ticker-live-label .live-dot{
  width:8px;height:8px;border-radius:50%;background:var(--live);flex:none;
  animation:st-live-pulse 2s ease-in-out infinite;
}
.st-ticker .wrap{
  display:flex;
  gap:0;
  overflow:hidden;
  flex:1;
}
.ticker-track{
  display:flex;
  width:max-content;
  animation:st-ticker-scroll 68s linear infinite;
}
.st-ticker:hover .ticker-track,
.st-ticker:focus-within .ticker-track,
body.st-ticker-paused .ticker-track{animation-play-state:paused;}
@keyframes st-ticker-scroll{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
.ticker-track-reverse{
  animation-name:st-ticker-scroll-reverse;
  animation-duration:78s;
}
@keyframes st-ticker-scroll-reverse{
  from{transform:translateX(-50%);}
  to{transform:translateX(0);}
}
.st-market-ticker{border-top:1px solid var(--line);}
.market-item .headline{font-family:var(--font-mono);}
.market-item .mkt-ccy{font-size:9.5px;color:#7c8590;}
.mkt-change{font-weight:700;}
.mkt-change.up{color:#3ecf7e;}
.mkt-change.down{color:#ff6b5e;}
@media (prefers-reduced-motion:reduce){
  .ticker-track{animation:none;}
  .st-ticker .wrap{overflow-x:auto;scrollbar-width:none;}
  .st-ticker .wrap::-webkit-scrollbar{display:none;}
}
.st-ticker::after{
  content:"";position:absolute;top:0;right:0;bottom:0;width:28px;pointer-events:none;
  background:linear-gradient(to right, transparent, rgba(9,15,23,.92));
  z-index:1;
}
.st-ticker-toggle{
  position:absolute;top:0;right:2px;bottom:0;z-index:2;width:22px;
  display:flex;align-items:center;justify-content:center;
  background:none;border:none;color:#8a929c;cursor:pointer;padding:0;
}
.st-ticker-toggle:hover{color:#fff;}
.st-ticker-toggle svg{display:block;}
.st-ticker-toggle .icon-play{display:none;}
body.st-ticker-paused .st-ticker-toggle .icon-pause{display:none;}
body.st-ticker-paused .st-ticker-toggle .icon-play{display:block;}
.ticker-item{
  flex:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  padding:0 22px 0 0;
  margin-right:22px;
  border-right:1px solid rgba(255,255,255,.12);
  min-width:0;
  height:52px;
  text-decoration:none;
  cursor:pointer;
}
.ticker-item:last-child{border-right:none;}
.ticker-item:hover{background:transparent;}
.ticker-item:hover .headline{text-decoration:underline;}
.ticker-item .sub,
.ticker-item .place-wind{display:none;}
.ticker-item .tag-row{display:flex;align-items:center;gap:6px;}
.ticker-item .tag{
  font-size:8.5px;
  font-weight:700;
  letter-spacing:.06em;
  padding:1px 4px;
  border-radius:2px;
  background:rgba(255,255,255,.1);
  color:#c8cdd3;
}
/* dot-only live indicator — no repeated "LIVE" text, just a small pulsing
   marker so a row of market items doesn't read as ten shouted badges */
.ticker-item .tag.live{
  background:var(--live);padding:0;width:7px;height:7px;border-radius:50%;
  flex:none;animation:st-live-pulse 2s ease-in-out infinite;
}
@keyframes st-live-pulse{
  0%, 100%{opacity:1;} 50%{opacity:.45;}
}
@media (prefers-reduced-motion:reduce){
  .ticker-item .tag.live{animation:none;}
}
.ticker-item .tag.next{background:var(--accent-2);color:#1a0f04;}
/* "Today is race day" — a static, honest badge (not the pulsing .live dot
   above, which is reserved for things we actually stream continuously,
   like the market ticker's price feed). We don't track each event's
   actual on-the-water hours, so this never claims real-time action. */
.ticker-item .tag.is-today{background:var(--live);color:#fff;}
.ticker-item .event{font-size:10px;font-weight:600;letter-spacing:.02em;}
.ticker-item .headline{font-family:var(--font-sans);font-size:12px;font-weight:500;color:#fff;white-space:nowrap;}
.ticker-item .sub{font-size:9.5px;color:#8a929c;}
.ticker-item .place-wind{
  margin-top:1px;padding-top:3px;border-top:1px solid rgba(255,255,255,.1);
  font-size:10px;color:#8a929c;
}
.ticker-item .place-wind strong{color:var(--accent);font-weight:600;}
.ticker-item .place-wind em{font-style:normal;color:#5f6770;}

/* ---------------- utility bar ---------------- */
.st-utility{background:var(--surface-fixed-dark);color:#8a929c;font-family:var(--font-sans);font-size:11.5px;letter-spacing:.02em;}
.st-utility .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 20px;}
/* on narrow screens the utility row wraps to several lines instead of
   staying a fixed height, which breaks the pages that overlay a
   transparent header at a hardcoded top offset (home, single-post) —
   simplest fix is to drop this secondary row on mobile everywhere,
   the hamburger menu covers About/Contact and the wind widget lives
   on the weather page anyway */
@media (max-width:700px){
  .st-utility{display:none;}
  body.home .st-sticky-head,
  body.single-post .st-sticky-head{top:0;}
}
.st-utility-left{display:flex;align-items:center;gap:18px;}
.st-utility-tagline{text-transform:uppercase;letter-spacing:.08em;font-size:10.5px;color:#7d8791;}
.st-utility-right{display:flex;align-items:center;gap:18px;}
.st-utility-right a{color:#c8cdd3;text-decoration:none;text-transform:uppercase;letter-spacing:.03em;font-size:10.5px;}
.st-utility-right a:hover{color:#fff;}
.st-utility .wind-mini{color:#c8cdd3;}
.st-utility .wind-mini strong{color:var(--accent);font-weight:600;}
.wind-mini-btn{
  background:none;border:none;padding:0;margin:0;color:#c8cdd3;
  font-family:var(--font-sans);font-size:11.5px;cursor:pointer;
}
.wind-mini-btn:hover{color:#fff;}
.wind-mini-btn strong{color:var(--accent);font-weight:600;}
.wind-mini-form{display:inline-block;}
.wind-mini-form[hidden]{display:none;}
.wind-mini-form input{
  background:#1a2129;border:1px solid #2c343d;border-radius:3px;color:#fff;
  font-family:var(--font-sans);font-size:11.5px;padding:3px 8px;width:140px;
}
.wind-mini-form input::placeholder{color:#6b727c;}
.wind-mini-form input:focus{outline:none;border-color:var(--accent);}

/* ---------------- article reading-progress bar ---------------- */
.st-progress-bar{
  position:fixed;top:0;left:0;height:3px;width:0;
  background:var(--accent);z-index:200;
  transition:width .1s linear;
}
@media (prefers-reduced-motion:reduce){
  .st-progress-bar{transition:none;}
}

/* ---------------- sticky header (masthead + both ticker rows) ---------------- */
.st-sticky-head{
  position:sticky;top:0;z-index:90;
  box-shadow:0 3px 10px rgba(0,0,0,.12);
}

/* ---------------- homepage + article pages: header floats transparently
   over the photo below it (glass/blur), instead of sitting in its own
   solid bar above it. Every other template keeps the normal solid header. ---------------- */
body.home .st-utility,
body.home .st-sticky-head,
body.single-post .st-utility,
body.single-post .st-sticky-head,
body.single-st_photo .st-utility,
body.single-st_photo .st-sticky-head{
  position:absolute;left:0;right:0;z-index:20;
}
body.home .st-utility,
body.single-post .st-utility,
body.single-st_photo .st-utility{top:0;background:rgba(3,17,27,.48);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-bottom:1px solid rgba(255,255,255,.18);}
body.home .st-sticky-head,
body.single-post .st-sticky-head,
body.single-st_photo .st-sticky-head{top:34px;}
body.home .st-masthead,
body.single-post .st-masthead,
body.single-st_photo .st-masthead{background:rgba(3,18,28,.5);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);border-bottom:1px solid rgba(255,255,255,.12);}

/* ---------------- masthead (logo + nav + search + subscribe, one row) ---------------- */
/* a hairline here keeps the header reading as its own navy block instead of
   melting into the page below it -- most noticeable in dark mode, where the
   page background is nearly as dark as the header's fixed navy */
.st-masthead{background:var(--surface-fixed-dark);border-bottom:1px solid rgba(255,255,255,.12);}
.st-masthead .wrap{
  display:flex;align-items:center;flex-wrap:nowrap;
  padding:16px 20px;
  gap:10px 22px;
}
.st-logo{display:flex;align-items:center;gap:14px;font-family:var(--font-display);font-weight:700;font-size:30px;letter-spacing:-0.01em;flex:none;}
.st-logo-mark{height:58px;width:auto;display:block;}
.st-logo-mark.logo-for-dark{display:none;}
:root[data-theme="dark"] .st-logo-mark.logo-for-light{display:none;}
:root[data-theme="dark"] .st-logo-mark.logo-for-dark{display:block;}
/* masthead background is always navy regardless of site theme, so it
   always needs the light-colored logo mark, not the theme-driven one */
.st-masthead .st-logo-mark.logo-for-light{display:none;}
.st-masthead .st-logo-mark.logo-for-dark{display:block;}
.st-logo-text{display:flex;align-items:baseline;gap:2px;}
.st-masthead .st-logo-text{color:#fff;}
.st-logo .accent{color:inherit;}
.st-logo .suffix{font-family:var(--font-sans);font-weight:600;font-size:14px;color:var(--ink-soft);letter-spacing:.02em;}
.st-masthead .st-logo .suffix{color:rgba(255,255,255,.65);}

/* nav sits inline beside the logo on desktop, on the same row (the wrap
   is nowrap — see .st-masthead .wrap). Below 1100px it collapses into the
   hamburger dropdown (see the max-width:1100px block); between 1100px and
   whatever width the full 11-item list needs, it shrinks and wraps onto a
   second internal line rather than ever dropping below the logo. */
.st-nav-inline{flex:1 1 auto;min-width:0;}
.st-nav-inline .menu{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;}
.st-nav-inline .menu li{list-style:none;margin:0;}
.st-nav-inline a{
  font-family:var(--font-display);font-size:14px;font-weight:600;letter-spacing:.01em;
  color:rgba(255,255,255,.8);
  padding:4px 0;border-bottom:2px solid transparent;
  white-space:nowrap;
}
.st-nav-inline a:hover{color:#fff;border-bottom-color:var(--accent);}

.st-nav-inline .menu li{position:relative;}
.st-nav-inline .menu li:hover > .sub-menu,
.st-nav-inline .menu li.st-submenu-open > .sub-menu{display:block;}
.st-nav-inline .sub-menu{
  display:none;position:absolute;top:100%;left:0;z-index:50;min-width:190px;
  background:rgba(3,17,27,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.14);border-radius:4px;box-shadow:0 10px 30px rgba(0,0,0,.25);
  padding:6px 0;margin:4px 0 0;
}
.st-nav-inline .sub-menu li{border:none;}
.st-nav-inline .sub-menu a{
  display:block;padding:10px 16px;font-size:12.5px;font-weight:600;letter-spacing:0;
  border-bottom:none;white-space:nowrap;
}
.st-nav-inline .sub-menu a:hover{background:rgba(255,255,255,.08);}
.st-nav-inline .menu-item-has-children > a::after{content:"";display:inline-block;margin-left:5px;border:4px solid transparent;border-top-color:currentColor;border-bottom:none;vertical-align:middle;opacity:.6;}

.st-submenu-toggle{
  display:none;position:absolute;right:0;top:0;width:38px;height:44px;
  background:none;border:none;cursor:pointer;color:rgba(255,255,255,.75);padding:0;
  align-items:center;justify-content:center;
}
.st-submenu-toggle::after{
  content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);transition:transform .15s;margin-top:-3px;
}
.st-submenu-open > .st-submenu-toggle::after{transform:rotate(-135deg);margin-top:3px;}
@media (max-width:760px){
  .st-submenu-toggle{display:flex;}
}

.st-lang-switch{position:relative;flex:none;margin-left:auto;}
.st-lang-btn{
  display:flex;align-items:center;gap:6px;
  background:none;border:1px solid rgba(255,255,255,.28);border-radius:3px;
  padding:6px 10px;color:rgba(255,255,255,.85);
  font-family:var(--font-sans);font-size:11.5px;font-weight:700;letter-spacing:.04em;
  cursor:pointer;
}
.st-lang-btn:hover{border-color:rgba(255,255,255,.55);color:#fff;}
.st-lang-code{line-height:1;}
.st-lang-menu{
  list-style:none;display:none;position:absolute;top:100%;right:0;z-index:50;min-width:150px;
  background:var(--paper);border:1px solid var(--line);border-radius:4px;box-shadow:0 10px 30px rgba(0,0,0,.14);
  padding:6px 0;margin:6px 0 0;
}
.st-lang-menu:not([hidden]){display:block;}
.st-lang-menu li{margin:0;}
.st-lang-menu a{display:block;padding:8px 14px;font-family:var(--font-sans);font-size:13px;font-weight:600;letter-spacing:0;color:var(--ink);text-decoration:none;border-bottom:none;}
.st-lang-menu a:hover{background:var(--paper-dim);}
.st-lang-menu a.is-active{font-weight:700;color:var(--accent-dark);}

.st-search-icon{flex:none;color:rgba(255,255,255,.75);display:flex;padding:6px;margin-left:16px;background:none;border:none;cursor:pointer;}
.st-search-icon:hover{color:#fff;}

.st-theme-toggle{flex:none;background:none;border:none;padding:6px;margin:0;cursor:pointer;color:rgba(255,255,255,.75);display:flex;align-items:center;}
.st-theme-toggle:hover{color:#fff;}
.st-theme-toggle .icon-sun{display:none;}
:root[data-theme="dark"] .st-theme-toggle .icon-sun{display:block;}
:root[data-theme="dark"] .st-theme-toggle .icon-moon{display:none;}

.st-subscribe{
  flex:none;
  background:var(--accent);
  color:#1a0f04;
  font-weight:700;
  font-size:13px;
  letter-spacing:.03em;
  padding:10px 20px;
  border-radius:3px;
  border:none;
  cursor:pointer;
}
.st-subscribe:hover{background:var(--accent-dark);color:#fff;}

.st-nav-toggle{
  display:none;flex:none;flex-direction:column;justify-content:center;gap:5px;
  width:38px;height:38px;padding:0;margin:0;border:1px solid var(--line);border-radius:4px;
  background:none;cursor:pointer;
}
.st-nav-toggle span{display:block;width:18px;height:2px;margin:0 auto;background:var(--ink);transition:transform .2s, opacity .2s;}
.st-nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.st-nav-toggle.is-open span:nth-child(2){opacity:0;}
.st-nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* below 1100px the inline nav doesn't have room next to the logo/lang
   switch/icons with 11+ items, so it collapses into the hamburger dropdown */
@media (max-width:1100px){
  /* Tried relying on flex-wrap to drop this panel below the header row, but
     that made the row's OTHER children (search icon, toggle) wrap too on a
     narrow phone (~320-360px), since the logo alone can fill the row at
     that width -- header ended up two broken rows instead of one. Taking
     the dropdown out of flex flow entirely with position:absolute sidesteps
     that: it always renders as its own full-width panel directly under the
     header bar, independent of how tight that row's own children pack. */
  .st-masthead{position:relative;}

  .st-nav-toggle{display:flex;order:4;}

  .st-nav-inline{
    display:none;
    position:absolute;top:100%;left:0;right:0;z-index:60;
    background:var(--paper);border-top:1px solid var(--line);
    padding:6px 16px 10px;
    max-height:calc(100vh - 80px);overflow-y:auto;
  }
  .st-nav-inline.is-open{display:block;}
  .st-nav-inline .menu{flex-direction:column;gap:0;}
  .st-nav-inline .menu li{border-bottom:1px solid var(--line);}
  .st-nav-inline .menu li:last-child{border-bottom:none;}
  .st-nav-inline a{font-family:var(--font-sans);color:var(--ink);display:block;padding:13px 2px;font-size:14px;font-weight:700;letter-spacing:.02em;border-bottom:none;}
  .st-nav-inline a:hover{color:var(--ink);}
  .st-nav-inline .sub-menu{
    display:none;position:static;box-shadow:none;border:none;background:var(--paper-dim);
    border-radius:4px;padding:2px 0;margin:0 0 8px;
  }
  /* On a touchscreen, tapping the toggle can leave :hover "stuck" on it
     (there's no mouse to actually leave), and the desktop rule this menu
     also carries -- ".menu li:hover > .sub-menu{display:block}" -- outranks
     the plain display:none above by specificity. That's what let the
     submenu stay open after the JS class was already toggled back off on a
     second tap. Same selector, redeclared here, cancels it for this
     breakpoint -- but that cancel rule (li:hover, specificity 0,4,1) then
     outranked the .st-submenu-open rule below it (0,4,0) the same way,
     so a stuck :hover after tapping the toggle could keep a submenu the
     JS had just OPENED stuck closed instead. !important makes the JS-driven
     class the one thing that always wins here, in either direction. */
  .st-nav-inline .menu li:hover > .sub-menu{display:none;}
  .st-nav-inline .menu-item-has-children.st-submenu-open > .sub-menu{display:block !important;}
  .st-nav-inline .sub-menu a{padding:10px 14px;font-size:13px;color:var(--ink-soft);}
  .st-nav-inline .menu-item-has-children{position:relative;}
  .st-nav-inline .menu-item-has-children > a::after{display:none;}
  .st-nav-inline .menu-item-has-children > a{padding-right:40px;}
}

@media (max-width:760px){
  .st-masthead .wrap{padding:12px 16px;gap:8px 14px;}
  .st-logo{font-size:21px;gap:9px;}
  .st-logo-mark{height:38px;}
  .st-logo .suffix{font-size:11px;}
  .st-subscribe{padding:9px 14px;font-size:11.5px;}
  .st-search-icon{margin-left:0;}
  .st-lang-switch{margin-left:12px;}
  .st-subscribe{margin-left:auto;}

  .st-utility .wrap{padding:6px 16px;gap:10px;}
  .wind-mini-form input{width:96px;}
}
/* logo + search + hamburger, all flex:none/nowrap, stop fitting one row
   under ~340px (an iPhone SE-class width) -- shrink the wordmark further
   and drop ".news" rather than let the row overflow or wrap into two. */
@media (max-width:360px){
  .st-masthead .wrap{padding:12px 12px;gap:6px 10px;}
  .st-logo{font-size:17px;gap:6px;}
  .st-logo-mark{height:30px;}
  .st-logo .suffix{display:none;}
}

/* ---------------- layout ---------------- */
.st-main{padding:34px 0 10px;}
/* article pages: header now floats over this instead of sitting above it in
   flow, so the content needs enough top padding to clear it and not start
   underneath the (transparent) header */
body.single-post .st-main,
body.single-st_photo .st-main{padding-top:130px;}
.st-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px;align-items:start;}
@media (max-width:980px){.st-layout{grid-template-columns:minmax(0,1fr);}}

/* ---------------- single-post: immersive photographic editorial ----------------
   The post's own featured image runs sharp and unblurred behind the entire
   reading experience (fixed, full-viewport); a soft continuous dark gradient
   — never a boxed panel — keeps type readable. Sidebar modules use a thin,
   low-opacity tint with a hairline border, no backdrop-filter anywhere. */
.st-article-dark{
  --ink:#f2f4f6; --ink-soft:#c3cad2; --line:rgba(255,255,255,.18);
  position:relative; color:var(--ink); padding-bottom:10px;
}
.st-article-dark .st-main{padding-top:0;}
.st-article-bg-fixed{
  position:fixed; top:0; left:0; width:100%; height:100vh; height:100dvh; z-index:-2;
  background-image:var(--article-bg); background-size:cover; background-position:center;
  background-color:#0d1520;
}
.st-article-bg-scrim{
  position:fixed; top:0; left:0; width:100%; height:100vh; height:100dvh; z-index:-1;
  background:linear-gradient(180deg, rgba(4,8,14,.62) 0%, rgba(4,8,14,.38) 22%, rgba(4,8,14,.42) 55%, rgba(4,8,14,.7) 100%);
}
/* dark-theme visitors have a near-black page background by default — if
   the fixed layers above ever leave a hairline gap (mobile browsers
   resizing their chrome mid-scroll), match it here instead of the light
   theme's white, so any gap reads as "same dark tone", not a stray edge */
.st-article-dark{background:#0d1520;}

/* ---------------- single-post: top headline block only — the post's own
   photo behind eyebrow/title/byline/share, with a light transparent dark
   gradient (never a solid block), matching the homepage hero's feel. The
   rest of the page (photo figure, body text, sidebar) stays the plain
   light editorial layout, untouched. ---------------- */
.st-article-top{
  position:relative;
  background-color:#0d1520;
  background-image:var(--article-bg);
  background-size:cover;
  background-position:center 30%;
  padding-top:130px;
}
.st-article-top::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg, rgba(6,9,14,.5) 0%, rgba(6,9,14,.3) 45%, rgba(6,9,14,.6) 100%);
}
.st-article-top-inner{position:relative;z-index:1;max-width:820px;padding-bottom:36px;}
.st-article-top .share-label{color:rgba(255,255,255,.75);}

.st-breadcrumb{font-family:var(--font-sans);font-size:12px;color:var(--ink-soft);margin:0 0 18px;display:flex;gap:8px;flex-wrap:wrap;}
.st-breadcrumb a{color:var(--ink-soft);}
.st-breadcrumb a:hover{color:var(--ink);}
.st-breadcrumb .is-current{color:var(--ink);}
.st-article-head{padding-top:150px;max-width:820px;}
.st-article-title{font-family:var(--font-display);font-weight:700;font-size:clamp(28px,4vw,44px);line-height:1.1;margin:14px 0 14px;color:var(--ink);text-wrap:balance;}
.st-article-deck{font-family:var(--font-sans);font-size:17px;line-height:1.5;color:var(--ink-soft);margin:0 0 18px;max-width:60ch;}
.st-article-byline{margin-bottom:18px;}

.st-article-inline-photo{margin:8px 0 34px;border-radius:6px;overflow:hidden;}
.st-article-inline-photo img{width:100%;height:auto;display:block;}
.st-article-inline-photo figcaption{
  font-family:var(--font-sans);font-size:12px;color:var(--ink-soft);padding:8px 2px 0;
}

.st-article-body{font-family:var(--font-display);font-size:19px;line-height:1.75;color:var(--ink);max-width:68ch;}
.st-article-body a{color:var(--accent);text-decoration:underline;}
.st-article-body figure{margin:22px 0;}
.st-article-body img{border-radius:4px;}
.st-article-section{margin-top:36px;padding-top:26px;border-top:1px solid var(--line);}

/* sidebar rail — thin tinted modules, no blur, photo stays sharp through them */
.st-rail-module{
  background:rgba(7,18,28,.38); border:1px solid rgba(255,255,255,.18); border-radius:6px;
  padding:18px 20px; margin-bottom:20px;
}
.st-rail-tabs{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--line);font-family:var(--font-sans);font-size:11.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;}
.st-rail-tabs span{color:rgba(255,255,255,.45);}
.st-rail-tabs span.is-active{color:#fff;}
.st-rail-full-link{display:block;margin-top:12px;font-family:var(--font-sans);font-size:12px;font-weight:700;color:var(--accent);text-align:right;}
.st-rail-head{font-family:var(--font-sans);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 14px;}
.st-rail-list{list-style:none;margin:0;padding:0;}
.st-rail-list li{border-bottom:1px solid var(--line);padding:12px 0;}
.st-rail-list li:last-child{border-bottom:none;padding-bottom:0;}
.st-rail-item{display:flex;gap:12px;align-items:flex-start;}
.st-rail-thumb{width:64px;height:48px;object-fit:cover;border-radius:3px;flex:none;}
.st-rail-item-text{display:flex;flex-direction:column;gap:3px;}
.st-rail-item-cat{font-family:var(--font-sans);font-size:9.5px;font-weight:700;letter-spacing:.05em;color:var(--accent);}
.st-rail-item-title{font-family:var(--font-display);font-weight:700;font-size:14px;line-height:1.3;color:#fff;}
.st-rail-item-date{font-family:var(--font-sans);font-size:10.5px;color:var(--ink-soft);}
/* the sidebar's own existing panels (race standings) drop their opaque
   card look here so they read as part of the same tinted rail module */
.st-rail-module .panel{background:transparent;border:none;margin-bottom:0;}
.st-rail-module .panel-head{background:transparent !important;padding-left:0;}
@media (max-width:700px){
  .st-article-head{padding-top:110px;}
}
/* TEST — sidebar no longer sticks/scrolls independently, so every ad slot
   in it scrolls into view with the rest of the page instead of hiding
   inside a short fixed-height box. Restore the commented rule below to
   bring the old sticky behaviour back once ad testing is done. */
.st-layout > aside{position:static;}
/* .st-layout > aside{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow-y:auto;} */

.eyebrow{
  display:inline-block;
  font-size:11px;font-weight:800;letter-spacing:.08em;
  color:var(--accent-dark);text-transform:uppercase;
  margin-bottom:10px;
}
.eyebrow.cat-racing{color:var(--cat-racing);}
.eyebrow.cat-cruising{color:var(--cat-cruising);}
.eyebrow.cat-gear{color:var(--cat-gear);}
.eyebrow.cat-ocean-eco{color:var(--cat-ocean-eco);}
.eyebrow.cat-marinas{color:var(--cat-marinas);}
.eyebrow.cat-industry{color:var(--cat-industry);}
.eyebrow.cat-columns{color:var(--cat-columns);}
.eyebrow.cat-feature{color:var(--cat-feature);}
.eyebrow.cat-news{color:var(--cat-news);}
.eyebrow.cat-guides{color:var(--cat-guides);}
.eyebrow.cat-sailgp{color:var(--cat-sailgp);}
.eyebrow.cat-classes{color:var(--cat-classes);}
.eyebrow.cat-regattas{color:var(--cat-regattas);}
.eyebrow.cat-offshore{color:var(--cat-offshore);}
.eyebrow.cat-people{color:var(--cat-people);}
.eyebrow.cat-league{color:var(--cat-league);}

/* hero */
.st-hero{border-bottom:1px solid var(--line);padding-bottom:28px;margin-bottom:28px;}
.st-hero figure{margin:0 0 18px;border-radius:4px;overflow:hidden;background:var(--paper-dim);}
.st-hero .hero-art{width:100%;aspect-ratio:21/8;max-height:360px;object-fit:cover;display:block;}
@media (max-width:700px){.st-hero .hero-art{aspect-ratio:16/10;max-height:260px;}}
.st-hero h1{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(28px,4vw,44px);
  line-height:1.05;
  margin:0 0 14px;
  text-wrap:balance;
}
.st-hero .dek{font-family:var(--font-display);font-size:19px;line-height:1.55;color:var(--ink-soft);max-width:60ch;margin:0 0 14px;}
.byline{font-family:var(--font-sans);font-size:12px;font-weight:500;color:var(--ink-soft);display:flex;gap:8px;flex-wrap:wrap;}

/* ---------------- article share row ---------------- */
.share-row{position:relative;display:flex;align-items:center;gap:8px;margin:2px 0 24px;}
.share-label{font-family:var(--font-mono);font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin-right:2px;}
.share-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;
  background:var(--paper-dim);color:var(--ink-soft);border:none;cursor:pointer;
  transition:background .15s,color .15s;
}
.share-btn:hover{background:var(--accent);color:#fff;}
.share-toast{
  font-family:var(--font-sans);font-size:12px;color:var(--ink-soft);
  margin-left:4px;white-space:nowrap;
}
@media (max-width:480px){
  .share-toast{position:absolute;left:0;top:100%;margin:6px 0 0;white-space:normal;}
}

/* editor's-picks strip — compact, text-led, deliberately NOT another row of
   big photo cards, so it reads as its own thing between the headline and
   "Latest News" rather than more of the same. */
.st-picks-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:0;
  margin:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.st-picks-item{
  padding:20px;border-left:1px solid var(--line);
  display:flex;align-items:flex-start;gap:14px;
}
.st-picks-item:first-child{border-left:none;}
/* only the first item carries a photo -- one deliberate point of emphasis
   instead of four identical boxes, which is what read as templated/AI-made */
.st-picks-thumb{flex:none;width:110px;aspect-ratio:4/3;border-radius:4px;overflow:hidden;background:var(--paper-dim);display:block;}
.st-picks-thumb .card-art{width:100%;height:100%;object-fit:cover;display:block;}
.st-picks-text{display:flex;flex-direction:column;gap:5px;min-width:0;}
.st-picks-item h3{font-family:var(--font-display);font-weight:700;font-size:15px;line-height:1.25;margin:0;color:var(--ink);}
.st-picks-item p{font-family:var(--font-sans);font-size:12px;line-height:1.45;color:var(--ink-soft);margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.st-picks-link{font-family:var(--font-sans);font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent-dark);margin-top:1px;}
.st-picks-link:hover{color:var(--accent);}
@media (max-width:900px){.st-picks-strip{grid-template-columns:repeat(2,1fr);}
  .st-picks-item:nth-child(2){border-left:none;}
}
@media (max-width:700px){.st-picks-strip{grid-template-columns:1fr;}
  .st-picks-item{border-left:none;border-top:1px solid var(--line);}
  .st-picks-item:first-child{border-top:none;}
}

/* secondary row — three smaller stories directly under the single lead */
.st-secondary-row{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin:22px 0 0;padding-bottom:22px;border-bottom:1px solid var(--line);}
.st-secondary-card figure{margin:0 0 10px;border-radius:4px;overflow:hidden;background:var(--paper-dim);aspect-ratio:16/10;}
.st-secondary-card .card-art{width:100%;height:100%;object-fit:cover;display:block;}
.st-secondary-card h3{font-family:var(--font-display);font-weight:700;font-size:15.5px;line-height:1.3;margin:0;color:var(--ink);}
@media (max-width:900px){.st-secondary-row{grid-template-columns:repeat(2,1fr);}}
@media (max-width:700px){.st-secondary-row{grid-template-columns:1fr;}}

/* "Latest News" heading row -- title + "All News" link sharing one baseline,
   with a rule underneath, instead of a bare centered heading. */
.st-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:26px 0 18px;padding-bottom:10px;border-bottom:2px solid var(--ink);}
.st-section-head-link{font-family:var(--font-sans);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);white-space:nowrap;}
.st-section-head-link:hover{color:var(--accent-dark);}

/* secondary grid */
.st-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;}
@media (max-width:600px){.st-grid{grid-template-columns:1fr;}}
.st-card figure{margin:0 0 12px;border-radius:4px;overflow:hidden;background:var(--paper-dim);}
.st-card .card-art{width:100%;height:auto;display:block;}
.st-card h3{font-family:var(--font-display);font-weight:800;font-size:19px;line-height:1.18;margin:0 0 8px;}
.st-card p{font-family:var(--font-display);color:var(--ink-soft);font-size:15px;line-height:1.55;margin:0 0 10px;max-width:44ch;}

/* ---------------- "More Stories": photo-forward editorial lead + list,
   no card boxes/borders — one large story, smaller ones stacked beside it ---------------- */
.st-more-stories{display:grid;grid-template-columns:1.6fr 1fr;gap:40px;align-items:start;}
.st-more-lead-figure{display:block;position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;border-radius:4px;background:var(--paper-dim);margin-bottom:16px;}
.st-more-lead-figure .card-art{width:100%;height:100%;object-fit:cover;display:block;}
.st-more-lead h3{margin:0 0 10px;}
.st-more-lead h3 a{font-family:var(--font-display);font-weight:800;font-size:clamp(22px,2.4vw,30px);line-height:1.15;color:var(--ink);}
.st-more-lead p{font-family:var(--font-display);color:var(--ink-soft);font-size:16px;line-height:1.6;margin:0 0 10px;max-width:58ch;}

.st-more-side{display:flex;flex-direction:column;}
.st-more-item{display:flex;gap:14px;padding:18px 0;border-top:1px solid var(--line);}
.st-more-item:first-child{border-top:none;padding-top:0;}
.st-more-item-figure{flex:none;width:112px;height:80px;border-radius:3px;overflow:hidden;background:var(--paper-dim);display:block;}
.st-more-item-figure .card-art{width:100%;height:100%;object-fit:cover;display:block;}
.st-more-item-text{flex:1;min-width:0;}
.st-more-item-text h3{margin:2px 0 4px;}
.st-more-item-text h3 a{font-family:var(--font-display);font-weight:700;font-size:15px;line-height:1.3;color:var(--ink);}
.st-more-item-text .byline{margin:0;font-size:11px;}
@media (max-width:760px){
  .st-more-stories{grid-template-columns:1fr;gap:24px;}
}

/* category-archive lead: the section's top story, run big before the grid.
   Same capped-photo + overlaid-headline shape as the homepage hero, so a
   photo can never balloon past the frame and push the headline off-screen. */
.archive-lead{display:block;margin-bottom:32px;padding-bottom:28px;border-bottom:2px solid var(--ink);}
.archive-lead-media{
  display:block;position:relative;width:100%;aspect-ratio:3/2;max-height:420px;
  overflow:hidden;border-radius:4px;background:var(--surface-fixed-dark);margin-bottom:18px;
}
.archive-lead-media .card-art{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
.archive-lead-overlay{
  position:absolute;left:0;right:0;bottom:0;padding:16px 22px 18px;
  background:linear-gradient(to top, rgba(6,9,12,.9) 0%, rgba(6,9,12,.6) 65%, rgba(6,9,12,0) 100%);
  color:#fff;
}
/* neutral, NYT-style kicker on a photo — a saturated section color read as
   too loud sitting directly on an image, so this is plain white with a
   short rule instead, and the section name still shows in full elsewhere
   (category pages, card grids) where it sits on plain paper. */
.archive-lead-overlay .eyebrow{
  margin-bottom:0;color:#fff;text-transform:none;display:inline-flex;align-items:center;gap:9px;
}
.archive-lead-overlay .eyebrow::before{content:"";display:inline-block;width:24px;height:2px;background:#fff;}
.archive-lead-overlay h2{
  font-family:var(--font-headline-photo);font-weight:700;color:#fff;
  font-size:clamp(21px,3vw,34px);line-height:1.14;letter-spacing:0;margin:4px 0 0;text-wrap:balance;max-width:56ch;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.archive-lead-overlay h2 a:hover{text-decoration:underline;}
.archive-lead-body p{font-family:var(--font-display);font-size:18px;line-height:1.6;color:var(--ink-soft);max-width:66ch;margin:0 0 12px;}
@media (max-width:600px){
  .archive-lead-media{aspect-ratio:16/10;max-height:260px;}
  .archive-lead-overlay{padding:12px 16px 14px;}
  .archive-lead-overlay h2{
    font-size:clamp(16px,4vw,22px);line-height:1.22;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
}

/* aside: live tracker */
aside .panel{border:1px solid var(--line);border-radius:4px;overflow:hidden;margin-bottom:24px;}
.panel-head{
  background:var(--surface-fixed-dark);color:#fff;
  padding:12px 16px;
  display:flex;align-items:center;gap:8px;
}
.panel-head .live-dot{width:7px;height:7px;border-radius:50%;background:var(--live);flex:none;}
.panel-head h4{font-size:13px;font-weight:800;letter-spacing:.03em;margin:0;text-transform:uppercase;}
.panel-head .sub{font-family:var(--font-mono);font-size:10.5px;color:#9aa3ad;margin-left:auto;}
.standings{width:100%;border-collapse:collapse;}
.standings td{padding:10px 16px;font-size:12.5px;border-bottom:1px solid var(--line);}
.standings tr:last-child td{border-bottom:none;}
.standings td:first-child{width:30px;text-align:center;}
.standings td.team{font-weight:600;}
.standings td.team .flag{
  display:inline-block;font-family:var(--font-mono);font-size:9.5px;font-weight:700;
  background:var(--paper-dim);color:var(--ink-soft);padding:1px 5px;border-radius:2px;margin-right:6px;
}
.standings td.gap{text-align:right;font-family:var(--font-mono);color:var(--accent-dark);font-weight:600;}

/* Rank number, plain -- a small medal-colored circle for 1st/2nd/3rd is
   the only color cue; no per-row background tint or colored side-bar,
   which read as a gamified sports-app badge rather than an editorial
   standings table next to the rest of the site's typography. */
.standings .rank-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:50%;
  font-family:var(--font-sans);font-weight:700;font-size:11px;color:var(--ink-soft);
}
.panel-carousel .standings tr:nth-child(1) .rank-num{background:#d4af37;color:#241c00;}
.panel-carousel .standings tr:nth-child(2) .rank-num{background:#9aa3ad;color:#1c1e20;}
.panel-carousel .standings tr:nth-child(3) .rank-num{background:#b5723f;color:#210f00;}

/* coastal-weather sidebar grid: four real venues, icon + temp + wind each,
   instead of one rotating number — more to look at, still all live data */
.weather-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);}
.weather-card{background:var(--paper);padding:16px 14px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;}
.weather-card svg{color:var(--accent-dark);margin-bottom:3px;}
.weather-card-place{font-family:var(--font-mono);font-size:10.5px;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.03em;}
.weather-card-temp{font-family:var(--font-display);font-weight:800;font-size:22px;color:var(--ink);line-height:1;}
.weather-card-wind{font-family:var(--font-mono);font-size:11px;color:var(--accent-dark);}
.panel-foot{
  display:block;padding:12px 16px;font-size:12px;font-weight:700;color:var(--accent-dark);
  border-top:1px solid var(--line);
}
.panel-foot:hover{background:var(--paper-dim);}

/* rotating sidebar tracker: one series shown at a time, cycling on a timer */
.panel-carousel{position:relative;}
.panel-slide{display:none;}
.panel-slide.is-active{display:block;animation:panel-fade .4s ease;}
@keyframes panel-fade{from{opacity:0;}to{opacity:1;}}
.panel-dots{display:flex;justify-content:center;gap:6px;padding:10px 0;background:var(--paper-dim);border-top:1px solid var(--line);}
.panel-dot{width:6px;height:6px;border-radius:50%;background:var(--line);cursor:pointer;}
.panel-dot.is-active{background:var(--accent);}
@media (prefers-reduced-motion:reduce){
  .panel-slide.is-active{animation:none;}
}

/* ---------------- pull-quote module: real lines from real columns ---------------- */
.quote-carousel{
  margin:34px 0;padding:38px 0;
  border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);
  background:var(--paper-dim);
}
.quote-carousel .panel-dots{background:transparent;border-top:none;padding-top:22px;}
.quote-block{display:block;max-width:70ch;margin:0 auto;padding:0 24px;text-align:center;}
.quote-block blockquote{
  margin:0;font-family:var(--font-display);font-weight:600;color:var(--ink);
  font-size:clamp(21px,3vw,30px);line-height:1.36;text-wrap:balance;
}
.quote-block blockquote::before{content:"";}
.quote-block cite{
  display:block;margin-top:18px;font-family:var(--font-mono);font-style:normal;
  font-size:12px;letter-spacing:.03em;color:var(--accent-dark);
}
.quote-block:hover blockquote{color:var(--ink);}

/* ---------------- logbook: a real photo run as a day's log entry ---------------- */
.logbook{margin:34px 0;padding:26px;border:1px solid var(--line);border-radius:4px;background:var(--paper);}
.logbook-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.logbook-stamp{
  font-family:var(--font-mono);font-weight:700;font-size:11px;letter-spacing:.14em;
  color:var(--accent-dark);border:1.5px solid var(--accent-dark);border-radius:2px;
  padding:3px 8px;transform:rotate(-2deg);
}
.logbook-date{font-family:var(--font-mono);font-size:12.5px;color:var(--ink-soft);letter-spacing:.03em;}
.logbook-photo{display:block;border-radius:3px;overflow:hidden;margin-bottom:16px;}
.logbook-photo .card-art{width:100%;height:auto;display:block;}
.logbook-entry p{
  font-family:var(--font-mono);font-size:13px;line-height:1.7;color:var(--ink);
  max-width:70ch;margin:0 0 14px;
}

/* ---------------- Golden Globe Race live tracker embed ---------------- */
.ggr-tracker-frame{width:100%;height:340px;background:var(--paper-dim);}
.ggr-tracker-frame iframe{width:100%;height:100%;border:none;display:block;}
.weather-map-frame{width:100%;height:280px;background:var(--paper-dim);}
.weather-map-frame iframe{width:100%;height:100%;border:none;display:block;}

/* ---------------- nautical term of the day ---------------- */
.term-body{padding:18px 16px;}
.term-word{font-family:var(--font-display);font-weight:800;font-size:19px;color:var(--ink);display:block;margin-bottom:6px;}
.term-body p{font-size:13.5px;line-height:1.6;color:var(--ink-soft);margin:0;}

/* ---------------- moon phase ---------------- */
.moon-body{padding:16px;display:flex;align-items:center;gap:14px;}
.moon-body svg{flex:none;}
.moon-phase-name{font-family:var(--font-display);font-weight:800;font-size:16px;color:var(--ink);}
.moon-illum{font-family:var(--font-mono);font-size:11.5px;color:var(--accent-dark);margin-top:3px;}

.widget_list{list-style:none;margin:0;padding:0;}
.widget_list li{padding:12px 16px;border-bottom:1px solid var(--line);font-size:13px;}
.widget_list li:last-child{border-bottom:none;}
.widget_list li a{font-family:var(--font-display);font-weight:700;font-size:15px;line-height:1.3;}
.widget_list li a:hover{color:var(--accent-dark);}
.widget_list .cat{font-family:var(--font-mono);font-size:10px;color:var(--accent-dark);letter-spacing:.04em;display:block;margin-bottom:4px;}
.widget_list .dek{font-family:var(--font-sans);font-size:12.5px;line-height:1.5;color:var(--ink-soft);margin:5px 0;}
.widget_list .meta{font-family:var(--font-mono);font-size:10.5px;color:#9aa3ad;}

.upcoming-races-list{list-style:none;margin:0;padding:0;}
.upcoming-races-list li{border-bottom:1px solid var(--line);}
.upcoming-races-list li:last-child{border-bottom:none;}
.upcoming-races-list a{display:flex;align-items:baseline;gap:10px;padding:11px 16px;}
.upcoming-races-list a:hover{background:var(--paper-dim);}
.upcoming-races-date{flex:none;font-family:var(--font-mono);font-size:10.5px;font-weight:700;color:var(--accent-dark);letter-spacing:.02em;width:42px;}
.upcoming-races-name{font-family:var(--font-display);font-weight:700;font-size:13px;color:var(--ink);line-height:1.3;}

/* footer */
.st-footer{background:#0a0d11;color:#c8cdd3;margin-top:40px;}
.st-footer .wrap{padding:32px 20px 28px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.st-footer .st-logo{color:#fff;}
.st-footer .st-logo .suffix{color:#8a919a;}
.st-footer p{font-size:12.5px;color:#8a919a;max-width:40ch;line-height:1.6;}
.st-footer nav{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;font-weight:700;letter-spacing:.03em;color:#c8cdd3;}
.st-footer nav a:hover{color:var(--accent);}
.st-footer .fine{
  border-top:1px solid #262e37;padding:16px 0;font-family:var(--font-mono);font-size:10.5px;color:#6b727c;
}
.st-footer-secondary{border-top:1px solid #262e37;}
.st-footer-secondary .wrap{display:flex;gap:18px;flex-wrap:wrap;padding:14px 20px;font-size:11.5px;font-weight:600;}
.st-footer-secondary a{color:#8a919a;}
.st-footer-secondary a:hover{color:#fff;}

/* about / masthead pages */
.st-section{margin:0 0 42px;}
.st-section h2{font-family:var(--font-display);font-weight:800;font-size:21px;margin:0 0 14px;text-wrap:balance;}
.st-section p{font-size:15.5px;line-height:1.7;color:var(--ink-soft);max-width:70ch;margin:0 0 14px;}
.st-cover-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.st-cover-grid .item{padding:18px 0;border-top:2px solid var(--ink);}
.st-cover-grid .item h4{font-family:var(--font-display);font-weight:800;font-size:16px;margin:0 0 6px;}
.st-cover-grid .item p{font-size:13.5px;line-height:1.5;color:var(--ink-soft);margin:0;}
.st-standards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px;}
.st-standards li{padding-left:36px;position:relative;font-size:15px;line-height:1.6;color:var(--ink-soft);max-width:68ch;}
.st-standards li strong{display:block;color:var(--ink);font-family:var(--font-display);font-weight:700;font-size:16px;margin-bottom:3px;}
.st-standards li::before{content:counter(standard);counter-increment:standard;position:absolute;left:0;top:1px;font-family:var(--font-mono);font-size:12px;font-weight:700;color:var(--accent-dark);}
.st-standards{counter-reset:standard;}
.st-team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.team-card{padding:20px;border:1px solid var(--line);border-radius:4px;background:var(--paper);}
.team-card h4{font-family:var(--font-display);font-weight:800;font-size:17px;margin:0 0 3px;}
.team-card .role{font-family:var(--font-mono);font-size:10px;color:var(--accent-dark);text-transform:uppercase;letter-spacing:.04em;margin:0 0 11px;display:block;}
.team-card p{font-size:13.5px;line-height:1.55;color:var(--ink-soft);margin:0;}
.colophon-table{width:100%;border-collapse:collapse;}
.colophon-table td{padding:13px 0;border-bottom:1px solid var(--line);font-size:14.5px;vertical-align:top;line-height:1.5;}
.colophon-table td:first-child{font-family:var(--font-mono);font-size:11px;color:var(--accent-dark);text-transform:uppercase;letter-spacing:.03em;width:200px;}
.colophon-table tr:last-child td{border-bottom:none;}
.colophon-note{font-family:var(--font-mono);font-size:11.5px;color:#9aa3ad;margin:10px 0 0;}
@media (max-width:760px){
  .st-cover-grid, .st-team-grid{grid-template-columns:1fr;}
  .colophon-table tr{display:block;padding:12px 0;border-bottom:1px solid var(--line);}
  .colophon-table tr:last-child{border-bottom:none;}
  .colophon-table td{display:block;border-bottom:none;padding:0;}
  .colophon-table td:first-child{width:auto;margin-bottom:4px;}
}

/* ---------------- world wind map ---------------- */
.wind-map-wrap{position:relative;border:1px solid var(--line);border-radius:6px;overflow:hidden;margin:0 0 34px;background:var(--paper-dim);max-height:480px;}
.wind-map{display:block;width:100%;height:480px;}
@media (max-width:600px){.wind-map-wrap{max-height:340px;}.wind-map{height:340px;}}
.wind-map-pin{cursor:pointer;}
.wind-map-pin circle:last-child{transition:r .15s ease;}
.wind-map-pin-pulse{
  transform-box:fill-box;transform-origin:center;
  animation:st-pin-pulse 2.2s ease-out infinite;
}
@keyframes st-pin-pulse{
  0%{transform:scale(1);opacity:.55;}
  100%{transform:scale(2.6);opacity:0;}
}
@media (prefers-reduced-motion:reduce){.wind-map-pin-pulse{animation:none;display:none;}}
.wind-map-pin:hover circle:last-child,
.wind-map-pin:focus circle:last-child,
.wind-map-pin.is-active circle:last-child{r:21;fill:var(--accent);}
.wind-map-pin:focus{outline:none;}
.wind-map-info{
  position:absolute;left:14px;bottom:14px;
  background:var(--paper);border:1px solid var(--line);border-radius:4px;
  padding:10px 14px;font-family:var(--font-sans);font-size:13px;
  display:flex;flex-direction:column;gap:2px;box-shadow:0 6px 18px rgba(0,0,0,.08);
  min-width:180px;
}
.wind-map-info strong{font-family:var(--font-display);font-size:15px;color:var(--ink);}
.wind-map-info-hint{color:var(--ink-soft);font-size:12.5px;}
.wind-map-info-sub{font-family:var(--font-mono);font-size:11.5px;color:var(--accent-dark);}
.wind-map-info-cams{
  display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:7px 12px;
  font-family:var(--font-mono);font-size:11.5px;font-weight:700;letter-spacing:.02em;
  color:#fff;background:var(--accent-dark);border-radius:3px;
}
.wind-map-info-cams:hover{background:var(--ink);}
@media (max-width:600px){
  .wind-map-info{left:8px;bottom:8px;padding:8px 10px;min-width:140px;}
}

/* ---------------- marketplace listing submission form ---------------- */
.listing-form{display:flex;flex-direction:column;gap:18px;max-width:520px;margin:0 0 40px;}
.listing-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink);}
.listing-form input[type="text"],
.listing-form input[type="email"],
.listing-form input[type="tel"],
.listing-form select,
.listing-form textarea{
  font-family:var(--font-sans);font-size:14.5px;font-weight:400;color:var(--ink);
  border:1px solid var(--line);border-radius:4px;padding:10px 12px;background:var(--paper);
}
.listing-form textarea{resize:vertical;}
.listing-form input:focus,
.listing-form select:focus,
.listing-form textarea:focus{outline:2px solid var(--accent);outline-offset:0;}
.listing-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;}
.listing-form-grid label:last-child{grid-column:1/-1;}
@media (max-width:520px){.listing-form-grid{grid-template-columns:1fr;}}
.listing-form-hint{font-weight:400;font-size:12px;color:var(--ink-soft);}
p.listing-form-hint{margin:-6px 0 0;}

/* weather search engine */
.wx-search{background:var(--surface-fixed-dark);border-radius:6px;padding:34px 30px;margin:0 0 34px;}
.wx-search form{display:flex;gap:10px;}
.wx-search input[type="text"]{
  flex:1;min-width:0;background:#fff;border:none;border-radius:4px;
  padding:15px 18px;font-family:var(--font-mono);font-size:15px;color:var(--ink);
}
.wx-search input[type="text"]::placeholder{color:#9aa3ad;}
.wx-search input[type="text"]:focus{outline:2px solid var(--accent);outline-offset:0;}
.wx-search form button{
  background:var(--accent);color:#1a0f04;border:none;border-radius:4px;
  padding:0 26px;font-family:var(--font-sans);font-weight:700;font-size:13px;
  letter-spacing:.03em;text-transform:uppercase;cursor:pointer;flex:none;
}
.wx-search form button:hover{background:#ffab5c;}
.wx-chips{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 0;}
.wx-chip{
  background:transparent;border:1px solid #3a4450;color:#c8cdd3;border-radius:20px;
  padding:6px 14px;font-family:var(--font-mono);font-size:11.5px;cursor:pointer;
}
.wx-chip:hover{border-color:var(--accent);color:var(--accent);}
.wx-status{font-family:var(--font-mono);font-size:12.5px;color:#8a929c;margin:16px 0 0;min-height:16px;}
.wx-status.wx-error{color:#ff8a75;}

.wx-result{border:1px solid var(--line);border-radius:6px;padding:30px 34px;margin:0 0 30px;display:none;}
.wx-result.is-visible{display:block;}
.wx-result-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:22px;}
.wx-result-head h3{font-family:var(--font-display);font-weight:800;font-size:24px;margin:0;}
.wx-result-head .wx-time{font-family:var(--font-mono);font-size:11.5px;color:#9aa3ad;}
.wx-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.wx-stat{text-align:left;}
.wx-stat .label{font-family:var(--font-mono);font-size:10.5px;color:var(--accent-dark);text-transform:uppercase;letter-spacing:.04em;display:block;margin-bottom:8px;}
.wx-stat .value{font-family:var(--font-display);font-weight:800;font-size:30px;color:var(--ink);line-height:1;}
.wx-stat .unit{font-family:var(--font-sans);font-size:14px;font-weight:600;color:var(--ink-soft);margin-left:3px;}
.wx-stat .sub{font-family:var(--font-mono);font-size:12px;color:#9aa3ad;margin-top:6px;}
.wx-arrow{display:inline-block;transition:transform .3s;color:var(--accent-dark);}
@media (max-width:760px){
  .wx-search{padding:24px 20px;}
  .wx-search form{flex-direction:column;}
  .wx-search form button{padding:14px;}
  .wx-stats{grid-template-columns:1fr 1fr;}
}

/* ---------------- race calendar countdown ---------------- */
.countdown{font-family:var(--font-mono);font-size:12.5px;font-weight:700;color:var(--accent-dark);font-variant-numeric:tabular-nums;}
.countdown.countdown-live{color:var(--live);text-transform:uppercase;letter-spacing:.04em;font-size:11px;}

/* ---------------- ad slots ---------------- */
.st-ad:empty, .st-ad-header:empty, .st-ad-incontent:empty{display:none;}
.st-ad{
  --ad-h: 90px;
  width:100%;
  max-width:100%;
  height:var(--ad-h);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  background:var(--paper-dim);
  border:1px dashed #c7cbd1;
  border-radius:3px;
  color:#9aa3ad;
  overflow:hidden;
}
.st-ad-label{font-family:var(--font-mono);font-size:10px;font-weight:700;letter-spacing:.1em;}
.st-ad-size{font-family:var(--font-mono);font-size:10.5px;color:#b7bdc4;}

/* TEST-ONLY mock ad creatives — see st_mock_ad_brands() in functions.php.
   Solid border + brand type instead of the plain dashed placeholder, so a
   filled slot previews like a real banner would. Remove alongside that
   function to go back to the empty dashed boxes. */
.st-ad-mock{
  position:relative;border:none;background:#11161c;gap:0;border-radius:4px;
  justify-content:flex-end;align-items:flex-start;padding:14px;box-sizing:border-box;
}
#st-ad-hero-top{margin-bottom:14px;}
.st-ad-mock-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}
.st-ad-mock-scrim{position:absolute;inset:0;background:linear-gradient(to top, rgba(10,13,17,.92) 0%, rgba(10,13,17,.55) 45%, rgba(10,13,17,.05) 75%);}
.st-ad-mock .st-ad-label{position:relative;color:rgba(255,255,255,.6);font-size:9px;align-self:flex-start;}
.st-ad-mock-brand{position:relative;align-self:flex-start;margin-top:auto;font-family:var(--font-display);font-weight:800;font-size:clamp(20px,7cqw,30px);color:#fff;letter-spacing:.01em;text-wrap:balance;}
.st-ad-mock-line{position:relative;align-self:flex-start;font-family:var(--font-sans);font-size:12px;color:rgba(255,255,255,.78);}
.st-ad-mock .st-ad-size{display:none;}

/* TEST-ONLY scrolling ad strip under the hero — reuses the header ticker's
   marquee (.ticker-track/@keyframes st-ticker-scroll), just a shorter,
   lighter bar. Delete alongside st_render_ad_ticker() in functions.php. */
/* TEST-ONLY leaderboard banner, right under the masthead — see
   st_render_leaderboard_ad() in functions.php. Light, product-ad feel
   (photo strip + wordmark) instead of the dark photo cards used elsewhere,
   closer to how real sailing-news sites run their top banner. */
.st-ad-leaderboard{--lb-h:200px;position:relative;height:var(--lb-h);overflow:hidden;border-bottom:1px solid var(--line);}
.st-ad-leaderboard-slide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease;}
.st-ad-leaderboard-slide.active{opacity:1;}
.st-ad-leaderboard-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}
.st-ad-leaderboard-scrim{position:absolute;inset:0;background:linear-gradient(100deg, rgba(10,13,17,.88) 0%, rgba(10,13,17,.6) 40%, rgba(10,13,17,.1) 75%);}
.st-ad-leaderboard-slide .wrap{position:relative;display:flex;align-items:center;justify-content:center;height:100%;max-width:1320px;margin:0 auto;text-align:center;}
.st-ad-leaderboard-text{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0 26px;}
.st-ad-leaderboard .st-ad-label{font-family:var(--font-mono);font-size:9px;font-weight:700;letter-spacing:.1em;color:rgba(255,255,255,.6);}
.st-ad-leaderboard-brand{font-family:var(--font-display);font-weight:800;font-size:clamp(16px,2vw,22px);color:#fff;letter-spacing:.01em;}
.st-ad-leaderboard-line{font-family:var(--font-sans);font-size:clamp(11px,1vw,13px);color:rgba(255,255,255,.8);}
@media (max-width:700px){
  .st-ad-leaderboard{height:calc(var(--lb-h) * 0.55);}
  .st-ad-leaderboard-line{display:none;}
}

.st-ad-header{margin:14px 0;}
.st-ad-header .st-ad{max-width:970px;}

.st-ad-incontent{margin:26px 0;}

aside .st-ad{margin-bottom:24px;}

.st-ad-anchor{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  background:var(--surface-fixed-dark);
  border-top:1px solid #262e37;
  padding:8px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}
.st-ad-anchor .st-ad{background:#131a21;border-color:#2c343d;color:#7c8590;max-width:970px;}
.st-ad-anchor .st-ad-label{color:#9aa3ad;}
.st-ad-anchor-close{
  flex:none;
  width:22px;height:22px;
  border-radius:50%;
  border:1px solid #2c343d;
  background:transparent;
  color:#9aa3ad;
  font-size:13px;
  line-height:1;
  cursor:pointer;
}
.st-ad-anchor-close:hover{color:#fff;border-color:#4a545f;}
body.has-anchor-ad{padding-bottom:74px;}

/* ---------------- hero slider + overlay top stories ---------------- */
/* standard news-site hero: fixed box, photo fills it (object-fit:cover).
   object-position is centered with a slight upward bias since portraits
   crop worse on the bottom (feet/water) than the top; crops are mild
   because the box (16/9) is close to how most editorial photos are shot. */
.st-hero-static{
  position:relative;width:100vw;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
  aspect-ratio:16/9;min-height:360px;max-height:580px;overflow:hidden;border-radius:0;
  background:#0d1520;
}
.hero-bg-link{position:absolute;inset:0;display:block;}
.hero-bg-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 38%;}

.hero-slide{
  position:absolute;inset:0;display:grid;grid-template-columns:1fr;align-items:end;
  opacity:0;transition:opacity .9s ease;z-index:0;pointer-events:none;
}
.hero-slide.is-active{opacity:1;z-index:1;pointer-events:auto;}
.hero-slide::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(6,9,14,.32) 0%,rgba(6,9,14,.02) 36%,rgba(6,9,14,.02) 54%,rgba(6,9,14,.58) 74%,rgba(6,9,14,.86) 100%),
    linear-gradient(0deg,rgba(6,9,14,.92) 0%,rgba(6,9,14,.22) 44%,transparent 70%);
}
@media (prefers-reduced-motion:reduce){.hero-slide{transition:none;}}
.hero-main-body{position:relative;z-index:1;padding:5% 44px 34px;color:#fff;max-width:640px;}
.hero-eyebrow{display:flex;align-items:center;gap:10px;font-family:var(--font-sans);font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#fff;margin-bottom:14px;}
.hero-eyebrow::after{content:'';flex:1;max-width:40px;height:1px;background:rgba(255,255,255,.5);}
.hero-main-body h1{margin:0 0 14px;}
.hero-main-body h1 a{font-family:var(--font-display);font-weight:700;font-size:clamp(28px,3.6vw,46px);line-height:1.06;color:#fff;text-wrap:balance;}
.hero-main-body p{font-family:var(--font-sans);font-size:15px;line-height:1.6;color:#e2e5e8;margin:0 0 18px;max-width:48ch;}
.hero-cta{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#12181f;font-family:var(--font-sans);font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:11px 18px;}

.hero-top-stories{
  position:absolute;top:0;right:0;bottom:0;width:400px;z-index:3;
  padding:130px 40px 24px;display:flex;flex-direction:column;
}
.hero-top-stories-head{font-family:var(--font-sans);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#c7ccd4;display:flex;align-items:center;gap:10px;margin-bottom:2px;}
.hero-top-stories-head::after{content:'';flex:1;height:1px;background:rgba(255,255,255,.25);}
.hero-story-row{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.18);cursor:pointer;transition:opacity .15s ease;}
.hero-story-row:last-of-type{border-bottom:none;}
.hero-story-row:hover{opacity:.8;}
.hero-story-num{font-family:var(--font-display);font-weight:700;font-size:14px;color:rgba(255,255,255,.55);flex:none;width:20px;transition:color .15s ease;}
.hero-story-row.is-active .hero-story-num{color:var(--accent);}
.hero-story-mid{flex:1;}
.hero-story-mid h3{font-family:var(--font-sans);font-weight:700;font-size:13.5px;line-height:1.3;margin:0;color:#fff;}
.hero-story-thumb{width:68px;height:50px;object-fit:cover;flex:none;}
.hero-more-stories{margin-top:12px;padding-top:4px;font-family:var(--font-sans);font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fff;text-align:right;}
@media (max-width:900px){
  .st-hero-static{aspect-ratio:auto;min-height:460px;}
  .hero-slide{grid-template-columns:1fr;}
  .hero-top-stories{display:none;}
  .hero-main-body{padding:0 20px 20px;max-width:none;}
}

/* mobile-only: hero becomes a native swipe/scroll-snap slider, one full-width story per screen */
@media (max-width:700px){
  .st-hero-static{
    /* was 4/3 -- noticeably taller/narrower than the source photos (shot
       closer to 16/9), so object-fit:cover was cropping a lot more off the
       sides on phones than the same photo gets on desktop. Closer to the
       source ratio here keeps most of the frame in view. */
    aspect-ratio:3/2;height:auto;min-height:0;max-height:420px;
    display:flex;overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .st-hero-static::-webkit-scrollbar{display:none;}
  .hero-slide{
    position:relative;display:block;flex:0 0 100%;width:100%;height:100%;
    opacity:1;pointer-events:auto;transition:none;
    scroll-snap-align:start;scroll-snap-stop:always;
  }
  .hero-main-body{position:absolute;left:0;right:0;bottom:0;padding:0 18px 16px;max-width:none;}
  .hero-eyebrow{margin-bottom:6px;}
  .hero-main-body h1 a{
    font-size:19px;line-height:1.18;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  }
  .hero-main-body h1{margin:0 0 10px;}
  /* the excerpt ate most of the box's height on a phone-sized card, leaving
     almost no photo visible under the text — drop it here, keep it on desktop */
  .hero-main-body p{display:none;}

  /* A soft band of light glides down over the headline photo once, on
     load -- like glare catching glass over a museum piece, not a repeating
     loop (that would read as decoration rather than a one-time flourish). */
  .hero-bg-link{overflow:hidden;}
  .hero-bg-link::before{
    content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(200deg,
      transparent 40%,
      rgba(255,255,255,.05) 46%,
      rgba(255,255,255,.55) 50%,
      rgba(255,255,255,.05) 54%,
      transparent 60%);
    transform:translateY(-130%);
    animation:st-hero-shine 1.8s cubic-bezier(.4,0,.2,1) .5s 1 forwards;
  }
  @keyframes st-hero-shine{
    to{transform:translateY(130%);}
  }
  @media (prefers-reduced-motion:reduce){
    .hero-bg-link::before{display:none;}
  }
}

/* ---------------- hero slider (legacy, unused) ---------------- */
.st-slider{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  max-height:460px;
  overflow:hidden;
  background:var(--surface-fixed-dark);
  border-radius:4px;
}
@media (max-width:980px){.st-slider{aspect-ratio:16/10;max-height:340px;}}
@media (max-width:600px){.st-slider{aspect-ratio:16/9;max-height:220px;}}

.st-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .5s ease;
}
.st-slide.active{opacity:1;visibility:visible;z-index:1;}
.st-slide .slide-media{display:block;width:100%;height:100%;position:relative;}
.st-slide .hero-art{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
.slide-play-btn{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;
  width:64px;height:64px;border-radius:50%;border:none;background:rgba(12,17,22,.35);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  backdrop-filter:blur(2px);transition:transform .15s;
}
.slide-play-btn:hover{transform:translate(-50%,-50%) scale(1.08);}
.slide-play-btn[hidden]{display:none;}

.st-slide .slide-overlay{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:14px 20px 16px;
  background:linear-gradient(to top, rgba(6,9,12,.9) 0%, rgba(6,9,12,.6) 65%, rgba(6,9,12,0) 100%);
  color:#fff;
}
.st-slide .slide-overlay .eyebrow{
  margin-bottom:0;color:#fff;text-transform:none;display:inline-flex;align-items:center;gap:9px;
}
.st-slide .slide-overlay .eyebrow::before{content:"";display:inline-block;width:24px;height:2px;background:#fff;}
.st-slide .slide-overlay h1{
  font-family:var(--font-headline-photo);font-weight:700;
  font-size:clamp(16px,2.6vw,32px);
  line-height:1.12;
  letter-spacing:0;
  color:#fff;
  margin:4px 0 0;
  text-wrap:balance;
  max-width:44ch;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.st-slide .slide-overlay .byline{color:rgba(255,255,255,.72);margin-top:6px;font-size:11px;}
@media (max-width:600px){
  .st-slide .slide-overlay{padding:10px 14px 12px;}
  .st-slide .slide-overlay h1{font-size:clamp(14px,4vw,20px);line-height:1.2;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;}
  .st-slide .slide-overlay .byline{margin-top:3px;}
}

/* extra real photos from the lead story, shown as a strip right under the
   hero when it has more than one — instead of the hero always being a
   single image regardless of how many the story actually has */
.hero-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px;}
.hero-gallery-item{display:block;border-radius:4px;overflow:hidden;aspect-ratio:4/3;background:var(--paper-dim);}
.hero-gallery-item .card-art{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease;}
.hero-gallery-item:hover .card-art{transform:scale(1.05);}
@media (max-width:600px){.hero-gallery{grid-template-columns:repeat(2,1fr);}}

.st-slider-dots{position:absolute;bottom:20px;right:24px;z-index:3;display:flex;gap:6px;}
.st-slider-dots button{
  width:7px;height:7px;padding:0;border-radius:50%;border:none;
  background:rgba(255,255,255,.45);cursor:pointer;
}
.st-slider-dots button.active{background:var(--accent);width:20px;border-radius:4px;}


/* ---------------- more-stories feed + pagination ---------------- */
.st-more{margin-top:36px;border-top:2px solid var(--ink);padding-top:22px;}
.st-more h2{font-family:var(--font-display);font-weight:700;font-size:20px;letter-spacing:.01em;margin:0 0 18px;}
.st-more-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:24px 28px;}
.st-more-item figure{margin:0 0 10px;border-radius:4px;overflow:hidden;background:var(--surface-fixed-dark);}
.st-more-item .item-art{width:100%;aspect-ratio:16/10;object-fit:contain;display:block;}
.st-more-item h3{font-family:var(--font-display);font-weight:700;font-size:15px;line-height:1.25;margin:0 0 6px;}
.st-more-item p.byline{font-size:11px;}

.st-pagination{
  display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;
  margin:34px 0 10px;font-family:var(--font-mono);font-size:12.5px;
}
.st-pagination a, .st-pagination span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:32px;height:32px;padding:0 8px;
  border:1px solid var(--line);border-radius:3px;color:var(--ink-soft);
}
.st-pagination a:hover{border-color:var(--accent-dark);color:var(--accent-dark);}
.st-pagination span.current{background:var(--surface-fixed-dark);border-color:var(--surface-fixed-dark);color:#fff;font-weight:700;}
.st-pagination span.dots{border-color:transparent;color:var(--ink-faint);}

/* ---------------- feature / long-read article ---------------- */
.feature{
  --f-bg:#fbfaf7; --f-ink:#1a1a1a; --f-muted:#726f68; --f-accent:#e08a2c; --f-rule:#e3e0d8;
  background:var(--f-bg); color:var(--f-ink); font-family:'EB Garamond', Georgia, serif;
  margin:-34px calc(50% - 50vw) 0; padding-bottom:60px;
}
.feature .f-hero{position:relative;width:100%;max-height:640px;overflow:hidden;background:#12151f;}
.feature .f-hero img{width:100%;max-height:640px;object-fit:cover;display:block;}
.feature .f-hero-caption{
  position:absolute;left:0;right:0;bottom:0;padding:16px 6vw;
  background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.55));
  color:#fff;font-family:var(--font-sans);font-size:12.5px;letter-spacing:.3px;
}
.feature .f-head{max-width:760px;margin:0 auto;padding:52px 20px 8px;text-align:center;}
.feature .f-kicker{
  font-family:var(--font-sans);font-weight:700;font-size:12.5px;letter-spacing:2px;
  text-transform:uppercase;color:var(--f-accent);margin-bottom:16px;
}
.feature .f-kicker span{display:inline-block;width:32px;height:2px;background:var(--f-accent);vertical-align:middle;margin-right:10px;}
.feature h1{font-size:clamp(32px,5vw,54px);line-height:1.08;font-weight:600;margin:0 0 20px;text-wrap:balance;}
.feature .f-dek{font-size:19px;line-height:1.5;color:#3c3a35;font-style:italic;margin:0 0 18px;}
.feature .f-byline{
  font-family:var(--font-sans);font-size:12px;color:var(--f-muted);
  letter-spacing:.4px;text-transform:uppercase;border-top:1px solid var(--f-rule);border-bottom:1px solid var(--f-rule);
  padding:13px 0;margin-top:24px;
}
.feature .f-body{max-width:1140px;margin:0 auto;padding:44px 20px 20px;font-size:18.5px;line-height:1.72;column-count:1;}
@media (min-width:900px){.feature .f-body{column-count:2;column-gap:60px;}}
.feature .f-body p{margin:0 0 22px;break-inside:avoid-column;}
.feature .f-body p.f-lede::first-letter{
  float:left;font-size:70px;line-height:.82;padding:6px 9px 0 0;font-weight:600;color:var(--f-accent);
}
.feature .f-body figure{break-inside:avoid-column;margin:8px 0 26px;}
.feature .f-body figure img{width:100%;border-radius:4px;display:block;}
.feature .f-body figcaption{font-family:var(--font-sans);font-size:11px;color:var(--f-muted);text-align:right;margin-top:6px;}
.feature .f-body blockquote{break-inside:avoid-column;}
.feature .f-body .f-speaker{break-inside:avoid-column;break-after:avoid-column;}
.feature .f-speaker{
  font-family:var(--font-sans);font-weight:800;font-size:12px;letter-spacing:1.3px;
  color:var(--f-ink);text-transform:uppercase;margin:32px 0 6px;padding-top:9px;border-top:1px solid var(--f-rule);
}
.feature blockquote{
  font-size:27px;line-height:1.4;font-style:italic;font-weight:500;
  margin:12px 0 24px;padding-left:20px;border-left:3px solid var(--f-accent);color:#20201d;
}
.feature .f-img{width:100%;border-radius:4px;margin:8px 0 4px;overflow:hidden;background:#eae7e0;}
.feature .f-img img{width:100%;display:block;}
.feature .f-credit{font-family:var(--font-sans);font-size:11px;color:var(--f-muted);text-align:right;margin:0 0 24px;}
.feature .f-endmark{text-align:center;color:var(--f-accent);font-size:18px;letter-spacing:6px;margin:0 0 20px;font-family:var(--font-sans);}
.feature .f-credit-strip{
  max-width:1140px;margin:20px auto 0;padding:20px 20px 0;border-top:1px solid var(--f-rule);
  font-family:var(--font-sans);font-size:12px;color:var(--f-muted);text-align:center;
}

/* ---------------- comments ---------------- */
#comments{font-family:var(--font-sans);}
.comments-title, #reply-title{font-family:var(--font-display);font-weight:700;font-size:20px;margin:0 0 18px;}
.comment-list{list-style:none;margin:0;padding:0;}
.comment-list .children{list-style:none;margin:0 0 0 28px;padding:0;}
.comment-list article{padding:16px 0;border-bottom:1px solid var(--line);}
.comment-author .fn{font-weight:700;font-style:normal;}
.comment-metadata{font-family:var(--font-mono);font-size:11px;color:var(--ink-faint);}
.comment-content p{font-size:14.5px;line-height:1.6;color:var(--ink);margin:8px 0 0;}
.comment-reply-link{font-family:var(--font-mono);font-size:11px;color:var(--accent-dark);}
.comment-form label{display:block;font-size:12.5px;font-weight:600;margin:0 0 4px;}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea{
  width:100%;max-width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:3px;
  font-family:var(--font-sans);font-size:14px;margin-bottom:14px;
}
.comment-form p{margin:0 0 14px;}
.comment-form .form-submit input{
  background:var(--accent);color:#1a0f04;font-weight:700;border:none;border-radius:3px;
  padding:10px 20px;cursor:pointer;font-size:13px;letter-spacing:.02em;
}
.comment-form .form-submit input:hover{background:var(--accent-dark);color:#fff;}
.comment-notes, .logged-in-as{font-size:12.5px;color:var(--ink-soft);margin-bottom:12px;}
.no-comments{font-family:var(--font-mono);font-size:12.5px;color:var(--ink-faint);}

a:focus-visible, button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* ---------------- subscribe modal ---------------- */
.st-modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;}
.st-modal[hidden]{display:none;}
body.st-modal-open{overflow:hidden;}
.st-modal-backdrop{position:absolute;inset:0;background:rgba(12,17,22,.6);}
.st-modal-card{
  position:relative;background:var(--paper);border-radius:6px;max-width:420px;width:100%;
  padding:36px 32px 32px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.st-modal-card h3{font-family:var(--font-display);font-weight:800;font-size:24px;margin:4px 0 14px;}
.st-modal-card p{font-size:14.5px;line-height:1.6;color:var(--ink-soft);margin:0;}
.st-modal-close{
  position:absolute;top:10px;right:12px;background:none;border:none;
  font-size:26px;line-height:1;color:var(--ink-soft);cursor:pointer;padding:4px 8px;
}
.st-modal-close:hover{color:var(--ink);}

/* Photo of the Day — sits in the main column, in the same slot as the
   columnist pull-quotes above it, not up at the top competing with the
   lead headline. A gallery-style black frame with a thin gold inner
   line (the same black/gold the two logo marks use), headline overlaid
   on the photo itself in the same NYT-style treatment as the archive
   lead and hero slider, instead of sitting in a caption block below. */
.photo-of-day{margin:0 0 34px;text-align:center;}
.photo-of-day-frame{
  background:#0a0d11;padding:10px;border-radius:6px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.photo-of-day-photo{
  display:block;position:relative;width:100%;aspect-ratio:3/2;max-height:560px;overflow:hidden;
  border-radius:2px;border:1px solid var(--accent);background:#0a0d11;
}
.photo-of-day-img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
.photo-of-day-overlay{
  position:absolute;left:0;right:0;bottom:0;padding:18px 22px 20px;text-align:left;
  background:linear-gradient(to top, rgba(6,9,12,.92) 0%, rgba(6,9,12,.55) 60%, rgba(6,9,12,0) 100%);
}
.photo-of-day-stamp{
  display:inline-flex;align-items:center;gap:9px;color:var(--accent);
  font-family:var(--font-mono);font-weight:700;font-size:11px;letter-spacing:.12em;text-transform:uppercase;
}
.photo-of-day-stamp::before{content:"";display:inline-block;width:20px;height:2px;background:var(--accent);}
.photo-of-day-overlay h2{
  font-family:var(--font-photo-caption);font-weight:800;color:#fff;
  font-size:clamp(21px,3vw,32px);line-height:1.16;letter-spacing:0;margin:6px 0 0;text-wrap:balance;max-width:56ch;
}
.photo-of-day-caption{padding-top:16px;}
.photo-of-day-caption p{font-family:var(--font-display);font-size:16px;line-height:1.6;color:var(--ink-soft);max-width:60ch;margin:0 auto 10px;}
.photo-of-day-meta{font-family:var(--font-mono);font-size:12px;color:var(--ink-soft);display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:18px;}
.photo-of-day-cta{
  display:inline-block;padding:11px 22px;border:1.5px solid var(--accent-dark);border-radius:3px;
  font-family:var(--font-mono);font-size:12.5px;font-weight:700;letter-spacing:.03em;color:var(--accent-dark);
}
.photo-of-day-cta:hover{background:var(--accent-dark);color:#fff;}

/* Single photo page — same black frame as the homepage module, capped to
   a fixed height so the photo and headline both fit without scrolling. */
.photo-single-frame{
  background:#0a0d11;padding:12px;border-radius:6px;margin:0 0 16px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.photo-single-photo{
  position:relative;width:100%;max-height:56vh;aspect-ratio:3/2;overflow:hidden;
  border-radius:2px;border:1px solid var(--accent);display:flex;align-items:center;justify-content:center;
  background:#0a0d11;
}
.photo-single-img{width:100%;height:100%;object-fit:contain;object-position:center;display:block;}
@media (max-width:600px){.photo-single-photo{max-height:42vh;}}

/* Photo Album — archive grid for the full series */
.photo-album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.photo-album-item{position:relative;display:block;border-radius:4px;overflow:hidden;aspect-ratio:4/3;background:var(--surface-fixed-dark);}
.photo-album-item .card-art{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease;}
.photo-album-item:hover .card-art{transform:scale(1.04);}
.photo-album-item-overlay{
  position:absolute;left:0;right:0;bottom:0;padding:14px 14px 12px;
  background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,0));
}
.photo-album-item-date{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.06em;color:rgba(255,255,255,.72);text-transform:uppercase;}
.photo-album-item-overlay h3{font-family:var(--font-display);font-weight:700;font-size:15px;color:#fff;margin:3px 0 2px;line-height:1.25;}
.photo-album-item-loc{font-family:var(--font-mono);font-size:11px;color:rgba(255,255,255,.65);}
@media (max-width:900px){.photo-album-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.photo-album-grid{grid-template-columns:1fr;}}

/* Single photo series navigation */
.photo-series-nav{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:10px;padding-top:20px;border-top:1px solid var(--line);
}
.photo-series-nav-link{font-family:var(--font-sans);font-size:13.5px;font-weight:600;color:var(--ink);}
.photo-series-nav-link:hover{color:var(--accent-dark);}
.photo-series-nav-archive{font-family:var(--font-mono);font-size:12px;color:var(--ink-soft);}
.photo-series-nav-archive:hover{color:var(--accent-dark);}

.st-pagination{display:flex;gap:8px;justify-content:center;margin:30px 0;font-family:var(--font-mono);font-size:13px;}
.st-pagination .page-numbers{padding:6px 12px;border:1px solid var(--line);border-radius:3px;color:var(--ink-soft);}
.st-pagination .page-numbers.current{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.st-pagination .page-numbers:hover:not(.current){border-color:var(--accent-dark);color:var(--accent-dark);}

.home-map-section{margin:0 0 30px;}
.home-map-head{display:flex;align-items:center;gap:8px;margin-bottom:12px;}
.home-map-head h2{font-family:var(--font-display);font-weight:700;font-size:20px;margin:0;}
.home-map-full-link{margin-left:auto;font-family:var(--font-mono);font-size:11.5px;font-weight:700;color:var(--accent-dark);}
.home-map-full-link:hover{color:var(--ink);}

/* Ticker items link straight to their row on the calendar page; :target
   picks out whichever row the visitor actually arrived to look for,
   without any JS. */
.calendar-row:target{background:var(--paper-dim);animation:st-row-flash 1.8s ease 1;}
@keyframes st-row-flash{
  0%{background:rgba(245,130,31,.22);}
  100%{background:var(--paper-dim);}
}

/* Calendar rows that have a real standings match and/or coverage posts
   expand in place to a small "hub" — next race, who's leading, our
   articles — instead of sending the reader elsewhere. */
.calendar-row.has-hub{cursor:pointer;}
.calendar-row.has-hub:hover{background:rgba(0,0,0,.02);}
.calendar-row-chevron{display:inline-block;margin-left:6px;color:var(--ink-faint);font-size:18px;line-height:1;transition:transform .15s ease;transform:rotate(90deg);}
.calendar-row.is-open .calendar-row-chevron{transform:rotate(-90deg);}

.race-hub{display:flex;gap:0;flex-wrap:wrap;background:var(--paper-dim);border-left:3px solid var(--accent);margin-top:-1px;}
.race-hub-standings,.race-hub-coverage{flex:1 1 260px;padding:16px 20px;}
.race-hub-standings{border-right:1px solid var(--line);}
.race-hub-label{display:block;font-family:var(--font-mono);font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint);margin-bottom:10px;}
.race-hub-leader{display:flex;align-items:baseline;gap:8px;font-family:var(--font-display);}
.race-hub-leader .flag{font-family:var(--font-mono);font-size:11px;font-weight:700;color:var(--ink-soft);border:1px solid var(--line);padding:1px 5px;border-radius:2px;}
.race-hub-leader .team{font-weight:700;font-size:15px;}
.race-hub-leader .gap{margin-left:auto;font-family:var(--font-mono);font-size:12px;color:var(--accent-dark);}
.race-hub-more{display:inline-block;margin-top:12px;font-family:var(--font-mono);font-size:11.5px;font-weight:700;color:var(--accent-dark);}
.race-hub-more:hover{color:var(--ink);}
.race-hub-posts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.race-hub-posts li a{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;}
.race-hub-posts li a:hover span{text-decoration:underline;}
.race-hub-posts li img{width:46px;height:46px;object-fit:cover;border-radius:2px;flex-shrink:0;}
.race-hub-posts li span{font-size:14px;line-height:1.35;}
.race-hub-none{font-size:13px;color:var(--ink-faint);margin:0;}

@media (max-width:640px){
  .race-hub{flex-direction:column;}
  .race-hub-standings{border-right:none;border-bottom:1px solid var(--line);}
}

/* Quick-links strip — a thin row of jump-links under the hero, not a
   colorful icon dashboard: our own mono/serif type, line icons only,
   bordered like a panel rather than styled as its own bright module. */
.quick-links{
  display:grid;grid-template-columns:repeat(6,1fr);gap:2px;background:transparent;border:none;border-radius:0;overflow:visible;
  width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
}
.quick-link{
  position:relative;min-height:145px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:6px;
  background-color:var(--surface-fixed-dark);
  border-left:none !important;border-radius:0;overflow:hidden;text-align:left;
  padding:16px 18px;
}
.quick-link::before{
  content:'';position:absolute;inset:0;z-index:0;
  background-image:var(--tile-photo);background-size:cover;background-position:center;
  opacity:.55;
}
.quick-link::after{
  content:'';position:absolute;inset:0;z-index:0;
  background:linear-gradient(0deg, rgba(2,16,25,.88), rgba(2,16,25,.15));
}
.quick-link:hover::before{opacity:.68;}
.quick-link svg,.quick-link span,.quick-link .icon-emoji{position:relative;z-index:1;color:#fff !important;}
.quick-link .icon-emoji{font-size:22px;line-height:1;}
.quick-link span{padding:0;white-space:normal !important;font-weight:700;text-transform:uppercase;letter-spacing:.03em;font-size:13px;}
.quick-link em{position:relative;z-index:1;color:rgba(255,255,255,.75) !important;font-style:normal;font-size:11px;font-weight:500;}
.quick-link-live.has-live{background-color:var(--ink);}
@media (max-width:900px){.quick-links{grid-template-columns:repeat(3,1fr);}}
@media (max-width:700px){.quick-links{grid-template-columns:repeat(2,1fr);}}

/* section strip -- replaces the static quick-links nav tiles with each
   section's own latest real story (photo + headline), so the row is live
   editorial content instead of six fixed decorative icons. */
.section-strip{
  display:grid;grid-template-columns:repeat(7,1fr);gap:2px;
  width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;
}
.section-tile{
  position:relative;min-height:145px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:6px;
  background-color:var(--surface-fixed-dark);overflow:hidden;text-align:left;padding:16px 18px;
}
.section-tile::before{
  content:'';position:absolute;inset:0;z-index:0;
  background-image:var(--tile-photo);background-size:cover;background-position:center;
  opacity:.55;
}
.section-tile::after{
  content:'';position:absolute;inset:0;z-index:0;
  background:linear-gradient(0deg, rgba(2,16,25,.88), rgba(2,16,25,.15));
}
.section-tile:hover::before{opacity:.68;}
.section-tile-name{position:relative;z-index:1;color:#fff;font-family:var(--font-sans);font-weight:700;text-transform:uppercase;letter-spacing:.03em;font-size:12.5px;}
.section-tile em{position:relative;z-index:1;color:rgba(255,255,255,.75);font-style:normal;font-size:11px;font-weight:500;line-height:1.35;}
@media (max-width:1100px){.section-strip{grid-template-columns:repeat(4,1fr);}}
@media (max-width:700px){.section-strip{grid-template-columns:repeat(2,1fr);}}

/* ---------------- mobile homepage: its own composition, not desktop
   shrunk down — same sections, reordered as Hero > LIVE > Quick access >
   Photo of the Day > Latest News > (everything else), via flex order on
   the one shared content column. Desktop is untouched: this whole block
   only applies under the mobile breakpoint. ---------------- */
@media (max-width:700px){
  body.home .st-main > .wrap{display:flex;flex-direction:column;}
  body.home .st-picks-strip{order:0;}
  body.home .section-strip{order:1;}
  body.home .photo-of-day{order:2;}
  body.home .st-latest-news-section{order:3;}
  body.home .st-secondary-section{order:4;}
  body.home .quote-carousel{order:5;}
  body.home .home-map-section{order:6;}
}
.__legacy_quick_link_unused{
  display:flex;align-items:center;gap:10px;padding:8px 16px;background:var(--paper);color:var(--ink);
  border-left:3px solid transparent;
}
.__legacy_quick_link_unused2:hover{background:var(--paper-dim);}
.quick-link svg{flex:none;}
.quick-link span{font-family:var(--font-sans);font-size:11.5px;font-weight:700;letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;}
.quick-link-live span{position:relative;display:block;height:1.25em;}
.quick-link-live-item{position:absolute;inset:0;opacity:0;transition:opacity .5s ease;color:inherit;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.quick-link-live-item.active{opacity:1;position:relative;}
.quick-link-weather{border-left-color:#3b7dd8;color:#3b7dd8;}
.quick-link-calendar{border-left-color:#c9962e;color:#c9962e;}
.quick-link-market{border-left-color:#2e8b57;color:#2e8b57;}
.quick-link-tracker{border-left-color:#7c4dbd;color:#7c4dbd;}
.quick-link-weather span,.quick-link-calendar span,.quick-link-market span,.quick-link-tracker span{color:var(--ink);}
.quick-link-live{border-left-color:#9aa3ad;color:#9aa3ad;}
.quick-link-live span{color:var(--ink-soft);}
.quick-link-live.has-live{border-left-color:#e0263f;color:#e0263f;cursor:default;}
.quick-link-live.has-live:hover{background-color:transparent;}
.quick-link-live.has-live span{color:var(--ink);}
@media (max-width:700px){
  .quick-links{grid-template-columns:repeat(2,1fr);}
  .quick-link{padding:8px 12px;}
}



/* Race Week Forecast strip — rotating cards, big wind/sea/temp stats */
.st-forecast-strip{margin:18px 0 26px;background:linear-gradient(135deg,#0b1f3a,#132c52 55%,#0b1f3a);border-radius:10px;padding:16px 18px 12px;color:#eef3f8;overflow:hidden;}
.st-forecast-strip .fx-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.st-forecast-strip .fx-label{font-family:var(--font-mono);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#ffb347;}
.fx-search{display:flex;align-items:center;gap:0;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:4px 4px 4px 12px;}
.fx-search input{background:none;border:none;outline:none;color:#fff;font-size:12.5px;font-family:var(--font-body);width:150px;}
.fx-search input::placeholder{color:#9fc1e0;}
.fx-search button{background:rgba(255,255,255,.14);border:none;border-radius:50%;width:26px;height:26px;color:#fff;cursor:pointer;font-size:12px;}
.fx-search button:hover{background:rgba(255,255,255,.24);}
.fx-stage{position:relative;min-height:190px;}
.fx-card{--fx-accent:#3b7dd8;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:16px 12px;border-radius:8px;background:linear-gradient(160deg,color-mix(in srgb,var(--fx-accent) 32%,#0b1f3a),#0b1f3a 75%);border:1px solid color-mix(in srgb,var(--fx-accent) 55%,transparent);opacity:0;transform:translateX(24px);transition:opacity .5s ease,transform .5s ease;}
.fx-card.fx-in{opacity:1;transform:translateX(0);}
.fx-card.fx-out{opacity:0;transform:translateX(-24px);}
.fx-card.fx-skeleton{position:static;background:rgba(255,255,255,.05);animation:fx-pulse 1.6s ease-in-out infinite;min-height:190px;}
@keyframes fx-pulse{0%,100%{opacity:.5;}50%{opacity:1;}}
.fx-event{font-family:var(--font-mono);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--fx-accent);}
.fx-place{font-family:var(--font-display);font-weight:700;font-size:19px;color:#fff;display:flex;align-items:center;gap:8px;}
.fx-icon-inline{font-size:22px;line-height:1;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--fx-accent) 60%,transparent));animation:fx-drift 5s ease-in-out infinite;}
@keyframes fx-drift{0%,100%{transform:translateY(0);}50%{transform:translateY(-3px);}}
.fx-desc{font-size:12px;color:#c3d6e8;margin-bottom:4px;}
.fx-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;max-width:420px;}
.fx-stat{display:flex;flex-direction:column;align-items:center;gap:2px;background:rgba(255,255,255,.07);border-radius:8px;padding:10px 4px;}
.fx-stat-label{font-family:var(--font-mono);font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#9fc1e0;}
.fx-stat-value{font-family:var(--font-display);font-weight:800;font-size:26px;color:#fff;line-height:1.1;}
.fx-stat-value em{font-style:normal;font-weight:400;font-size:13px;color:#c3d6e8;margin-left:2px;}
.fx-stat-sub{font-family:var(--font-mono);font-size:10.5px;color:#ffd27f;}
.fx-dots{display:flex;justify-content:center;gap:6px;margin-top:10px;}
.fx-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.25);transition:background .3s ease,transform .3s ease;}
.fx-dot.is-active{background:#ffb347;transform:scale(1.3);}
.fx-credit{font-family:var(--font-mono);font-size:10.5px;color:#7d9dbe;margin:10px 0 0;text-align:center;}
@media (max-width:700px){
  .fx-search input{width:100px;}
  .fx-stat-value{font-size:22px;}
}
