/*
Theme Name: London Fortune Play
Theme URI: https://londonfortuneplay.uk
Author: London Fortune Play
Description: Astra child for londonfortuneplay.uk. London fog palette, Fraunces + Work Sans. Visual contract v3.
Template: astra
Version: 1.2.0
Text Domain: fortplay
*/

/* --------------------------------------------------------------
   1. Variables (dials)
-------------------------------------------------------------- */
:root {
  --fp-paper: #e7edf2;
  --fp-ground: #e7edf2;
  --fp-ink: #1b242d;
  --fp-accent: #8f2d3b;
  --fp-accent-deep: #6e212c;
  --fp-rule: #c5d0da;
  --fp-soft: #f0f4f7;
  --fp-surface: #f0f4f7;
  --fp-muted: #3d4a56;
  --fp-font-head: "Fraunces", Georgia, serif;
  --fp-font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
  --fp-radius: 10px;
  --fp-max: 1120px;
  --fp-shadow: 0 1px 2px rgba(27, 36, 45, 0.05), 0 8px 22px rgba(27, 36, 45, 0.06);
  --fp-footer: #161a20;
  --fp-footer-ink: #d8dee6;
}

/* --------------------------------------------------------------
   2. Astra chrome off + container
-------------------------------------------------------------- */
#masthead,
.ast-above-header,
.ast-main-header-wrap,
.ast-below-header-wrap,
header.site-header,
.site-header,
#colophon,
.ast-footer-overlay,
.ast-small-footer,
.ast-footer-html,
.site-footer .ast-small-footer,
.ast-single-entry-banner,
.entry-header,
.ast-archive-entry-banner,
h1.entry-title,
.entry-title {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

#content .ast-container,
.ast-container,
.site-content,
#page,
#content,
.ast-container-fluid {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  background: var(--fp-ground) !important;
  padding: 0 !important;
  margin: 0 !important;
}

#primary,
.site-main,
#main,
.ast-plain-container .site-content,
.content-area {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  margin: 0 !important;
  float: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.entry-content,
#primary .entry-content,
.fp-measure {
  width: min(var(--fp-max), calc(100% - 64px));
  max-width: var(--fp-max);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

@media (max-width: 599px) {
  .entry-content,
  #primary .entry-content,
  .fp-measure {
    width: min(var(--fp-max), calc(100% - 32px));
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .entry-content,
  #primary .entry-content,
  .fp-measure {
    width: min(var(--fp-max), calc(100% - 48px));
  }
}

/* --------------------------------------------------------------
   3. Base
-------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

html,
body,
.fp-site,
body.fp-site,
body.page,
body.home {
  background-color: var(--fp-ground) !important;
  background:
    radial-gradient(ellipse 70% 32% at 50% -8%, rgba(143, 45, 59, 0.07), transparent 62%),
    var(--fp-ground) !important;
  color: var(--fp-ink) !important;
  font-family: var(--fp-font-body);
  font-size: 17px !important;
  line-height: 1.6 !important;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fp-font-head);
  color: var(--fp-ink);
  line-height: 1.22;
  font-weight: 600;
  text-align: start !important;
  margin-inline: 0;
}

a {
  color: var(--fp-accent-deep);
}

a:hover, a:focus {
  color: var(--fp-accent);
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------
   4. Header / masthead
-------------------------------------------------------------- */
.fp-header {
  background: var(--fp-soft);
  border-bottom: 1px solid var(--fp-rule);
  position: relative;
  z-index: 100;
  overflow: visible !important;
}

.fp-header-inner {
  width: min(var(--fp-max), calc(100% - 64px));
  max-width: var(--fp-max);
  margin-inline: auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
  min-height: 72px;
  overflow: visible !important;
}

/* D9 / Gate 39: the header is part of the page, not a tray laid on top of it.
   The wordmark, the age badge and the navigation panel all start at the article
   column's left edge and end at its right edge, within 8px. */
.fp-header-brand {
  text-align: start;
  padding: 0.55rem 0;
  flex: 1 1 auto;
  min-width: 0;
  margin-inline-start: 0;
}

.fp-header-inner > .fp-age-badge {
  margin-inline-start: 0;
}

@media (max-width: 599px) {
  .fp-header-inner {
    width: min(var(--fp-max), calc(100% - 32px));
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .fp-header-inner {
    width: min(var(--fp-max), calc(100% - 48px));
  }
}

.fp-header-brand {
  text-align: start;
  padding: 0.55rem 0;
  flex: 0 0 auto;
}

.fp-header-brand a {
  font-family: var(--fp-font-head);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--fp-ink);
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
  font-weight: 700;
}

.fp-header-brand a:hover,
.fp-header-brand a:focus {
  color: var(--fp-accent);
}

.fp-tagline {
  display: block;
  font-family: var(--fp-font-body);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-accent);
  margin-top: 0.12rem;
  font-weight: 600;
}

.fp-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--fp-accent);
  color: #f5eef0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.fp-age-badge--foot {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------
   5. Navigation
-------------------------------------------------------------- */
.fp-nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: var(--fp-ink);
  color: var(--fp-soft);
  border: 1px solid var(--fp-ink);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  min-width: 88px;
}

/* Below 1121px the taxonomy collapses behind a real button (Gate 25). */
@media (max-width: 1120px) {
  .fp-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .fp-nav-row {
    display: none;
    flex: 1 0 100%;
    border-top: 1px solid var(--fp-rule);
    padding: 0.4rem 0 0.6rem;
  }

  .fp-nav-row.is-open {
    display: block;
  }

  .fp-nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    width: 100%;
  }

  .fp-nav-list > li {
    width: 100%;
  }

  .fp-nav-link,
  .fp-nav-list > li > a {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.5rem;
  }

  .fp-drop-panel,
  ul.fp-drop-panel {
    position: static;
    display: none;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    box-shadow: none;
    border-inline-start: 2px solid var(--fp-rule);
    border-radius: 0 8px 8px 0;
    margin-inline-start: 0.75rem;
    padding: 0.2rem 0.2rem 0.2rem 0.5rem;
  }

  .fp-drop.is-open > .fp-drop-panel {
    display: block;
  }
}

