/* InferenceChips.com — shared editorial stylesheet */

:root {
  --ink: #eef4ff;
  --muted: #9aa8bf;
  --faint: #68758c;
  --bg: #07090d;
  --panel: #101722;
  --panel-soft: rgba(16, 23, 34, .78);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --blue: #55c7ff;
  --green: #4ade80;
  --amber: #fbbf24;
  --rose: #fb7185;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 0%, rgba(85, 199, 255, .16), transparent 32%),
    linear-gradient(180deg, #05070b 0%, var(--bg) 45%, #090b10 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.62;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
p a, li a, dd a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(85, 199, 255, .38); }
p a:hover, li a:hover, dd a:hover { text-decoration-color: var(--blue); }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(880px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- navigation ---------- */

nav.site {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, .86);
  backdrop-filter: blur(18px);
}
.nav { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.02em; }
.brand span { color: var(--blue); }
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, .55) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, .55) 45% 55%, transparent 55%),
    var(--blue);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 24px rgba(85, 199, 255, .22);
}
.links { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.links a { padding: 7px 9px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.links a:hover { background: var(--panel); color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); background: var(--panel); }

/* ---------- header ---------- */

header.page { padding: 46px 0 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { opacity: .5; }

h1 { margin: 10px 0 16px; font-size: clamp(38px, 6vw, 66px); line-height: .98; letter-spacing: -.05em; max-width: 940px; }
.lede { max-width: 820px; margin: 0; color: #c7d3e5; font-size: clamp(17px, 2vw, 20px); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.pill.blue { border-color: rgba(85, 199, 255, .4); color: var(--blue); }
.pill.green { border-color: rgba(74, 222, 128, .38); color: var(--green); }
.pill.amber { border-color: rgba(251, 191, 36, .38); color: var(--amber); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

/* ---------- fact panel ---------- */

.factbox {
  margin: 30px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(21, 31, 46, .9), rgba(10, 14, 21, .92));
}
.factbox h2 { margin: 0 0 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-family: var(--mono); }
.factbox dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 26px; margin: 0; }
.factbox dt { color: var(--faint); font-size: 12px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.factbox dd { margin: 3px 0 0; color: #d5e0f0; font-size: 15px; }

/* ---------- sections ---------- */

main { padding-bottom: 20px; }
section.block { padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, .065); }
section.block:first-child { border-top: 0; }
h2 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.035em; }
h3 { margin: 22px 0 8px; font-size: 19px; letter-spacing: -.02em; }
p, li { color: var(--muted); }
.block p { max-width: 860px; }
.block > .wrap > p:first-of-type { margin-top: 0; }
ul, ol { padding-left: 20px; }
li { margin: 8px 0; }

/* ---------- cards & grids ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}
.card h3 { margin: 8px 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 14.5px; }
.card p + p { margin-top: 10px; }
.card ul { margin: 8px 0 0; padding-left: 18px; }
.card li { font-size: 14.5px; }
.metric { color: var(--blue); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card.pro { border-color: rgba(74, 222, 128, .26); }
.card.con { border-color: rgba(251, 191, 36, .26); }
.card.pro .metric { color: var(--green); }
.card.con .metric { color: var(--amber); }

/* ---------- tables ---------- */

.table-card { border: 1px solid var(--line); border-radius: 9px; background: var(--panel-soft); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14.5px; }
th { background: rgba(255, 255, 255, .035); color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { color: var(--muted); }
td strong { color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- sources ---------- */

ol.sources { margin: 0; padding-left: 20px; }
ol.sources li { margin: 10px 0; font-size: 14.5px; }
ol.sources a { color: var(--blue); }
.source-note { margin-top: 20px; padding: 16px 18px; border-left: 2px solid var(--line-strong); color: var(--faint); font-size: 14px; }

/* ---------- related links ---------- */

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(16, 23, 34, .55);
}
.related a:hover { border-color: var(--line-strong); color: inherit; }
.related strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.related span { color: var(--muted); font-size: 13.5px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 750;
}
.button.primary { background: var(--blue); color: #001018; border-color: transparent; }
.button:hover { color: inherit; border-color: var(--blue); }

.reviewed {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
}

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

footer.site { margin-top: 40px; border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--faint); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; }
.footer-grid p { margin: 10px 0 0; font-size: 13.5px; }
.footer-grid strong { color: var(--ink); font-size: 14px; }
.footer-grid ul { margin: 8px 0 0; padding: 0; list-style: none; }
.footer-grid li { margin: 6px 0; font-size: 13.5px; }
.footer-grid a { color: var(--faint); }
.footer-grid a:hover { color: var(--blue); }
.colophon { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap, .narrow { width: min(100% - 28px, 1160px); }
  .links { display: none; }
  header.page { padding-top: 34px; }
  section.block { padding: 30px 0; }
  .factbox { padding: 18px; }
  .factbox dl { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 11px; font-size: 14px; }
}
