/* ==========================================================================
   Career Hub — public theme
   Palette and layout follow the build guidance exactly:
   white surfaces, navy/slate brand, one high-contrast accent, 750px column,
   300px sticky rail, 18px minimum body text on mobile.
   ========================================================================== */

:root {
  --navy:        #12284C;
  --navy-700:    #1B3A6B;
  --slate:       #4A5568;
  --slate-400:   #718096;
  --rule:        #E2E8F0;
  --panel:       #F8F9FA;
  --white:       #FFFFFF;
  --accent:      #FF6B1A;
  --accent-dark: #D9540B;
  --accent-tint: #FFF3EB;
  --focus:       #0B63E5;

  --col:         750px;   /* content column: the 70% */
  --rail:        300px;   /* sticky sidebar: the 30% */
  --gap:         48px;
  --shell:       1180px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 18px;              /* mobile-first minimum from the guidance */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }

/* ---------- Masthead ---------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky; top: 0; z-index: 60;
}
.masthead__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 66px; flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 12px; height: 26px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0 45%, var(--navy) 45% 100%);
  flex: none;
}
.brand__name {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--navy);
}

.navtoggle {
  margin-left: auto; width: 44px; height: 40px; border: 1px solid var(--rule);
  background: var(--white); border-radius: var(--r-md); cursor: pointer;
  display: grid; place-items: center;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
  display: block; width: 18px; height: 2px; background: var(--navy); position: relative;
}
.navtoggle__bars::before { content: ""; position: absolute; top: -6px; }
.navtoggle__bars::after  { content: ""; position: absolute; top: 6px; }

.sitenav { display: none; width: 100%; padding-bottom: 14px; }
.sitenav.is-open { display: block; }
.sitenav ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.sitenav a {
  display: block; padding: 10px 8px; font-size: .98rem; font-weight: 600;
  color: var(--slate); text-decoration: none; border-radius: var(--r-sm);
}
.sitenav a:hover { background: var(--panel); color: var(--navy); }

.searchbox { display: flex; gap: 8px; }
.searchbox input {
  flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 1rem;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--white); color: var(--navy);
}
.searchbox button {
  padding: 10px 16px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid var(--navy); background: var(--navy); color: #fff; border-radius: var(--r-md);
}
.searchbox button:hover { background: var(--navy-700); }
.searchbox--page { max-width: 520px; margin-bottom: 32px; }


/* ---------- Nav overflow ("More") --------------------------------------
   Mobile: the collapsed menu lists every hub flat, so the dropdown trigger
   is hidden and the spill items show. Desktop inverts both. */
.navmore { display: none; }
.navspill { display: list-item; }

/* Hub names are long ("Public Sector & Essential Services"), so the horizontal
   nav needs more room than a 900px breakpoint gives it. Below 1080px the
   brand, three hub links and the search box add up to more than the shell
   allows, and flex-wrap drops the nav onto a second row — so the collapsed
   menu stays in play until there is genuinely space for the row. */
