/* My Prime Cover. Calm, bright and boxed. Neutrals carry the page and colour always means
   something: peacock blue is what you can tap, iris violet is what you need, jade green is
   what you get, marigold marks the brand, and red marks a warning. Mukta sets the words;
   Anek Latin, from the same Indian foundry, sets the answers.

   Release 4.2: one page width, one type scale, one spacing scale.
   WIDTH    every page, and every section of it, sits in the same 1120px column (--page) with the same gutters.
   GRID     cards sit two, three or four across on twelve columns, chosen by how many there are, so rows end level.
   TYPE     eight sizes (--fs-*), stepping down together on phones. Mukta's letters are small on their body
            (x-height 0.47em), so the sizes run a step larger, and the lines a step closer (--lh-*), than in most faces.
   SPACE    4, 8, 12, 16, 24, 32, 48 and 72 pixels, and nothing between. */
/* Fonts: subsets of Mukta, Copyright (c) 2014 Girish Dalvi, Ek Type, and Anek Latin, Copyright 2021 The Anek Project
   Authors (Ek Type). Both are licensed under the SIL Open Font License 1.1: https://openfontlicense.org */
@font-face { font-family: 'MPC Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Mukta-Regular.70441267ce.woff2') format('woff2'); }
@font-face { font-family: 'MPC Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Mukta-Medium.c31c5b8abf.woff2') format('woff2'); }
@font-face { font-family: 'MPC Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Mukta-SemiBold.39c9936f4a.woff2') format('woff2'); }
@font-face { font-family: 'MPC Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Mukta-Bold.b86e245fbb.woff2') format('woff2'); }
@font-face { font-family: 'MPC Figures'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('fonts/AnekLatin.a335098daf.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'MPC Figures'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('fonts/AnekLatin-ext.dd2e45b269.woff2') format('woff2'); unicode-range: U+20B9; }

:root {
  --bg: #FFFFFF;
  --mist: #F4F6FA;
  --mist-2: #E9EDF4;
  --line: #E1E6EE;
  --line-2: #C3CCDA;
  --ink: #14213D;
  --ink-2: #4A556B;
  --ink-3: #5F697D;
  --brand: #0A6C9E;
  --brand-2: #08547B;
  --brand-tint: #E7F2F9;
  --need: #4B3FD0;
  --need-2: #3B30B3;
  --need-tint: #EFEDFE;
  --get: #0B7A56;
  --get-2: #08613F;
  --get-tint: #E5F5EE;
  --sun: #F2A21B;
  --sun-tint: #FFF3DC;
  --sun-ink: #7A4A00;
  --warn: #B42318;
  --warn-tint: #FDEDEB;
  --on-accent: #FFFFFF;
  --focus: #0A6C9E;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 10px 30px -14px rgba(20, 33, 61, 0.28);
  --text: 'MPC Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --figures: 'MPC Figures', 'MPC Text', system-ui, sans-serif;

  /* type: the only sizes there are */
  --fs-micro: 0.875rem;    /* 14: hints, tags, table headings, small print */
  --fs-small: 1rem;        /* 16: labels, table cells, card text, buttons, the menu */
  --fs-body: 1.125rem;     /* 18: sentences, and what you type */
  --fs-h3: 1.3125rem;      /* 21: card and block titles, and the line under a page title */
  --fs-sub: 1.625rem;      /* 26: headings inside a page's panels and articles */
  --fs-h2: 2rem;           /* 32: section headings */
  --fs-h1: 2.75rem;        /* 44: page titles */
  --fs-display: 3.75rem;   /* 60: the answers */
  --lh-tight: 1.08;        /* display and page titles */
  --lh-head: 1.2;          /* headings */
  --lh-ui: 1.3;            /* labels, buttons, cells: a line or two */
  --lh-body: 1.4;          /* sentences */
  --lh-prose: 1.48;        /* articles, read at length */

  /* space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --page: 1120px;          /* the one content width */
  --gutter: 24px;          /* its side margins */
  --gap: 24px;             /* between cards and columns */
  --pad: 24px;             /* inside a card */
  --pad-lg: 32px;          /* inside a page's main panels */
  --sec: 72px;             /* above each section */
  --cell-x: 16px;          /* table cells */
  --cell-y: 10px;
  --measure: 68ch;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --head-h: 64px;
  color-scheme: light;
}
@media (max-width: 699px) {
  :root {
    --fs-micro: 0.8125rem;   /* 13 */
    --fs-small: 0.9375rem;   /* 15 */
    --fs-body: 1.0625rem;    /* 17 */
    --fs-h3: 1.1875rem;      /* 19 */
    --fs-sub: 1.375rem;      /* 22 */
    --fs-h2: 1.625rem;       /* 26 */
    --fs-h1: 2rem;           /* 32 */
    --fs-display: 2.75rem;   /* 44 */
    --gutter: 16px;
    --gap: 12px;
    --pad: 18px;
    --pad-lg: 18px;
    --sec: 48px;
    --cell-x: 12px;
    --r-lg: 20px;
  }
}
/* text size: every size above is in rem, so the whole scale grows together */
html[data-text="1"] { font-size: 118.75%; }
html[data-text="2"] { font-size: 137.5%; }

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { font-family: var(--text); font-weight: 700; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-head); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-small); line-height: var(--lh-ui); }
p { margin: 0; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { left: 8px; }
.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; }
.muted { color: var(--ink-2); }
.nb { white-space: nowrap; }
.small { font-size: var(--fs-small); }
.ico svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- header */
.masthead { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .masthead { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); flex-wrap: wrap; min-height: var(--head-h); padding-top: var(--s-2); padding-bottom: var(--s-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--fs-body); letter-spacing: -0.01em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: var(--s-1); }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: var(--fs-small); padding: 8px 14px; border-radius: 999px; white-space: nowrap; line-height: var(--lh-ui); }
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--mist-2); font-weight: 600; }
.text-size { display: inline-flex; gap: 2px; padding: 3px; background: var(--mist); border-radius: 999px; }
.text-size[hidden] { display: none; }
.text-size button { font: inherit; font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; min-width: 40px; min-height: 40px; padding: 0 10px; cursor: pointer; line-height: 1; }
.text-size button[data-ts="0"] { font-size: var(--fs-micro); }
.text-size button[data-ts="2"] { font-size: var(--fs-body); }
.text-size button[aria-pressed="true"] { background: var(--bg); color: var(--brand); box-shadow: 0 1px 2px rgba(20, 33, 61, 0.12); }
.text-size button:hover { color: var(--ink); }
.text-size button:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
@media (min-width: 900px) {
  .masthead { position: sticky; top: 0; }
  html { scroll-padding-top: calc(var(--head-h) + 20px); }
}
.nav a.in { color: var(--ink); background: var(--mist); }
@media (max-width: 899px) {
  .bar { padding-top: 10px; padding-bottom: 6px; row-gap: 6px; }
  .bar .text-size { order: 2; }
  /* six short words fit on one line of a phone; with larger text they wrap, and never scroll sideways */
  .bar .nav { order: 3; width: calc(100% + 16px); margin: 0 -8px; flex-wrap: wrap; gap: 2px; }
  .nav a { padding: 7px 10px; }
}
@media (max-width: 479px) {
  .bar .nav { justify-content: space-between; gap: 0; }
  .nav a { padding: 7px 8px; }
}
@media (max-width: 359px) {
  .nav a { padding: 7px 5px; }
}

main { display: block; min-height: 60vh; }
main:focus { outline: none; }

/* ---------------------------------------------------------------- buttons and chips */
.go { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 10px 24px; border-radius: 999px; background: var(--brand); color: var(--on-accent); font-weight: 600; font-size: var(--fs-small); line-height: var(--lh-ui); text-decoration: none; justify-self: start; text-align: center; }
.go:hover { background: var(--brand-2); }
.need .go { background: var(--need); }
.need .go:hover { background: var(--need-2); }
.get .go { background: var(--get); }
.get .go:hover { background: var(--get-2); }
.go.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
button.go { font-family: inherit; border: 0; cursor: pointer; }
.go.quiet:hover { background: var(--mist); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips a { padding: 8px 16px; border-radius: 999px; background: var(--mist); color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-small); line-height: var(--lh-ui); }
.chips a:hover { background: var(--brand-tint); color: var(--brand); }
.link { font: inherit; font-size: var(--fs-small); font-weight: 600; line-height: var(--lh-ui); color: var(--brand); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.link.quiet { color: var(--ink-2); font-weight: 500; }

/* ---------------------------------------------------------------- sections: every one starts the same way */
.section { padding-top: var(--sec); }
.section-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); max-width: 760px; }
.section-head p { color: var(--ink-2); }
.section-foot { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.band { background: var(--mist); margin-top: var(--sec); padding-bottom: var(--sec); }

/* ---------------------------------------------------------------- card grids: twelve columns, and rows that end level */
.cards, .g-cards, .trust-list, .routes, .features, .secs, .kinds, .promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.cards > *, .g-cards > *, .trust-list > *, .routes > *, .features > *, .kinds > *, .promises > * { grid-column: span 4; min-width: 0; }
.secs > * { grid-column: span 6; min-width: 0; }
/* three across leaves one or two over: two share the last row in halves; one joins the three before it, four across */
.cards > :nth-child(3n + 1):nth-last-child(2), .cards > :nth-child(3n + 2):last-child,
.g-cards > :nth-child(3n + 1):nth-last-child(2), .g-cards > :nth-child(3n + 2):last-child,
.trust-list > :nth-child(3n + 1):nth-last-child(2), .trust-list > :nth-child(3n + 2):last-child { grid-column: span 6; }
.cards > :nth-child(3n + 1):nth-last-child(4), .cards > :nth-child(3n + 2):nth-last-child(3), .cards > :nth-child(3n):nth-last-child(2), .cards > :nth-child(3n + 4):last-child,
.g-cards > :nth-child(3n + 1):nth-last-child(4), .g-cards > :nth-child(3n + 2):nth-last-child(3), .g-cards > :nth-child(3n):nth-last-child(2), .g-cards > :nth-child(3n + 4):last-child,
.trust-list > :nth-child(3n + 1):nth-last-child(4), .trust-list > :nth-child(3n + 2):nth-last-child(3), .trust-list > :nth-child(3n):nth-last-child(2), .trust-list > :nth-child(3n + 4):last-child { grid-column: span 3; }
/* four or eight of them: four across */
.cards > :first-child:nth-last-child(4n), .cards > :first-child:nth-last-child(4n) ~ *,
.routes > :first-child:nth-last-child(4n), .routes > :first-child:nth-last-child(4n) ~ *,
.kinds > :first-child:nth-last-child(4n), .kinds > :first-child:nth-last-child(4n) ~ *,
.promises > :first-child:nth-last-child(4n), .promises > :first-child:nth-last-child(4n) ~ * { grid-column: span 3; }
/* two, or four of the wider kind: two across */
.cards > :first-child:nth-last-child(2), .cards > :first-child:nth-last-child(2) ~ *,
.features > :first-child:nth-last-child(2), .features > :first-child:nth-last-child(2) ~ *,
.features > :first-child:nth-last-child(4), .features > :first-child:nth-last-child(4) ~ *,
.g-cards > :first-child:nth-last-child(2), .g-cards > :first-child:nth-last-child(2) ~ *,
.g-cards > :first-child:nth-last-child(4), .g-cards > :first-child:nth-last-child(4) ~ * { grid-column: span 6; }
/* five: three, then two that share the row */
.features > :first-child:nth-last-child(5) ~ :nth-child(n + 4) { grid-column: span 6; }
.cards > li, .g-cards > li { display: flex; }
@media (max-width: 999px) {
  .cards > *, .g-cards > *, .trust-list > *, .routes > *, .features > *, .kinds > *, .promises > *,
  .cards > :first-child:nth-last-child(4n), .cards > :first-child:nth-last-child(4n) ~ *,
  .routes > :first-child:nth-last-child(4n), .routes > :first-child:nth-last-child(4n) ~ *,
  .kinds > :first-child:nth-last-child(4n), .kinds > :first-child:nth-last-child(4n) ~ *,
  .promises > :first-child:nth-last-child(4n), .promises > :first-child:nth-last-child(4n) ~ * { grid-column: span 6; }
  .features > :first-child:nth-last-child(3), .features > :first-child:nth-last-child(3) ~ * { grid-column: span 12; }
  /* :nth-last-child(n) matches every card and adds weight, so this outranks the rules above for a last row of one or two,
     whatever the count: without it a list of 5, 7 or 10 kept its desktop last row on a phone */
  .cards > li:nth-child(n):nth-last-child(n), .g-cards > li:nth-child(n):nth-last-child(n), .trust-list > li:nth-child(n):nth-last-child(n) { grid-column: span 6; }
  /* an odd one out takes the whole of the last row */
  .cards > li:last-child:nth-child(odd), .g-cards > li:last-child:nth-child(odd), .trust-list > li:last-child:nth-child(odd),
  .routes > li:last-child:nth-child(odd), .kinds > :last-child:nth-child(odd), .promises > li:last-child:nth-child(odd), .features > :last-child:nth-child(odd) { grid-column: span 12; }
}
@media (max-width: 699px) {
  .cards > *, .g-cards > *, .trust-list > *, .routes > *, .features > *, .kinds > *, .promises > *, .secs > *,
  .cards > :first-child:nth-last-child(4n), .cards > :first-child:nth-last-child(4n) ~ *,
  .cards > :first-child:nth-last-child(2), .cards > :first-child:nth-last-child(2) ~ *,
  .routes > :first-child:nth-last-child(4n), .routes > :first-child:nth-last-child(4n) ~ *,
  .kinds > :first-child:nth-last-child(4n), .kinds > :first-child:nth-last-child(4n) ~ *,
  .promises > :first-child:nth-last-child(4n), .promises > :first-child:nth-last-child(4n) ~ *,
  .features > :first-child:nth-last-child(2), .features > :first-child:nth-last-child(2) ~ *,
  .features > :first-child:nth-last-child(4), .features > :first-child:nth-last-child(4) ~ *,
  .features > :first-child:nth-last-child(5) ~ :nth-child(n + 4),
  .g-cards > :first-child:nth-last-child(2), .g-cards > :first-child:nth-last-child(2) ~ *,
  .g-cards > :first-child:nth-last-child(4), .g-cards > :first-child:nth-last-child(4) ~ *,
  .cards > li:nth-child(n):nth-last-child(n), .g-cards > li:nth-child(n):nth-last-child(n), .trust-list > li:nth-child(n):nth-last-child(n) { grid-column: span 12; }
}

/* the plain card: a tool or a guide to open */
.cards a, .g-cards a { flex: 1; display: grid; align-content: start; gap: var(--s-2); padding: var(--pad); border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cards a:hover, .g-cards a:hover { border-color: color-mix(in srgb, var(--tone, var(--brand)) 55%, var(--line)); }
.cards a:hover h3, .g-cards a:hover h3 { color: var(--tone, var(--brand)); }
.cards .sum, .g-cards .sum { color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-body); }
.g-cards h3 { font-size: var(--fs-body); }
.g-cards .mins { color: var(--ink-3); font-size: var(--fs-micro); font-weight: 600; margin-top: var(--s-1); }
.ico.tile { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--tint, var(--brand-tint)); color: var(--tone, var(--brand)); margin-bottom: var(--s-2); }
.ico.tile svg { width: 24px; height: 24px; }
.t-need { --tone: var(--need); --tint: var(--need-tint); }
.t-get { --tone: var(--get); --tint: var(--get-tint); }
.t-brand { --tone: var(--brand); --tint: var(--brand-tint); }
.t-sun { --tone: var(--sun-ink); --tint: var(--sun-tint); }
@media (max-width: 699px) {
  .cards a { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-1); }
  .cards a .ico.tile { grid-row: span 2; margin: 0; }
}

