/* Self-hosted fonts (заменяют Google Fonts) */
/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/DMMono-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/DMMono-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/DMSans-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/DMSans-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/DMSans-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/DMSans-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora-400-italic-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora-400-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora-400-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora-400-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Lora-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Lora-400-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Lora-400-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Lora-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Lora-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── DESIGN SYSTEM: chastnye-shkoly-perm.ru ─── */

:root {
  /* Тёплая палитра по дизайну index_new.html / school_new.html */
  --paper: #F8F5F0;       /* фон страниц */
  --cream: #FFFFFF;       /* карточки */
  --sand:  #EAE4D8;       /* бордеры */
  --sand2: #C8C0A8;       /* темные бордеры (hover) */
  --ink:   #2C2416;       /* основной текст */
  --ink2:  #7A7060;       /* вторичный */
  --ink3:  #B0A898;       /* мета */
  --accent: #A07840;      /* золотой акцент (ссылки) */
  --accent-light: #F5ECD8;
  --rust:  #3D3020;       /* глубокий тёмно-коричневый — CTA, тёмные блоки */
  --rust-light: #F5ECD8;
  --rust-hover: #2C2115;
  --gold:  #A07840;       /* рейтинги */
  --gold-light: #F5ECD8;
  --gold-hover: #7A5C28;
  --green: #3A7A4A;       /* подтверждённые данные */
  --green-light: #EAF4EE;
  --serif: 'DM Sans', system-ui, sans-serif; /* единый гротеск вместо редакционной засечки */
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'DM Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVIGATION ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  box-shadow: 0 2px 8px rgba(26, 24, 20, 0.03);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo span {
  color: var(--rust);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--rust);
}

.nav-cta {
  background: var(--rust);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--rust-hover);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ─── PAGE HERO — full-bleed photo, bottom-left composition ─── */
.page-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--deep);
  margin-bottom: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
  filter: saturate(.85) brightness(.75);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,48,32,.92) 0%, rgba(61,48,32,.35) 55%, rgba(61,48,32,.05) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 52px 40px;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 600;
  color: white;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  max-width: 850px;
}

.page-hero h1 em {
  font-style: italic;
  color: #D4B896;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip {
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 11px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-badge {
  position: absolute;
  top: 24px;
  right: 40px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.75);
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 3;
}

/* ─── ARTICLE LAYOUT ─── */
.article-layout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 64px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ─── ARTICLE PROSE & CONTENT ─── */
.article-content {
  min-width: 0; /* Prevents overflow in grid items */
}

.disclosure {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--ink3);
  background: var(--cream);
  padding: 12px 18px;
  border-radius: 4px;
  margin-bottom: 28px;
  line-height: 1.6;
  border-left: 2px solid var(--sand2);
}

.prose {
  font-size: 17px;
  line-height: 1.82;
  color: var(--ink2);
}

.prose p {
  margin-bottom: 20px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.prose h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
  line-height: 1.3;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.prose ul li, .prose ol li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

/* Dropcap on the first paragraph after H1/disclosure */
.prose > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 700;
  float: left;
  line-height: .8;
  margin: 4px 10px -2px 0;
  color: var(--rust);
}

/* ─── COMPARISON TABLES ─── */
.comp-table-wrap {
  margin: 32px 0;
}

.comp-table-wrap h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--sand);
}

.comp-table thead th {
  background: var(--accent);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .02em;
}

.comp-table thead th:first-child {
  background: var(--cream);
  color: var(--ink3);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.comp-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.comp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sand);
  color: var(--ink2);
  vertical-align: middle;
}

.comp-table td:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ink3);
  font-weight: 500;
}

.comp-table .winner-mark {
  color: var(--green);
  font-weight: 600;
}

/* ─── WINNER BOX ─── */
.winner-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 24px;
  border-radius: 0 6px 6px 0;
  margin: 32px 0;
}

.winner-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
  font-weight: 600;
}
.winner-label[style*="background"] {
  color: #fff;
}

.winner-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.winner-reason {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
}

