/* PFI.sg Release 1 — light, flat, mobile-first. Spacing tokens: 0 2 4 8 12 16 24 32 40 48 64 80 96 px. */
:root {
  --s1: 2px; --s2: 4px; --s3: 8px; --s4: 12px; --s5: 16px; --s6: 24px; --s7: 32px; --s8: 40px; --s9: 48px; --s10: 64px; --s11: 80px; --s12: 96px;
  --bg: #ffffff; --bg-soft: #f6f7f8; --ink: #111418; --ink-2: #3d4550; --muted: #5d6673; --line: #dde1e6; --line-2: #c5ccd4;
  --brand: #0b5cad; --brand-ink: #ffffff; --brand-hover: #094c90; --brand-soft: #e8f1fb;
  --warn-bg: #fff6e5; --warn-line: #f0c36d; --err: #b42318; --err-bg: #fdecea; --ok: #157347;
  --sponsor: #6b4e00; --sponsor-bg: #fdf3d8;
  --r-sm: 4px; --r: 6px; --r-lg: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; font-weight: 400; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0 0 var(--s4); font-weight: 600; }
p, ul, ol, dl { margin: 0 0 var(--s5); }
em { font-style: normal; font-weight: 500; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.break { word-break: break-all; }

/* Text styles */
.t-hero { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; max-width: 680px;
  background: linear-gradient(180deg, #0b0d10, #3b4048); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-section { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
.t-card { font-size: 20px; line-height: 28px; font-weight: 500; }
.t-label, .label { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption, .hint { font-size: 12px; line-height: 16px; color: var(--muted); }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 680px; }
.muted { color: var(--muted); }
@media (min-width: 768px) {
  .t-hero { font-size: 60px; line-height: 60px; }
  .t-section { font-size: 36px; line-height: 40px; }
}

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s5); }
main { display: block; padding-bottom: var(--s10); }
main:focus { outline: none; }
section { margin: var(--s9) 0; }
.skip { position: absolute; left: -9999px; top: var(--s3); background: var(--ink); color: #fff; padding: var(--s3) var(--s4); z-index: 100; border-radius: var(--r); }
.skip:focus { left: var(--s3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.staging-bar { background: var(--ink); color: #fff; font-size: 12px; line-height: 16px; padding: var(--s2) var(--s5); text-align: center; }

/* Compact floating nav */
.topbar { position: sticky; top: var(--s3); z-index: 50; margin: var(--s3) var(--s3) 0; }
.topbar-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: var(--s5); padding: var(--s3) var(--s4); background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; font-weight: 600; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 12px; line-height: 16px; letter-spacing: 0.04em; }
.mainnav { display: none; flex: 1; }
.mainnav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: var(--s2); margin: 0; padding: 0; }
.mainnav a { display: block; white-space: nowrap; padding: var(--s3) var(--s3); color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; border-radius: var(--r); }
.mainnav a:hover { background: var(--bg-soft); color: var(--ink); }
.util { display: none; align-items: center; gap: var(--s4); font-size: 14px; line-height: 20px; }
.util a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.menu-btn { margin-left: auto; }
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s5); overflow-y: auto; transform: translateY(8px); opacity: 0; transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
.mobile-menu.open { transform: none; opacity: 1; }
.mobile-menu[hidden] { display: none; }
.mm-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; padding: var(--s4) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 18px; line-height: 28px; }

/* Buttons: 8px/12px padding, 44px minimum target */
.btn, .menu-btn, .menu-close { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 44px; padding: var(--s3) var(--s4); border-radius: var(--r); border: 1px solid transparent;
  font: 600 16px/24px var(--font); text-decoration: none; cursor: pointer; transition: transform 300ms var(--ease), background-color 300ms var(--ease); text-align: center; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-secondary, .menu-btn, .menu-close { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover, .menu-btn:hover { background: var(--bg-soft); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 14px; line-height: 20px; }
.btn-lg { padding: var(--s4) var(--s6); }
.btn-link { background: none; border: 0; color: var(--brand); text-decoration: underline; padding: var(--s3) 0; min-height: 44px; font: 500 14px/20px var(--font); cursor: pointer; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0; }

@media (min-width: 1200px) { .mainnav, .util { display: flex; } .menu-btn { display: none; } }
.util a { white-space: nowrap; }

/* Hero */
.hero { margin: 0; padding: var(--s10) 0 var(--s7); }
.hero .lead { margin-top: var(--s4); }

/* Finder */
.finder { margin-top: var(--s6); }
.finder-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 640px) { .finder-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .finder-grid { grid-template-columns: repeat(4, 1fr); } }
.finder-btn { display: flex; align-items: center; min-height: 64px; padding: var(--s4) var(--s5); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 500; box-shadow: 0 1px 0 var(--line-2); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease); }
.finder-btn:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); box-shadow: 0 2px 0 var(--line-2); }
.finder-btn:active { transform: translateY(1px); box-shadow: none; }
.finder-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.more { margin: var(--s5) 0; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3) var(--s5); }
.more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.search-label { display: block; font-size: 14px; line-height: 20px; font-weight: 500; margin: var(--s3) 0 var(--s2); }
.more-group h4 { font-size: 14px; line-height: 20px; color: var(--muted); margin: var(--s5) 0 var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s3); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; }
.chip:hover { border-color: var(--brand); color: var(--ink); }
.result { margin: var(--s5) 0; scroll-margin-top: 96px; }
.result:focus { outline: none; }
.result.loading { opacity: 0.6; transition: opacity 300ms var(--ease); }

