/* Visual identity aligned with xisra.com (tokens copied from its globals CSS). */
:root {
  --font-sans: "Quicksand", "Fredoka", "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew", "Arial", sans-serif;
  --font-display: "Fredoka", "Quicksand", "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew", "Arial", sans-serif;
  --font-accent: "Yesteryear", cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius: 0.875rem;
  --radius-md: 0.75rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1rem;
  --header-h: 56px;

  --page-bg: #e4e2dd;
  --page-fg: #3d3a36;
  --surface: #e8e6e1;
  --surface-fg: #3d3a36;
  --surface-elevated: #ebe9e5;
  --surface-elevated-fg: #3d3a36;
  --text-muted: #7a756d;
  --text-subtle: #948f87;
  --brand: #db4a2b;
  --brand-fg: #f2f0ec;
  --brand-hover: #c44327;
  --brand-muted: #e07a63;
  --ink-line: #b8b3ab;
  --border-subtle: #c9c5bd;
  --border-default: #b8b3ab;
  --nav-bg: #e4e2ddeb;
  --nav-border: #3d3a361a;
  --code-bg: #ebe9e5;
  --code-fg: #3d3a36;
  --ring: #7a756d;
  --warning-bg: #f3e6d8;
  --warning-fg: #5c3d22;
  --ok-fg: #3d3a36;
  --shadow: 0 1px 2px #00000014;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --page-bg: #0a0a0a;
    --page-fg: #e8e4dd;
    --surface: #111111;
    --surface-fg: #e8e4dd;
    --surface-elevated: #1a1a1a;
    --surface-elevated-fg: #e8e4dd;
    --text-muted: #a3a09a;
    --text-subtle: #73706a;
    --brand: #e05a3d;
    --brand-fg: #f2f0ec;
    --brand-hover: #eb6e52;
    --brand-muted: #c75a3f;
    --ink-line: #6b665f;
    --border-subtle: #262626;
    --border-default: #333333;
    --nav-bg: #0a0a0aeb;
    --nav-border: #e8e4dd14;
    --code-bg: #111111;
    --code-fg: #e8e4dd;
    --ring: #a3a09a;
    --warning-bg: #2a1c14;
    --warning-fg: #f0d0b8;
    --ok-fg: #e8e4dd;
    --shadow: 0 1px 2px #00000080;
    color-scheme: dark;
  }
}

:root.dark {
  --page-bg: #0a0a0a;
  --page-fg: #e8e4dd;
  --surface: #111111;
  --surface-fg: #e8e4dd;
  --surface-elevated: #1a1a1a;
  --surface-elevated-fg: #e8e4dd;
  --text-muted: #a3a09a;
  --text-subtle: #73706a;
  --brand: #e05a3d;
  --brand-fg: #f2f0ec;
  --brand-hover: #eb6e52;
  --brand-muted: #c75a3f;
  --ink-line: #6b665f;
  --border-subtle: #262626;
  --border-default: #333333;
  --nav-bg: #0a0a0aeb;
  --nav-border: #e8e4dd14;
  --code-bg: #111111;
  --code-fg: #e8e4dd;
  --ring: #a3a09a;
  --warning-bg: #2a1c14;
  --warning-fg: #f0d0b8;
  --ok-fg: #e8e4dd;
  --shadow: 0 1px 2px #00000080;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  background: var(--page-bg);
  color: var(--page-fg);
}

/* xisra.com switches to Fredoka for Hebrew / RTL */
html[lang="he"],
[dir="rtl"] {
  font-family: var(--font-display);
}

body {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

img { max-width: 100%; height: auto; display: block; }
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s, opacity 0.2s, background-color 0.2s, border-color 0.2s; }
a:hover { color: var(--brand-hover); }
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--page-bg), 0 0 0 4px color-mix(in oklab, var(--ring) 40%, transparent);
}

