/* =========================================================================
   BTC Monthly Direction Console - design system
   12-column content grid inside a responsive shell:
     >= 1500px : nav rail | slicer rail | content
     1200-1500 : nav rail | slim slicer rail | content
     1000-1200 : nav rail | content (slicers become a drawer)
     < 1000px  : top bar + slide-in nav, single column content
   ========================================================================= */

:root {
  --bg: #0d1117;
  --bg-elev: #161b22;
  --bg-elev-2: #1c2128;
  --border: #30363d;
  --border-soft: #21262d;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --text-muted: #6e7681;
  --accent: #4c8dff;
  --green: #3fb950;
  --red: #f85149;
  --amber: #d29922;
  --violet: #a371f7;
  --teal: #39c5cf;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --nav-w: 208px;
  --slicer-w: 226px;
  --gap: 12px;
  --topbar-h: 54px;
}

html[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-elev: #ffffff;
  --bg-elev-2: #f0f3f6;
  --border: #d0d7de;
  --border-soft: #eaeef2;
  --text: #24292f;
  --text-dim: #57606a;
  --text-muted: #8c959f;
  --shadow: 0 1px 3px rgba(31, 35, 40, 0.12), 0 8px 24px rgba(31, 35, 40, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--text-muted); }
.small { font-size: 11px; }
.mono { font-family: var(--mono); font-size: 11px; }

/* ---------------- shell ---------------- */
.shell {
  display: grid;
  grid-template-columns: var(--nav-w) var(--slicer-w) minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  grid-template-areas:
    "brand topbar topbar"
    "nav   slicers main";
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elev);
  min-width: 0;
}
.brand-mark {
  width: 25px; height: 25px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, #f7931a, #4c8dff);
  display: grid; place-items: center;
  font-weight: 700; font-size: 12.5px; color: #0d1117;
}
.brand-text { min-width: 0; }
.brand-text strong {
  display: block; font-size: 12px; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text span {
  font-size: 10px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar {
  grid-area: topbar;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elev);
  min-width: 0;
}
.topbar h1 {
  font-size: clamp(13px, 1.2vw, 15px);
  margin: 0; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 0 1 auto;
}
.topbar .spacer { flex: 1 1 auto; min-width: 8px; }

.icon-btn {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .12s, border-color .12s;
  white-space: nowrap;
  flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-muted); }
#menu-toggle, #slicer-toggle { display: none; }

#filter-summary {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  overflow: hidden; max-width: 46vw;
}
.filter-pill {
  background: rgba(76, 141, 255, .14);
  border: 1px solid rgba(76, 141, 255, .4);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.linklike {
  background: none; border: none; color: var(--text-muted);
  font-size: 10.5px; cursor: pointer; text-decoration: underline;
  white-space: nowrap; flex: none;
}

/* ---------------- nav ---------------- */
.nav {
  grid-area: nav;
  border-right: 1px solid var(--border-soft);
  background: var(--bg-elev);
  padding: 10px 8px;
  overflow-y: auto;
  overflow-x: hidden;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; margin-bottom: 2px;
  border-radius: 7px; color: var(--text-dim);
  font-size: 12.5px; cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-item:hover { background: var(--bg-elev-2); color: var(--text); }
.nav-item.active { background: rgba(76, 141, 255, .14); color: var(--text); font-weight: 600; }
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); flex: none;
}
.nav-item.active .nav-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(76,141,255,.18); }

