/* SambalRojak.com -- site styles.
   Colours: cobalt / snow / acid lime, see README.md "Brand" (was the Hibiscus
   palette until 2026-11-21). Light mode: a white page under a cobalt top bar,
   cobalt for accents, lime only where it sits on cobalt or navy, or carries
   navy text (it is unreadable on white). Dark mode: a navy page, lime accents.
   Text inside cards, forms and results uses the --c-* tokens (see CARD
   CONTEXT below); in light mode they match the page, in dark mode too.
   Light mode is the default; dark mode follows the device unless the
   visitor picks one with the theme button (html[data-theme]). */

:root {
  --cobalt: #2A44E0;               /* 60%: the page, the top bar */
  --snow: #F4F4F0;                 /* 30%: text on cobalt, the panels */
  --lime: #D6FF3D;                 /* 10%: the one "look here" colour; never on white (1.2:1) */
  --navy: #13208A;                 /* text on lime, the verdict bar, the footer's family */
  --ink: #0E1A5C;                  /* body text on white */
  --line: #D3D8F2;

  /* the page (white, since 2026-11-21: Suresh, "white as the primary background") */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #E9ECFB;
  --text: var(--ink);
  --text-2: #4B57A8;               /* 6.4:1 on white */
  --border: var(--line);
  --accent: var(--cobalt);
  --accent-text: var(--cobalt);    /* links on white, 7:1 */
  --frame: var(--cobalt);          /* the result box's edge */
  --hl: var(--cobalt);             /* the highlighted words in a heading */
  --good: #1F7A4D;
  --bad: #B3121F;
  --focus: var(--cobalt);
  /* inside the white panels (CARD CONTEXT) */
  --c-text: var(--ink);
  --c-text-2: #4B57A8;             /* 6.4:1 on white */
  --c-border: var(--line);
  --c-surface-2: #E9ECFB;
  --c-field: #F7F8FE;
  --c-accent-text: var(--cobalt);  /* 7:1 on white */
  --c-good: #1F7A4D;
  --c-bad: #B3121F;
  --c-focus: var(--cobalt);
  --bar-a: #8A93C9;
  --bar-b: var(--cobalt);

  /* Sora has Latin glyphs only; Chinese and Tamil glyphs fall through to the
     language's Noto font, set per page as --font-lang (with a trailing comma). */
  --font: "Sora", var(--font-lang,) system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --gutter: 16px;
  color-scheme: light;
}

/* Fonts for scripts Sora lacks (the trailing comma is deliberate: see --font). */
html[data-lang="zh"] { --font-lang: "Noto Sans SC",; }
html[data-lang="ta"] { --font-lang: "Noto Sans Tamil",; }
/* Spaced-out capitals suit Latin labels only: spacing splits Tamil letters apart. */
html[data-lang="zh"] .label, html[data-lang="ta"] .label,
html[data-lang="zh"] .cols-head span, html[data-lang="ta"] .cols-head span,
html[data-lang="zh"] .cmp thead th, html[data-lang="ta"] .cmp thead th { letter-spacing: 0; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1240;
    --surface: #151F5C;
    --surface-2: #1E2A70;
    --text: var(--snow);
    --text-2: #B9C3FF;
    --border: #2C3A8C;
    --accent-text: var(--lime);
    --good: #7FE3B0;
    --bad: #FFC9C0;
    --focus: var(--lime);
    --frame: var(--lime); --hl: var(--lime);
    --c-text: var(--snow); --c-text-2: #B9C3FF; --c-border: #2C3A8C; --c-surface-2: #1E2A70;
    --c-field: #0B1240; --c-accent-text: var(--lime); --c-good: #7FE3B0; --c-bad: #FFC9C0; --c-focus: var(--lime);
    --bar-a: #8A93C9;
    --bar-b: var(--lime);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1240;
  --surface: #151F5C;
  --surface-2: #1E2A70;
  --text: var(--snow);
  --text-2: #B9C3FF;
  --border: #2C3A8C;
  --accent-text: var(--lime);
  --good: #7FE3B0;
  --bad: #FFC9C0;
  --focus: var(--lime);
  --frame: var(--lime); --hl: var(--lime);
  --c-text: var(--snow); --c-text-2: #B9C3FF; --c-border: #2C3A8C; --c-surface-2: #1E2A70;
  --c-field: #0B1240; --c-accent-text: var(--lime); --c-good: #7FE3B0; --c-bad: #FFC9C0; --c-focus: var(--lime);
  --bar-a: #8A93C9;
  --bar-b: var(--lime);
  color-scheme: dark;
}