.winner-box a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 75, 138, 0.3);
  transition: all 0.15s ease;
  font-weight: 500;
}

.winner-box a:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ─── VERDICT BUY/SKIP BOX ─── */
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.verdict-col {
  background: var(--cream);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--sand);
}

.verdict-col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.verdict-col.buy .verdict-col-title {
  color: var(--green);
}

.verdict-col.skip .verdict-col-title {
  color: var(--rust);
}

.verdict-item {
  font-size: 14px;
  color: var(--ink2);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.verdict-item::before {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 1px;
  font-weight: bold;
}

.verdict-col.buy .verdict-item::before {
  content: "✓";
  color: var(--green);
}

.verdict-col.skip .verdict-item::before {
  content: "✗";
  color: var(--rust);
}

/* ─── AFFILIATE BOX ─── */
.affiliate-box {
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 24px;
  border-radius: 6px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 12px rgba(26, 24, 20, 0.02);
}

.aff-info {
  flex: 1;
}

.aff-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.aff-sub {
  font-size: 12px;
  color: var(--ink3);
}

.aff-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.aff-price {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.aff-cta {
  background: var(--rust);
  color: white !important;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.aff-cta:hover {
  background: var(--rust-hover);
  transform: translateY(-1px);
  color: white !important;
  text-decoration: none !important;
}

/* ─── PRODUCT CARDS & GRID (For Niche pages) ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 24, 20, 0.04);
}

.product-rank {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
  font-weight: 600;
}

.product-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.product-best {
  font-size: 11px;
  background: var(--rust-light);
  color: var(--rust);
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-weight: 500;
}

.product-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.62;
  margin-bottom: 20px;
  flex: 1;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rust);
  color: white;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}

.product-cta:hover {
  background: var(--rust-hover);
}

/* For full-width product review card layout */
.product-card-large {
  background: var(--cream);
  border: 1px solid var(--sand);
  margin: 32px 0;
  padding: 32px;
  border-radius: 6px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ─── SCORE CARD (For Review pages) ─── */
.score-card {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--sand);
  margin: 32px 0;
  border: 1px solid var(--sand);
  border-radius: 8px;
}

.score-cell {
  background: var(--cream);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-cell:first-child {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.score-cell:last-child {
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.score-cell:hover {
  background: white;
  box-shadow: inset 0 0 0 1px var(--rust), 0 8px 24px rgba(26, 24, 20, 0.08);
  position: relative;
  z-index: 2;
}

.score-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px;
  font-weight: 600;
}

.score-val {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.score-bar {
  height: 6px;
  background: var(--sand);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: var(--rust);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── SPECS TABLE ─── */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 24px 0;
  border: 1px solid var(--sand);
}

.specs-table th {
  text-align: left;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  border-bottom: 2px solid var(--sand);
  background: var(--cream);
}

.specs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(224, 216, 204, 0.5);
  color: var(--ink2);
}

.specs-table tr:nth-child(even) td {
  background: rgba(245, 240, 232, 0.4);
}

/* ─── NICHE QUICK PICKS TABLE ─── */
.quick-picks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 32px 0;
  border: 1px solid var(--sand);
}

.quick-picks-table th {
  background: var(--cream);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .08em;
  color: var(--ink3);
  border-bottom: 2px solid var(--sand);
}

.quick-picks-table td {
  padding: 14px 16px;
  color: var(--ink2);
  vertical-align: middle;
  border-bottom: 1px solid var(--sand);
}

.quick-picks-table tr:nth-child(odd) td {
  background: rgba(245, 240, 232, 0.3);
}

.quick-picks-table .pick-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  width: 32px;
  font-weight: bold;
}

.quick-picks-table .pick-name {
  font-weight: 600;
  color: var(--ink);
}

.quick-picks-table .pick-name a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 75, 138, 0.3);
  transition: all 0.15s ease;
}

.quick-picks-table .pick-name a:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ─── FAQ SECTION ACCORDION ─── */
.faq-section {
  margin: 48px 0;
}

.faq-section h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.faq-item {
  border-top: 1px solid var(--sand);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--sand);
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "＋";
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink3);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