@media (min-width: 1080px) {
  .navtoggle { display: none; }

  /* The bar carries more than the content column does — brand, three hub
     names and a search box — so it gets a wider shell than the 750/300
     reading layout. The content grid is untouched. */
  .masthead .shell { max-width: 1400px; }

  /* Nothing in the bar may wrap once it is a single row. */
  .masthead__inner { flex-wrap: nowrap; gap: 16px; }

  .brand { flex: none; }

  .sitenav {
    display: flex; align-items: center; gap: 14px;
    width: auto; margin-left: auto; padding-bottom: 0;
    flex: 0 1 auto; min-width: 0;
  }
  .sitenav ul { display: flex; gap: 2px; margin: 0; min-width: 0; }
  .sitenav a { padding: 8px 6px; font-size: .92rem; white-space: nowrap; }

  /* Desktop: hubs beyond the inline limit move into the dropdown. */
  .navmore { display: list-item; position: relative; }
  .navspill { display: none; }

  .navmore__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 10px; font: inherit; font-size: .92rem; font-weight: 600;
    color: var(--slate); background: none; border: 0; border-radius: var(--r-sm);
    cursor: pointer; white-space: nowrap;
  }
  .navmore__btn:hover { background: var(--panel); color: var(--navy); }
  .navmore__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .navmore__btn[aria-expanded="true"] { background: var(--panel); color: var(--navy); }

  .navmore__caret {
    width: 0; height: 0; flex: none;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform .15s ease;
  }
  .navmore__btn[aria-expanded="true"] .navmore__caret { transform: rotate(180deg); }

  .navmore__list {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 80;
    min-width: 240px; max-width: 320px;
    margin: 0; padding: 6px;
    list-style: none;
    display: grid; gap: 2px;
    background: var(--white);
    border: 1px solid var(--rule); border-radius: var(--r-md);
    box-shadow: 0 10px 28px rgba(18, 40, 76, .14);
  }
  .navmore__list[hidden] { display: none; }
  .navmore__list a {
    display: block; padding: 9px 10px; font-size: .94rem; white-space: normal;
    color: var(--slate); border-radius: var(--r-sm); text-decoration: none;
  }
  .navmore__list a:hover { background: var(--panel); color: var(--navy); }

  /* The search box is the one element that may give up width. */
  .searchbox { flex: 0 1 auto; min-width: 0; }
  .searchbox input { width: 170px; min-width: 96px; }
  .searchbox button { padding: 10px 14px; white-space: nowrap; }
}

/* Comfortable spacing once there is room for it. */
@media (min-width: 1460px) {
  .sitenav { gap: 22px; }
  .sitenav ul { gap: 4px; }
  .sitenav a { padding: 10px 8px; font-size: .98rem; }
  .navmore__btn { padding: 10px 10px; font-size: .98rem; }
  .searchbox input { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .navmore__caret { transition: none; }
}

@media print { .navmore { display: none; } }

/* ---------- Layout: 70 / 30 -------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  padding-block: 28px 64px;
  align-items: start;
}
.layout__main { min-width: 0; max-width: var(--col); }
.layout__rail { display: none; }

@media (min-width: 1040px) {
  .layout { grid-template-columns: minmax(0, var(--col)) var(--rail); justify-content: center; }
  .layout__rail { display: block; }
  .rail-sticky { position: sticky; top: 86px; }
}

/* ---------- Ad containers ---------------------------------------------
   Every unit reserves its height before the network fills it, so an ad
   arriving late never pushes text down (CLS stays at zero).
   ---------------------------------------------------------------------- */

.ad-slot {
  --ad-min-d: 250px;
  --ad-min-m: 280px;
  display: block;
  margin-block: 30px;              /* 30px clearance, both sides, as specified */
  text-align: center;
  background: var(--panel);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ad-slot__inner {
  min-height: var(--ad-min-m);
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) {
  .ad-slot__inner { min-height: var(--ad-min-d); }
}
.ad-slot__label {
  display: block; padding: 6px 0 2px;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-400);
}
.ad-slot ins.adsbygoogle { display: block; width: 100%; }

.ad-slot--inline { margin-block: 30px; }

.ad-slot--sidebar_sticky { margin-top: 0; }
.ad-slot--sidebar_sticky .ad-slot__inner { min-height: 600px; }

.ad-slot--multiplex .ad-slot__inner { min-height: 320px; }

.ad-slot--empty {
  border: 1px dashed #C9D2DE; background: repeating-linear-gradient(
    45deg, #FAFBFC, #FAFBFC 8px, #F2F5F8 8px, #F2F5F8 16px);
  color: var(--slate-400); font-size: .8rem; padding: 26px 12px; min-height: 90px;
  display: grid; place-items: center;
}

/* device gating mirrors the placement setting */
.dev-desktop { display: none; }
@media (min-width: 1040px) { .dev-desktop { display: block; } .dev-mobile { display: none; } }

/* Mobile anchor */
.anchor-ad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--rule);
  padding: 4px 0 env(safe-area-inset-bottom, 4px);
  box-shadow: 0 -2px 12px rgba(18,40,76,.08);
}
.anchor-ad .ad-slot { margin: 0; background: transparent; }
.anchor-ad .ad-slot__inner { min-height: 50px; }
.anchor-ad.is-closed { display: none; }
.anchor-ad__close {
  position: absolute; top: -26px; right: 8px; width: 26px; height: 26px;
  border: 1px solid var(--rule); border-bottom: 0; background: var(--white);
  border-radius: 6px 6px 0 0; cursor: pointer; color: var(--slate); font-size: 16px; line-height: 1;
}
@media (min-width: 1040px) { .anchor-ad { display: none; } }