.fp-nav-toggle:focus {
  outline: 2px solid var(--fp-accent);
  outline-offset: 2px;
}

/* Gate 39 / D9: the navigation panel spans the article column exactly.
   It takes its own line inside the masthead so its box starts at the same x
   as the hero, the board and every table on the page. */
.fp-nav-row {
  display: flex;
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--fp-rule);
  overflow: visible !important;
}

.fp-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow: visible !important;
  max-width: 100%;
}

.fp-nav-list > li {
  position: relative;
  overflow: visible !important;
}

.fp-nav-link,
.fp-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 16px;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--fp-ink) !important;
  text-decoration: none;
  line-height: 1.2;
  text-transform: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Gate 40: all top-level items share one `top` coordinate at 1024 and above.
   The taxonomy fits on one line because the labels are short and the padding
   steps down as the column narrows — never because the type is shrunk. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .fp-nav-link,
  .fp-nav-list > li > a {
    padding: 0.3rem 0.32rem;
    font-size: 15px;
    letter-spacing: -0.01em;
  }

  .fp-caret {
    font-size: 0.62em;
  }
}

.fp-nav-link:hover,
.fp-nav-link:focus,
.fp-nav-list > li > a:hover,
.fp-nav-list > li > a:focus {
  color: var(--fp-accent) !important;
  background: rgba(143, 45, 59, 0.08);
  border-color: rgba(143, 45, 59, 0.18);
}

.fp-caret {
  font-size: 0.7em;
  opacity: 0.85;
}

/* Dropdown */
.fp-drop-panel,
ul.fp-drop-panel,
ul.sub-menu.fp-drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: auto;
  background: var(--fp-soft);
  border: 1px solid var(--fp-rule);
  border-radius: 10px;
  box-shadow: var(--fp-shadow);
  min-width: 15rem;
  max-width: min(22rem, 80vw);
  max-height: 70vh;
  overflow: auto;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
}

.fp-drop:hover > .fp-drop-panel,
.fp-drop:focus-within > .fp-drop-panel,
.fp-drop.is-open > .fp-drop-panel {
  display: block;
}

.fp-drop-panel a,
ul.sub-menu.fp-drop-panel a {
  display: block;
  padding: 0.45rem 0.75rem;
  white-space: normal;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fp-ink) !important;
  text-decoration: none;
  border: none;
}

