/* ==========================================================================
   style.css
   PocketSums, one stylesheet. Tokens first, then header, hero, calculator,
   results, page furniture and the extras bolted on later.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* --yellow is the highlighter pen. It only ever sits behind a number worth reading twice (.big b, .slip__net b). */
:root {
  --green: #0B7A4B;
  --green-d: #075A37;
  --green-dd: #04321F;
  --mint: #E7F5EC;
  --mint-2: #D2ECDC;
  --yellow: #FFD84D;
  --ink: #0E1F17;
  --text: #22322A;
  --muted: #56675E;
  --line: #D5E1D9;
  --bg: #FFFFFF;
  --tax: #E4572E;
  --ni: #F2A541;
  --loan: #7B61D9;
  --pen: #2D8FD5;
  --r: 10px;
  --wrap: 1180px;
  --display: "Bricolage", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); font-feature-settings: "tnum" 1, "cv11" 1; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 300; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Header. .top is 64px tall and sticky, which is the whole reason .side__stick uses top: 84px.
   -------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--green-dd); color: #fff; }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo__word { font: 800 1.45rem/1 var(--display); letter-spacing: -0.03em; }
.logo__word b { color: var(--yellow); font-weight: 800; }
.logo:hover { color: #fff; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #F4FBF7; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.on { background: rgba(255, 255, 255, .14); color: #fff; }
.nav a.nav__all { background: var(--yellow); color: var(--ink); }
.top__menu { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font: 600 .95rem var(--body); padding: 8px 14px; border-radius: 8px; }

/* Under 860px the five .nav links start elbowing each other, so they hide behind the Menu button. */
@media (max-width: 860px) {
  .top__menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--green-dd); padding: 8px 20px 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
}

.crumbbar { background: var(--green) radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px) 0 0 / 22px 22px; }
.crumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; height: 44px; font-size: .88rem; color: #F4FBF7; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a { color: #fff; }
.crumbs > * + *::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .45); }
.crumbbar + .hero { padding-top: 14px; }

/* --------------------------------------------------------------------------
   Hero. .hero::after is the pale yellow sun in the corner. pointer-events: none, so nobody tries to click the weather.
   -------------------------------------------------------------------------- */