.skip-link {
  position: fixed;
  right: 1rem;
  top: 0;
  z-index: 80;
  background: var(--brand);
  color: var(--brand-fg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transform: translateY(-150%);
  transition: transform 0.15s;
}
.skip-link:focus { transform: none; }

/* —— Header (xisra.com lockup, LTR so the mark stays recognizable) —— */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  direction: ltr;
}
.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--header-h);
  padding: 0 1rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.brand-link {
  display: inline-flex;
  flex-shrink: 0;
  transition: opacity 0.2s;
  z-index: 50;
}
.brand-link:hover { opacity: 0.9; color: inherit; }
.brand-pill {
  position: relative;
  background: var(--brand);
  color: var(--brand-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.75px;
  padding: 4px 16px;
  border-radius: var(--radius-lg);
}
.brand-hello {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: rotate(-12deg);
  white-space: nowrap;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.75px;
  color: var(--page-fg);
  pointer-events: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header-title {
  display: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  direction: rtl;
}
@media (min-width: 720px) {
  .header-title { display: block; margin-inline-end: auto; margin-left: 1.25rem; }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--page-fg);
  border: 1px solid transparent;
  flex-shrink: 0;
}
.icon-btn:hover {
  border-color: var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--page-fg);
}
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root.dark .theme-toggle .icon-sun { display: block; }
:root.dark .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .theme-toggle .icon-sun { display: block; }
  :root:not(.light) .theme-toggle .icon-moon { display: none; }
}

/* —— Section nav —— */
.section-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.nav-toggle,
.nav-actions {
  position: relative;
  z-index: 81;
}
.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.1rem;
  padding: 0 0.45rem;
  border-inline-start: 1px solid var(--border-subtle);
}
.nav-actions .icon-btn { width: 40px; height: 40px; }
.nav-actions .ico { width: 20px; height: 20px; }
.section-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--page-fg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: var(--radius-md);
}
.section-nav a:hover { color: var(--brand); }
.section-nav a[aria-current="true"] { color: var(--brand); }

/* —— Layout —— */
.main {
  padding-top: 0.75rem;
  padding-bottom: 4rem;
}
.wrap {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
}
.wrap-wide { width: min(920px, calc(100% - 2rem)); margin-inline: auto; }

