/* ==========================================================================
   Kings in the Corner - interior pages (Guides index, Strategy article)
   Loaded after styles.css, which supplies the shared tokens, buttons,
   playing-card styles and mobile menu.
   1. Interior tokens
   2. Dark header
   3. Page hero
   4. Two-column layout
   5. Sidebar panels
   6. Guides index
   7. Article (Strategy)
   8. Interior footer
   9. Responsive
   ========================================================================== */

/* -------------------------- 1. Interior tokens -------------------------- */
.page {
  --nav:        #012244;
  --nav-2:      #002F5C;
  --gold-b:     #F5BE51;
  --gold-b-dk:  #DFA639;
  --ipage:      #FAFAF7;
  --ipanel:     #FFFFFF;
  --iline:      #E7E7E0;
  --ilink:      #1560CE;
  --tips-bg:    #FDF4E0;
  --tips-line:  #F2DEB0;
  --tip-bg:     #E7EFF8;
  --miss-bg:    #FDEFEE;
  --miss-line:  #F3C9C6;
  --miss-ink:   #D8362B;

  background: var(--ipage);
}

.page a { color: var(--ilink); }
.page a:hover { color: var(--nav-2); }

/* Bright interior gold - the interior comps use a lighter gold than home. */
.page .btn--gold {
  background: linear-gradient(180deg, #F7C662, var(--gold-b-dk));
  color: #2A1D06;
}
.page .btn--gold:hover { background: linear-gradient(180deg, #FBD07A, #CF9830); }

/* ---------------------------- 2. Dark header ---------------------------- */
.hdr--dark {
  background: var(--nav);
  border-bottom: 0;
}
.hdr--dark .brand { color: #fff; }
.hdr--dark .brand__crown { color: var(--gold-b); }
.hdr--dark .brand__name { font-size: 21px; }
.hdr--dark .brand__name b:first-of-type { display: block; }
.hdr--dark .brand__tag { display: none; }
.hdr--dark .hdr__inner { min-height: 66px; gap: 20px; }

.hdr--dark .nav { margin-inline: auto; gap: 30px; }
.hdr--dark .nav a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: #E4EBF3; font-weight: 500;
}
.hdr--dark .nav a:hover { color: #fff; }
.hdr--dark .nav__caret { color: #E4EBF3; }
.hdr--dark .nav__caret:hover { color: #fff; }
.hdr--dark .nav__parent.is-section { color: var(--gold-b); }
/* The panel keeps the cream skin, so its links must not inherit the dark
   header rules above. `.hdr--dark .nav a` also sets inline-flex and a 44px
   min-height, which laid the title and its description out side by side
   instead of stacking them - restate the block layout here. */
.hdr--dark .navsub a {
  display: block; min-height: 0;
  color: var(--ink); font-weight: 500;
}
.hdr--dark .navsub a:hover { color: var(--ink); }
.hdr--dark .navsub a:hover b,
.hdr--dark .navsub a[aria-current="page"] b { color: var(--gold-dark); }
.hdr--dark .navsub a[aria-current="page"]::after { content: none; }
.hdr--dark .nav a[aria-current="page"] { color: var(--gold-b); font-weight: 600; }
.hdr--dark .nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 6px;
  height: 2px; background: var(--gold-b);
}
.hdr--dark .hdr__actions { margin-left: 0; }

/* ----------------------------- 3. Page hero ----------------------------- */
.phero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, #021A0F 0%, #06301C 46%, #0A4226 100%);
  color: #fff;
}
.phero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px);
}
.phero__art {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 52%;
  object-fit: cover; object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
          mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.phero__inner {
  position: relative;
  /* the fact strip that follows is pulled up 34px, so the hero needs enough
     bottom padding for it to overlap the felt and not the copy */
  padding: 26px 24px 62px;
  max-width: var(--shell);
  margin-inline: auto;
}
.phero__body { max-width: 620px; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; }
.crumbs a {
  display: inline-flex; align-items: center; min-height: 24px;
  color: #C9DED2;
}
.crumbs a:hover { color: #fff; }
.crumbs span { color: #fff; font-weight: 600; }
.crumbs i { font-style: normal; color: #7FA48D; }

.phero h1 {
  color: #fff;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.phero h1 span { display: block; color: var(--gold-b); }
.phero__lead { margin-top: 12px; font-size: 16px; color: #DCEBE0; max-width: 560px; }

.phero__quote {
  position: absolute; right: 30px; top: 34px;
  font-family: var(--serif); font-style: italic; font-size: 18px;
  line-height: 1.45; text-align: right; color: rgba(255, 255, 255, .8);
}

.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.byline__ava {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: #0B2E4E; border: 1px solid rgba(255, 255, 255, .3);
  color: var(--gold-b);
}
.byline__ava svg { width: 21px; height: 15px; }
/* Scope these to the text column. `.byline span` (0,1,1) also matched
   `.byline__ava` (0,1,0) and overrode its display:grid and gold colour, so
   the crown sat at the top of the navy circle instead of centred in it. */
.byline p b { display: block; font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: #fff; }
.byline p span { display: block; font-size: 13px; color: #C9DED2; }

/* ------------------------- 4. Two-column layout ------------------------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 26px;
  align-items: start;
  padding-block: 30px 44px;
}
.layout__side {
  position: sticky; top: 82px;
  display: grid; gap: 16px;
}
/* blocks that run the full width beneath the two columns */
.layout__full { grid-column: 1 / -1; }

.page .h2 { font-size: clamp(22px, 2.2vw, 28px); }
.page .h2::after { display: none; }

.sect { margin-bottom: 30px; }
.sect__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}

/* --------------------------- 5. Sidebar panels -------------------------- */
.panel {
  padding: 18px 20px;
  background: var(--ipanel);
  border: 1px solid var(--iline);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 35, 60, .04);
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.panel h2, .panel h3 { font-size: 19px; }
/* a bare panel heading needs its own gap; .panel__head supplies its own */
.panel > h2 + * { margin-top: 12px; }
.panel__lead { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }

/* Play card */
.plays {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 4px 0 16px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.plays li {
  display: grid; justify-items: center; gap: 5px;
  padding: 12px 4px;
  font-size: 12px; color: var(--muted); text-align: center;
}
.plays li + li { border-left: 1px solid var(--line-soft); }
.plays svg { width: 22px; height: 22px; color: var(--nav); }
.panel .btn { width: 100%; }

/* Ranked list */
.ranked li { border-top: 1px solid var(--line-soft); }
.ranked li:first-child { border-top: 0; }
.ranked a {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 8px 0;
  color: var(--ink); font-weight: 600; font-size: 14.5px;
}
.ranked a:hover { color: var(--ilink); }
.ranked b {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-b); color: #3A2A08;
  font-family: var(--serif); font-size: 13.5px;
}

/* Quick rules */
.qhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qhead svg { width: 24px; height: 24px; color: var(--nav); flex: none; }
.qrules { display: grid; gap: 9px; margin-bottom: 14px; }
.qrules li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); }
.qrules i {
  display: grid; place-items: center; flex: none;
  width: 19px; height: 19px; margin-top: 1px;
  border-radius: 50%; background: #1B8A56; color: #fff;
}
.qrules i svg { width: 12px; height: 12px; }

.panel__link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; font-size: 14px; font-weight: 600;
}
.panel__link svg { width: 15px; height: 15px; }

/* Newsletter panels */
.nlcard {
  padding: 20px;
  border-radius: 12px;
  background: var(--nav);
  color: #D9E4F0;
}
.nlcard svg.nlcard__ico { width: 34px; height: 24px; color: var(--gold-b); margin-bottom: 12px; }
.nlcard h2 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.nlcard p { font-size: 14px; margin-bottom: 12px; }
.nlcard input {
  width: 100%; min-height: 44px;
  margin-bottom: 10px; padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px;
  background: #fff; color: #223046;
}
.nlcard .btn { width: 100%; }
.nlcard__note { font-size: 12.5px; color: var(--gold-b); margin: 8px 0 0; min-height: 1em; }

/* light variant used on the article page */
.nlcard--light {
  background: #EAF0F7;
  border: 1px solid #D6E1EE;
  color: var(--text);
}
.nlcard--light .nlcard__row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.nlcard--light .nlcard__badge {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--nav); color: #fff;
}
.nlcard--light .nlcard__badge svg { width: 24px; height: 17px; }
.nlcard--light h2 { color: var(--ink); font-size: 17px; }
.nlcard--light p { color: var(--muted); margin-bottom: 0; }
.nlcard--light input { border-color: #C9D6E6; }
.nlcard--light .nlcard__note { color: var(--nav-2); }

/* ---------------------------- 6. Guides index --------------------------- */

/* Featured guide */
.feature {
  display: grid; grid-template-columns: 40% 1fr;
  background: var(--ipanel);
  border: 1px solid var(--iline);
  border-radius: 12px;
  overflow: hidden;
}
.feature__img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.feature__body { padding: 22px 24px 20px; display: grid; align-content: start; gap: 10px; }
.feature__body h3 { font-size: 24px; line-height: 1.2; }
.feature__body p { font-size: 15px; color: var(--muted); }
.feature .btn { justify-self: start; margin-top: 4px; }

.meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 12px; }
.meta li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.meta svg { width: 16px; height: 16px; color: var(--nav); flex: none; }

/* Guide grid */
.gguides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcard {
  display: flex; flex-direction: column;
  background: var(--ipanel);
  border: 1px solid var(--iline);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.gcard:hover { box-shadow: 0 8px 22px rgba(20, 35, 60, .1); transform: translateY(-2px); }
.gcard img { width: 100%; height: 128px; object-fit: cover; }
.gcard__body { display: grid; gap: 7px; align-content: start; padding: 14px 16px 0; flex: 1; }
.gcard h3 { font-size: 18px; }
.gcard h3 a { color: var(--ink); display: inline-block; padding-block: 4px; }
.gcard h3 a:hover { color: var(--ilink); }
.gcard p { font-size: 13.5px; color: var(--muted); }
.gcard__cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; margin-top: 2px;
  font-size: 14px; font-weight: 600;
}
.gcard__cta svg { width: 15px; height: 15px; }
.gcard .meta {
  gap: 18px; margin: 12px 16px 0; padding: 10px 0 12px;
  border-top: 1px solid var(--line-soft);
}

/* Start here */
.starthere {
  padding: 22px 26px 24px;
  background: var(--ipanel);
  border: 1px solid var(--iline);
  border-radius: 12px;
}
.starthere > p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; }
.path li { display: flex; gap: 14px; padding: 4px 22px; border-left: 1px solid var(--line-soft); }
.path li:first-child { border-left: 0; padding-left: 0; }
.path b {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--nav); color: #fff;
  font-family: var(--serif); font-size: 19px;
}
.path h3 { font-size: 16px; margin-bottom: 4px; }
.path p { font-size: 13.5px; color: var(--muted); }
.path a {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; margin-top: 6px; font-size: 14px; font-weight: 600;
}
.path a svg { width: 15px; height: 15px; }

/* News grid */
.gnews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gnews article,
.gnews-card {
  background: var(--ipanel);
  border: 1px solid var(--iline);
  border-radius: 12px;
  overflow: hidden;
}
/* `.gnews-card` is also used on its own inside `.related`, so every rule
   below has to match the card directly as well as through the grid - with
   only the `.gnews` form the related cards fell back to the 360px intrinsic
   width of the artwork and left a white gutter on wide phones. */
.gnews img,
.gnews-card img { width: 100%; height: 150px; object-fit: cover; }
.gnews__body { padding: 14px 16px 16px; display: grid; gap: 7px; }
.gnews time,
.gnews-card time { font-size: 12.5px; color: var(--muted); }
.gnews h3,
.gnews-card h3 { font-size: 17px; line-height: 1.25; }
.gnews h3 a,
.gnews-card h3 a { color: var(--ink); display: inline-block; padding-block: 2px; }
.gnews h3 a:hover,
.gnews-card h3 a:hover { color: var(--ilink); }
.gnews p,
.gnews-card p { font-size: 13.5px; color: var(--muted); }
.gnews__cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; font-size: 14px; font-weight: 600;
}
.gnews__cta svg { width: 15px; height: 15px; }

/* FAQ banner */
.faqbanner {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 24px;
  background: var(--ipanel);
  border: 1px solid var(--iline);
  border-radius: 12px;
}
.faqbanner__ico {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--nav); color: #fff;
}
.faqbanner__ico svg { width: 26px; height: 26px; }
.faqbanner div { flex: 1; }
.faqbanner h2 { font-size: 22px; }
.faqbanner p { font-size: 14.5px; color: var(--muted); margin-top: 3px; }

/* -------------------------- 7. Article (Strategy) ----------------------- */

/* Callouts */
.callout {
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid var(--tips-line);
  background: var(--tips-bg);
  margin-bottom: 28px;
}
.callout__head { display: flex; align-items: flex-start; gap: 12px; }
.callout__head svg { width: 26px; height: 26px; color: var(--gold-b-dk); flex: none; }
.callout h2 { font-size: 20px; }
.callout__head p { font-size: 14px; color: var(--text); margin-top: 2px; }
/* Two columns filled top-to-bottom, so the DOM order stays a plain 1..6 list. */
.tiplist {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 12px 28px;
  margin-top: 16px;
}
.tiplist li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text); }
.tiplist b {
  display: grid; place-items: center; flex: none;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--gold-b); color: #3A2A08;
  font-family: var(--serif); font-size: 13px;
}

