/* vmprices: a low-fare calendar for cloud VMs. Flat colours; the green steps are kept for the prices. */

:root {
  --bg: #f6f6f2;
  --surface: #ffffff;
  --surface-2: #fbfbf8;
  --ink: #15171a;
  --ink-2: #3b4047;
  --muted: #646a72;
  --rule: #e3e3dc;
  --rule-2: #cfcfc6;
  --accent: #0e6a46;
  --accent-ink: #ffffff;
  --focus: #1d5fd1;
  /* price steps within a row: the cheapest cell, then +10%, +25%, +50%, +100%, more */
  --h0: #0b5c3b; --h0-ink: #ffffff;
  --h1: #2e8259; --h1-ink: #ffffff;
  --h2: #8fc6a7; --h2-ink: #10251a;
  --h3: #c3e1cf; --h3-ink: #15171a;
  --h4: #e2f0e7; --h4-ink: #15171a;
  --h5: #f3f4f0; --h5-ink: #3b4047;
  --up: #a23a1d;
  --down: #0e6a46;
  /* history lines per cloud: categorical slots blue, orange, aqua (all pairs pass the CVD checks) */
  --s-azure: #2a78d6; --s-aws: #eb6834; --s-gcp: #1baf7a;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 3.5vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101214; --surface: #171a1d; --surface-2: #14171a;
    --ink: #eef0ec; --ink-2: #c9cdc8; --muted: #969c97; --rule: #2a2f33; --rule-2: #3a4045;
    --accent: #4cc98f; --accent-ink: #0c1f16; --focus: #7aa7ff;
    --h0: #52d39a; --h0-ink: #08180f;
    --h1: #37a873; --h1-ink: #08180f;
    --h2: #1f6b4a; --h2-ink: #eef0ec;
    --h3: #1a4a36; --h3-ink: #e3e8e3;
    --h4: #183427; --h4-ink: #d6dbd6;
    --h5: #1c2221; --h5-ink: #aeb4ae;
    --up: #f08a6c; --down: #52d39a;
    --s-azure: #3987e5; --s-aws: #d95926; --s-gcp: #199e70;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101214; --surface: #171a1d; --surface-2: #14171a;
  --ink: #eef0ec; --ink-2: #c9cdc8; --muted: #969c97; --rule: #2a2f33; --rule-2: #3a4045;
  --accent: #4cc98f; --accent-ink: #0c1f16; --focus: #7aa7ff;
  --h0: #52d39a; --h0-ink: #08180f;
  --h1: #37a873; --h1-ink: #08180f;
  --h2: #1f6b4a; --h2-ink: #eef0ec;
  --h3: #1a4a36; --h3-ink: #e3e8e3;
  --h4: #183427; --h4-ink: #d6dbd6;
  --h5: #1c2221; --h5-ink: #aeb4ae;
  --up: #f08a6c; --down: #52d39a;
  --s-azure: #3987e5; --s-aws: #d95926; --s-gcp: #199e70;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 800; }
h2 { font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 8px; }
h3 { font-size: 15px; margin: 18px 0 6px; }
code { font-size: 0.92em; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 0 4px; word-break: break-word; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 760px; margin: 0 0 16px; }
.note { font-size: 13px; color: var(--muted); max-width: 900px; }

/* ------------------------------------------------------------------ header and footer */
.top { background: var(--surface); border-bottom: 1px solid var(--rule); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 19px; letter-spacing: -0.02em; font-weight: 500; white-space: nowrap; }
.logo b { font-weight: 800; }
.logo-mark { display: grid; grid-template-columns: 8px 8px; gap: 2px; }
.logo-mark i { width: 8px; height: 8px; border-radius: 2px; background: var(--h3); }
.logo-mark i:nth-child(1) { background: var(--h0); }
.logo-mark i:nth-child(4) { background: var(--h1); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg); font-weight: 650; }
.foot { margin-top: 64px; border-top: 1px solid var(--rule); background: var(--surface); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.foot p { max-width: 860px; }
.foot-links a { color: var(--ink-2); }

/* ------------------------------------------------------------------ home */
.hero { padding: 36px 0 8px; }
.checked { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--h0); margin-right: 7px; vertical-align: 1px; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pick { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.pick-k { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.pick ol { margin: 0; padding: 0; list-style: none; }
.pick li { padding: 4px 0; font-size: 14px; border-top: 1px solid var(--rule); }
.pick li:first-child { border-top: 0; }
.pick li a { color: var(--ink); text-decoration: none; }
.pick li a:hover b { text-decoration: underline; }
.pick li b { font-size: 16px; }
.pick li a span { color: var(--muted); font-size: 12px; margin-right: 6px; }

.app { padding-top: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.tab { padding: 8px 14px; font-weight: 650; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tab { white-space: nowrap; }

.controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.controls legend, .field > span { display: block; font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; padding: 0; }
.seg { display: block; }
.seg label { position: relative; display: inline-block; }
.seg label + label { margin-left: -1px; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 6px 11px; font-size: 13px; font-weight: 550; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.seg label:first-of-type span { border-radius: 7px 0 0 7px; }
.seg label:last-of-type span { border-radius: 0 7px 7px 0; }
.seg input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); position: relative; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg label + label input:checked + span { box-shadow: inset 1px 0 0 var(--muted); }
.more-filters { display: none; }
/* Selects and dropdowns share one look: a light box with a chevron. Where the browser supports
   customizable selects, the picker gets the same look as the checkbox dropdowns. */
.field select, .field input, .ms summary { font: inherit; font-size: 13px; color: var(--ink); background-color: var(--surface); border: 1px solid var(--rule-2); border-radius: 8px; padding: 6px 10px; min-height: 34px; max-width: 100%; }
.field select:hover, .ms summary:hover { border-color: var(--muted); }
.field select:focus-visible, .field input:focus-visible, .ms summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field select { appearance: none; padding-right: 30px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23646a72' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
@supports (appearance: base-select) {
  .field select { appearance: base-select; background-image: none; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 12px; }
  .field select::picker-icon { content: ''; width: 6px; height: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
  .field select:open::picker-icon { transform: translateY(2px) rotate(225deg); }
  .field select::picker(select) { appearance: base-select; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); padding: 4px; margin-top: 4px; max-height: min(60vh, 420px); }
  .field select option { padding: 6px 10px; border-radius: 6px; font-size: 13px; }
  .field select option:hover, .field select option:focus-visible { background: var(--bg); outline: 0; }
  .field select option:checked { font-weight: 650; }
  .field select option::checkmark { color: var(--accent); }
  .field select optgroup { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 10px 2px; }
}
.field.price input { width: 104px; }

/* dropdowns of checkboxes */
.ms { position: relative; }
.ms details { position: relative; }
.ms summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-width: 110px; padding-right: 30px; position: relative; white-space: nowrap; user-select: none; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s; }
.ms details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.ms details[open] summary { border-color: var(--ink-2); }
.ms.set summary { border-color: var(--ink-2); font-weight: 650; }
.ms-v { overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.ms-panel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(320px, calc(100vw - 32px)); max-height: min(60vh, 380px); overflow: auto; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); padding: 4px; }
.ms-panel.right { left: auto; right: 0; }
.ms-panel label { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.ms-panel label:hover { background: var(--bg); }
.ms-panel input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; }
.ms-foot { display: flex; gap: 6px; justify-content: flex-end; border-top: 1px solid var(--rule); margin-top: 4px; padding: 6px 4px 2px; position: sticky; bottom: -4px; background: var(--surface); }
.ms-foot button { font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule-2); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.ms-foot button:hover { border-color: var(--ink-2); color: var(--ink); }
.field.grow { flex: 1 1 160px; }
.field.grow input { width: 100%; }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); min-height: 32px; cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.status { font-size: 13px; color: var(--muted); margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }

.legend { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.legend .ring { box-shadow: inset 0 0 0 2px var(--ink); }

/* ------------------------------------------------------------------ the matrix */
.mx-scroll { overflow: auto; max-height: min(78vh, 900px); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overscroll-behavior-x: contain; }
.mx { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.mx thead th { position: sticky; z-index: 2; background: var(--surface); font-weight: 600; }
.mx thead tr.geo th { top: 0; height: 26px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 4px 6px 0; border-bottom: 2px solid var(--rule-2); white-space: nowrap; }
.mx thead tr.geo th span { position: sticky; left: 212px; }
.mx thead tr.rg th { top: 28px; vertical-align: bottom; text-align: right; padding: 4px 6px 6px; min-width: 66px; max-width: 92px; }
.mx thead tr.rg th a { color: var(--ink); text-decoration: none; display: block; }
.mx thead tr.rg th a:hover .rg-code { text-decoration: underline; }
.rg-place { display: block; font-size: 12px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-code { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-prov { display: block; font-size: 9.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mx .corner { left: 0; z-index: 4 !important; text-align: left; vertical-align: bottom; white-space: normal !important; text-transform: none !important; letter-spacing: 0 !important; min-width: 210px; max-width: 210px; padding: 6px 10px 8px 6px !important; border-right: 2px solid var(--rule-2); border-bottom: 2px solid var(--rule-2); }
.mx .corner span { display: block; font-size: 13px; color: var(--ink); font-weight: 650; }
.mx .corner small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.mx tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 500; padding: 4px 10px 4px 6px; min-width: 210px; max-width: 210px; border-right: 2px solid var(--rule-2); }
.mx tbody th a { color: var(--ink); font-weight: 650; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx tbody th a:hover { text-decoration: underline; }
.mx tbody th small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx tbody th small.low { color: var(--ink-2); }
.mx tbody th small.low b { color: var(--ink); }
/* Each cell is a 1px frame around its coloured box (.c): two frames make the 2px gap between boxes,
   and the table itself has no spacing, so borders on headers and row groups are continuous lines. */
/* height: 1px lets the box take the full height of its row (rows are as tall as their two-line
   header), so the gap between boxes is the same 2px up, down and across. */
.mx td { padding: 1px; white-space: nowrap; cursor: pointer; min-width: 66px; height: 1px; }
.mx td .c { text-align: right; padding: 5px 6px; border-radius: 4px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.mx td.e { cursor: default; }
.mx td.e .c { background: transparent; color: var(--rule-2); text-align: center; }
.mx td .c.b { font-weight: 800; box-shadow: inset 0 0 0 2px var(--ink); }
.mx td .a { font-size: 10px; margin-right: 3px; font-weight: 700; }
.h0 { background: var(--h0); color: var(--h0-ink); }
.h1 { background: var(--h1); color: var(--h1-ink); }
.h2 { background: var(--h2); color: var(--h2-ink); }
.h3 { background: var(--h3); color: var(--h3-ink); }
.h4 { background: var(--h4); color: var(--h4-ink); }
.h5 { background: var(--h5); color: var(--h5-ink); }
.mx td:hover:not(.e) .c { box-shadow: inset 0 0 0 2px var(--focus); }
.mx td:focus-visible { outline: 0; }
.mx td:focus-visible .c { outline: 2px solid var(--focus); outline-offset: -2px; }
.more-rows { margin: 12px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.button { display: inline-block; font: inherit; font-size: 14px; font-weight: 650; background: var(--ink); color: var(--surface); border: 0; border-radius: 8px; padding: 8px 14px; text-decoration: none; cursor: pointer; }
.button.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--rule-2); }

/* the calendar: sizes × places */
.cal-bar { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.cal-bar .status { flex: 1 1 auto; min-width: 0; }
.button.fs { flex: none; font-size: 13px; padding: 6px 12px; }
.cal.busy #out { opacity: 0.55; transition: opacity 0.2s; }
.cal-mx th[scope="row"] b { display: inline; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cal-mx th[scope="row"] { min-width: 168px; max-width: 168px; }
.cal-mx .corner { min-width: 168px; max-width: 168px; }
.cal-mx thead tr.geo th span { left: 172px; }
.cal-mx thead tr.rg th { min-width: 88px; max-width: 120px; }
.cal-mx thead tr.rg th { border-bottom: 2px solid var(--rule-2); }
.cal-mx thead tr.rg.one th { top: 0; }
.cal-mx thead tr.rg .corner { text-align: left; }
.cal-mx td { min-width: 88px; max-width: 120px; line-height: 1.25; }
.cal-mx td .c { padding: 3px 5px 4px; }
.cal-mx.wide td, .cal-mx.wide thead tr.rg th { min-width: 112px; }
.cal-mx td .v { display: block; font-size: 13px; font-weight: 650; }
.cal-mx td .c.b .v { font-weight: 800; }
.cal-mx td .t { display: block; font-size: 10.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.92; }
.cal-mx tr.lvl > * { border-top: 2px solid var(--rule-2); }
.cal-mx tbody tr:first-child > * { border-top: 0; }

.pm { display: inline-block; font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.25; border: 1px solid currentColor; border-radius: 3px; padding: 0 2px; margin-right: 3px; vertical-align: 1px; opacity: 0.85; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--rule-2); border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.cal-pop h5 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cal-pop .win { font-size: 14px; margin-top: 6px; }
.cal-pop .win .pm { color: var(--ink-2); }
.alts { margin: 0; padding: 0 0 0 18px; }
.alts li { margin: 2px 0; color: var(--ink-2); }
.alts .pct { color: var(--muted); font-size: 12px; }
.picks { margin-top: 6px; }
.app h2 { margin-top: 28px; }

/* full screen: the calendar fills the viewport; only the matrix scrolls */
html.fs-lock, html.fs-lock body { overflow: hidden; }
.cal.full { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 10px var(--gutter) 12px; display: flex; flex-direction: column; gap: 0; }
.cal.full .controls { margin-bottom: 6px; padding: 8px 12px; }
.cal.full .cal-bar { flex: none; margin-bottom: 10px; }
.cal.full #out { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cal.full .mx-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }

/* the cell card */
.pop { position: absolute; z-index: 60; width: 300px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); padding: 12px 14px; font-size: 13px; }
.pop[hidden] { display: none; }
.cal-pop { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }
.pop h4 { margin: 0; font-size: 14px; }
.pop .pv { font-size: 24px; font-weight: 800; margin: 6px 0 0; letter-spacing: -0.02em; }
.pop .pv small { font-size: 13px; font-weight: 500; color: var(--muted); }
.pop p { margin: 4px 0; color: var(--ink-2); }
.pop .pl { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.pop .x { position: absolute; top: 6px; right: 6px; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.pop svg { display: block; margin-top: 6px; }

/* ------------------------------------------------------------------ tables on pages */
.page { padding-top: 22px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); }
.crumbs .sep { color: var(--rule-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 10px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.stat-k { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.stat-v small { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat-s { font-size: 13px; color: var(--ink-2); }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; margin: 10px 0; }
.prices { width: 100%; border-collapse: collapse; font-size: 14px; }
.prices th, .prices td { padding: 8px 12px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.prices th { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; background: var(--surface-2); position: sticky; top: 0; }
.prices th[data-sort] { cursor: pointer; user-select: none; }
.prices th[data-sort]:hover { color: var(--ink); }
.prices th[aria-sort="ascending"]::after { content: ' ↑'; }
.prices th[aria-sort="descending"]::after { content: ' ↓'; }
.prices .l { text-align: left; }
.prices td.loc { color: var(--ink-2); white-space: normal; min-width: 140px; }
.prices td.num { font-weight: 550; }
.prices td.best { background: var(--h0); color: var(--h0-ink); font-weight: 800; }
.prices td.na { color: var(--rule-2); }
.prices tr.fam th { background: var(--bg); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 14px; position: static; }
.prices tr.fam th .muted { font-weight: 500; font-size: 13px; }
.prices tr:last-child td { border-bottom: 0; }
.prices tbody tr:hover td:not(.best) { background: var(--surface-2); }
.chg { font-size: 11px; font-weight: 700; margin-left: 4px; }
.chg.down { color: var(--down); }
.chg.up { color: var(--up); }
td.best .chg { color: inherit; }
.trend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.spark { flex: none; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.spark circle { fill: var(--accent); }
.filter-row { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.search { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.search input { font: inherit; font-size: 14px; border: 1px solid var(--rule-2); border-radius: 7px; padding: 6px 10px; background: var(--surface); color: var(--ink); width: 220px; max-width: 60vw; }
.more ul.links { list-style: none; padding: 0; margin: 8px 0; columns: 2 300px; column-gap: 28px; }
.more ul.links li { padding: 3px 0; break-inside: avoid; }
ul.chips { list-style: none; padding: 0; margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
ul.chips a { display: inline-block; font-size: 13px; padding: 3px 9px; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; }
ul.chips a:hover { border-color: var(--ink); }
.fam-block h3 { margin-top: 20px; }

/* landing pages: zones, places, sizes, comparisons, spot */
.prices td small.off { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.prices td.best small.off { color: inherit; opacity: 0.85; }
.prices.land td.num a { color: inherit; font-weight: 700; text-decoration: none; }
.prices.land td.num a:hover { text-decoration: underline; }
.prices.land td.best a { color: inherit; }
.prices.land td.l small a { color: var(--ink-2); }
.faq { max-width: 820px; margin-top: 28px; }
.faq h3 { font-size: 15px; margin: 18px 0 4px; }
.faq p { margin: 0 0 8px; color: var(--ink-2); }

/* history */
.views { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.view { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.view[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.view:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.controls [hidden] { display: none !important; }
.hist-out { transition: opacity 0.2s; }
.hist-out.busy { opacity: 0.55; }
.chart-title { font-size: 17px; margin: 18px 0 6px; }
.chart-box { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 6px 4px 0; margin: 8px 0; }
.chart svg { display: block; max-width: 100%; touch-action: pan-y; }
.chart svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.chart .grid { stroke: var(--rule); stroke-width: 1; shape-rendering: crispEdges; }
.chart .grid.base { stroke: var(--rule-2); }
.chart .yt, .chart .xt { font-size: 11px; fill: var(--muted); }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.mute { stroke-width: 1; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .el { font-size: 12px; fill: var(--ink-2); }
.chart .elv { font-weight: 700; fill: var(--ink); }
.chart .cross { stroke: var(--muted); stroke-width: 1; shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; z-index: 5; min-width: 180px; max-width: min(340px, 90%); background: var(--surface); border: 1px solid var(--rule-2); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); padding: 8px 10px; font-size: 12px; pointer-events: none; }
.tip-d { font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.tip-r { display: grid; grid-template-columns: 14px auto 1fr; column-gap: 6px; align-items: baseline; margin: 2px 0; color: var(--ink-2); }
.tip-r i, .chart-legend i, .now i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; align-self: center; }
.tip-r b { color: var(--ink); font-size: 13px; }
.tip-r small { grid-column: 2 / 4; color: var(--muted); font-size: 11px; }
.tip-n { margin-top: 4px; color: var(--muted); font-size: 11px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); margin: 4px 0; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend small { color: var(--muted); font-size: 12px; }
.now-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 8px 0; }
.now { display: grid; grid-template-columns: 14px 1fr; column-gap: 8px; align-items: baseline; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.now b { grid-column: 2; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.now small { grid-column: 2; color: var(--muted); font-size: 12px; }
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.multiple h3 { margin: 10px 0 2px; }
.multiple .chart-legend { font-size: 12px; }
.table-view { margin: 10px 0; font-size: 13px; }
.table-view summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.table-view .table-scroll { max-height: 420px; overflow: auto; }
.movers td.dn { color: var(--down); font-weight: 700; }
.movers td.upc { color: var(--up); font-weight: 700; }
.pick-rows tbody tr { cursor: pointer; }
.pick-rows tbody tr.on td { background: var(--surface-2); font-weight: 650; }
.pick-rows tbody tr:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.nowrap { white-space: nowrap; }

.prose { max-width: 820px; }
.prose li { margin: 6px 0; }

@media (max-width: 720px) {
  .top-in { gap: 10px; min-height: 52px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; }
  .nav { margin-left: -8px; width: calc(100% + 8px); flex-wrap: wrap; overflow: visible; gap: 0 2px; }
  .nav a { padding: 4px 8px; font-size: 13px; }
  .prices td:first-child, .prices th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .prices thead th:first-child { background: var(--surface-2); z-index: 2; }
  .prices tr.fam th:first-child { position: sticky; left: 0; background: var(--bg); }
  .prices .cores { display: none; }
  .hero { padding-top: 20px; }
  .lede { font-size: 15px; }
  .controls { padding: 10px; gap: 8px 10px; }
  .controls:not(.open) .adv { display: none; }
  .more-filters { display: inline-block; font: inherit; font-size: 13px; font-weight: 650; color: var(--ink); background: var(--bg); border: 1px solid var(--rule-2); border-radius: 7px; padding: 6px 12px; min-height: 32px; cursor: pointer; }
  .field { flex: 1 1 140px; }
  .field select, .ms summary { width: 100%; }
  .ms-v { max-width: none; }
  .mx { font-size: 12px; }
  .mx tbody th, .mx .corner { min-width: 136px; max-width: 136px; padding-right: 6px; }
  .mx thead tr.geo th span { left: 140px; }
  .mx td { min-width: 58px; }
  .mx td .c { padding: 5px 4px; }
  .mx thead tr.rg th { min-width: 58px; }
  .cal-mx th[scope="row"], .cal-mx .corner { min-width: 116px; max-width: 116px; }
  .cal-mx th[scope="row"] b { white-space: normal; font-size: 12px; }
  .cal-mx thead tr.geo th span { left: 120px; }
  .cal-mx td, .cal-mx thead tr.rg th { min-width: 76px; max-width: 96px; }
  .cal-mx thead tr.rg th { padding: 4px 4px 5px; }
  .cal-mx td .c { padding: 3px 4px 4px; }
  .cal-mx td .t { font-size: 10px; }
  .cal-bar { align-items: flex-start; }
  .tab { padding: 8px 10px; font-size: 14px; }
  .tabs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 10px); }
  .cal.full { padding: 8px 10px 10px; }
  .cal.full .controls { padding: 6px 8px; margin-bottom: 4px; }
  .cal.full .controls:not(.open) > :not(.more-filters):not([data-key="model"]) { display: none; }
  .cal.full .controls:not(.open) [data-key="model"] legend { display: none; }
  .cal.full .legend { display: none; }
  .cal.full .cal-bar { align-items: center; margin-bottom: 4px; }
  .cal.full .status { margin: 0; }
  .cal-mx .corner small { display: none; }
  .cal-mx .corner span { font-size: 12px; }
  .multiples { grid-template-columns: 1fr; }
  .views { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .view { white-space: nowrap; }
  .prices th, .prices td { padding: 7px 9px; }
  .more ul.links { columns: 1; }
}