section {
  padding-top: 2.25rem;
  scroll-margin-top: 52px;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.lede {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  font-size: 1rem;
}

/* —— Hero —— */
.hero {
  padding-top: 1.35rem;
}
.kicker {
  /* Yesteryear has no Hebrew glyphs — use Fredoka, the site's Hebrew display face */
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 9vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.hero-plan {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hero-status {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 38rem;
  margin-bottom: 0.85rem;
}
.hero-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.hero-updated time { font-weight: 500; color: var(--page-fg); }

.milestone {
  background: var(--surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow);
}
.milestone-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-transform: none;
}
.milestone h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.milestone-when { font-weight: 500; color: var(--page-fg); }
.milestone-note { color: var(--text-muted); font-size: 0.92rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn-primary {
  color: var(--brand);
  background: var(--surface);
  border-color: var(--brand);
}
.btn-primary:hover {
  color: var(--brand-fg);
  background: var(--brand);
  border-color: var(--brand);
}
.btn-ghost {
  color: var(--text-muted);
  padding-inline: 0.4rem;
  background: transparent;
}
.btn-ghost:hover { color: var(--page-fg); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.disclaimer-banner {
  margin-top: 1.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-inline-start: 3px solid var(--brand-muted);
  padding: 0.55rem 0.85rem;
  background: color-mix(in oklab, var(--brand) 6%, var(--surface));
  border-start-end-radius: var(--radius-md);
  border-end-end-radius: var(--radius-md);
}

.location-line {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.location-line a { font-weight: 500; }

/* —— Progress —— */
.progress {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.progress-item {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.75rem;
  align-items: start;
  position: relative;
  padding-bottom: 0.95rem;
}
.progress-item:last-child { padding-bottom: 0; }
.progress-item::before {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 1.05rem;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}
.progress-item:last-child::before { display: none; }

.dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  background: var(--page-bg);
  margin-top: 0.15rem;
  z-index: 1;
  position: relative;
}
.progress-item.is-done .dot {
  background: var(--page-fg);
  border-color: var(--page-fg);
}
.progress-item.is-current .dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 22%, transparent);
}
.progress-item.is-future .dot {
  background: var(--page-bg);
  border-color: var(--ink-line);
}

.progress-label { font-weight: 600; line-height: 1.3; }
.progress-item.is-future .progress-label { color: var(--text-muted); }
.progress-item.is-current .progress-label { color: var(--brand); }
.progress-detail { font-size: 0.85rem; color: var(--text-muted); }

@media (min-width: 800px) {
  .progress {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 0;
    padding-bottom: 0.5rem;
  }
  .progress-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-width: 0;
    flex: 1 1 0;
    padding: 0 0.2rem 0.25rem;
  }
  .progress-item::before {
    right: auto;
    left: 0;
    top: 0.55rem;
    bottom: auto;
    width: 100%;
    height: 1px;
    transform: translateX(-50%);
  }
  .progress-item:last-child::before { display: none; }
  .dot { margin-top: 0; }
}

/* —— Timeline —— */
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 1px;
  background: var(--border-subtle);
}
.tl-item {
  position: relative;
  padding: 0 2rem 1.5rem 0;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  right: 0.2rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--page-fg);
  border: 2px solid var(--page-bg);
  box-shadow: 0 0 0 1px var(--border-default);
}
.tl-item.is-upcoming .tl-dot {
  background: var(--page-bg);
  box-shadow: 0 0 0 2px var(--brand);
}
.tl-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.15rem;
}
.tl-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.tl-item p { color: var(--page-fg); font-size: 0.95rem; }
.tl-source {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.badge-upcoming {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  vertical-align: middle;
}

/* —— Numbers —— */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.9rem;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--page-fg);
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.stat-label { font-weight: 600; font-size: 0.88rem; margin-top: 0.2rem; }
.stat-note { font-size: 0.78rem; color: var(--text-muted); }

.plots { margin-top: 0.5rem; }
.plot-row {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  grid-template-areas: "label meta" "bar bar" "note note";
  gap: 0.15rem 0.55rem;
  align-items: baseline;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}
.plot-label { font-weight: 600; grid-area: label; }
.plot-track {
  grid-area: bar;
  height: 1.15rem;
  background: color-mix(in oklab, var(--border-subtle) 70%, var(--surface));
  border-radius: 999px;
  overflow: hidden;
}
.plot-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  min-width: 2px;
}
.plot-bar.is-affordable {
  background: var(--page-fg);
}
.plot-meta { grid-area: meta; color: var(--text-muted); font-size: 0.8rem; text-align: start; }
.plot-note {
  grid-area: note;
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.plot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.plot-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--brand);
  display: inline-block;
}
.swatch.affordable { background: var(--page-fg); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 0.65rem 0.8rem;
  text-align: start;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: color-mix(in oklab, var(--surface) 80%, var(--page-bg));
}
tr:last-child td { border-bottom: 0; }
.note-cell { color: var(--text-muted); font-size: 0.8rem; }

/* —— Cards / lists —— */
.card-list { display: flex; flex-direction: column; gap: 0.7rem; }
.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.05rem;
}
.card h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.callout {
  margin-top: 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-lg);
  background: var(--warning-bg);
  color: var(--warning-fg);
  border: 1px solid color-mix(in oklab, var(--brand) 25%, var(--border-subtle));
  font-size: 0.95rem;
}