/* ---------- Article head ------------------------------------------------ */

.crumbs { margin-bottom: 18px; }
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0;
  font-size: .82rem; color: var(--slate-400);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #CBD5E0; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); text-decoration: underline; }

.arthead { margin-bottom: 26px; }
.arthead__kicker {
  margin: 0 0 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.arthead__kicker a { color: var(--accent-dark); text-decoration: none; }
.arthead__h1 {
  margin: 0 0 14px; font-size: clamp(1.85rem, 5.4vw, 2.7rem);
  line-height: 1.14; letter-spacing: -0.025em; font-weight: 800;
}
.arthead__standfirst {
  margin: 0 0 14px; font-size: 1.15rem; line-height: 1.55; color: var(--slate);
}
.arthead__meta { margin: 0; font-size: .85rem; color: var(--slate-400); }
.arthead__meta .dot { margin-inline: 6px; }

/* ---------- TL;DR + its 300x250 ---------------------------------------- */

.summary-row { display: grid; gap: 24px; margin-bottom: 34px; }
.summary-row__ad .ad-slot { margin-block: 0; }
@media (min-width: 1040px) {
  /* Desktop: square sits to the right of the summary list */
  .summary-row { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}

.tldr {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 22px 22px 18px;
}
.tldr__h {
  margin: 0 0 16px; font-size: .8rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.tldr__facts { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 620px) { .tldr__facts { grid-template-columns: repeat(3, 1fr); } }

.fact { display: grid; gap: 3px; align-content: start; }
.fact__k {
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate-400); font-weight: 700;
}
.fact__v { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.fact__v small { font-weight: 600; color: var(--slate-400); }
.fact__v em { font-style: normal; font-weight: 600; font-size: .85rem; color: var(--slate); display: block; }

.meter { display: block; height: 5px; background: #DDE3EA; border-radius: 3px; margin-top: 6px; }
.meter__fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.tldr__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.tldr__list li { font-size: .97rem; line-height: 1.55; }

/* ---------- Table of contents ------------------------------------------ */

.toc {
  border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 18px 22px; margin-bottom: 34px;
}
.toc__h {
  margin: 0 0 10px; font-size: .76rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--navy-700); font-size: .95rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--accent-dark); }

/* ---------- Prose ------------------------------------------------------- */

.prose { font-size: 1.0625rem; }
@media (min-width: 700px) { .prose { font-size: 1.09rem; } }

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  margin-top: 2.1em; margin-bottom: .55em;
  font-size: clamp(1.35rem, 3.6vw, 1.68rem); line-height: 1.22;
  letter-spacing: -0.018em; font-weight: 800;
  padding-top: .5em; border-top: 1px solid var(--rule);
}
.prose h3 {
  margin-top: 1.7em; margin-bottom: .4em;
  font-size: 1.16rem; font-weight: 700; line-height: 1.3;
}
.prose p { margin: 0; line-height: 1.72; }
.prose strong { font-weight: 700; color: var(--navy); }

.prose ul, .prose ol { margin: 0; padding-left: 24px; }
.prose li + li { margin-top: .5em; }

.prose blockquote {
  margin: 1.5em 0; padding: 16px 20px;
  background: var(--accent-tint); border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.03rem; color: var(--navy);
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: .7em; }

.prose table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-size: .95rem; display: block; overflow-x: auto;
}
.prose thead th {
  background: var(--navy); color: #fff; text-align: left; font-weight: 700;
  padding: 11px 14px; font-size: .85rem; letter-spacing: .01em;
}
.prose tbody td, .prose tbody th {
  border-bottom: 1px solid var(--rule); padding: 11px 14px;
  vertical-align: top; text-align: left;
}
.prose tbody tr:nth-child(even) { background: var(--panel); }