.hero { background: var(--green); color: #fff; padding: 48px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 216, 77, .12); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero__lead { font-size: 1.2rem; color: #F4FBF7; max-width: 34em; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero__quick a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .35); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.hero__quick a:hover { background: #fff; color: var(--green-d); }
.hero__quick b { color: var(--yellow); font-weight: 700; }
.hero--page { padding: 36px 0 40px; }
.hero--page .hero__lead { font-size: 1.1rem; }
.meta { font-size: .9rem; color: #F4FBF7; margin: 0 0 12px; }
.meta a { color: #fff; }
.hero__grid > * { min-width: 0; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* --------------------------------------------------------------------------
   Calculator card. .calc gets the deepest shadow on the site and every other box is quietly jealous.
   -------------------------------------------------------------------------- */
.calc { background: #fff; color: var(--text); border-radius: 14px; padding: 22px; box-shadow: 0 24px 60px rgba(4, 50, 31, .28), 0 2px 6px rgba(4, 50, 31, .12); }
.calc__title { font: 700 1.1rem/1.3 var(--display); color: var(--ink); margin: 0 0 14px; }
.calc__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.calc--compact .calc__fields { grid-template-columns: 1.4fr 1fr; }
.calc--compact .calc__fields .f:nth-child(4) { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.f input, .f select { font: 600 1.05rem var(--body); color: var(--ink); background: #F6FAF7; border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-height: 48px; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.f input:focus, .f select:focus { border-color: var(--green); background-color: #fff; outline: none; box-shadow: 0 0 0 3px rgba(11, 122, 75, .18); }
.f__in { position: relative; display: block; }
.f__in i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--muted); pointer-events: none; }
.f__in input { padding-left: 28px; }
.f__in--pct i { left: auto; right: 12px; }
.f__in--pct input { padding-left: 12px; padding-right: 30px; }
.f--money input { font-size: 1.3rem; }
.f--check { flex-direction: row; align-items: center; gap: 10px; font-size: .95rem; color: var(--text); min-height: 48px; }
.f--check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--green); }
.f[hidden] { display: none; }
@media (max-width: 520px) { .calc__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .calc__fields .f--money { grid-column: 1 / -1; } .calc { padding: 18px; } }

.calc__out { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; }
.big__label { width: 100%; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: none; }
.big b { font: 800 clamp(2.3rem, 6vw, 3.1rem)/1 var(--display); color: var(--ink); letter-spacing: -0.03em; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 2px; }
.big__per { font-weight: 600; color: var(--muted); }
.calc__sub { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.calc__sub b { color: var(--ink); }

/* .bar segments are shares of gross pay, so they add up to 100%. The first draft managed 103%. */
.bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--mint); margin: 6px 0 10px; }
.bar__seg { display: block; height: 100%; }
.bar__seg--net { background: var(--green); }
.bar__seg--tax { background: var(--tax); }
.bar__seg--ni { background: var(--ni); }
.bar__seg--loan { background: var(--loan); }
.bar__seg--pen { background: var(--pen); }
.bar__key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.bar__key li { display: flex; align-items: center; gap: 6px; }
.bar__key b { color: var(--ink); }
.bar__dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 20px; border-radius: 10px; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--green-d); color: #fff; }
.btn--full { width: 100%; }

/* "tnum" on the body stacks £2,093.30 neatly over £1,394.40 without a single extra span. */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl th[scope="row"], .tbl thead th:first-child { text-align: left; font-weight: 600; color: var(--text); white-space: normal; }
.tbl thead th { font-size: .8rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--line); }
.tbl tr.total th, .tbl tr.total td { font-weight: 800; color: var(--ink); background: var(--mint); border-bottom: 0; }
.tbl--pay td:nth-child(3) { font-weight: 700; color: var(--ink); }
.tbl a { font-weight: 600; }
.tbl--list td, .tbl--list th { white-space: normal; }
@media (max-width: 520px) { .tbl th, .tbl td { padding: 9px 6px; font-size: .88rem; } }

/* --------------------------------------------------------------------------
   Page body. .page is 1fr plus 300px, and 300px is exactly the width of the sky ad in the sidebar.
   -------------------------------------------------------------------------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 36px 20px 64px; }
.page__main { min-width: 0; }
.page__main > h2:first-child { margin-top: 0; }
.page__side { position: relative; }
.side__stick { position: sticky; top: 84px; display: grid; gap: 20px; }
.side__box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; }
.side__box p.h { font: 700 1.05rem/1.3 var(--display); color: var(--ink); margin: 0 0 10px; }
.side__box ul { list-style: none; margin: 0; padding: 0; }
.side__box li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--mint-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.side__box li:last-child a { border-bottom: 0; }
@media (max-width: 960px) { .page { grid-template-columns: 1fr; gap: 32px; } .side__stick { position: static; } }

.answer { background: var(--mint); border: 1px solid var(--mint-2); border-radius: var(--r); padding: 18px 20px; font-size: 1.1rem; color: var(--ink); }
.answer b { font-weight: 800; }
.note { background: #FFF8DC; border: 1px solid #F2E2A0; border-radius: var(--r); padding: 14px 18px; font-size: .95rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { margin: 8px 0 20px; }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0 24px; padding: 0; list-style: none; }
.chips a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.chips a span { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.chips a:hover { border-color: var(--green); background: var(--mint); }

.band { padding: 56px 0; }
.band--mint { background: var(--mint); }
.band--ink { background: var(--green-dd); color: #D9EEE2; }
.band--ink h2 { color: #fff; }
.band__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.band__head h2 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(4, 50, 31, .12); color: var(--text); }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card__eg { margin-top: auto !important; padding-top: 12px; font-weight: 700; color: var(--green-d) !important; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   FAQ. The open item swaps its + for \2212, a proper minus, because a hyphen looked like it had given up.
   -------------------------------------------------------------------------- */
