/* pr.css — PrepResults single-template stylesheet (Phase 2).
   Every non-home page loads this one file and nothing else. Pages carry no
   inline <style> blocks. Sections follow the spec's slot order:
   tokens → base → header → page head → stats → tabs → layout → content →
   sidebar → related → community → footer → drawer. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --pr-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --pr-band: linear-gradient(135deg, #1040b0 0%, #1a56db 100%);
  --pr-ink: #0f172a;
  --pr-body: #1e293b;
  --pr-muted: #64748b;
  --pr-accent: #1a56db;
  --pr-accent-soft: #eff6ff;
  --pr-cta: #f97316;
  --pr-cta-hover: #ea580c;
  --pr-good: #16a34a;
  --pr-warn: #d97706;
  --pr-bad: #dc2626;
  --pr-line: #e5e7eb;
  --pr-surface: #f8fafc;
  --pr-radius: 8px;
  --pr-radius-card: 12px;
  --pr-container: 1200px;
  --pr-gutter: 30px;
  --pr-sidebar: 300px;
  --pr-header-h: 104px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--pr-header-h) + 56px); }
body.pr {
  margin: 0;
  font-family: var(--pr-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--pr-body);
  background: var(--pr-surface);
  overflow-x: hidden;
}
.pr :is(h1, h2, h3, h4, button, input, select, textarea) { font-family: var(--pr-font); }
.pr a { color: var(--pr-accent); }
.pr img { max-width: 100%; height: auto; }
.pr-container {
  max-width: var(--pr-container);
  margin: 0 auto;
  padding-left: var(--pr-gutter);
  padding-right: var(--pr-gutter);
}
.pr-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--pr-radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pr-btn--primary { background: var(--pr-cta); border-color: var(--pr-cta); color: #fff !important; }
.pr-btn--primary:hover { background: var(--pr-cta-hover); border-color: var(--pr-cta-hover); }
.pr-btn--outline { background: #fff; border-color: var(--pr-accent); color: var(--pr-accent) !important; }
.pr-btn--outline:hover { background: var(--pr-accent-soft); }
.pr-btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff !important; }
.pr-btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.pr-btn--block { display: flex; width: 100%; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.pr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--pr-line);
}
.pr-header__top {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.pr-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.pr-hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--pr-ink); }
.pr-logo { flex-shrink: 0; display: block; line-height: 0; }
.pr-logo img { height: 34px; width: auto; display: block; }
.pr-search { position: relative; flex: 1 1 auto; max-width: 400px; }
.pr-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--pr-line);
  border-radius: 999px;
  background: var(--pr-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.8-3.8'/%3E%3C/svg%3E") no-repeat 15px center;
  font-size: 14px;
  color: var(--pr-ink);
  outline: none;
}
.pr-search input:focus { border-color: var(--pr-accent); background-color: #fff; box-shadow: 0 0 0 3px rgba(26, 86, 219, .12); }
.pr-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Category bar + dropdowns (behaviour in /js/pr.js) */
.pr-cats { border-top: 1px solid var(--pr-line); overflow-x: auto; scrollbar-width: thin; }
.pr-cats ul { display: flex; list-style: none; margin: 0 auto; padding: 0 var(--pr-gutter); max-width: var(--pr-container); }
.pr-cats .nav-cat-item { position: static; }
.pr-cats .nav-cat-link {
  display: block;
  padding: 11px 14px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pr-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.pr-cats .nav-cat-link:hover,
.pr-cats .nav-cat-item.active > .nav-cat-link { color: var(--pr-accent); border-bottom-color: var(--pr-accent); }
.nav-cat-link .caret { display: inline-block; font-size: 10px; margin-left: 3px; transition: transform .15s; }
.nav-cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100vw - 16px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--pr-line);
  border-radius: 0 0 var(--pr-radius-card) var(--pr-radius-card);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  padding: 14px 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px 16px;
}
.nav-cat-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #374151;
  text-decoration: none;
}
.nav-cat-dropdown a:hover { background: var(--pr-accent-soft); color: var(--pr-accent); }
.nav-cat-dropdown a:last-child {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-weight: 700;
  color: var(--pr-accent);
}
@media (min-width: 769px) {
  .nav-cat-item:hover > .nav-cat-dropdown,
  .nav-cat-item:focus-within > .nav-cat-dropdown { display: grid; }
  .nav-cat-item:hover .caret,
  .nav-cat-item:focus-within .caret { transform: rotate(180deg); }
}