details[open] .faq-q::after {
  content: "－";
}

.faq-a {
  font-size: 14px;
  color: var(--ink2);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 680px;
}

/* ─── ARTICLE FOOTER NAVIGATION ─── */
.art-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--sand);
  margin-top: 48px;
}

.art-nav-link {
  flex: 1;
  text-decoration: none;
  color: var(--ink2);
  background: var(--cream);
  padding: 16px 20px;
  border-radius: 4px;
  border: 1px solid var(--sand);
  transition: all 0.15s ease;
}

.art-nav-link:hover {
  border-color: var(--ink2);
  color: var(--ink);
}

.art-nav-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
}

.art-nav-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* ─── SIDEBAR COMPONENTS ─── */
.sidebar {
  min-width: 0; /* Prevents overflow */
  position: sticky;
  top: 84px; /* offset for nav + gap */
}

.sidebar-top-pick {
  background: var(--ink);
  color: white;
  padding: 24px;
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(26, 24, 20, 0.08);
}

.stp-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  font-weight: 600;
}

.stp-name {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.stp-rating {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.stp-rating svg {
  width: 14px;
  height: 14px;
  fill: #D4B896;
}

.stp-rating svg.empty {
  fill: rgba(255, 255, 255, 0.2);
}

.stp-cta {
  display: block;
  background: var(--rust);
  color: white;
  text-align: center;
  padding: 11px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: background .15s ease;
}

.stp-cta:hover {
  background: var(--rust-hover);
}

.sidebar-toc {
  background: var(--cream);
  border-left: 3px solid var(--sand2);
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
}

.toc-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
  font-weight: 600;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  padding: 6px 0;
}

.toc-list a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.toc-list a:hover {
  text-decoration: underline;
  color: var(--gold-hover);
}

.sidebar-related {
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 20px;
  border-radius: 4px;
}

.rel-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
  font-weight: 600;
}

.rel-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--sand);
  font-size: 13px;
}

.rel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rel-item a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  line-height: 1.4;
  display: block;
}

.rel-item a:hover {
  color: var(--accent);
}

.rel-item .rel-kd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  margin-top: 3px;
}

/* ─── HOMEPAGE SPECIFIC COMPONENTS ─── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 16px;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
  font-weight: 600;
}

.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
}

.section-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.section-link:hover {
  text-decoration: underline;
}

/* ─── PICKS GRID (Homepage) ─── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pick-card {
  background: var(--cream);
  padding: 32px;
  border-radius: 6px;
  border: 1px solid var(--sand);
  position: relative;
  transition: background .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.pick-card:first-child {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 24, 20, 0.04);
}

.pick-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.pick-card:first-child .pick-badge {
  color: #D4B896;
}

.pick-card:not(:first-child) .pick-badge {
  color: var(--rust);
}

.pick-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}

.pick-card:first-child .pick-name {
  color: white;
}

.pick-type {
  font-size: 12px;
  margin-bottom: 20px;
}

.pick-card:first-child .pick-type {
  color: rgba(255, 255, 255, 0.5);
}

.pick-card:not(:first-child) .pick-type {
  color: var(--ink3);
}

.pick-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 24px;
}

.pick-stars .star {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.pick-card:first-child .star {
  fill: #D4B896;
}

.pick-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid;
}

.pick-card:first-child .pick-meta {
  border-color: rgba(255, 255, 255, 0.12);
}

.pick-card:not(:first-child) .pick-meta {
  border-color: var(--sand);
}

.pick-price {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.pick-card:first-child .pick-price {
  color: white;
}

.pick-trial {
  font-size: 11px;
}

.pick-card:first-child .pick-trial {
  color: rgba(255, 255, 255, 0.5);
}

.pick-card:not(:first-child) .pick-trial {
  color: var(--ink3);
}

.pick-cta {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all .15s ease;
}

.pick-card:first-child .pick-cta {
  background: var(--rust);
  color: white;
}

.pick-card:first-child .pick-cta:hover {
  background: var(--rust-hover);
}

.pick-card:not(:first-child) .pick-cta {
  background: none;
  border: 1px solid var(--sand2);
  color: var(--ink2);
}

.pick-card:not(:first-child) .pick-cta:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(26, 24, 20, 0.02);
}

/* ─── CATEGORY GRID (Homepage) ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 32px 28px 24px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.cat-card:hover {
  background: var(--sand);
  transform: translateY(-1px);
}

.cat-icon {
  width: 40px;
  height: 40px;
  background: rgba(26, 24, 20, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.cat-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink2);
  fill: none;
  stroke-width: 1.5;
}

.cat-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.cat-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink3);
  text-transform: uppercase;
}

/* ─── HOMEPAGE DIVIDER ─── */
.divider {
  max-width: 1200px;
  margin: 16px auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--sand);
}

