/* Sahim: the Exchange Board.
   Navy board with ruled cells for figures, white plate for the logo, white rate-sheet for reading.
   Cyan marks only the value being read; amber marks estimates and figures under review. */

@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-arabic.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-latin.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20AA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0C2340;
  --navy-2: #102C50;      /* alternate board row */
  --navy-3: #173A66;      /* hovered board row */
  --blue: #1A84B5;
  --blue-ink: #136A93;    /* brand blue darkened for text on white (AA) */
  --cyan: #58C7E8;
  --white: #FFFFFF;
  --sheet: #F2F6F9;       /* cool rate-sheet ground, never cream */
  --rule: #D5DFE8;
  --rule-strong: #0C2340;
  --ink: #0C2340;
  --ink-2: #3B5068;       /* secondary text on white, tinted from navy */
  --ink-3: #5B6F86;
  --on-navy: #FFFFFF;
  --on-navy-2: #A9C3DA;   /* secondary text on navy, tinted from cyan */
  --board-rule: rgba(88, 199, 232, 0.22);
  --amber: #E0A43A;
  --amber-ink: #8A5A06;
  --red: #B23A3A;
  --away: var(--blue);    /* per-country away colour, set on <body> */

  --f: 'Cairo', system-ui, sans-serif;
  /* type scale: 13 / 15 / 17 / 21 / 27 / 36 / 48 */
  --t-xs: 0.8125rem; --t-sm: 0.9375rem; --t-md: 1.0625rem; --t-lg: 1.3125rem; --t-xl: 1.6875rem; --t-2xl: 2.25rem; --t-3xl: 3rem;
  /* spacing rhythm: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 72 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --wrap: 1180px;
  --measure: 68ch;
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--f); font-size: var(--t-md); line-height: 1.85; color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums lining-nums; text-rendering: optimizeLegibility; }
::selection { background: var(--cyan); color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; text-wrap: balance; font-weight: 800; letter-spacing: 0; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
ul, ol { padding-inline-start: 1.4em; margin: 0 0 var(--s4); }
li { margin-bottom: var(--s2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--s4); top: -60px; background: var(--white); color: var(--navy); padding: var(--s2) var(--s4); z-index: 100; border-radius: var(--radius); }
.skip:focus { top: var(--s2); }
html { scrollbar-color: var(--ink-3) var(--sheet); }

/* ---------- header: navy bar, logo on its white plate ---------- */
.site-header { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--board-rule); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.plate { display: inline-flex; align-items: center; gap: var(--s3); background: var(--white); border-radius: 8px; padding: 5px 12px 5px 8px; text-decoration: none; color: var(--navy); box-shadow: 0 4px 12px -8px rgba(0,0,0,.35); flex: none; }
.plate img { width: 44px; height: 42px; }
.plate span { font-weight: 800; font-size: var(--t-sm); line-height: 1.2; }
.plate small { display: block; font-weight: 600; font-size: var(--t-xs); color: var(--ink-2); }
.nav { display: flex; gap: var(--s1); margin-inline-start: auto; }
.nav a, .nav summary { color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: var(--t-sm); padding: var(--s2) var(--s3); border-radius: var(--radius); cursor: pointer; list-style: none; white-space: nowrap; }
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover, .nav details[open] summary { background: var(--navy-3); color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); }
.nav details { position: relative; }
.nav .menu { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); background: var(--white); color: var(--ink); border-radius: var(--radius); padding: var(--s3); min-width: 300px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.28); border: 1px solid var(--rule); display: grid; gap: 2px; }
.nav .menu a { color: var(--ink); font-weight: 600; display: flex; justify-content: space-between; gap: var(--s4); }
.nav .menu a small { color: var(--ink-3); font-weight: 500; }
.nav .menu a:hover { background: var(--sheet); color: var(--navy); }
.nav .menu.cols { grid-template-columns: 1fr 1fr; min-width: 520px; }
.header-cta { display: inline-flex; align-items: center; gap: var(--s2); background: var(--white); color: var(--navy); font-weight: 800; font-size: var(--t-sm); padding: 9px 16px; border-radius: var(--radius); text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--sheet); color: var(--navy); }
.header-cta svg { width: 18px; height: 18px; }
.burger { display: none; margin-inline-start: auto; background: transparent; border: 1px solid var(--board-rule); color: var(--white); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer[data-open="true"] { display: block; }
.drawer::before { content: ''; position: absolute; inset: 0; background: rgba(12,35,64,.55); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 380px); background: var(--white); overflow: auto; padding: var(--s5); }
.drawer-panel h4 { font-size: var(--t-xs); color: var(--ink-3); margin: var(--s5) 0 var(--s2); font-weight: 700; }
.drawer-panel a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; }
.drawer-close { float: inline-end; }