.fp-drop-panel a:hover,
.fp-drop-panel a:focus {
  background: var(--fp-paper);
  color: var(--fp-accent) !important;
}

/* --------------------------------------------------------------
   6. Opening block / hero
-------------------------------------------------------------- */
.fp-breadcrumb,
.fp-crumbs-wrap {
  text-align: start !important;
  margin: 0.85rem 0 0.35rem;
}

.fp-breadcrumb ol,
.fp-crumbs,
.fp-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--fp-muted);
  justify-content: flex-start;
}

.fp-breadcrumb li + li::before,
.fp-crumbs li + li::before,
.fp-breadcrumb-list li + li::before {
  content: "/";
  color: var(--fp-rule);
  margin-right: 0.35rem;
}

.fp-breadcrumb a,
.fp-crumbs a {
  color: var(--fp-muted);
  text-decoration: none;
}

.fp-hero {
  text-align: start !important;
  padding: 1.1rem 0 0.4rem;
  max-width: 100% !important;
  margin: 0 !important;
  width: 100%;
}

.fp-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fp-accent);
  margin: 0 0 0.4rem;
}

.fp-hero h1,
.entry-content h1,
h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0.2rem 0 0.7rem;
  text-align: start !important;
  max-width: 100%;
}

.fp-hero h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.7rem 0 0;
  border-radius: 999px;
  background: var(--fp-accent);
}

.fp-standfirst {
  font-size: 1.15rem;
  color: var(--fp-muted);
  max-width: 42rem;
  margin: 0;
  line-height: 1.55;
  text-align: start;
}

.fp-chips,
.fp-band-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0 0.2rem;
  padding: 0;
  list-style: none;
}

.fp-chip {
  display: inline-block;
  background: var(--fp-soft);
  border: 1px solid var(--fp-rule);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fp-ink);
}

.fp-board-leadin {
  font-size: 0.95rem;
  color: var(--fp-muted);
  margin: 0.9rem 0 0.5rem;
}

/* --------------------------------------------------------------
   6b. Opening block budget (contract v3 §4, Gate 6)
   Crumb + H1 + standfirst + disclosure must leave the ranking
   reachable at 1366x768: the block's top edge <= 600px down.
-------------------------------------------------------------- */
.fp-hero {
  text-align: start !important;
  padding: 0.5rem 0 0.2rem;
  max-width: 100% !important;
  margin: 0 !important;
  width: 100%;
}

.fp-hero h1,
.entry-content h1,
h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin: 0.1rem 0 0.4rem;
  text-align: start !important;
  max-width: 100%;
}

.fp-hero h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.45rem 0 0;
  border-radius: 999px;
  background: var(--fp-accent);
}

.fp-standfirst {
  font-size: 1.03rem;
  color: var(--fp-muted);
  max-width: 44rem;
  margin: 0;
  line-height: 1.45;
  text-align: start;
}

.fp-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fp-accent);
  margin: 0 0 0.25rem;
}

/* The paid-placement sentence: one, above the block, quiet ink, body face. */
.fp-board-disclosure {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--fp-muted);
  margin: 0.55rem 0 0.25rem;
  font-style: normal;
  max-width: 100%;
}

/* The lead-in now sits under the board, so it is body copy, not a headline. */
.fp-board-leadin {
  font-size: 0.9rem;
  color: var(--fp-muted);
  line-height: 1.5;
  margin: 0.1rem 0 0.9rem;
}
.fp-board {
  margin: 0 0 1.1rem;
  width: 100%;
  min-width: 0;
}

/* The wrapper a page puts around the board: keep the whole opening block
   (head + five rows) inside the 640px height budget. */