.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2em 0; }

.link-pillar { font-weight: 600; }

/* ---------- Infographics ------------------------------------------------ */

.infographic {
  margin: 1.8em 0 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
}
.infographic__img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.infographic__caption {
  margin-top: 12px; font-size: .86rem; color: var(--slate); text-align: center; line-height: 1.5;
}

/* ---------- Article extras --------------------------------------------- */

.ats, .values, .faq, .more, .endcap { margin-top: 44px; }
.ats h2, .values h2, .faq h2, .more__h, .endcap__h {
  margin: 0 0 14px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.018em;
}
.ats__note { margin: 0 0 16px; color: var(--slate); font-size: .98rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip {
  padding: 7px 13px; background: var(--white); border: 1px solid var(--rule);
  border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy);
}

.values__list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

.faq__item {
  border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 10px; background: var(--white);
}
.faq__item summary {
  cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { margin-top: 10px; color: var(--slate); font-size: .98rem; }

.lateral-links {
  margin: 2em 0 0; padding: 18px 22px;
  border: 1px solid var(--rule); border-left: 4px solid var(--navy); border-radius: var(--r-md);
  background: var(--white);
}
.lateral-links__title {
  margin: 0 0 10px; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
}
.lateral-links ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.lateral-links a { font-weight: 600; font-size: .98rem; }

.link-back { font-weight: 600; }
.more__up { margin-top: 20px; }

/* ---------- Cards ------------------------------------------------------- */

.cardgrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cardgrid { grid-template-columns: repeat(2, 1fr); } }
.cardgrid__ad { grid-column: 1 / -1; }

