:root {
  color-scheme: light;
  --ink: #10222c;
  --muted: #5e7079;
  --line: #d7e3e6;
  --paper: #fbfdfd;
  --surface: #ffffff;
  --cyan: #16a9c0;
  --cyan-soft: #dff5f7;
  --blue: #0a5d9f;
  --blue-deep: #063e67;
  --teal: #075d76;
  --teal-deep: #073d50;
  --mint: #dcefe8;
  --amber: #d78c22;
  --amber-soft: #fff2d9;
  --danger-soft: #fff0eb;
  --sidebar-width: 248px;
  --shadow: 0 22px 60px rgb(20 62 76 / 10%);
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 3%, rgb(32 185 212 / 9%), transparent 23rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button { cursor: pointer; }

img { display: block; max-width: 100%; }

code {
  padding: 0.18rem 0.4rem;
  border-radius: 0.35rem;
  background: rgb(255 255 255 / 12%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--teal-deep);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #f1ad45;
  outline-offset: 3px;
}

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 30px 24px 24px;
  color: #eaf8fb;
  background:
    linear-gradient(165deg, rgb(10 93 159 / 22%), transparent 46%),
    var(--teal-deep);
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img,
.mobile-brand img,
.footer-brand img {
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 13px;
  box-shadow: 0 10px 25px rgb(0 0 0 / 14%);
}

.brand strong,
.brand small { display: block; }

.brand strong {
  color: white;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 1px;
  color: #a8d8df;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 54px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b9d7dc;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.side-nav a span {
  color: #72aeb8;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.side-nav a:hover,
.side-nav a.active {
  color: white;
  border-color: rgb(255 255 255 / 11%);
  background: rgb(255 255 255 / 8%);
}

.side-nav a.active span { color: #52d3e2; }

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 13px;
  border: 1px solid rgb(118 214 225 / 20%);
  border-radius: 12px;
  background: rgb(255 255 255 / 5%);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6fe5bd;
  box-shadow: 0 0 0 4px rgb(111 229 189 / 13%);
}

.sidebar-status strong,
.sidebar-status small { display: block; }

.sidebar-status strong { color: white; font-size: 0.7rem; letter-spacing: 0.08em; }
.sidebar-status small { color: #9bc9d0; font-size: 0.67rem; }

.sidebar-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: #91c0c7;
  font-size: 0.7rem;
}

.sidebar-links a { text-decoration: none; }
.sidebar-links a:hover { color: white; }

.page-shell { margin-left: var(--sidebar-width); }

.mobile-header { display: none; }

main > section,
footer {
  padding-inline: clamp(28px, 5vw, 78px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(70px, 8vw, 120px);
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgb(232 248 250 / 86%), rgb(251 253 253 / 30%) 66%),
    radial-gradient(circle at 90% 5%, rgb(10 93 159 / 12%), transparent 24rem);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -90px;
  right: -125px;
  width: 430px;
  height: 430px;
  border: 1px solid rgb(22 169 192 / 16%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 70px rgb(255 255 255 / 17%), inset 0 0 0 140px rgb(22 169 192 / 4%);
}

.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: end;
}

.hero-grid > *,
.section-heading > *,
.retrieval-layout > *,
.evaluation-grid > *,
.safety-section > *,
.open-source-section > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.hero h1,
.section-heading h2,
.safety-copy h2,
.open-source-section h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5.35vw, 5.25rem);
  font-weight: 780;
}

.hero h1 em { color: var(--cyan); font-style: normal; }

.hero-lead {
  max-width: 680px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.8;
}

.hero-note {
  position: relative;
  padding: 27px 25px 24px;
  border: 1px solid rgb(7 93 118 / 15%);
  border-radius: 18px;
  background: rgb(255 255 255 / 75%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-note .note-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-note strong { display: block; font-size: 1.08rem; line-height: 1.45; }
.hero-note p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 0.87rem; }

.boundary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 42px;
}