/* the tinted card: one of the main tools */
.features { margin-bottom: var(--gap); }
.feature { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--pad-lg); border-radius: var(--r-lg); background: var(--tint); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.feature:hover { border-color: color-mix(in srgb, var(--tone) 45%, transparent); }
.feature h2 { font-size: var(--fs-sub); }
.feature p { color: var(--ink-2); font-size: var(--fs-small); max-width: 46ch; }
.feature .feature-sub { font-size: var(--fs-micro); font-weight: 700; color: var(--tone); }
.feature .ico.tile { background: var(--bg); margin-bottom: 0; }
.feature .go { margin-top: auto; background: var(--tone); color: var(--on-accent); }
.feature p + .go, .feature .feature-sub + .go { margin-top: auto; }
.feature.wide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4) var(--s-5); margin-bottom: var(--gap); }
.feature.wide h3 { margin-bottom: var(--s-1); }
.feature.wide p { max-width: 68ch; }
.feature.wide .go { margin-top: 0; }
@media (max-width: 760px) { .feature.wide { grid-template-columns: minmax(0, 1fr); } }

/* the listed card: a group of guides */
.sec { background: var(--mist); border-radius: var(--r-lg); padding: var(--pad) var(--pad) var(--s-3); display: grid; gap: var(--s-3); align-content: start; }
.sec-head { display: flex; align-items: center; gap: var(--s-4); }
.sec-head .ico.tile { margin: 0; flex: none; background: var(--bg); }
.sec-head h3 a { color: var(--ink); text-decoration: none; }
.sec-head h3 a:hover { color: var(--brand); }
.sec-head p { color: var(--ink-3); font-size: var(--fs-micro); }
.sec ul { list-style: none; margin: 0; padding: 0; display: grid; }
.sec li a { display: block; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-small); line-height: var(--lh-ui); }
.sec li a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- the home page, below the guide */
/* the two live questions: their rows line up across the pair */
.questions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.q { --tile: var(--mist); border-radius: var(--r-lg); padding: var(--pad-lg); display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; background: var(--tile); }
.q > * { min-width: 0; }
.q > .go { margin-top: auto; align-self: flex-start; }
.q.need { --tile: var(--need-tint); --tone: var(--need); }
.q.get { --tile: var(--get-tint); --tone: var(--get); }
.q .lead { font-size: var(--fs-h2); }
@media (min-width: 960px) {
  .questions { grid-template-columns: 1fr 1fr; }
  @supports (grid-template-rows: subgrid) {
    .questions { grid-template-rows: repeat(7, auto); }
    .q { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: var(--s-4); align-content: start; }
    .q > .go { grid-row: 7; align-self: end; justify-self: start; margin-top: var(--s-2); }
    .q > .viz { align-self: stretch; align-content: center; }
    .q.get > .viz { grid-row: 5 / 7; }
    .q > .carried { grid-row: 6; }
  }
}
.sentence { font-size: var(--fs-h3); line-height: 1.9; max-width: 30em; color: var(--ink); }
.small-sentence { font-size: var(--fs-body); line-height: 1.8; }
.blank { font: inherit; font-weight: 600; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 8px; margin: 0 2px; text-align: center; min-width: 2.6ch; line-height: 1.5; font-variant-numeric: tabular-nums; vertical-align: baseline; transition: border-color 0.15s, box-shadow 0.15s; }
.blank:hover { border-color: var(--tone, var(--brand)); }
.blank:focus { outline: none; border-color: var(--tone, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone, var(--brand)) 24%, transparent); }
.blank:focus-visible { outline: none; }
.blank[aria-invalid="true"] { border-color: var(--warn); color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
.blank.ex { border-style: dashed; font-style: italic; color: var(--ink-2); }
.answer { display: grid; gap: var(--s-2); align-content: start; }
.big { font-family: var(--figures); font-weight: 640; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; margin: 0; }
.big .unit { font-size: var(--fs-sub); font-weight: 600; letter-spacing: -0.005em; white-space: pre; }
.answer .big { font-size: var(--fs-display); }
.need .big { color: var(--need); }
.get .big { color: var(--get); }
.cap { color: var(--ink-2); }
.answer .cap { max-width: 44ch; font-size: var(--fs-small); }
.stamped { animation: stamp 280ms ease-out; }
@keyframes stamp { from { opacity: 0.4; } to { opacity: 1; } }
.example-tag { justify-self: start; align-self: start; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--sun-ink); border-radius: var(--r-sm); padding: 6px 12px; font-size: var(--fs-micro); font-weight: 600; line-height: var(--lh-body); }
.carried { color: var(--ink-2); font-size: var(--fs-micro); line-height: var(--lh-body); }
.carried .link { font-size: inherit; padding: 0; }

/* what the answer is made of: a slim bar and its key */
.viz { display: grid; gap: var(--s-3); padding: var(--s-4) var(--pad); border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 62%, transparent); }
.viz:empty { display: none; }
.viz-bar { position: relative; display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--tone) 12%, transparent); }
.viz-bar span { display: block; height: 100%; background: color-mix(in srgb, var(--tone) calc(var(--o, 1) * 100%), var(--bg)); }
.viz-bar span + span { box-shadow: inset 2px 0 0 var(--bg); }
.viz-bar .less { position: absolute; right: 0; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, var(--bg) 0 3px, color-mix(in srgb, var(--tone) 25%, var(--bg)) 3px 6px); }
.viz-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 6px var(--s-5); font-size: var(--fs-micro); color: var(--ink-2); line-height: var(--lh-ui); }
.viz-key li { display: flex; align-items: baseline; gap: 8px; }
.viz-key i { width: 10px; height: 10px; border-radius: 3px; flex: none; background: color-mix(in srgb, var(--tone) calc(var(--o, 1) * 100%), var(--bg)); }
.viz-key .less i { background: repeating-linear-gradient(-45deg, var(--bg) 0 2px, color-mix(in srgb, var(--tone) 45%, var(--bg)) 2px 4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 40%, transparent); }
.viz-key b { color: var(--ink); font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pair { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-4); font-size: var(--fs-small); }
.pair .pl { color: var(--ink-2); font-weight: 600; }
.pair .pv { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.pair .track { height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 12%, transparent); overflow: hidden; }
.pair .fillbar { display: block; height: 100%; border-radius: 999px; background: var(--tone); }
.pair .fillbar.paid { background: color-mix(in srgb, var(--tone) 42%, var(--bg)); }

/* four ways in, by where the visitor is */
.routes { row-gap: var(--s-6); }
.routes > li { border-top: 3px solid var(--tone); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.routes p { color: var(--ink-2); font-size: var(--fs-small); }
.routes ul { list-style: none; margin: var(--s-1) 0 0; padding: 0; display: grid; }
.routes ul a { display: inline-block; padding: 6px 0; color: var(--tone); font-size: var(--fs-small); font-weight: 600; line-height: var(--lh-ui); text-underline-offset: 3px; }

/* short promises, each with its mark */
.promises li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px var(--s-4); align-items: start; align-content: start; }
.promises .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--sun-tint); color: var(--sun-ink); display: grid; place-items: center; }
.promises .ico svg { width: 22px; height: 22px; }
.promises strong { color: var(--ink); font-size: var(--fs-small); line-height: var(--lh-ui); padding-top: 2px; }
.promises span { color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-body); }

/* how it works: three short lines beside the opening question; then facts you can check */
.ask-how { display: grid; gap: var(--s-3); }
.how-h { font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); letter-spacing: 0; line-height: var(--lh-ui); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.how-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 2px; align-items: start; }
.how-steps svg { width: 44px; height: 44px; grid-row: span 2; }
.how-steps h3 { font-size: var(--fs-body); padding-top: 1px; }
.how-steps p { color: var(--ink-2); font-size: var(--fs-small); }
.trust { padding-top: var(--sec); }
.trust-list li { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--pad); display: grid; gap: var(--s-1); align-content: start; }
.trust-list h3 { font-size: var(--fs-body); }
.trust-list p { color: var(--ink-2); font-size: var(--fs-small); }

/* ---------------------------------------------------------------- page heads and hubs */
.page-head { padding: var(--s-7) 0 var(--s-2); display: grid; gap: var(--s-3); }
.page-head > h1, .page-head > p { max-width: 780px; }
.page-head p { color: var(--ink-2); font-size: var(--fs-h3); line-height: var(--lh-body); }
.page-head .chips { margin-top: var(--s-2); }
.page-head + .section { padding-top: var(--s-6); }
.hub { scroll-margin-top: 12px; padding-top: var(--sec); }
.hub > h2 { margin-bottom: var(--s-2); }
.hub-intro { color: var(--ink-2); max-width: var(--measure); margin: 0 0 var(--s-5); }
.kinds { margin: 0; }
.kinds div { border-left: 3px solid var(--line-2); padding: 2px 0 2px var(--s-4); }
.kinds div:first-child { border-left-color: var(--tone, var(--brand)); }
.kinds dt { font-weight: 700; color: var(--ink); line-height: var(--lh-ui); }
.kinds dd { margin: var(--s-1) 0 0; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 699px) {
  .page-head { padding-top: var(--s-6); }
}

/* ---------------------------------------------------------------- tool pages: what you type on the left, the answer on the right */
body[data-page="need"], body[data-page="get"], body[data-page="keep-or-stop"], body[data-page="cover-gap"],
body[data-page="claim-checklist"], body[data-page="questions"], body[data-page="term-compare"], body[data-page="ulip-compare"],
body[data-page="pension-compare"], body[data-page="ulip-funds"], body[data-page="premium-dates"], body[data-page="compare-bis"] { background: var(--mist); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding: var(--s-5) 0; }
@media (min-width: 960px) {
  .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .result.fits { position: sticky; top: calc(var(--head-h) + 20px); }
}
.tool.one { grid-template-columns: minmax(0, 1fr); }