/* ---------------- slicers ---------------- */
.slicers {
  grid-area: slicers;
  border-right: 1px solid var(--border-soft);
  padding: 12px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
}
.slicer { margin-bottom: 16px; }
.slicer-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); font-weight: 700; margin-bottom: 6px;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: color .12s, border-color .12s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--text-muted); }
.chip.active {
  background: rgba(76, 141, 255, .16);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.slicer-empty { color: var(--text-muted); font-size: 11.5px; }

/* ---------------- main ---------------- */
.main {
  grid-area: main;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px 36px;
  min-width: 0;
}
#page-intro {
  color: var(--text-dim);
  font-size: 12px;
  max-width: 1080px;
  margin: 0 0 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.span-1 { grid-column: span 3; }
.span-2 { grid-column: span 3; }
.span-3 { grid-column: span 6; }
.span-4 { grid-column: span 8; }
.span-6 { grid-column: span 12; }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; flex-wrap: nowrap;
  padding: 10px 12px 7px;
  border-bottom: 1px solid var(--border-soft);
}
.card-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.card-head h3 {
  margin: 0; font-size: 12.5px; font-weight: 650; letter-spacing: -0.01em;
  line-height: 1.25; overflow-wrap: anywhere;
}
.card-sub {
  margin: 3px 0 0; font-size: 10.5px; color: var(--text-muted);
  overflow-wrap: anywhere;
}
.card-actions { display: flex; gap: 4px; flex: none; margin-left: 8px; }
.card-actions .icon-btn { padding: 3px 7px; font-size: 10px; }
.card-body { padding: 8px 10px 12px; flex: 1 1 auto; min-height: 54px; min-width: 0; }
.card-body .plotly-graph-div { width: 100% !important; }
.error { color: var(--red); font-size: 11.5px; padding: 8px; }

/* ---------------- KPI ---------------- */
.kpi { padding: 2px 2px 0; }
.kpi-label {
  font-size: 10px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700;
}
.kpi-value {
  font-size: clamp(22px, 2.3vw, 30px); font-weight: 700;
  letter-spacing: -0.02em; margin: 3px 0 2px; line-height: 1.1;
}
.kpi-sub { font-size: 11px; color: var(--text-dim); }
.kpi.good .kpi-value { color: var(--green); }
.kpi.bad .kpi-value { color: var(--red); }
.kpi-spark { margin-top: 6px; }

/* ---------------- forecast card ---------------- */
.forecast-card {
  border-radius: 9px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-elev-2), var(--bg-elev));
}
.forecast-card.is-red { border-color: rgba(248, 81, 73, .45); }
.forecast-card.is-green { border-color: rgba(63, 185, 80, .45); }
.fc-month {
  font-size: 10.5px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
}
.fc-direction {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  letter-spacing: -0.03em; margin: 2px 0 8px; line-height: 1;
}
.is-red .fc-direction { color: var(--red); }
.is-green .fc-direction { color: var(--green); }
.fc-probs { display: flex; gap: 16px; margin-bottom: 9px; flex-wrap: wrap; }
.fc-probs div { display: flex; flex-direction: column; }
.fc-probs span { font-size: 16px; font-weight: 700; line-height: 1.2; }
.fc-probs small { font-size: 9.5px; color: var(--text-muted); letter-spacing: .08em; }
.pct-green { color: var(--green); }
.pct-red { color: var(--red); }
.fc-meta { font-size: 10.5px; color: var(--text-dim); margin-top: 4px; line-height: 1.45; }
.fc-meta b { color: var(--text); }
.nw { white-space: nowrap; }

/* ---------------- mini cards ---------------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}
.mini-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.mini-card span {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
}
.mini-card b {
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; letter-spacing: -0.02em;
}
.mini-card b.small { font-size: 12.5px; }
.mini-card small { font-size: 10.5px; color: var(--text-dim); }
.mini-card.good b { color: var(--green); }
.mini-card.bad b { color: var(--red); }
.health-cards { display: grid; gap: 9px; }
.split-2 {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px; align-items: start;
}

/* ---------------- table ---------------- */
.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.dtable th {
  text-align: left;
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); font-weight: 700;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-elev);
  white-space: nowrap;
}
.dtable td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  vertical-align: top;
}
.dtable td.right { text-align: right; white-space: nowrap; }
.dtable tbody tr:hover { background: var(--bg-elev-2); cursor: pointer; }
.dtable tbody tr:hover td { color: var(--text); }
.table-scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 460px; }

/* ---------------- prose ---------------- */
.prose { font-size: 12px; color: var(--text-dim); line-height: 1.65; }
.prose p { margin: 0 0 8px; }
.prose h3 {
  font-size: 13px; color: var(--text);
  margin: 14px 0 6px; padding-bottom: 5px; border-bottom: 1px solid var(--border-soft);
}
.prose h4 { font-size: 12px; color: var(--text); margin: 12px 0 4px; }
.prose b { color: var(--text); }
.prose code {
  font-family: var(--mono); font-size: 11px;
  background: var(--bg-elev-2); padding: 1px 5px; border-radius: 4px;
}
.prose table {
  border-collapse: collapse; font-size: 11px; margin: 6px 0 10px;
  width: 100%; display: block; overflow-x: auto;
}
.prose table td, .prose table th {
  border: 1px solid var(--border-soft); padding: 4px 7px; text-align: left;
}
.prose table th { color: var(--text); background: var(--bg-elev-2); }