/* —— Updates —— */
.update {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
}
.update-date { font-size: 0.82rem; font-weight: 600; color: var(--brand); }
.update h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin: 0.15rem 0 0.2rem; }
.update-author { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.update p { margin-bottom: 0.7rem; }
.update p:last-child { margin-bottom: 0; }

/* —— Levy / risks / questions —— */
.dated-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.dated-list li { padding-right: 0; }
.dated-list .when { font-weight: 600; color: var(--brand); font-size: 0.88rem; display: block; margin-bottom: 0.15rem; }

.risk-list, .q-list { list-style: none; counter-reset: q; }
.risk-list li, .q-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.risk-list li:first-child, .q-list li:first-child { padding-top: 0; }
.risk-list li:last-child, .q-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.risk-list h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.q-list li {
  padding-right: 1.8rem;
  position: relative;
  counter-increment: q;
}
.q-list li::before {
  content: counter(q) ".";
  position: absolute;
  right: 0;
  top: 0.8rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}
.q-list li:first-child::before { top: 0; }

/* —— FAQ —— */
details.faq {
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.15rem 0;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-left: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s;
  flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(135deg); }
details.faq .faq-a {
  padding: 0 0 0.9rem;
  color: var(--page-fg);
}

/* —— Sources —— */
.source-list { list-style: none; }
.source-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--border-subtle); }
.source-list li:last-child { border-bottom: 0; }
.source-list a { font-weight: 500; word-break: break-word; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 1rem 3rem;
  direction: ltr;
}
.footer-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand { align-self: center; margin-top: 0.6rem; }
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-subtle);
  direction: rtl;
  text-align: center;
}
.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  direction: rtl;
  text-align: center;
  max-width: 40rem;
}

.noscript {
  margin: 1.5rem 1rem 2rem;
  padding: 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-align: center;
}

@media (max-width: 379px) {
  .brand-pill { font-size: 24px; padding: 4px 12px; }
  .brand-hello { font-size: 20px; }
}

/* —— Icons & visual blocks —— */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.2em;
}
.ico-sm { width: 1em; height: 1em; }
.ico-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: color-mix(in oklab, var(--brand) 12%, var(--surface-elevated));
  color: var(--brand);
  flex-shrink: 0;
}
.ico-badge .ico { width: 1.15rem; height: 1.15rem; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.sec-head .section-title { margin-bottom: 0; }

.section-nav a {
  gap: 0.35rem;
}
.section-nav a .ico { color: var(--brand); }

.milestone {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
}
.milestone-body { min-width: 0; }

/* Progress stage icons */
.stage-ico {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-default);
  background: var(--page-bg);
  color: var(--text-muted);
  z-index: 1;
  position: relative;
  margin-top: 0;
}
.stage-ico .ico { width: 1.05rem; height: 1.05rem; }
.progress-item { grid-template-columns: 2.15rem 1fr; }
.progress-item::before { right: 1.05rem; top: 2.2rem; }
.progress-item.is-done .stage-ico {
  background: var(--page-fg);
  border-color: var(--page-fg);
  color: var(--page-bg);
}
.progress-item.is-current .stage-ico {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 22%, transparent);
}
.progress-item.is-future .stage-ico {
  background: var(--page-bg);
  border-color: var(--ink-line);
  color: var(--text-subtle);
}
@media (min-width: 800px) {
  .progress-item { grid-template-columns: 1fr; }
  .progress-item::before { right: auto; left: 0; top: 1.05rem; bottom: auto; width: 100%; height: 1px; transform: translateX(-50%); }
}

/* Timeline icons in the rail */
.tl-dot {
  width: 1.55rem;
  height: 1.55rem;
  right: -0.2rem;
  top: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--page-fg);
  color: var(--page-bg);
  border: 2px solid var(--page-bg);
  box-shadow: 0 0 0 1px var(--border-default);
}
.tl-dot .ico { width: 0.85rem; height: 0.85rem; }
.tl-item { padding-right: 2.4rem; }
.timeline::before { right: 0.55rem; }
.tl-item.is-upcoming .tl-dot {
  background: var(--page-bg);
  color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

/* Before / after */
.ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin: 0.4rem 0 1.25rem;
  padding: 1rem 0.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
}
.ba-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.35rem;
}
.ba-side.is-new .ba-n { color: var(--brand); }
.ba-l { font-weight: 600; font-size: 0.9rem; }
.ba-s { font-size: 0.78rem; color: var(--text-muted); }
.ba-arrow { color: var(--brand); }
.ba-arrow .ico { width: 1.8rem; height: 1.8rem; }
.ba-svg { color: var(--page-fg); margin-inline: auto; }
.ba-tall { color: var(--brand); }

