:root { --paper:#fffbf2; --ink:#1b1a17; --soft:#5b574f; --prose:#3a3833; --line:#d9d4c7; --sand:#f0ebe0; --flag:#9b2c1f;
  --agree:#1f6f43; --agree2:#8fcca6; --split:#efe3c4; --dis2:#f2a08c; --dis:#a3241a; --none:#e6e0d4; --mid:#cfc8b8;
  --e10:#7f1d12; --e5:#c45a33; --e2:#e39468; --e0:#f2c9a8;
  --display:'Port Lligat Sans','Trebuchet MS',sans-serif; --text:'Source Sans 3',system-ui,-apple-system,sans-serif; --figure:'Source Serif 4',Georgia,serif;
  --navh:68px; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scrollbar-gutter:stable; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:var(--text); font-size:18px; line-height:1.5; }
a { color:var(--ink); }
:focus-visible { outline:3px solid #3b6ea8; outline-offset:2px; }

/* ---- nav ---- */
.nav { position:sticky; top:0; z-index:20; background:var(--paper); border-bottom:2px solid var(--ink); }
.nav .in { max-width:1080px; margin:0 auto; padding:0 16px; height:var(--navh); display:flex; align-items:center; gap:14px; }
.nav .brand { display:flex; align-items:center; text-decoration:none; flex:none; padding-right:20px; margin-right:6px; border-right:1px solid var(--line); }
.nav .brand span { display:none !important; }
.nav .brand img { height:46px; width:auto; display:block; }
.nav .brand span { font-size:15px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--soft); white-space:nowrap; }
.nav ul { list-style:none; margin:0; padding:0; display:flex; gap:2px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; flex:1; min-width:0; }
.nav ul::-webkit-scrollbar { display:none; }
@media (max-width:820px) { .nav ul { -webkit-mask-image:linear-gradient(to right,#000 82%,transparent); mask-image:linear-gradient(to right,#000 82%,transparent); padding-right:40px; } }
.nav a.l { display:block; padding:7px 10px; border-radius:999px; text-decoration:none; font-size:16px; font-weight:600; white-space:nowrap; color:var(--prose); }
.nav a.l:hover { background:var(--sand); }
.nav a.l[aria-current="page"] { background:var(--ink); color:var(--paper); }
@media (max-width:820px) {
  :root { --navh:auto; }
  .nav .in { flex-wrap:wrap; height:auto; padding:8px 12px 6px; gap:6px; }
  .nav .brand span { display:none; }
  .nav .brand img { height:40px; }
  .nav .brand { border-right:none; padding-right:0; }
  .nav ul { flex-basis:100%; margin:0 -12px; padding:0 8px 2px; }
}

/* ---- page ---- */
main { max-width:1080px; margin:0 auto; padding:0 16px 56px; }
.head { padding:22px 0 18px; border-bottom:1px solid var(--line); }
.kicker { font-size:15px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--soft); }
h1 { font-family:var(--display); font-weight:400; font-size:clamp(30px,6vw,44px); line-height:1.12; margin:6px 0 10px; max-width:820px; text-wrap:balance; }
h2 { font-family:var(--figure); font-weight:600; font-size:clamp(22px,4vw,27px); line-height:1.22; margin:0 0 10px; }
h3 { font-size:16px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--soft); margin:20px 0 8px; }
section { padding-top:30px; }
p { margin:0 0 10px; color:var(--prose); max-width:720px; }
.s { font-size:16px; color:var(--soft); }
.lead { font-size:18.5px; max-width:760px; }
.note { background:var(--sand); border-radius:8px; padding:12px 16px; margin:14px 0 0; max-width:760px; }
.note p { margin:0; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:18px 0 0; }
.stat { border-top:2px solid var(--ink); padding-top:8px; min-width:0; }
.stat b { display:block; font-family:var(--figure); font-size:30px; line-height:1.1; }
.stat span { font-size:15px; color:var(--soft); }
.find { padding-left:20px; margin:0; max-width:760px; } .find li { margin:0 0 8px; color:var(--prose); }
.next { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.btn { display:inline-block; border:1px solid var(--ink); border-radius:8px; padding:9px 14px; font-weight:600; text-decoration:none; background:transparent; font:inherit; font-size:17px; cursor:pointer; color:var(--ink); }
.btn:hover { background:var(--sand); }
.btn.primary { background:var(--ink); color:var(--paper); } .btn.primary:hover { background:#3a3833; }

/* ---- select with a clean arrow ---- */
select { -webkit-appearance:none; appearance:none; font:inherit; font-size:17px; line-height:1.3; color:var(--ink); background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231b1a17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; background-size:12px 8px;
  border:1px solid var(--ink); border-radius:8px; padding:8px 38px 8px 12px; max-width:100%; min-width:180px; cursor:pointer; }
select::-ms-expand { display:none; }
.finder { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.finder label { font-weight:700; }

/* ---- bars, tables ---- */
.bar { display:flex; height:16px; border-radius:3px; overflow:hidden; background:var(--none); min-width:60px; }
.bar i { display:block; height:100%; }
.bar .a { background:var(--agree); } .bar .o { background:var(--mid); } .bar .d { background:var(--dis); }
.tg { color:var(--agree); } .tr { color:var(--dis); }
.glance { border-top:1px solid var(--line); }
.grow { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); text-decoration:none; }
.grow:hover .gname { text-decoration:underline; }
.gname { font-weight:700; } .gdesc { font-size:16px; color:var(--soft); }
.gnum { font-variant-numeric:tabular-nums; font-weight:700; text-align:right; }
.legend { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:15px; color:var(--soft); margin:8px 0 0; }
.legend i { display:inline-block; width:12px; height:12px; border-radius:2px; vertical-align:-1px; margin-right:5px; }
.tabs { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 14px; }
.tab { font:inherit; font-size:16px; font-weight:600; border:1px solid var(--ink); background:transparent; color:var(--ink); border-radius:999px; padding:7px 14px; cursor:pointer; text-decoration:none; }
.tab[aria-selected="true"], .tab[aria-current="true"] { background:var(--ink); color:var(--paper); }
.cmp { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; align-items:center; margin:8px 0; font-size:16px; }
.cmp .lab { color:var(--prose); } .cmp .lab b { color:var(--ink); }
.cmp .num { font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap; }
.cmp .bar { grid-column:1 / -1; height:12px; }
.rule2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0 0 12px; }
.rule2 > div { background:var(--sand); border-radius:8px; padding:10px 12px; font-size:16px; color:var(--prose); }
.lbl { font-size:14px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--soft); margin-bottom:3px; }
.tscroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
table { border-collapse:collapse; width:100%; font-size:16px; }
th { text-align:left; font-size:14.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--soft); font-weight:700; border-bottom:2px solid var(--ink); padding:6px 8px 6px 0; }
td { border-bottom:1px solid var(--line); padding:7px 8px 7px 0; vertical-align:top; }
.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
tr.all td { font-weight:700; background:var(--sand); }
td .bar { margin-top:4px; }
.themes td:first-child { width:62%; } .themes .d { font-size:15px; color:var(--soft); }
.ql { list-style:none; padding:0; margin:0; max-width:820px; }
.ql li { display:grid; grid-template-columns:44px 1fr; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.qn { font-family:var(--figure); font-weight:600; font-size:20px; text-align:right; }
.await { display:inline-block; font-size:14px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--flag); margin-top:4px; }
.rows { border-top:1px solid var(--line); max-width:820px; }
.row { display:grid; grid-template-columns:96px 1fr; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.two { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.two > * { min-width:0; }
footer { max-width:1080px; margin:40px auto 0; padding:14px 16px 28px; border-top:2px solid var(--ink); font-size:16px; color:var(--soft); }
@media (max-width:820px) {
  .two, .rule2 { grid-template-columns:1fr; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .grow { grid-template-columns:1fr; gap:6px; }
  .grow .bar { grid-column:1 / -1; }
}

/* ---- full-screen map page ---- */
body.mappage { height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
body.mappage footer { display:none; }
.mapbar { border-bottom:1px solid var(--line); background:var(--paper); }
.mapbar .in { max-width:1080px; margin:0 auto; padding:8px 16px; display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; }
.mapbar .mk { flex-basis:100%; margin:4px 0 -2px; }
.mapbar .tabs { margin:0; gap:4px; }
.mapbar .tab { padding:5px 12px; font-size:16px; }
.mapbar .zf { margin-left:auto; }
.mapbar select { padding-top:6px; padding-bottom:6px; }
#rsel { display:none; }
.mapshell { position:relative; flex:1; min-height:0; background:#fffbf2; overflow:hidden; }
.mapshell svg { position:absolute; inset:0; width:100%; height:100%; touch-action:none; cursor:grab; user-select:none; -webkit-user-select:none; }
.mapshell svg.drag { cursor:grabbing; }
.z { stroke:#fffbf2; stroke-width:3; vector-effect:non-scaling-stroke; cursor:pointer; }
.z.pool { fill-opacity:.72; }
.z.sel { stroke:var(--ink); stroke-width:3.5; }
.zl { font-family:'Helvetica Neue',Arial,sans-serif; font-weight:700; font-size:24px; fill:#1b1a17; stroke:#fffbf2; stroke-width:5; paint-order:stroke; text-anchor:middle; dominant-baseline:middle; }
.zoom { position:absolute; right:12px; top:12px; display:flex; flex-direction:column; gap:4px; }
.zoom button { width:34px; height:34px; border-radius:6px; border:1px solid var(--line); background:#fff; font:600 19px/1 var(--text); cursor:pointer; color:var(--ink); box-shadow:0 1px 3px rgba(27,26,23,.12); }
.zoom button.rs { font-size:13.5px; font-weight:700; }
.mlegend { position:absolute; left:12px; bottom:12px; background:rgba(255,251,242,.92); border-radius:6px; padding:5px 9px; }
.mlegend .legend { margin:0; gap:3px 10px; font-size:14px; }
.mlegend .legend i { width:10px; height:10px; }
.zcard { position:absolute; top:12px; right:56px; width:340px; max-height:calc(100% - 24px); overflow:auto; background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px 16px; box-shadow:0 4px 18px rgba(27,26,23,.16); }
.zcard[hidden] { display:none; }
.zcard { padding:0; }
.zcard #zbody { padding:16px 18px 14px; }
.zhead { border-bottom:1px solid var(--line); padding-bottom:10px; margin-bottom:12px; }
.zcard h4 { font-family:var(--figure); font-size:22px; line-height:1.2; margin:0 30px 2px 0; }
.zsub { font-size:15px; color:var(--soft); }
.zpool { background:var(--sand); border-radius:6px; padding:8px 10px; font-size:15px; color:var(--prose); margin:0 0 12px; }
.zsec { font-size:14px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--soft); margin:0 0 2px; }
.zdesc { font-size:15px; color:var(--prose); margin:0 0 8px; }
.zcard .cmp { gap:3px 10px; margin:0 0 4px; }
.zcard .cmp .bar { height:12px; margin-bottom:8px; }
.zcard .cmp .n { color:var(--soft); font-size:14.5px; font-weight:400; }
.zleg { margin:6px 0 0; padding-top:10px; border-top:1px solid var(--line); font-size:14px; }
.zleg i { width:10px; height:10px; }
.zfoot { font-size:14px; color:var(--soft); margin:8px 0 0; }
.ztiles { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 0 14px; }
.ztiles > div { background:var(--sand); border-radius:8px; padding:10px 12px; }
.ztiles b { display:block; font-family:var(--figure); font-size:26px; line-height:1.1; }
.ztiles span { font-size:14.5px; color:var(--soft); }
.mrow { display:grid; grid-template-columns:minmax(0,1fr) 70px; gap:3px 10px; align-items:center; font-size:16px; margin:4px 0; }
.mrow .lab { color:var(--prose); } .mrow .lab b { color:var(--ink); }
.mrow .num { text-align:right; font-variant-numeric:tabular-nums; font-weight:700; }
.meter { grid-column:1 / -1; height:12px; background:var(--none); border-radius:3px; overflow:hidden; margin-bottom:6px; }
.meter i { display:block; height:100%; }
.zcard .x { position:absolute; top:10px; right:10px; width:32px; height:32px; border:none; background:transparent; font-size:24px; line-height:1; cursor:pointer; color:var(--soft); }
@media (max-width:820px) {
  .mapbar .in { padding:8px 12px; flex-wrap:wrap; gap:6px 8px; }
  .mapbar .mk { font-size:14px; margin:0; }
  .mapbar .tabs { display:none; }
  #rsel { display:block; flex:1; min-width:0; }
  .mapbar .zf { margin-left:0; flex:1; min-width:0; }
  .mapbar select { min-width:0; width:100%; font-size:16px; padding-right:30px; background-position:right 10px center; }
  .zcard { top:auto; bottom:0; left:0; right:0; width:auto; max-height:55%; border-radius:14px 14px 0 0; }
  .mlegend.hide-m { display:none; }
}

/* zone card: this zone stands out, comparisons step back */
.zmain { background:var(--sand); border-radius:8px; padding:10px 12px 4px; margin:4px 0 12px; }
.zmain .cmp, .zmain .mrow { font-size:17px; margin:0; }
.zmain .cmp .num, .zmain .mrow .num { font-size:20px; font-family:var(--figure); }
.zmain .cmp .bar, .zmain .meter { height:20px; border-radius:4px; margin-bottom:8px; }
.zref .zsec { font-size:13.5px; margin-bottom:4px; }
.zref .cmp, .zref .mrow { font-size:15px; }
.zref .cmp .bar, .zref .meter { height:9px; margin-bottom:8px; }
.zref .cmp .num, .zref .mrow .num { font-size:15px; }
.zref .cmp .num b, .zref .mrow .num { font-weight:600; }

/* ---- disclaimer strip, on every page ---- */
.disc { background:var(--sand); border-bottom:1px solid var(--line); font-size:15px; color:var(--prose); }
.disc .in { max-width:1080px; margin:0 auto; padding:6px 16px; }
.disc b { color:var(--ink); }
@media (max-width:820px) { .disc { font-size:14px; } .disc .in { padding:5px 12px; } }

/* ---- finder ---- */
.finder2 { position:relative; max-width:460px; width:100%; }
.fin { width:100%; font:inherit; font-size:17px; padding:9px 12px 9px 36px; border:1px solid var(--ink); border-radius:8px; background:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%235b574f' stroke-width='2'/%3E%3Cpath d='M11 11l4 4' stroke='%235b574f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:12px center; color:var(--ink); }
.fres { position:absolute; z-index:30; top:calc(100% + 4px); left:0; right:0; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 6px 20px rgba(27,26,23,.16); max-height:320px; overflow:auto; padding:6px; }
.fr { padding:6px 6px 8px; border-bottom:1px solid var(--line); } .fr:last-child { border-bottom:none; }
.fs { font-size:15px; color:var(--soft); margin-bottom:4px; }
.zchip { font:inherit; font-size:16px; font-weight:600; border:1px solid var(--ink); background:#fff; border-radius:999px; padding:3px 11px; margin:2px 4px 2px 0; cursor:pointer; color:var(--ink); }
.zchip:hover, .zchip:focus-visible { background:var(--ink); color:var(--paper); }
.mapbar .finder2 { max-width:340px; }
.mapbar .fin { padding-top:6px; padding-bottom:6px; font-size:16px; }

/* ---- small samples ---- */
tr.few td { color:var(--soft); } tr.few td:first-child::after { content:' *'; }
.zmain.few .num { font-size:16px !important; font-family:var(--text) !important; }
.fewn { font-size:14.5px; color:var(--flag); margin:0 0 6px; font-weight:600; }
.dot { color:var(--soft); font-weight:400; }

/* ---- next step, footer, copy, answers, zone table ---- */
.cta { max-width:1080px; margin:40px auto 0; padding:0 16px; }
.cta .in { background:#eef3f7; border:1px solid #cfdce6; border-radius:10px; padding:14px 18px; }
.cta p { margin:0; max-width:none; }
footer .meta { display:block; margin-top:4px; font-size:14.5px; }
.copy { font:inherit; font-size:15px; font-weight:600; margin-top:12px; width:100%; padding:8px 12px; border:1px solid var(--ink); border-radius:8px; background:#fff; cursor:pointer; color:var(--ink); }
.copy:hover { background:var(--sand); }
.ans { background:#eef3f7; border-radius:6px; padding:8px 10px; margin-top:6px; font-size:16px; }
.about { border:1px solid var(--line); border-radius:10px; padding:14px 18px; max-width:760px; background:#fff; }
.about p { margin:0 0 6px; }
table.zt td { padding:6px 8px 6px 0; } table.zt .bar { height:6px; min-width:50px; margin-top:3px; }
table.zt tr.th td { background:var(--sand); font-weight:700; font-size:15px; padding:6px 8px; }
table.zt td .d { font-size:14px; color:var(--soft); }
.hfind { margin:16px 0 4px; max-width:560px; } .hfind .lbl { display:block; margin-bottom:6px; font-size:14.5px; }
.nav .lang { flex:none; font-size:16px; font-weight:600; text-decoration:none; border:1px solid var(--line); border-radius:999px; padding:5px 11px; white-space:nowrap; }
.nav .lang:hover { background:var(--sand); }
@media (max-width:820px) { .nav .lang { margin-left:auto; order:2; font-size:15px; padding:4px 10px; } .nav ul { order:3; } }

/* ---- color-blind friendly palette, switched on by the visitor ---- */
html.cb { --agree:#1f5f8b; --agree2:#8fbfdf; --split:#ece4cf; --dis2:#f2b071; --dis:#b85a00; --e10:#3f2a6b; --e5:#6d55a3; --e2:#a895d0; --e0:#ddd3ee; }
.disc .in { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 16px; }
.cbsw { display:inline-flex; align-items:center; gap:8px; font:inherit; font-size:14.5px; font-weight:600; color:var(--prose); background:none; border:none; padding:2px 0; cursor:pointer; white-space:nowrap; }
.cbsw .tr2 { position:relative; width:32px; height:18px; border-radius:999px; background:#cfc8b8; transition:background .15s; flex:none; }
.cbsw .tr2::after { content:''; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#fff; transition:left .15s; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.cbsw[aria-checked="true"] .tr2 { background:var(--ink); }
.cbsw[aria-checked="true"] .tr2::after { left:16px; }
.zmain .cmp { grid-template-columns:1fr; gap:2px; }
.zmain .cmp .num { text-align:left; }

/* finder + zone dropdown side by side */
.hrow { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-start; }
.hrow .finder2 { flex:1 1 260px; }
.hrow select { flex:0 0 auto; padding-top:9px; padding-bottom:9px; }
.mapbar .zf { display:flex; gap:8px; align-items:center; }
.mapbar .zf .finder2 { width:280px; }
.mapbar .zf select { min-width:150px; }
@media (max-width:820px) {
  .mapbar .zf { flex-basis:100%; order:3; }
  .mapbar .zf .finder2 { width:auto; flex:1; min-width:0; }
  .mapbar .zf select { min-width:0; width:auto; flex:0 0 40%; }
  .hrow select { flex:1 1 100%; }
}
.gright .gnum { text-align:left; margin-bottom:4px; }
.zmain .cmp .num { white-space:normal; }
.zkick { font-size:13.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--flag); margin-bottom:2px; }
.zpool b { display:block; color:var(--ink); margin-bottom:2px; }

/* zone card: stack label, numbers and bar so long labels never squeeze */
.zcard .cmp { grid-template-columns:1fr; gap:2px; }
.zcard .cmp .num { text-align:left; white-space:normal; }
@media (min-width:821px) { .mlegend { max-width:calc(100% - 430px); } }

/* ---- one height for every field and button ---- */
:root { --ctl:44px; }
select, .fin, .btn, .copy { height:var(--ctl); box-sizing:border-box; font-size:17px; line-height:1.2; }
select { padding-top:0 !important; padding-bottom:0 !important; }
.fin { padding-top:0 !important; padding-bottom:0 !important; }
.btn { display:inline-flex; align-items:center; padding:0 16px; }
.tab { height:40px; display:inline-flex; align-items:center; padding:0 15px; box-sizing:border-box; font-size:16px; }
.mapbar .tab { height:40px; padding:0 14px; font-size:16px; }
.mapbar .fin, .mapbar select { height:40px; font-size:16px; }
.mtool .tab, .mapbar .tabs .tab { line-height:1; }
.zoom button { width:40px; height:40px; }
@media (max-width:820px) { .mapbar .fin, .mapbar select { height:42px; } }
.fn { font-size:14.5px; line-height:1.45; }
/* By zone table: narrow zone column, more room for the four results */
table.zt { table-layout:fixed; }
table.zt th:nth-child(1), table.zt td:nth-child(1) { width:150px; }
table.zt th:nth-child(2), table.zt td:nth-child(2) { width:44px; }
table.zt th:nth-child(3), table.zt td:nth-child(3) { width:92px; }
table.zt tr.th td { width:auto; }
table.zt td:nth-child(n+4), table.zt th:nth-child(n+4) { padding-left:10px; }
table.zt .bar { min-width:0; }
@media (max-width:820px) { table.zt { min-width:720px; } }
.or { align-self:center; font-size:15px; font-weight:700; color:var(--soft); text-transform:lowercase; padding:0 2px; }
@media (max-width:820px) { .hrow .or { flex:0 0 100%; text-align:center; margin:-2px 0; } }