/* what you type */
.inputs { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--pad-lg); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.inputs > fieldset + fieldset, .inputs > fieldset + details, .inputs > details + fieldset, .inputs > div + fieldset { border-top: 1px solid var(--line); margin-top: var(--s-5); padding-top: var(--s-5); }
legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--s-3); font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: var(--lh-head); color: var(--ink); }
legend + * { clear: both; }
fieldset > .hint { margin: calc(-1 * var(--s-1)) 0 var(--s-3); }
/* fields: never more than four across, so a row of them lines up with the row above */
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 3 * var(--s-4)) / 4)), 1fr)); gap: var(--s-4); }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
/* inputs in a row line up, whatever the length of their labels */
@supports (grid-template-rows: subgrid) {
  .fields { row-gap: 0; }
  .fields > .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: stretch; margin-bottom: var(--s-4); }
  .fields > .field > label { align-self: end; }
  .fields > .field > .hint, .fields > .field > .err { align-self: start; }
}
.fields > .span-all { grid-column: 1 / -1; }
.field label, .field-lab { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); line-height: var(--lh-ui); }
.field-lab { margin: 0 0 var(--s-2); }
.hint { font-size: var(--fs-micro); color: var(--ink-3); line-height: var(--lh-body); }
.err { font-size: var(--fs-micro); color: var(--warn); font-weight: 600; line-height: var(--lh-body); }
.input { font: inherit; font-size: var(--fs-body); font-weight: 600; line-height: var(--lh-ui); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); min-height: 48px; padding: 8px 14px; width: 100%; font-variant-numeric: tabular-nums; transition: border-color 0.15s, box-shadow 0.15s; }
.input:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line-2)); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input:focus-visible { outline: none; }
.input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
.input:disabled { opacity: 0.45; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 54%, calc(100% - 14px) 54%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
select.input option { color: var(--ink); background: var(--bg); }
/* a choice is words, not a figure: a size down on wide screens, where the boxes are narrower (phones keep 17px, so nothing zooms) */
@media (min-width: 700px) { select.input { font-size: var(--fs-small); } }
.fields > .field.wide { grid-column: span 2; }
.tc-plan .fields > .field.wide, .tc-rider .fields > .field.wide { grid-column: auto; }
textarea.input { font-weight: 500; font-size: var(--fs-small); font-family: ui-monospace, Menlo, Consolas, monospace; min-height: 190px; resize: vertical; line-height: var(--lh-body); white-space: pre; overflow: auto; padding: 12px 14px; }
input[type="date"].input { font-variant-numeric: tabular-nums; }
.input.file { font-size: var(--fs-small); font-weight: 500; padding: 8px 12px; min-height: 52px; cursor: pointer; }
.input.file::file-selector-button { font: inherit; font-weight: 600; color: var(--on-accent); background: var(--brand); border: 0; border-radius: 999px; padding: 7px 16px; margin-right: 12px; cursor: pointer; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-3); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.check label { font-size: var(--fs-small); line-height: var(--lh-body); }
.check + .hint { margin-top: 6px; padding-left: 32px; }
.goals { display: grid; gap: var(--s-3); }
.goals:empty { display: none; }
.goal { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 0.8fr) auto; gap: var(--s-3) var(--s-4); align-items: end; padding: var(--s-4); border-radius: var(--r-md); background: var(--mist); }
.goal .remove { padding-bottom: 12px; }
.goal.item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
.cover-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.62fr); }
.row-end { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-bottom: 0; }
.row-end .check { margin-top: 0; }
.row-end .check label { white-space: nowrap; }
.row-note { margin-top: -2px; }
@media (max-width: 760px) { .goal.item { grid-template-columns: 1fr 1fr; } .goal.item .remove { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .goal { grid-template-columns: 1fr 1fr; }
  .goal .field:first-child { grid-column: 1 / -1; }
  .goal .remove { justify-self: start; padding-bottom: 0; }
  .cover-row { grid-template-columns: 1fr 1fr; }
  .cover-row > .field:first-child { grid-column: 1 / -1; }
}
.adds { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.adds .link { text-decoration: none; background: var(--brand-tint); color: var(--brand); padding: 8px 16px; border-radius: 999px; }
.adds .link::before { content: '+'; font-weight: 700; margin-right: 6px; }
.adds .link:hover { background: color-mix(in srgb, var(--brand) 18%, var(--bg)); }
.adds .link.quiet { background: var(--mist); color: var(--ink-2); }
.adds .link.quiet::before { content: none; }
.adds .link.quiet[aria-expanded] { background: transparent; text-decoration: underline; }
details.more { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
details.more > summary, details.cols > summary, details.sources > summary, details.toc > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--s-3); }
details.more > summary::-webkit-details-marker, details.cols > summary::-webkit-details-marker, details.sources > summary::-webkit-details-marker, details.toc > summary::-webkit-details-marker { display: none; }
details.more > summary::before, details.cols > summary::before, details.sources > summary::before, details.toc > summary::before { content: ''; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 3px; transition: transform 0.2s; }
details[open] > summary::before { transform: rotate(45deg); }
details.more > summary { font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: var(--lh-head); }
details.more[open] > summary { margin-bottom: var(--s-4); }
details.cols { border-top: 1px solid var(--line); margin-top: var(--s-4); padding-top: var(--s-3); padding-bottom: 6px; }
details.cols > summary { font-size: var(--fs-small); font-weight: 600; }
.maps { display: grid; margin-top: var(--s-3); gap: var(--s-2); }
.map { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 6px var(--s-4); align-items: end; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--mist); }
.map .col-name { grid-column: 1 / -1; font-size: var(--fs-small); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; }
.map .input { font-size: var(--fs-small); min-height: 42px; }
.switch { display: inline-flex; flex-wrap: wrap; gap: var(--s-1); padding: var(--s-1); background: var(--mist-2); border-radius: var(--r-sm); justify-self: start; margin: 2px 0 var(--s-4); }
.switch button { font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); background: transparent; border: 0; border-radius: 8px; padding: 8px 14px; min-height: 40px; cursor: pointer; line-height: var(--lh-ui); }
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 33, 61, 0.14), 0 2px 8px -4px rgba(20, 33, 61, 0.2); }
.switch button:focus-visible { outline-offset: -2px; }
.mode-hint { margin: calc(-1 * var(--s-2)) 0 var(--s-4); }
.policies { display: grid; gap: var(--s-4); }
fieldset.policy { background: var(--mist); border-radius: var(--r-md); padding: var(--pad); }
fieldset.policy legend { font-size: var(--fs-body); }
.inputs > div + fieldset.policy, .policies fieldset.policy { border-top: 0; margin-top: 0; }

/* the answer: a tinted panel that stays in view on wide screens */
.result, .result-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); min-width: 0; align-content: start; }
.result { --tone: var(--brand); --tint: var(--brand-tint); background: var(--tint); border-radius: var(--r-lg); padding: var(--pad-lg); }
body[data-page="need"] .result, body[data-page="cover-gap"] .result { --tone: var(--need); --tint: var(--need-tint); }
body[data-page="get"] .result, body[data-page="keep-or-stop"] .result, body[data-page="ulip-compare"] .result { --tone: var(--get); --tint: var(--get-tint); }
body[data-page="pension-compare"] .result { --tone: var(--sun-ink); --tint: var(--sun-tint); }
.result > *, .result-body > *, .inputs > *, .block > * { min-width: 0; }
.scen-box:empty { display: none; }
.scen-box .switch { margin-bottom: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.headline { display: grid; gap: var(--s-2); padding-bottom: var(--s-5); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.headline .lab { font-weight: 600; color: var(--ink-2); font-size: var(--fs-small); }
.headline .big { font-size: var(--fs-display); color: var(--tone); overflow-wrap: anywhere; }
.headline .cap { margin-top: var(--s-1); }
.block { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.block[hidden] { display: none; }
.block h2 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
.block h3.facts-h { font-size: var(--fs-small); font-weight: 700; margin: 2px 0 calc(-1 * var(--s-1)); }
.notes { display: grid; gap: var(--s-2); }
.notes p { background: color-mix(in srgb, var(--bg) 62%, transparent); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); color: var(--ink-2); font-size: var(--fs-small); }
/* on a white panel the notes take the page's mist, so they still read as boxes */
.inc .notes p, .mk-figures .notes p, .inputs .notes p, .checkout .notes p { background: var(--mist); }
.notes p.warn { background: var(--warn-tint); color: var(--ink); box-shadow: inset 3px 0 0 var(--warn); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-2); margin: 0; }
.facts div { background: var(--bg); border-radius: var(--r-md); padding: var(--s-3) var(--s-4) var(--s-4); }
.facts dt { font-size: var(--fs-micro); color: var(--ink-2); font-weight: 600; line-height: var(--lh-ui); }
.facts dd { margin: 6px 0 0; font-family: var(--figures); font-weight: 640; font-size: var(--fs-h3); line-height: var(--lh-head); letter-spacing: -0.012em; font-variant-numeric: lining-nums; }
.facts .dd-sub { display: block; font-family: var(--text); font-weight: 500; font-size: var(--fs-micro); color: var(--ink-2); margin-top: 6px; letter-spacing: 0; line-height: var(--lh-ui); }
.facts .dd-none { font-family: var(--text); font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.empty { color: var(--ink-2); border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: var(--s-4); font-size: var(--fs-small); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.empty .link { font-size: inherit; }
.print-row { margin: 0; }
.result-foot { display: grid; gap: var(--s-2); }
.share-row { display: grid; gap: 2px; }
.share-row p { margin: 0; }
.tc-share { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); align-items: baseline; margin: 0; }
.shared-note { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--sun-tint); color: var(--sun-ink); font-weight: 600; font-size: var(--fs-small); max-width: 72ch; }
.scope { color: var(--ink-3); font-size: var(--fs-micro); line-height: var(--lh-body); max-width: 64ch; }
.print-meta { display: none; }
.bar-mobile { display: none; }
@media (max-width: 959px) {
  .bar-mobile { display: flex; position: sticky; bottom: 12px; z-index: 15; justify-content: space-between; align-items: center; gap: var(--s-3); margin: var(--s-1) 0 var(--s-2); padding: var(--s-3) var(--pad); border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .bar-mobile { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
  }
  .bar-mobile > span:first-child { font-weight: 600; color: var(--ink-2); font-size: var(--fs-small); }
  .bar-mobile .v { font-family: var(--figures); font-weight: 640; font-size: var(--fs-sub); line-height: var(--lh-tight); }
  .bar-mobile.need .v { color: var(--need); }
  .bar-mobile.get .v { color: var(--get); }
  .bar-mobile.sun .v { color: var(--sun-ink); }
  .bar-mobile.brand .v { color: var(--brand); }
}

/* ---------------------------------------------------------------- tables: one look, and figures that line up */
table.ledger, .prose table, .fg-table, .ask-confirm table, .ask-rows table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--fs-small); line-height: var(--lh-ui); }
table.ledger th, table.ledger td { padding: var(--cell-y) 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); text-align: left; vertical-align: baseline; }
table.ledger tbody th { font-weight: 400; padding-right: var(--s-3); }
table.ledger td.n, table.ledger th.n { text-align: right; padding-left: var(--s-4); white-space: nowrap; font-weight: 600; }
table.ledger thead th { font-size: var(--fs-micro); font-weight: 700; color: var(--ink-2); border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); vertical-align: bottom; }
table.ledger tr.total th, table.ledger tr.total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; padding-top: var(--s-3); }
table.ledger tr.sub th { padding-left: var(--s-4); color: var(--ink-2); }
table.ledger tr.sub td { color: var(--ink-2); font-weight: 500; }
table.ledger tr.cross th, table.ledger tr.cross td { color: var(--get); font-weight: 700; }
table.ledger td .dd-sub, table.ledger th .dd-sub { display: block; font-size: var(--fs-micro); font-weight: 500; color: var(--ink-2); }
table.ledger.wrap-head thead th { white-space: normal; }
table.ledger.plain td { text-align: left; }
table.ledger.plain th, table.ledger.plain td { vertical-align: top; }
/* a table in its own frame: the frame's edge is the margin, so the first and last cells keep clear of it */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.table-wrap:focus-visible { outline-offset: 3px; }
.table-wrap table th, .table-wrap table td { padding-left: calc(var(--cell-x) / 2); padding-right: calc(var(--cell-x) / 2); }
.table-wrap table th:first-child, .table-wrap table td:first-child { padding-left: var(--cell-x); }
.table-wrap table th:last-child, .table-wrap table td:last-child { padding-right: var(--cell-x); }
.table-wrap table thead th { background: var(--mist); padding-top: var(--s-3); padding-bottom: var(--s-3); }
.table-wrap table tbody tr:last-child > * { border-bottom: 0; }
.table-wrap table.ledger.plain { min-width: 520px; }
.years { max-height: 460px; overflow: auto; border-radius: var(--r-md); background: var(--bg); padding: 0 var(--cell-x); }
.years table.ledger { min-width: 560px; }
.years table.ledger thead th { position: sticky; top: 0; background: var(--bg); z-index: 1; padding-top: var(--s-3); }
.years table.ledger th, .years table.ledger td { padding-right: 6px; }
@media (max-width: 520px) {
  table.ledger .wide-only { display: none; }
  /* the column before a dropped last one is the last that shows, so it keeps clear of the frame */
  .table-wrap table :is(th, td):has(+ .wide-only:last-child) { padding-right: var(--cell-x); }
}
.fg-table th { text-align: left; font-weight: 500; color: var(--ink-2); padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--line); }
.fg-table td { text-align: right; font-family: var(--figures); font-weight: 600; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.from-guide { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); border-color: var(--brand); }
.from-guide h2 { font-size: var(--fs-h3); }
.fg-acts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-1) 0 0; }

/* ---------------------------------------------------------------- checklists and questions to print */
.checkout { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--pad-lg); display: grid; gap: var(--s-5); min-width: 0; }
.checkout-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2) var(--s-4); flex-wrap: wrap; }
.checkout-head h2 { font-size: var(--fs-sub); }
.ck-block { display: grid; gap: var(--s-3); min-width: 0; }
.ck-group { display: grid; gap: var(--s-3); padding: var(--s-4) var(--pad); border-radius: var(--r-md); background: var(--mist); }
.ck-group h4 { margin: 0; font-weight: 700; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.15em; width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 6px; background: var(--bg); }
.ck-item, .q-text { display: block; font-weight: 600; }
.ck-note, .q-why { display: block; color: var(--ink-2); font-size: var(--fs-small); margin-top: 2px; }
.flags .checklist li::before { border-color: var(--warn); border-radius: 50%; background: var(--warn-tint); }
.qlist { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.qlist li { counter-increment: q; position: relative; padding: var(--s-3) var(--s-4) var(--s-3) 56px; border-radius: var(--r-md); background: var(--mist); }
.qlist li::before { content: counter(q); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: var(--brand); font-weight: 700; font-size: var(--fs-micro); display: grid; place-items: center; line-height: 1; }
.q-answer { display: none; }

/* ---------------------------------------------------------------- example figures: marked, field by field, until they're replaced.
   Marigold is the brand's colour for "look here", never a warning. */
.note-example, .ex-line, .note-stale, .pdf-from { border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); font-size: var(--fs-small); font-weight: 600; line-height: var(--lh-body); }
.note-example { display: grid; gap: var(--s-1); justify-items: start; background: var(--sun-tint); color: var(--sun-ink); margin-bottom: var(--s-4); }
.note-example .link { color: var(--sun-ink); padding: 0; }
.ex-line { background: var(--sun-tint); color: var(--sun-ink); }
.note-stale { background: var(--warn-tint); color: var(--warn); }
.ex-tag, .mk-same, .mk-you { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-micro); font-weight: 600; line-height: 1.45; vertical-align: 1px; white-space: nowrap; }
.ex-tag { background: var(--sun-tint); color: var(--sun-ink); }
.mk-same { background: var(--mist-2); color: var(--ink-2); }
.mk-you { background: var(--tone); color: var(--on-accent); }
.field.is-example .input { border-style: dashed; }
.ex-keep { margin: var(--s-3) 0 0; color: var(--sun-ink); font-size: var(--fs-micro); font-weight: 600; line-height: var(--lh-body); }
.ex-keep .link { color: var(--sun-ink); font-size: inherit; padding: 0; }