.note {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; margin: 14px 0 0;
  border-radius: 8px;
  background: var(--tip-bg);
  font-size: 14.5px; color: var(--text);
}
.note svg { width: 22px; height: 22px; color: var(--nav-2); flex: none; margin-top: 1px; }
.note b { color: var(--ink); }

.note--miss {
  align-items: center;
  padding: 18px 22px; margin: 30px 0;
  background: var(--miss-bg);
  border: 1px solid var(--miss-line);
  border-radius: 12px;
}
.note--miss svg { width: 34px; height: 34px; color: var(--miss-ink); }
.note--miss h2 { color: var(--miss-ink); font-size: 19px; margin-bottom: 3px; }

/* Numbered article sections */
/* The figure spans both rows; sizing row 1 to content and letting row 2
   absorb the slack keeps the heading tight above its paragraph, so steps
   with and without a diagram share the same rhythm. */
.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 0 14px;
  margin-bottom: 28px;
}
.step__n {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--nav); color: #fff;
  font-family: var(--serif); font-size: 16px;
}
.step h2 { grid-column: 2; font-size: 22px; align-self: start; }
.step__body { grid-column: 2; margin-top: 8px; }
.step__body p { font-size: 15px; color: var(--text); max-width: 62ch; }
.step__fig { grid-column: 3; grid-row: 1 / span 2; width: 268px; margin-left: 20px; }
.step__fig img { width: 100%; border-radius: 8px; }
.step__fig figcaption { margin-top: 7px; font-size: 12.5px; color: var(--muted); }

