/* =====================================================================
   Forged Founders – Theme Styles (readable formatting)
   ===================================================================== */

/* ---------------------------------------------------------------------
   0) Design Tokens & Utilities
   --------------------------------------------------------------------- */
:root {
  --ff-accent:   #000;
  --ff-grey-00:  #f5f5f5;
  --ff-grey-10:  #f7f7f7;
  --ff-grey-90:  #111111;
}

.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;
}

/* Ensure sentinel can intersect the viewport */
#home-feed-sentinel {
  min-height: 1px;
}


/* ---------------------------------------------------------------------
   1) Header (consolidated: brand, nav, CTA, search, mobile panel)
   --------------------------------------------------------------------- */
.ff-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: background .4s ease, box-shadow .4s ease;
  background-color: rgba(0,0,0,.6);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.ff-header.scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.ff-header__inner {
  max-width: none;
  padding-inline: clamp(16px, 4vw, 32px);
  margin: 0 auto;
  padding: .35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* anchor absolute children on mobile */
}

/* Brand */
.ff-brand { 
  flex: 0 0 auto !important;
  width: fit-content !important;
  max-width: none !important;
  line-height: 0;
}

.ff-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ff-brand__link {
  display: inline-flex; align-items: center;
  text-decoration: none;
  color: rgba(255,255,255,.88);
}

.custom-logo { height: 42px; width: auto; }
.ff-brand__link:visited,
.ff-brand__link:hover,
.ff-brand__link:focus-visible,
.ff-brand__link:focus { color: #f5f5f5; text-decoration: none; }

/* Logo + site name are siblings */
.ff-brand .custom-logo-link + .ff-brand__link,
.ff-brand .custom-logo + .ff-brand__name {
  margin-left: .6rem;       /* adjust here */
}

@media (max-width: 767px) {
  .ff-brand .custom-logo-link + .ff-brand__link,
  .ff-brand .custom-logo + .ff-brand__name { margin-left: .5rem; }
}


/* Nav container */
#site-navigation {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  position: relative; /* desktop: anchors dropdowns */
}

/* Primary menu (desktop) */
#site-navigation .ff-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#site-navigation .ff-menu a {
  text-decoration: none;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  letter-spacing: .02em;
  position: relative;
}
#site-navigation .ff-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: rgba(255,255,255,.85);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
#site-navigation .ff-menu a:hover::after,
#site-navigation .ff-menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* CTA */
.ff-cta {
  --cta-fg:#111; --cta-bg:rgba(255,255,255,.85); --cta-bd:rgba(0,0,0,.15);
  margin-left: auto;
  display:inline-flex; align-items:center; gap:.4rem;
  color:var(--cta-fg); background:var(--cta-bg); border:1px solid var(--cta-bd); border-radius:9999px;
  padding:.5rem 1rem; font-size:.9rem; line-height:1; letter-spacing:.02em; text-decoration:none; white-space:nowrap;
  box-shadow:0 1px 0 rgba(0,0,0,.02) inset;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.ff-cta:hover { background:rgba(255,255,255,.95); border-color:rgba(0,0,0,.25); box-shadow:0 6px 18px rgba(0,0,0,.12); }
.ff-cta:active { transform: translateY(0); box-shadow:0 3px 10px rgba(0,0,0,.14); }
.ff-cta:focus-visible { outline:2px solid #111; outline-offset:2px; }


/* Burger — classic 3 white bars (no pill background) */
.menu-toggle.ff-burger {
  display: none;                           /* shown only on mobile below */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;                                /* space between bars */
  background: transparent;                 /* remove white pill */
  border: 0;
  padding: 0;
  width: 40px;                             /* stable tappable target */
  height: 36px;
  z-index: 1001;
  cursor: pointer;
}

.menu-toggle.ff-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;                        /* white bars */
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
}

/* Mobile: show it (your centering rule elsewhere will still apply) */
@media (max-width: 767px) {
  .menu-toggle.ff-burger { display: flex; }
}

/* Focus state (keyboard) */
.menu-toggle.ff-burger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ff-brand__name {
  display: block;
  max-width: 6.8ch;
  line-height: 1.05;
  white-space: normal;
}


/* ----------------------- Search (desktop dropdown + mobile) ----------------------- */
/* Layout-only anchor for the search toggle (NO circle/visuals here). */
.ff-search-toggle {
  position: absolute; top:50%; right:0; transform: translateY(-50%);
  z-index:1002;
  display:inline-flex; align-items:center; justify-content:center;
  margin-left:.5rem;
  cursor:pointer;
}
.ff-search-toggle:hover, .ff-search-toggle:focus-visible { opacity:1; }
.ff-search-toggle:focus { outline:none; }

/* Hidden by default */
.ff-search { display:none; }

/* Unified input styling */
#ff-search-input {
  -webkit-appearance: none; appearance: none;
  height:36px; min-width:0;
  padding:.4rem .8rem;
  border:1px solid rgba(255,255,255,.18);
  border-radius:9999px;
  background:rgba(255,255,255,.85);
  color:#111;
  font-size:.9rem; line-height:1.2;
}
#ff-search-input::placeholder { color:rgba(0,0,0,.55); }
#ff-search-input:focus { outline:none; }
#ff-search-input:focus-visible { outline:2px solid #111; outline-offset:2px; border-color:#111; }
@supports not selector(:focus-visible) {
  #ff-search-input:focus { outline:2px solid #111; outline-offset:2px; border-color:#111; }
}

/* Desktop dropdown below nav */
@media (min-width: 768px) {
  #site-navigation.is-search .ff-search {
    display:flex !important;
    position:absolute; top:100%; right:0; z-index:1001;
    flex-direction:row; gap:.5rem;
    background: rgba(0,0,0,.6);
    padding:1rem 2rem;
    box-shadow:0 8px 24px rgba(0,0,0,0.08);
    margin-top:19px; 
  }
  #ff-search-input { width: clamp(18rem, 32vw, 32rem); max-width:32rem; }
}


