/* ==========================================================================
   Side Hustle Index
   Hand-written. Dark, data-first leaderboard layout. No framework, no
   webfonts, no build step.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --bg:        #0b0c0e;   /* page */
  --card:      #101114;   /* table, panel, cards */
  --card-2:    #16181c;   /* inputs, chips, hover fills */
  --card-3:    #1d2026;   /* stronger hover */
  --line:      #212328;   /* hairlines inside cards */
  --line-2:    #2b2e34;   /* card borders, controls */

  --ink:       #e8e9eb;
  --ink-2:     #a6abb4;
  --ink-3:     #7f858f;   /* 4.6:1 on --bg; smallest metadata sits here */

  --accent:    #4cc39a;
  --accent-2:  #7ad4b5;
  --accent-bg: #12241d;

  --warn:      #d9a765;
  --warn-bg:   #251e13;
  --focus:     #5c9ce6;

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono",
               Menlo, Consolas, monospace;

  --shell: 1240px;
  --gut: 16px;
}

/* --- reset -------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 6px;
}
.skip:focus { left: 8px; top: 8px; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --- chips (small labels) ----------------------------------------------- */

.chip-tag {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--line-2); color: var(--ink-2);
  white-space: nowrap;
}
.chip-tag--accent {
  border-color: rgba(76, 195, 154, .4);
  background: var(--accent-bg);
  color: var(--accent-2);
}

/* --- sponsor banner ------------------------------------------------------ */

.banner { background: var(--card); border-bottom: 1px solid var(--line-2); }
.banner__in {
  display: flex; align-items: center; gap: 10px;
  padding-top: 7px; padding-bottom: 7px;
  font-size: 12.5px; color: var(--ink-2);
  min-height: 38px;
}
.banner__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner__text b { color: var(--ink); font-weight: 600; }
.banner__cta {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  color: var(--ink); background: var(--card-2);
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 4px 10px;
}
.banner__cta:hover { background: var(--card-3); text-decoration: none; }
.banner__x {
  flex: none; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--ink-3); cursor: pointer; border-radius: 5px;
}
.banner__x:hover { color: var(--ink); background: var(--card-2); }

/* --- top bar ------------------------------------------------------------- */

.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 52px;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { text-decoration: none; color: var(--accent-2); }

.nav { display: flex; gap: 18px; align-items: center; }
.nav a { font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 620px) {
  .nav { gap: 13px; }
  .nav a { font-size: 12.5px; }
  .nav .nav-hide { display: none; }
}

/* --- title block --------------------------------------------------------- */

.lede { padding: 22px 0 4px; }
.lede h1 {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: clamp(23px, 4.5vw, 28px);
  line-height: 1.2; letter-spacing: -.01em; font-weight: 600;
  margin: 0 0 6px;
}
.lede__chip {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 6px;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2);
}
.lede__sub { margin: 0; max-width: 72ch; color: var(--ink-2); font-size: 13.5px; }
.lede__meta {
  margin: 10px 0 0; font-size: 12px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 5px 16px; align-items: center;
}
.lede__meta span { display: inline-flex; align-items: center; gap: 5px; }
.lede__meta svg { flex: none; opacity: .75; }
.lede__meta a { color: var(--ink-3); }
.lede__meta a:hover { color: var(--ink-2); }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; min-height: 38px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--card-2); color: var(--ink);
  font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--card-3); text-decoration: none; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--sm { padding: 5px 10px; min-height: 30px; font-size: 12.5px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--card-2); color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); background: var(--card-3); }

/* --- toolbar ------------------------------------------------------------- */

.toolbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 8px;
  margin-top: 14px;
}
.toolbar__row { display: flex; gap: 8px; align-items: center; }

.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 430px; }
.search input {
  width: 100%; height: 38px;
  padding: 0 32px 0 32px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--card-2); color: var(--ink);
  font-size: 16px; /* 16px prevents iOS zoom on focus */
}
@media (min-width: 640px) { .search input { font-size: 13.5px; } }
.search input:focus { outline: none; border-color: var(--ink-3); background: var(--card); }
.search input::placeholder { color: var(--ink-3); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search__clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; background: none; color: var(--ink-3);
  cursor: pointer; display: none; align-items: center; justify-content: center; border-radius: 5px;
}
.search__clear:hover { color: var(--ink); background: var(--card-3); }
.search--filled .search__clear { display: flex; }

