/* ============ E-Bharatisampat Redesign — styles ============ */

:root {
  --bg: #faf6ee;
  --bg-soft: #f3ecdd;
  --surface: #ffffff;
  --surface-2: #f7f1e4;
  --ink: #221c14;
  --ink-soft: #5c5242;
  --line: #e6dcc8;
  --accent: #b45309;
  --accent-strong: #92400e;
  --accent-ink: #fff7ed;
  --indigo: #3b4796;
  --indigo-soft: #ecedfb;
  --ok: #15803d;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(82, 63, 29, .06), 0 8px 24px rgba(82, 63, 29, .08);
  --shadow-lg: 0 10px 30px rgba(82, 63, 29, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-bg: rgba(250, 246, 238, .86);
  --accent-faint: rgba(180, 83, 9, .12);
  --accent-down: rgba(180, 83, 9, .14);
  --accent-mid: rgba(180, 83, 9, .32);
  --hero-acc-a: rgba(180, 83, 9, .18);
  --hero-ind-a: rgba(59, 71, 150, .16);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-deva: "Noto Serif Devanagari", Georgia, serif;
  --head-font: "Inter", var(--font-sans);
}

html[data-theme="dark"] {
  --bg: #17130c;
  --bg-soft: #201a10;
  --surface: #241d12;
  --surface-2: #2c2415;
  --ink: #f3ead7;
  --ink-soft: #c3b594;
  --line: #3e3320;
  --accent: #f59e0b;
  --accent-strong: #fbbf24;
  --accent-ink: #231a05;
  --indigo: #8b9bff;
  --indigo-soft: #2a2c46;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .6);
  --nav-bg: rgba(23, 19, 12, .9);
  --accent-faint: rgba(245, 158, 11, .12);
  --accent-down: rgba(245, 158, 11, .14);
  --accent-mid: rgba(245, 158, 11, .28);
  --hero-acc-a: rgba(245, 158, 11, .16);
  --hero-ind-a: rgba(139, 155, 255, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 66px; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: var(--font-deva); font-weight: 700; font-size: 1.35rem;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; letter-spacing: -.01em; }
.brand-tag { font-size: .68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

.nav-links { display: flex; gap: 4px; margin-left: 10px; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: transform .2s;
}
.theme-toggle:hover { transform: rotate(15deg); }
html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 18px;
  font-weight: 700; font-size: .92rem; cursor: pointer; font-family: var(--font-sans);
  transition: transform .12s ease, box-shadow .15s ease, background .2s;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-accent:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-orig {
  background: var(--indigo-soft); color: var(--indigo); border-color: transparent;
}
.btn-orig:hover { background: var(--indigo); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-size {
  font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,.14); border: 1px solid rgba(255,255,255,.35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, var(--hero-acc-a), transparent 60%),
    radial-gradient(800px 460px at 92% 0%, var(--hero-ind-a), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 84px 20px 90px; text-align: center; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-strong);
  background: var(--accent-faint);
  border: 1px solid var(--accent-mid);
  padding: 6px 14px; border-radius: 999px; margin: 0 0 18px;
}

.hero-title {
  font-family: var(--head-font); font-weight: 800; font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  letter-spacing: -.03em; line-height: 1.04; margin: 0 0 20px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-title .deva { font-family: var(--font-deva); color: var(--indigo); }

.hero-sub {
  max-width: 720px; margin: 0 auto 30px; color: var(--ink-soft); font-size: 1.07rem;
}
.hero-sub strong { color: var(--ink); }

.hero-search {
  max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow-lg);
}
.hero-search svg { color: var(--ink-soft); flex: none; }
.hero-search input {
  flex: 1; border: 0; outline: none; background: transparent; color: var(--ink);
  font-size: 1rem; font-family: var(--font-sans); padding: 10px 4px;
}
.hero-search input::placeholder { color: var(--ink-soft); }

.hero-stats {
  display: flex; justify-content: center; gap: 34px; margin-top: 44px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-weight: 800; font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-lbl { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 64px 20px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-title { font-family: var(--head-font); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.section-note { color: var(--ink-soft); margin: 0; max-width: 46ch; font-size: .95rem; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cat-card {
  --chue: 24;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; cursor: pointer;
  background:
    linear-gradient(135deg, hsl(var(--chue) 55% 96%), hsl(var(--chue) 40% 92%));
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
}
html[data-theme="dark"] .cat-card {
  background: linear-gradient(135deg, hsl(var(--chue) 30% 18%), hsl(var(--chue) 32% 12%));
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: hsl(var(--chue) 45% 70%); }
.cat-card .cc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat-card .cc-count {
  font-size: .78rem; font-weight: 700; color: hsl(var(--chue) 45% 35%);
  background: hsl(var(--chue) 50% 88%); padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
html[data-theme="dark"] .cat-card .cc-count { color: hsl(var(--chue) 70% 78%); background: hsl(var(--chue) 30% 24%); }
.cat-card .cc-deva { font-family: var(--font-deva); font-size: 1.15rem; font-weight: 700; color: hsl(var(--chue) 40% 28%); }
html[data-theme="dark"] .cat-card .cc-deva { color: hsl(var(--chue) 65% 80%); }
.cat-card .cc-trans { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--chue) 42% 34%); }
html[data-theme="dark"] .cat-card .cc-trans { color: hsl(var(--chue) 60% 70%); }
.cat-card .cc-en { font-size: .84rem; color: var(--ink); opacity: .75; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.tool-search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  min-width: 200px;
}
.tool-search svg { color: var(--ink-soft); flex: none; }
.tool-search input { flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; padding: 10px 0; }
.tool-sel select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 34px 10px 12px;
  max-width: 260px; cursor: pointer;
}

/* ---------- Book grid ---------- */
.book-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.book-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s;
  cursor: pointer;
  color: inherit; text-decoration: none; outline-offset: 2px;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-mid); }
.book-card .bc-thumb {
  position: relative; width: 100%; aspect-ratio: 6 / 8; overflow: hidden;
  background: hsl(var(--chue, 24) 30% 88%);
  border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
html[data-theme="dark"] .book-card .bc-thumb { background: hsl(var(--chue, 24) 25% 18%); }
.book-card .bc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-card .bc-thumb-fallback::before { content: "॥"; font-size: 2.4rem; color: hsl(var(--chue, 24) 40% 45%); }
html[data-theme="dark"] .book-card .bc-thumb-fallback::before { color: hsl(var(--chue, 24) 55% 70%); }
.book-card .bc-series {
  position: absolute; left: 8px; bottom: 8px; font-size: .66rem; font-weight: 700;
  color: #fff; background: rgba(10, 14, 28, .72); padding: 2px 8px; border-radius: 999px;
  letter-spacing: .04em; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis;
}
.bc-thumb-fallback .bc-series { position: static; }
.bc-thumb-fallback { flex-direction: column; gap: 8px; }
.book-card .bc-tag {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: hsl(var(--chue, 24) 45% 35%);
  background: hsl(var(--chue, 24) 50% 90%); padding: 3px 9px; border-radius: 999px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html[data-theme="dark"] .book-card .bc-tag { color: hsl(var(--chue, 24) 65% 78%); background: hsl(var(--chue, 24) 30% 22%); }
.book-card .bc-pdf {
  align-self: flex-start; margin-top: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .09em;
  color: var(--accent-strong); background: var(--accent-down);
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent-mid);
}
.book-card .bc-pdf-pending { color: var(--ink-soft); background: var(--surface-2); border-color: var(--line); }
.book-card h3 { margin: 2px 0 0; font-size: 1.02rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.book-card .bc-auth { font-size: .85rem; color: var(--ink-soft); }
.book-card .bc-pub { font-size: .8rem; color: var(--ink-soft); opacity: .9; }
.book-card .bc-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; padding-top: 8px; }
.book-card .bc-size { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.book-card .bc-det { margin-left: auto; font-size: .76rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-down); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--accent-mid); }
.book-card .bc-det:hover { background: var(--accent); color: var(--accent-ink); }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-title { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: 0 0 4px; }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 10px; font: inherit; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 9px; cursor: pointer;
}
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.pager button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- About ---------- */
.section-about { padding-bottom: 84px; }
.about-card {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: 22px; padding: 42px 34px;
  box-shadow: var(--shadow);
}
.about-orn {
  position: absolute; right: -18px; top: -34px; font-family: var(--font-deva);
  font-size: 8rem; font-weight: 700; color: var(--accent-down);
  transform: rotate(-8deg); user-select: none; pointer-events: none;
}
.about-card p { max-width: 78ch; }
.about-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.toast[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 18, 8, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; width: min(720px, 100%); max-height: 86vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 28px;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--accent); color: var(--accent-ink); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.modal-cover {
  flex: none; width: 84px; height: 118px; border-radius: 10px;
  background: linear-gradient(150deg, hsl(var(--chue,30) 45% 78%), hsl(var(--chue,30) 30% 48%));
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: var(--shadow); font-family: var(--font-deva); font-size: 1rem;
  overflow: hidden; position: relative;
}
.modal-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-title { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.modal-sub { color: var(--ink-soft); font-size: .95rem; margin: 6px 0 0; }
.modal-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 20px; }
.meta-cell { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.meta-cell .k { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.meta-cell .v { font-weight: 600; margin-top: 2px; word-break: break-word; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge-size { font-weight: 700; font-size: .86rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface-2); }
.modal-hint { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }
.modal-hint code { font-size: .78rem; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); z-index: 400;
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 54px 20px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 28px;
}
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { color: var(--ink); font-size: .92rem; }
.footer-col a:hover { color: var(--accent-strong); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-note { color: var(--ink-soft); font-size: .86rem; margin: 0; }
.footer-addr { font-style: normal; color: var(--ink-soft); font-size: .88rem; line-height: 1.7; }
.footer-addr a { color: var(--ink-soft); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 20px; text-align: center;
  color: var(--ink-soft); font-size: .8rem;
}

/* ---------- Static book pages ---------- */
.book-page { max-width: 1080px; margin: 0 auto; padding: 36px 20px 60px; }
.book-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.book-detail-head { display: flex; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.book-detail-cover { position: relative; width: 170px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.book-detail-cover::before { content: ""; display: block; padding-top: 140%; background: linear-gradient(150deg, hsl(var(--chue, 30) 45% 40%), hsl(var(--chue, 30) 45% 60%)); }
.book-detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-detail-cover .bc-series { position: absolute; inset: auto 0 0; text-align: center; font-size: .68rem; color: #fff; background: rgba(0,0,0,.55); padding: 3px 4px; letter-spacing: .04em; }
.book-detail-info { flex: 1; min-width: 0; }
.book-detail-info h1 { margin: 0 0 6px; font-size: 1.7rem; line-height: 1.3; }
.book-detail-author { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 16px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.book-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: 0; padding: 8px 24px 20px; }
.meta-cell { border: 1px solid var(--line); border-left: none; border-top: none; background: var(--bg-soft); padding: 10px 12px; }
.meta-cell .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 3px; }
.meta-cell .v { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.reader { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.reader-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: .9rem; }
.reader-frame { width: 100%; height: 80vh; min-height: 480px; border: 0; display: block; background: #525659; }
@media (max-width: 720px) {
  .book-detail-head { flex-direction: column; }
  .book-detail-cover { width: 100%; max-width: 220px; }
  .book-detail-info h1 { font-size: 1.35rem; }
  .reader-frame { height: 75vh; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .hero-inner { padding: 60px 16px 70px; }
  .hero-stats { gap: 20px; }
  .btn-orig { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 48px 16px; }
  .modal-panel { padding: 20px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}