/* ----------------------- Mobile layout: brand left (stacked), burger center, search+CTA right ----------------------- */
@media (max-width: 767px) {
  .ff-header__inner { padding: .3rem .75rem; }

  /* Stack site name: "Forged" over "Founders" (no markup change required if you have .ff-brand__name) */
  .custom-logo { height: 36px; }
  .ff-brand__name {
    display: block;
    max-width: 6.8ch;     /* force wrap at space → two lines */
    line-height: 1.05;
    white-space: normal;
  }

  /* Let dropdown panels position against the whole header row */
  #site-navigation { position: static; flex: 1 1 auto; }

  /* Center the burger relative to the entire header */
  .menu-toggle.ff-burger {
    display:flex;
    position:absolute;
    left:50%; top:50%;
    transform: translate(-50%, -50%);
  }
  .menu-toggle.ff-burger span { width: 20px; }

  /* CTA: pin to far right */
  .ff-cta {
    position:absolute;
    right: clamp(12px, 4vw, 20px);
    top:50%;
    transform: translateY(-50%);
    margin:0;
    z-index:1000;
  }

  .ff-cta:active { transform: translateY(calc(-50% + 1px)); }

  /* Search icon: just left of CTA (assume ~92px CTA width incl. padding) */
  .ff-search-toggle {
    position:absolute;
    right: calc(clamp(12px, 4vw, 20px) + 100px); /* adjust 96px if your CTA is wider/narrower */
    top:50%;
    transform: translateY(-50%);
    width:32px; height:32px;
  }

  /* Hide inline menu until opened */
  #site-navigation .ff-menu { display:none; }

  /* Burger menu panel (mobile) — centered under the burger */
  #site-navigation.toggled:not(.is-search) .ff-menu {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;

    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    background: rgba(0,0,0,.6);
    padding: 1rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;

    margin-top: 19px;
    /* remove right-alignment tweaks when centering */
    margin-right: 0;
  }


  /* Mobile search panel (same dropdown slot) */
  #site-navigation.toggled.is-search .ff-search {
    display:flex !important;
    position:absolute; top:100%; right:0; z-index:1001;
    flex-direction:row; gap:.5rem;
    background: rgba(0,0,0,.6);
    padding:1rem 2rem;
    box-shadow:0 8px 24px rgba(0,0,0,0.08);
    margin-top:19px; 
  }

  /* Mobile input width */
  #ff-search-input { width: min(80vw, 260px); max-width:none; }

  /* Mobile: make the hero taller (16:9) */
  .home-hero .home-hero__media { aspect-ratio: 16 / 9; }

  #ff-search-input { 
    font-size: 16px;      /* stop the zoom */
    line-height: 1.25;    /* keep it comfy inside the 36px pill */
  }

}

/* Focus rings only for keyboard */
:focus:not(:focus-visible) { outline:none !important; box-shadow:none !important; }

/* Optional: subtle selection colors */
::selection { background: rgba(0,0,0,.12); color: inherit; }
::-moz-selection { background: rgba(0,0,0,.12); color: inherit; }
.home-hero__overlay ::selection { background: rgba(255,255,255,.22); color: rgba(255,255,255,.96); }
.home-hero__overlay ::-moz-selection { background: rgba(255,255,255,.22); color: rgba(255,255,255,.96); }

/* Canonical search toggle — white magnifier, no circle, no !important */
button.ff-search-toggle {
  border: 0;
  background: none;              /* no shorthand later should touch our icon */
  color: #fff;
  width: 36px;
  height: 36px;
  padding: 0;

  /* kill the 🔍 glyph without touching ARIA */
  font-size: 0;
  line-height: 0;
  text-indent: 0;
  overflow: visible;
}

/* Draw the icon on a pseudo so button background resets can't break it */
button.ff-search-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  background: no-repeat center / 22px 22px
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' \
stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<circle cx='11' cy='11' r='7'/>\
<line x1='21' y1='21' x2='16.65' y2='16.65'/>\
</svg>");
}

/* Focus ring stays visible */
button.ff-search-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* iOS: keep CTA text from turning purple (visited link color) */
a.ff-cta,
a.ff-cta:link,
a.ff-cta:visited,
a.ff-cta:hover,
a.ff-cta:active,
a.ff-cta:focus,
a.ff-cta:focus-visible {
  color: var(--cta-fg);
  -webkit-text-fill-color: var(--cta-fg); /* Safari/iOS */
  text-decoration: none;
}

/* If any earlier CSS added its own ::before or inline SVG, remove that block. */

/* ---------------------------------------------------------------------
   2) Home Hero (self-hosted video)
   --------------------------------------------------------------------- */
.home-hero__media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #000;
}

.home-hero__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 100%; /* ⬅︎ anchor bottom */
}


/* Poster image used either when no video OR under reduced motion */
.home-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%; /* ⬅︎ anchor bottom */
  display: none;
}

.home-hero__poster.--static {
  position: relative;
  display: block;
}




/* ---------------------------------------------------------------------
    Home Hero – Overlay typography & positioning (aesthetic tune)
   --------------------------------------------------------------------- */
.home-hero__overlay {
  position: absolute;
  inset: auto 0 0 0;
  /* align with header gutters; keep comfortable block padding */
  padding-block: 1.5rem 2rem;
  padding-inline: clamp(16px, 4vw, 32px);
  color: rgba(255,255,255,.88);
  pointer-events: auto; 
  max-width: clamp(24ch, 48vw, 32ch); 
}


/* H1 inline band (your Option B), with a gentle wipe-in of the band only */
.home-hero__hed {
  display: inline;
  color: rgba(255,255,255,.88);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;

  /* the band */
  padding: .04em .12em;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 58%, rgba(0,0,0,.44) 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: .12em;

  /* wipe animation: text is visible instantly; band grows in */
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left bottom;
  animation: ff-hed-band .6s ease-out .2s forwards; /* 200ms delay feels intentional */
}

@keyframes ff-hed-band { to { background-size: 100% 100%; } }


