/* toiletbowl.sg */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ground: #eef1f0;
  --surface: #ffffff;
  --ink: #14283b;
  --ink-2: #44566a;
  --line: #cdd5d3;
  --accent: #1658c4;
  --accent-soft: #e6eefb;
  --wa: #0e7a45;
  --wa-dark: #0a5f35;
  --ok-bg: #e2f3e9;
  --ok-fg: #0b5a33;
  --warn-bg: #fff0d9;
  --warn-fg: #7a4100;
  --mute-bg: #e9edec;
  --tile: 24px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #0f3f8f; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.vh:focus { position: static; width: auto; height: auto; clip: auto; display: inline-block; padding: 10px 16px; background: var(--surface); }

h1, h2, h3 { font-stretch: 78%; font-weight: 750; line-height: 1.08; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.mark { font-stretch: 78%; font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.mark svg { width: 26px; height: 26px; }
.mark b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 550; font-size: 0.95rem; text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--accent); text-decoration: underline; }

.demo-bar { background: var(--warn-bg); color: var(--warn-fg); font-weight: 600; font-size: 0.92rem; }
.demo-bar .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; }
.demo-bar a { color: var(--warn-fg); }

/* hero + finder */
.hero { padding: 28px 0 8px; }
.hero p.lede { margin-top: 12px; font-size: 1.1rem; color: var(--ink-2); max-width: 36em; }
.finder { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
@media (min-width: 900px) { .finder { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.finder-qs { padding: 20px 16px 22px; display: grid; gap: 22px; align-content: start; }
@media (min-width: 720px) { .finder-qs { padding: 28px; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.hint { font-size: 0.9rem; color: var(--ink-2); margin-top: 8px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; text-align: center; min-height: 104px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: 0.92rem; line-height: 1.2; cursor: pointer; }
.tile svg { width: 64px; height: 48px; }
.tile input, .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tile:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.tile.plain { justify-content: center; min-height: 104px; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent); color: #fff; }

.finder-side { background-color: #f6f8f7; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: var(--tile) var(--tile); background-position: -1px -1px; border-top: 1px solid var(--line); padding: 20px 16px 22px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .finder-side { border-top: 0; border-left: 1px solid var(--line); padding: 28px; } }
.diagram { background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram-cap { font-weight: 650; font-size: 0.98rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.finder-go { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 9px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; text-align: center; }
.btn:hover { background: #0f469e; color: #fff; }
.btn.wa { background: var(--wa); }
.btn.wa:hover { background: var(--wa-dark); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* drawings */
.d-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.d-body { fill: #fff; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.d-pipe { fill: none; stroke: var(--accent); stroke-width: 6; }
.d-dim { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.d-dash { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 4 3; }
.d-dot { fill: var(--accent); }
.d-txt { font-family: "Archivo", system-ui, sans-serif; font-size: 11px; font-weight: 600; fill: var(--ink-2); }

/* sections */
.section { padding: 34px 0 6px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.section-head p { color: var(--ink-2); max-width: 44em; margin-top: 6px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.toolbar label { font-weight: 600; font-size: 0.92rem; }
.toolbar input[type="search"] { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); width: 210px; max-width: 100%; }
.toolbar select { min-height: 44px; padding: 0 34px 0 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); }
.count { font-weight: 700; }

.notice { border-radius: 12px; padding: 16px; margin-bottom: 16px; display: grid; gap: 10px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-fg); }
.notice.warn a { color: var(--warn-fg); font-weight: 650; }
.notice h3 { color: inherit; }
.notice .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.card.has-deal { border-color: var(--wa); box-shadow: inset 0 0 0 1px var(--wa); }
.card-main { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 12px; color: var(--ink); text-decoration: none; flex: 1; }
.card-main:hover .card-model { text-decoration: underline; }
.card-art { display: block; background: #f6f8f7; border-radius: 8px; padding: 6px; margin-bottom: 6px; position: relative; }
.card-art svg { display: block; width: 100%; height: 96px; }
.card-brand { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.card-model { font-stretch: 82%; font-weight: 750; font-size: 1.12rem; line-height: 1.15; }
.card-meta { font-size: 0.86rem; color: var(--ink-2); line-height: 1.35; }
.card-price { font-weight: 750; font-size: 1.05rem; margin-top: 4px; }
.card-price small { font-weight: 550; font-size: 0.8rem; color: var(--ink-2); }
.card-deal { font-size: 0.88rem; font-weight: 650; color: var(--ok-fg); background: var(--ok-bg); border-radius: 6px; padding: 5px 8px; margin-top: 6px; line-height: 1.3; }
.card-cta { min-height: 46px; border: 0; border-top: 1px solid var(--line); background: var(--wa-soft, #e2f3e9); color: var(--ok-fg); font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; }
.card-cta:hover { background: #cfeadb; }
.card.has-deal .card-cta { background: var(--wa); color: #fff; }
.card.has-deal .card-cta:hover { background: var(--wa-dark); }
.card-cta svg { width: 17px; height: 17px; flex: none; }

.badge { display: inline-block; align-self: flex-start; font-size: 0.8rem; font-weight: 700; line-height: 1.25; padding: 4px 8px; border-radius: 6px; margin-top: 6px; }
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.mute { background: var(--mute-bg); color: var(--ink-2); }
.tag { position: absolute; top: 6px; left: 6px; font-size: 0.72rem; font-weight: 700; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 5px; }

.empty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 12px; padding: 24px; color: var(--ink-2); }

/* deals strip */
.deals-wrap { margin-top: 22px; }
.deals-wrap h2 { font-size: 1.5rem; }
.deals { margin-top: 12px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.deals .deal { flex: 0 0 84%; max-width: 340px; scroll-snap-align: start; }
@media (min-width: 720px) { .deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); overflow: visible; } .deals .deal { max-width: none; } }
.deal { background: var(--surface); border: 1.5px solid var(--wa); border-radius: 12px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.deal h3 { font-size: 1.3rem; }
.deal .who { font-weight: 600; }
.deal .small { font-size: 0.88rem; color: var(--ink-2); }
.deal .price { font-weight: 750; font-size: 1.25rem; }
.deal .price s { font-weight: 500; color: var(--ink-2); font-size: 0.95rem; margin-left: 6px; }
.pill { display: inline-block; font-size: 0.76rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--mute-bg); color: var(--ink-2); margin-right: 4px; }
.pill.ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill.save { background: var(--warn-bg); color: var(--warn-fg); }

/* bands */
.band { margin-top: 40px; background: var(--ink); color: #fff; }
.band .wrap { padding-top: 36px; padding-bottom: 38px; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 860px) { .band .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.band p { color: #d5dde6; margin-top: 10px; max-width: 38em; }
.band .btn { background: #fff; color: var(--ink); }
.band .btn:hover { background: #e6eefb; color: var(--ink); }
.band .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.band .stat { border: 1px solid #47586b; border-radius: 10px; padding: 14px; }
.band .stat b { display: block; font-size: 1.9rem; font-stretch: 80%; line-height: 1.1; }
.band .stat span { font-size: 0.86rem; color: #d5dde6; }

.split { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.panel p, .prose p { color: var(--ink-2); }

/* footer */
.foot { margin-top: 44px; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.foot .wrap { padding-top: 22px; padding-bottom: 30px; display: grid; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* model page */
.crumbs { font-size: 0.9rem; padding: 14px 0 0; color: var(--ink-2); }
.crumbs a { display: inline-block; padding: 10px 0; }
.model { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "act" "specs"; padding-top: 6px; }
.model-head { grid-area: head; } .model-specs { grid-area: specs; } .model .act { grid-area: act; }
@media (min-width: 900px) { .model { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "head act" "specs act"; gap: 0 28px; align-items: start; } }
.model h1 { font-size: clamp(1.9rem, 5.4vw, 2.9rem); }
.model .sub { color: var(--ink-2); margin-top: 8px; }
.art-lg { background-color: #f6f8f7; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: var(--tile) var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 16px; }
.art-lg svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.specs { width: 100%; border-collapse: collapse; margin-top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: table; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 0.96rem; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 0; }
.specs th { width: 38%; font-weight: 600; color: var(--ink-2); }
.specs td { font-weight: 550; overflow-wrap: anywhere; }
.caveat { margin-top: 12px; background: var(--mute-bg); border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; color: var(--ink-2); }
.act { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; }
@media (min-width: 900px) { .act { position: sticky; top: 16px; } }
.act .price-lg { font-size: 2rem; font-weight: 780; font-stretch: 80%; line-height: 1; }
.act .price-note { font-size: 0.88rem; color: var(--ink-2); margin-top: 6px; }
.verdict { border-radius: 10px; padding: 12px 14px; font-weight: 650; }
.verdict.ok { background: var(--ok-bg); color: var(--ok-fg); }
.verdict.warn { background: var(--warn-bg); color: var(--warn-fg); }
.verdict.mute { background: var(--mute-bg); color: var(--ink-2); }
.verdict small { display: block; font-weight: 500; margin-top: 4px; font-size: 0.9rem; }
.mini { display: grid; gap: 10px; }
.mini .chips .chip { min-height: 44px; padding: 0 13px; font-size: 0.9rem; }
.mini-label { font-weight: 700; font-size: 0.95rem; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.related a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 650; }
.related a span { display: block; font-weight: 500; font-size: 0.88rem; color: var(--ink-2); }
.related a:hover { border-color: var(--accent); }

/* prose pages */
.prose { max-width: 46em; display: grid; gap: 14px; padding-top: 24px; }
.prose h2 { margin-top: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.prose li strong, .prose p strong { color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.src { font-size: 0.9rem; }

/* claim sheet */
dialog.sheet { border: 0; padding: 0; width: min(520px, 100%); max-width: 100%; max-height: 92vh; margin: auto auto 0; border-radius: 16px 16px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -8px 40px rgba(20, 40, 59, 0.28); }
@media (min-width: 620px) { dialog.sheet { margin: auto; border-radius: 16px; } }
dialog.sheet::backdrop { background: rgba(20, 40, 59, 0.55); }
dialog.sheet[open] { animation: rise 0.22s ease-out; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
.sheet-in { padding: 18px 16px 20px; display: grid; gap: 14px; overflow-y: auto; max-height: 92vh; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-top h2 { font-size: 1.5rem; }
.x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ok-bg); color: var(--ok-fg); border-radius: 10px; padding: 12px 14px; }
.code b { font-size: 1.5rem; font-stretch: 82%; letter-spacing: 0.03em; }
.code button { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--ok-fg); background: transparent; color: var(--ok-fg); font-weight: 700; }
.msg { background: #f6f8f7; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 0.95rem; overflow-wrap: anywhere; }
.sheet ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--ink-2); font-size: 0.95rem; }
.sheet details { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.sheet summary { min-height: 46px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
.sheet details[open] { padding-bottom: 12px; }
.fine { font-size: 0.84rem; color: var(--ink-2); }
.label { font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