.stat { text-align: start; display: flex; flex-direction: column; gap: 0.15rem; }
.stat .ico-badge { margin-bottom: 0.35rem; }

/* Apartment rules grid */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 700px) {
  .rule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rule-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem 0.85rem;
}
.rule-card h3 { font-size: 0.98rem; font-weight: 600; margin: 0.45rem 0 0.2rem; }
.rule-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Gauge fallback */
.gauge { margin: 0.4rem 0 1.25rem; }
.gauge-track {
  position: relative;
  height: 1.15rem;
  background: color-mix(in oklab, var(--border-subtle) 80%, var(--surface));
  border-radius: 999px;
  overflow: hidden;
}
.gauge-fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: var(--page-fg);
  border-radius: 999px 0 0 999px;
}
.gauge-gap {
  position: absolute;
  inset-block: 0;
  background: color-mix(in oklab, var(--brand) 45%, var(--surface));
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in oklab, var(--brand) 55%, transparent) 0 6px,
    color-mix(in oklab, var(--brand) 25%, transparent) 6px 12px
  );
}
.gauge-mark.target {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  background: var(--brand);
  border-radius: 2px;
  transform: translateX(-1px);
}
.gauge-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.gauge-labels .is-target { color: var(--brand); }
.gauge-note { margin-top: 0.5rem; font-size: 0.88rem; color: var(--text-muted); }

/* 3-step flow */
.flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 1.4rem;
}
.flow-step {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.flow-step h3 { font-size: 1rem; font-weight: 600; }
.flow-step p { font-size: 0.88rem; color: var(--text-muted); }
.flow-arrow { display: flex; justify-content: center; color: var(--brand); transform: rotate(-90deg); }
@media (min-width: 720px) {
  .flow { flex-direction: row; align-items: stretch; }
  .flow-arrow { transform: none; align-self: center; }
  .flow-step { flex: 1; }
}

.card-list .ico-card { display: flex; gap: 0.75rem; align-items: flex-start; }
.ico-card h3 { margin-bottom: 0.2rem; }

.mag-fallback, .mix-fallback, .year-fallback { color: var(--page-fg); }
.mag-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}
.mag-row:last-child { border-bottom: 0; }
.mag-row.is-profit { color: var(--brand); font-weight: 600; }
.mix-fallback { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.year-fallback { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.year-chip {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
}
.year-chip strong { margin-left: 0.25rem; }
.chart-caption { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }

/* Charts */
.chart-slot { margin: 0.4rem 0 1.3rem; }
.chart-canvas { width: 100%; min-height: 220px; }
.chart-canvas[hidden] { display: none !important; }
.chart-slot.is-live .chart-fallback { display: none; }
.chart-slot.is-live .chart-canvas { display: block; }
.recharts-wrapper, .recharts-surface { font-family: var(--font-display); }
.chart-tooltip {
  background: var(--surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.7rem;
  color: var(--page-fg);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
  direction: rtl;
  text-align: right;
}

/* Updates */
.update-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin: 0.4rem 0 0.9rem; }
.update-bullets li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.95rem; }
.update-bullets .ico { color: var(--brand); margin-top: 0.15rem; }
.read-full { border-top: 1px solid var(--border-subtle); padding-top: 0.4rem; }
.read-full summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.read-full-body { padding: 0.2rem 0 0.4rem; }
.read-full-body p { margin-bottom: 0.7rem; }

/* Levy 3-step */
.levy-track {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  position: relative;
}
@media (min-width: 700px) {
  .levy-track { grid-template-columns: repeat(3, 1fr); }
}
.levy-step {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem 0.95rem 0.9rem;
}
.levy-num {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.levy-step .when { font-weight: 600; color: var(--brand); font-size: 0.88rem; margin-bottom: 0.25rem; }
.levy-step p { font-size: 0.9rem; }

/* Risks / questions */
.risk-grid, .q-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .risk-grid, .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.risk-card, .q-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.9rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.risk-card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.2rem; }
.risk-card p, .q-card p { font-size: 0.88rem; color: var(--page-fg); }

/* FAQ icons */
details.faq summary { gap: 0.55rem; }
details.faq summary .ico { color: var(--brand); flex-shrink: 0; }
details.faq summary span { flex: 1; text-align: start; }

/* Sources */
.src-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .src-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.src-card {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.85rem;
  color: var(--page-fg);
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s;
}
.src-card:hover { border-color: var(--brand); color: var(--page-fg); }
.src-card strong { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.src-host { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; direction: ltr; text-align: right; }

.location-line .ico { color: var(--brand); margin-left: 0.2rem; }
.section-sub { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.6rem; }

.hero-updated, .location-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }


/* Developer card */
.hero-developer {
  display: block;
  text-align: center;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hero-developer .ico {
  color: var(--brand);
  vertical-align: -0.2em;
  margin-inline-end: 0.3rem;
}
.hero-developer strong { color: var(--page-fg); font-weight: 600; }
.dev-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.4rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.1rem;
}
.dev-body { min-width: 0; }
.dev-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.15rem;
}
.dev-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}
.dev-legal { font-weight: 500; color: var(--text-muted); font-size: 0.92em; }
.dev-card p { font-size: 0.95rem; margin: 0 0 0.55rem; }
.dev-card p:last-child { margin-bottom: 0; }
.dev-note { color: var(--text-muted); font-size: 0.88rem !important; }
.dev-sources { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; margin-top: 0.35rem; }