/* Dek: keep compact and readable; auto-hide if empty */
.home-hero__dek {
  margin: 0;
  font-size: clamp(.95rem, 1.6vw, 1.125rem);
  opacity: .9;
  max-width: 70ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.home-hero__dek:empty { display: none; }

/* Avoid overlap with the corner toggle on wider viewports */
@media (min-width: 640px) {
  .home-hero__overlay {
    padding-right: calc(clamp(16px, 4vw, 32px) + 40px);
  }
}




/* Corner play/pause – icon only, perfectly aligned */
.home-hero__toggle {
  position: absolute;
  right: clamp(16px, 4vw, 32px);                 /* same as overlay inline padding */
  bottom: calc(1.75rem + var(--ff-header-h, 0px) * 1); 
  z-index: 2;

  background: none;
  border: 0;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: monospace;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255,255,255,.6);

  opacity: .6;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}

.home-hero__toggle:hover {
  opacity: 1 !important;
}

.home-hero__toggle:active {
  transform: scale(.96);
}


/* --- Stacking fix: feed above fixed hero video --- */

/* Feed (and grid) sit above the fixed hero video */
.home-feed,
#home-feed-grid {
  position: relative;
}

@media (min-width: 1024px) {
  .home-hero { position: relative; z-index: 0; }

  /* keep fixed mode OFF; video stays inside the hero box */
  .home-hero--fixed .home-hero__video {
    position: absolute;  /* was: fixed */
    inset: 0;
    z-index: 0;
    pointer-events: none;
    object-fit: cover;
    object-position: 50% 100%; /* bottom-center so top crops first */
  }
}


/* pull hero up under header and filter*/
.home-hero {
  margin-top: calc(-1 * var(--ff-header-h, 0px));
  margin-bottom: calc(-1 * var(--ff-header-h, 0px));
}

/* keep overlay/toggle above that bleed */
 .home-hero__overlay { bottom: calc(var(--ff-header-h, 0px) * 1); } 

/* Mobile override (placed LAST so it wins) */
@media (max-width: 767px) {
  .home-hero .home-hero__hed {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 22ch;
  }

  .home-hero {
    margin-top: 0;                      /* undo: -var(--ff-header-h) */
    margin-bottom: 0;                   /* undo: -var(--ff-header-h) */
  }
  .home-hero__overlay {
    bottom: 0rem;                       /* was tied to header height; keep simple on mobile */
    padding-block: 1rem 1.25rem;        /* slightly tighter so more video shows */
  }
  .home-hero__toggle {
    bottom: .75rem;                     /* align with overlay, avoid header/filter */
  }
}

/* ---------------------------------------------------------------------
   3) Story – Title, Hero Player, Overlays
   --------------------------------------------------------------------- */

/* Title */
.ff-story__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  text-align: center;
  border-bottom: 2px solid var(--ff-accent);
  display: inline-block;
  padding-bottom: .5rem;
}

@media (max-width: 1023px) {
  .ff-story__title { text-align: left; }
}

/* Player wrapper – FIX for Plyr visibility: own the height via aspect-ratio */
.ff-player-wrap {
  position: relative;

  cursor: pointer;             /* hand cursor before playback */
  aspect-ratio: 16 / 9;
  background: #000;
}

/* playing state */
.ff-player-wrap.is-playing {
  cursor: default;
}

/* Plyr fills the wrapper */
.ff-player-wrap .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.ff-player-wrap .plyr__video-wrapper,
.ff-player-wrap iframe,
.ff-player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Apply object-fit only to media that supports it */
.ff-player-wrap img,
.ff-player-wrap video {
  object-fit: cover;
}

/* Fallback for old browsers without aspect-ratio */
@supports not (aspect-ratio: 1) {
  .ff-player-wrap {
    height: 0;
    padding-top: 56.25%;       /* 16:9 */
  }
  .ff-player-wrap .plyr {
    position: absolute;
    inset: 0;
  }
}

/* Pull quote as block text with left vertical bar */
.ff-pullquote--text {
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid #ccc; /* quote feel */
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.4;
  color: rgba(0,0,0,.72);
}

/* Reworked pull quote: inline block with left bar (used under description) */
.ff-pullquote {
  position: static;                 /* no overlay */
  margin: .5rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(0,0,0,.18);
  font-style: italic;
  line-height: 1.45;
  color: rgba(0,0,0,.72);
  font-size: 1.2rem;
  font-family: 'Georgia', 'Times New Roman', serif; /* serif for editorial feel */

}

/* Layout Alternation (Zig-Zag Style) */
.story-card--horz:nth-child(even) {
  flex-direction: row-reverse;
}


.story-card--horz .ff-pullquote {
  margin-top: .5rem;
}

/* Keep span lightweight (present in markup) */
.ff-pullquote > span { display: inline; }

.ff-fade-out {
  opacity: 0;
}







