/* Thiap Solar. One stylesheet. Brand: DESIGN-DIRECTION.md (round 6: amber #F4AE1A, ink, white; logo A1 rising).
   Rules: research/ux_skills_rules.md, research/thai_ux_loved_and_elderly.md, ~/Desktop/Claude/rules/website-design-no-ai-tells.md
   Colours are full strength, no opacities. No middle-dot separators anywhere. */

@font-face { font-family: "Plex Thai"; src: url(/fonts/ibm-plex-sans-thai-thai-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; src: url(/fonts/ibm-plex-sans-thai-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+0E3F; }
@font-face { font-family: "Plex Looped"; src: url(/fonts/ibm-plex-sans-thai-looped-thai-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Looped"; src: url(/fonts/ibm-plex-sans-thai-looped-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+0E3F; }
@font-face { font-family: "Plex Looped"; src: url(/fonts/ibm-plex-sans-thai-looped-thai-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Looped"; src: url(/fonts/ibm-plex-sans-thai-looped-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+0E3F; }

:root {
  --amber: #F4AE1A;     /* the brand colour: sun, panels, the main button */
  --amber-line: #E09C0C;
  --amber-text: #3A2604;      /* button text on amber: warm dark brown, 7.5:1 */
  --amber-soft: #FDF0D2; /* a chosen tile */
  --ink: #141210;
  --soft: #57524b;      /* secondary text, 7:1 on white, 6.4:1 on paper */
  --page: #ffffff;
  --surface: #F7F5F0;   /* paper */
  --paper: #F7F5F0;
  --rule: #E3DED3;      /* dividers only, never a control edge */
  --edge: #77706A;      /* input and checkbox edges */
  --caution: #FFF3D1;
  --error: #b3261e;     /* functional, errors only */
  --line: #06c755;      /* LINE's colour, LINE button only, ink text */
  --r: 6px;
  --body: "Plex Looped", "Noto Sans Thai Looped", "Sarabun", system-ui, sans-serif;
  --head: "Plex Thai", "Noto Sans Thai", system-ui, sans-serif;
  /* spacing scale: 4 8 12 16 24 32 48 64 */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.7 var(--body); }
@media (max-width: 480px) { body { font-size: 16px; } }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
button, a, input, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.35; margin: 0 0 12px; }
h1 { font-size: 36px; }
.phr { display: inline-block; }
h2 { font-size: 26px; margin-top: 48px; }
h3 { font-size: 20px; margin-top: 32px; }
@media (max-width: 480px) { h1 { font-size: 26px; } h2 { font-size: 22px; } }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 8px; }
.soft { color: var(--soft); }
.small { font-size: 16px; }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.measure { max-width: 720px; }


.btn-line-old { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--line); color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 16px; border-radius: var(--r); text-decoration: none; }


/* Buttons. One primary per screen. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border: 0; border-radius: var(--r);
  background: var(--amber); color: var(--ink); font: 700 18px/1.3 var(--head); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--amber-line); color: var(--ink); text-decoration: none; }
.btn.block { display: flex; width: 100%; }
.btn[aria-busy="true"] { cursor: progress; }
.btn-plain { background: none; border: 0; padding: 12px 0; min-height: 48px; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; cursor: pointer; }

/* Breadcrumbs */
.crumbs { font-size: 16px; color: var(--soft); padding-top: 8px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--soft); }
.crumbs a { color: var(--soft); }

/* The quote card */
.lead { font-size: 18px; color: var(--ink); }
.deadline mark { background: var(--caution); color: var(--ink); padding: 0 4px; }

.quote { background: var(--surface); padding: 24px 20px 20px; border-radius: var(--r); min-height: 460px; scroll-margin-top: 8px; }
@media (max-width: 480px) { .quote { margin: 0 -20px; border-radius: 0; padding: 20px; } }
.q-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin: -8px 0 4px; }
.q-count { font-size: 16px; color: var(--soft); }
.bar { height: 6px; background: var(--rule); margin-bottom: 20px; }
.bar i { display: block; height: 100%; background: var(--amber); width: 10%; transition: width .25s; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
.q h2 { font-size: 24px; margin: 0 0 4px; }
.q .hint { color: var(--soft); font-size: 16px; margin: 0 0 16px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.tiles.one { grid-template-columns: 1fr; }
@media (max-width: 340px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: block; width: 100%; min-height: 56px; text-align: left; cursor: pointer; background: #fff; color: var(--ink);
  border: 2px solid #fff; border-radius: var(--r); padding: 12px 14px; font: 700 18px/1.35 var(--head); }
.tile span { display: block; font: 400 16px/1.45 var(--body); color: var(--soft); margin-top: 2px; }
.tile:hover { border-color: var(--edge); }
.tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tile.unsure { grid-column: 1 / -1; font-weight: 400; font-family: var(--body); }
.q-foot { margin-top: 16px; font-size: 16px; color: var(--soft); }

/* Form fields */
.field { margin: 0 0 20px; }
.field > label, .legend { display: block; font: 700 18px/1.4 var(--head); margin-bottom: 4px; }
.field .hint { display: block; color: var(--soft); font-size: 16px; margin: 0 0 8px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; min-height: 52px; font: 18px/1.4 var(--body); color: var(--ink); background: #fff;
  border: 2px solid var(--edge); border-radius: var(--r); padding: 10px 12px; }
.field textarea { min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field .err { display: block; color: var(--error); font-weight: 700; margin: 0 0 6px; }
.field.short input { max-width: 260px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; min-height: 48px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; background: #fff; border: 2px solid var(--edge); border-radius: var(--r); cursor: pointer; font-family: var(--head); font-weight: 700; }
.choice input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.errors { background: #fff; border: 3px solid var(--error); padding: 16px; margin-bottom: 20px; }
.errors h2 { font-size: 20px; margin: 0 0 8px; }
.errors ul { margin: 0; padding-left: 20px; }
.errors a { color: var(--error); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Results */
.result-head { font-size: 26px; margin: 0 0 16px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 0 0 16px; }
.facts-grid div { background: #fff; padding: 12px 14px; }
.facts-grid dt { font-size: 16px; color: var(--soft); }
.facts-grid dd { margin: 0; font: 700 22px/1.3 var(--head); font-variant-numeric: tabular-nums; }
@media (max-width: 360px) { .facts-grid { grid-template-columns: 1fr; } }
.note { background: #fff; padding: 12px 14px; margin: 0 0 8px; font-size: 16px; }
.note.caution { background: var(--caution); }
.how { font-size: 16px; color: var(--soft); }
details.how-calc { margin: 8px 0 16px; font-size: 16px; }
details.how-calc summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--ink); }

.band { padding: 56px 0; }
.band.surface { background: var(--surface); }
.band h2:first-child { margin-top: 0; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols3 h3 { margin-top: 0; }
@media (max-width: 760px) { .cols3 { grid-template-columns: 1fr; gap: 8px; } }

/* Content pages */
.page { padding: 16px 0 64px; }
.updated { font-size: 16px; color: var(--soft); margin-bottom: 24px; }
.answer { font-size: 20px; background: var(--surface); padding: 20px; margin: 0 0 32px; }
table.facts { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 17px; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
table.facts th { font-family: var(--head); width: 36%; }
table.facts thead th { width: auto; color: var(--soft); font-size: 16px; }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { cursor: pointer; font: 700 18px/1.45 var(--head); padding: 14px 0; min-height: 48px; }
.qa p { margin: 0 0 16px; }
.sources { font-size: 16px; color: var(--soft); }
.sources li { word-break: break-word; }
.cta { background: var(--surface); padding: 24px; margin: 40px 0; }
.cta h2 { margin-top: 0; }
.ph { background: var(--caution); outline: 2px dashed #8a6d00; padding: 0 4px; }
.links-list { padding-left: 0; list-style: none; }
.links-list li { padding: 8px 0; margin: 0; display: flex; gap: 12px; align-items: flex-start; }
.links-list .ic { width: 24px; height: 24px; margin-top: 3px; flex: none; color: var(--ink); }
.links-list a { font-family: var(--head); font-weight: 700; }
.calc { background: var(--surface); padding: 24px 20px; margin: 24px 0; }

/* Footer */
footer { background: var(--ink); color: #dfe6e4; padding: 40px 0 56px; font-size: 16px; margin-top: 32px; }
footer a { color: #fff; text-decoration-color: #dfe6e4; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0; }
footer li a { display: inline-block; padding: 6px 0; }
footer .legal { margin-top: 32px; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; gap: 20px; } }

.hidden { display: none !important; }

/* ---- v3: icons, tiles, results (panel review 2 Dec 2026) ---- */
.ic { width: 32px; height: 32px; color: var(--ink); flex: none; fill: none; stroke: currentColor; }
.ic.sm { width: 20px; height: 20px; vertical-align: -4px; }
.q h2[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.q h2 { margin-bottom: 8px; }
.q-count { font-size: 15px; }
.tiles.stack { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .tiles.stack { grid-template-columns: 1fr 1fr; } }
.tile.stack { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 104px; padding: 14px 8px; font-size: 16px; }
.tiles.rows, .tiles.one { grid-template-columns: 1fr; }
.tile.rows { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 14px; }
.tile.rows .ic { width: 26px; height: 26px; }
.tile.grid { min-height: 52px; }
.tile .tl { display: block; }
.tile .ts { display: block; font: 400 14px/1.4 var(--body); color: var(--soft); margin-top: 2px; }
.tile.unsure { font-family: var(--head); font-weight: 700; }
.tile.stack.unsure { grid-column: auto; }
.tile[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--ink); box-shadow: none; }
.tile.unsure .ic { color: var(--soft); }

.result-head { font-size: 22px; margin: 0 0 4px; }
.hero-num { font: 700 20px/1.4 var(--head); margin: 0 0 16px; }
.hero-num strong { display: block; font-size: 44px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bills { margin: 0 0 16px; }
.bl { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 6px; }
.bl i { display: block; height: 12px; background: var(--soft); border-radius: var(--r); }
.bl.after i { background: var(--amber); }
.bl b { font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.res-list { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 8px; padding: 14px 16px; background: #fff; }
.res-list dt { color: var(--soft); font-size: 15px; }
.res-list dd { margin: 0; font: 700 16px/1.5 var(--head); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
details.how-calc summary { list-style: none; }
details.how-calc summary::before { content: "+"; display: inline-block; width: 20px; font-weight: 700; }
details.how-calc[open] summary::before { content: "−"; }
details.how-calc summary::-webkit-details-marker { display: none; }
.elig { background: #fff; padding: 16px; margin: 16px 0; }
.elig h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 19px; }
.elig h3 .ic { width: 26px; height: 26px; }
.eq { margin-top: 12px; }
.eq-q { font-family: var(--head); font-weight: 700; margin: 0 0 6px; }
.eq .hint { margin: -4px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border: 2px solid var(--edge); border-radius: var(--r); background: #fff; color: var(--ink); font: 700 15px/1.3 var(--head); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--ink); }
.ok { margin: 14px 0 0; }
.next-h { font-size: 20px; margin: 24px 0 12px; }
.steps3 { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.steps3 li { display: flex; gap: 12px; align-items: center; margin: 0; }
.steps3 .ic { width: 26px; height: 26px; }
.row-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.fs { border: 0; padding: 0; margin: 0 0 20px; }
.choice .ic { width: 22px; height: 22px; }
.check.consent span { font-family: var(--body); font-weight: 400; font-size: 15px; line-height: 1.6; }
.below-btn { margin-top: 10px; }

/* Mobile menu, official LINE button */
.top nav .menu { display: none; }
.line-add { display: inline-block; padding: 4px 0; line-height: 0; }
.line-add img { height: 36px; width: auto; }
@media (max-width: 880px) {
  .top nav .menu { display: block; position: relative; }
  .top nav .menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--head); font-weight: 700; }
  .top nav .menu summary::-webkit-details-marker { display: none; }
  .top nav .menu ul { position: absolute; right: 0; top: 48px; z-index: 5; background: #fff; list-style: none; margin: 0; padding: 8px 16px; min-width: 220px; box-shadow: 0 8px 24px rgba(20,18,16,.12); }
  .top nav .menu li { margin: 0; }
  .top nav .menu a { display: block; padding: 10px 0; text-decoration: none; }
}
.logo .wm { font-family: var(--head); font-weight: 700; }

/* Home */
.trust3 { list-style: none; padding: 0; margin: 24px 0 24px; display: grid; gap: 16px; }
.trust3 li { display: flex; gap: 12px; align-items: center; margin: 0; font-family: var(--head); font-weight: 700; }
.trust3 .ic { width: 32px; height: 32px; }
.cols3 .ic { width: 40px; height: 40px; margin-bottom: 8px; }
.example { background: var(--surface); padding: 20px; max-width: 520px; }
.example .res-list { background: transparent; }
.example .res-list { padding: 0; }
.fears h3 { display: flex; gap: 10px; align-items: center; font-size: 19px; }
.fears h3 .ic { width: 26px; height: 26px; }

/* round 2 */
.elig .tiles.rows { gap: 6px; }
.elig .tile.rows { background: var(--surface); border-color: var(--surface); min-height: 48px; }
.elig .tile.rows[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--ink); }
.elig .tile.rows .ic { width: 22px; height: 22px; }
.loan-line { margin: 4px 0 8px; }
.quickstart { background: var(--surface); padding: 16px 20px; margin: 0 0 32px; }
.quickstart p { font-family: var(--head); font-weight: 700; margin: 0 0 10px; }
.quickstart .qs { display: flex; flex-wrap: wrap; gap: 8px; }
.quickstart a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: #fff; border-radius: var(--r); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 15px; }
.quickstart a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.tile.stack .tl { font-size: 16px; }
@media (max-width: 720px) {
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2) { display: block; }
  .crumbs li:nth-last-child(2)::before { content: "‹ "; }
  .crumbs li + li::before { content: none; }
  .crumbs li:nth-last-child(2)::before { content: "‹ "; margin-right: 4px; }
  .answer { font-size: 18px; }
}


/* =================== round 6: brand, header, hero, pictograms =================== */

/* Two languages in one page: the visitor's pick lives on <html data-ui>. Thai is the default. */
html:not([data-ui="en"]) [lang="en"]:not(html) { display: none !important; }
html[data-ui="en"] [lang="th"]:not(html) { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-variant-numeric: tabular-nums; }

/* Header: a floating white bar (Svea-style), sticky so the way to a quote is always one tap away */
.top { position: sticky; top: 0; z-index: 20; padding: 12px 16px 0; pointer-events: none; }
.bar-wrap { max-width: 1140px; margin: 0 auto; pointer-events: auto; }
.navbar { background: #fff; border-radius: var(--r); box-shadow: 0 2px 18px rgba(20,18,16,.08); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 8px 6px 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--head); color: var(--ink); text-decoration: none; min-height: 48px; }
.logo svg { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; align-items: center; gap: 22px; font: 700 15px/1 var(--head); }
.top nav a.text { text-decoration: none; padding: 12px 0; color: var(--ink); }
.top nav a.text:hover { box-shadow: inset 0 -3px 0 var(--amber); }
.top .lang { background: none; border: 0; font: 700 15px/1 var(--head); color: var(--ink); min-height: 44px; min-width: 44px; padding: 0 6px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; }
.top .nav-cta { min-height: 48px; padding: 10px 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 1020px) { .top nav a.text:nth-of-type(4) { display: none; } }
@media (max-width: 880px) {
  .top { padding: 8px 8px 0; }
  .navbar { padding: 4px 6px 4px 12px; min-height: 56px; gap: 8px; }
  .top nav { gap: 6px; }
  .top nav a.text { display: none; }
  .logo { font-size: 18px; gap: 8px; }
  .logo svg { width: 30px; height: 30px; }
  .top .nav-cta { padding: 8px 12px; font-size: 14px; min-height: 44px; }
}
@media (max-width: 380px) { .logo .wm { display: none; } }

/* Logo A1: the sun comes up behind the roof on the first page of a visit */
.rise .logo .sunr { animation: srise 1.2s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes srise { from { transform: translateY(var(--rise)); } }

footer .flogo { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 19px/1 var(--head); margin-bottom: 12px; }
footer .flogo svg { width: 34px; height: 34px; }

/* Hero: text and calculator left, the drawing right; on a phone the drawing comes right after the headline */
.hero { padding: 8px 0 40px; }
.hgrid { display: grid; grid-template-columns: 0.86fr 1.24fr; grid-template-areas: "text stage" "calc stage"; column-gap: 40px; row-gap: 20px; align-items: start; padding-top: 28px; }
.htext { grid-area: text; padding-top: 8px; }
.hcalc { grid-area: calc; }
.hstage { grid-area: stage; position: relative; }
.hero h1 { font-size: 40px; line-height: 1.22; margin: 0 0 12px; }
.hero .lead { max-width: 470px; margin: 0; }

.calc, .hero .quote { background: var(--paper); border-radius: var(--r); padding: 20px 22px 18px; margin: 0; }
.calc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-top label { font: 700 16px/1.3 var(--head); }
.calc .bill { font: 700 30px/1 var(--head); white-space: nowrap; }
.slwrap { position: relative; padding-bottom: 30px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: #DCD6C9; margin: 18px 0 0; cursor: pointer; touch-action: pan-y; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); border: 6px solid var(--amber); cursor: grab; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 6px solid var(--amber); cursor: grab; }
.calc input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
.fullmark { position: absolute; top: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.fullmark i { width: 2px; height: 8px; background: var(--ink); }
.fullmark em { font: 700 12px/1.2 var(--head); font-style: normal; white-space: nowrap; }
.fullmark.hit em { box-shadow: inset 0 -5px 0 var(--amber); }
.calc .hint { font-size: 14px; color: var(--soft); margin: 0 0 14px; }
.after { margin-bottom: 14px; }
.after-l { font: 700 15px/1.3 var(--head); display: block; margin-bottom: 4px; }
.ba { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ba .was { font: 400 20px/1 var(--head); text-decoration: line-through; text-decoration-thickness: 2px; }
.ba .arrow { font: 700 20px/1 var(--head); }
.ba .now { font: 700 36px/1 var(--head); box-shadow: inset 0 -10px 0 var(--amber); padding: 0 2px; }
.ba .per { font-size: 15px; }
.read { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 14px; }
.read b { display: block; font: 700 21px/1.25 var(--head); }
.read span { font-size: 14px; }
.sub { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.sub b { font-family: var(--head); }
.hero .go { min-height: 56px; }
.line-row:empty { display: none; }
.line-row { margin-top: 12px; }
.fine { font-size: 14px; margin: 10px 0 0; }
.resume { margin: 4px 0 0; }
.resume .btn-plain { padding: 8px 0; min-height: 44px; font-size: 15px; }

.drawbox { position: relative; height: 460px; }
.drawbox svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.tabs button { background: #fff; border: 2px solid var(--paper); border-radius: var(--r); padding: 8px 6px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 14px/1.2 var(--head); color: var(--ink); min-height: 88px; }
.tabs button .pic { width: 52px; height: 52px; }
.tabs button:hover { border-color: var(--edge); }
.tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--amber-soft); }
.spec { font-size: 14px; line-height: 1.5; margin: 10px 0 0; color: var(--soft); }
.hfoot { padding-top: 28px; }
.hfoot p { max-width: 860px; margin: 0 0 8px; }
.deadline mark { background: var(--amber-soft); color: var(--ink); padding: 0 4px; box-shadow: inset 0 -3px 0 var(--amber); }

/* motion: panels drop on, the sun rises */
.anim .pnl.new { animation: pdrop .42s cubic-bezier(.2,.8,.25,1) both; animation-delay: calc(var(--d) * 55ms); }
@keyframes pdrop { from { transform: translateY(-16px); opacity: 0; } }
.anim .sunb.rise { animation: sunup 1.3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sunup { from { transform: translateY(90px); } }

/* The flow takes the calculator's place; the drawing stays where it is */
.hero .quote { display: none; min-height: 0; }
html.in-flow .hero .quote { display: block; }
html.in-flow .hero .calc { display: none; }
.q.enter[data-dir="fwd"] > * { animation: qin .28s cubic-bezier(.2,.8,.25,1) both; }
.q.enter[data-dir="back"] > * { animation: qback .28s cubic-bezier(.2,.8,.25,1) both; }
@keyframes qin { from { transform: translateX(28px); opacity: 0; } }
@keyframes qback { from { transform: translateX(-28px); opacity: 0; } }
.q-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: -6px 0 6px; gap: 12px; }
.q-top .back { padding: 8px 0; min-height: 44px; font-weight: 700; font-family: var(--head); }
.q-top .back::before { content: "← "; }
.known { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.known-chip { border: 0; background: #fff; border-radius: var(--r); padding: 6px 10px; min-height: 36px; font: 700 14px/1.2 var(--head); color: var(--ink); cursor: pointer; box-shadow: inset 0 -3px 0 var(--amber); }
.known-chip::after { content: " ✎"; font-weight: 400; }

/* Pictogram tiles: the drawn icon on top, the words under it */
.pic { width: 56px; height: 56px; flex: none; color: var(--ink); --face: #fff; }
.tile.has-pic { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; text-align: center; min-height: 118px; padding: 12px 8px 12px; }
.tile.has-pic .tl { font: 700 15px/1.3 var(--head); }
.tile.has-pic .pic { width: 64px; height: 64px; }
.tile.has-pic .ts { font-size: 13px; }
.tile.has-pic[aria-pressed="true"] { --face: #fff; }
.tile { border-color: #fff; }
.tile:hover { border-color: var(--edge); }
.tile[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--ink); }
.tiles.stack { grid-template-columns: repeat(3, 1fr); }
.tiles.grid { grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
  .hgrid { grid-template-columns: 1fr; grid-template-areas: "text" "stage" "calc"; row-gap: 14px; padding-top: 16px; }
  .hero h1 { font-size: 29px; }
  .hero .lead { font-size: 16px; }
  .drawbox { height: 300px; }
  .tabs { gap: 6px; }
  .tabs button { font-size: 13px; padding: 6px 3px 8px; min-height: 76px; }
  .tabs button .pic { width: 44px; height: 44px; }
  .spec { display: none; }
  .calc, .hero .quote { padding: 16px; }
  .ba .now { font-size: 32px; }
  /* in the flow on a phone, the questions come first and the drawing waits below */
  html.in-flow .hgrid { grid-template-areas: "calc" "stage" "text"; }
  html.in-flow .htext { display: none; }
}
@media (max-width: 520px) {
  .tiles.stack { grid-template-columns: 1fr 1fr; }
  .pic { width: 48px; height: 48px; }
  .tile.has-pic { min-height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise .logo .sunr, .anim .pnl.new, .anim .sunb.rise, .q.enter > * { animation: none !important; }
}
.tile .tl { font: 700 16px/1.35 var(--head); color: var(--ink); margin: 0; }
.tile .ts { font: 400 13px/1.4 var(--body); color: var(--soft); }
.tile span[lang] { display: inline; font: inherit; color: inherit; margin: 0; }
/* in the flow the questions sit right beside the drawing */
html.in-flow .htext { display: none; }
html.in-flow .hgrid { row-gap: 0; }
#quote, [data-hero] { scroll-margin-top: 84px; }
.nw { white-space: nowrap; }
.fullmark em { margin-top: 3px; }
@media (max-width: 520px) { .tile.has-pic .pic { width: 56px; height: 56px; } .drawbox { height: 280px; } }

/* UI icon line weight (round 7): Tabler's 2 px read cheap at large sizes. The stroke is set per size so the
   line on screen stays near 1.3 px, close to the drawn pictograms. stroke-width is in 24-unit icon space. */
.ic { stroke-width: 1.05; }                                   /* 32 px */
.ic.sm { stroke-width: 1.6; }                                 /* 20 px */
.cols3 .ic { stroke-width: 0.8; }                             /* 40 px */
.links-list .ic { stroke-width: 1.3; }                        /* 24 px */
.tile.rows .ic, .elig h3 .ic, .steps3 .ic, .fears h3 .ic { stroke-width: 1.2; }  /* 26 px */
.choice .ic, .elig .tile.rows .ic { stroke-width: 1.4; }      /* 22 px */
.trust3 .ic { stroke-width: 1.05; }

/* Round 7, 3 Dec 2026. Buttons: Jon picked option 4 on brand/v8/buttons.html: the brand amber with warm dark brown
   text (7.5:1). Black buttons and white-on-amber were tried and dropped. */
.btn { background: var(--amber); color: var(--amber-text); }
.btn:hover { background: var(--amber-line); color: var(--amber-text); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Consent tickbox: a white box with a clear black edge that turns amber with a black tick, inside a white card,
   so it is obvious there is something to tick. */
.check.consent { background: #fff; border: 2px solid var(--edge); border-radius: var(--r); padding: 14px; }
.check.consent:has(input:checked) { border-color: var(--ink); }
.has-error .check.consent { border-color: var(--error); }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 1px 0 0; border: 2px solid var(--ink); border-radius: 4px;
  background: #fff; display: grid; place-content: center; cursor: pointer; }
.check input::after { content: ""; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check input:checked { background: var(--amber); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* the flow column is narrow: one contact choice per row, so "LINE (found by this number)" does not wrap into four lines */
.hcalc .choices { grid-template-columns: 1fr; }
.field > label.check { display: flex; gap: 12px; align-items: flex-start; font: 400 15px/1.6 var(--body); margin: 0; }

/* ---- Guide and info pages (round 7, 3 Dec 2026) ----
   Header: crumbs, title, the short answer and the date checked, with the drawn building on the right.
   Body: the text in a reading column, a side column with the bill check and the contents. */
.phead { background: var(--surface); padding: 20px 0 0; margin-bottom: 40px; }
.phead-in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: end; }
.phead .crumbs { padding: 0 0 14px; }
.ptext { padding-bottom: 36px; }
.ptext h1 { font-size: 38px; line-height: 1.3; margin: 0 0 16px; max-width: 18em; }
.phead .answer { background: none; padding: 0; margin: 0 0 16px; font-size: 20px; line-height: 1.65; max-width: 34em; }
.phead .updated { margin: 0; font-size: 15px; }
.part { height: 300px; align-self: end; }
.part svg { width: 100%; height: 100%; display: block; }
.page.guide { padding-top: 0; }
.page { padding-top: 0; }
.pgrid { display: block; }
.pgrid.has-side { display: grid; grid-template-columns: minmax(0, 700px) 280px; gap: 56px; justify-content: space-between; }
.prose > div > h2:first-child, .prose > h2:first-child { margin-top: 0; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; scroll-margin-top: 96px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.pstick { position: sticky; top: 96px; display: grid; gap: 28px; }
.pcheck { background: var(--surface); border-radius: 8px; padding: 18px; }
.pc-h { font: 700 18px/1.35 var(--head); margin: 0 0 4px; }
.pc-s { font-size: 14px; color: var(--soft); margin: 0 0 12px; }
.pc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-tiles a { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 2px solid #fff; border-radius: var(--r);
  padding: 10px 6px; text-decoration: none; color: var(--ink); font: 700 14px/1.3 var(--head); text-align: center; }
.pc-tiles a:hover { border-color: var(--ink); }
.pc-tiles .pic { width: 44px; height: 44px; }
.ptoc ol { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 1.45; }
.ptoc li { margin: 0; }
.ptoc a { display: block; padding: 6px 0 6px 12px; color: var(--soft); text-decoration: none; box-shadow: inset 2px 0 0 var(--rule); }
.ptoc a:hover { color: var(--ink); box-shadow: inset 2px 0 0 var(--amber); }
.cta { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border-radius: 8px; padding: 24px; margin: 48px 0 0; }
.cta .pic { width: 72px; height: 72px; }
.cta h2 { font-size: 22px; margin: 0 0 6px; }
.cta p { margin: 0 0 16px; }
table.facts th { font-weight: 700; color: var(--ink); }
/* Tables with long text in several columns: one block per row on a phone */
@media (max-width: 560px) {
  .pgrid > .prose { min-width: 0; }
  table.facts.wide { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }  /* four columns: the table scrolls, the page doesn't */
  table.facts.wide th, table.facts.wide td { min-width: 140px; }
  table.facts.long thead { display: none; }
  table.facts.long tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.facts.long th, table.facts.long td { display: block; width: auto; padding: 0 0 4px; border: 0; }
  table.facts.long td:last-child { color: var(--soft); font-size: 16px; }
}
@media (max-width: 980px) {
  .phead-in { grid-template-columns: 1fr; }
  .part { height: 220px; max-width: 420px; }
  .ptext { padding-bottom: 8px; }
  .pgrid.has-side { grid-template-columns: 1fr; gap: 32px; }
  .pside { display: none; }   /* on phones the card at the end of the text does the same job */
}
@media (max-width: 520px) {
  .ptext h1 { font-size: 28px; }
  .phead .answer { font-size: 18px; }
  .part { height: 180px; }
  .cta { flex-direction: column; }
}

/* ---- Calculator page (4 Dec 2026): questions left, the answer right ---- */
.ptool { margin-bottom: 56px; }
.phead:has(+ .ptool) .phead-in { grid-template-columns: minmax(0, 860px); }
.phead:has(+ .ptool) h1 { max-width: none; text-wrap: balance; }
[data-calc] { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.cx-form { background: var(--paper); border-radius: var(--r); padding: 20px 22px 4px; }
.cx-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.cx-mode button { min-height: 52px; border: 2px solid #fff; border-radius: var(--r); background: #fff; color: var(--ink); font: 700 17px/1.3 var(--head); cursor: pointer; padding: 8px; }
.cx-mode button:hover { border-color: var(--edge); }
.cx-mode button[aria-pressed="true"] { background: var(--amber-soft); border-color: var(--ink); }
.cx-q { margin-bottom: 24px; }
.cx-l, .cx-sl label, .cx-q.field > label { display: block; font: 700 16px/1.4 var(--head); margin: 0 0 8px; }
.cx-hint { font-size: 14px; line-height: 1.6; color: var(--soft); margin: 8px 0 0; }
.cx-sl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cx-sl output { font: 700 26px/1.1 var(--head); white-space: nowrap; }
.cx-form input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: #DCD6C9; margin: 16px 0 12px; cursor: pointer; touch-action: pan-y; }
.cx-form input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); border: 6px solid var(--amber); cursor: grab; }
.cx-form input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 6px solid var(--amber); cursor: grab; }
.cx-form .tiles.stack { grid-template-columns: repeat(3, 1fr); }
.cx-form .tile.has-pic { min-height: 108px; padding: 10px 4px; }
.cx-form .tile:not(.has-pic) { min-height: 52px; padding: 10px 12px; }
.cx-form [data-v="no"] { grid-column: 1 / -1; }
.cx-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cx-row .cx-l { margin: 0; }
.cx-acs { display: grid; gap: 8px; }
.cx-ac { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.cx-ac label { font-size: 15px; line-height: 1.4; }
.cx-ac select { min-height: 44px; font: 15px/1.3 var(--body); color: var(--ink); background: #fff; border: 2px solid #fff; border-radius: var(--r); padding: 4px 6px; }
.cx-step { display: inline-grid; grid-template-columns: 44px 30px 44px; align-items: center; text-align: center; }
.cx-step b { font: 700 18px/1 var(--head); }
.cx-step button { width: 44px; height: 44px; border: 0; border-radius: var(--r); background: #fff; color: var(--ink); font: 400 24px/1 var(--head); cursor: pointer; }
.cx-step button:hover { background: var(--amber-soft); }
.cx-step button:disabled { color: #b9b2a5; cursor: default; background: #fff; }
.cx-res .cx-step button { background: var(--paper); }
.cx-pool { margin-bottom: 14px; }
.cx-out { scroll-margin-top: 84px; }
.cx-draw { height: 300px; }
.cx-draw svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cx-size { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0 20px; }
.cx-size b { font: 700 24px/1.25 var(--head); }
.cx-size div > b { display: block; }
.cx-size .cx-step b { font-size: 18px; }
.cx-size .btn-plain { display: block; padding: 4px 0; min-height: 32px; font-size: 15px; }
.cx-bill .now { font-size: 44px; }
.cx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 24px 0 32px; }
.cx-facts dt { font-size: 15px; }
.cx-facts dd { margin: 0; font: 700 22px/1.35 var(--head); }
.cx-facts dd.cx-r { font: 400 14px/1.5 var(--body); color: var(--soft); }
.cx-h { font-size: 19px; margin: 0 0 10px; }
.cx-opts { display: grid; gap: 6px; margin-bottom: 32px; }
.cx-o { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 80px; gap: 10px; align-items: center; width: 100%; min-height: 52px; padding: 8px 14px; text-align: right; border: 2px solid var(--paper); border-radius: var(--r); background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--body); cursor: pointer; }
.cx-o .cx-on { text-align: left; font: 700 16px/1.4 var(--head); }
.cx-o:hover { border-color: var(--edge); }
.cx-o[aria-pressed="true"] { border-color: var(--ink); background: var(--amber-soft); }
.cx-head { min-height: 0; padding: 0 16px; background: none; border: 0; font-size: 14px; color: var(--soft); cursor: default; }
.cx-notes { padding-left: 20px; margin-bottom: 20px; }
.cx-notes li { margin-bottom: 10px; }
.cx-use .res-list { background: var(--paper); }
.cx-dock { display: none; }
@media (min-width: 901px) and (min-height: 760px) { .cx-form.fits { position: sticky; top: 92px; } }
@media (max-width: 900px) {
  [data-calc] { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cx-form { padding: 16px 16px 2px; margin: 0 -8px; }
  .cx-draw { height: 240px; }
  .cx-dock:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 20px rgba(30, 25, 15, .12); font-size: 15px; line-height: 1.4; }
  .cx-dock .btn { min-height: 44px; padding: 8px 18px; font-size: 16px; }
}
@media (max-width: 520px) {
  .cx-ac { grid-template-columns: 1fr auto; }
  .cx-ac label { grid-column: 1 / -1; margin-bottom: -6px; }
  .cx-ac select { width: 100%; }
  .cx-o { grid-template-columns: repeat(3, 1fr); gap: 2px 8px; padding: 10px 12px; text-align: left; }
  .cx-o .cx-on { grid-column: 1 / -1; }
  .cx-head { padding: 0 14px; }
  .cx-head > span:first-child { display: none; }
  .cx-facts { gap: 18px 14px; }
  .cx-facts dd { font-size: 19px; }
}
.res-list .rng { display: block; font: 400 14px/1.5 var(--body); color: var(--soft); }

/* "How did you find us" on the contact step: optional, so it stays small */
.choices.found { grid-template-columns: 1fr 1fr; }
.found .choice { position: relative; min-height: 48px; padding: 6px 12px; font-size: 16px; line-height: 1.3; }
.found .choice input { position: absolute; opacity: 0; }
.found .choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