.fp-board-block {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Compress the opening block so the board lands inside the height budget.
   The title is a real H2 but not display type; the head holds no disclosure —
   that sentence renders once, above the whole block, in document order. */
.fp-board-head {
  margin: 0 0 0.45rem;
  text-align: start !important;
  max-width: 100%;
  padding: 0;
}

.fp-board-title {
  font-size: 1.3rem !important;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.15rem !important;
  text-align: start !important;
  border-bottom: none !important;
  padding: 0 !important;
}

.fp-board-lead,
.fp-board-note {
  font-size: 0.85rem;
  color: var(--fp-muted);
  margin: 0;
  line-height: 1.45;
}

.fp-board-rows {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

.fp-band {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: var(--fp-soft);
  border: 1px solid var(--fp-rule);
  border-radius: 10px;
  border-inline-start: 3px solid var(--fp-rule);
  padding: 6px 14px;
  margin: 0;
  min-height: 0;
  max-width: 100%;
  width: 100%;
  overflow: visible;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* One row, one band, five slots, ONE column of rows at every width.
   Gate 45: `.fp-board-rows` is a single track; the row itself is a five-slot band.
   Height budget (Gate 8): each row lands at 96 to 114px including its gap. */
.fp-band-row {
  display: grid !important;
  grid-template-columns: 26px minmax(140px, 0.95fr) minmax(0, 1.2fr) minmax(140px, 0.85fr) minmax(150px, 0.72fr) !important;
  align-items: center;
  gap: 0.2rem 0.75rem;
  width: 100%;
  min-width: 0;
}

/* Contract v3 / D8: nothing in a row is clipped. No line clamp, no ellipsis,
   no fixed height with overflow hidden. The brand block wraps instead, and the
   row grows if it has to: a row that does not fit is redesigned, never cropped. */
.fp-band-name,
.fp-band-offer,
.fp-band-terms p {
  display: block;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: none;
  -webkit-box-orient: horizontal;
  -webkit-box-pack: initial;
}

.fp-band--lead {
  border-inline-start-color: var(--fp-accent);
  box-shadow: 0 0 0 2px rgba(143, 45, 59, 0.12);
}

.fp-band--lead .fp-band-name {
  color: var(--fp-accent);
}

.fp-band:hover {
  border-color: #d4b0b6;
}

.fp-band-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--fp-muted);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--fp-rule);
  border-radius: 8px;
}

.fp-band-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
}

.fp-band-tile {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  color: #e8eef3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}

/* Operator logo mark: inline SVG emblem, always crisp and never a broken image. */
.fp-band-tile .fp-band-logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
}

.fp-band-tile .fp-band-logo-mark text {
  font-family: var(--fp-font-head);
}

.fp-band-brand-text {
  min-width: 0;
}