/* ---------------- method guide ---------------- */
.guide { font-size: 12.5px; }
.guide h3 {
  font-size: 13.5px; color: var(--text); margin: 18px 0 7px;
  padding-bottom: 5px; border-bottom: 1px solid var(--border-soft);
}
.guide h3:first-child { margin-top: 2px; }
.guide p { margin: 0 0 9px; }
.guide ul, .guide ol { margin: 0 0 10px; padding-left: 19px; }
.guide li { margin-bottom: 5px; }
.guide b { color: var(--text); }
.guide .note {
  background: var(--bg-elev-2); border-left: 2px solid var(--accent);
  padding: 8px 11px; border-radius: 0 6px 6px 0; color: var(--text-dim);
}
.callout {
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 13px 15px; margin-bottom: 4px;
}
.callout-q { font-size: 14px; font-weight: 650; color: var(--text); line-height: 1.4; }
.callout-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pill {
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 11px; font-size: 11px; color: var(--text-dim); font-weight: 600;
}
.pill-green { border-color: rgba(63,185,80,.5); color: var(--green); background: rgba(63,185,80,.1); }
.pill-red { border-color: rgba(248,81,73,.5); color: var(--red); background: rgba(248,81,73,.1); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 12px; }
.compare-col {
  background: var(--bg-elev-2); border: 1px solid var(--border-soft);
  border-radius: 9px; padding: 11px 13px; min-width: 0;
}
.compare-col.highlight { border-color: rgba(76,141,255,.45); background: rgba(76,141,255,.07); }
.compare-head { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.compare-body p { font-size: 11.8px; color: var(--text-dim); margin: 0 0 6px; }
.compare-stat {
  font-size: clamp(21px, 2vw, 26px); font-weight: 750;
  color: var(--accent); letter-spacing: -.02em; margin: 4px 0 6px;
}
.compare-col.highlight .compare-stat { color: var(--green); }
.compare-stat small { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-left: 4px; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { position: relative; padding-left: 30px; margin-bottom: 8px; color: var(--text-dim); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
}
.check { list-style: none; padding-left: 0 !important; }
.check li { position: relative; padding-left: 22px; color: var(--text-dim); }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; font-size: 12px; }
.limits li { color: var(--text-dim); }
.limits b { color: var(--text); }
.src-block {
  background: var(--bg-elev-2); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 9px 12px; margin-bottom: 8px;
}
.src-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.src-head b { font-size: 12px; color: var(--text); }
.src-block ul { margin: 0; padding-left: 17px; }
.src-block li { font-size: 11.5px; color: var(--text-dim); margin-bottom: 2px; }
.src-note { margin-top: 5px; font-style: italic; }
.dtable a { color: var(--accent); }
.dtable a:hover { text-decoration: underline; }

/* ---------------- price range card ---------------- */
.range-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 12px 14px;
}
.range-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.range-top > div { display: flex; flex-direction: column; min-width: 0; }
.range-top .range-mid { text-align: center; align-items: center; }
.range-label {
  font-size: 9.5px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  white-space: nowrap;
}
.range-top b { font-size: clamp(14px, 1.4vw, 18px); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.range-top b.lo { color: var(--red); }
.range-top b.hi { color: var(--green); }
.range-top small { font-size: 10px; color: var(--text-muted); }
.range-bar {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, rgba(248,81,73,.55), rgba(210,153,34,.5), rgba(63,185,80,.55));
  position: relative;
}
.range-fill {
  position: absolute; top: 0; bottom: 0; left: 25%; right: 25%;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
}
.range-foot { margin-top: 7px; font-size: 10.5px; color: var(--text-muted); }