/* ---------------------------------------------------------------- compare: plans side by side */
.tc-plans, .bis-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--s-4); margin-top: var(--s-1); }
fieldset.tc-plan, .bis-slot { background: var(--mist); border-radius: var(--r-md); padding: var(--pad); min-width: 0; }
.tc-plan > legend, .bis-slot > legend { font-size: var(--fs-body); }
/* terms asked of every insurer are entered once; a plan whose quote differs carries its own, and says so */
fieldset.tc-plan.differs { box-shadow: inset 3px 0 0 var(--sun); }
.fields > .tc-own-note { grid-column: 1 / -1; margin: 6px 0 0; font-weight: 600; color: var(--ink-2); }
.tc-own { margin: var(--s-3) 0 0; }
.tc-own .link { padding: 0; text-align: left; }
.tc-plan .fields { grid-template-columns: minmax(0, 1fr); }
.tc-plan details.more { margin-top: var(--s-3); padding-top: var(--s-3); }
.tc-plan details.more > summary { font-size: var(--fs-small); }
.tc-plan details.more[open] > summary { margin-bottom: var(--s-3); }
.tc-riders { display: grid; gap: var(--s-3); }
.tc-riders:empty { display: none; }
.tc-rider { display: grid; gap: var(--s-3); padding: var(--s-4); background: var(--bg); border-radius: var(--r-sm); }
.tc-rider .fields, .tc-rider { grid-template-columns: minmax(0, 1fr); }
.tc-rider .remove { justify-self: start; }
.tc-plan .adds { margin-top: var(--s-3); }
.tc-checks { display: grid; gap: 0; margin-top: 6px; }
.tc-checks .check { margin-top: var(--s-3); }
.tc-remove { margin-top: var(--s-3); }
.tc-pdf { margin: 0 0 var(--s-3); }
.tc-pdf > summary { font-weight: 600; font-size: var(--fs-small); }
.tc-pdf[open] > .pdf-picker { margin-top: var(--s-3); }
.tc-from-pdf { margin: 0 0 var(--s-3); color: var(--brand-2); font-weight: 600; font-size: var(--fs-small); }
.tc-years { border: 0; padding: 0; margin: var(--s-4) 0 0; min-width: 0; }
.tc-years legend { font-size: var(--fs-small); font-weight: 700; padding: 0; margin-bottom: var(--s-1); }
.fields.years10 { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s-3); margin-top: var(--s-3); }
.tc-bars { display: grid; gap: var(--s-3); }
.tc-bar { display: grid; grid-template-columns: minmax(70px, 150px) minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; font-size: var(--fs-small); }
.tc-bar .tc-name { font-weight: 600; overflow-wrap: anywhere; line-height: var(--lh-ui); }
.tc-bar .tc-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 6.5ch; text-align: right; }
.tc-bar .track { height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 12%, transparent); overflow: hidden; }
.tc-bar .fillbar { display: block; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--tone) 40%, var(--bg)); }
.tc-bar.best .fillbar { background: var(--tone); }
.tc-bar.best .tc-name, .tc-bar.best .tc-val { color: var(--tone); }
@media (max-width: 520px) { .tc-bar { grid-template-columns: minmax(0, 1fr) auto; } .tc-bar .track { grid-column: 1 / -1; grid-row: 2; } }
.tc-wrap { border: 0; }
/* the plans' columns are equal, whatever they hold */
table.tc { min-width: 520px; table-layout: fixed; }
table.tc th, table.tc td { padding-top: var(--cell-y); padding-bottom: var(--cell-y); vertical-align: top; overflow-wrap: anywhere; }
table.tc thead th { font-size: var(--fs-small); color: var(--ink); font-weight: 700; vertical-align: bottom; background: var(--bg); }
table.tc th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); width: 32%; min-width: 150px; font-weight: 500; color: var(--ink-2); }
table.tc td.best, table.tc th.best { background: color-mix(in srgb, var(--tone, var(--brand)) 7%, var(--bg)); }
table.tc tr.tc-key td { font-weight: 700; }
.tc-tag { display: block; width: max-content; margin-top: 6px; padding: 0 10px; border-radius: 999px; background: var(--tone, var(--brand)); color: var(--on-accent); font-size: var(--fs-micro); font-weight: 600; line-height: 1.45; }
.tc-yes { color: var(--get); font-weight: 700; }
.tc-yes svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.tc-no { color: var(--ink-3); }
.tc-cap { display: none; }
.tc-actions { display: flex; flex-wrap: wrap; gap: 6px var(--s-5); align-items: baseline; }
.tc-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: var(--fs-small); }
@media (max-width: 640px) {
  .table-wrap table.ledger.plain.tc { min-width: 0; }
  /* the row headings move into a line above each row, and stay in the table, unseen, for screen readers */
  .table-wrap table.tc th.tc-rowh { position: static; width: 1px; min-width: 0; max-width: 1px; padding: 0; border: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
  table.tc tr.tc-cap { display: table-row; }
  table.tc tr.tc-cap td { padding: var(--s-3) var(--cell-x) 2px; border-bottom: 0; font-size: var(--fs-micro); font-weight: 600; color: var(--ink-2); background: var(--bg); }
  table.tc tbody tr:not(.tc-cap) td { padding: 2px var(--cell-x) var(--s-3); }
  table.tc thead th { padding: var(--s-3) var(--cell-x); }
}

/* level or rising cover */
.inc { margin-top: var(--gap); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--pad-lg); gap: var(--s-3); scroll-margin-top: 16px; }
.inc > h2 { font-size: var(--fs-sub); }
.inc > p { max-width: 70ch; color: var(--ink-2); font-size: var(--fs-small); }
.inc .fields { margin: var(--s-3) 0 0; grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 2 * var(--s-4)) / 3)), 1fr)); }
.inc-out { display: grid; gap: var(--s-4); }

/* ---------------------------------------------------------------- reading an illustration PDF */
.pdf-picker { display: grid; gap: var(--s-3); }
.pdf-status:empty { display: none; }
.pdf-status { margin: 0; font-weight: 600; font-size: var(--fs-small); color: var(--ink-2); }
.pdf-pw { display: grid; gap: var(--s-3); background: var(--mist); border-radius: var(--r-md); padding: var(--s-4); }
.pdf-pw[hidden] { display: none; }
.pdf-check:empty { display: none; }
.pdf-check { display: grid; gap: var(--s-3); border: 2px solid var(--brand); border-radius: var(--r-md); padding: var(--s-4); background: var(--brand-tint); }
.pdf-h { font-size: var(--fs-body); margin: 0; }
.pdf-h:focus { outline: none; }
.pdf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin: 0; }
.pdf-from { background: var(--brand-tint); margin: 0 0 var(--s-3); }
.pdf-from[hidden] { display: none; }
/* what was read: a plain list to check against the PDF, not headline figures */
.pdf-check .facts, .bis-got .facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.pdf-check .facts div, .bis-got .facts div { background: var(--bg); padding: var(--s-2) var(--s-3) var(--s-3); border-radius: var(--r-sm); }
.pdf-check .facts dd, .bis-got .facts dd { font-family: var(--text); font-size: var(--fs-small); font-weight: 700; line-height: var(--lh-ui); margin-top: 2px; letter-spacing: 0; overflow-wrap: anywhere; }

/* compare illustrations */
.bis-step { min-width: 0; }
.bis-step + .bis-step { margin-top: var(--s-5); }
.bis-brief { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-sm); font-family: var(--text); font-size: var(--fs-small); line-height: var(--lh-prose); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.bis-brief:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bis-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--s-3); margin: var(--s-3) 0 0; }
.bis-ways { margin: var(--s-2) 0 0; padding-left: 1.2em; font-size: var(--fs-small); display: grid; gap: var(--s-2); max-width: 78ch; }
.bis-ins { margin-top: var(--s-4); }
.bis-ins-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; columns: 3 14rem; column-gap: var(--s-5); font-size: var(--fs-small); }
.bis-ins-list li { break-inside: avoid; padding: 3px 0; }
.bis-got h3 { font-size: var(--fs-body); margin: 0 0 var(--s-1); overflow-wrap: anywhere; }
.bis-got h3:focus { outline: none; }
.bis-got h3:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bis-from { margin: 0 0 var(--s-3); }
.bis-acts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: var(--s-3) 0 0; }
.bis-paste { margin-top: var(--s-3); }
.bis-scen { margin: var(--s-3) 0 var(--s-1); }
table.bis-table thead th { overflow-wrap: anywhere; min-width: 7.5em; }
table.bis-table tbody th { min-width: 9em; }
@media (max-width: 640px) {
  table.bis-table tbody th { min-width: 6.5em; }
  table.bis-table td, table.bis-table thead th { white-space: normal; min-width: 6em; }
  table.ledger.bis-table td.n, table.ledger.bis-table th.n { white-space: normal; }
}

/* premium due dates */
.pd-list { display: grid; gap: var(--s-4); }
.pd-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--pad); min-width: 0; }
.pd-card legend { font-size: var(--fs-body); font-weight: 700; padding: 0 6px; }
.pd-out { display: grid; gap: 6px; margin-bottom: var(--s-3); }
.pd-out h3 { font-size: var(--fs-body); margin: 0; }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin: 0 0 6px; }

/* under a tool: how it works, and the guides that go with it */
.article.after-tool { background: var(--bg); border-radius: var(--r-lg); padding: var(--pad-lg); max-width: none; margin-top: var(--s-1); gap: var(--s-3); }
.after-tool > * { max-width: var(--measure); }
.after-tool h2 { font-size: var(--fs-sub); margin-top: var(--s-2); }
.after-tool h2:first-child { margin-top: 0; }
.after-tool h3 { font-size: var(--fs-body); margin-top: var(--s-2); }
.after-tool ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.after-tool .related { max-width: none; }
.at-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); max-width: var(--measure); min-width: 0; }
@media (min-width: 960px) {
  .article.after-tool.split { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); column-gap: var(--s-7); align-items: start; }
  .after-tool.split > .at-main { max-width: none; }
  .after-tool.split > .related { margin-top: 0; }
  .after-tool.split .related .g-cards > li:nth-child(n) { grid-column: span 12; }
}

/* ---------------------------------------------------------------- compare: the strip between the tools */
.subnav { display: flex; gap: var(--s-2); padding: var(--s-5) 0 0; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: var(--s-2); flex: none; padding: 8px 16px 8px 12px; min-height: 44px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--fs-small); line-height: var(--lh-ui); }
.subnav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.subnav a:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.subnav-wrap + #tool .page-head { padding-top: var(--s-6); }
@media (max-width: 440px) { .subnav { gap: 6px; } .subnav a { padding: 8px 14px; } .subnav a svg { display: none; } }