.fp-band-name {
  font-family: var(--fp-font-head);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* The offer is one line directly under the name, the figure and the spins as the
   operator writes them. It wraps rather than clips: no ellipsis in a row, ever. */
.fp-band-offer {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--fp-muted);
  margin: 0.1rem 0 0;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.fp-band-terms {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.79rem;
  color: var(--fp-muted);
  line-height: 1.35;
  overflow-wrap: break-word;
}

.fp-band-terms p {
  margin: 0;
}

.fp-band-pays {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.fp-band-pays li {
  font-size: 0.72rem;
  padding: 2px 10px;
  border: 1px solid var(--fp-rule);
  border-radius: 999px;
  color: var(--fp-ink);
  background: var(--fp-paper);
}

/* Two figures, each with a small label over it: the largest type in the block. */
.fp-band-figures {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}

.fp-band-fig {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.fp-band-fig-label {
  font-size: 0.62rem;
  color: var(--fp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1.2;
}

.fp-band-fig-val {
  font-family: var(--fp-font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fp-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.fp-band-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  margin-inline-start: 0;
}

.fp-band-age {
  margin: 0;
  font-size: 0.68rem;
  color: var(--fp-muted);
  line-height: 1.2;
  text-align: center;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-weight: 500;
}

.fp-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-color: var(--fp-accent) !important;
  background-image: none !important;
  color: #f7eef0 !important;
  min-width: 160px !important;
  min-height: 44px !important;
  padding: 0.55rem 1rem !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid var(--fp-accent-deep) !important;
  box-shadow: 0 6px 14px rgba(143, 45, 59, 0.22);
  transition: background-color 0.15s ease, transform 0.15s ease;
  text-align: center;
}

.fp-cta:hover,
.fp-cta:focus {
  background-color: var(--fp-accent-deep) !important;
  color: #f7eef0 !important;
  transform: translateY(-1px);
  outline: 2px solid var(--fp-ink);
  outline-offset: 2px;
}

/* Small print under the button: the age statement and terms line. Base
   metrics are set once in the ranking section above; this rule is a no-op
   guard so a later duplicate cannot re-inflate the row height. */
.fp-band-age {
  margin: 0;
  font-size: 0.68rem;
  color: var(--fp-muted);
  line-height: 1.2;
  text-align: center;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-weight: 500;
}

/* The expander: closed by default, summary only, and the row's height budget
   is never spent on a body nobody opened (Gate 8). */
.fp-band-more {
  font-size: 0.76rem;
  color: var(--fp-muted);
  border-top: 1px solid var(--fp-rule);
  padding-top: 0.15rem;
  margin: 0;
  width: 100%;
  display: block;
  line-height: 1.3;
}

.fp-band-more:not([open]) > .fp-band-more-body,
.fp-band-more:not([open]) > div {
  display: none !important;
}

.fp-band-more-body {
  padding: 0.35rem 0 0.1rem;
}

.fp-band-more-body p {
  margin: 0;
  line-height: 1.45;
}

/* The summary is one line at the row width, a full phrase, and it never clips
   (Gate 52): no nowrap, no fixed width, no ellipsis. */
.fp-band-more summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--fp-accent-deep);
  list-style: none;
  white-space: normal;
  overflow: visible;
  display: inline-block;
  max-width: 100%;
  padding: 2px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.fp-band-more summary:hover,
.fp-band-more summary:focus {
  color: var(--fp-accent);
}

.fp-band-more summary:focus-visible {
  outline: 2px solid var(--fp-ink);
  outline-offset: 2px;
}

.fp-band-more summary::-webkit-details-marker {
  display: none;
}

.fp-band-more[open] summary {
  margin-bottom: 0.25rem;
}

.fp-board-empty {
  padding: 1.2rem;
  text-align: start;
  color: var(--fp-muted);
  border: 1px dashed var(--fp-rule);
  border-radius: 10px;
  background: var(--fp-soft);
}

/* --------------------------------------------------------------
   8. Body typography
-------------------------------------------------------------- */
.entry-content p {
  margin: 0 0 1rem;
}

.entry-content h2 {
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--fp-rule);
  text-align: start !important;
}

.entry-content h3 {
  font-size: 1.18rem;
  margin: 1.4rem 0 0.55rem;
  text-align: start !important;
}

.entry-content h2 + *,
.entry-content h3 + * {
  font-size: 17px;
}

/* --------------------------------------------------------------
   9. TOC / contents
-------------------------------------------------------------- */
.fp-toc,
.fp-contents {
  background: var(--fp-soft);
  border: 1px solid var(--fp-rule);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.2rem 0;
  width: 100%;
  max-width: 100%;
}

.fp-toc ol,
.fp-contents ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 1.5rem;
}

.fp-toc a,
.fp-contents a {
  color: var(--fp-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--fp-rule);
}

.fp-toc a:hover,
.fp-contents a:hover {
  color: var(--fp-accent);
}

/* --------------------------------------------------------------
   10. Tables
-------------------------------------------------------------- */
.fp-tablewrap,
.fp-scrollwrap,
.fp-figure,
figure.fp-figure {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0;
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

/* Guard: any wrapper the content uses around a wide comparison table. */
.fp-scrollwrap > .fp-table,
.fp-scrollwrap > table {
  margin-block: 0;
}

.fp-table,
table.fp-table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: transparent;
}

.fp-table caption,
.entry-content table caption {
  caption-side: top;
  text-align: start;
  font-size: 0.85rem;
  color: var(--fp-muted);
  padding-bottom: 0.5rem;
}

.fp-table th,
.entry-content table th {
  background: transparent !important;
  color: var(--fp-ink) !important;
  text-align: start;
  padding: 0.55rem 0.65rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fp-rule) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.fp-table td,
.entry-content table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--fp-rule) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  vertical-align: top;
  background: transparent !important;
}

.fp-table tbody tr,
.fp-table tbody tr:nth-child(even),
.fp-table tbody tr:nth-child(odd),
.entry-content table tbody tr,
.entry-content table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(odd),
.fp-table tbody td,
.entry-content table tbody td {
  background-color: transparent !important;
  background: transparent !important;
}