/* Advanced strategy */
.iconhead { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.iconhead > svg { width: 30px; height: 30px; color: var(--nav); flex: none; }
.iconhead h2 { font-size: 24px; }
.iconhead p { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.iconhead__badge {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--nav); color: #fff;
}
.iconhead__badge svg { width: 20px; height: 20px; }

.advgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.advgrid li {
  padding: 14px 16px;
  background: var(--ipanel);
  border: 1px solid var(--iline);
  border-radius: 10px;
}
.advgrid b { display: block; font-family: var(--serif); font-size: 16px; color: var(--ink); margin-bottom: 5px; }
.advgrid span { font-size: 13.5px; color: var(--muted); }

.rule { border: 0; border-top: 1px solid var(--iline); margin: 30px 0; }

/* Chevron FAQ used on the article page */
.faq--chev { border: 0; background: none; }
.faq--chev .faq__item {
  border: 1px solid var(--iline);
  border-radius: 8px;
  background: var(--ipanel);
  margin-bottom: 8px;
}
.faq--chev .faq__item + .faq__item { border-top: 1px solid var(--iline); }
.faq--chev summary { font-family: var(--sans); font-weight: 600; font-size: 15px; }
.faq--chev summary i svg { width: 17px; height: 17px; }
.faq--chev .faq__item[open] summary i { transform: rotate(180deg); }

/* Related articles / guides */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.relguides { display: grid; gap: 14px; }
.relguides li { display: flex; gap: 12px; }
.relguides img { width: 84px; height: 62px; border-radius: 8px; object-fit: cover; flex: none; }
.relguides b { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink); line-height: 1.25; }
.relguides span { display: block; font-size: 13px; color: var(--muted); margin: 3px 0 4px; }
.relguides a {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 28px; font-size: 13.5px; font-weight: 600;
}
.relguides a svg { width: 14px; height: 14px; }