/* Base: invisible helper that does NOT intercept taps */
.ff-player-wrap .ff-play-btn {
  position: absolute;
  top: 0; left: 0; transform: none;
  width: 100%; height: 100%;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

/* While playing: enable the tap layer (mobile tap to reveal controls) */
.ff-player-wrap.is-playing .ff-play-btn {
  pointer-events: auto;
  z-index: 4; /* above .plyr (z-index:2) */
}

/* Desktop: do not block hover interactions while playing */
@media (hover: hover) and (pointer: fine) {
  .ff-player-wrap.is-playing .ff-play-btn {
    pointer-events: none;
    z-index: 3;
  }
}

/* Flash state: force controls + big play to show (used on tap while playing) */
.ff-player-wrap.ff-ctrl-flash .plyr__controls,
.ff-player-wrap.ff-ctrl-flash .plyr.plyr--hide-controls .plyr__controls {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto;
}

/* Flash: show Plyr's big overlaid control (blue, clickable) */
.ff-player-wrap.ff-ctrl-flash .plyr__control--overlaid,
.ff-player-wrap.ff-ctrl-flash .plyr--playing .plyr__control--overlaid,
.ff-player-wrap.ff-ctrl-flash .plyr.plyr--hide-controls .plyr__control--overlaid,
.ff-player-wrap.ff-ctrl-flash .plyr.plyr--fullscreen .plyr__control--overlaid,
.ff-player-wrap.ff-ctrl-flash .plyr.plyr--fullscreen-fallback .plyr__control--overlaid,
.ff-player-wrap.ff-ctrl-flash .plyr:fullscreen .plyr__control--overlaid,
.ff-player-wrap.ff-ctrl-flash .plyr:-webkit-full-screen .plyr__control--overlaid {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 10002 !important;
}

/* Flash while playing: show PAUSE glyph on Plyr's overlaid button (keep it clickable) */
.ff-player-wrap.ff-ctrl-flash .plyr--playing .plyr__control--overlaid svg,
.ff-player-wrap.is-playing:hover .plyr__control--overlaid svg {
  opacity: 0 !important;
}

.ff-player-wrap.ff-ctrl-flash .plyr--playing .plyr__control--overlaid::before,
.ff-player-wrap.is-playing:hover .plyr__control--overlaid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;                           /* slimmer bars */
  height: 24px;                         /* shorter height */
  background: rgba(255, 255, 255, .88); /* your preferred white tint */
  border-radius: 1px;                   /* subtle rounding */
  transform: translate(calc(-50% - 7px), -50%);
  box-shadow: 14px 0 0 rgba(255, 255, 255, .88); /* matching tint for 2nd bar */
}




/* During flash, let taps hit controls */
.ff-player-wrap.ff-ctrl-flash .ff-play-btn { pointer-events: none; }



/* --- Plyr fullscreen (native + fallback): break out of the card and fill the viewport --- */

/* Use dynamic viewport units so iOS chrome doesn't push controls offscreen */
.ff-player-wrap .plyr.plyr--fullscreen,
.ff-player-wrap .plyr.plyr--fullscreen-fallback,
.ff-player-wrap .plyr:fullscreen,
.ff-player-wrap .plyr:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100dvw !important; /* was 100vw */
  height: 100dvh !important;/* was 100vh */
  z-index: 9999 !important;
}

/* Keep inner media wrappers spanning the dynamic viewport */
.ff-player-wrap .plyr.plyr--fullscreen .plyr__video-wrapper,
.ff-player-wrap .plyr.plyr--fullscreen iframe,
.ff-player-wrap .plyr.plyr--fullscreen video,
.ff-player-wrap .plyr:fullscreen .plyr__video-wrapper,
.ff-player-wrap .plyr:fullscreen iframe,
.ff-player-wrap .plyr:fullscreen video,
.ff-player-wrap .plyr:-webkit-full-screen .plyr__video-wrapper,
.ff-player-wrap .plyr:-webkit-full-screen iframe,
.ff-player-wrap .plyr:-webkit-full-screen video,
.ff-player-wrap .plyr.plyr--fullscreen-fallback .plyr__video-wrapper,
.ff-player-wrap .plyr.plyr--fullscreen-fallback iframe,
.ff-player-wrap .plyr.plyr--fullscreen-fallback video {
  position: fixed !important;
  inset: 0 !important;
  width: 100dvw !important;
  height: 100dvh !important;
}