/* --------------------------------------------------------------
   11. Callouts / calc / FAQ / care
-------------------------------------------------------------- */
.fp-licence,
section.fp-care,
.fp-calc {
  border: 1px solid var(--fp-rule);
  border-inline-start: 4px solid var(--fp-accent);
  background: var(--fp-soft);
  padding: 1.1rem 1.25rem;
  margin: 1.4rem 0;
  border-radius: 0 10px 10px 0;
  width: 100%;
  max-width: 100%;
}

.fp-care h2,
.fp-calc h2,
.fp-calc h3 {
  margin-top: 0;
  border-bottom: none;
  font-size: 1.15rem;
}

.fp-calc label,
.fp-calc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.7rem 0 0.25rem;
  color: var(--fp-ink);
}

.fp-calc input[type=number],
.fp-calc select,
.fp-calc-input {
  width: 100%;
  max-width: 14rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--fp-rule);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--fp-paper);
  color: var(--fp-ink);
}

.fp-calc button {
  background: var(--fp-accent);
  color: #f7eef0;
  border: 1px solid var(--fp-accent-deep);
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.85rem;
  min-height: 44px;
}

.fp-calc-result {
  font-size: 1.05rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--fp-rule);
}

.fp-calc-note {
  font-size: 0.82rem;
  color: var(--fp-muted);
  margin-top: 0.45rem;
}

.fp-faqs details.fp-faq,
details.fp-faq {
  border: 1px solid var(--fp-rule);
  border-radius: 10px;
  background: var(--fp-soft);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.fp-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1rem;
  font-family: var(--fp-font-body);
  color: var(--fp-ink);
}

.fp-faq-a {
  padding: 0 1rem 0.85rem;
  color: var(--fp-ink);
}

.fp-figure figcaption {
  font-size: 0.85rem;
  color: var(--fp-muted);
  margin-top: 0.5rem;
  text-align: start;
}

.fp-figure svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--fp-rule);
  border-radius: 10px;
  background: var(--fp-soft);
}

/* --------------------------------------------------------------
   12. Onward / colophon
-------------------------------------------------------------- */
.fp-onward {
  margin: 1.8rem 0;
  width: 100%;
}

.fp-onward h2 {
  font-size: 1.2rem;
  text-align: start !important;
}

.fp-onward ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
}

.fp-onward a {
  color: var(--fp-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--fp-rule);
}

.fp-colophon {
  text-align: start;
  color: var(--fp-muted);
  font-size: 0.85rem;
  padding: 1.2rem 0 0.4rem;
  border-top: 1px solid var(--fp-rule);
  margin-top: 2rem;
  width: 100%;
}

/* --------------------------------------------------------------
   13. Footer (dark, GEO)
-------------------------------------------------------------- */
.fp-footer,
footer.fp-footer {
  display: block !important;
  background: var(--fp-footer) !important;
  background-image: none !important;
  border-top: 3px solid var(--fp-accent);
  padding: 2rem 0 1.5rem;
  text-align: start !important;
  color: var(--fp-footer-ink) !important;
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2.5rem;
  position: relative;
  z-index: 5;
}

.fp-footer-inner {
  width: min(var(--fp-max), calc(100% - 64px));
  max-width: var(--fp-max);
  margin-inline: auto;
  padding-inline: 0;
}

@media (max-width: 599px) {
  .fp-footer-inner {
    width: min(var(--fp-max), calc(100% - 32px));
  }
}

.fp-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.fp-footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-accent);
  margin: 0 0 0.55rem;
}

.fp-footer p {
  margin: 0 0 0.55rem;
  color: var(--fp-footer-ink);
  text-align: start;
}

.fp-footer a {
  color: #f0f3f6 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-footer-links li {
  margin: 0.3rem 0;
}

.fp-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  border-top: 1px solid rgba(200, 210, 220, 0.18);
  padding-top: 1rem;
}

.fp-footer-bar p {
  margin: 0;
  flex: 1 1 14rem;
}

.fp-footer-copy {
  flex: 1 1 100%;
  font-size: 0.8rem;
  color: #a8b2bc !important;
}

