:root {
  --ink: #16202c; --ink-soft: #4b5768; --ink-faint: #8a94a3;
  --line: #e6e9ee; --line-soft: #f0f2f5;
  --surface: #ffffff; --canvas: #f6f7f9;
  --brand: #1c3f57; --brand-dark: #12293a; --brand-tint: #eaf1f5;
  --radius: 10px; --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 4px 14px rgba(16,24,40,.08);
}
body {
  background: var(--canvas); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.seo-page { max-width: 980px; margin: 0 auto; padding: 24px 24px 80px; }
.breadcrumbs { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs span.sep { margin: 0 6px; }

.seo-page h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.01em; }
.seo-page .lede { color: var(--ink-soft); font-size: 15px; margin: 0 0 28px; max-width: 640px; }

.stat-cards { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; min-width: 150px; box-shadow: var(--shadow-sm);
}
.stat-card .stat-num { font-size: 24px; font-weight: 800; color: var(--ink); }
.stat-card .stat-lbl { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* overflow-x auto, not hidden - a wide table inside (deals-table/era-table
   etc.) scrolls within its own section instead of being clipped (data lost)
   or forcing the whole page wider on mobile (see navbar.css's site-wide
   overflow guard docstring for the real bug this class of fix addresses). */
.section-block { margin-bottom: 36px; overflow-x: auto; }
.section-block h2 { font-size: 18px; margin: 0 0 14px; }

.trend-bars { display: flex; align-items: flex-end; gap: 10px; padding: 0 4px; }
.trend-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
/* The bar's height is a %, which needs a fixed-height ancestor to resolve
   against - trend-bar-col itself is an auto-height flex item, so the % was
   silently resolving to ~0 without this dedicated fixed-height track. */
.trend-bar-track { height: 110px; width: 100%; display: flex; align-items: flex-end; }
.trend-bar { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 3px; }
.trend-bar-label { font-size: 11px; color: var(--ink-faint); }
.trend-bar-value { font-size: 11px; font-weight: 700; color: var(--ink); }

.apkaime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.apkaime-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s;
}
.apkaime-tile:hover { box-shadow: var(--shadow-md); border-color: var(--brand); }
.apkaime-tile .at-name { font-weight: 600; font-size: 14px; }
.apkaime-tile .at-count { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.deals-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.deals-table th, .deals-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.deals-table th { background: var(--canvas); font-weight: 600; color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.deals-table tr:last-child td { border-bottom: none; }
.deals-table .kind-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--brand-tint); color: var(--brand-dark); }

.trust-label { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

.cta-band {
  background: linear-gradient(135deg, #12293a 0%, #1c3f57 100%); color: #fff; border-radius: var(--radius); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-band h3 { margin: 0 0 4px; font-size: 17px; }
.cta-band p { margin: 0; opacity: .85; font-size: 13.5px; }
.cta-band .btn-white {
  background: linear-gradient(135deg, #e0ac4a, #9c7020); color: #1a1204; padding: 10px 20px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700; font-size: 13.5px; white-space: nowrap;
}

.empty-note { color: var(--ink-faint); font-size: 13.5px; padding: 20px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

.invest-calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.invest-calc-inputs { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.invest-calc-inputs label {
  display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: .03em; flex: 1; min-width: 120px;
}
.invest-calc-inputs input, .invest-calc-inputs select {
  padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--canvas); font-family: inherit;
}
.invest-calc-inputs input:focus, .invest-calc-inputs select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.invest-calc-results { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.invest-calc-results .stat-num { font-size: 20px; font-weight: 800; color: var(--ink); }
.invest-calc-results .stat-lbl { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