/* Search suggestions + mobile search button (behaviour in /js/pr.js) */
.pr-search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 260px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 1100;
  background: #fff;
  border: 1px solid var(--pr-line);
  border-radius: var(--pr-radius-card);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
  padding: 6px;
}
.pr-search-suggest[hidden] { display: none; }
.pr-search-suggest a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--pr-radius);
  font-size: 13.5px;
  color: var(--pr-ink);
  text-decoration: none;
}
.pr-search-suggest a:hover, .pr-search-suggest a.active { background: var(--pr-accent-soft); color: var(--pr-accent); }
.pr-sg-cat { flex-shrink: 0; font-size: 11px; color: var(--pr-muted); background: #f3f4f6; border-radius: 999px; padding: 2px 8px; }
.pr-sg-empty { padding: 10px; font-size: 13px; color: var(--pr-muted); }
.pr-sg-empty a { display: inline; padding: 0; font-weight: 600; }
.pr-msearch-btn {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--pr-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pr-ink);
  cursor: pointer;
}
.pr-header.pr-msearch-open .pr-msearch-btn { background: var(--pr-accent-soft); color: var(--pr-accent); border-color: #bfdbfe; }

/* ── Page head band ─────────────────────────────────────────────────────── */
.pr-pagehead { background: var(--pr-band); color: #fff; }
.pr-pagehead .pr-container { padding-top: 30px; padding-bottom: 32px; }
.pr-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 12px; padding: 0; font-size: 12.5px; }
.pr-breadcrumb li { color: rgba(255, 255, 255, .78); }
.pr-breadcrumb li + li::before { content: "›"; margin: 0 7px; color: rgba(255, 255, 255, .5); }
.pr-breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.pr-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.pr-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #86efac; }
.pr-badge--warn::before { background: #fcd34d; }
.pr-badge--muted::before { background: rgba(255, 255, 255, .6); }
.pr-pagehead h1 {
  margin: 0 0 10px;
  max-width: 900px;
  font-size: clamp(22px, 1.6vw + 14px, 30px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #fff;
}
.pr-pagehead__sub { margin: 0 0 14px; max-width: 760px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.pr-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 4px; padding: 0; }
.pr-meta li {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .9);
}
.pr-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pr-cta .pr-btn { min-height: 44px; padding: 0 20px; }

/* ── Key stats strip ────────────────────────────────────────────────────── */
.pr-stats { background: #fff; border-bottom: 1px solid var(--pr-line); }
.pr-stats ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--pr-gutter);
  max-width: var(--pr-container);
}
.pr-stats li { padding: 14px 12px; border-right: 1px solid var(--pr-line); text-align: center; }
.pr-stats li:last-child { border-right: 0; }
.pr-stats__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-muted); }
.pr-stats__value { display: block; margin-top: 2px; font-size: 15px; font-weight: 800; color: var(--pr-ink); }

/* ── Section tabs ───────────────────────────────────────────────────────── */
.pr-tabs { position: sticky; top: var(--pr-header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--pr-line); }
.pr-tabs ul { display: flex; list-style: none; margin: 0 auto; padding: 0 var(--pr-gutter); max-width: var(--pr-container); overflow-x: auto; scrollbar-width: none; }
.pr-tabs ul::-webkit-scrollbar { display: none; }
.pr-tabs a {
  display: block;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pr-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.pr-tabs a:hover, .pr-tabs a.is-active { color: var(--pr-accent); border-bottom-color: var(--pr-accent); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.pr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pr-sidebar);
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 56px;
  align-items: start;
}
.pr-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ── Content sections (normalised from any source markup) ───────────────── */
.pr-section {
  background: #fff;
  border: 1px solid var(--pr-line);
  border-radius: var(--pr-radius-card);
  padding: 24px 26px;
}
.pr-section > h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pr-line);
  font-size: clamp(18px, 1.4vw + 12px, 21px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--pr-ink);
}
.pr-section h3 { margin: 22px 0 8px; font-size: 16.5px; font-weight: 700; color: var(--pr-ink); }
.pr-section h4 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; color: var(--pr-ink); }
.pr-section p { margin: 0 0 12px; }
.pr-section :is(ul, ol) { margin: 0 0 14px; padding-left: 22px; }
.pr-section li { margin-bottom: 6px; }
.pr-section > :last-child { margin-bottom: 0; }
/* Bare blocks from source pages get the same rhythm as paragraphs */
.pr-section div:not([class]) + :is(div:not([class]), p) { margin-top: 12px; }
/* Label + value rows (date timelines, info rows) */
.pr-kv {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.pr-kv > :first-child { font-weight: 700; color: var(--pr-ink); }
.pr-kv:last-child { border-bottom: 0; }
@media (max-width: 640px) { .pr-kv { grid-template-columns: 1fr; } }
.pr-section strong { color: var(--pr-ink); }
.pr-section a { font-weight: 600; text-decoration: none; }
.pr-section a:hover { text-decoration: underline; }

/* Tables: one style, scroll inside their own wrapper */
.pr-table { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--pr-line); border-radius: var(--pr-radius); }
.pr-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pr-table :is(th, td) { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pr-line); }
.pr-table th { background: #f1f5f9; font-weight: 700; color: var(--pr-ink); white-space: nowrap; }
.pr-table tr:last-child td { border-bottom: 0; }
.pr-table tbody tr:nth-child(even) td { background: #fafbfc; }

/* Callouts: every legacy box/notice/alert maps to one look */
.pr-callout {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--pr-radius);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--pr-accent);
  background: var(--pr-accent-soft);
}
.pr-callout--warn { border-color: #fde68a; border-left-color: var(--pr-warn); background: #fffbeb; }
.pr-callout > :last-child { margin-bottom: 0; }

/* Grids of tiles / cards from source pages */
.pr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0 0 16px; }
.pr-tiles > * { margin: 0 !important; padding: 14px; border: 1px solid var(--pr-line); border-radius: var(--pr-radius); background: var(--pr-surface); }