/* country away colour band under the header on country pages */
.away-band { height: 5px; background: var(--away); }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: var(--s4) auto 0; font-size: var(--t-xs); color: var(--ink-3); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-inline-end: var(--s2); color: var(--rule); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); font: inherit; font-weight: 800; font-size: var(--t-sm); padding: 12px 20px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; min-height: 48px; transition: background .2s var(--ease), color .2s var(--ease); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--blue-ink); color: var(--white); }
.btn-cyan { background: var(--white); color: var(--navy); }
.btn-cyan:hover { background: var(--sheet); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-call-navy { background: transparent; color: var(--white); border-color: var(--board-rule); }
.btn-wa { background: #1FA855; color: var(--white); }
.btn-wa:hover { background: #178A45; color: var(--white); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- the board ---------- */
.board-wrap { background: var(--navy); color: var(--on-navy); padding: var(--s6) 0 var(--s7); }
.board-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s5); }
.board-head h1, .board-head .bh { font-size: var(--t-2xl); color: var(--white); max-width: none; }
.board-head p { color: var(--on-navy-2); margin: var(--s2) 0 0; max-width: 60ch; font-size: var(--t-md); }
.cur-switch { display: inline-flex; border: 1px solid var(--board-rule); border-radius: var(--radius); padding: 3px; gap: 2px; background: rgba(0,0,0,.18); }
.cur-switch button { font: inherit; font-weight: 800; font-size: var(--t-sm); color: var(--on-navy-2); background: transparent; border: 0; border-radius: 4px; padding: 7px 14px; cursor: pointer; min-width: 52px; min-height: 40px; }
.cur-switch button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.cur-switch-label { font-size: var(--t-xs); color: var(--on-navy-2); display: block; margin-bottom: var(--s1); }

.board { border-top: 1px solid var(--board-rule); }
.board-cols, .board-row { display: grid; grid-template-columns: minmax(150px, 1.15fr) repeat(4, minmax(0, 1fr)) 44px; align-items: stretch; }
.board-cols { font-size: var(--t-xs); color: var(--on-navy-2); font-weight: 700; }
.board-cols > div { padding: var(--s3) var(--s4); border-inline-start: 1px solid var(--board-rule); }
.board-cols > div:first-child { border-inline-start: 0; }
.board-row { color: var(--white); text-decoration: none; border-top: 1px solid var(--board-rule); position: relative; transition: background .25s var(--ease); }
.board-row:nth-child(even) { background: var(--navy-2); }
.board-row:hover, .board-row:focus-visible { background: var(--navy-3); color: var(--white); }
.board-row::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--row-away, var(--blue)); opacity: .55; transition: opacity .25s var(--ease); }
.board-row:hover::after, .board-row:focus-visible::after { opacity: 1; }
.b-name { padding: var(--s4); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.b-name strong { font-size: var(--t-xl); font-weight: 900; line-height: 1.2; }
.b-name small { color: var(--on-navy-2); font-size: var(--t-xs); font-weight: 600; }
.cell { padding: var(--s4); border-inline-start: 1px solid var(--board-rule); display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.cell .k { display: none; font-size: var(--t-xs); color: var(--on-navy-2); font-weight: 700; }
.cell .v { font-size: var(--t-xl); font-weight: 800; line-height: 1.2; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .v[data-usd-min] { font-size: var(--t-lg); white-space: normal; }
.cell .v small { font-size: var(--t-sm); font-weight: 700; color: var(--on-navy-2); margin-inline-start: 4px; }
.cell .d { font-size: var(--t-xs); color: var(--on-navy-2); }
.cell .u { font-size: var(--t-xs); color: var(--white); font-weight: 600; line-height: 1.5; }
.cell .fn, .mast .fn, .tool-out .fn, .board-foot .fn { color: var(--on-navy-2); }
.cell.empty .v { font-size: var(--t-sm); font-weight: 600; color: var(--on-navy-2); }
.board-row:hover .cell.empty .v { color: var(--on-navy-2); }
.cell[data-conf="medium"] .v, .cell[data-conf="low"] .v { color: var(--amber); }
.cell[data-conf] .d::before { content: attr(data-conf-label) ' · '; color: var(--amber); font-weight: 700; }
.board-row:hover .cell .v, .board-row:focus-visible .cell .v { color: var(--cyan); }
.b-go { display: flex; align-items: center; justify-content: center; border-inline-start: 1px solid var(--board-rule); color: var(--on-navy-2); }
.b-go svg { width: 20px; height: 20px; transform: scaleX(-1); }
.board-row:hover .b-go { color: var(--cyan); }
.board-foot { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; border-top: 1px solid var(--board-rule); padding-top: var(--s3); font-size: var(--t-xs); color: var(--on-navy-2); }
.board-foot a { color: var(--white); }
.cell { perspective: 400px; }
.cell .v[data-cur] { display: inline-block; transform-origin: 50% 50%; transition: transform .17s var(--ease), opacity .17s var(--ease); }
.cell .v.flip { transform: rotateX(90deg); opacity: .25; }

/* ---------- pages: masthead on navy, reading column on white ---------- */
.mast { background: var(--navy); color: var(--on-navy); padding: var(--s6) 0 var(--s6); }
.mast h1 { font-size: var(--t-2xl); color: var(--white); max-width: 26ch; }
.mast .lede { color: var(--on-navy-2); font-size: var(--t-md); max-width: 62ch; margin: var(--s3) 0 0; }
.mast .stamp { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s4); font-size: var(--t-xs); color: var(--on-navy-2); border: 1px solid var(--board-rule); border-radius: 999px; padding: 4px 12px; }
.mast .stamp b { color: var(--white); font-weight: 800; }
.mast .crumbs ol { margin-top: 0; margin-bottom: var(--s4); color: var(--on-navy-2); }
.mast .crumbs a { color: var(--on-navy-2); }
.mast .crumbs li + li::before { color: var(--board-rule); }
.mast-board { margin-top: var(--s5); }

.page-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(260px, 320px); gap: var(--s7); justify-content: space-between; padding-top: var(--s6); padding-bottom: var(--s7); }
.page-grid.single { grid-template-columns: minmax(0, 1fr); }
.col { min-width: 0; }
.aside { min-width: 0; }
.aside-in { position: sticky; top: 92px; display: grid; gap: var(--s5); }

.answer { background: var(--sheet); border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s6); border: 1px solid var(--rule); }
.answer .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.answer p { font-size: var(--t-md); margin: 0; font-weight: 600; color: var(--ink); }