/* Ensure the control bar clears the home indicator / bottom safe area */
.ff-player-wrap .plyr.plyr--fullscreen .plyr__controls,
.ff-player-wrap .plyr.plyr--fullscreen-fallback .plyr__controls,
.ff-player-wrap .plyr:fullscreen .plyr__controls,
.ff-player-wrap .plyr:-webkit-full-screen .plyr__controls {
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

/* Ghost layer OFF during the flash so Plyr's button is the only thing visible/clickable */
@media (hover: none) {
  .ff-player-wrap.is-playing.ff-ctrl-flash .ff-play-btn {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .ff-player-wrap.is-playing.ff-ctrl-flash .ff-play-btn::before,
  .ff-player-wrap.is-playing.ff-ctrl-flash .ff-play-btn::after {
    content: none !important;
  }
}


/* When the child Plyr is fullscreen (native or fallback), anchor the overlay to the viewport */
@supports selector(:has(*)) {
  .ff-player-wrap:has(.plyr.plyr--fullscreen,
                      .plyr.plyr--fullscreen-fallback,
                      .plyr:fullscreen,
                      .plyr:-webkit-full-screen) .ff-play-btn {
    position: fixed;
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    z-index: 10001; /* keep above the video */
  }
}


---------------------------------------------
   4) Story – Lede / Fact Card / Content
   --------------------------------------------------------------------- */
.ff-story__lede-wrap {
  display: flex;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

@media (max-width: 1023px) {
  .ff-story__lede-wrap {
    flex-direction: column;
    gap: 2rem;
  }
}

.ff-story__lede {
  flex: 2;
  font-size: 1.125rem;
  line-height: 1.6;
  padding-left: 1rem;
}

/* Fact Card */
.ff-factcard {
  flex: 1;
  background: var(--ff-grey-10);
  padding: 1.5rem 2rem;
  border-radius: 4px;
}

.ff-factcard__heading {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ff-grey-90);
}

.ff-factcard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.ff-factcard__item {
  font-size: .95rem;
  line-height: 1.4;
}

.ff-founders {
  font-weight: 600;
}

.ff-factcard__website a {
  color: var(--ff-accent);
  text-decoration: underline;
}

/* Main content */
.ff-story__content {
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Transcript */
.ff-story__transcript details {
  max-width: 720px;
  margin: 0 auto 4rem;
}

.ff-story__transcript summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Nominate CTA */
.ff-nominate {
  background: var(--ff-accent);
  color: var(--ff-grey-00);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 1.25rem;
  margin-top: 4rem;
}

.ff-nominate a {
  color: var(--ff-grey-00);
  text-decoration: underline;
}


/* ---------------------------------------------------------------------
   5) Archive / Home – Horizontal Story Card
   --------------------------------------------------------------------- */
.story-card--horz {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  margin: 0 1rem 2.6rem; 
  container-type: inline-size;
}


/* Robust player sizing inside card */
.story-card--horz .ff-player-wrap {
  flex: 0 0 62%;               /* was 48% */
  max-width: 62%;              /* was 48% */
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  overflow: hidden;
  border-radius: 6px;          /* subtle media corners */
}


.story-card--horz .ff-player-wrap .plyr__video-wrapper,
.story-card--horz .ff-player-wrap iframe,
.story-card--horz .ff-player-wrap video,
.story-card--horz .ff-player-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Only media that supports it gets object-fit */
.story-card--horz .ff-player-wrap img,
.story-card--horz .ff-player-wrap video {
  object-fit: cover;
}



/* Desktop: slightly dim the thumbnail on hover (not while playing) */
@media (hover: hover) and (pointer: fine) {
  .story-card--horz .ff-player-wrap .plyr__video-wrapper { 
    transition: filter .16s ease;
  }
  .story-card--horz .ff-player-wrap:not(.is-playing):hover .plyr__video-wrapper {
    filter: brightness(.6); /* adjust to taste: .88–.82 */
  }
}



.story-card__info {
  flex: 1;               /* was 48% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}


.story-card__title {
  font-size: 1.3rem;
  margin: 0;
}

.story-card__title a {
  text-decoration: none;
  color: var(--ff-grey-90);
}

.story-card__title a:hover {
  text-decoration: underline;
}

.story-card__excerpt {
  font-size: 1.05rem;
  font-style: normal; /* ensure not italic anywhere */
  line-height: 1.55;
  color: #333;
  margin: 0;
}

.story-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.story-card__chip {
  background: #e0e0e0;
  color: #111;
  font-size: .8rem;
  padding: .3rem .6rem;
  border-radius: 3px;
}

/* Stack when the *card* is narrow (container query) — consolidated */
@container (max-width: 860px) {
  .story-card--horz {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .story-card--horz .ff-player-wrap,
  .story-card__info {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }
}

/* Mobile fallback if container queries unsupported — consolidated */
@media (max-width: 767px) {
  .story-card--horz {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .story-card--horz .ff-player-wrap,
  .story-card__info {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }
}

/* Hide meta chips on the homepage feed only */
.home-feed .story-card__meta {
  display: none;
}

/* Safety: allow flex items to actually grow/shrink */
.story-card--horz .ff-player-wrap,
.story-card__info {
  min-width: 0;
}


/* ---------------------------------------------------------------------
   6) Home – Filters & Feed
   --------------------------------------------------------------------- */
.home-filter {
  position: sticky;
  top: var(--ff-header-h, 64px);
  z-index: 5;
  background-color: rgba(0,0,0,.35);           /* darker */
  backdrop-filter: saturate(180%) blur(10px); 
  margin-bottom: 2rem;
  -webkit-backdrop-filter: saturate(180%) blur(10px); 
}

/* One row, no wrapping: 3 selects + Clear button */
.home-filter__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto; /* 3 equal cols + button */
  align-items: end;
  gap: .5rem;
  padding: .5rem 1rem;
}

/* Keep labels accessible but visually hidden */
.ff-filter > span {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Each control can shrink; no intrinsic min-width fights */
.ff-filter {
  position: relative;
  min-width: 0;     /* <-- critical so selects can compress */
}

/* Pretty, compact selects */
.home-filter .ff-filter select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  min-height: 36px;
  padding: .4rem 2rem .4rem .6rem;  /* room for chevron */
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 9999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 0 rgba(0,0,0,.02) inset;
  color: #111;
  font-size: .9rem;
  line-height: 1.2;
}

.home-filter .ff-filter select::-ms-expand { display: none; } /* old Edge */

/* Chevron */
.ff-filter::after {
  content: "";
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  width: .675rem;
  height: .45rem;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23111' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
}

/* Focus */
.home-filter .ff-filter select:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
  border-color: #111;
}

/* Clear button stays on the right */
#filter-clear {
  align-self: center;
  padding: .5rem .8rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 9999px;
  background: rgba(255,255,255,.85);
  color: #111;
  font-size: .9rem;
  white-space: nowrap;
  cursor: pointer;
}
#filter-clear:hover { background: rgba(255,255,255,.95); }

/* Micro-tweak for very small phones: make controls a bit tighter, still one row */
@media (max-width: 380px) {
  .home-filter__controls { gap: .4rem; padding: .45rem .75rem; }
  .home-filter .ff-filter select { padding: .35rem 1.8rem .35rem .5rem; font-size: .85rem; }
  .ff-filter::after { right: .5rem; width: .6rem; height: .4rem; }
  #filter-clear { padding: .45rem .65rem; font-size: .85rem; }
}

/* Grid loading indicator (optional) */
#home-feed-grid.is-loading::after {
  content: 'Loading…';
  display: block;
  text-align: center;
  padding: 1rem;
  color: #666;
}

/* No-results box */
.ff-empty {
  margin: 1rem auto 2rem;
  padding: .25rem 0;
  max-width: 720px;
  background: transparent;
  color: var(--ff-grey-90);
  border: 0;
  text-align: center;
  font-size: 1rem;
}

/* Desktop: compact selects aligned right */
@media (min-width: 1024px) {
  .home-filter__controls {
    display: flex;              /* override grid */
    flex-wrap: nowrap;          /* one row */
    justify-content: flex-end;  /* push to the right */
    gap: .75rem;
    padding: .5rem 1rem;
  }

  .ff-filter {
    flex: 0 0 clamp(200px, 22vw, 260px); /* smaller, consistent widths */
    min-width: 0;                        /* allow flex to shrink if needed */
  }

  .home-filter .ff-filter select {
    width: 100%;
    min-height: 36px;
    padding: .4rem 2rem .4rem .6rem;     /* keep chevron room */
    font-size: .9rem;
  }

  #filter-clear {
    flex: 0 0 auto;                      /* natural width, stays at far right */
    white-space: nowrap;
  }
}

/* Make the grid’s white paint start at the very top */
#home-feed-grid {
  background: #f5f5f5;
  border-top: 1px solid transparent; /* prevents margin collapse */
}