.filter-toggle { flex: 0 0 auto; min-height: 38px; }
.filter-toggle .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px; margin-left: 2px;
  background: var(--accent); color: #0c1712; border-radius: 9px;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
@media (min-width: 940px) { .filter-toggle { display: none; } }

.sort { flex: 0 0 auto; margin-left: auto; }
.sort select {
  height: 30px; padding: 0 26px 0 10px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--card-2) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237f858f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  -webkit-appearance: none; appearance: none;
  font-size: 12.5px; cursor: pointer; color: var(--ink-2);
}
@media (min-width: 940px) { .sort { display: none; } } /* headers sort on desktop */

.toolbar__meta {
  display: flex; align-items: center; gap: 10px 14px;
  margin-top: 8px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap;
  min-height: 20px;
}
.toolbar__meta strong { color: var(--ink); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px;
  padding: 2px 8px 2px 9px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--card-2);
  font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip b { font-weight: 600; color: var(--ink); }
.chip svg { flex: none; opacity: .6; }
.chip--reset { border-style: dashed; }

/* --- workspace ----------------------------------------------------------- */

.work { display: block; padding: 14px 0 60px; }

@media (min-width: 940px) {
  .work { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 26px; align-items: start; }
}

/* --- filter sidebar ------------------------------------------------------ */

.filters { display: none; }

@media (min-width: 940px) {
  /* --toolbar-h is measured in app.js; the toolbar is sticky above this rail */
  .filters {
    display: block; position: sticky;
    top: calc(var(--toolbar-h, 96px) + 12px);
    max-height: calc(100vh - var(--toolbar-h, 96px) - 32px);
    overflow-y: auto;
    padding: 2px 6px 30px 0;
    scrollbar-width: thin;
  }
  .filters__head, .filters__foot { display: none; }
}

.fgroup { border-bottom: 1px solid var(--line); padding: 12px 0; }
.fgroup:first-child { padding-top: 2px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > h3 {
  margin: 0 0 6px; font-size: 12px; font-weight: 600;
  color: var(--ink-2); letter-spacing: .01em;
}

.opt {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; cursor: pointer; font-size: 13px; color: var(--ink-2);
  min-height: 28px;
}
.opt:hover { color: var(--ink); }
.opt input {
  flex: none; margin: 0; width: 14px; height: 14px;
  accent-color: var(--accent); cursor: pointer;
}
.opt input:checked ~ .opt__label { color: var(--ink); }
.opt__label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__n { flex: none; font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.fgroup__more {
  border: 0; background: none; padding: 5px 0; margin: 0;
  color: var(--ink-3); font-size: 12px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}
.fgroup__more:hover { color: var(--ink-2); }

/* --- filter sheet (mobile) ----------------------------------------------- */

@media (max-width: 939px) {
  .filters[data-open="true"] {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 60;
    background: var(--bg);
  }
  .filters__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px var(--gut); border-bottom: 1px solid var(--line); flex: none;
  }
  .filters__head h2 { margin: 0; font-size: 15px; font-weight: 650; }
  .filters__scroll { flex: 1 1 auto; overflow-y: auto; padding: 2px var(--gut) 20px; -webkit-overflow-scrolling: touch; }
  .filters__scroll .opt { min-height: 40px; font-size: 14px; }
  .filters__scroll .opt input { width: 16px; height: 16px; }
  .filters__foot {
    display: flex; gap: 10px; padding: 10px var(--gut);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); flex: none; background: var(--card);
  }
  .filters__foot .btn { flex: 1 1 auto; min-height: 42px; }
  body[data-lock="true"] { overflow: hidden; }
}

/* --- leaderboard table --------------------------------------------------- */

.tablewrap { min-width: 0; }

/* overflow:hidden would round the corners for free but kills the sticky
   header, so the corner cells carry the radius instead */