.col h2 { font-size: var(--t-xl); border-top: 3px solid var(--rule-strong); padding-top: var(--s4); margin: var(--s7) 0 var(--s4); }
.col h2:first-child { margin-top: 0; }
.col h3 { font-size: var(--t-lg); margin: var(--s6) 0 var(--s3); }
.col p, .col li { color: var(--ink); }
.col ul li::marker { color: var(--blue); }
.col ol li::marker { color: var(--blue); font-weight: 800; }

/* rate sheet: ruled key-facts table */
.sheet { width: 100%; border-collapse: collapse; margin: 0 0 var(--s6); font-size: var(--t-sm); }
.sheet caption { text-align: start; font-weight: 800; font-size: var(--t-sm); color: var(--ink-2); padding-bottom: var(--s2); }
.sheet th, .sheet td { overflow-wrap: anywhere; text-align: start; padding: 11px var(--s3); border-bottom: 1px solid var(--rule); vertical-align: top; }
.sheet thead th { background: var(--navy); color: var(--white); font-weight: 800; border-bottom: 0; }
.sheet tbody th { font-weight: 700; color: var(--ink-2); width: 42%; }
.sheet td { font-weight: 700; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 2px solid var(--rule-strong); }
.table-scroll { overflow-x: auto; margin-bottom: var(--s6); -webkit-overflow-scrolling: touch; }
.table-scroll .sheet { margin: 0; min-width: 520px; }