/* Hide residual parent footers without removing landmarks if any slip through */
.site-footer:not(.fp-footer),
footer.site-footer:not(.fp-footer) {
  display: none !important;
}

/* --------------------------------------------------------------
   14. Responsive
-------------------------------------------------------------- */
@media (max-width: 1120px) {
  /* The row stays one band here: the terms line gives up its width first, never
     its slot. Wrapping the row to a second band is what breaks the height budget. */
  .fp-band-row {
    flex-wrap: nowrap;
    gap: 0.4rem 0.7rem;
  }

  .fp-band-brand {
    flex: 1 1 180px;
    min-width: 150px;
    max-width: 220px;
  }

  .fp-band-terms {
    flex: 1 1 110px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .fp-band-figures {
    gap: 0.7rem;
  }

  .fp-band-fig-val {
    font-size: 1.4rem;
  }

  .fp-band-action {
    flex: 0 1 160px;
    min-width: 160px;
    max-width: 190px;
  }
}

@media (max-width: 900px) {
  .fp-nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .fp-nav-row {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--fp-soft);
    border-bottom: 1px solid var(--fp-rule);
    padding: 0.5rem 16px 0.85rem;
    z-index: 150;
    box-shadow: var(--fp-shadow);
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .fp-nav-row.is-open {
    display: block;
  }

  .fp-nav-list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
  }

  .fp-nav-link,
  .fp-nav-list > li > a {
    width: 100%;
    white-space: normal;
  }

  .fp-drop-panel {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    max-height: none;
    max-width: 100%;
    min-width: 0;
    padding-left: 0.5rem;
    display: none;
    background: transparent;
  }

  .fp-drop.is-open > .fp-drop-panel,
  .fp-drop:focus-within > .fp-drop-panel {
    display: block;
  }

  .fp-drop:hover > .fp-drop-panel {
    display: none;
  }

  .fp-drop.is-open:hover > .fp-drop-panel {
    display: block;
  }

  .fp-header {
    position: relative;
    overflow: visible !important;
  }

  .fp-header-inner {
    flex-wrap: wrap;
    min-height: 64px;
  }

  .fp-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .fp-toc ol,
  .fp-contents ol,
  .fp-onward ul {
    columns: 1;
  }
}

@media (max-width: 700px) {
  .fp-band-row {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-band-action {
    margin-inline-start: 0;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
  }

  .fp-cta {
    width: 100%;
  }

  .fp-band-figures {
    justify-content: space-between;
    flex: 1 1 auto;
  }

  .fp-band-brand {
    flex: 1 1 auto;
  }

  .fp-band-offer {
    white-space: normal;
  }

  .fp-band-name {
    white-space: normal;
  }

  .fp-hero h1,
  .entry-content h1 {
    font-size: 1.75rem;
  }

  .fp-standfirst {
    font-size: 1.05rem;
  }
}

/* Prevent horizontal scroll from any wide child */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

#page, #content, .site-content, .ast-container,
.entry-content, .fp-board, .fp-band, .fp-band-row,
.fp-tablewrap, .fp-figure, .fp-footer {
  max-width: 100%;
}

.fp-header,
.fp-header-inner,
.fp-nav-row,
.fp-drop,
nav.fp-nav-row {
  overflow: visible !important;
}

.fp-figure svg,
.entry-content svg {
  max-width: 100% !important;
  height: auto !important;
}

.fp-table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 0;
  border-block-start: 1px solid var(--fp-rule);
  margin: 0.6rem 0 1rem;
}

.fp-table caption,
.entry-content table caption {
  text-align: start;
  font-size: 0.85rem;
  color: var(--fp-muted);
  padding: 0 0 0.5rem;
  line-height: 1.45;
}

/* Cells: 9px by 10px minimum padding. Rules 1px, no zebra, head by weight. */
.fp-table th,
.fp-table td,
.entry-content table th,
.entry-content table td {
  padding: 9px 10px;
  vertical-align: top;
  text-align: start;
  border: 0;
  border-block-end: 1px solid var(--fp-rule);
  background-color: transparent;
  overflow-wrap: break-word;
  hyphens: auto;
}

.fp-table th,
.entry-content table th {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--fp-ink);
  text-transform: none;
  letter-spacing: 0.01em;
}