.lb {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 12.5px;
}
.lb thead th:first-child { border-top-left-radius: 9px; }
.lb thead th:last-child { border-top-right-radius: 9px; }
.lb tbody tr:last-child td:first-child { border-bottom-left-radius: 9px; }
.lb tbody tr:last-child td:last-child { border-bottom-right-radius: 9px; }

.lb thead th {
  text-align: left; font-weight: 500; font-size: 11.5px;
  color: var(--ink-3);
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-2);
  background: var(--card);
  white-space: nowrap;
  position: sticky; top: var(--toolbar-h, 96px); z-index: 5;
}
.th-sort {
  border: 0; background: none; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.th-sort:hover { color: var(--ink-2); }
th[aria-sort] .th-sort { color: var(--ink); font-weight: 600; }
th[aria-sort="descending"] .th-sort::after { content: "↓"; font-size: 10px; color: var(--accent-2); }
th[aria-sort="ascending"] .th-sort::after { content: "↑"; font-size: 10px; color: var(--accent-2); }

.lb tbody tr {
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: auto 55px;
}
.lb tbody tr:hover { background: rgba(255, 255, 255, .028); }

.lb td { padding: 9px 10px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.lb tbody tr:last-child td { border-bottom: 0; }

.c-rank { width: 40px; }
td.c-rank { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }

.c-name { min-width: 0; }
td.c-name { padding-top: 7px; padding-bottom: 7px; }
.rowbtn {
  display: inline; border: 0; background: none; padding: 0; margin: 0;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink);
  cursor: pointer; text-align: left; letter-spacing: -.01em;
}
td.c-name .chip-tag { margin-left: 7px; vertical-align: 1px; }
.sub {
  display: block; margin-top: 2px;
  font-size: 11px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

.c-ease { width: 52px; }
td.c-ease { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
td.c-ease small { color: var(--ink-3); font-weight: 400; font-size: 10px; }

.c-pay { width: 108px; }
.c-cost { width: 100px; }
.c-payout { width: 96px; }
td.c-pay, td.c-cost, td.c-payout {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
td.c-pay { color: var(--ink); }

.c-diff { width: 86px; }
td.c-diff { font-size: 12px; color: var(--ink-2); white-space: nowrap; }

.c-where { width: 84px; }
td.c-where { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* responsive column hiding */
@media (max-width: 1099px) { .c-where { display: none; } }
@media (max-width: 899px)  { .c-diff { display: none; } }
@media (max-width: 679px)  { .c-cost, .c-payout { display: none; } }
@media (max-width: 679px) {
  .lb td, .lb thead th { padding-left: 8px; padding-right: 8px; }
  .c-rank { width: 30px; }
  .c-pay { width: 88px; }
  .c-ease { width: 42px; }
}

/* sponsored row */
tr.row--featured { background: rgba(76, 195, 154, .055); }
tr.row--featured:hover { background: rgba(76, 195, 154, .085); }

/* --- empty / loading ------------------------------------------------------ */

.empty { padding: 46px 16px 56px; text-align: center; color: var(--ink-2); }
.empty h2 { font-size: 17px; margin: 0 0 6px; color: var(--ink); font-weight: 650; }
.empty p { margin: 0 0 16px; font-size: 13.5px; }

.sentinel { height: 1px; }
.more { display: flex; justify-content: center; padding: 16px 0 4px; }

.skeleton { padding: 18px 0; }
.skeleton div {
  height: 12px; background: var(--card-2); border-radius: 4px;
  margin-bottom: 10px; max-width: 100%;
}
.skeleton div:nth-child(2n) { max-width: 62%; }
.skeleton div:nth-child(3n) { max-width: 84%; }

/* --- detail panel --------------------------------------------------------- */

.scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed; z-index: 80; background: var(--card);
  display: flex; flex-direction: column;
  inset: 0;
  transform: translateY(100%);
  transition: transform .2s cubic-bezier(.32, .72, 0, 1);
  visibility: hidden;
}
.panel[data-open="true"] { transform: none; visibility: visible; }

@media (min-width: 760px) {
  .panel {
    inset: 0 0 0 auto; width: min(500px, 92vw);
    border-left: 1px solid var(--line-2);
    transform: translateX(100%);
  }
}

.panel__head {
  flex: none; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px var(--gut); border-bottom: 1px solid var(--line);
  padding-top: calc(14px + env(safe-area-inset-top));
}
.panel__head h2 {
  margin: 0; flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: 16px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600;
}
.panel__head p { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); }
.panel__body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 var(--gut) calc(28px + env(safe-area-inset-bottom));
}
.panel__foot {
  flex: none; border-top: 1px solid var(--line); padding: 11px var(--gut);
  padding-bottom: calc(11px + env(safe-area-inset-bottom));
  background: var(--card);
}

.dsec { border-bottom: 1px solid var(--line); padding: 14px 0; }
.dsec:last-child { border-bottom: 0; }
.dsec > h3 {
  margin: 0 0 9px; font-size: 12px; font-weight: 600;
  color: var(--ink-2); letter-spacing: .01em;
}
.dsec p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.dsec p:last-child { margin-bottom: 0; }
.dsec ol, .dsec ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.dsec li { margin-bottom: 6px; }
.dsec li:last-child { margin-bottom: 0; }

.dgrid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
}
.dgrid div { padding: 8px 11px; border-bottom: 1px solid var(--line); }
.dgrid div:nth-child(odd) { border-right: 1px solid var(--line); }
.dgrid div:nth-last-child(-n+2) { border-bottom: 0; }
.dgrid dt { font-size: 10.5px; color: var(--ink-3); margin: 0 0 1px; }
.dgrid dd {
  margin: 0; font-size: 13px; font-weight: 600;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}

.callout { background: var(--warn-bg); padding: 12px 14px; border-radius: 8px; }
.callout p { color: var(--ink); font-size: 13px; margin: 0; }
.callout h4 { margin: 0 0 5px; font-size: 11.5px; font-weight: 700; color: var(--warn); }

.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 12px; padding: 3px 9px; border-radius: 6px;
  background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line);
}