/* Narrow 2-bar charts on wide screens */
.chart-narrow { max-width: 32rem; margin-inline: auto; }
.profit-callout {
  text-align: center;
  background: color-mix(in oklab, var(--brand) 10%, var(--surface-elevated));
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  margin: 0.2rem 0 0.6rem;
  font-size: 0.95rem;
}
.profit-callout strong { color: var(--brand); }
.faq-block { margin-top: 2.25rem; }

/* Keep 2-bar charts from stretching thin on desktop */
[data-chart="profit"] .chart-canvas,
[data-chart="magdilim"] .chart-canvas {
  max-width: 32rem;
  margin-inline: auto;
}
.profit-callout {
  text-align: center;
  background: color-mix(in oklab, var(--brand) 10%, var(--surface-elevated));
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  margin: 0.2rem 0 0.6rem;
  font-size: 0.95rem;
}
.profit-callout strong { color: var(--brand); }


/* —— Map section —— */
.map-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  margin-bottom: 0.7rem;
}
.map-related-lede { font-size: 0.92rem; }
.map-frame {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin: 0.2rem 0 0.55rem;
}
.map-canvas {
  width: 100%;
  height: 280px;
  z-index: 0;
}
@media (min-width: 700px) {
  .map-canvas { height: 420px; }
}
.map-canvas[hidden] { display: none !important; }
.map-frame.is-live .map-fallback { display: none; }
.map-fallback { padding: 1.1rem 1.15rem; color: var(--text-muted); }
.map-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}
.map-legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}
.map-legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.map-swatch {
  width: 1.15rem;
  height: 0.85rem;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  box-sizing: border-box;
}
.map-swatch.is-main {
  background: color-mix(in oklab, var(--brand) 42%, transparent);
  border: 2px solid var(--brand);
}
.map-swatch.is-related {
  background: color-mix(in oklab, var(--brand) 8%, transparent);
  border: 2px dashed var(--brand);
}
.map-swatch.is-other {
  background: color-mix(in oklab, var(--text-muted) 22%, transparent);
  border: 2px solid var(--text-muted);
}