.boundary-strip span,
.profile-chip {
  padding: 7px 11px;
  border: 1px solid #bfdcdf;
  border-radius: 999px;
  color: var(--teal);
  background: rgb(255 255 255 / 66%);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 980px;
  margin-top: 19px;
  padding: 10px;
  border: 1px solid #b7d7dc;
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 50px rgb(6 62 103 / 9%);
}

.search-panel label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 0 10px;
}

.search-icon { color: var(--blue); font-size: 1.6rem; line-height: 1; }

.search-panel input {
  min-width: 0;
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-panel input::placeholder { color: #83939a; }

kbd {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #71828a;
  background: #f5f8f8;
  font: 0.75rem ui-monospace, monospace;
}

.search-panel > button {
  min-width: 145px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 800;
  box-shadow: 0 8px 18px rgb(7 93 118 / 16%);
}

.search-panel > button:hover { filter: brightness(1.08); }

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.suggestions > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.suggestions button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #49616c;
  background: rgb(255 255 255 / 72%);
  font-size: 0.75rem;
}

.suggestions button:hover,
.suggestions button.selected {
  color: var(--teal-deep);
  border-color: #91cad1;
  background: var(--cyan-soft);
}

.local-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 15px 0 0;
  color: #71828a;
  font-size: 0.74rem;
}

.local-note span { color: #2fa985; }

.snapshot { padding-top: 52px; padding-bottom: 56px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.safety-copy h2,
.open-source-section h2 { font-size: clamp(2rem, 3.2vw, 3.4rem); }

.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.compact-heading h2 { font-size: clamp(1.8rem, 2.7vw, 2.8rem); }
.compact-heading > p { font-size: 0.84rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.stat-grid article {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.stat-grid article:last-child { border-right: 0; }

.stat-grid strong,
.stat-grid span { display: block; }
.stat-grid strong { color: var(--blue-deep); font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.1; }
.stat-grid span { margin-top: 7px; color: var(--muted); font-size: 0.8rem; }
.stat-grid .accent-stat strong { color: var(--cyan); }

.results-section {
  padding-top: 76px;
  padding-bottom: 82px;
  background: #f2f8f8;
}

.profile-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.profile-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fa985;
}

.query-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 21px 24px;
  border: 1px solid #bddde0;
  border-radius: 14px;
  background: var(--cyan-soft);
}

.query-summary span,
.query-summary strong { display: block; }
.query-summary span { color: var(--teal); font-size: 0.72rem; font-weight: 850; }
.query-summary strong { margin-top: 5px; font-size: 1rem; }
.query-summary p { margin: 0; color: var(--muted); font-size: 0.78rem; text-align: right; }

.retrieval-layout {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 35px;
}

.column-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 15px;
  font-size: 1rem;
}

.column-title span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.evidence-list,
.question-list { display: grid; gap: 12px; }

.evidence-card,
.question-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgb(16 34 44 / 4%);
}

.evidence-card { padding: 22px; }

.evidence-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
}

.rank {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
}

.evidence-head strong,
.evidence-head small { display: block; }
.evidence-head strong { line-height: 1.35; }
.evidence-head small { margin-top: 4px; color: var(--muted); }
.evidence-card > p { margin: 15px 0; color: #405761; font-size: 0.9rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span {
  padding: 4px 7px;
  border-radius: 5px;
  color: #46606a;
  background: #edf3f4;
  font-size: 0.62rem;
  font-weight: 800;
}
.tag-list span.verify { color: #88570f; background: var(--amber-soft); }

.question-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px 18px 17px;
  cursor: pointer;
}

.question-card input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--teal);
}