/* ---------------------------------------------------------------------
   7) Pagination (server-rendered pages we scrape)
   --------------------------------------------------------------------- */
.ff-pagination {
  margin: 2rem 0;
}

.ff-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ff-pagination .page-numbers li {
  margin: 0;
}

.ff-pagination .page-numbers a,
.ff-pagination .page-numbers span {
  display: inline-block;
  min-width: 2.25rem;
  padding: .5rem .75rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  text-decoration: none;
  font-size: .9375rem;
  line-height: 1;
  color: #111;
}

.ff-pagination .page-numbers a:hover {
  background: #f7f7f7;
}

.ff-pagination .page-numbers .current,
.ff-pagination .page-numbers a:focus-visible {
  background: #111;
  color: #fff;
  border-color: #111;
  outline: none;
}

.ff-pagination .page-numbers .prev,
.ff-pagination .page-numbers .next {
  font-weight: 600;
}

@media (max-width: 420px) {
  .ff-pagination .page-numbers {
    gap: .375rem;
  }
  .ff-pagination .page-numbers a,
  .ff-pagination .page-numbers span {
    padding: .45rem .6rem;
  }
}

/* =========================================
   Plyr "dark glass" — global overrides
   (keeps DOM + JS intact; minimal changes)
   ========================================= */

/* Replace Plyr’s blue accent globally */
:root {
  /* White accent used for progress, focus rings, etc. */
  --plyr-color-main: rgba(255, 255, 255, 0.85) !important;
}

/* Big overlaid play/pause button */
.plyr__control--overlaid {
  background: rgba(20, 20, 22, 0.55) !important; /* dark glass */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff !important; /* ensure icon stays white */
}
.plyr__control--overlaid:hover,
.plyr__control--overlaid:focus {
  background: rgba(20, 20, 22, 0.7) !important;
  color: #fff !important;
}

/* Inline control buttons: hover/focus surface (replaces blue hover) */
.plyr--video .plyr__controls .plyr__control:hover,
.plyr--video .plyr__controls .plyr__control:focus {
  background: rgba(20, 20, 22, 0.45) !important;
  color: #fff !important;
}

/* Accessible focus ring (keyboard) without the blue halo */
.plyr__control:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35) !important;
}

/* Plyr – make seek/volume sliders explicitly clickable */
.plyr__volume input[type="range"],
.plyr__progress input[type="range"] {
  cursor: pointer;
}

/* Desktop: hide controls + overlaid button until hover */
@media (hover: hover) and (pointer: fine) {
  .plyr__controls,
  .plyr__control--overlaid {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease !important;
  }



  /* Reveal on hover */
  .ff-player-wrap:hover .plyr:not(.plyr--hide-controls) .plyr__controls,
  .ff-player-wrap:hover .plyr:not(.plyr--hide-controls) .plyr__control--overlaid {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}


/* ==============================
   Forged Founders — Footer
   (solid charcoal, brand white text)
   ============================== */

/* Footer: solid charcoal (no blur) */
.ff-footer {
  background: #121212;                  /* charcoal */
  color: rgba(255,255,255,.85);
  border-top: 1px solid #1f1f1f;        /* subtle seam */
  padding: 20px clamp(16px, 4vw, 32px);
  padding-bottom: calc(20px + env(safe-area-inset-bottom)); /* iOS safe area */
}

/* Links */
.ff-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.ff-footer a:hover,
.ff-footer a:focus-visible { color: #fff; text-decoration: underline; }

/* --- Layout (mobile-first) ------------------------------------------- */
/* Base = mobile: one column, left aligned, tidy gaps */
.ff-footer__inner {
  max-width: none;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px); /* match header gutters */
  display: grid;
  grid-template-columns: 1fr;             /* stack */
  align-items: start;
  justify-items: start;                   /* left-align all items */
  gap: 10px;
  text-align: left;
}

/* Regions */
.ff-footer__brand  { justify-self: start; display: flex; align-items: center; gap: 10px; }
.ff-footer .custom-logo { height: 24px; width: auto; vertical-align: middle; }

.ff-footer__center { justify-self: start; display: grid; gap: 4px; }
.ff-footer__copyright { margin: 0; line-height: 1.3; color: rgba(255,255,255,.80); }
.ff-footer__privacy   { margin: 0; line-height: 1.3; display: inline-block; color: rgba(255,255,255,.85); }

.ff-footer__social { justify-self: start; }
.ff-footer__social-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 10px;              /* tight, consistent icon row */
}
.ff-footer__social a {
  display: inline-flex; width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  color: rgba(255,255,255,.85);
  line-height: 0;                        /* centers glyphs inside 32px circle */
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.ff-footer__social a:hover,
.ff-footer__social a:focus-visible {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Mobile footer: center everything when stacked */
@media (max-width: 767px) {
  .ff-footer__inner {
    grid-template-columns: 1fr;   /* stacked */
    justify-items: center;         /* center blocks */
    text-align: center;            /* center text */
  }
  .ff-footer__brand,
  .ff-footer__center,
  .ff-footer__social { justify-self: center; }

  /* center the icon row too */
  .ff-footer__social-list { justify-content: center; gap: 12px; }

  /* tidy sizes/baselines */
  .ff-footer .custom-logo { height: 24px; }
  .ff-footer__copyright,
  .ff-footer__privacy { line-height: 1.3; margin: 0; }
}

/* Desktop footer: true 3-col with the middle truly centered */
@media (min-width: 768px) {
  .ff-footer__inner {
    grid-template-columns: 1fr auto 1fr;  /* symmetric columns */
    justify-items: stretch;                /* don't center everything */
    align-items: center;
    text-align: left;                      /* reset any mobile centering */
  }
  .ff-footer__brand  { justify-self: start; }
  .ff-footer__center { justify-self: center; text-align: center; }
  .ff-footer__social { justify-self: end; }
}


/* Sticky footer — single shell (#page) */
html, body { height: 100%; margin: 0; }

#page {
  min-height: 100svh;              /* fills the viewport, iOS-friendly */
  display: flex;
  flex-direction: column;          /* header → main → footer in a column */
}

main.site-main {                   /* the content area grows to fill space */
  flex: 1 0 auto;
}

.ff-footer {                       /* footer pushed to the bottom on short pages */
  margin-top: auto;
}


.post, .page {
  margin-bottom: 0;
}

/* =========================================
   Contact section: solid top band, text left, form right
   ========================================= */

/* was: padding: 3rem 1rem 4rem; */
.ff-contact {
  position: inherit;
  margin-top: 0;          
  padding: 0 1rem 2rem;  
  background: #fff;
}

/* add inner top spacing here instead */
.ff-contact__grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 520px);
  align-items: start;

  padding-top: 3rem;      /* inner spacing knob */
  padding: 3rem 0 0;  
}