/* Panels and cards */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: #fff; margin: var(--s5) 0; }
.panel-head { margin-bottom: var(--s5); }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); background: #fff; }
.card .actions { margin-bottom: 0; }
.provider.sponsored { border-color: var(--warn-line); }
.label-sponsored { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--sponsor); background: var(--sponsor-bg); padding: var(--s1) var(--s3); border-radius: var(--r-sm); margin-bottom: var(--s3); }
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3); }
.badge { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 500; padding: var(--s2) var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-soft); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: var(--s5); background: var(--bg-soft); }
.stats .t-section { margin: 0; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); }
.notice.urgent { border-width: 2px; }
.notice p:last-child, .panel p:last-child { margin-bottom: 0; }

/* Lists and steps */
.list { padding-left: var(--s6); }
.dir-list { list-style: none; padding: 0; columns: 1; }
@media (min-width: 768px) { .dir-list { columns: 2; } }
.dir-list li { padding: var(--s2) 0; break-inside: avoid; }
.cat-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-link { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
.cat-link:hover { border-color: var(--brand); color: var(--ink); }
.journey { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 768px) { .journey { grid-template-columns: repeat(5, 1fr); } }
.journey li { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.journey .stepnum { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); margin-bottom: var(--s2); }
.journey p { font-size: 14px; line-height: 20px; }
.journey-mini { padding-left: var(--s6); }
.benefit { padding: var(--s9) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr; gap: var(--s7); }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.invite { background: var(--bg-soft); border-radius: var(--r-lg); padding: var(--s7) var(--s5); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.checklist label { display: flex; gap: var(--s4); align-items: flex-start; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: var(--s1); flex: none; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); padding: 0; margin: var(--s6) 0 var(--s5); font-size: 14px; line-height: 20px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s3); color: var(--line-2); }