/* CARD CONTEXT: white panels on the cobalt page switch to dark-on-white tokens. */
.tool-card, .wizard > form, .wz-result, .results, .contact-form.wz-card, .promise li,
.langs-menu, .ad-slot a.ad, .callout, .r-advice, .seg {
  --text: var(--c-text); --text-2: var(--c-text-2); --border: var(--c-border);
  --surface-2: var(--c-surface-2); --bg: var(--c-field); --accent-text: var(--c-accent-text);
  --good: var(--c-good); --bad: var(--c-bad); --focus: var(--c-focus);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: 20px; padding-bottom: 40px; }
img { max-width: 100%; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- top bar ---------- */
.topbar { background: var(--cobalt); color: var(--snow); border-bottom: 1px solid rgba(244,244,240,.2); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--snow); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: block; }
.brand-word { font-family: "Sora", system-ui, sans-serif; font-size: 22px; letter-spacing: -0.01em; line-height: 1; }
.brand-word .w1 { font-weight: 700; }
.brand-word .w2 { font-weight: 300; }
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.langs { position: relative; }
.langs summary, .theme-btn {
  list-style: none; cursor: pointer; color: var(--snow);
  border: 1px solid rgba(244,244,240,.45); background: transparent;
  border-radius: 999px; padding: 6px 12px; font: 500 14px/1.2 var(--mono);
  min-height: 40px; display: flex; align-items: center; gap: 6px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11,18,64,.3); padding: 6px; min-width: 170px;
  display: flex; flex-direction: column;
}
.langs-menu a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-family: var(--font); }
.langs-menu a[lang="zh-Hans-MY"] { font-family: "Noto Sans SC", var(--font); }
.langs-menu a[lang="ta-MY"] { font-family: "Noto Sans Tamil", var(--font); }
.langs-menu a:hover { background: var(--surface-2); }
.langs-menu a[aria-current] { font-weight: 700; background: var(--surface-2); }
.theme-btn { width: 40px; justify-content: center; padding: 0; font-size: 18px; }
.theme-btn span { display: none; }
:root:not([data-theme]) .theme-btn .i-auto,
:root[data-theme="light"] .theme-btn .i-light,
:root[data-theme="dark"] .theme-btn .i-dark { display: inline; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 700; margin: 8px 0 10px; }
h2 { font-size: 21px; font-weight: 600; margin: 28px 0 10px; }
h3 { font-size: 17px; font-weight: 600; margin: 18px 0 6px; }
.lede { font-size: 18px; color: var(--text-2); margin: 0 0 20px; max-width: 46em; }
.label { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--text-2); }
.prose { max-width: 46em; }
.prose p, .prose li { color: var(--text); }

/* ---------- home ---------- */
.hero { padding: 12px 0 8px; }
.hero h1 span { color: var(--hl); }
.tool-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 16px; }
/* Each group of tools is its own panel, so "job offer" and "buying a home" read as separate sections. */
.tool-group { margin-top: 24px; padding: 18px 16px 16px; background: var(--surface-2); border-top: 4px solid var(--cobalt);
              border-radius: 4px 4px var(--radius) var(--radius); }