.question-card strong,
.question-card small { display: block; }
.question-card strong { font-size: 0.91rem; line-height: 1.5; }
.question-card small { margin-top: 6px; color: var(--muted); font-size: 0.72rem; }
.question-card:has(input:checked) { border-color: #79c4bd; background: #f1fbf7; }

.evaluation-section {
  padding-top: 86px;
  padding-bottom: 92px;
  color: #f3fbfc;
  background:
    radial-gradient(circle at 90% 18%, rgb(32 185 212 / 14%), transparent 28rem),
    var(--teal-deep);
}

.inverse-heading .eyebrow { color: #68d7e5; }
.inverse-heading > p { color: #b8d3d8; }

.evaluation-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
}

.leader-card,
.table-card {
  border: 1px solid rgb(190 233 239 / 17%);
  border-radius: 18px;
  background: rgb(255 255 255 / 6%);
}

.leader-card { padding: 27px; }
.leader-card .eyebrow { color: #67d8e4; }
.model-name span,
.model-name strong { display: block; }
.model-name span { font-size: clamp(2.1rem, 3.3vw, 3.6rem); font-weight: 850; line-height: 1; }
.model-name strong { margin-top: 7px; color: #9fcdd4; font-size: 0.9rem; }

.leader-card dl { margin: 28px 0 0; }
.leader-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid rgb(216 244 247 / 13%);
}
.leader-card dt { color: #b8d3d8; font-size: 0.78rem; }
.leader-card dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.review-warning { margin: 20px 0 0; padding: 12px; border-radius: 9px; color: #ffdda5; background: rgb(215 140 34 / 12%); font-size: 0.72rem; }

.table-card { padding: 24px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { padding: 0 0 15px; color: #cce0e4; text-align: left; font-size: 0.79rem; }
th,
td { padding: 14px 13px; border-bottom: 1px solid rgb(216 244 247 / 12%); text-align: right; }
th:first-child { text-align: left; }
thead th { color: #9fc6cd; font-size: 0.69rem; letter-spacing: 0.04em; }
tbody th { color: #eefafb; font-size: 0.82rem; }
tbody td { color: #d9ebee; font-size: 0.82rem; }
.selected-row { background: rgb(32 185 212 / 9%); }
.selected-row th,
.selected-row td { color: #7de6ef; font-weight: 850; }
.table-card > p { margin: 20px 0 0; color: #9fc6cd; font-size: 0.73rem; }

.architecture-section { padding-top: 86px; padding-bottom: 88px; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.pipeline li {
  position: relative;
  min-height: 178px;
  padding: 22px 21px;
  border-block: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.pipeline li:first-child { border-left: 1px solid var(--line); }
.pipeline li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -13px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  background: var(--paper);
  font-size: 0.8rem;
}
.pipeline li span { color: var(--cyan); font-size: 0.7rem; font-weight: 900; }
.pipeline li strong { display: block; margin-top: 20px; font-size: 1.03rem; }
.pipeline li p { margin: 8px 0 0; color: var(--muted); font-size: 0.75rem; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 34px;
}

.principle-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.principle-number { color: var(--cyan); font-size: 0.72rem; font-weight: 900; }
.principle-grid h3 { margin: 15px 0 7px; font-size: 1rem; }
.principle-grid p { margin: 0; color: var(--muted); font-size: 0.8rem; }

.safety-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 8vw, 110px);
  padding-top: 84px;
  padding-bottom: 88px;
  color: #f5fbfc;
  background: #102d39;
}

.safety-copy .eyebrow { color: #67d8e4; }
.safety-copy > p:last-child { color: #acc8ce; }

.boundary-list { border-top: 1px solid rgb(255 255 255 / 14%); }
.boundary-list > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}
.boundary-list > div > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffc2ad;
  background: rgb(255 194 173 / 9%);
  font-weight: 800;
}
.boundary-list p { margin: 0; color: #a9c2c8; font-size: 0.82rem; }
.boundary-list strong { display: block; margin-bottom: 3px; color: white; font-size: 0.9rem; }

.open-source-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(40px, 8vw, 110px);
  padding-top: 86px;
  padding-bottom: 88px;
}

.resource-links { border-top: 1px solid var(--line); }
.resource-links a {
  display: grid;
  grid-template-columns: 0.72fr 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.resource-links a:hover { color: var(--blue); background: #f3fafa; }
.resource-links span { font-weight: 800; }
.resource-links small { color: var(--muted); }
.resource-links b { color: var(--cyan); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f2f7f7;
  font-size: 0.75rem;
}

.footer-brand { display: flex; gap: 11px; align-items: center; }
.footer-brand strong,
.footer-brand small { display: block; }
.footer-brand strong { color: var(--ink); }
.footer-brand small { margin-top: 1px; }
footer a { color: var(--teal); font-weight: 800; text-decoration: none; }

@media (max-width: 1080px) {
  :root { --sidebar-width: 218px; }
  .sidebar { padding-inline: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 620px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid article:nth-child(2) { border-right: 0; }
  .stat-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .retrieval-layout { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline li:nth-child(2) { border-right: 1px solid var(--line); }
  .pipeline li:nth-child(2)::after { display: none; }
  .pipeline li:nth-child(-n+2) { border-bottom: 0; }
  .pipeline li:nth-child(3) { border-left: 1px solid var(--line); }
  .evaluation-grid { grid-template-columns: 1fr; }
  .leader-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .sidebar { display: none; }
  .page-shell { margin-left: 0; }
  .mobile-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    background: rgb(251 253 253 / 92%);
    backdrop-filter: blur(16px);
  }
  .mobile-header > span { color: var(--teal); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.08em; }
  .mobile-brand { gap: 9px; text-decoration: none; }
  .mobile-brand strong { letter-spacing: -0.03em; }
  main > section,
  footer { padding-inline: 18px; }
  .hero { padding-top: 58px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-grid { gap: 30px; }
  .hero-note { padding: 22px; }
  .boundary-strip { margin-top: 30px; }
  .search-panel { grid-template-columns: 1fr; padding: 8px; }
  .search-panel > button { min-height: 48px; }
  kbd { display: none; }
  .search-panel label { grid-template-columns: auto 1fr; }
  .section-heading,
  .query-summary { display: block; }
  .section-heading > p { margin-top: 16px; }
  .profile-chip { display: inline-flex; margin-top: 18px; }
  .query-summary p { margin-top: 12px; text-align: left; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid article { padding: 21px 14px; }
  .stat-grid strong { font-size: 2.15rem; }
  .results-section,
  .architecture-section,
  .evaluation-section,
  .safety-section,
  .open-source-section { padding-top: 64px; padding-bottom: 66px; }
  .retrieval-layout { margin-top: 27px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li,
  .pipeline li:nth-child(2),
  .pipeline li:nth-child(3) { border: 1px solid var(--line); border-bottom: 0; }
  .pipeline li:last-child { border-bottom: 1px solid var(--line); }
  .pipeline li::after { display: none !important; }
  .principle-grid { grid-template-columns: 1fr; }
  .safety-section,
  .open-source-section { grid-template-columns: 1fr; gap: 35px; }
  .resource-links a { grid-template-columns: 0.8fr 1fr auto; gap: 10px; }
  .resource-links small { font-size: 0.67rem; }
  .leader-card dl { display: block; }
  footer { display: grid; justify-items: start; }
  footer p { margin: 0; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 2.55rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid article,
  .stat-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-grid article:last-child { border-bottom: 0; }
  .suggestions > span { width: 100%; }
  .resource-links a { grid-template-columns: 1fr auto; }
  .resource-links small { grid-column: 1 / -1; grid-row: 2; }
  .resource-links b { grid-column: 2; grid-row: 1; }
}

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

@media print {
  .sidebar,
  .mobile-header,
  .search-panel,
  .suggestions { display: none !important; }
  .page-shell { margin: 0; }
  body { background: white; color: black; }
  .evaluation-section,
  .safety-section { color: black; background: white; }
}