/* cited figures */
.fv { font-weight: 700; }
.fv .fn { white-space: nowrap; }
.fv[data-conf="medium"], .fv[data-conf="low"] { text-decoration: underline dotted var(--amber); text-underline-offset: 5px; }
.fn { font-size: max(11px, 0.7em); vertical-align: super; line-height: 0; margin-inline-start: 2px; color: var(--blue-ink); text-decoration: none; font-weight: 800; }
.fn:hover { text-decoration: underline; }
.calc { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, rgba(88,199,232,.28) 0); }

.worked { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s5); margin: var(--s5) 0 var(--s6); background: var(--white); }
.worked h3 { margin-top: 0; font-size: var(--t-md); }
.worked .note { font-size: var(--t-xs); color: var(--ink-3); margin: var(--s3) 0 0; }

.note-box { border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--radius); padding: var(--s4) var(--s5); margin: var(--s5) 0; font-size: var(--t-sm); }
.note-box.warn { border-color: rgba(224,164,58,.6); background: #FFF8EC; }
.note-box.warn strong { color: var(--amber-ink); }
.note-box p:last-child { margin: 0; }

/* sources */
.sources { margin-top: var(--s7); border-top: 3px solid var(--rule-strong); padding-top: var(--s4); }
.sources h2 { font-size: var(--t-lg); border: 0 !important; padding: 0 !important; margin: 0 0 var(--s4) !important; }
.sources ol { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); font-size: var(--t-sm); }
.sources li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); margin: 0; scroll-margin-top: 100px; }
.sources li:target { background: rgba(88,199,232,.14); border-radius: var(--radius); }
.src-n { width: 26px; height: 26px; border-radius: 50%; background: var(--sheet); border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--t-xs); }
.sources b { display: block; font-weight: 700; }
.src-l { display: block; color: var(--ink-2); font-size: var(--t-xs); }
.conf { display: inline-block; font-size: var(--t-xs); font-weight: 800; border-radius: 4px; padding: 0 6px; margin-top: 2px; }
.conf-high { color: #1F6B45; background: #E6F4EC; }
.conf-medium { color: var(--amber-ink); background: #FFF2D9; }
.conf-low { color: #8A2A2A; background: #FBE6E6; }
.src-flag { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.src-note { font-size: var(--t-xs); color: var(--ink-3); margin-top: var(--s4); }

/* FAQ */
.faq { margin-top: var(--s7); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: var(--s4) 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-top: 10px; border-inline-end: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 14px; }
.faq .a { padding-bottom: var(--s4); color: var(--ink-2); }

/* byline and disclaimers */
.byline { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: var(--s5); }
.byline a { color: var(--ink-2); }
.disclaimer { font-size: var(--t-xs); color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: var(--s4); margin-top: var(--s6); }

/* link lists and the "next" ledger */
.ledger { list-style: none; padding: 0; margin: 0 0 var(--s6); border-top: 2px solid var(--rule-strong); }
.ledger li { margin: 0; border-bottom: 1px solid var(--rule); }
.ledger a { display: grid; grid-template-columns: 1fr auto; gap: var(--s4); padding: 13px var(--s2); text-decoration: none; color: var(--ink); font-weight: 700; }
.ledger a small { color: var(--ink-3); font-weight: 600; font-size: var(--t-xs); align-self: center; }
.ledger a:hover { color: var(--blue-ink); background: var(--sheet); }
.ledger.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
/* glossary: every definition on one ruled sheet, term on its own line, definition at reading measure */
.defs { margin: 0 0 var(--s6); border-top: 2px solid var(--rule-strong); }
.defs > div { padding: var(--s4) var(--s2); border-bottom: 1px solid var(--rule); scroll-margin-top: var(--s6); }
.defs dt { font-weight: 800; font-size: var(--t-md); line-height: 1.4; }
.defs dt a { color: var(--ink); text-decoration: none; }
.defs dt a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 4px; }
.defs dt span { font-weight: 600; font-size: var(--t-xs); color: var(--ink-3); margin-inline-start: var(--s2); }
.defs dd { margin: var(--s1) 0 0; max-width: var(--measure); color: var(--ink-2); font-size: var(--t-sm); line-height: 1.8; }
.defs > div:target { background: var(--sheet); }
@media (min-width: 900px) { .defs { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); } .defs dd { max-width: none; } }

.aside .box { border-top: 2px solid var(--rule-strong); padding: var(--s3) 0 0; }
.aside .box h2, .aside .box h3 { font-size: var(--t-sm); margin: 0 0 var(--s3); }
.aside .box .ledger { margin: 0; border-top: 0; }
.aside .box .ledger a { padding: 8px 0; font-size: var(--t-sm); }
.toc ol { list-style: none; padding: 0; margin: 0; font-size: var(--t-sm); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a:hover { color: var(--blue-ink); }

/* ---------- lead forms: the rate slip ---------- */
.slip { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: var(--s5); }
.slip h2, .slip h3 { color: var(--white); font-size: var(--t-lg); margin: 0 0 var(--s2); border: 0 !important; padding: 0 !important; }
.slip p { color: var(--on-navy-2); font-size: var(--t-sm); margin-bottom: var(--s4); }
.slip .fields { display: grid; gap: var(--s3); }
.slip .fields.two { grid-template-columns: 1fr 1fr; }
.slip label { display: grid; gap: 4px; font-size: var(--t-xs); font-weight: 700; color: var(--on-navy-2); }
.slip input, .slip select, .slip textarea { font: inherit; font-size: 16px; color: var(--navy); background: var(--white); border: 1px solid transparent; border-radius: var(--radius); padding: 11px 12px; min-height: 48px; width: 100%; }
.slip input::placeholder, .slip textarea::placeholder { color: var(--ink-3); }
.slip input:focus, .slip select:focus, .slip textarea:focus { outline: 3px solid var(--cyan); outline-offset: 0; }
.slip input[aria-invalid="true"] { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.slip .consent { font-size: var(--t-xs); color: var(--on-navy-2); margin: var(--s3) 0 0; line-height: 1.7; }
.slip .consent a, .slip .check a { color: var(--white); }
.slip .check { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--t-xs); font-weight: 600; color: var(--on-navy-2); }
.slip .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--cyan); }
.slip .actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.slip .status { font-size: var(--t-sm); margin-top: var(--s3); min-height: 1.5em; }
.slip .status.ok { color: var(--white); font-weight: 800; }
.slip .status.err { color: var(--amber); font-weight: 700; }
.slip .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.slip { position: relative; }
.slip-inline { margin: var(--s6) 0; }
.slip .done { display: none; }
.slip[data-state="done"] form { display: none; }
.slip[data-state="done"] .done { display: block; }

/* ---------- tools ---------- */
.tool { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--s6); }
.tool-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.tool-form { padding: var(--s5); display: grid; gap: var(--s4); align-content: start; background: var(--white); }
.tool-form label, .tool-form fieldset { display: grid; gap: 6px; font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); border: 0; padding: 0; margin: 0; }
.tool-form legend { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.tool-form input, .tool-form select { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; min-height: 48px; background: var(--white); width: 100%; }
.tool-form input:focus, .tool-form select:focus { outline: 3px solid var(--cyan); outline-offset: 0; border-color: var(--blue); }
.tool-form .hint { font-size: var(--t-xs); color: var(--ink-3); font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; font-weight: 700; color: var(--ink); min-height: 44px; }
.seg input { width: auto; min-height: 0; accent-color: var(--blue); margin: 0; }
.seg label:has(input:checked) { border-color: var(--navy); background: var(--sheet); }
.tool-out { background: var(--navy); color: var(--on-navy); padding: var(--s5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-content: start; min-width: 0; }
.tool-out > * { min-width: 0; }
.tool-out .big { font-size: var(--t-2xl); font-weight: 900; line-height: 1.2; color: var(--cyan); overflow-wrap: anywhere; }
.tool-out .big small { display: block; white-space: nowrap; font-size: var(--t-md); color: var(--on-navy-2); font-weight: 700; margin-top: 2px; }
.tool-out .lbl { font-size: var(--t-xs); color: var(--on-navy-2); font-weight: 700; }
.tool-out table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.tool-out td { padding: 7px 0; border-bottom: 1px solid var(--board-rule); }
.tool-out td:last-child { text-align: end; font-weight: 800; white-space: nowrap; }
.tool-out tr.total td { border-bottom: 0; border-top: 2px solid var(--cyan); font-size: var(--t-md); color: var(--white); }
.tool-out .assume { font-size: var(--t-xs); color: var(--on-navy-2); margin: 0; }
.tool-out .warn { color: var(--amber); font-size: var(--t-xs); font-weight: 700; }
.tool-cta { border-top: 1px solid var(--board-rule); padding-top: var(--s4); margin-top: var(--s2); }

.tool-cta .slip { background: transparent; padding: 0; }
.tool-cta .slip h2 { font-size: var(--t-md); }
.tool-out .assume a { color: var(--white); }
[hidden] { display: none !important; }

/* monthly occupancy bars (the monthly truth) */
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 180px; margin: var(--s4) 0 var(--s2); }
.months .m { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; font-size: 11px; color: var(--on-navy-2); min-width: 0; }
.months .bar { width: 100%; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.months .m.peak .bar { background: var(--cyan); }
.months .m b { color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: -0.02em; }
.light .months .m { color: var(--ink-3); }
.light .months .m b { color: var(--ink); }

/* ---------- home sections ---------- */
.section { padding: var(--s8) 0; }
.section.sheet-bg { background: var(--sheet); }
.section h2.sh { font-size: var(--t-xl); border-top: 3px solid var(--rule-strong); padding-top: var(--s4); margin-bottom: var(--s3); max-width: 30ch; }
.section .sub { color: var(--ink-2); max-width: 62ch; margin-bottom: var(--s6); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s6); }
.cities h3 { font-size: var(--t-sm); color: var(--ink-3); margin: 0 0 var(--s2); }
.expert.compact { grid-template-columns: 200px minmax(0, 1fr); margin-bottom: var(--s6); }
.expert { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.photo-slot { aspect-ratio: 4 / 5; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--sheet) 0 12px, #E6EDF3 12px 24px); border: 1px dashed var(--ink-3); display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s4); font-size: var(--t-xs); color: var(--ink-2); font-weight: 700; }
.verify-list { list-style: none; padding: 0; margin: 0; counter-reset: v; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s6); border-top: 2px solid var(--rule-strong); }
.verify-list li { counter-increment: v; display: grid; grid-template-columns: 36px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); margin: 0; }
.verify-list li::before { content: counter(v); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: var(--t-sm); }
.verify-list b { display: block; }
.verify-list span { font-size: var(--t-sm); color: var(--ink-2); }
.gap-mark { display: inline-block; font-size: var(--t-xs); font-weight: 800; color: var(--amber-ink); background: #FFF2D9; border: 1px dashed var(--amber); border-radius: 4px; padding: 2px 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding: var(--s7) 0 var(--s6); font-size: var(--t-sm); margin-top: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--cyan); }
.foot-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: var(--s6); }
.foot-top h3 { color: var(--white); font-size: var(--t-sm); margin-bottom: var(--s3); }
.foot-top ul { list-style: none; padding: 0; margin: 0; }
.foot-top li { margin-bottom: 6px; }
.foot-line { font-size: var(--t-lg); color: var(--white); font-weight: 800; margin: var(--s4) 0 var(--s2); }
.foot-legal { border-top: 1px solid var(--board-rule); margin-top: var(--s6); padding-top: var(--s4); font-size: var(--t-xs); display: grid; gap: var(--s2); }

