/* ahozon.benbasha.com growth-table pages. Same tokens as css/site.css (the
   landing), direction-agnostic (logical properties) for he/ar and LTR langs. */
@font-face { font-family: 'Assistant'; src: url('/fonts/Assistant_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Assistant'; src: url('/fonts/Assistant_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --cream-50: #FBF7F0; --sand-200: #F1E9DF; --line: #ECE4DA; --white: #FFFFFF;
  --ink-900: #3B3330; --ink-600: #7A6F67; --ink-500: #8C8077;
  --terra-500: #E0936A; --terra-700: #B5633A; --terra-soft: rgba(224,147,106,0.16);
  --sage-500: #6FAE96; --sage-700: #4E8C73; --sage-soft: #E9F1EC;
  --amber-soft: rgba(216,162,78,0.18);
  --page: var(--cream-50); --card: var(--white); --text: var(--ink-900); --text-2: var(--ink-600);
  --font: 'Assistant', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--terra-700); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 8px 0 14px; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
p { margin: 0 0 12px; }
bdi.n { white-space: nowrap; }

.top { background: rgba(251,247,240,0.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.top nav { margin-inline-start: auto; display: flex; gap: 16px; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--text-2); text-decoration: none; }
.top nav a[aria-current] { color: var(--text); }

.crumbs { font-size: 14px; color: var(--text-2); margin: 16px 0 0; }
.crumbs a { color: var(--text-2); }
.lead { font-size: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.note { font-size: 14px; color: var(--text-2); }
.disclaimer { background: var(--amber-soft); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 18px 0; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: start; border-bottom: 1px solid var(--line); }
th { font-size: 14px; color: var(--text-2); font-weight: 700; }
tr.median td { background: var(--sage-soft); font-weight: 700; }
td.v, th.v { text-align: end; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hubtable td, .hubtable th { padding: 6px 8px; font-size: 15px; white-space: nowrap; }
.hubtable tr.switch td { border-top: 2px solid var(--terra-500); }

.calc { background: var(--card); border: 2px solid var(--terra-soft); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.calc form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.calc label { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; color: var(--text-2); gap: 4px; }
.calc input, .calc select { font: inherit; font-size: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-50); color: var(--text); width: 9.5em; direction: ltr; }
.calc select { width: auto; }
.calc button { font: inherit; font-weight: 700; font-size: 17px; padding: 11px 22px; border: 0; border-radius: 12px; background: var(--terra-500); color: #fff; cursor: pointer; }
.calc output { display: block; margin-top: 14px; min-height: 1.6em; }
.calc output b { font-size: 26px; display: block; }

.chart { margin: 8px 0 0; direction: ltr; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .c { fill: none; stroke: var(--sage-500); stroke-width: 1.6; }
.chart .c50 { stroke: var(--sage-700); stroke-width: 2.6; }
.chart .ax { fill: var(--text-2); font-size: 12px; font-family: var(--font); }
.chart .mk { stroke: var(--terra-500); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .dot { fill: var(--terra-500); stroke: #fff; stroke-width: 2; }

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.links a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.links a span { display: block; font-weight: 400; font-size: 14px; color: var(--text-2); }
.pager { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 12px; }

.cta { background: var(--sage-soft); border-radius: var(--radius); padding: 18px; margin: 22px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta img.icon { width: 64px; height: 64px; border-radius: 15px; }
.cta div { flex: 1 1 260px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.badges img { height: 44px; width: auto; }

.foot { border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 0 40px; font-size: 14px; color: var(--text-2); }
.foot a { color: var(--text-2); }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; padding: 0; list-style: none; }
.langs a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { gap: 12px; font-size: 14px; }
  .calc input { width: 8em; }
  .hubtable td, .hubtable th { padding: 6px 5px; font-size: 14px; }
}