/* Leaflet theming */
#map .leaflet-container {
  font-family: var(--font-display);
  background: var(--surface);
  color: var(--page-fg);
}
#map .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 34px;
  background: var(--surface-elevated);
  color: var(--page-fg);
  border: 1px solid var(--border-subtle);
}
#map .leaflet-control-zoom a:hover {
  background: var(--surface);
  color: var(--page-fg);
}
#map .leaflet-bar { border: 0; box-shadow: var(--shadow, 0 1px 4px rgba(0,0,0,.12)); }
#map .leaflet-control-attribution {
  background: color-mix(in oklab, var(--surface-elevated) 88%, transparent);
  color: var(--text-muted);
  font-size: 10px;
  direction: ltr;
  text-align: left;
}
#map .leaflet-control-attribution a { color: var(--brand); }

.map-popup .leaflet-popup-content-wrapper,
.map-popup .leaflet-popup-tip {
  background: var(--surface-elevated);
  color: var(--page-fg);
  box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.14));
  border-radius: var(--radius-md);
}
.map-popup .leaflet-popup-content {
  margin: 0.7rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.45;
}
.map-popup-inner h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}
.map-popup-plan { font-weight: 600; color: var(--brand); margin: 0 0 0.35rem; }
.map-popup-inner p { margin: 0 0 0.25rem; }
.map-popup-units { margin-top: 0.35rem !important; }
.map-popup-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem !important;
}
.map-popup-link {
  display: inline-flex;
  margin-top: 0.45rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand);
}
.map-canvas { touch-action: pan-y pinch-zoom; }
.map-popup .leaflet-popup-close-button {
  color: var(--text-muted);
  font-size: 18px;
  padding: 6px 8px 0 0;
}

/* Dark OSM tiles via invert so we stay on the official OSM tile servers */
html.dark .map-canvas .leaflet-tile-pane,
.map-dark .map-canvas .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.92);
}
@media (prefers-color-scheme: dark) {
  html:not(.light) .map-canvas .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.92);
  }
}