.divider-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink3);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink);
  color: white;
  padding: 64px 40px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand span {
  color: #D4B896;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  padding: 6px 0;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color .15s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.8;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1024px) {
  .picks-grid, .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .pick-card:first-child {
    grid-column: span 2;
  }
}

/* ─── HAMBURGER MENU ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
  padding: 20px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--rust); }

@media (max-width: 900px) {
  .nav {
    padding: 0 20px;
  }
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sidebar {
    display: none; /* Hide sidebar completely on smaller screens for readability */
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .picks-grid, .cat-grid, .footer-grid, .verdict-grid {
    grid-template-columns: 1fr;
  }
  .score-cell {
    padding: 16px 8px;
  }
  .score-label {
    font-size: 8px;
    letter-spacing: 0.05em;
  }
  .score-val {
    font-size: 20px;
  }
  .pick-card:first-child {
    grid-column: span 1;
  }
  .nav, .section, .article-layout-wrap, .footer, .divider {
    padding-left: 20px;
    padding-right: 20px;
  }
  .product-card-large {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .affiliate-box {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .aff-right {
    justify-content: space-between;
  }
  .page-hero {
    height: 320px;
  }
  .page-hero h1 {
    font-size: 24px;
  }
}

/* ─── COOKIE CONSENT BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  background: rgba(253, 250, 245, 0.95); /* matching --paper with opacity */
  border: 1px solid var(--sand2);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(26, 24, 20, 0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(10px);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.cookie-text {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cookie-btn-accept {
  background: var(--rust);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  flex: 1;
  text-align: center;
}

.cookie-btn-accept:hover {
  background: var(--rust-hover);
}

.cookie-btn-decline {
  background: none;
  border: 1px solid var(--sand2);
  color: var(--ink2);
  padding: 9px 20px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  text-align: center;
}

.cookie-btn-decline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(26, 24, 20, 0.02);
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px;
  }
}

/* ─── RATING & VERIFIED-DATA BADGES ─── */
.rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid #E8DBB0;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.rating-chip .src {
  font-weight: 500;
  color: var(--ink2);
}

.rating-pending {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  color: var(--ink3);
  border: 1px dashed var(--sand2);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
}

.source-block {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.7;
}

.source-block a {
  color: var(--accent);
}

.caution-block {
  background: var(--rust-light);
  border-left: 3px solid var(--rust);
  border-radius: 0 4px 4px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.7;
}

/* ─── DESIGN REFRESH 2026-07-19: stats strip, upgraded cards, detail-page score/sidebar ─── */

:root {
  --deep: #3D3020;
  --deep2: #4A3C28;
  --deep-text: #F2EDE4;
  --deep-text2: #B7AC98;
}

/* Stats strip (homepage, under hero) — only real, derivable numbers, no invented aggregates */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--sand);
  border-radius: 8px;
  background: var(--cream);
  margin: 0 0 32px;
  overflow: hidden;
}

.stat-item {
  flex: 1 1 180px;
  padding: 18px 24px;
  border-right: 1px solid var(--sand);
}