/* solid band stays the same */
.ff-contact__band {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 420px;
  background: #f3f2f0;
  z-index: 0;
  pointer-events: none;
}

/* Text column */
.ff-contact__text h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
}
.ff-contact-intro {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #333;
}

/* Form card */
.ff-contact .wpcf7 form,
.ff-contact .wpcf7-form {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 2rem;
}

/* Labels — make sure they show */
.ff-contact .wpcf7 form label,
.ff-contact .wpcf7-form label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 .2rem;
  color: #222;
}

/* Inputs */
.ff-contact .wpcf7 input[type="text"],
.ff-contact .wpcf7 input[type="email"],
.ff-contact .wpcf7 textarea {
  width: 100%;
  font: inherit;
  line-height: 1.4;
  padding: .75rem .875rem;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
.ff-contact .wpcf7 textarea { min-height: 180px; resize: vertical; }

/* Focus */
.ff-contact .wpcf7 input[type="text"]:focus,
.ff-contact .wpcf7 input[type="email"]:focus,
.ff-contact .wpcf7 textarea:focus {
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 0 5px rgba(0,0,0,.12);
}

/* Errors */
.ff-contact .wpcf7 .wpcf7-not-valid { border-color: #b00020; }
.ff-contact .wpcf7 .wpcf7-not-valid-tip {
  margin-top: .375rem; font-size: .9375rem; color: #b00020;
}

/* Submit */
.ff-contact .wpcf7 .wpcf7-submit {
  appearance: none;
  display: inline-block;
  border: 0;
  border-radius: 6px;
  padding: .75rem 1.25rem;
  background: #121212;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  margin-top: 1.5rem;
}
.ff-contact .wpcf7 .wpcf7-submit:hover { background: #0e0e0e; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.ff-contact .wpcf7 .wpcf7-submit:active { transform: translateY(1px); }

/* Response */
.ff-contact .wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  border-radius: 6px;
  padding: .75rem 1rem;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
}

/* Mobile stack */
@media (max-width: 767px) {
  .ff-contact {
    padding: 0 1rem 3rem; /* still no top padding here */
  }
  .ff-contact__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 2rem;    /* slightly tighter on mobile */
  }
  .ff-contact__band { height: 300px; }

  .ff-contact .wpcf7 form,
  .ff-contact .wpcf7-form {
    padding: 0.8rem;
}

}

/* iOS safe areas */
@supports (padding: max(env(safe-area-inset-top), 0px)) {
  .ff-contact { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
}


/* =========================================
   Nominate section: solid top band, text left, form right
   mirrors Contact spacing model
   ========================================= */

.ff-nominate-page {
  position: inherit;            /* match Contact behavior */
  margin-top: 0;
  padding: 0 1rem 2rem;         /* no top padding; outer bottom spacing here */
  background: #fff;
}

/* inner spacing below the band lives on the grid */
.ff-nominate-page__grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 520px);
  align-items: start;

  padding: 3rem 0 0;            /* inner spacing knob */
  /* If you want separation between columns, add: gap: 2rem; */
}

/* solid band behind the content */
.ff-nominate-page__band {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 740px;                /* adjust if the left copy is taller */
  background: #f3f2f0;
  z-index: 0;
  pointer-events: none;
}

/* text column */
.ff-nominate-page__text h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
}
.ff-nominate-page__text {
    padding: 0 8px 0;
}

.ff-nominate-intro {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #333;
}
.ff-nominate-subhead {
  margin: 1.5rem 0 .5rem;
  font-size: 1.125rem;
  line-height: 1.3;
}
.ff-nominate-list,
.ff-nominate-steps {
  margin: 0 0 1rem 1.1rem;      /* simple bullets/numbers with modest indent */
  padding: 0;
}
.ff-nominate-list li,
.ff-nominate-steps li {
  margin: .375rem 0;
}

/* form card (CF7) */
.ff-nominate-page .wpcf7 form,
.ff-nominate-page .wpcf7-form {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 2rem;
}