/* ---------------------------------------------------------------- the market: what insurers publish */
.market { --tone: var(--brand); padding-top: var(--sec); scroll-margin-top: 16px; }
body[data-page="ulip-compare"] .market { --tone: var(--get); }
body[data-page="pension-compare"] .market { --tone: var(--sun-ink); }
.market .section-head p { font-size: var(--fs-small); }
.market > *, .mk-figures > * { min-width: 0; }
.mk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (min-width: 1020px) { .mk-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.mk-panel, .mk-figures { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--pad); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-content: start; min-width: 0; }
.mk-panel > h3, .mk-card h3 { font-size: var(--fs-body); }
.mk-offer { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 2px; }
.mk-offer .mk-extra { display: none; }
.mk-offer.all .mk-extra { display: block; }
.mk-offer button { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "box lab n" "box track track"; gap: 6px var(--s-3); align-items: center; padding: 8px; min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.mk-offer button:hover { background: var(--mist); }
.mk-offer button[aria-pressed="true"] { background: color-mix(in srgb, var(--tone) 10%, var(--bg)); }
.mk-box { grid-area: box; align-self: start; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; background: var(--bg); }
.mk-box svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-offer button[aria-pressed="true"] .mk-box { background: var(--tone); border-color: var(--tone); color: var(--on-accent); }
.mk-lab { grid-area: lab; font-size: var(--fs-small); font-weight: 500; line-height: var(--lh-ui); }
.mk-split { display: block; margin-top: 2px; font-size: var(--fs-micro); font-weight: 400; color: var(--ink-3); }
.mk-n { grid-area: n; font-size: var(--fs-micro); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mk-offer .track { grid-area: track; display: flex; height: 6px; border-radius: 999px; background: var(--mist-2); overflow: hidden; }
.mk-offer .fillbar { display: block; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--tone) 60%, var(--bg)); }
.mk-offer .fillbar:not(:last-child) { border-radius: 999px 0 0 999px; }
.mk-offer .fillbar.no { background: var(--line-2); border-radius: 0 999px 999px 0; }
.mk-offer-more { margin: 0; }
.mk-main { display: grid; gap: var(--s-4); min-width: 0; }
.mk-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3) var(--s-4); }
.mk-count { font-weight: 600; font-size: var(--fs-small); color: var(--ink-2); margin-right: auto; padding-bottom: 12px; }
.mk-clear { padding-bottom: 10px; }
.mk-clear:empty { display: none; }
.mk-bar .field { width: min(100%, 300px); }
.mk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-4); }
.mk-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--pad); display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.mk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px var(--s-3); flex-wrap: wrap; }
.mk-head h3 { overflow-wrap: anywhere; }
.mk-tag { font-size: var(--fs-micro); font-weight: 600; padding: 0 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); line-height: 1.45; }
.mk-who { margin-top: calc(-1 * var(--s-2)); font-size: var(--fs-micro); color: var(--ink-3); overflow-wrap: anywhere; }
.mk-facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3) var(--s-4); }
.mk-facts div { min-width: 0; }
.mk-facts .wide { grid-column: 1 / -1; }
.mk-facts dt, .fr-dl dt, .mk-sub { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-3); line-height: var(--lh-ui); }
.mk-facts dd { margin: 2px 0 0; font-size: var(--fs-small); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.mk-has { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mk-has li { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 7px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: var(--fs-micro); font-weight: 500; line-height: var(--lh-ui); }
.mk-has svg { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--get); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-sample { background: color-mix(in srgb, var(--tone) 6%, var(--bg)); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); font-size: var(--fs-micro); line-height: var(--lh-body); display: grid; gap: 6px; }
.mk-sub { font-weight: 700; color: var(--ink-2); }
.mk-sample ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-1); }
.mk-moresamples > summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: var(--fs-micro); }
.mk-moresamples[open] > summary { margin-bottom: var(--s-1); }
.mk-src { font-size: var(--fs-micro); overflow-wrap: anywhere; color: var(--ink-3); }
.mk-more { margin: 0; }
/* figures the insurers publish, and estimates from them */
.mk-figures { margin-top: var(--gap); padding: var(--pad-lg); scroll-margin-top: 16px; }
.mk-figures > h3 { font-size: var(--fs-sub); }
.mk-figures > .hint { font-size: var(--fs-small); max-width: 72ch; }
.mk-controls { grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 3 * var(--s-4)) / 4)), 1fr)); }
.mk-figures table.ledger.plain { min-width: 480px; }
table.ledger.plain.mk-table td.n, table.ledger.plain.mk-table th.n { text-align: right; }
table.mk-table tr.mine th, table.mk-table tr.mine td { background: color-mix(in srgb, var(--tone) 10%, var(--bg)); font-weight: 700; }
table.mk-table tr.same th, table.mk-table tr.same td { background: color-mix(in srgb, var(--tone) 4%, var(--bg)); }
@media (max-width: 699px) {
  .mk-bar .field { width: 100%; }
  .mk-count { padding-bottom: 0; }
}
@media print { .market { display: none; } }
/* estimates for details a visitor chooses */
.est-box { margin-top: 0; }
.est-lead { font-weight: 600; max-width: 72ch; }
.est-lead:empty { display: none; }
.section-head p.est-whose { font-weight: 600; color: var(--ink); }
.est-table th .est-who, .est-table td.n .est-range, .est-table .est-reach-in, .fr-funds .fr-kind { display: block; font-size: var(--fs-micro); font-weight: 500; color: var(--ink-2); }
.mk-figures table.ledger.plain.est-table { min-width: 0; }
.est-table thead th.n { white-space: normal; }
.est-table td.n .est-range { white-space: nowrap; }
.est-table td.est-reach { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.est-table .est-reach-in { display: none; font-weight: 600; }
.est-table td.est-reach.close, .est-table .est-reach-in.close { color: var(--get); }
.est-table td.est-reach.far, .est-table .est-reach-in.far { color: var(--sun-ink); }
.est-table td.est-reach.rough, .est-table .est-reach-in.rough { color: var(--warn); }
@media (max-width: 520px) { .est-table td.n .est-reach-in { display: block; } }
.est-left ul { margin: var(--s-2) 0 0; padding-left: 20px; display: grid; gap: var(--s-1); font-size: var(--fs-small); color: var(--ink-2); }
.est-method { display: grid; gap: var(--s-2); border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-1); }
.est-method h3 { font-size: var(--fs-body); }
.est-method p { font-size: var(--fs-small); color: var(--ink-2); max-width: 78ch; }