.card {
  display: block; padding: 20px; text-decoration: none; color: inherit;
  border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--white);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18,40,76,.07);
}
.card__tag {
  display: inline-block; margin-bottom: 9px; padding: 3px 9px;
  background: var(--accent-tint); color: var(--accent-dark);
  border-radius: var(--r-sm); font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.card__h { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.card__x { margin: 0; font-size: .92rem; color: var(--slate); line-height: 1.55; }
.card__meta {
  display: block; margin-top: 12px; font-size: .8rem; font-weight: 600; color: var(--slate-400);
}

.empty {
  grid-column: 1 / -1; padding: 28px; text-align: center;
  background: var(--panel); border-radius: var(--r-md); color: var(--slate);
}

/* ---------- Home -------------------------------------------------------- */

.hero { background: var(--panel); border-bottom: 1px solid var(--rule); }
.hero__inner { padding-block: 54px 48px; max-width: 780px; }
.hero__h1 {
  margin: 0 0 14px; font-size: clamp(2rem, 6vw, 3.05rem);
  line-height: 1.08; letter-spacing: -0.032em; font-weight: 800;
}
.hero__sub { margin: 0 0 26px; font-size: 1.13rem; color: var(--slate); line-height: 1.6; }
.hero__search { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__search input {
  flex: 1 1 240px; padding: 14px 16px; font: inherit; font-size: 1.02rem;
  border: 1px solid #CBD5E0; border-radius: var(--r-md); background: var(--white);
}

.btn {
  display: inline-block; padding: 14px 22px; font: inherit; font-size: 1rem; font-weight: 700;
  border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.hubblock { padding-block: 44px; border-bottom: 1px solid var(--rule); }
.hubblock:last-of-type { border-bottom: 0; }
.hubblock__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 22px; flex-wrap: wrap;
}
.hubblock__h { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hubblock__h a { color: inherit; text-decoration: none; }
.hubblock__h a:hover { color: var(--accent-dark); }
.hubblock__tag { margin: 0; color: var(--slate); font-size: .98rem; }
.link-more { font-weight: 700; font-size: .92rem; white-space: nowrap; color: var(--accent-dark); }

.latest { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.latest li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.latest a { font-weight: 600; text-decoration: none; }
.latest a:hover { text-decoration: underline; }
.latest__hub { font-size: .8rem; color: var(--slate-400); white-space: nowrap; }

/* ---------- Hub page ---------------------------------------------------- */

.hubhead { margin-bottom: 26px; }
.hubhead__eyebrow {
  margin: 0 0 10px; font-size: .74rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark);
}
.hubhead__h1 {
  margin: 0 0 12px; font-size: clamp(1.9rem, 5.4vw, 2.7rem);
  line-height: 1.12; letter-spacing: -0.028em; font-weight: 800;
}
.hubhead__tagline { margin: 0 0 8px; font-size: 1.13rem; color: var(--slate); line-height: 1.55; }
.hubhead__count { margin: 0; font-size: .85rem; color: var(--slate-400); font-weight: 600; }

.prose--intro { margin-bottom: 8px; }
.hubgrid { margin-block: 36px; }
.hubgrid__h { margin: 0 0 18px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.018em; }

.notfound { padding-block: 64px; }
.notfound h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.025em; margin: 0 0 12px; }
.notfound p { color: var(--slate); margin: 0 0 26px; }

/* ---------- Email capture ---------------------------------------------- */

.capture {
  margin-block: 44px; padding: 28px 26px;
  background: var(--navy); color: #fff; border-radius: var(--r-lg);
}
.capture__h {
  margin: 0 0 8px; font-size: 1.32rem; font-weight: 800;
  line-height: 1.25; letter-spacing: -0.018em; color: #fff;
}
.capture__sub { margin: 0 0 20px; color: #C3CFE0; font-size: .98rem; line-height: 1.55; }
.capture__form { display: grid; gap: 10px; }
.capture .field { display: block; }
.capture input[type="email"], .capture input[type="text"] {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem;
  border: 1px solid #2E4A78; border-radius: var(--r-md);
  background: #0C1E3B; color: #fff;
}
.capture input::placeholder { color: #7E93B4; }
.capture input:focus-visible { outline-color: var(--accent); }
.capture__note { margin: 4px 0 0; font-size: .82rem; color: #9DB0CC; }
.capture__note.is-ok    { color: #7EE2A8; font-weight: 600; }
.capture__note.is-error { color: #FFB49A; font-weight: 600; }

@media (min-width: 720px) {
  .capture--inline .capture__form { grid-template-columns: 1fr auto; align-items: start; }
  .capture--inline .capture__note { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .capture--wide {
    display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
    padding: 36px 40px;
  }
  .capture--wide .capture__form { grid-template-columns: 1fr auto; align-items: start; }
  .capture--wide .capture__note { grid-column: 1 / -1; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer-capture { background: var(--panel); border-top: 1px solid var(--rule); }
.footer-capture .capture { margin-block: 44px; }

/* ---------- Footer ------------------------------------------------------ */

.sitefoot { background: var(--white); border-top: 1px solid var(--rule); padding-top: 44px; }
.sitefoot__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .sitefoot__grid { grid-template-columns: 2fr 1fr 1fr; } }
.sitefoot__col h2 {
  margin: 0 0 12px; font-size: .76rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400);
}
.sitefoot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sitefoot__col a { color: var(--slate); text-decoration: none; font-size: .94rem; }
.sitefoot__col a:hover { color: var(--accent-dark); text-decoration: underline; }
.sitefoot__col--brand p { margin: 8px 0 0; color: var(--slate); font-size: .94rem; max-width: 42ch; }

.sitefoot__legal { margin-top: 36px; padding-block: 22px; border-top: 1px solid var(--rule); }
.sitefoot__legal p { margin: 0; font-size: .8rem; color: var(--slate-400); line-height: 1.6; max-width: 90ch; }

/* leave room for the anchor ad */
body:has(.anchor-ad:not(.is-closed)) .sitefoot__legal { padding-bottom: 78px; }

/* ---------- Flash ------------------------------------------------------- */

.flash {
  margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-md); font-size: .95rem; font-weight: 600;
}
.flash--success { background: #E6F6ED; color: #1B6B41; }
.flash--error   { background: #FDECEC; color: #A22B2B; }

/* ---------- Print ------------------------------------------------------- */

@media print {
  .masthead, .layout__rail, .ad-slot, .anchor-ad, .capture, .sitefoot, .toc { display: none !important; }
  body { font-size: 12pt; }
}

/* ============================================================
   Listicle slideshow
   ============================================================ */

.arthead__series {
  font-size: .95rem;
  margin: 0 0 6px;
}
.arthead__series a { color: var(--slate); text-decoration: none; }
.arthead__series a:hover { color: var(--navy); text-decoration: underline; }

/* ---- progress ---- */
.slidenav { margin: 4px 0 26px; }

.slidenav__track {
  height: 4px;
  background: var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.slidenav__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width .3s ease;
}

.slidenav__count {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 0;
  font-size: .9rem;
  color: var(--slate);
}
.slidenav__count strong { color: var(--navy); font-size: 1.05rem; }
.slidenav__all { color: var(--slate); font-size: .86rem; }

/* ---- the slide itself ---- */
.slide { margin-bottom: 30px; }

.slide__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.slide__h {
  font-size: 1.6rem;
  line-height: 1.28;
  margin: 0 0 14px;
  color: var(--navy);
}

.slide__num {
  color: var(--accent);
  font-weight: 800;
  margin-right: 6px;
}

.slide__takeaway {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--slate);
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 16px;
  margin: 0 0 20px;
}

/* ---- the next control ----
   Deliberately the most prominent element on the page below the copy.
   Full width so it is impossible to miss and impossible to mis-tap into an
   adjacent ad, which is what the 40px clearance below is protecting. */
.slidectl { margin: 34px 0 40px; }

.slidectl__next {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 18px;
  width: 100%;
  padding: 20px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
  transition: transform .12s ease, filter .12s ease;
}

.slidectl__next:hover  { filter: brightness(1.06); }
.slidectl__next:active { transform: translateY(1px); box-shadow: none; }
.slidectl__next:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.slidectl__next-label {
  grid-column: 1;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.slidectl__next-sub {
  grid-column: 1;
  font-size: .95rem;
  line-height: 1.35;
  opacity: .93;
}

.slidectl__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.7rem;
  line-height: 1;
}

.slidectl__sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: .95rem;
}

.slidectl__prev, .slidectl__jump { color: var(--slate); text-decoration: none; }
.slidectl__prev:hover, .slidectl__jump:hover { color: var(--navy); text-decoration: underline; }

.slidectl__done {
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-align: center;
}
.slidectl__done-h { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.slidectl__done-p { color: var(--slate); margin: 0 0 16px; }

.btn-accent {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* Keep ads well clear of the next button — a mis-tap here is an invalid
   click, and this is the most-tapped element on the site. */
.slidectl + .ad-slot,
.ad-slot + .slidectl { margin-top: 40px; }

/* ---- jump list ---- */
.jumplist {
  margin: 40px 0 30px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.jumplist__h { font-size: 1.1rem; color: var(--navy); margin: 0 0 14px; }
.jumplist__ol { list-style: none; margin: 0; padding: 0; }

.jumplist__li { border-bottom: 1px solid var(--rule); }
.jumplist__li:last-child { border-bottom: 0; }

.jumplist__li a,
.jumplist__cur {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 4px;
  text-decoration: none;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.4;
}

.jumplist__li a:hover { color: var(--accent); }

.jumplist__n {
  flex: 0 0 26px;
  font-weight: 700;
  color: var(--slate-400);
  font-variant-numeric: tabular-nums;
}

.jumplist__li.is-current { background: rgba(255, 107, 26, .06); }
.jumplist__li.is-current .jumplist__cur { font-weight: 700; }
.jumplist__li.is-current .jumplist__n { color: var(--accent); }

/* ---- view-all page ---- */
.prose--all h2 {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 2px solid var(--rule);
}
.prose--all h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose--intro { margin-bottom: 20px; }

@media (max-width: 640px) {
  .slidectl__next { padding: 18px 18px; }
  .slidectl__next-label { font-size: 1.12rem; }
  .slidectl__next-sub { font-size: .9rem; }
  .slide__h { font-size: 1.35rem; }
  /* Anchor ad sits at the bottom of the viewport; keep the next button clear
     of it so the two are never adjacent under a thumb. */
  .slidectl { margin-bottom: 64px; }
}

@media print {
  .slidenav, .slidectl, .jumplist { display: none; }
}