.fp-table tbody tr,
.entry-content table tbody tr,
.fp-table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even) {
  background-color: transparent;
}

/* --------------------------------------------------------------
   7. Content tables used by the guide pages
   (.fp-data-table / .fp-table-compare inside .fp-tablewrap)
   Compact rows, no zebra, 1px rules — same contract as .fp-table.
-------------------------------------------------------------- */
.fp-data-table,
.fp-table-compare,
table.fp-data-table,
table.fp-table-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.4;
  border: 0;
  border-block-start: 1px solid var(--fp-rule);
  margin: 0.5rem 0 0.8rem;
  background: transparent;
}

.fp-data-table caption,
.fp-table-compare caption,
.fp-table-caption {
  text-align: start;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--fp-muted);
  padding: 0 0 0.45rem;
}

.fp-data-table th,
.fp-data-table td,
.fp-table-compare th,
.fp-table-compare td {
  padding: 6px 9px;
  vertical-align: top;
  text-align: start;
  border: 0;
  border-block-end: 1px solid var(--fp-rule);
  background-color: transparent;
  overflow-wrap: break-word;
}

.fp-data-table th,
.fp-table-compare th {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--fp-ink);
  letter-spacing: 0.01em;
  text-transform: none;
}

.fp-data-table tbody tr,
.fp-table-compare tbody tr,
.fp-data-table tbody tr:nth-child(even),
.fp-table-compare tbody tr:nth-child(even) {
  background-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .fp-cta,
  .fp-band,
  .fp-nav-link {
    transition: none !important;
  }
  .fp-cta:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------
   6. Mobile hardening: no horizontal page scroll at 390px.
   Wide content (tables, chips, long words) scrolls inside its own
   box instead of pushing the document wider than the viewport.
-------------------------------------------------------------- */
.fp-tablewrap,
.fp-table-shell,
.fp-scrollwrap,
.entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

/* On phones a seven-column comparison table lives inside its wrapper and
   scrolls horizontally there; it never widens the document. */
@media (max-width: 700px) {
  .fp-brandtable {
    min-width: 620px;
  }
}

.entry-content table,
.fp-table {
  min-width: 0;
}

.fp-band-pays,
.fp-band-figures {
  min-width: 0;
}

.fp-band-row > * {
  min-width: 0;
}

p, li, td, th, h1, h2, h3, h4,
.fp-band-name,
.fp-band-offer,
.fp-band-terms p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* --------------------------------------------------------------
   6. Responsive row: the ranking stays one column of rows at every
   width. Below 1024 the slot grid drops to two tracks; below 700 it
   stacks to a single track. Nothing is clipped, ever (contract v3 §10).
-------------------------------------------------------------- */
@media (max-width: 1023px) {
  .fp-band-row {
    grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "rank brand brand"
      "rank terms terms"
      "rank figures action" !important;
    align-items: start;
    gap: 0.4rem 0.85rem !important;
  }

  .fp-band-rank { grid-area: rank; }
  .fp-band-brand { grid-area: brand; }
  .fp-band-terms { grid-area: terms; }
  .fp-band-figures { grid-area: figures; }
  .fp-band-action { grid-area: action; }
}

@media (max-width: 700px) {
  .fp-band {
    padding: 10px 12px;
  }

  .fp-band-row {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-areas:
      "rank brand"
      ". terms"
      ". figures"
      ". action" !important;
    gap: 0.4rem 0.7rem !important;
  }

  .fp-band-figures {
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .fp-cta {
    width: 100% !important;
    max-width: 100% !important;
  }

  .fp-band-age {
    text-align: start;
  }
}

@media (max-width: 480px) {
  /* Keep the grid; only the type steps down. A nowrap flex row with a 48px
     logo, a 170px brand block and two figure blocks is what pushed the
     document to 610px on a 390px viewport in the old build. */
  .fp-band-fig-val {
    font-size: 1.3rem !important;
  }

  .fp-band-more summary,
  .fp-band-name,
  .fp-band-offer,
  .fp-band-terms p,
  .fp-band-fig-label {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
  }

  /* Any leftover fixed-width box is capped to the viewport. */
  .fp-board,
  .fp-board-rows,
  .fp-band,
  .fp-band-more,
  .fp-band-more-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