/* Big-number tiles (About page) */
.pr-stats-tiles > * { text-align: center; font-size: 13px; font-weight: 600; color: var(--pr-muted); background: var(--pr-accent-soft) !important; border-color: #dbeafe !important; }
.pr-big { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--pr-accent); letter-spacing: -0.02em; }

/* FAQ */
.pr-section details { border: 1px solid var(--pr-line); border-radius: var(--pr-radius); margin: 0 0 10px; background: #fff; }
.pr-section summary { padding: 12px 16px; font-weight: 700; color: var(--pr-ink); cursor: pointer; }
.pr-section details[open] summary { border-bottom: 1px solid var(--pr-line); }
.pr-section details > :not(summary) { padding: 12px 16px 0; }

/* Lists of mock tests from mock pages */
.pr-section .pr-test {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; margin: 0 0 8px; border: 1px solid var(--pr-line); border-radius: var(--pr-radius);
}

/* ── Forms (contact) ────────────────────────────────────────────────────── */
.pr-form { display: flex; flex-direction: column; gap: 16px; }
.pr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-field label { font-size: 13.5px; font-weight: 700; color: var(--pr-ink); }
.pr-field label span[aria-hidden] { color: var(--pr-bad); }
.pr-field__opt { font-weight: 500; color: var(--pr-muted); }
.pr-field :is(input, select, textarea) {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: var(--pr-radius);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--pr-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pr-field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.pr-field :is(input, select, textarea):focus { border-color: var(--pr-accent); box-shadow: 0 0 0 3px rgba(26, 86, 219, .14); }
.pr-field.is-invalid :is(input, select, textarea) { border-color: var(--pr-bad); }
.pr-field__error { margin: 0 !important; font-size: 12.5px; color: var(--pr-bad); }
.pr-field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.pr-field--check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pr-accent); flex-shrink: 0; }
.pr-field--check label { flex: 1; font-weight: 500; color: var(--pr-body); }
.pr-field--check .pr-field__error { flex-basis: 100%; }
.pr-field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pr-form__submit { align-self: flex-start; min-height: 46px; padding: 0 28px; font-size: 15px; }
.pr-form__submit[disabled] { opacity: .65; cursor: wait; }
.pr-form-status { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--pr-radius); font-size: 14.5px; }
.pr-form-status.is-ok { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 4px solid var(--pr-good); color: #14532d; }
.pr-form-status.is-error { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid var(--pr-bad); color: #7f1d1d; }
@media (max-width: 640px) {
  .pr-form__row { grid-template-columns: 1fr; }
  .pr-form__submit { align-self: stretch; }
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.pr-sidebar { position: sticky; top: calc(var(--pr-header-h) + 60px); display: flex; flex-direction: column; gap: 16px; }
.pr-card { background: #fff; border: 1px solid var(--pr-line); border-radius: var(--pr-radius-card); overflow: hidden; }
.pr-card__head { padding: 12px 16px; border-bottom: 1px solid var(--pr-line); font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--pr-ink); }
.pr-card__body { padding: 16px; }
.pr-card__body p { margin: 0 0 12px; font-size: 14px; }
.pr-card__body .pr-btn + .pr-btn { margin-top: 8px; }
.pr-card__note { margin: 10px 0 0 !important; font-size: 12px !important; color: var(--pr-muted); text-align: center; }
.pr-links { list-style: none; margin: 0; padding: 0; }
.pr-links li + li { border-top: 1px solid #f1f5f9; }
.pr-links a { display: block; padding: 9px 0; font-size: 13.5px; font-weight: 600; color: var(--pr-body); text-decoration: none; }
.pr-links a:hover { color: var(--pr-accent); }

/* ── Related exams ──────────────────────────────────────────────────────── */
.pr-related { padding: 0 0 40px; }
.pr-related h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--pr-ink); }
.pr-related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.pr-related a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border: 1px solid var(--pr-line); border-radius: var(--pr-radius);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--pr-ink); text-decoration: none;
}
.pr-related a::after { content: "›"; color: var(--pr-muted); font-size: 18px; line-height: 1; }
.pr-related a:hover { border-color: var(--pr-accent); color: var(--pr-accent); }