.meter { display: inline-flex; gap: 2px; vertical-align: -1px; margin-right: 6px; }
.meter i { display: block; width: 5px; height: 10px; border-radius: 2px; background: var(--card-3); }
.meter i.on { background: var(--accent); }

/* --- prose pages ---------------------------------------------------------- */

.strip {
  background: var(--card);
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2);
}
.strip .shell { display: flex; gap: 7px; align-items: baseline; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.strip b { color: var(--ink); font-weight: 600; }
.strip a { color: var(--ink-2); }

/* legacy class names used by the static pages */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.masthead .wordmark span { color: var(--accent-2); }

.prose { max-width: 66ch; padding: 28px 0 70px; }
.prose h1 {
  font-family: var(--font-serif);
  font-size: clamp(25px, 5.5vw, 32px);
  line-height: 1.18; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 600;
}
.prose h2 {
  font-size: clamp(17px, 3.6vw, 20px);
  line-height: 1.3; margin: 32px 0 10px; font-weight: 650;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.prose h3 { font-size: 15px; margin: 22px 0 6px; font-weight: 650; }
.prose p, .prose li { font-size: 14.5px; color: var(--ink-2); }
.prose p { margin: 0 0 13px; }
.prose ul, .prose ol { margin: 0 0 15px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .standfirst { font-size: 16px; color: var(--ink); margin-bottom: 20px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.prose code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px;
}
.prose pre { background: var(--card) !important; border: 1px solid var(--line-2) !important; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 13px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.prose td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; }

.note {
  border: 1px solid var(--line-2); background: var(--card);
  border-radius: 8px; padding: 13px 15px; margin: 0 0 18px;
}
.note p:last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; }

/* --- footer --------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 26px 0 36px; font-size: 12.5px; color: var(--ink-2);
}
.foot__cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot__cols { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; } }
.foot h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink); font-weight: 650; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 5px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.foot__legal p { margin: 0 0 7px; max-width: 82ch; }
.foot__legal p:last-child { margin-bottom: 0; }
.foot__legal a { color: var(--ink-3); text-decoration: underline; }

/* --- utility --------------------------------------------------------------- */

.nojs { padding: 18px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); margin: 8px 0 20px; }
[hidden] { display: none !important; }