/* In this article (TOC) */
.toc ol { counter-reset: toc; display: grid; gap: 2px; }
.toc ol li { counter-increment: toc; }
.toc ol a::before { content: counter(toc) ". "; color: var(--muted); }
.toc a {
  display: block;
  min-height: 32px; padding: 5px 0;
  font-size: 14.5px; color: var(--ink);
}
.toc a:hover { color: var(--ilink); }
.toc a[data-current="true"] { color: var(--ilink); font-weight: 700; }
.toc__extra {
  display: grid; gap: 2px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--iline);
}

/* Practice panel */
.practice__board {
  padding: 10px;
  border-radius: 10px;
  background: radial-gradient(120% 90% at 50% 40%, #17724A, #0A4527);
  --cw: 30px; --ch: calc(var(--cw) * 1.44); --cr: calc(var(--cw) * .1);
}
.practice__chips { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.practice__chips .chip { min-width: 52px; padding: 3px 6px; }
.practice__chips .chip span { font-size: 9.5px; }
.practice__chips .chip b { font-size: 13px; }
.practice__row { display: flex; gap: 6px; justify-content: center; }
.practice__row + .practice__row { margin-top: 8px; }
.practice__ghost {
  width: var(--cw); height: var(--ch);
  border: 1.5px dashed rgba(255, 255, 255, .3);
  border-radius: var(--cr);
}
.practice__col { display: grid; gap: 2px; }
.practice__col .card { position: relative; }
.practice p { font-size: 14.5px; color: var(--text); margin: 14px 0 12px; }
.practice p b { display: block; font-family: var(--serif); font-size: 16px; color: var(--ink); }

/* --------------------------- 8. Interior footer ------------------------- */
.ftr--cols .ftr__inner {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto minmax(150px, auto);
  gap: 30px 44px;
  align-items: start;
  padding-bottom: 20px;
}
.ftr--cols .ftr__brand p {
  margin-top: 10px;
  font-family: var(--serif); font-style: italic; font-size: 14px; color: #A9BCD1;
}
.ftr--cols .ftr__brand small { display: block; margin-top: 12px; font-size: 12.5px; color: #8FA4BB; }
.ftr__col { display: grid; gap: 2px; }
.ftr__col a {
  display: inline-flex; align-items: center; min-height: 32px;
  color: #C3D2E2; font-size: 14.5px;
}
.ftr__col a:hover { color: var(--gold-b); }
.ftr__social { display: grid; gap: 14px; justify-items: end; }
.ftr--cols .social a,
.ftr--cols .social__off {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.ftr--cols .social a:hover { background: rgba(255, 255, 255, .2); color: var(--gold-b); }
.ftr--cols .ftr__legal { justify-content: flex-end; flex-wrap: wrap; }
.ftr--cols .ftr__base { border-top: 0; padding-top: 0; justify-content: flex-end; }

/* ---------------------------- 9. Responsive ----------------------------- */
@media (max-width: 1080px) {
  /* minmax(0, 1fr) caps the automatic minimum; a plain 1fr lets wide
     children (the rules diagrams) blow the column past the viewport. */
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout__main, .layout__side { min-width: 0; }
  .layout__side { position: static; grid-template-columns: repeat(2, 1fr); }
  .gguides { grid-template-columns: repeat(2, 1fr); }
  .step__fig { grid-column: 2; grid-row: auto; width: 100%; max-width: 380px; margin: 14px 0 0; }
  .step { grid-template-columns: 34px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hdr--dark .hdr__inner { min-height: 62px; }
  /* the fact strip is pulled up 34px here too, so keep more room below
     the hero copy than that, or the strip lands on the last line */
  .phero__inner { padding: 20px 16px 56px; }
  /* the art sits behind the lead paragraph once the mask is dropped; at .32
     it lifted the painted background and left the lead at 3.6:1 */
  .phero__art { width: 100%; opacity: .16; -webkit-mask-image: none; mask-image: none; }
  .phero__quote { display: none; }
  .phero__lead { font-size: 15px; }

  .layout { gap: 20px; padding-block: 22px 30px; }
  .layout__side { grid-template-columns: 1fr; }

  .feature { grid-template-columns: 1fr; }
  .feature__img { min-height: 190px; }
  .gguides { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; gap: 18px; }
  .path li { border-left: 0; padding: 0; }
  .gnews { grid-template-columns: 1fr; }
  .advgrid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .tiplist { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
  .faqbanner { flex-wrap: wrap; }

  .ftr--cols .ftr__inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .ftr__social { justify-items: start; }
  .ftr--cols .ftr__legal, .ftr--cols .ftr__base { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .ftr--cols .ftr__inner { grid-template-columns: 1fr; }
  .step { grid-template-columns: 30px minmax(0, 1fr); gap: 0 10px; }
  .step__n { width: 30px; height: 30px; font-size: 14px; }
  .step h2 { font-size: 19px; }
}

/* --------- 10. Footer palette guard -------------------------------------
   `.page a` sets the interior link blue for body content. The footer keeps
   its own light-on-navy palette, so restate it at a higher specificity
   instead of loosening the base rule. */
.page .brand--ftr { color: #fff; }
.page .ftr__legal a { color: #96A9C0; }
.page .social a,
.page .social__off { color: #fff; }
.page .ftr__legal a:hover,
.page .social a:hover,
.page .brand--ftr:hover { color: var(--gold-b); }

/* ==========================================================================
   11. Long-form / legal pages
   ========================================================================== */
.legal { max-width: 78ch; }
.legal h2 {
  margin: 30px 0 12px;
  font-size: clamp(21px, 2.1vw, 26px);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 22px 0 8px; font-size: 18px; }
.legal p { font-size: 16px; line-height: 1.68; color: var(--text); margin-bottom: 14px; }
/* padding on an inline link grows the hit area to the 24px floor without
   changing how the sentence wraps */
.legal a, .legal li a { padding-block: 3px; }
.legal ul { display: grid; gap: 9px; margin: 0 0 16px; }
.legal ul li {
  position: relative; padding-left: 26px;
  font-size: 15.5px; line-height: 1.6; color: var(--text);
}
.legal ul li::before {
  content: ""; position: absolute; left: 8px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-b-dk);
}
.legal__updated {
  display: inline-block; margin-bottom: 22px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--cream-3); color: var(--muted);
  font-size: 13px;
}
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14.5px; }
.legal th, .legal td {
  padding: 10px 12px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--iline);
}
.legal th { color: var(--ink); font-weight: 600; background: var(--cream-3); }
.legal__scroll { overflow-x: auto; }

/* Contact */
.contactcard {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 24px;
  background: var(--ipanel); border: 1px solid var(--iline); border-radius: 12px;
}
.contactcard__ico {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--nav); color: var(--gold-b);
}
.contactcard__ico svg { width: 28px; height: 20px; }
.contactcard div { flex: 1; min-width: 220px; }
.contactcard b { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.contactcard a.mail {
  font-size: 19px; font-weight: 600; word-break: break-all;
}

/* 404 */
.err { text-align: center; padding: 60px 0 70px; }
/* `.err p` below is more specific than a lone .err__code class, so qualify it */
.err p.err__code {
  max-width: none; margin: 0 0 4px;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(72px, 16vw, 150px); line-height: .9;
  color: var(--nav); letter-spacing: -.03em;
}
.err__code span { color: var(--gold-b); }
.err h1 { margin: 14px 0 10px; font-size: clamp(24px, 3vw, 34px); }
.err p { max-width: 52ch; margin: 0 auto 22px; font-size: 16px; color: var(--muted); }
.err__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* the shared ghost button is white-on-felt; give it a light-page skin */
.page .btn--ghost {
  background: var(--ipanel);
  border: 1px solid var(--iline);
  color: var(--ink);
  font-family: var(--serif); font-weight: 700;
}
.page .btn--ghost:hover { background: var(--cream-3); color: var(--ink); }
.page .cookiebar .btn--ghost {
  background: transparent; border-color: rgba(255, 255, 255, .38);
  color: #E7EEF6; font-family: var(--sans); font-weight: 600;
}
.page .cookiebar .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.err__links { display: flex; gap: 8px 26px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.err__cards {
  display: flex; justify-content: center; gap: 10px;
  margin-bottom: 26px;
  --cw: 62px; --ch: calc(var(--cw) * 1.44); --cr: calc(var(--cw) * .1);
}
.err__cards .card:nth-child(1) { transform: rotate(-9deg); }
.err__cards .card:nth-child(2) { transform: rotate(3deg) translateY(-6px); }
.err__cards .card:nth-child(3) { transform: rotate(11deg); }

/* Same tightening for the legal/long-form prose pages on small screens. */
@media (max-width: 700px) {
  .legal p      { font-size: 15.5px; line-height: 1.52; margin-bottom: 11px; }
  .legal ul     { gap: 6px; margin-bottom: 13px; }
  .legal ul li  { font-size: 15px; line-height: 1.5; }
  .legal h2     { margin: 22px 0 9px; }
  .legal h3     { margin: 16px 0 6px; }
}

/* ==========================================================================
   13. Rules Sources panel
   ========================================================================== */
.sources__lead { font-size: 14px; color: var(--muted); }
.sources__list { display: grid; gap: 4px; margin-top: 10px; }
.page .sources__list a {
  display: inline-flex; align-items: center; min-height: 30px;
  color: #0F7A4C; font-weight: 700; font-size: 15px;
}
.page .sources__list a:hover { color: var(--nav-2); text-decoration: underline; }
