/* Ezel Data Services brand: slate #2E3F52, sandstone #C99A6B, accent #C9773F, cream #F6F4F0 */
:root {
  --slate: #2E3F52; --ink: #1F2A37; --muted: #5E6B78; --sand: #C99A6B; --accent: #C9773F;
  --cream: #F6F4F0; --card: #FFFFFF; --line: #E4DED4; --line-soft: #EFEAE2;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink);
       font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, .brand { font-family: "Space Grotesk", Inter, sans-serif; color: var(--slate); }
a { color: var(--slate); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
header.site img { height: 44px; width: auto; }
.brand { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
header.site h1 { margin: 0; font-size: 24px; line-height: 1.15; }

nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
nav.tabs a { padding: 10px 12px; text-decoration: none; color: var(--muted); font-weight: 500;
             border-bottom: 2px solid transparent; }
nav.tabs a:hover { color: var(--slate); }
nav.tabs a.on { color: var(--slate); border-bottom-color: var(--accent); }

.filters { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 20px 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg a { padding: 6px 12px; text-decoration: none; color: var(--muted); font-size: 14px; border-left: 1px solid var(--line); }
.seg a:first-child { border-left: 0; }
.seg a.on { background: var(--slate); color: #fff; }
.filters label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
         background: var(--card); color: var(--ink); }
.fixed { font-size: 13px; color: var(--muted); }

main { padding-bottom: 40px; }
.lead { color: var(--muted); max-width: 760px; margin: 4px 0 20px; }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(4, 1fr); }
.two { grid-template-columns: 3fr 2fr; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, 1fr); } .two { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h2 { font-size: 16px; margin: 0 0 2px; }
.card .sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 600; color: var(--slate);
              font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.kpi .note { font-size: 12px; color: var(--muted); }
.chart { position: relative; height: 280px; }
.chart.tall { height: 420px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase;
     letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card { min-width: 0; }
td.rank { color: var(--muted); width: 32px; font-variant-numeric: tabular-nums; }
td .small { display: block; font-size: 12px; color: var(--muted); }
details { margin-top: 12px; font-size: 13px; }
summary { cursor: pointer; color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }
.pill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--line-soft); color: var(--muted); }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer.site .wrap { padding-top: 16px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Long-form pages (How it works) */
.prose { max-width: 860px; padding: 28px 36px; }
.prose h1 { font-size: 26px; margin: 0 0 12px; }
.prose h2 { font-size: 19px; margin: 30px 0 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.prose p, .prose li { color: var(--ink); }
.prose img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; }
.prose table { margin: 10px 0 6px; }
.prose td, .prose th { text-align: left; }
.prose code { font-size: 13px; background: var(--line-soft); padding: 1px 5px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 16px; }
@media print {
  nav.tabs, footer.site, header.site .wrap + .wrap { display: none; }
  body { background: #fff; }
  .prose { border: 0; padding: 0; max-width: none; }
  .prose h2 { break-after: avoid; }
  .prose table, .prose img { break-inside: avoid; }
}

/* Phones */
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .card { padding: 14px; }
  th { padding: 6px 6px; font-size: 11px; letter-spacing: .02em; }
  td { padding: 8px 6px; font-size: 13px; }
  td.rank { width: 20px; }
  .hide-sm { display: none; }
  .kpi .value { font-size: 24px; }
  header.site h1 { font-size: 20px; }
  header.site img { height: 36px; }
  nav.tabs a { padding: 8px 8px; font-size: 14px; }
}