.tool-group + .tool-group { margin-top: 28px; }
:root[data-theme="dark"] .tool-group { border-top-color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tool-group { border-top-color: var(--lime); } }
.tool-group h2 { margin: 0 0 4px; font-size: 22px; }
.tool-group-desc { color: var(--text-2); margin: 0; max-width: 46em; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool-card {
  display: flex; gap: 14px; align-items: flex-start; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
a.tool-card:hover { border-color: var(--frame); transform: translateY(-1px); }
.tool-card.is-soon { opacity: .7; padding-top: 34px; }   /* room for the Soon badge */
.tool-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--cobalt); color: var(--lime); display: grid; place-items: center; font-size: 22px; }
.tool-icon svg { width: 24px; height: 24px; display: block; }   /* one-colour line icons (img/icons), lime on cobalt */
.tool-text { display: flex; flex-direction: column; gap: 2px; }
.tool-text strong { font-size: 17px; }
.tool-text span { color: var(--text-2); font-size: 15px; }
.badge { position: absolute; top: 12px; right: 12px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: var(--surface-2); color: var(--text-2); padding: 5px 8px; border-radius: 999px; }
.promise { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise li { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; font-size: 15px; }
.promise strong { display: block; margin-bottom: 2px; }

/* The hidden attribute always wins (.sticky-sum's display: flex used to beat it). */
[hidden] { display: none !important; }

/* ---------- the tools' questions: one form, all on one page ---------- */
.wizard { margin: 8px 0 20px; scroll-margin-top: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.seg button { min-height: 44px; padding: 8px 10px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 14px/1.2 var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--cobalt); color: var(--snow); }
.wizard > form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; }
.wz-card { padding: 18px 0; border-top: 1px solid var(--border); scroll-margin-top: 56px; }
.wizard > form > .wz-card:first-of-type { border-top: 0; }
.wz-q { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.wz-card h2[tabindex="-1"]:focus, .wz-result h2[tabindex="-1"]:focus { outline: none; }   /* focused by script, not by the visitor */
.wz-result { background: var(--surface); border: 3px solid var(--frame); border-radius: var(--radius); padding: 18px 16px 16px; margin-top: 20px; scroll-margin-top: 12px; }
.wz-result > h2 { margin: 0 0 8px; }
.wz-result .results { border: 0; padding: 0; margin: 0; background: none; }
.card-hint { color: var(--text-2); font-size: 15px; margin: 0 0 10px; }
/* the contact form: one card, with its button row and error line */
.contact-form.wz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px 16px; box-shadow: 0 1px 0 var(--border); }
.wz-nav { display: flex; gap: 10px; margin-top: 16px; }
.wz-nav .btn { flex: 1; }
.wz-nav .btn:only-child { flex: 0 1 50%; margin-left: auto; }
.wz-error { color: var(--bad); font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: 600 15px/1.3 var(--font); color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
/* "Current job / New offer": stays at the top of the screen over the whole
   form, as two labels coloured like the boxes under them (grey / red edge),
   so it is always clear which side is which (2026-11-20). */
.cols-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: sticky; top: 0; z-index: 2;
             background: var(--surface); padding: 10px 0; margin: 0 0 4px; box-shadow: 0 8px 8px -8px rgba(0,0,0,.35); }
.cols-head span { display: block; text-align: center; padding: 7px 8px; border-radius: 999px;
                  font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em;
                  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.cols-head span.b { background: var(--cobalt); color: var(--snow); border-color: var(--cobalt); }
.row { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.row:last-child { border-bottom: 0; }
.row > label, .row > .row-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.row .help { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 400; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.single { max-width: calc(50% - 5px); }
/* A one-box answer sits under the job it belongs to (cards.js "side"): left, right, or full width for both. */
.single.b { margin-left: calc(50% + 5px); }
.single.both { max-width: none; }
.single.b .field input { border-color: rgba(42,68,224,.55); }   /* edged like the right-hand box of a pair */
.field { position: relative; display: flex; align-items: center; }
.field .unit { position: absolute; left: 10px; font: 500 13px/1 var(--mono); color: var(--text-2); pointer-events: none; }
.field .unit.r { left: auto; right: 10px; }
.field input, .field select {
  width: 100%; min-height: 46px; font: 500 16px/1.2 var(--mono); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 10px 10px 38px; appearance: none; -moz-appearance: textfield;
}
.field input.no-unit, .field select { padding-left: 10px; }
.field input.has-r { padding-right: 46px; }
.field input:focus, .field select:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(42,68,224,.25); }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pair .field:nth-child(2) input { border-color: rgba(42,68,224,.55); }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 44px; }
/* A choice (cards.js kind "choice"): radio buttons drawn as buttons; the picked one is cobalt. */
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
              border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text);
              font: 600 15px/1.2 var(--font); cursor: pointer; }
.choice-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-opt:has(input:checked) { background: var(--cobalt); color: var(--snow); border-color: var(--cobalt); }
.choice-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.check input { width: 22px; height: 22px; accent-color: var(--cobalt); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--lime); color: var(--navy); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn-row.minor { gap: 4px 20px; margin-top: -6px; }