/* Forms */
.form { max-width: 720px; }
.step { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin: 0 0 var(--s5); min-width: 0; }
legend { padding: 0 var(--s3); }
.field { margin-bottom: var(--s5); border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: var(--s2); padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 44px; padding: var(--s3) var(--s4); font: 400 16px/24px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); }
.input:hover { border-color: var(--muted); }
.input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.input[aria-invalid="true"] { border-color: var(--err); background: var(--err-bg); }
textarea.input { min-height: 96px; resize: vertical; }
.hint { margin: var(--s2) 0 0; }
.hint.err { color: var(--err); font-weight: 500; }
.check { display: flex !important; gap: var(--s3); align-items: flex-start; font-weight: 400 !important; margin-bottom: var(--s3); }
.check input, .checks input { width: 20px; height: 20px; flex: none; margin-top: var(--s1); }
.checks { list-style: none; padding: 0; }
.checks li { padding: var(--s2) 0; }
.checks label { display: flex; gap: var(--s3); align-items: flex-start; }
.checks.cols { columns: 1; }
@media (min-width: 768px) { .checks.cols { columns: 2; } }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 var(--s5); }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-errors { background: var(--err-bg); border: 1px solid var(--err); border-radius: var(--r-lg); padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.form-errors ul { margin: 0; }
.hp { position: absolute; left: -9999px; }
form.inline { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; margin: 0; }
form.inline .field { margin: 0; }
form.inline .input { width: auto; max-width: 100%; }

/* Data */
.meta { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: var(--s3) var(--s5); }
.meta dt { color: var(--muted); font-size: 14px; line-height: 20px; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--s5); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
.cov-table .input { min-width: 96px; }
.cov-flag { color: var(--err); font-weight: 600; }
.cov-ok { color: var(--ok); font-weight: 600; }
.prose { max-width: 720px; }
.prose h2 { font-size: 20px; line-height: 28px; font-weight: 500; margin-top: var(--s7); }
.prose li { margin-bottom: var(--s3); }
.sources { border-top: 1px solid var(--line); padding-top: var(--s5); }
.admin-nav { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; padding: var(--s4) 0; margin: var(--s5) 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.admin-nav form { margin-left: auto; }

/* Footer */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: var(--s9) 0 var(--s7); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.foot-copy { grid-column: 1 / -1; color: var(--muted); margin: 0; }

/* Word reveal on benefit statement (content always present; JS only adds the class) */
.reveal-ready [data-reveal] { opacity: 0.35; transform: translateY(8px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .mobile-menu { transform: none; opacity: 1; }
}
@media print {
  .topbar, .footer, .staging-bar, .actions, .mobile-menu { display: none !important; }
}

/* ---- Visual depth (v2): tinted canvas, façade-grid hero, full-bleed bands. No gradient backgrounds. ---- */
:root { --canvas: #f4f7fb; --band-blue: #e9f1fb; --band-ink: #0f1d30; --grid-line: rgba(11, 92, 173, 0.13); }
body { background: var(--canvas); }
.card, .panel, .cat-link, .finder-btn, .more, .step, .table-wrap { background: #fff; }
.card, .panel, .cat-link, .finder-btn { box-shadow: 0 1px 2px rgba(15, 29, 48, 0.06), 0 1px 0 var(--line-2); }
.card:hover, .cat-link:hover { box-shadow: 0 4px 12px rgba(15, 29, 48, 0.08); }
.empty { background: #fafbfd; }

/* Hero: soft blue band with a curtain-wall panel grid fading in from the right */
.hero { position: relative; overflow: hidden; background: var(--band-blue); border-bottom: 1px solid #d6e3f2; margin-top: -64px; padding-top: 128px; }
.hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 55%; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='128' viewBox='0 0 96 128'%3E%3Cg fill='none' stroke='%230b5cad' stroke-opacity='0.16'%3E%3Crect x='0.5' y='0.5' width='95' height='127'/%3E%3Cpath d='M48 0v128M0 64h96'/%3E%3Crect x='8.5' y='8.5' width='31' height='47' stroke-opacity='0.10'/%3E%3Crect x='56.5' y='72.5' width='31' height='47' stroke-opacity='0.10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 128px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
.hero .wrap { position: relative; z-index: 1; }
@media (max-width: 767px) { .hero::after { width: 100%; opacity: 0.45; } .hero { margin-top: -60px; padding-top: 104px; } }

/* Full-bleed bands for homepage sections (no extra markup needed) */
.band, section[aria-labelledby="journey-h"], section[aria-labelledby="tools-h"], .benefit {
  position: relative; padding-top: var(--s9); padding-bottom: var(--s9); clip-path: inset(0 -100vmax); }
section[aria-labelledby="journey-h"] { background: #fff; box-shadow: 0 0 0 100vmax #fff; }
section[aria-labelledby="tools-h"] { background: var(--band-blue); box-shadow: 0 0 0 100vmax var(--band-blue); }
section[aria-labelledby="tools-h"] .card { border-color: #d6e3f2; }
.journey li { background: var(--canvas); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: var(--s4) var(--s4) var(--s3); border-top-color: var(--brand); }
.journey .stepnum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--brand); color: #fff; }

/* Dark statement band */
.benefit { background: var(--band-ink); box-shadow: 0 0 0 100vmax var(--band-ink); border: 0; text-align: center; }
.benefit .t-section { color: #fff; }
.benefit .t-section.muted { color: #8fb3dc; }
.invite { background: #fff; border: 1px solid #d6e3f2; box-shadow: inset 4px 0 0 var(--brand); }

/* Inner pages: a light header band behind breadcrumbs + title */
main > .wrap > .crumbs { padding-top: var(--s5); }
.footer { background: #e8eef5; border-top-color: #d6e3f2; }
@media print { body, .hero, .benefit { background: #fff !important; box-shadow: none !important; } .hero::after { display: none; } .benefit .t-section { color: #000; } }

/* Featured CP (v3) */
.finder-btn-feature { flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s1); border: 2px solid var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(11, 92, 173, 0.12); font-weight: 600; }
.finder-btn-feature:hover { background: #dbe9f8; }
.rec-tag { font-size: 12px; line-height: 16px; font-weight: 600; color: #fff; background: var(--brand); padding: var(--s1) var(--s3); border-radius: 999px; }
.featured-cp { margin: var(--s5) 0; padding: var(--s5) var(--s6); background: #fff; border: 2px solid var(--brand); border-radius: var(--r-lg); box-shadow: inset 6px 0 0 var(--brand), 0 4px 16px rgba(11, 92, 173, 0.10); }
.featured-cp .featured-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s3); }
.featured-cp .actions { margin: var(--s4) 0; }
.featured-cp .muted { font-weight: 400; }

/* Codes of practice tool list (v4) — mirrors online-calculate.com */
.cop-list { display: grid; gap: var(--s4); margin: var(--s5) 0; }
.cop-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: 0 1px 2px rgba(15, 29, 48, 0.06); }
.cop-kicker { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s2); }
.cop-title { font-size: 16px; line-height: 24px; font-weight: 600; color: #10233f; margin: 0 0 var(--s3); }
.cop-items { margin: 0; padding-left: var(--s6); }
.cop-items li { margin: var(--s3) 0; color: var(--ink-2); }
.cop-link { color: #1d5d9b; text-decoration: none; font-weight: 500; }
.cop-link:hover { text-decoration: underline; }
.cop-unlock { display: inline-flex; align-items: center; gap: var(--s2); font-size: 12px; line-height: 16px; font-weight: 600; color: #7a4a00; background: #fff4d6; border: 1px solid #f0c36d; border-radius: 999px; padding: var(--s1) var(--s3); text-decoration: none; vertical-align: 1px; }
.cop-unlock:hover { background: #ffeab0; color: #7a4a00; }
.cop-desc { color: var(--ink-2); }
section[aria-labelledby="tools-h"] .cop-card { border-color: #d6e3f2; }

/* v5: keep brand on one line */
.brand { white-space: nowrap; }

/* ===== Theme A — Concrete & Safety Amber (bca-psi.sg only, 2026-11-14) ===== */
/* A — Concrete & Safety Amber */
:root { --canvas:#f6f4f0; --ink:#1d2125; --link:#9a4a0b; --brand:#1d2125; --brand-ink:#fff; --brand-hover:#000;
 --hero-bg:#22272c; --hero-line:#22272c; --hero-ink:#fff; --hero-sub:#c9c2b6; --grid:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23f5a524' stroke-opacity='0.22'%3E%3Cpath d='M0 .5h80M.5 0v80'/%3E%3Cpath d='M0 40.5h80M40.5 0v80' stroke-opacity='0.10'/%3E%3C/g%3E%3C/svg%3E");
 --feature:#f5a524; --feature-soft:#fff6e2; --feature-ring:rgba(245,165,36,.25); --feature-ink:#1d2125; --feature-text:#9a5b00;
 --band:#efe9df; --band-line:#e0d6c6; --deep:#f5a524; --deep-sub:#5a4310; --foot:#e9e4db; --brand-mark:#f5a524; --brand-mark-ink:#1d2125; }
.benefit .t-section { color:#1d2125; }
.hero .btn-primary { background:#f5a524; color:#1d2125; } .hero .btn-primary:hover { background:#ffb83d; }
/* applies theme tokens to the hard-coded parts of the base stylesheet */
body { background: var(--canvas); color: var(--ink); }
a { color: var(--link); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.hero { background: var(--hero-bg); border-bottom-color: var(--hero-line); }
.hero .t-hero { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--hero-ink); }
.hero .lead { color: var(--hero-sub); }
.hero .btn-secondary { background: transparent; color: var(--hero-ink); border-color: var(--hero-sub); }
.hero::after { background-image: var(--grid); }
.finder-btn:hover, .chip:hover, .cat-link:hover { border-color: var(--brand); }
.finder-btn[aria-pressed="true"], .finder-btn-feature { border-color: var(--feature); background: var(--feature-soft); box-shadow: 0 0 0 4px var(--feature-ring); }
.rec-tag { background: var(--feature); color: var(--feature-ink); }
.featured-cp { border-color: var(--feature); box-shadow: inset 6px 0 0 var(--feature), 0 4px 16px var(--feature-ring); }
.featured-cp .featured-label { color: var(--feature-text); }
.featured-cp .btn-primary { background: var(--feature); color: var(--feature-ink); }
.journey li { border-top-color: var(--brand); }
.journey .stepnum { background: var(--brand); color: var(--brand-ink); }
section[aria-labelledby="tools-h"] { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); }
section[aria-labelledby="tools-h"] .card, section[aria-labelledby="tools-h"] .cop-card { border-color: var(--band-line); }
.benefit { background: var(--deep); box-shadow: 0 0 0 100vmax var(--deep); }
.benefit .t-section.muted { color: var(--deep-sub); }
.invite { border-color: var(--band-line); box-shadow: inset 4px 0 0 var(--brand); }
.footer { background: var(--foot); border-top-color: var(--band-line); }
.brand-mark { background: var(--brand-mark); color: var(--brand-mark-ink); }
.cop-link { color: var(--link); }
:focus-visible { outline-color: var(--brand); }

/* bca-psi.sg: longer brand name needs more room before the full nav fits */
@media (min-width: 1200px) and (max-width: 1439px) { .mainnav, .util { display: none; } .menu-btn { display: inline-flex; } }
@media (min-width: 1440px) { .topbar-in { max-width: 1380px; gap: var(--s4); } .mainnav a { padding: var(--s3) var(--s2); } }