/* ---------------- loading ---------------- */
#loading {
  position: fixed; inset: 0;
  background: var(--bg);
  display: grid; place-items: center;
  z-index: 50;
  color: var(--text-dim);
  font-size: 12.5px;
}
#loading.hidden { display: none; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
  margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   Responsive
   ========================================================================= */

/* wide desktop: keep both rails but tighten them */
@media (max-width: 1500px) {
  :root { --nav-w: 190px; --slicer-w: 200px; }
  .main { padding: 12px 13px 32px; }
}

/* small desktop / large tablet: slicers move into a drawer */
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
    grid-template-areas:
      "brand topbar"
      "nav   main";
  }
  .slicers {
    position: fixed;
    top: var(--topbar-h); right: 0; bottom: 0;
    width: 250px;
    z-index: 30;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    transform: translateX(102%);
    transition: transform .18s ease;
    visibility: hidden;
  }
  body.slicers-open .slicers { transform: translateX(0); visibility: visible; }
  #slicer-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .span-1, .span-2 { grid-column: span 4; }
  .span-3 { grid-column: span 6; }
  .span-4 { grid-column: span 12; }
}

/* tablet: two columns of content, nav collapses to icons */
@media (max-width: 1000px) {
  :root { --nav-w: 60px; --gap: 10px; }
  .nav-item { justify-content: center; padding: 10px 6px; flex: 0 0 auto; }
  .nav-item span:last-child { display: none; }
  .nav-dot { width: 8px; height: 8px; }
  .brand-text { display: none; }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
  .compare { grid-template-columns: minmax(0, 1fr); }
  #filter-summary { max-width: 40vw; }
}

/* mobile: single column, nav becomes a horizontal bar */
@media (max-width: 720px) {
  :root { --topbar-h: 50px; --gap: 10px; }
  body { overflow: auto; }
  .shell {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .brand {
    display: none;
  }
  .topbar {
    position: sticky; top: 0; z-index: 40;
    height: var(--topbar-h);
    border-bottom: 1px solid var(--border-soft);
  }
  #menu-toggle { display: inline-flex; }
  .nav {
    position: sticky; top: var(--topbar-h); z-index: 39;
    display: flex; gap: 4px;
    padding: 7px 10px;
    overflow-x: auto; overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-elev);
    white-space: nowrap;
  }
  .nav-item {
    margin-bottom: 0;
    padding: 6px 10px;
    flex: 0 0 auto;          /* keep the full label, the row scrolls instead */
    max-width: 62vw;
  }
  .nav-item span:last-child { display: inline; font-size: 11.5px; }
  .nav-dot { display: none; }
  .slicers {
    top: auto; bottom: auto;
    position: static;
    width: auto;
    max-height: none;
    transform: none;
    visibility: visible;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: none;
    display: none;
    padding: 10px 12px;
  }
  body.slicers-open .slicers { display: block; }
  .main { padding: 10px 10px 30px; overflow: visible; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .span-1, .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; }
  #filter-summary { display: none; }
  .card-head { flex-wrap: wrap; }
  .card-actions { margin-left: 0; }
  .mini-grid { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
  .fc-probs { gap: 14px; }
  .table-scroll table { min-width: 380px; }
}

/* very small phones */
@media (max-width: 400px) {
  .mini-grid { grid-template-columns: minmax(0, 1fr); }
  .card-head h3 { font-size: 12px; }
  .fc-direction { font-size: 30px; }
}

.foundation-wrap { color: var(--text); }
.foundation-table-scroll { overflow-x: auto; }
.foundation-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.foundation-table th, .foundation-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); text-align: right; white-space: nowrap; }
.foundation-table th:first-child, .foundation-table td:first-child { text-align: left; }
.foundation-note { margin: 14px 0; padding: 11px 13px; border-left: 3px solid var(--accent); background: var(--bg-elev); color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.foundation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.foundation-card { min-width: 0; padding: 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-elev); }
.foundation-card h4 { margin: 0 0 7px; }
.foundation-card h4 small { margin-left: 6px; color: var(--text-muted); font-weight: 400; }
.foundation-card p { color: var(--text-muted); font-size: 12px; }
.foundation-images { display: grid; gap: 8px; }
.foundation-image { display: block; min-height: 80px; }
.foundation-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.foundation-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; }