/* ---------- results ---------- */
.results { background: var(--surface); border: 3px solid var(--frame); border-radius: var(--radius); padding: 16px; margin: 20px 0; }
.verdict { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 4px 0 6px; }
.verdict .up { color: var(--good); }
.verdict .down { color: var(--bad); }
.verdict-sub { color: var(--text-2); margin: 0 0 12px; }
.headline-vs-real { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.stat .num { font: 600 22px/1.2 var(--mono); display: block; margin-top: 4px; }
.headline-vs-real.quad { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .headline-vs-real.quad { grid-template-columns: repeat(4, 1fr); } }
.drivers li.total { font-weight: 700; border-top: 2px solid var(--text); border-bottom: 0; }
.r-why p { margin: 6px 0; }
.factors { margin: 6px 0 0; padding-left: 20px; }
.factors li { margin: 0 0 8px; font-size: 15px; color: var(--text-2); }
.cmp { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.cmp th, .cmp td { padding: 9px 4px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); }
.cmp td.n { font-family: var(--mono); white-space: nowrap; }
.cmp tr.total td { font-weight: 700; border-top: 2px solid var(--text); }
.cmp .d.up { color: var(--good); }
.cmp .d.down { color: var(--bad); }
.cmp .sub { display: block; font-size: 12px; color: var(--text-2); font-weight: 400; }
.bars { margin: 16px 0 4px; display: grid; gap: 10px; }
.bar-row .bar-label { font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.bar-track { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; margin-top: 3px; }
.bar { height: 100%; border-radius: 7px; background: var(--bar-a); transition: width .3s; }
.bar.b { background: var(--bar-b); }
.drivers { margin: 12px 0 0; padding: 0; list-style: none; }
.drivers li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.drivers .n { font-family: var(--mono); white-space: nowrap; }
.drivers .up { color: var(--good); }
.drivers .down { color: var(--bad); }
.note { font-size: 13px; color: var(--text-2); }

.sticky-sum {
  position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter));
  background: var(--navy); color: var(--snow); padding: 10px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 15px;
}
.sticky-sum .link-btn { color: var(--lime); white-space: nowrap; padding: 4px 0; min-height: 36px; }
.sticky-sum .n { font: 600 17px/1.2 var(--mono); }
.sticky-sum .n.up { color: #7FE3B0; }
.sticky-sum .n.down { color: #FFC9C0; }
@media (min-width: 900px) { .sticky-sum { border-radius: 12px; margin: 0; } }

/* ---------- ads ---------- */
.ad-slot { margin: 20px 0; }
.ad-slot .ad-label { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .2em; color: var(--text-2); margin-bottom: 6px; display: block; }
.ad-slot a.ad { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; color: var(--text); text-decoration: none; }
.ad-slot a.ad img { width: 100%; height: auto; border-radius: 10px; display: block; }
.ad-slot a.ad.text { flex-direction: column; align-items: flex-start; gap: 4px; }
.ad-slot a.ad.text { border-left: 4px solid var(--cobalt); padding: 14px 16px; }
.ad-slot a.ad.text:hover { border-color: var(--cobalt); }
.ad-slot a.ad.text strong { font-size: 17px; }
.ad-slot a.ad.text span { color: var(--text-2); font-size: 15px; }
.ad-slot a.ad.text .ad-cta { color: var(--accent-text); font-weight: 600; font-size: 15px; margin-top: 4px; }
.site-footer .ad-slot a.ad { background: rgba(244,244,240,.06); border-color: rgba(244,244,240,.2); color: var(--snow); }
.site-footer .ad-slot a.ad.text span, .site-footer .ad-slot .ad-label { color: #B9C3FF; }
.site-footer .ad-slot a.ad.text .ad-cta { color: var(--lime); }

/* ---------- machine-translation notice (ms, zh, ta until checked) ---------- */
.mt-notice { background: var(--lime); color: var(--navy); border-bottom: 3px solid var(--navy); }
.mt-inner { padding-top: 12px; padding-bottom: 12px; }
.mt-notice p { margin: 0; }
.mt-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.mt-icon { font-size: 18px; line-height: 1; }
.mt-body { font-size: 15px; margin-top: 4px !important; }
.mt-en { font-size: 13px; margin-top: 4px !important; opacity: .85; font-style: italic; }
.mt-links { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 4px !important; }
.mt-links a { color: var(--navy); font-weight: 700; text-underline-offset: 3px; padding: 8px 0; display: inline-block; }
.mt-notice a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--snow); padding: 24px 0 28px; }
:root[data-theme="dark"] .site-footer { background: #070C2E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #070C2E; } }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.owner-line { display: flex; align-items: center; gap: 12px; color: var(--snow); text-decoration: none; font-weight: 600; }
.owner-line img { flex: 0 0 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--snow); font-size: 15px; padding: 6px 0; }
.fine { margin: 0; color: #B9C3FF; font-size: 13px; }
.gold-dot { color: var(--lime); }   /* the domain dot (class name kept) */

/* ---------- about ---------- */
.owner-badge { display: block; width: 72px; height: 72px; margin: 4px 0 14px; }
.callout { background: var(--surface-2); border-left: 4px solid var(--cobalt); border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 16px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.print-only { display: none; }
/* Contact form */
.contact-form { max-width: 40em; }
.contact-form .row > label { display: block; font-weight: 600; margin-bottom: 4px; }
.contact-form textarea { width: 100%; min-height: 160px; font: 400 16px/1.5 var(--font); color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px; resize: vertical; }
.contact-form textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(42,68,224,.25); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* bots fill it, people never see it */
/* Articles (src/articles/*.md) and their list / "Read more" */
.art-meta { font: 400 13px/1.4 var(--mono); color: var(--text-2); margin: -4px 0 24px; }
.article h2 { margin-top: 32px; }
.article .btn-row { margin-top: 28px; }
.art-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.art-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.art-list a { font-weight: 600; font-size: 17px; color: var(--text); }
.art-tool { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .15em; color: var(--text-2); }
.art-desc { color: var(--text-2); font-size: 15px; }
.en-tag { font: 500 11px/1 var(--mono); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; color: var(--text-2); white-space: nowrap; justify-self: start; }
.related { max-width: 46em; margin: 32px 0; }
/* Home: "Read first", the articles (sits in a .tool-group panel like the tool groups) */
.art-teaser-list { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 0; }
.art-teaser-list li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--border); }
.art-teaser-list li:first-child { border-top: 0; padding-top: 4px; }
.art-teaser-list a { font-weight: 600; font-size: 16px; color: var(--text); }
.art-teaser .btn { margin-top: 4px; }
/* Comments (comments.js, src/root/comments.php) */
.comments { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 8px; }
.comment-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.comment { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 4px; }
.comment-head { margin: 0 0 6px; font-size: 15px; }
.comment-head time { font: 400 13px/1 var(--mono); color: var(--text-2); }
.comment-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-report { font-size: 13px; font-weight: 500; color: var(--text-2); min-height: 36px; padding: 6px 0; }
.comment-form { max-width: 40em; display: grid; gap: 6px; }
.comment-form label { font-weight: 600; margin-top: 8px; }
.comment-form input, .comment-form textarea { width: 100%; font: 400 16px/1.5 var(--font); color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(42,68,224,.25); }
.comment-msg { min-height: 1.5em; font-weight: 600; }
.turnstile-box { min-height: 65px; margin-top: 8px; }
.manage { padding-block: 24px 48px; }
.manage-text { white-space: normal; overflow-wrap: anywhere; }
/* "Try an example": an unmistakable banner while the made-up figures are in use */
.wz-example { background: var(--lime); color: var(--navy); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.wz-example p { margin: 0 0 10px; font-size: 15px; }
.wz-example strong { text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.wz-example .x-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-example .btn:not(.primary) { background: var(--snow); color: var(--navy); border-color: var(--navy); }
.file-msg { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--good); }
.file-msg.bad { color: var(--bad); }
.r-advice { background: var(--surface-2); border-left: 4px solid var(--cobalt); border-radius: 0 12px 12px 0; padding: 12px 14px; margin: 16px 0 8px; }
.r-advice strong { display: block; margin-bottom: 2px; }
.r-advice p { margin: 0; font-size: 15px; }
.answers { margin-top: 16px; }
.answers > summary { cursor: pointer; font-weight: 600; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.answers td.both { text-align: right; color: var(--text-2); }

/* Print = "Save as PDF": a light, compact report, one A4 page for a usual
   comparison: the result across the top, then the breakdown (left) and
   "Your answers" (right), then "facts, not advice" and the disclaimer.
   The bars are left out: the same figures are in the breakdown. */
/* ---------- Rivers and rain now (/<lang>/flood/, flood-ui.js) ----------
   A band is always its word as well as its colour. The pill colours are fixed
   pairs (each 4.5:1 or better), the same in light and dark themes. */
/* ---- flood page (Rivers and rain now). Brand colours, bright (Suresh, 2026-11-22):
   the levels step up the brand's own blues (normal snow, alert light blue, warning
   cobalt) and only danger leaves the palette, a bright red, so it reads as danger at a
   glance; lime is the "look here" colour: the notice and the headline figures. Trend
   (Suresh, 2026-11-22): rising red, falling green (rising #B3121F on #FFE1E5 6.0:1,
   falling #146B40 on #D9F7E6 6.1:1). Every column but the station name is centred.
   Contrast: alert navy on #8FA0FF 5.7:1, warning white on cobalt 7.5:1, danger white
   on #E8112D 4.7:1, notice navy on lime 12:1. */
:root { --fl-danger: #E8112D; --fl-warning: var(--cobalt); --fl-alert: #8FA0FF; --fl-normal: var(--snow); }
.callout.fl-notice { background: var(--lime); color: var(--navy); border-left: 6px solid var(--navy); font-size: 15px; }
.callout.fl-notice a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.fl-head { background: var(--cobalt); color: var(--snow); border-radius: var(--radius); padding: 18px 16px; margin: 20px 0; }
.fl-head.fl-danger { box-shadow: inset 0 6px 0 var(--fl-danger); }
.fl-updated { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: #C9D1FF; margin: 0; }
html[data-lang="zh"] .fl-updated, html[data-lang="ta"] .fl-updated { letter-spacing: 0; text-transform: none; }
.fl-big { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 6px 0 12px; color: #FFFFFF; }
.fl-big-n { color: var(--lime); }
.fl-counts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fl-counts li { background: var(--navy); border-radius: 12px; padding: 10px; border-top: 5px solid transparent; }
.fl-counts li.fl-danger { border-top-color: var(--fl-danger); }
.fl-counts li.fl-warning { border-top-color: #6F86FF; }
.fl-counts li.fl-alert { border-top-color: var(--fl-alert); }
.fl-counts .n { display: block; font: 700 24px/1.2 var(--mono); color: var(--lime); }
.fl-count-label { color: var(--snow); font-size: 13px; }
.fl-rising-note { display: inline-block; background: #FFE1E5; color: #B3121F; font-weight: 700; border-radius: 999px; padding: 5px 12px; margin: 0 0 8px; }
.fl-rain, .fl-unavail { margin: 0 0 4px; color: var(--snow); }
.fl-unavail { color: #C9D1FF; }
.fl-of { margin: 4px 0 0; font-size: 13px; color: #C9D1FF; }
.fl-band { display: inline-block; font: 700 12px/1 var(--font); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.fl-band.fl-danger { background: var(--fl-danger); color: #FFFFFF; }
.fl-band.fl-warning { background: var(--fl-warning); color: #FFFFFF; }
.fl-band.fl-alert { background: var(--fl-alert); color: var(--navy); }
.fl-band.fl-normal { background: var(--fl-normal); color: #4B57A8; border: 1px solid var(--line); }
.fl-band.fl-none { background: transparent; color: var(--text-2); border: 1px dashed var(--border); }
.fl-table-wrap { overflow-x: auto; background: var(--surface); border: 2px solid var(--cobalt); border-radius: 12px; margin: 8px 0; }
.fl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fl-table th, .fl-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.fl-table td:first-child { text-align: left; }
.fl-table .num { font-family: var(--mono); }
.fl-table thead th { background: var(--cobalt); padding: 0; border-bottom: 0; }
.fl-table tbody tr:nth-child(even) td { background: #F5F7FF; }
.fl-table tbody tr:last-child td { border-bottom: 0; }
.fl-table tbody tr td:first-child { box-shadow: inset 5px 0 0 transparent; padding-left: 12px; }
.fl-table tbody tr.fl-row-danger td:first-child { box-shadow: inset 5px 0 0 var(--fl-danger); }
.fl-table tbody tr.fl-row-warning td:first-child { box-shadow: inset 5px 0 0 var(--fl-warning); }
.fl-table tbody tr.fl-row-alert td:first-child { box-shadow: inset 5px 0 0 var(--fl-alert); }
.fl-graph { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fl-graph:hover { text-decoration-thickness: 2px; }
.fl-graph-ic { font-size: 12px; }
.fl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fl-filterbox { margin: 8px 0 10px; }
/* Both boxes drawn by us (appearance: none), the same height and on one line: Safari
   otherwise draws the select shorter than the search box (Suresh, 2026-11-22). The
   select's arrow is two gradients, so no image (the CSP allows none inline). */
.fl-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
@media (max-width: 560px) { .fl-filters { grid-template-columns: minmax(0, 1fr); } }
.fl-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fl-field label { font: 600 13px/1.2 var(--font); color: var(--text); }
.fl-field input, .fl-field select { -webkit-appearance: none; appearance: none; margin: 0; font: 15px/1.2 var(--font); color: var(--text);
  background-color: var(--surface); border: 2px solid var(--cobalt); border-radius: 10px; padding: 0 12px; width: 100%;
  box-sizing: border-box; height: 46px; }
.fl-field select { padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cobalt) 50%), linear-gradient(135deg, var(--cobalt) 50%, transparent 50%);
  background-position: right 19px center, right 13px center; background-size: 6px 6px; background-repeat: no-repeat; }
:root[data-theme="dark"] .fl-field select { background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fl-field select { background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); } }
.fl-field input:focus-visible, .fl-field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.fl-clear { font: 600 14px/1 var(--font); background: var(--lime); color: var(--navy); border: 0; border-radius: 999px; padding: 0 14px; height: 32px; cursor: pointer; }
.fl-countrow { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; min-height: 32px; }
.fl-clear[hidden] { display: none; }
.fl-count { margin: 0; font-size: 13px; color: var(--text-2); }
.fl-table td.fl-empty { text-align: center; padding: 18px; color: var(--text-2); }
.fl-sorthint { font-size: 13px; color: var(--text-2); margin: 0 0 6px; }
.fl-table td.nowrap { white-space: nowrap; }
.fl-sort { all: unset; box-sizing: border-box; display: flex; gap: 6px; align-items: center; width: 100%; justify-content: center; padding: 10px 10px; cursor: pointer;
  font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--snow); white-space: nowrap; }
.fl-table th:first-child .fl-sort { justify-content: flex-start; }
.fl-sort:hover { background: var(--navy); }
.fl-sort:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.fl-sort-ind { color: #C9D1FF; font-size: 10px; }
.fl-table th[aria-sort="ascending"] .fl-sort, .fl-table th[aria-sort="descending"] .fl-sort { color: var(--lime); }
.fl-table th[aria-sort="ascending"] .fl-sort-ind, .fl-table th[aria-sort="descending"] .fl-sort-ind { color: var(--lime); }
html[data-lang="zh"] .fl-sort, html[data-lang="ta"] .fl-sort { letter-spacing: 0; text-transform: none; font-family: var(--font); font-size: 12px; }
.fl-trend { white-space: nowrap; font-weight: 600; display: inline-block; padding: 4px 9px; border-radius: 999px; }
.fl-trend-rising { background: #FFE1E5; color: #B3121F; }
.fl-trend-falling { background: #D9F7E6; color: #146B40; }
.fl-trend-steady, .fl-trend-none { color: var(--text-2); font-weight: 400; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fl-table tbody tr:nth-child(even) td { background: #1A2566; }
  :root:not([data-theme="light"]) .fl-trend-rising { background: #5A1020; color: #FFB3BD; }
  :root:not([data-theme="light"]) .fl-trend-falling { background: #0F4A2E; color: #8FF0BE; }
}
:root[data-theme="dark"] .fl-table tbody tr:nth-child(even) td { background: #1A2566; }
:root[data-theme="dark"] .fl-trend-rising { background: #5A1020; color: #FFB3BD; }
:root[data-theme="dark"] .fl-trend-falling { background: #0F4A2E; color: #8FF0BE; }
/* "Get alerts on Telegram" (2026-11-23): a cobalt card like the headline, lime button. */
.fl-tg { background: var(--cobalt); color: var(--snow); border-radius: var(--radius); padding: 18px 16px; margin: 24px 0; }
.fl-tg h2 { color: var(--snow); margin: 0 0 8px; }
.fl-tg p { margin: 0 0 12px; }
.fl-tg p:last-child { margin: 0; }
.fl-tg .fl-tg-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.fl-tg .fl-tg-web { font-size: 0.9em; }
.fl-tg .fl-tg-web a { color: var(--snow); text-decoration: underline; }
.fl-tg .fl-tg-web a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #E9ECFB; --text: #0E1A5C; --text-2: #4B57A8;
    --border: #D3D8F2; --accent-text: #2A44E0; --good: #1F7A4D; --bad: #B3121F;
    --c-text: #0E1A5C; --c-text-2: #4B57A8; --c-border: #D3D8F2; --c-surface-2: #E9ECFB; --c-field: #FFFFFF;
    --c-accent-text: #2A44E0; --c-good: #1F7A4D; --c-bad: #B3121F;
    --bar-a: #8A93C9; --bar-b: #2A44E0; color-scheme: light;
  }
  @page { size: A4; margin: 10mm 11mm; }
  body { background: #FFFFFF; font-size: 9pt; line-height: 1.35; }
  .topbar, .site-footer, .mt-notice .mt-links, .sticky-sum, .ad-slot, .btn-row, .skip, .bars { display: none !important; }
  .comments, .related { display: none !important; }
  main > :not(.wizard) { display: none !important; }          /* intro, tabs, how-it-works */
  main { padding: 0 !important; }
  .wrap { padding-left: 0; padding-right: 0; max-width: none; }
  .wizard > :not(.wz-result), .wz-example, .wz-result > .note, .file-msg { display: none !important; }   /* > : the disclaimer inside the result stays */
  .wizard { margin: 0; }
  .wz-result { display: block !important; border: 0 !important; padding: 0; margin: 0; box-shadow: none; animation: none; }
  .wz-result > h2 { margin: 0 0 2px; }
  .print-only { display: block; }
  .print-head { display: flex; align-items: center; gap: 6px; font-size: 9pt; color: var(--text-2);
                border-bottom: 1.5pt solid var(--cobalt); padding-bottom: 4px; margin: 0 0 8px; }
  .print-head img { width: 18px; height: 18px; }
  .print-head .x-print { font-weight: 700; color: var(--bad); text-transform: uppercase; }
  .print-head .x-print[hidden] { display: none; }
  .mt-notice { background: none; border: 0.75pt solid #000; border-radius: 4px; margin-bottom: 6px; }
  .mt-notice .mt-inner { padding: 3px 8px; }
  .mt-head { font-size: 8.5pt; } .mt-body, .mt-en { display: none !important; }   /* print: the notice's heading line is enough */

  .wz-results { display: grid; grid-template-columns: 1fr 1fr; column-gap: 7mm;
    grid-template-areas: "top top" "detail answers" "why answers" "factors factors" "advice advice" "disc disc";
    grid-template-rows: auto auto 1fr auto auto auto;   /* the tall answers column stretches the "why" row, not the breakdown's */
    align-items: start; }
  .r-top { grid-area: top; } .r-detail { grid-area: detail; } .r-why { grid-area: why; }
  .answers { grid-area: answers; margin: 0 !important; } .r-advice { grid-area: advice; } .r-factors { grid-area: factors; } .r-disc { grid-area: disc; }
  .verdict { font-size: 14pt; margin: 0 0 1px; }
  .headline-vs-real.quad { grid-template-columns: repeat(4, 1fr); gap: 3mm; }
  .headline-vs-real.quad .stat { display: block; }
  .headline-vs-real.quad .stat .label, .headline-vs-real.quad .stat .num { display: block; }
  .verdict-sub { margin: 0 0 4px; font-size: 9pt; }
  .headline-vs-real { margin: 4px 0; gap: 5mm; }
  .stat { padding: 4px 8px; border-radius: 6px; display: flex; justify-content: space-between; align-items: baseline; }
  .stat .num { font-size: 12pt; margin: 0; display: inline; }
  .r-top .note { margin: 2px 0 0; }
  .label { font-size: 7pt; }
  h3 { font-size: 10pt; margin: 8px 0 3px; break-after: avoid; }
  .answers > summary { pointer-events: none; padding: 0; min-height: 0; margin: 8px 0 3px; font-size: 10pt; font-weight: 600; }
  .answers > summary::marker, .answers > summary::-webkit-details-marker { content: ""; display: none; }
  .cmp { font-size: 8pt; margin-top: 0; }
  .cmp th, .cmp td { padding: 2.5px 3px; }
  .cmp thead th { font-size: 6.5pt; }
  .cmp .sub { font-size: 7pt; }
  .drivers li { padding: 2px 0; font-size: 8.5pt; }
  .factors { margin-top: 2px; columns: 2; column-gap: 7mm; }
  .factors li { break-inside: avoid; }
  .factors li { margin: 0 0 1px; font-size: 7.5pt; line-height: 1.3; }
  .answers .cmp { font-size: 7.5pt; }
  html[data-lang="ta"] body { font-size: 8.5pt; }                 /* Tamil script runs wider */
  html[data-lang="ta"] .cmp, html[data-lang="ta"] .factors li { font-size: 7pt; }
  html[data-lang="ta"] .verdict { font-size: 12pt; }
  html[data-lang="ta"] .r-top .note, html[data-lang="ta"] .r-detail > .note, html[data-lang="ta"] .r-disc { font-size: 7pt; }
  .answers .cmp td, .answers .cmp th { padding: 1.5px 3px; }   /* long answer lists (Malaysia or Singapore) stay on one page */
  .r-detail > .note { font-size: 7.5pt; margin: 4px 0 0; }
  .r-advice { margin: 8px 0 4px; padding: 5px 9px; border-radius: 0 6px 6px 0; }
  .r-advice p { font-size: 8.5pt; }
  .r-disc { font-size: 7.5pt; margin: 2px 0 0; }
  .stat, .r-advice { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cmp tr, .drivers li, .r-advice { break-inside: avoid; }
}