/* mobile contact bar */
.mbar { display: none; }

/* sample-data banner for CRM seed projects */
.sample-banner { background: var(--amber); color: var(--navy); font-weight: 800; text-align: center; padding: var(--s2) var(--s4); font-size: var(--t-sm); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .aside-in { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .board-cols { display: none; }
  .board-row { grid-template-columns: 1fr 1fr; padding: var(--s3) 0; }
  .b-name { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; padding: var(--s2) var(--s4); }
  .cell { border-inline-start: 0; padding: var(--s2) var(--s4); }
  .cell .k { display: block; }
  .cell .v { font-size: var(--t-lg); }
  .b-go { display: none; }
  .tool-in, .split, .expert, .expert.compact { grid-template-columns: 1fr; }
  .cities, .verify-list, .ledger.two { grid-template-columns: 1fr; }
  .slip .fields.two { grid-template-columns: 1fr; }
  .expert .photo-slot { max-width: 220px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--s4); }
  body { font-size: 1rem; }
  .board-head h1, .mast h1 { font-size: 1.5rem; }
  .board-head p, .mast .lede { font-size: var(--t-sm); line-height: 1.75; }
  .board-head { margin-bottom: var(--s4); gap: var(--s3); }
  .board-row { padding: var(--s2) 0; row-gap: 2px; }
  .b-name { padding: var(--s2) var(--s4) 0; }
  .b-name strong { font-size: var(--t-lg); }
  .cell { padding: 4px var(--s4); gap: 0; }
  .cell .k { font-size: 12px; line-height: 1.5; }
  .cell .v { font-size: var(--t-md); line-height: 1.5; }
  .cell .v[data-usd-min] { font-size: var(--t-sm); }
  .cell .v small { font-size: 12px; }
  .cell { display: block; font-size: 12px; line-height: 1.5; }
  .cell .k, .cell .v, .cell .v[data-cur], .cell .d { display: block; }
  .cell .u { display: none; }
  .cur-switch button { padding: 6px 10px; min-width: 44px; }
  .board-wrap, .mast { padding-top: var(--s5); }
  .section { padding: var(--s7) 0; }
  .plate span { display: none; }
  .tool-out .big { font-size: var(--t-2xl); }
  .foot-top { grid-template-columns: 1fr; }
  .mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s2); position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--navy); padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); border-top: 1px solid var(--board-rule); }
  .mbar .btn { min-height: 46px; padding: 8px 10px; }
  body.has-mbar { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .mbar, .slip, .aside { display: none !important; } }