/* —— Mobile hamburger nav —— */
.nav-toggle { display: none; }
.nav-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}
.nav-toggle-icon span {
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 6px; }
.nav-toggle-icon span:nth-child(3) { top: 12px; }
body.nav-open .nav-toggle-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
body.nav-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: color-mix(in oklab, #1a1816 48%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer {
  position: fixed;
  z-index: 70;
  top: 50%;
  left: 50%;
  width: min(22rem, calc(100vw - 2.4rem));
  max-height: min(calc(100dvh - 5.5rem), 36rem);
  overflow: auto;
  background: var(--surface-elevated);
  color: var(--page-fg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 0.7rem 0.85rem;
  box-shadow: 0 16px 40px color-mix(in oklab, #000 18%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.nav-drawer.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.nav-drawer-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0.85rem 0.4rem;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--page-fg);
  font-weight: 600;
  font-size: 1.02rem;
}
.nav-drawer-link .ico { color: var(--brand); width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.nav-drawer-link:hover,
.nav-drawer-link[aria-current="true"] {
  background: color-mix(in oklab, var(--brand) 10%, var(--surface));
  color: var(--brand);
}
body.nav-locked { overflow: hidden; }

@media (max-width: 767px) {
  .section-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { border-inline-start: 0; margin-inline-start: auto; }
  .section-nav-wrap { padding-inline-start: 0.15rem; }
}
@media (min-width: 768px) {
  .nav-toggle,
  .nav-backdrop,
  .nav-drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-icon span,
  .nav-backdrop,
  .nav-drawer {
    transition: none;
  }
  .nav-drawer { transform: translate(-50%, -50%); }
}

/* —— Subscribe form —— */
.sub-form {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sub-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sub-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.sub-field input {
  font: inherit;
  font-weight: 400;
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default, var(--border-subtle));
  background: var(--page-bg);
  color: var(--page-fg);
  width: 100%;
}
.sub-field input:focus-visible {
  border-color: var(--brand);
}
.sub-field input[aria-invalid="true"],
.sub-consent input[aria-invalid="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent);
}
.sub-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.sub-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--brand);
}
.sub-privacy {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.sub-submit { align-self: flex-start; min-height: 48px; }
.sub-status { min-height: 1.3em; margin: 0; font-size: 0.95rem; }
.sub-status.is-success { color: var(--page-fg); font-weight: 600; }
.sub-status.is-error { color: var(--brand); font-weight: 600; }


/* —— Economy / prices / deals —— */
.src-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline-start: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.src-link .ico-src,
.ico-src { width: 0.85rem; height: 0.85rem; }
.flag-pill {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  background: color-mix(in oklab, var(--brand) 14%, var(--surface-elevated));
  color: var(--brand);
  vertical-align: middle;
}
.panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1rem 1.1rem;
  margin: 1rem 0;
}
.estimate-panel { border-color: color-mix(in oklab, var(--brand) 35%, var(--border-subtle)); }
.illustration-panel { border-style: dashed; }
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.7rem 0 1rem;
}
.fact-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.fact-tile {
  background: var(--page-bg);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fact-tile span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.fact-tile strong { font-size: 1rem; }
.fact-tile.is-base { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 45%, transparent); }
.estimate-amount {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0.2rem 0 0.55rem;
  color: var(--brand);
  font-family: var(--font-display);
}
.formula {
  font-size: 0.88rem;
  color: var(--text-muted);
  unicode-bidi: isolate;
}
.formula[dir="ltr"] { text-align: right; }
.formula code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--page-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  white-space: pre-wrap;
}
.also-gaps { margin: 0.4rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; }
.also-gaps li { padding: 0.2rem 0; color: var(--text-muted); }
.also-gaps li span { font-weight: 700; color: var(--page-fg); margin-inline-end: 0.3rem; }
.side-card { align-items: flex-start; }
.side-facts { margin: 0.35rem 0 0.6rem; padding: 0; list-style: none; }
.side-facts li { padding: 0.35rem 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.95rem; }
.side-facts li:last-child { border-bottom: 0; }
.unpublished { font-size: 0.9rem; color: var(--text-muted); margin: 0.4rem 0 0; }
.missing-list { margin: 0 0 1.2rem; padding: 0 1.1rem 0 0; }
.missing-list li { padding: 0.25rem 0; }
.chart-source { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.3rem; }
.simple-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.simple-table th, .simple-table td { padding: 0.4rem 0.35rem; border-bottom: 1px solid var(--border-subtle); text-align: start; }
.deals-note { font-size: 0.9rem; color: var(--text-muted); }
.deal-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.7rem 0 0.8rem; }
.chip {
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--surface-elevated);
  color: var(--page-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.chip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-fg);
}
.deals-scroll {
  max-height: min(28rem, 70dvh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
}
.deals-list { list-style: none; margin: 0; padding: 0; }
.deal-row {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}
.deal-row:last-child { border-bottom: 0; }
.deal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-weight: 650;
}
.deal-street { flex: 1 1 auto; }
.deal-top time { color: var(--text-muted); font-weight: 500; font-size: 0.88rem; }
.deal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand) 14%, var(--surface));
  color: var(--brand);
}
.deal-meta { margin-top: 0.25rem; font-size: 0.92rem; color: var(--text-muted); }
.deals-loading, .deals-empty { margin: 0; padding: 1rem; color: var(--text-muted); }
@media (max-width: 420px) {
  .fact-grid.three { grid-template-columns: 1fr; }
}


.compound-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 0.6rem 0 1.3rem;
}
@media (min-width: 720px) {
  .compound-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.compound-card h3 { margin: 0 0 0.25rem; }
.compound-area { margin: 0; font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }
.compound-range { margin: 0.25rem 0 0.4rem; }
.assumption-panel { border-style: dashed; }
.press-panel { background: var(--surface); }
.assume-list { margin: 0.4rem 0 0.6rem; padding: 0 1.1rem 0 0; }
.assume-list li { padding: 0.2rem 0; }
.social-panel { margin-top: 1.2rem; }
.fact-tile strong span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