/* labels and inputs */
.ff-nominate-page .wpcf7 form label,
.ff-nominate-page .wpcf7-form label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 .2rem;
  color: #222;
}
.ff-nominate-page .wpcf7 input[type="text"],
.ff-nominate-page .wpcf7 input[type="email"],
.ff-nominate-page .wpcf7 textarea {
  width: 100%;
  font: inherit;
  line-height: 1.4;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
.ff-nominate-page .wpcf7 textarea { min-height: 180px; resize: vertical; }

/* focus accent */
.ff-nominate-page .wpcf7 input[type="text"]:focus,
.ff-nominate-page .wpcf7 input[type="email"]:focus,
.ff-nominate-page .wpcf7 textarea:focus {
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 0 5px rgba(0,0,0,.12);
}

/* errors */
.ff-nominate-page .wpcf7 .wpcf7-not-valid { border-color: #b00020; }
.ff-nominate-page .wpcf7 .wpcf7-not-valid-tip {
  margin-top: .375rem; font-size: .9375rem; color: #b00020;
}

/* submit */
.ff-nominate-page .wpcf7 .wpcf7-submit {
  appearance: none;
  display: inline-block;
  border: 0;
  border-radius: 6px;
  padding: .75rem 1.25rem;
  background: #121212;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  margin-top: 1.5rem;
}
.ff-nominate-page .wpcf7 .wpcf7-submit:hover { background: #0e0e0e; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.ff-nominate-page .wpcf7 .wpcf7-submit:active { transform: translateY(1px); }

/* response */
.ff-nominate-page .wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  border-radius: 6px;
  padding: .75rem 1rem;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
}

/* mobile stack */
@media (max-width: 767px) {
  .ff-nominate-page {
    padding: 0 1rem 3rem;
  }
  .ff-nominate-page__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 2rem;
  }
  .ff-nominate-page__band { height: 1200px; }

  .ff-nominate-page .wpcf7 form,
  .ff-nominate-page .wpcf7-form {
    padding: .8rem;
  }
}

/* iOS safe areas */
@supports (padding: max(env(safe-area-inset-top), 0px)) {
  .ff-nominate-page {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* small print */
.ff-nominate-smallprint {
  margin-top: 1rem;
  font-size: .9375rem;
  color: #555;
}


.ff-nominate-switch { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: .5rem; 
  margin: 0 0 1rem; 
  padding: .5rem; 
  border-radius: 6px; 
}
.ff-nominate-switch__legend { 
  grid-column: 1 / -1; 
  margin: 0 0 .5rem; 
  font-size: 2rem; 
  color: #222; 
  padding: 0 14px 0;
}
.ff-switch-option { display: block; }
.ff-switch-option input { 
  position: absolute; 
  opacity: 0; 
  width: 1px; 
  height: 1px; 
}
.ff-switch-option span { 
  display: block; 
  text-align: center; 
  padding: .5rem .75rem; 
  border-radius: 6px; 
  background: #fff; 
  box-shadow: 0 1px 2px rgba(0,0,0,.06) inset; 
  cursor: pointer; 
  user-select: none; 
}
.ff-switch-option input:checked + span { 
  background: #121212; 
  color: rgba(255,255,255,.92); 
}


/* FORM COLUMN CAN SHRINK */
.ff-nominate-page__form { 
  min-width: 0;                 /* allow the grid child to shrink */
}

/* TRUE 100% WIDTH CONTROLS (SCOPED) */
.ff-nominate-page .wpcf7,
.ff-nominate-page .wpcf7 * {
  box-sizing: border-box;       /* inputs/selects include padding + border */
}

/* ENSURE THE FORM WRAPPER ITSELF DOESN'T EXCEED ITS COLUMN */
.ff-nominate-page .wpcf7 form,
.ff-nominate-page .wpcf7-form {
  max-width: 100%;
}

/* EXPLICIT 100% ON ALL CONTROLS USED IN THIS FORM */
.ff-nominate-page .wpcf7 input[type="text"],
.ff-nominate-page .wpcf7 input[type="email"],
.ff-nominate-page .wpcf7 input[type="tel"],
.ff-nominate-page .wpcf7 input[type="url"],
.ff-nominate-page .wpcf7 select,
.ff-nominate-page .wpcf7 textarea {
  width: 100%;
  max-width: 100%;
}

/* SAFETY: LONG VALUES IN URL/TEXT SHOULD WRAP VISUALLY (iOS Safari quirks) */
.ff-nominate-page .wpcf7 input[type="url"],
.ff-nominate-page .wpcf7 input[type="text"] {
  overflow-wrap: anywhere;
}


/* =========================================
   About page — editorial layout (no band)
   ========================================= */
.ff-about {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  color: #222;
}

.ff-about__header h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.ff-about__dek {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #444;
}

/* Body type rhythm */
.ff-about__content p {
  margin: 0 0 1rem;
  line-height: 1.65;
  font-size: 1.0625rem; /* ~17px; keeps it readable without feeling oversized */
}

/* Subheads */
.ff-about__content h2 {
  margin: 2rem 0 .5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: .01em;
}

/* In-flow pull quote (left rule) */
.ff-about .ff-pullquote {
  margin: 1rem 0 1.25rem;
  padding-left: .875rem;
  border-left: 3px solid #121212;
  font-style: italic;
  line-height: 1.6;
  color: #222;
}


/* CTA */
.ff-about__cta {
  margin-top: 2rem;
}
.ff-button {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 6px;
  background: #121212;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
}
.ff-button:hover { background: #0e0e0e; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.ff-button:active { transform: translateY(1px); }

/* Mobile tweaks */
@media (max-width: 767px) {
  .ff-about { padding: 2rem 1rem 2.5rem; }
  .ff-about__content p { font-size: 1rem; }
}

/* iOS safe areas */
@supports (padding: max(env(safe-area-inset-top), 0px)) {
  .ff-about {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* 404 tiny spacing (reuses existing classes) */
.ff-about__content .ff-button + .ff-button { margin-left: .5rem; }


/* Buttons: keep brand color on all link states */
a.ff-button,
a.ff-button:link,
a.ff-button:visited,
a.ff-button:hover,
a.ff-button:active,
a.ff-button:focus {
  color: rgba(255,255,255,.92);
  text-decoration: none;
}

/* Optional: if you use the light/inverted button anywhere */
a.ff-button--inverted,
a.ff-button--inverted:link,
a.ff-button--inverted:visited {
  color: #121212;
}

/* 404 search: show hand cursor on submit */
.ff-about .search-form input[type="submit"],
.ff-about .search-form button,
.ff-about .search-form .search-submit {
  cursor: pointer;
}

/* About page lists: no outer margin, keep tidy rhythm */
.ff-about__content ul,
.ff-about__content ol {
  margin: 0;                /* your request */
}

.entry-content{
  margin: 0;      
}


/* Accept page only */
.ff-accept-page .ff-nominate-switch { margin-bottom: 1rem; }
.ff-accept-page .ff-accept-intro { grid-column: 1 / -1; }  /* full width */

.ff-accept-page .ff-accept-intro {
  margin: .25rem 0 0;
  font-size: .95rem;
  line-height: 1.5;
  padding: 0 12pt;
}
.ff-accept-page .ff-nominate-switch__legend {
  display: block;
  margin: 0;
}