/* embeds */
body.embed .site-header, body.embed .site-footer, body.embed .mbar, body.embed .crumbs { display: none; }
.embed-credit { font-size: var(--t-xs); padding: var(--s2) var(--s4); background: var(--sheet); }

/* home matcher on the board grammar */
.match-form { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; }
.match-form label { display: grid; gap: 4px; font-size: var(--t-xs); font-weight: 700; color: var(--on-navy-2); }
.match-form input, .match-form select { font: inherit; font-size: 16px; color: var(--navy); background: var(--white); border: 0; border-radius: var(--radius); padding: 9px 12px; min-height: 44px; min-width: 150px; }
.match-form input:focus, .match-form select:focus { outline: 3px solid var(--cyan); }
.board.match .board-cols, .board.match .board-row { grid-template-columns: minmax(150px, 1.15fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr) 44px; }
.cell .note { font-size: var(--t-sm); font-weight: 600; line-height: 1.6; color: var(--on-navy); }
.cell.no .v { color: var(--on-navy-2); font-weight: 600; font-size: var(--t-md); }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.occ-grid label { font-size: 12px; }
.occ-grid input { padding: 6px 4px !important; text-align: center; min-height: 40px !important; min-width: 0; }
@media (max-width: 860px) { .board.match .board-row { grid-template-columns: 1fr 1fr; } .board.match .cell.wide { grid-column: 1 / -1; } }