.faq__item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: #fff; }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--ink); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 1.4rem/1 var(--body); color: var(--green); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item[open] { background: var(--mint); border-color: var(--mint-2); }
.faq__a { padding: 0 18px 4px; }

/* --------------------------------------------------------------------------
   Footer. .foot__grid is 1.4fr then five 1fr columns: the brand blurb talks the most, so it gets the most room.
   -------------------------------------------------------------------------- */
.foot { background: var(--ink); color: #B9CCC1; padding: 48px 0 28px; font-size: .95rem; }
.foot a { color: #E1EFE7; text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.foot__brand p { margin-top: 14px; max-width: 30em; }
.foot__h { font-weight: 700; color: #fff; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot__legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: .85rem; }
.foot__legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
@media (max-width: 1000px) { .foot__grid { grid-template-columns: repeat(3, 1fr); } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot li a { display: inline-block; padding: 6px 0; } }

.pct { display: grid; gap: 16px; }
.calc--mini { box-shadow: none; border: 1px solid var(--line); }
.calc__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; }
.calc__row input, .calc__row select { width: 110px; font: 700 1.1rem var(--body); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px; background: #F6FAF7; min-height: 46px; }
.calc__row output { font: 800 1.5rem var(--display); color: var(--ink); background: var(--yellow); padding: 4px 10px; border-radius: 6px; }

.err { text-align: center; padding: 80px 20px; }
.lead { font-size: 1.15rem; color: var(--muted); }

@media (max-width: 960px) {
  .hero__grid--home .hero__text { display: contents; }
  .hero__grid--home .hero__quick { order: 2; margin-top: 0; }
  .hero__grid--home .calc { order: 1; }
  .hero__grid--home { gap: 20px; }
}

/* --------------------------------------------------------------------------
   Ad slots. .ad--sky reserves 624px: 600 for the unit, 24 for the word Advertisement. Measured, not guessed.
   -------------------------------------------------------------------------- */
.ad { position: relative; margin: 24px auto; text-align: center; }
.ad__label { display: block; font-size: .68rem; letter-spacing: .06em; color: #8A9A91; margin-bottom: 4px; }
.ad--leader { min-height: 114px; max-width: 728px; }
.ad--rect { min-height: 304px; max-width: 336px; }
.ad--sky { min-height: 624px; width: 300px; }
.ad--infeed { min-height: 274px; }
.ad--anchor { display: none; }
.ad__box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #E9EEEB; border: 1px solid #CBD6D0; border-radius: 6px; color: #5F6F66; font-size: .85rem; }
.ad__box b { font: 800 1.05rem var(--display); color: #3E4E45; letter-spacing: -0.01em; }
.ad--leader .ad__box { height: 90px; }
.ad--rect .ad__box { height: 280px; }
.ad--sky .ad__box { height: 600px; }
.ad--infeed .ad__box { height: 250px; }
.ad__m { display: none; }
@media (max-width: 760px) {
  .ad--leader { min-height: 124px; max-width: 320px; }
  .ad--leader .ad__box { height: 100px; }
  .ad--rect, .ad--sky { min-height: 274px; max-width: 300px; width: auto; }
  .ad--rect .ad__box, .ad--sky .ad__box { height: 250px; }
  .ad__d { display: none; }
  .ad__m { display: block; }
  /* The anchor: glued to the bottom of the phone, like a toddler to a parent's leg. */
  .ad--anchor.ad--preview { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; margin: 0; padding: 4px 0 6px; background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); }
  .ad--anchor .ad__label { margin-bottom: 2px; }
  .ad--anchor .ad__box { height: 50px; width: 320px; margin: 0 auto; flex-direction: row; gap: 10px; }
  body { padding-bottom: 74px; }
}

/* --------------------------------------------------------------------------
   Richer hero. A faint dot grid, the graph paper every sum deserves.
   -------------------------------------------------------------------------- */
.hero { background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.hero--home { padding: 56px 0 64px; }
.hero--home h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { display: flex; align-items: center; gap: 8px; color: #F4FBF7; font-size: .95rem; }
.trust svg { color: var(--yellow); flex: none; }
.trust b { color: #fff; }
.hero__calc { position: relative; }
.hero__calc::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; background: var(--yellow); border-radius: 16px; z-index: 0; }
.hero__calc .calc { position: relative; z-index: 1; }
@media (max-width: 960px) { .hero__calc::before { inset: 12px -8px -8px 12px; } }

.res { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.res .calc__sub { margin: 0; line-height: 1.7; }
.donut { display: block; }
.donut circle { fill: none; stroke-width: 15; }
.donut__seg--net { stroke: var(--green); }
.donut__seg--tax { stroke: var(--tax); }
.donut__seg--ni { stroke: var(--ni); }
.donut__seg--loan { stroke: var(--loan); }
.donut__seg--pen { stroke: var(--pen); }
.donut__big { font: 800 24px var(--display); fill: var(--ink); text-anchor: middle; }
.donut__small { font: 600 11px var(--body); fill: var(--muted); text-anchor: middle; }
.btn--go { margin-top: 4px; background: var(--green); }
.btn--go::after { content: "\2192"; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #fff; color: var(--ink); }
@media (max-width: 420px) { .res { grid-template-columns: 1fr; } .res__ring { justify-self: start; } }

/* The payslip. Styled after the grey PDF your employer emails you, minus the sadness. */
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.slip { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(4, 50, 31, .08); overflow: hidden; font-size: .95rem; }
.slip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: var(--ink); color: #fff; padding: 14px 18px; }
.slip__head b { font: 800 1.2rem var(--display); letter-spacing: .02em; }
.slip__head span { font-size: .8rem; color: #B9CCC1; }
.slip__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); margin: 0; border-bottom: 1px solid var(--line); }
.slip__meta div { background: #fff; }
.slip__meta div { padding: 10px 18px; }
.slip__meta dt { font-size: .72rem; color: var(--muted); }
.slip__meta dd { margin: 0; font-weight: 700; color: var(--ink); font-size: .9rem; }
.slip__cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1px; background: var(--line); }
.slip__cols > div { background: #fff; }
.slip__cols > div { padding: 12px 18px; }
.slip__h { font-size: .75rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.slip__row { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.slip__row b { color: var(--ink); font-weight: 600; }
.slip__row--sum { border-top: 1px solid var(--line); padding-top: 6px; }
.slip__row--sum b { font-weight: 800; }
.slip__net { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 14px 18px; background: var(--mint); border-top: 1px solid var(--mint-2); font-weight: 700; color: var(--ink); }
.slip__net b { font: 800 1.6rem var(--display); background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 90%, transparent 90%); }
.day { background: var(--ink); color: #DDEEE4; border-radius: 12px; padding: 22px; font-size: 1.1rem; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.day b { display: block; color: var(--yellow); font: 800 2rem/1.1 var(--display); margin: 6px 0; }
@media (max-width: 760px) { .detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .slip__cols { grid-template-columns: 1fr; } .slip__meta div { padding: 8px 10px; } }

/* .ticker__track holds the list twice and slides by -50%, so the loop joins up and nobody spots the seam. */
.ticker { background: var(--yellow); overflow: hidden; border-bottom: 1px solid #E8C43A; }
.ticker__track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li a { display: block; padding: 12px 22px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; border-right: 1px solid rgba(14, 31, 23, .15); }
.ticker li a b { font-weight: 800; }
.ticker li a:hover { background: rgba(255, 255, 255, .45); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Featured calculators. Three big cards that each show their working, like a good maths teacher asked. */
.band--tight { padding-top: 24px; }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat__card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 14px; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(4, 50, 31, .06); transition: transform .15s, box-shadow .15s; }
.feat__card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(4, 50, 31, .14); color: var(--text); }
.feat__card h3 { margin: 6px 0 0; font-size: 1.35rem; }
.feat__card p { margin: 0; color: var(--muted); font-size: .95rem; }
.feat__demo { margin: 12px 0 4px; padding: 16px; border-radius: 10px; background: var(--mint); display: grid; gap: 8px; }
.feat__card--home .feat__demo { background: #EAF0FD; }
.feat__card--mort .feat__demo { background: #FFF4DA; }
.feat__k { font-size: .82rem; font-weight: 700; color: var(--muted); }
.feat__demo > b { font: 800 2rem/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.feat__demo small { font: 600 .9rem var(--body); color: var(--muted); }
.feat__pair { display: grid; gap: 6px; }
.feat__pair span { display: flex; justify-content: space-between; font-size: .95rem; }
.feat__pair b { font-weight: 800; color: var(--ink); }
.feat__go { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--green-d); }
.feat__go::after { content: " \2192"; }
.minibar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #fff; }
.minibar i { display: block; background: var(--green); }
.minibar i.t { background: var(--tax); }
.minibar i.n { background: var(--ni); }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green); color: #fff; flex: none; }
.feat__card--home .ico, .tile--home .ico { background: #2D6CDF; }
.feat__card--mort .ico { background: #E39B0B; }
.tile--everyday .ico { background: #7B61D9; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); background: #fff; }
.tile:hover { border-color: var(--green); background: var(--mint); color: var(--text); }
.tile .ico { width: 42px; height: 42px; border-radius: 10px; }
.tile__t { display: grid; gap: 2px; min-width: 0; }
.tile__t b { color: var(--ink); font-size: 1rem; }
.tile__t span { color: var(--muted); font-size: .88rem; }
@media (max-width: 960px) { .feat, .tiles { grid-template-columns: 1fr; } }

.insight { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.insight h2 { margin-top: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.insight__keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.insight__keys p { margin: 0; padding: 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; font-size: .88rem; }
.insight__keys b { display: block; font: 800 1.9rem/1.1 var(--display); color: var(--yellow); }
.insight__chart { margin: 0; background: #0A3F29; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 18px; }
.insight__chart figcaption { font-size: .85rem; color: #A9C5B6; margin-top: 8px; }
.chart { width: 100%; height: auto; display: block; }
.ch__grid { stroke: rgba(255, 255, 255, .1); }
.ch__ax { fill: #9DBBAA; font: 12px var(--body); }
.ch__lbl { fill: #FFB4A0; font: 700 12px var(--body); }
.ch__trap { fill: rgba(228, 87, 46, .22); }
.ch__line { fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linejoin: round; }
.ch__line--scot { stroke: #B7A6FF; stroke-width: 2.5; stroke-dasharray: 6 5; }
.lg { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin: 0 6px 0 0; background: var(--yellow); }
.lg--scot { background: #B7A6FF; margin-left: 12px; }
@media (max-width: 960px) { .insight { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .insight__keys { grid-template-columns: 1fr; } }

/* Salary ladder. Width percentages, the humblest data visualisation known to science. */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; } }
.ladder { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.ladder a { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 70px; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); background: #fff; }
.ladder a:hover { border-color: var(--green); background: var(--mint); color: var(--text); }
.ladder li.on a { border-color: var(--green); background: var(--mint); outline: 2px solid var(--green); outline-offset: -2px; }
.ladder__s { font: 800 1.05rem var(--display); color: var(--ink); }
.ladder__bar { height: 12px; background: #F6D7CC; border-radius: 6px; overflow: hidden; }
.ladder__bar i { display: block; height: 100%; background: var(--green); border-radius: 6px 0 0 6px; }
.ladder__m b { color: var(--ink); }
.ladder__p { font-size: .85rem; color: var(--muted); text-align: right; }
@media (max-width: 640px) { .ladder a { grid-template-columns: 84px minmax(0, 1fr); gap: 6px 12px; } .ladder__bar { grid-column: 1 / -1; order: 3; } .ladder__p { text-align: left; } }

.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.news__card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--mint-2); border-radius: 12px; text-decoration: none; color: var(--text); }
.news__card:hover { border-color: var(--green); color: var(--text); }
.news__card h3 { margin: 0; font-size: 1.12rem; }
.news__card p { margin: 0; font-size: .92rem; color: var(--muted); }
.news__d { font-size: .82rem; font-weight: 700; color: var(--green-d); }
@media (max-width: 1000px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; } }

.tbl--vs td.up { color: var(--green-d); font-weight: 700; }
.tbl--vs td.down { color: #B6401F; font-weight: 700; }
.small { font-size: .9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Guides. Photo on top, words underneath, the newspaper layout that outlived newspapers.
   -------------------------------------------------------------------------- */
.ghero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--green-dd); }
.ghero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ghero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 50, 31, .15) 0%, rgba(4, 50, 31, .55) 45%, rgba(4, 50, 31, .94) 100%); }
.ghero__in { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 36px; }
.ghero h1 { color: #fff; max-width: 16em; }
.ghero__lead { font-size: 1.2rem; color: #F4FBF7; max-width: 38em; }
.guide h2 { scroll-margin-top: 84px; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; background: var(--mint); margin-bottom: 28px; }
.toc__h { font: 700 1.05rem var(--display); color: var(--ink); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } .ghero { min-height: 340px; } }
.cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; margin: 32px 0; border-radius: 14px; background: var(--green); color: #fff; text-decoration: none; }
.cta:hover { background: var(--green-d); color: #fff; }
.cta .ico { background: var(--yellow); color: var(--ink); }
.cta b { display: block; font: 800 1.2rem var(--display); }
.cta span span { color: #F4FBF7; font-size: .95rem; }
.cta__go { background: #fff; color: var(--ink); font-weight: 800; padding: 10px 16px; border-radius: 10px; }
@media (max-width: 560px) { .cta { grid-template-columns: auto minmax(0, 1fr); } .cta__go { grid-column: 1 / -1; text-align: center; } }
.side__calc { display: grid; gap: 4px; padding: 20px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.side__calc:hover { background: var(--green-dd); color: #fff; }
.side__calc .ico { margin-bottom: 8px; }
.side__calc b { font: 800 1.15rem var(--display); }
.side__calc span:last-child { color: var(--yellow); font-weight: 700; font-size: .95rem; }

.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gcards--3 { margin-top: 12px; }
.gcard { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.gcard:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(4, 50, 31, .14); color: var(--text); }
.gcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gcard__t { display: grid; gap: 6px; padding: 16px 18px 18px; }
.gcard__t b { font: 750 1.15rem/1.25 var(--display); color: var(--ink); }
.gcard__t span { font-size: .85rem; color: var(--muted); }
.gcard__t .gcard__p { font-size: .95rem; color: var(--text); }
.gcard--big { grid-column: span 2; grid-row: span 2; }
.gcard--big .gcard__t b { font-size: 1.6rem; }
@media (max-width: 960px) { .gcards { grid-template-columns: 1fr 1fr; } .gcard--big { grid-row: auto; } }
@media (max-width: 600px) { .gcards { grid-template-columns: 1fr; } .gcard--big { grid-column: auto; } }

/* Figures and line charts. SVG coordinates worked out by hand, then by build script, then checked by hand again. */
.figure { margin: 22px 0 28px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #FBFDFC; }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.lc { width: 100%; height: auto; display: block; }
.lc__grid { stroke: #E3EBE6; }
.lc__ax { fill: #6B7C72; font: 12px var(--body); }
.lc__lbl { fill: var(--ink); font: 700 12px var(--body); }
.lc__mark { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.lc__line { fill: none; stroke-width: 3; stroke-linejoin: round; }
.lc__line--a { stroke: var(--green); }
.lc__line--b { stroke: #2D6CDF; }
.lc__line--c { stroke: var(--tax); }
.lc__line--d { stroke: var(--loan); }
.lc__line--e { stroke: var(--ni); stroke-dasharray: 6 5; }
.lc__area { fill: rgba(11, 122, 75, .12); }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.key li { display: flex; align-items: center; gap: 7px; }
.key i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.key .a { background: var(--green); } .key .b { background: #2D6CDF; } .key .c { background: var(--tax); } .key .d { background: var(--loan); } .key .e { background: var(--ni); }

.hbar { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; gap: 6px; }
.hbar li > a, .hbar li > div { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) minmax(90px, auto); gap: 12px; align-items: center; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.hbar li > a:hover { background: var(--mint); color: var(--text); }
.hbar li.on > a, .hbar li.on > div { background: var(--mint); outline: 2px solid var(--green); outline-offset: -2px; }
.hbar__l { font-weight: 700; color: var(--ink); }
.hbar__t { height: 14px; background: #EEF3F0; border-radius: 7px; overflow: hidden; }
.hbar__t i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #2FA56F); border-radius: 7px; }
.hbar__v { font-weight: 800; color: var(--ink); text-align: right; }
@media (max-width: 520px) { .hbar li > a, .hbar li > div { grid-template-columns: minmax(0, 1fr) auto; } .hbar__t { grid-column: 1 / -1; order: 3; } }

.timeline { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; counter-reset: tl; }
.timeline li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; counter-increment: tl; }
.timeline time { display: inline-block; justify-self: start; font-size: .85rem; font-weight: 800; color: var(--ink); background: var(--yellow); padding: 3px 9px; border-radius: 6px; }
.timeline b { font: 750 1.08rem/1.3 var(--display); color: var(--ink); margin-top: 4px; }
.timeline span { color: var(--muted); font-size: .95rem; }

.pband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: var(--ink); color: #D9EEE2; margin: 28px 0; }
.pband img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.pband__t { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.pband__t h2, .pband__t h3 { color: #fff; margin-top: 0; }
.pband__t ul { margin: 0 0 14px; padding-left: 1.1em; }
.pband__t a { color: var(--yellow); font-weight: 700; }
@media (max-width: 760px) { .pband { grid-template-columns: 1fr; } .pband img { min-height: 200px; max-height: 240px; } }
.figure--dark { background: #0A3F29; border-color: #0A3F29; }
.figure--dark figcaption { color: #A9C5B6; }
.homes { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.homes .figure { margin: 0; background: #fff; }
.figure__h { font: 750 1.1rem var(--display); color: var(--ink); margin: 0 0 10px; }
@media (max-width: 960px) { .homes { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.band--ink .faq h2 { color: #fff; }
.band--ink .faq__item { border-color: transparent; }
.gcard--big img { aspect-ratio: auto; flex: 1 1 auto; min-height: 260px; height: 100%; }
.timeline li { align-content: start; }
.hfacts { margin: 22px 0 0; background: rgba(4, 50, 31, .35); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; overflow: hidden; }
.hfacts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 18px; }
.hfacts div + div { border-top: 1px solid rgba(255, 255, 255, .1); }
.hfacts dt { color: #F4FBF7; font-size: .95rem; }
.hfacts dd { margin: 0; font: 800 1.2rem var(--display); color: #fff; text-align: right; }
.hfacts dd b { color: var(--yellow); font-weight: 800; }
.trust--sm { margin-top: 18px; gap: 6px 18px; }
.trust--sm li { font-size: .88rem; }
.trust--sm li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.hero--page .hero__quick { margin-top: 18px; }
.top__menu { min-height: 44px; min-width: 64px; }
.ad__label { font-size: .75rem; }
.slip__meta dt, .slip__h { font-size: .78rem; }
.toc li a { display: block; padding: 11px 0; }
@media (max-width: 860px) { .nav a { min-height: 44px; display: flex; align-items: center; } }

/* Phones: the calculator jumps the queue. .hero__text dissolves with display: contents so its children can be reordered around .hero__tool. */
@media (max-width: 960px) {
  .hero__grid--tool { gap: 12px; }
  .hero__grid--tool .hero__text { display: contents; }
  .hero__grid--tool h1, .hero__grid--tool .meta, .hero__grid--tool .hero__lead { margin-bottom: 0; }
  .hero__grid--tool .hero__tool { order: 1; margin-top: 8px; }
  .hero__grid--tool .hfacts { order: 2; margin-top: 12px; }
  .hero__grid--tool .hero__quick { order: 3; margin-top: 0; }
  .hero__grid--tool .trust { order: 4; margin-top: 4px; }
  .hero__grid--home .trust { order: 3; margin-top: 0; }
}
@media (max-width: 520px) {
  .calc__fields .f--wide { grid-column: 1 / -1; }
  .hero--page .hero__lead { font-size: 1rem; }
}
@media (max-width: 520px) { .calc__row input, .calc__row select { width: 84px; } .calc__row { gap: 8px; } }
.trust--sm li { display: block; }
.trust--sm li::before { display: inline-block; margin-right: 7px; vertical-align: middle; }
.faq__item, .faq__a, .faq__a p { color: var(--text); }

.ck, .ckp { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f1f1f; letter-spacing: 0; }
.ck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #fff; border-top: 1px solid #dcdcdc; box-shadow: 0 -8px 30px rgba(0, 0, 0, .14); }
.ck__in { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center; }
.ck__text .ck__title { margin: 0 0 6px; font-size: 1.18rem; font-weight: 700; color: #111; line-height: 1.3; }
.ck__text p { margin: 0; font-size: .92rem; line-height: 1.55; color: #3c3c3c; }
.ck__text a { color: #111; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ck__btns { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
.ck__btns .ck__btn--link { grid-column: 1 / -1; }
.ck__btn { min-height: 46px; padding: 0 20px; border-radius: 4px; font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ck__btn--solid { background: #111; color: #fff; border: 2px solid #111; }
.ck__btn--solid:hover { background: #333; border-color: #333; }
.ck__btn--outline { background: #fff; color: #111; border: 2px solid #111; }
.ck__btn--outline:hover { background: #f2f2f2; }
.ck__btn--link { background: none; border: 0; color: #111; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.ck__btn:focus-visible, .ckp__close:focus-visible, .ckp__sw input:focus-visible + i { outline: 3px solid #2563eb; outline-offset: 2px; }
.ckp { position: fixed; inset: 0; z-index: 210; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; }
.ckp[hidden] { display: none; }
.ckp__box { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.ckp__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid #e6e6e6; }
.ckp__title { margin: 0; font-size: 1.15rem; font-weight: 700; color: #111; }
.ckp__close { width: 36px; height: 36px; border: 0; background: #f2f2f2; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #111; }
.ckp__body { padding: 18px 22px; overflow: auto; font-size: .92rem; line-height: 1.55; color: #3c3c3c; }
.ckp__body > p { margin: 0 0 14px; }
.ckp__cat { border: 1px solid #e6e6e6; border-radius: 6px; padding: 14px 16px; margin-bottom: 10px; }
.ckp__cat p { margin: 6px 0 0; font-size: .87rem; color: #555; }
.ckp__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #111; cursor: pointer; }
.ckp__on { font-size: .82rem; font-weight: 700; color: #1a7f37; }
.ckp__sw { position: relative; width: 46px; height: 26px; flex: none; }
.ckp__sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ckp__sw i { position: absolute; inset: 0; border-radius: 26px; background: #c7c7c7; transition: background .15s; pointer-events: none; }
.ckp__sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.ckp__sw input:checked + i { background: #111; }
.ckp__sw input:checked + i::after { transform: translateX(20px); }
.ckp__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 22px 18px; border-top: 1px solid #e6e6e6; }
.ckp__foot .ck__btn { padding: 0 8px; font-size: .9rem; }
html.ck-lock { overflow: hidden; }
@media (max-width: 760px) {
  .ck__in { grid-template-columns: minmax(0, 1fr); padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); gap: 14px; }
  .ck__btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ckp__foot { grid-template-columns: minmax(0, 1fr); }
}
.ck__btn--link { min-height: 44px; }
@media (max-width: 760px) {
  .ck__in { padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .ck__text .ck__title { font-size: 1.02rem; margin-bottom: 4px; }
  .ck__text p { font-size: .82rem; line-height: 1.45; }
  .ck__btns { gap: 8px; }
  .ck__btn { min-height: 44px; }
}