/* ── Footer: THE PrepResults footer (same design as the homepage) ─────────── */
.pr-foot { background: #0b1421; color: #94a3b8; padding: 48px 0 24px; font-size: 14px; line-height: 1.6; }
.pr-foot__wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pr-foot__top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; padding-bottom: 32px; }
.pr-foot a { color: #94a3b8; text-decoration: none; }
.pr-foot a:hover { color: #fff; }
.pr-foot__logo { display: inline-block; line-height: 0; }
.pr-foot__logo img { display: block; width: auto; height: 48px; }
.pr-foot__brand p { max-width: 32ch; margin: 12px 0 0; font-size: 14px; color: #94a3b8; }
.pr-foot__social { display: flex; gap: 10px; margin-top: 18px; }
.pr-foot__social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #cbd5e1;
}
.pr-foot__social a:hover { background: #1a56db; border-color: #1a56db; color: #fff; }
.pr-foot__social svg { width: 17px; height: 17px; }
.pr-foot__in { font-size: 13px; font-weight: 800; }
.pr-foot__col h4 { margin: 4px 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.pr-foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pr-foot__col a { font-size: 14.5px; }
.pr-foot__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 20px; border-top: 1px solid rgba(148, 163, 184, .2); font-size: 13.5px;
}
@media (max-width: 980px) {
  .pr-foot__top { grid-template-columns: repeat(3, 1fr); }
  .pr-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pr-foot { padding-top: 36px; }
  .pr-foot__wrap { padding: 0 16px; }
  .pr-foot__top { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .pr-foot__social a { width: 42px; height: 42px; }
  .pr-foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Drawer (phones) ────────────────────────────────────────────────────── */
.pr-drawer { position: fixed; inset: 0; z-index: 2000; visibility: hidden; }
.pr-drawer.open { visibility: visible; }
.pr-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .2s; }
.pr-drawer.open .pr-drawer__overlay { opacity: 1; }
.pr-drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: min(300px, 86vw);
  padding: 18px;
  overflow-y: auto;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .22s ease;
}
.pr-drawer.open .pr-drawer__panel { transform: none; }
.pr-drawer__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 20px; cursor: pointer; }
.pr-drawer__panel img { height: 32px; width: auto; margin-bottom: 16px; }
.pr-drawer__panel ul { list-style: none; margin: 0; padding: 0; }
.pr-drawer__panel li a { display: block; padding: 12px 4px; border-bottom: 1px solid #f1f5f9; font-size: 15px; font-weight: 600; color: var(--pr-ink); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .pr-layout { grid-template-columns: minmax(0, 1fr); }
  .pr-sidebar { position: static; }
}
@media (max-width: 768px) {
  :root { --pr-gutter: 16px; --pr-header-h: 100px; }
  .pr-hamburger { display: flex; }
  .pr-search { display: none; }
  .pr-msearch-btn { display: inline-flex; }
  .pr-header__actions .pr-btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .pr-header.pr-msearch-open .pr-search {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: none;
    z-index: 1050;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid var(--pr-line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  }
  .pr-header.pr-msearch-open .pr-search input { font-size: 16px; height: 44px; }
  .pr-header.pr-msearch-open .pr-search-suggest { left: 12px; right: 12px; min-width: 0; max-height: 60vh; }
  .nav-cat-item.open > .nav-cat-dropdown {
    display: grid;
    grid-template-columns: 1fr;
    left: 8px; right: 8px; width: auto;
    transform: none;
    max-height: 65vh;
    border-radius: var(--pr-radius-card);
    padding: 8px;
  }
  .nav-cat-item.open .caret { transform: rotate(180deg); }
}
@media (max-width: 640px) {
  .pr-pagehead .pr-container { padding-top: 20px; padding-bottom: 24px; }
  .pr-cta .pr-btn { flex: 1 1 100%; }
  .pr-stats li { border-right: 0; border-bottom: 1px solid var(--pr-line); text-align: left; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; }
  .pr-stats ul { grid-template-columns: 1fr; }
  .pr-section { padding: 18px 16px; }
}
@media (max-width: 400px) {
  .pr-header__actions .pr-btn--outline { display: none; }
  .pr-header__top { gap: 10px; }
}