/* ---------------------------------------------------------------- ULIP fund returns */
body[data-page="ulip-funds"] .fr, .fr-facts { --tone: var(--get); }
.fr-facts { margin: var(--s-4) 0 0; }
/* the unseen words in a dash cell are placed from the scroll box, so they scroll and clip with it */
.fr .table-wrap { position: relative; }
table.ledger.plain.fr-table { min-width: 800px; }
table.fr-table thead th:first-child, table.fr-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; }
table.fr-table tbody th[scope="row"] { background: var(--bg); min-width: 148px; font-weight: 600; }
table.fr-table tbody th[scope="row"] a { color: var(--brand); text-decoration: none; }
table.fr-table tbody th[scope="row"] a:hover { text-decoration: underline; }
table.fr-table tr.fr-group th { padding-top: var(--s-4); font-size: var(--fs-micro); font-weight: 700; color: var(--ink-2); }
table.fr-table td.fr-risk { font-size: var(--fs-micro); color: var(--ink-2); white-space: nowrap; }
.fr-chart { margin: 0; max-width: 560px; }
.fr-svg { display: block; width: 100%; height: auto; font-family: var(--figures); }
.fr-svg .fr-grid { stroke: var(--line); stroke-width: 1; }
.fr-svg .fr-zero { stroke: var(--line-2); }
.fr-svg .fr-tick { fill: var(--ink-3); font-size: 10.5px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.fr-svg .fr-lab { fill: var(--ink); font-family: var(--text); font-size: 12px; font-weight: 600; }
.fr-svg .fr-medlab { fill: var(--ink-2); font-size: 11px; text-anchor: end; font-variant-numeric: tabular-nums; }
.fr-svg .fr-range { stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; }
.fr-svg .fr-band { fill: color-mix(in srgb, var(--get) 20%, var(--bg)); }
.fr-svg .fr-mark { stroke: var(--get); stroke-width: 2; stroke-linecap: round; opacity: 0.6; }
.fr-svg .fr-hit { stroke: transparent; stroke-width: 7; }
.fr-svg .fr-fund:hover .fr-mark { opacity: 1; stroke: var(--get-2); }
.fr-svg .fr-med { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.mk-figures.fr-cats { gap: 0; }
details.fr-cat { margin-top: 0; padding: var(--s-4) 0 var(--s-3); }
details.fr-cat:first-child { border-top: 0; padding-top: 0; }
details.fr-cat > summary { flex-wrap: wrap; row-gap: 2px; }
.fr-cat-name { font-weight: 700; font-size: var(--fs-body); }
.fr-cat-line { font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.fr-cat-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0 6px; }
.fr-dl { margin: 0; display: grid; gap: var(--s-3) var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.fr-dl dt { font-weight: 700; color: var(--ink-2); }
.fr-dl dd { margin: 3px 0 0; font-size: var(--fs-small); }
table.ledger.plain.fr-spread { min-width: 560px; }
table.ledger.plain.fr-funds { min-width: 660px; }
table.ledger.plain.fr-src { min-width: 520px; }
.fr-cats > .hint { padding-top: var(--s-4); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- articles: guides, glossary, about */
.article { max-width: var(--measure); padding: var(--s-7) 0 var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.article > * { min-width: 0; }
.article p, .article li, .terms dd { line-height: var(--lh-prose); }
.article ul { margin: 0; padding-left: 1.25em; display: grid; gap: var(--s-2); }
.article h2, .prose h2, .glossary h2 { font-size: var(--fs-sub); margin-top: var(--s-5); scroll-margin-top: 16px; }
.prose h3 { margin-top: var(--s-2); }
/* a guide: the words in one column, and what's on the page beside them */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); padding-top: var(--s-7); }
.guide-layout .article { padding-top: 0; }
.toc-side { display: none; }
@media (min-width: 1100px) {
  .guide-layout { grid-template-columns: minmax(0, 720px) minmax(0, 280px); justify-content: space-between; column-gap: var(--s-8); }
  .toc-side { display: block; position: sticky; top: calc(var(--head-h) + 32px); align-self: start; }
  .article .toc { display: none; }
}
.crumb, .meta { font-size: var(--fs-micro); color: var(--ink-3); line-height: var(--lh-ui); }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--brand); text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; gap: 6px var(--s-3); }
.meta span + span { padding-left: var(--s-3); border-left: 1px solid var(--line-2); }
.summary { background: var(--brand-tint); border-radius: var(--r-md); padding: var(--pad); }
.summary h2, .article .summary h2 { font-size: var(--fs-small); font-weight: 700; color: var(--brand); letter-spacing: 0; margin: 0 0 var(--s-3); }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.summary li, .article .summary li { position: relative; padding-left: 30px; font-size: var(--fs-small); line-height: var(--lh-body); }
.summary li::before { content: ''; position: absolute; left: 0; top: 0.1em; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); }
.summary li::after { content: ''; position: absolute; left: 7px; top: calc(0.1em + 4px); width: 5px; height: 9px; border-right: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(40deg); }
details.toc, details.sources { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--pad); }
details.toc > summary, details.sources > summary { padding: var(--s-3) 0; font-weight: 600; font-size: var(--fs-small); }
details.toc ol { margin: 0 0 var(--s-4); padding-left: 1.3em; display: grid; gap: 6px; }
details.toc li, .article details.toc li { font-size: var(--fs-small); line-height: var(--lh-ui); }
.toc-side h2 { font-size: var(--fs-micro); font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin: 0 0 var(--s-3); }
.toc-side ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); display: grid; }
.toc-side a { display: block; padding: 6px 0 6px var(--s-4); margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: var(--fs-small); line-height: var(--lh-ui); }
.toc-side a:hover { color: var(--ink); border-left-color: var(--brand); }
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.prose > * { min-width: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--ink-3); }
.prose li > ul, .prose li > ol { margin-top: var(--s-2); }
.box { border-radius: var(--r-md); padding: var(--s-4) var(--pad); display: grid; gap: var(--s-2); background: var(--mist); }
.box.example { background: var(--get-tint); }
.box.caution { background: var(--warn-tint); }
.box-label, .article .box-label { font-weight: 700; font-size: var(--fs-micro); line-height: var(--lh-ui); display: inline-flex; align-items: center; gap: var(--s-2); }
.box-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.box.example .box-label { color: var(--get); }
.box.caution .box-label { color: var(--warn); }
.article .box p, .article .box li { font-size: var(--fs-small); line-height: var(--lh-body); }
.prose th, .prose td { text-align: left; vertical-align: top; padding-top: var(--cell-y); padding-bottom: var(--cell-y); border-bottom: 1px solid var(--line); }
.prose thead th { font-size: var(--fs-micro); font-weight: 700; color: var(--ink-2); }
.prose tbody td:first-child { font-weight: 600; color: var(--ink); }
.article .next { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-2); }
.related { margin-top: var(--s-3); display: grid; gap: var(--s-4); align-content: start; }
.related h2, .article .related h2 { font-size: var(--fs-h3); margin: 0; }
/* in an article's column the cards go two across, and an odd one out takes the whole of the last row */
.article .g-cards > li:nth-child(n) { grid-column: span 6; }
.article .g-cards > li:last-child:nth-child(odd) { grid-column: span 12; }
.article .g-cards { padding: 0; gap: var(--s-4); }
.article .g-cards li { font-size: inherit; line-height: inherit; }
details.sources ul { margin: 2px 0 var(--s-3); padding-left: 1.2em; display: grid; gap: var(--s-2); }
.sources li, .sources p, .article .sources li, .article .sources p { font-size: var(--fs-micro); color: var(--ink-2); overflow-wrap: anywhere; line-height: var(--lh-body); }
.sources p { padding-bottom: var(--s-4); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-1); }
.pager a { display: grid; gap: var(--s-1); padding: var(--s-4) var(--pad); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-size: var(--fs-small); font-weight: 600; line-height: var(--lh-ui); }
.pager a:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--brand); }
.pager a span { font-size: var(--fs-micro); color: var(--ink-3); font-weight: 600; }
.pager .next-g { text-align: right; grid-column: 2; }
.glossary .lede { color: var(--ink-2); font-size: var(--fs-h3); line-height: var(--lh-body); }
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a { min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--mist); color: var(--ink); text-decoration: none; font-size: var(--fs-small); font-weight: 600; }
.az a:hover { background: var(--brand-tint); color: var(--brand); }
.glossary h2 { color: var(--need); }
.terms { margin: 0; display: grid; }
.terms > div { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.terms > div:target { background: var(--brand-tint); border-radius: var(--r-sm); padding-left: var(--s-4); padding-right: var(--s-4); border-bottom-color: transparent; }
.terms dt { font-weight: 700; }
.terms dd { margin: 2px 0 0; }
.terms .see { white-space: nowrap; font-size: var(--fs-small); font-weight: 600; }
/* wide screens: the glossary uses the whole page width, each letter's words in two columns */
@media (min-width: 1000px) {
  .article.glossary { max-width: none; }
  .glossary > h1, .glossary > .lede, .glossary > .az { max-width: var(--measure); }
  .glossary .terms { display: block; columns: 2; column-gap: var(--s-7); }
  .glossary .terms > div { break-inside: avoid; }
}
@media (max-width: 699px) {
  .article { padding-top: var(--s-6); }
  .guide-layout { padding-top: var(--s-6); }
  .article .g-cards > li:nth-child(n) { grid-column: span 12; }
  .pager { grid-template-columns: 1fr; }
  .pager .next-g { grid-column: 1; text-align: left; }
}

/* ---------------------------------------------------------------- footer */
.foot { background: var(--mist); border-top: 1px solid var(--line); margin-top: var(--sec); padding: var(--s-7) 0; color: var(--ink-2); font-size: var(--fs-micro); line-height: var(--lh-prose); }
body[data-page="need"] .foot, body[data-page="get"] .foot, body[data-page="keep-or-stop"] .foot, body[data-page="cover-gap"] .foot,
body[data-page="claim-checklist"] .foot, body[data-page="questions"] .foot, body[data-page="term-compare"] .foot,
body[data-page="ulip-compare"] .foot, body[data-page="pension-compare"] .foot, body[data-page="ulip-funds"] .foot,
body[data-page="premium-dates"] .foot, body[data-page="compare-bis"] .foot { background: var(--bg); margin-top: var(--s-7); }
.foot .wrap { display: grid; gap: var(--s-3); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-6); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-1); }
.foot .brand { font-size: var(--fs-small); }
.foot .brand svg { width: 24px; height: 24px; }
.foot p { max-width: 86ch; }
.foot strong { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px var(--s-5); }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-small); }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.foot-clear .link { font-size: inherit; padding: 0; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 699px) {
  .fields { grid-template-columns: 1fr 1fr; column-gap: var(--s-3); }
  .fields > .field:only-child { grid-column: 1 / -1; }
  .inc .fields, .mk-controls { grid-template-columns: 1fr 1fr; }
  .sentence { line-height: 2; }
  .sentence.small-sentence { line-height: 1.8; }
  /* figures in tiles: two across, and an odd one out takes the whole of the last row */
  .result .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result .facts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* four columns of figures on a phone: closer together, a size down, and the year on one line */
  .inc-out table.ledger { font-size: var(--fs-micro); }
  .inc-out table.ledger th, .inc-out table.ledger td { padding-left: 4px; padding-right: 4px; }
  .inc-out table.ledger th:first-child { padding-left: var(--cell-x); }
  .inc-out table.ledger td:last-child, .inc-out table.ledger th:last-child { padding-right: var(--cell-x); }
  .inc-out table.ledger tbody th { white-space: nowrap; }
}
@media (max-width: 560px) {
  /* a choice takes the whole row; a box left on its own beside one takes its row too, so no row is half empty */
  .fields > .field:has(> select),
  .fields > .field:first-child:has(+ .field > select),
  .fields > .field:has(> select) + .field:has(+ .field > select),
  .fields > .field:has(> select) + .field:last-child,
  .fields > .field:first-child:not(:has(> select)) + .field:not(:has(> select)) + .field:not(:has(> select)):has(+ .field > select),
  .fields > .field:has(> select) + .field:not(:has(> select)) + .field:not(:has(> select)) + .field:not(:has(> select)):has(+ .field > select),
  .fields > .field:has(> select) + .field:not(:has(> select)) + .field:not(:has(> select)) + .field:not(:has(> select)):last-child,
  .fields:not(:has(> [hidden])) > .field:nth-child(odd):not(:has(> select)):has(+ .field > select):not(.field:has(> select) ~ .field),
  .fields:not(:has(> [hidden])):not(:has(> .field > select)) > .field:nth-child(odd):last-child { grid-column: 1 / -1; }
  /* three or more choices in a switch: equal parts of the row, instead of wrapping */
  .switch:has(> :nth-child(3)) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .switch:has(> :nth-child(3)) button { padding: 8px 6px; text-align: center; }
}
@media (max-width: 380px) { .fields, .inc .fields, .mk-controls { grid-template-columns: 1fr; } .fields > .field.wide { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .stamped { animation: none; } * { transition: none !important; } }

/* ---------------------------------------------------------------- print */
@media print {
  .nav, .skip, .bar-mobile, .switch, .go, .link, .adds, .print-row, .share-row, .shared-note, details.cols, .after-tool, .foot-links, .pager, .toc, .toc-side, .chips, .subnav, .text-size { display: none !important; }
  body[data-page="claim-checklist"] .inputs, body[data-page="questions"] .inputs { display: none !important; }
  body, body[data-page] { background: #fff !important; color: #000; font-size: 12pt; }
  .masthead { position: static; background: none; border-bottom: 1px solid #999; }
  .inputs, .result, .checkout, .summary, .box, .q, .facts div, .notes p, .ck-group, .qlist li, .inc, .mk-figures { background: none !important; border: 1px solid #ccc; box-shadow: none !important; }
  .q-answer { display: block; border-bottom: 1px solid #999; height: 1.7em; margin-top: 2px; }
  .sources { display: none; }
  .tool { grid-template-columns: 1fr 1fr; gap: 18px; }
  .result.fits { position: static; }
  .years { max-height: none; overflow: visible; }
  .foot { background: none; margin-top: 24px; }
  .print-meta { display: block; margin: 12px auto 0; font-size: 10pt; color: #333; }
  .ex-tag, .ex-line, .mk-same { border: 1px solid #999; }
  .ex-keep, .note-example .link, .foot-clear { display: none !important; }
}

/* ================================================================ release 5: three kinds of cover
   Pieces for the pages that set life, health and motor side by side. Every size and gap is a token from 01-base.css. */

/* ---- the home page: a row for each kind of cover, with its two questions */
.lines { display: grid; gap: var(--gap); }
.line { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.line > * { grid-column: span 4; min-width: 0; }
.line-head { display: flex; align-items: center; gap: var(--s-4); }
.line-head .ico.tile { margin: 0; flex: none; width: 56px; height: 56px; border-radius: var(--r-md); }
.line-head .ico.tile svg { width: 30px; height: 30px; }
.line-head h3 { font-size: var(--fs-sub); line-height: var(--lh-head); }
.line-head h3 a { color: var(--ink); text-decoration: none; }
.line-head h3 a:hover { color: var(--brand); }
.line-head p { color: var(--ink-2); font-size: var(--fs-small); margin: 0; line-height: var(--lh-body); }
.line-q { display: grid; gap: var(--s-1); align-content: start; padding: var(--pad); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--ink); text-decoration: none; }
.line-q:hover { border-color: var(--tone); text-decoration: none; box-shadow: 0 8px 20px -16px rgba(20, 33, 61, 0.5); }
.line-q .k { font-size: var(--fs-micro); font-weight: 700; color: var(--tone); line-height: var(--lh-ui); }
.line-q strong { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-head); }
.line-q .sum { font-size: var(--fs-small); color: var(--ink-2); line-height: var(--lh-body); }
.line-q.need { --tone: var(--need); }
.line-q.get { --tone: var(--get); }
@media (max-width: 999px) {
  .lines { row-gap: var(--s-6); }
  .line > .line-head { grid-column: span 12; }
  .line > .line-q { grid-column: span 6; }
}
@media (max-width: 699px) {
  .line > .line-q { grid-column: span 12; }
}

/* ---- three lists side by side, one for each kind of cover */
.secs.three > * { grid-column: span 4; }
.sec-foot { margin: 0; padding: var(--s-3) 0 var(--s-2); border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; line-height: var(--lh-ui); }
.sec-foot a { color: var(--tone); }
@media (max-width: 999px) {
  .secs.three > * { grid-column: span 12; }
}

/* ---- a page for one kind of cover */
.page-head.has-ico { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); align-items: center; }
.page-head.has-ico > .ico.tile { margin: 0; width: 56px; height: 56px; border-radius: var(--r-md); }
.page-head.has-ico > .ico.tile svg { width: 30px; height: 30px; }
.page-head.has-ico > p { grid-column: 1 / -1; }
.feature .kicker { font-size: var(--fs-micro); font-weight: 700; color: var(--tone); max-width: none; line-height: var(--lh-ui); }
.stats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.stats > div { grid-column: span 3; min-width: 0; border-top: 3px solid var(--get); padding-top: var(--s-3); display: grid; gap: var(--s-1); align-content: start; }
.stats dt { font-family: var(--figures); font-size: var(--fs-sub); font-weight: 700; line-height: var(--lh-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.stats dd { margin: 0; font-size: var(--fs-small); color: var(--ink-2); line-height: var(--lh-body); }
.src-line { font-size: var(--fs-micro); color: var(--ink-3); margin: var(--s-4) 0 0; line-height: var(--lh-ui); }
.rate-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.rate-tables table.ledger thead th { font-size: var(--fs-small); color: var(--ink); }
.rate-tables table.ledger tbody th { padding-right: var(--s-2); }
.rate-tables table.ledger thead th.n { white-space: normal; }
@media (max-width: 999px) {
  .stats > div { grid-column: span 6; }
}
@media (max-width: 799px) {
  .rate-tables { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the lists of guides and tools: a heading where each kind of cover begins */
.line-label { display: flex; align-items: center; gap: var(--s-3); margin: var(--sec) 0 0; padding-bottom: var(--s-3); border-bottom: 2px solid var(--tone); font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); color: var(--ink); scroll-margin-top: 16px; }
.line-label .ico.tile { margin: 0; flex: none; width: 40px; height: 40px; }
.page-head + .line-label { margin-top: var(--s-6); }
.line-label + .hub, .line-label + .section, .line-label + div.section { padding-top: var(--s-5); }
.line-sec > .line-label { margin-bottom: var(--s-4); }
.line-intro { color: var(--ink-2); margin: 0 0 var(--s-5); max-width: 68ch; }

/* ---- the note over example figures in the health and motor tools */
.note-example .ex-acts { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: 0; }
/* Release 5.1: a plan being re-checked, the note on order, the message to an insurer, the least surrender value,
   and the claim checklist in Hindi. Sizes and spaces from the scale in 01-base.css. */
/* a caution about the record, not a fault in the plan: amber, as the site's other cautions are, not the red kept for errors */
.mk-status { border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); font-size: var(--fs-small); line-height: var(--lh-body); font-weight: 600; background: var(--sun-tint); color: var(--sun-ink); }
.section-head p.est-order { font-size: var(--fs-small); color: var(--ink-2); }
.ask-letter { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--text); font-size: var(--fs-small); line-height: var(--lh-body); margin: var(--s-3) 0; padding: var(--s-4); border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--mist); color: var(--ink); }
.ask-insurer .switch { margin: var(--s-3) 0 0; }
.sv-least > .hint, .ask-insurer > .hint { margin: 0 0 var(--s-4); }
.sv-least > .fields + .fields { margin-top: var(--s-4); }
.sv-out { margin-top: var(--s-4); }
.sv-out > .hint { margin: 0; }
.sv-least > p:last-child { margin: var(--s-3) 0 0; }
.ask-insurer .tc-share { margin-top: var(--s-3); }
.sv-lines { margin: 0 0 var(--s-3); padding-left: 1.2em; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--ink); }
.sv-lines li + li { margin-top: var(--s-2); }
.ck-lang { margin-bottom: var(--s-4); }
/* Devanagari stands taller than Latin: the same taller lines the guide uses, and set on the block itself so that what inherits its line height gets them too */
.tool[lang="hi"], .page-head[lang="hi"], .ask-letter[lang="hi"] { --lh-tight: 1.3; --lh-head: 1.4; --lh-ui: 1.5; --lh-body: 1.6; --lh-prose: 1.7; line-height: var(--lh-body); }
.ask-typed { display: block; font-size: var(--fs-micro); line-height: var(--lh-ui); font-weight: 400; color: var(--ink-3); }
/* Release 5.4: the honest sketch. Drawings that carry the facts, to scale, on a double rule.
   Solid is what you told us; dashed is what we'll ask. Lavender adds to what you need, mint is what you hold,
   marigold is one light. Labels: names in the text face, figures in the figures face. */
.sk { margin: 0; display: grid; gap: var(--s-2); min-width: 0; }
.sk-h { margin: 0; font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-head); color: var(--ink); }
.sk-p { margin: 0; font-size: var(--fs-micro); line-height: var(--lh-body); color: var(--ink-2); max-width: 60ch; }
.sk-svg { width: 100%; height: auto; display: block; overflow: visible; }
.sk-svg .sk-n, .art-svg .sk-n { font-family: var(--text); font-size: 15px; font-weight: 500; fill: var(--ink-2); }
.sk-svg .sk-f, .art-svg .sk-f { font-family: var(--figures); font-size: 15px; font-weight: 600; fill: var(--ink); }
.sk-svg .sk-q, .art-svg .sk-q { fill: var(--ink-3); font-weight: 500; }
.sk-svg .sk-ask .ln, .sk-svg .sk-ask .hair, .sk-svg .sk-ask .tank, .sk-svg .sk-ask .seat, .sk-svg .sk-ask .grey, .sk-ask.cal .ln, .sk-ask.cal .cal-day {
  stroke: var(--ink-3); stroke-dasharray: 5 6; }
.sk-svg .sk-ask .hair, .sk-svg .sk-ask .tank, .sk-svg .sk-ask .seat, .sk-svg .sk-ask .grey { fill: none; stroke-width: 2.2; }
.sk-svg .sk-ask .tint, .sk-svg .sk-ask .eye, .sk-svg .sk-ask .fill, .sk-svg .sk-ask .dt, .sk-ask.cal .tint { display: none; }
.sk-legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: 0; padding: 0; list-style: none; font-size: var(--fs-micro); color: var(--ink-2); }
.sk-legend li { display: inline-flex; align-items: center; gap: var(--s-2); }
.sk-legend svg { width: 28px; height: 10px; flex: none; }
.sk-sw { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.sk-sw-need { background: #DDD9FF; box-shadow: inset 0 0 0 1.5px var(--need); }
.sk-sw-have { background: #CCEEDD; box-shadow: inset 0 0 0 1.5px var(--get); }
/* the free look's calendar */
.cal .cal-day { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1.8; }
.cal .cal-used { fill: #E3E8F0; }
.cal .cal-today { fill: #F2A21B; }
.cal .cal-last { stroke-width: 3.4; }
.cal .sk-rule { stroke: var(--ink); }
/* a fact arriving draws itself, once */
.sk-svg .sk-new .ln { transition: stroke-dashoffset 0.75s ease-out; }
.sk-svg .sk-new .tint, .sk-svg .sk-new .hair, .sk-svg .sk-new .fill, .sk-svg .sk-new .eye, .sk-svg .sk-new text { transition: opacity 0.4s ease-out 0.35s; }
.sk-svg .sk-new.sk-pre .tint, .sk-svg .sk-new.sk-pre .hair, .sk-svg .sk-new.sk-pre .fill, .sk-svg .sk-new.sk-pre .eye, .sk-svg .sk-new.sk-pre text { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .sk-svg .sk-new .ln, .sk-svg .sk-new .tint, .sk-svg .sk-new text { transition: none; } }
.art-svg { width: 100%; height: auto; display: block; overflow: visible; }
.art-svg .sk-n[font-size], .art-svg .sk-f[font-size] { font-size: 14px; }
/* the page's own illustration: beside its title on wide screens, under it on phones */
.page-art { margin: var(--s-3) 0 0; display: grid; gap: var(--s-2); max-width: 560px; min-width: 0; }
.page-art figcaption { font-size: var(--fs-micro); line-height: var(--lh-body); color: var(--ink-2); max-width: 60ch; }
.page-art .art-n { display: none; }
@media (max-width: 599px) {
  .page-art.hub-art .art-w { display: none; }
  .page-art.hub-art .art-n { display: block; }
}
@media (min-width: 900px) {
  .page-head.has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: var(--s-7); align-items: center; }
  .page-head.has-art.hub { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }
  .page-head.has-art > h1, .page-head.has-art > p { grid-column: 1; }
  .page-head.has-art > .page-art { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: center; }
}
.guide .page-art { float: none; margin: var(--s-5) 0; max-width: 420px; }
@media print { .page-art { break-inside: avoid; max-width: 420px; } }
/* Release 5.5: the footer's notes run the full width of the page, as the owner asked, instead of stopping at 86
   characters. */
.foot p { max-width: none; }
/* Release 5.6: one width. Text that stopped short of the column around it now runs the column's full width, so
   every line in a section ends at the same right edge as its cards, tables and pictures: section and page
   introductions, card descriptions, notes under results, the text under the calculators, captions, the glossary's
   introduction, Corrections. Pages for reading (the guides, About, Privacy) keep their contents list at the right,
   and the reading column now fills all the space beside it. */
.section-head, .page-head > h1, .page-head > p, .hub-intro, .line-intro, .feature p, .feature.wide p, .answer .cap,
.scope, .mk-figures > .hint, .est-lead, .est-method p, .inc > p, .bis-ways, .after-tool > *, .at-main,
.page-art figcaption, .article, .glossary > h1, .glossary > .lede, .glossary > .az { max-width: none; }
@media (min-width: 1100px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
}
/* ---------------------------------------------------------------- release 5.7: the after-a-death checklist */
.ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.ad-list li { display: grid; gap: 2px; min-width: 0; }
.ad-list .check { margin-top: 0; }
.ad-list .check label { font-size: var(--fs-body); font-weight: 600; }
.ad-list .ck-note { margin-top: 0; padding-left: 32px; }
.ad-progress { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.ad-stuck .notes { margin: 0; }
@media print {
  body[data-page="after-a-death"] .inputs { display: none !important; }
  .ad-list li { break-inside: avoid; }
  .ad-list .check input { accent-color: #000; }
}
/* ---------------------------------------------------------------- release 5.8: what kind of figure a tool shows */
.page-head p.fig-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-ui); }
.fig-kind .fk-lab { color: var(--ink); font-weight: 600; }
.fk { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--mist-2); color: var(--ink); font-size: var(--fs-micro); font-weight: 600; line-height: var(--lh-ui); }
.fk-yours { background: var(--get-tint); color: var(--get-2); }
.fk-published { background: var(--brand-tint); color: var(--brand-2); }
.fk-estimate { background: var(--need-tint); color: var(--need-2); }
.fk-rough { background: var(--sun-tint); color: var(--sun-ink); }
.fig-kind a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
/* the kinds of figure, explained on About */
.article ul.fig-kinds { display: grid; gap: var(--s-3); margin: var(--s-4) 0; padding: 0; list-style: none; }
.fig-kinds li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--s-2) var(--s-4); align-items: baseline; }
.fig-kinds .fk { justify-self: start; }
@media (max-width: 599px) { .fig-kinds li { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- the fields left blank, under a result */
.result-foot .blank-line { margin: 0 0 var(--s-3); color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-body); }

/* ---------------------------------------------------------------- reporting a mistake, at the foot of every page */
.foot p.foot-report { margin: 0; }
.foot-report a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- check a new policy */
.pc-tool .pc-result { display: grid; gap: var(--s-4); }
.pc-cal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin: 0; }
.pc-cal[hidden] { display: none; }
.pc-cal .hint { margin: 0; }
.pc-wrong .notes { margin: 0; }
.pc-letter { margin-top: var(--s-4); }
.field[hidden] { display: none; }

@media print {
  body[data-page="policy-check"] .inputs, body[data-page="policy-check"] .pc-cal, body[data-page="policy-check"] .pc-letter { display: none !important; }
  .fig-kind a { display: none; }
  .fk { border: 1px solid #999; background: none !important; color: #000 !important; }
}

/* ---------------------------------------------------------------- WCAG 2.2, 2.4.11 (focus not hidden): on a phone, an item that takes the
   focus is scrolled clear of the figure bar held at the foot of the screen, at any text size */
@media (max-width: 959px) { html { scroll-padding-bottom: 6rem; } }

/* ---------------------------------------------------------------- a tool's page keeps room for the tool its script builds, so what's
   below it doesn't jump down when it appears (layout shift); textsize.js marks the page "js" before anything is drawn */
.js #tool { min-height: 100vh; min-height: 100svh; }
@media print { .js #tool { min-height: 0; } }
/* ================================================================ release 5.9
   1. Closer spacing: lines of text a little closer, and less room inside boxes, between cards and above sections.
      The tokens of 01-base.css, set smaller. Every tap target stays 24px or more.
   2. Travel, a fourth kind of cover, and the illustrations of the Guides and Tools pages.
   3. A second of movement in each illustration, played once as it appears: colours wash in, what the drawing measures
      rises or runs out, and the figures come last. Only transform and opacity change, so nothing around a drawing
      moves; with less motion asked for, or on paper, the drawing is still. */

/* ---- 1. spacing */
:root {
  --lh-head: 1.16;
  --lh-ui: 1.26;
  --lh-body: 1.34;
  --lh-prose: 1.42;
  --gap: 20px;
  --pad: 20px;
  --pad-lg: 24px;
  --sec: 56px;
  --cell-y: 8px;
}
@media (max-width: 699px) {
  :root { --gap: 12px; --pad: 16px; --pad-lg: 16px; --sec: 40px; }
}
.page-head { padding-top: var(--s-6); gap: var(--s-2); }
.article { gap: var(--s-3); padding-top: var(--s-6); }
.prose { gap: var(--s-3); }
.article h2, .prose h2, .glossary h2 { margin-top: var(--s-4); }
.article ul, .prose ul, .prose ol, .summary ul { gap: var(--s-1); }
.prose li > ul, .prose li > ol { margin-top: var(--s-1); }
.summary h2, .article .summary h2 { margin-bottom: var(--s-2); }
.checkout { gap: var(--s-4); }
.line-label + .hub, .line-label + .section, .line-label + div.section { padding-top: var(--s-4); }
.page-head + .line-label { margin-top: var(--s-5); }
/* the closer lines made a text button on a line of its own 18.9px high: it keeps a target of 24px (WCAG 2.2, 2.5.8) */
.note-example .link, .tc-own .link { min-height: 24px; }

/* ---- 2. travel */
.secs.four > * { grid-column: span 3; }
@media (max-width: 999px) {
  .secs.four > * { grid-column: span 6; }
}
@media (max-width: 699px) {
  .secs.four > * { grid-column: span 12; }
}
.page-head.has-art > .chips { grid-column: 1; }
/* a list of one guide or tool (home insurance, now alone under More cover) takes the whole row */
.cards > li:only-child, .g-cards > li:only-child { grid-column: 1 / -1; }
.tn-result .headline .big { font-variant-numeric: tabular-nums; }
.tn-least { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin: 0; }
.tn-least span { color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; }
.tn-least strong { font-family: var(--figures); font-size: var(--fs-sub); line-height: var(--lh-head); color: var(--need); font-variant-numeric: tabular-nums; }
.tn-list { margin: 0; padding-left: 1.25em; display: grid; gap: var(--s-2); }
.tn-list li { line-height: var(--lh-body); }
.tn-list li::marker { color: var(--ink-3); }
.tn-rule .notes, .tn-next .notes { margin: 0; }

/* seven links in the menu: on a phone they fit one row whether the site's font has arrived or not, so the page doesn't
   move down and back as the font arrives (a layout shift of 0.37 on a first visit, found by tests/browser_v59.py) */
@media (max-width: 479px) {
  .nav a { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 359px) {
  .nav a { padding-left: 3px; padding-right: 3px; font-size: 0.875rem; }
}
/* the text-size buttons appear once the page's script runs: on a phone, the row they share with the name keeps their
   height from the start, so the menu and the page under it don't move down when they appear (a layout shift of 0.02 on
   most pages and 0.08 on the home page, there since the buttons came) */
@media (max-width: 899px) {
  .bar .brand { min-height: 47px; }
  /* and on a 360px phone the name and the buttons share their row whether the site's font has arrived or not, so the
     buttons don't drop to a row of their own and climb back (a layout shift of 0.23 on a first visit) */
  .bar { column-gap: var(--s-2); }
}

/* ---- 3. a second of movement */
/* a tool draws its page's illustration again beside its title (app.js): that copy is the one that moves */
.js #tool .page-art:not(.art-live) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .art-svg .tint, .art-svg .spark { animation: art-in 0.5s ease-out 0.05s both; }
  .art-svg .a-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: art-grow 0.75s cubic-bezier(0.22, 0.8, 0.3, 1) 0.1s both; }
  .art-svg .a-grow-x { transform-box: fill-box; transform-origin: 0 50%; animation: art-grow-x 0.75s cubic-bezier(0.22, 0.8, 0.3, 1) 0.1s both; }
  .art-svg .a-pop { transform-box: fill-box; transform-origin: 50% 50%; animation: art-pop 0.6s cubic-bezier(0.25, 0.8, 0.35, 1) 0.1s both; }
  .art-svg .a-fly { animation: art-fly 0.85s cubic-bezier(0.25, 0.8, 0.35, 1) 0.1s both; }
  /* the balance in "Claim, or pay yourself?" settles about its pivot, at (180, 62) in its drawing */
  .art-svg .a-tilt { transform-box: view-box; transform-origin: 180px 62px; animation: art-tilt 0.85s cubic-bezier(0.3, 1.3, 0.5, 1) 0.1s both; }
  .art-svg .sk-f, .art-svg .a-fig { animation: art-in 0.35s ease-out 0.65s both; }
}
@keyframes art-in { from { opacity: 0; } }
@keyframes art-grow { from { transform: scaleY(0); } }
@keyframes art-grow-x { from { transform: scaleX(0); } }
@keyframes art-pop { from { opacity: 0; transform: scale(0.92); } }
@keyframes art-fly { from { opacity: 0; transform: translate(-40px, 30px); } }
@keyframes art-tilt { from { transform: rotate(14deg); } }
@media print {
  .art-svg * { animation: none !important; }
  .js #tool .page-art:not(.art-live) { visibility: visible; }
}
/* ================================================================ release 5.10
   The owner asked for travel in the home page's picture, movement in it, and less room between the rows of the
   lists of guides and tools, and anywhere else it can go.
   1. The sketch on the home page: drawn smaller to keep one row on a phone; comes in once, the first time it's seen.
   2. Closer rows in the lists of guides and tools on every page; less room in cards, the facts and the questions
      on the home page, between sections and between the glossary's terms. Every tap target stays 24px or more. */

/* ---- 1. the sketch on the home page */
/* drawn smaller (src/guide-sketch.js marks the drawings .sk-small): longer dashes, heavier hair, so it reads as the
   full-size sketch does */
.sk-svg .sk-small.sk-ask .ln { stroke-dasharray: 8 9; }
.sk-svg .sk-small.sk-ask .hair, .sk-svg .sk-small.sk-ask .tank, .sk-svg .sk-small.sk-ask .seat, .sk-svg .sk-small.sk-ask .grey { stroke-width: 3; }
/* the entrance, once, the first time it's on screen (src/guide-ui.js adds .sk-wait, then .sk-intro): the rule draws
   across, the drawings rise in turn, the lights come on last; done within a second */
@media (prefers-reduced-motion: no-preference) {
  .sk-svg.sk-wait .sk-it, .sk-svg.sk-wait .sk-rule { opacity: 0; }
  .sk-svg.sk-intro .sk-rule { transform-box: fill-box; transform-origin: 0 50%; animation: sk-rule 0.45s ease-out both; }
  .sk-svg.sk-intro .sk-it { animation: sk-rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) 0.05s both; }
  .sk-svg.sk-intro .sk-it:nth-of-type(2) { animation-delay: 0.14s; }
  .sk-svg.sk-intro .sk-it:nth-of-type(3) { animation-delay: 0.23s; }
  .sk-svg.sk-intro .sk-it:nth-of-type(4) { animation-delay: 0.32s; }
  .sk-svg.sk-intro .sk-it:nth-of-type(n + 5) { animation-delay: 0.41s; }
  .sk-svg.sk-intro .sk-it .spark { animation: sk-light 0.25s ease-out 0.7s both; }
}
@keyframes sk-rule { from { transform: scaleX(0); } to { transform: none; } }
@keyframes sk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sk-light { from { opacity: 0; } to { opacity: 1; } }
@media print {
  .sk-svg .sk-it, .sk-svg .sk-rule, .sk-svg .spark { opacity: 1 !important; animation: none !important; }
}

/* ---- 2. less room */
:root { --sec: 48px; }
@media (max-width: 699px) {
  :root { --sec: 32px; }
  .page-head { padding-top: var(--s-5); }
}
.section-head { margin-bottom: var(--s-4); }
.section-foot { margin-top: var(--s-4); gap: var(--s-2); }
.section-foot .go.quiet { min-height: 40px; padding: 8px 18px; }

/* the lists of guides and tools on the home, Life, Health, Motor and Travel pages: rows 30px apart, from 38 */
.sec { padding: var(--s-4) var(--pad) var(--s-2); gap: var(--s-2); }
.sec-head { gap: var(--s-3); }
.sec li a { padding: 5px 0; }
.sec-foot { padding: var(--s-2) 0 var(--s-1); }

/* the cards of tools: the icon beside the name on every screen, as on a phone, and less room inside */
.cards a { grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--s-3); row-gap: 2px; padding: var(--s-3) var(--s-4); }
.cards a .ico.tile { grid-row: span 2; width: 36px; height: 36px; margin: 0; }
.cards a .ico.tile svg { width: 20px; height: 20px; }
/* four to a row on a wide screen: the words under the icon and the name, so they keep the card's whole width */
@media (min-width: 1000px) {
  .cards > :first-child:nth-last-child(4n) > a, .cards > :first-child:nth-last-child(4n) ~ * > a { align-items: center; row-gap: var(--s-1); }
  .cards > :first-child:nth-last-child(4n) > a .ico.tile, .cards > :first-child:nth-last-child(4n) ~ * > a .ico.tile { grid-row: auto; }
  .cards > :first-child:nth-last-child(4n) > a .sum, .cards > :first-child:nth-last-child(4n) ~ * > a .sum { grid-column: 1 / -1; align-self: start; }
}
/* the cards of guides */
.g-cards a { gap: 2px; padding: var(--s-3) var(--s-4); }
.g-cards .mins { margin-top: 2px; }

/* the home page: the facts you can check, and the two questions for each kind of cover */
.trust-list li { padding: var(--s-3) var(--s-4); gap: 2px; }
.lines { row-gap: var(--s-5); }
.line { row-gap: var(--s-2); }
.line-head { gap: var(--s-3); }
.line-head .ico.tile { width: 44px; height: 44px; }
.line-head .ico.tile svg { width: 24px; height: 24px; }
.line-q { padding: var(--s-3) var(--s-4); gap: 2px; }

/* where to start, on the pages for each kind of cover */
.routes { row-gap: var(--s-5); }
.routes > li { padding-top: var(--s-3); gap: var(--s-1); }
.routes ul { margin-top: 0; }
.routes ul a { padding: 3px 0; }

/* where each kind of cover begins, on the Guides and Tools pages */
.line-label { padding-bottom: var(--s-2); }
.line-label + .hub, .line-label + .section, .line-label + div.section { padding-top: var(--s-3); }
.line-sec > .line-label { margin-bottom: var(--s-3); }
.line-intro { margin-bottom: var(--s-4); }

/* the glossary: its 144 terms closer, each definition set as the site's other short text */
.terms > div { padding: var(--s-2) 0; }
.terms dd { line-height: var(--lh-body); }
/* ================================================================ release 5.11
   1 to 4: the menu. 5: the four kinds of cover, as pictures.

   The menu. "Ask" is "Home", and "Compare" joins it: eight words. What you can do here comes first (Home, Compare,
   Guides, Tools), then the four kinds of cover (Life, Health, Motor, Travel).

   On a phone they are two rows of four, one group a row. Each word has a quarter of the row whatever its width, so
   the rows are the same before and after the site's font arrives and nothing under them moves. The words grow with
   the text-size buttons as far as a quarter of the row lets them.
   On a wider screen they are one row, with a hairline between the two groups: a row of their own under the name
   while there isn't room beside it, and beside it from 900px (later with larger text, which needs more room).
   The widths below were measured with the site's font and with a wider one standing in before it arrives, so the
   header is the same either way (tests/browser_v511.py). */

/* ---- 1. the two groups */
.nav a:nth-child(5) { position: relative; margin-left: 13px; }
.nav a:nth-child(5)::before { content: ""; position: absolute; left: -9px; top: 24%; bottom: 24%; width: 1px; background: var(--line-2); }

/* ---- 2. a phone: two rows of four (to 799px at the largest text) */
@media (max-width: 699px) {
  .bar .nav { gap: 2px 0; justify-content: flex-start; }
  .nav a { flex: 1 0 25%; min-width: max-content; text-align: center; padding-left: 2px; padding-right: 2px; font-size: min(var(--fs-small), 4.8vw); }
  .nav a:nth-child(5) { margin-left: 0; }
  .nav a:nth-child(5)::before { content: none; }
}
@media (max-width: 359px) {
  .nav a { font-size: min(0.875rem, 4.8vw); }
}
@media (min-width: 700px) and (max-width: 799px) {
  html[data-text="2"] .bar .nav { gap: 2px 0; justify-content: flex-start; }
  html[data-text="2"] .nav a { flex: 1 0 25%; min-width: max-content; text-align: center; padding-left: 2px; padding-right: 2px; }
  html[data-text="2"] .nav a:nth-child(5) { margin-left: 0; }
  html[data-text="2"] .nav a:nth-child(5)::before { content: none; }
}

/* ---- 3. a wide screen with larger text: the menu keeps its own row, as on a tablet, until there is room beside the
   name and the text-size buttons (to 1049px at A+, to 1149px at A++), and the header scrolls away with the page */
@media (min-width: 900px) and (max-width: 1049px) {
  html[data-text] .masthead { position: relative; top: auto; }
  html[data-text] { scroll-padding-top: 0; }
  html[data-text] .bar { padding-top: 10px; padding-bottom: 6px; row-gap: 6px; column-gap: var(--s-2); }
  html[data-text] .bar .brand { min-height: 47px; }
  html[data-text] .bar .text-size { order: 2; }
  html[data-text] .bar .nav { order: 3; width: calc(100% + 16px); margin: 0 -8px; flex-wrap: wrap; gap: 2px; }
  html[data-text] .nav a { padding: 7px 10px; }
}
@media (min-width: 1050px) and (max-width: 1149px) {
  html[data-text="2"] .masthead { position: relative; top: auto; }
  html[data-text="2"] { scroll-padding-top: 0; }
  html[data-text="2"] .bar { padding-top: 10px; padding-bottom: 6px; row-gap: 6px; column-gap: var(--s-2); }
  html[data-text="2"] .bar .brand { min-height: 47px; }
  html[data-text="2"] .bar .text-size { order: 2; }
  html[data-text="2"] .bar .nav { order: 3; width: calc(100% + 16px); margin: 0 -8px; flex-wrap: wrap; gap: 2px; }
  html[data-text="2"] .nav a { padding: 7px 10px; }
}

/* ---- 4. beside the name: the words sit closer while room is short. The header is never wider than the page's
   1120px column, so with larger text they stay closer on any screen. */
@media (min-width: 900px) and (max-width: 1199px) {
  .bar { column-gap: var(--s-3); }
  .nav { gap: 2px; }
  .nav a { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 1200px) {
  html[data-text] .bar { column-gap: var(--s-3); }
  html[data-text] .nav { gap: 2px; }
  html[data-text] .nav a { padding-left: 8px; padding-right: 8px; }
}

/* ---- 5. the four kinds of cover, as pictures: the home page, and the Guides page
   The owner, 1 December 2026: "picture with double sketch should not be there... Simple pictures with animation is
   fine.. once the user select the option the colour should become blue inside.. Similarly the picture on "Guides"
   should also change." Ink lines on white, one marigold light each. The kind picked (the home page: src/guide-ui.js
   marks it .on) is filled with peacock blue's light tint, its lines in peacock blue. A picture draws itself in once as
   the page opens, within about a second, by its own lines and fill alone, so nothing around it moves; it is still for
   anyone who asks for less motion, and on paper it is simply there. The pictures are written into the page by the
   build (build_v511.py, src/art/pic-*.svg), at a size fixed by their shape, before any script runs. */
.pics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.pics > li { min-width: 0; }
.pic { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--ink-2); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pic-svg { display: block; width: 100%; max-width: 128px; height: auto; aspect-ratio: 120 / 96; overflow: visible; }
.pic-svg .s { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pic-svg .arc { stroke-width: 3.2; }
.pic-svg .f, .pic-svg .w { fill: #FFFFFF; }
.pic-svg .k { fill: var(--ink); }
.pic-svg .m { fill: var(--sun); }
.pic-svg .ms { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; }
.pic-t { font-weight: 600; font-size: var(--fs-small); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.pic-n { font-size: var(--fs-micro); line-height: var(--lh-ui); color: var(--ink-3); }
/* the kind picked */
.pics .on .pic-svg .f { fill: #BFE0F4; }
.pics .on .pic-svg .s { stroke: var(--brand); }
.pics .on .pic-svg .k { fill: var(--brand); }
.pics .on .pic-t { color: var(--brand); }
/* the Guides page: each picture goes to its guides, and fills blue as it is pointed at or tapped */
a.pic:hover .pic-svg .f, a.pic:focus-visible .pic-svg .f, a.pic:active .pic-svg .f { fill: #BFE0F4; }
a.pic:hover .pic-svg .s, a.pic:focus-visible .pic-svg .s, a.pic:active .pic-svg .s { stroke: var(--brand); }
a.pic:hover .pic-svg .k, a.pic:focus-visible .pic-svg .k, a.pic:active .pic-svg .k { fill: var(--brand); }
a.pic:hover .pic-t, a.pic:focus-visible .pic-t, a.pic:active .pic-t { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
/* the home page: under the question on a phone, so the kind picked is seen filling; beside the guide on a wide screen.
   While the guide offers the choice, a picture picks its kind as the switch does (src/guide-ui.js marks .can). */
.ask-pics { margin: 0; min-width: 0; }
.ask-pics .pics { max-width: 520px; }
.ask-pics.can .pic { cursor: pointer; }
@media (hover: hover) {
  .ask-pics.can li:not(.on) .pic:hover .pic-svg .f { fill: var(--brand-tint); }
}
@media (min-width: 1000px) {
  .ask-pics { grid-column: 1; grid-row: 2; }
}
.page-art .pics { max-width: 540px; }
.page-art .pics > li > .pic { padding: 2px 0 4px; border-radius: var(--r-md); }
@media (prefers-reduced-motion: no-preference) {
  .pic-svg .f, .pic-svg .s, .pic-svg .k, .pic-t { transition: fill 0.3s ease, stroke 0.3s ease, color 0.3s ease; }
  .pics > li:nth-child(2) { --pic-d: 0.1s; }
  .pics > li:nth-child(3) { --pic-d: 0.2s; }
  .pics > li:nth-child(4) { --pic-d: 0.3s; }
  .pic-svg .s { animation: pic-draw 0.65s cubic-bezier(0.45, 0, 0.25, 1) var(--pic-d, 0s) backwards; }
  .pic-svg .f.s, .pic-svg .w.s { animation: pic-draw 0.65s cubic-bezier(0.45, 0, 0.25, 1) var(--pic-d, 0s) backwards, pic-fill 0.3s ease-out calc(var(--pic-d, 0s) + 0.4s) backwards; }
  .pic-svg .k { animation: pic-fill 0.3s ease-out calc(var(--pic-d, 0s) + 0.4s) backwards; }
  .pic-svg .m { transform-box: fill-box; transform-origin: 50% 50%; animation: pic-light 0.25s ease-out calc(var(--pic-d, 0s) + 0.55s) backwards; }
  .pic-svg .ms { animation: pic-draw 0.25s ease-out calc(var(--pic-d, 0s) + 0.55s) backwards; }
  /* the kind picked settles in with a small lift */
  .pics .on .pic-svg { transform-origin: 50% 85%; animation: pic-pick 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
}
/* a line draws from its start; at the end it is a plain line again, whatever the browser makes of pathLength. Each
   entrance holds its first frame through its delay and lets go at its end, so nothing is left running */
@keyframes pic-draw { 0% { stroke-dasharray: 1 2; stroke-dashoffset: 1.05; } 99% { stroke-dasharray: 1 2; stroke-dashoffset: 0; } 100% { stroke-dasharray: none; stroke-dashoffset: 0; } }
@keyframes pic-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes pic-light { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes pic-pick { 0% { transform: none; } 45% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }
@media print {
  .pic-svg, .pic-svg * { animation: none !important; transition: none !important; }
}