.stat-item:last-child {
  border-right: none;
}

.stat-n {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.stat-l {
  font-size: 11px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
}

/* Upgraded catalog cards — score number + tag pills on top of existing .product-card */
.product-card {
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}

.product-card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-photo {
  height: 160px;
  overflow: hidden;
  background: var(--paper);
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-photo-ph {
  height: 160px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.product-score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.product-score {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -.02em;
}

.product-score-note {
  font-size: 10px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ptags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 16px;
}

.ptag {
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--gold-light);
  font-size: 10px;
  color: #6B4F10;
  font-weight: 500;
}

/* Detail-page hero — dark warm band, NO stock photo (no real photos of these schools exist) */
.detail-hero {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep2) 100%);
  border-radius: 10px;
  padding: 36px 40px;
  margin-bottom: 28px;
  color: var(--deep-text);
}

.detail-hero .breadcrumb {
  color: var(--deep-text2);
  margin-bottom: 14px;
}

.detail-hero .breadcrumb a {
  color: var(--deep-text2);
}

.detail-hero .breadcrumb a:hover {
  color: var(--deep-text);
}

.detail-hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  color: var(--deep-text);
  line-height: 1.15;
  margin-bottom: 8px;
}

.detail-hero-type {
  font-size: 13px;
  color: var(--deep-text2);
}

/* Score bar — big rating number + source list; omitted entirely on pages with no rating */
.score-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border: 1px solid var(--sand);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  background: var(--cream);
}

.ss-main {
  padding: 20px 28px;
  border-right: 1px solid var(--sand);
  display: flex;
  align-items: center;
  gap: 16px;
}

.ss-score {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.ss-stars {
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 2px;
}

.ss-count {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 2px;
}

.ss-sources {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.ss-src-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color .15s;
}

.ss-src-row:hover {
  border-color: var(--sand2);
}

.ss-src-nm {
  font-size: 11px;
  color: var(--ink2);
  font-weight: 500;
}

.ss-src-ct {
  font-size: 10px;
  color: var(--ink3);
}

.ss-src-sc {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* Metrics row — only fields we actually have per school */
.metrics-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--sand);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  background: var(--cream);
}

.ms-item {
  flex: 1 1 140px;
  padding: 16px 20px;
  border-right: 1px solid var(--sand);
  text-align: center;
}

.ms-item:last-child {
  border-right: none;
}

.ms-n {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.ms-l {
  font-size: 10px;
  color: var(--ink3);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Detail sidebar — facts / licenses / external link CTA */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.s-block {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.s-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 14px;
}

.s-list .s-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--sand);
  font-size: 12px;
}

.s-list .s-item:last-child {
  border-bottom: none;
}

.s-lbl {
  color: var(--ink2);
}

.s-val {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.s-val a {
  color: var(--accent);
  text-decoration: none;
}

.s-cta {
  display: block;
  text-align: center;
  background: var(--deep);
  color: var(--deep-text);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}

.s-cta:hover {
  background: var(--deep2);
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .score-strip { grid-template-columns: 1fr; }
  .ss-main { border-right: none; border-bottom: 1px solid var(--sand); }
  .stats-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--sand); }
  .stat-item:last-child { border-bottom: none; }
}

/* Method band — dark banner from the mockup, with honest (non-weighted) content */
.method-band {
  background: var(--rust);
  border-radius: 10px;
  padding: 36px 40px;
  margin: 8px 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.method-band-head {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--deep2);
  padding-bottom: 20px;
  margin-top: -4px;
}

.method-band-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--deep-text);
  margin-bottom: 4px;
}

.method-band-sub {
  font-size: 12px;
  color: var(--deep-text2);
  line-height: 1.6;
}

.mb-n {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.mb-item-t {
  font-size: 13px;
  font-weight: 700;
  color: var(--deep-text);
  margin-bottom: 6px;
}

.mb-item-d {
  font-size: 12px;
  color: var(--deep-text2);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .method-band { grid-template-columns: 1fr; padding: 28px 24px; }
}
