/* KVR College — public site styles
   Palette drawn from the college emblem: temple maroon, turmeric, neem green. */
:root {
  --maroon: #6e1e2b;
  --maroon-deep: #4a121c;
  --turmeric: #e2a62b;
  --turmeric-soft: #f7e7c2;
  --neem: #2e5e3e;
  --stone: #f1f2ef;
  --paper: #ffffff;
  --ink: #1f1c1b;
  --muted: #5e5a57;
  --line: #dedcd6;
  --serif: "Spectral", Georgia, "Noto Serif Telugu", serif;
  --sans: "Mukta", "Segoe UI", system-ui, -apple-system, "Noto Sans Telugu", sans-serif;
  --wrap: 1180px;
  --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-deep); }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- woven border: the one decorative device ---------- */
.weave {
  height: 10px;
  background:
    linear-gradient(var(--maroon), var(--maroon)) top / 100% 2px no-repeat,
    linear-gradient(var(--maroon), var(--maroon)) bottom / 100% 2px no-repeat,
    repeating-linear-gradient(45deg, transparent 0 3px, var(--maroon) 3px 4px, transparent 4px 7px),
    repeating-linear-gradient(-45deg, transparent 0 3px, var(--maroon) 3px 4px, transparent 4px 7px),
    var(--turmeric);
}

/* ---------- top bar ---------- */
.topbar { background: var(--maroon-deep); color: #f3e6e8; font-size: .875rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- masthead ---------- */
.masthead { background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 64px; height: auto; flex: none; }
.brand-name { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 3.2vw, 2.05rem); line-height: 1.1; color: var(--maroon); letter-spacing: -.01em; }
.brand-sub { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.accred { display: flex; align-items: center; gap: 12px; text-align: right; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.accred img { width: 62px; height: auto; }
.accred strong { color: var(--ink); font-weight: 600; display: block; }

/* ---------- main navigation ---------- */
.mainnav { background: var(--maroon); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.mainnav .wrap { display: flex; align-items: stretch; }
.nav-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 15px; color: #fff; text-decoration: none;
  font: 500 1rem var(--sans); background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.menu > li > a:hover, .menu > li > button:hover, .menu > li.open > button, .menu > li > a[aria-current="page"], .menu > li.active > button { background: var(--maroon-deep); color: #fff; }
.menu > li > a[aria-current="page"], .menu > li.active > button { box-shadow: inset 0 -3px 0 var(--turmeric); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .8; }
.submenu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--paper); border-top: 3px solid var(--turmeric);
  box-shadow: 0 12px 28px rgba(40, 10, 15, .18); padding: 10px 0; z-index: 60;
}
.menu > li.open > .submenu { display: block; }
.submenu ul { list-style: none; margin: 0; padding: 0; }
.submenu a { display: block; padding: 7px 20px; color: var(--ink); text-decoration: none; font-size: .975rem; }
.submenu a:hover, .submenu a:focus-visible, .submenu a[aria-current="page"] { background: var(--stone); color: var(--maroon); }
.submenu a[aria-current="page"] { font-weight: 600; }
.submenu.cols { display: none; grid-auto-flow: column; grid-template-columns: repeat(var(--cols, 3), minmax(190px, 1fr)); padding: 14px 6px; }
.menu > li.open > .submenu.cols { display: grid; }
.submenu .col-head { padding: 4px 20px 6px; font-family: var(--serif); font-weight: 600; color: var(--maroon); font-size: .95rem; }
.menu > li:last-child .submenu, .menu > li:nth-last-child(2) .submenu { left: auto; right: 0; }
.nav-end { margin-left: auto; display: flex; align-items: center; }
.nav-end a { color: #fff; text-decoration: none; font-size: .95rem; padding: 0 6px 0 14px; opacity: .9; }
.nav-end a:hover { opacity: 1; text-decoration: underline; }

/* ---------- notice ticker ---------- */
.ticker { background: var(--turmeric-soft); border-bottom: 1px solid #ecd59f; font-size: .95rem; }
.ticker .wrap { display: flex; gap: 14px; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.ticker-label { flex: none; font-weight: 600; color: var(--maroon-deep); }
.ticker-track { overflow: hidden; flex: 1; position: relative; }
.ticker-list { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; white-space: nowrap; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-list, .ticker:focus-within .ticker-list { animation-play-state: paused; }
.ticker-list a { color: var(--ink); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--maroon-deep); color: #fff; overflow: hidden; }
.slides { position: relative; aspect-ratio: 1920 / 560; min-height: 300px; max-height: 560px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,8,14,.78) 0%, rgba(40,8,14,.35) 45%, rgba(40,8,14,0) 70%); }
.slide-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; font-size: .9rem; opacity: .85; }
.hero-text { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; pointer-events: none; }
.hero-text .wrap { width: 100%; }
.hero-text-inner { max-width: 560px; pointer-events: auto; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin: 0 0 14px; letter-spacing: -.015em; text-wrap: balance; }
.hero p { margin: 0 0 22px; font-size: 1.1rem; max-width: 46ch; color: #f6ecee; }
.hero-dots { position: absolute; z-index: 4; right: 20px; bottom: 16px; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button[aria-current="true"] { background: var(--turmeric); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font: 600 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--turmeric); color: var(--maroon-deep); }
.btn-primary:hover { background: #f0b843; color: var(--maroon-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; margin-left: 8px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- home sections ---------- */
.band { padding: 56px 0; }
.band-stone { background: var(--stone); }
.band h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 22px; }
.home-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.section-head h2 { margin: 0 0 10px; }
.section-head a { font-weight: 600; white-space: nowrap; }

.notices { list-style: none; margin: 0; padding: 0; }
.notice { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notice-date { text-align: center; border: 1px solid var(--line); border-top: 4px solid var(--maroon); border-radius: 2px; padding: 4px 0 6px; line-height: 1.1; align-self: start; background: var(--paper); }
.notice-date .d { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--maroon); }
.notice-date .m { display: block; font-size: .78rem; color: var(--muted); }
.notice h3 { font-size: 1.15rem; margin: 0 0 4px; }
.notice h3 a { color: var(--ink); text-decoration: none; }
.notice h3 a:hover { color: var(--maroon); text-decoration: underline; }
.notice p { margin: 0; color: var(--muted); font-size: .98rem; }
.empty-note { color: var(--muted); padding: 18px 0; }

.programs { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.program { padding: 18px 0; border-bottom: 1px solid var(--line); }
.program a.program-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.program a.program-name:hover { color: var(--maroon); text-decoration: underline; }
.program-level { display: inline-block; margin-left: 10px; font-size: .78rem; color: var(--neem); border: 1px solid #b9cdbf; padding: 0 8px; border-radius: 20px; vertical-align: 3px; }
.program p { margin: 4px 0 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 220px 1fr 300px; gap: 44px; align-items: start; }
.emblem-card { text-align: center; }
.emblem-card img { width: 170px; mix-blend-mode: multiply; }
.emblem-card p { font-family: var(--serif); font-style: italic; margin: 10px 0 0; color: var(--maroon); }
.about-text p { margin: 0 0 14px; max-width: 62ch; }
.facts { margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.dept-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.dept-groups h3 { font-size: 1.15rem; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--maroon); }
.dept-groups ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.dept-groups li { break-inside: avoid; padding: 4px 0; }
.dept-groups a { color: var(--ink); text-decoration: none; }
.dept-groups a:hover { color: var(--maroon); text-decoration: underline; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.quote { margin: 0; padding-left: 18px; border-left: 3px solid var(--turmeric); }
.quote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; margin: 0 0 12px; }
.quote footer { font-size: .92rem; color: var(--muted); }
.quote footer strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- inner pages ---------- */
.pagehead { background: var(--stone); padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.pagehead h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.pagehead .lede { margin: 10px 0 0; color: var(--muted); max-width: 70ch; font-size: 1.1rem; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 64px; }
.page-grid.has-toc { grid-template-columns: 220px minmax(0, 1fr); }
.toc { position: sticky; top: 74px; align-self: start; font-size: .95rem; }
.toc h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--maroon); }
.toc a.is-current { border-left-color: var(--maroon); color: var(--maroon); font-weight: 600; }
.page-body { min-width: 0; }
.block { margin: 0 0 44px; }
.block > h2 { font-size: 1.6rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.block-intro { margin-bottom: 16px; }

.prose { max-width: 74ch; }
.prose p { margin: 0 0 14px; }
.prose h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: 2px; }
.prose .table-wrap, .table-wrap { overflow-x: auto; margin: 0 0 18px; max-width: 100%; }
.prose table, .data-table { border-collapse: collapse; width: 100%; font-size: .97rem; }
.prose th, .prose td, .data-table th, .data-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose th, .data-table th { background: var(--stone); font-weight: 600; border-bottom: 2px solid #cfccc4; white-space: nowrap; }
.prose td h3 { margin: 10px 0 0; font-size: 1.1rem; color: var(--maroon); }
.prose blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--turmeric); }
.page-body > .block:first-child .prose:first-child > p:first-child { font-size: 1.12rem; }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.person { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.person-photo { width: 84px; height: 104px; object-fit: cover; border-radius: 3px; background: var(--stone); display: block; }
.person-initials { width: 84px; height: 104px; border-radius: 3px; background: var(--stone); color: var(--maroon); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.person-name { font-size: 1.08rem; margin: 0 0 2px; }
.person p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.4; }
.person .person-role { color: var(--ink); margin-top: 4px; }
.person .person-extra { margin-top: 4px; color: var(--neem); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gallery.covers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 20px; }
.gallery figure { margin: 0; }
.gallery a { display: block; color: inherit; text-decoration: none; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 3px; background: var(--stone); }
.gallery.wide img { aspect-ratio: auto; object-fit: contain; }
.gallery.covers img { aspect-ratio: 3 / 4; box-shadow: 0 1px 0 var(--line), 4px 6px 0 -2px #d9d6cf; }
.gallery figcaption { font-size: .93rem; margin-top: 8px; line-height: 1.4; }
.gallery figcaption strong { display: block; font-weight: 600; }
.gallery figcaption span { color: var(--muted); }
.gallery a:hover figcaption strong { color: var(--maroon); text-decoration: underline; }

.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 760px; }
.docs li { border-bottom: 1px solid var(--line); }
.docs a { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.docs a:hover { background: var(--stone); }
.docs a:hover .doc-title { color: var(--maroon); text-decoration: underline; }
.doc-type { font-size: .72rem; font-weight: 700; color: #fff; background: var(--maroon); border-radius: 3px; text-align: center; padding: 3px 0; }
.doc-type.img { background: var(--neem); }
.doc-meta { color: var(--muted); font-size: .9rem; }

.timeline { list-style: none; margin: 0; padding: 0; max-width: 780px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 84px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 36px; padding: 8px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 80px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--maroon); }
.tl-year { font-family: var(--serif); font-weight: 600; color: var(--maroon); text-align: right; }
.timeline p { margin: 0; }

.news-list .notice h3 { font-size: 1.25rem; }
.article { max-width: 74ch; }
.article-meta { color: var(--muted); margin: 8px 0 0; }
.article-img { margin: 0 0 20px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20, 8, 10, .92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px 60px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox p { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #eee; margin: 0; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; padding: 10px; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- footer ---------- */
.site-footer { background: var(--maroon-deep); color: #ecdfe1; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
.site-footer h2 { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin: 0 0 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 52px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); }
.footer-base .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; font-size: .86rem; color: #cdb9bd; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 160px 1fr; }
  .about-grid .facts { grid-column: 1 / -1; }
  .emblem-card img { width: 130px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  html { scroll-padding-top: 20px; }
  .accred span { display: none; }
  .mainnav { position: relative; }
  .mainnav .wrap { flex-wrap: wrap; padding: 0; }
  .nav-toggle { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; background: none; border: 0; color: #fff; font: 600 1rem var(--sans); cursor: pointer; width: 100%; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
  .menu { display: none; flex-direction: column; width: 100%; padding-bottom: 8px; }
  .mainnav.open .menu { display: flex; }
  .menu > li > a, .menu > li > button { height: 46px; width: 100%; padding: 0 20px; justify-content: space-between; }
  .submenu, .submenu.cols { position: static; box-shadow: none; border-top: 0; background: var(--maroon-deep); padding: 4px 0 8px; min-width: 0; }
  .menu > li.open > .submenu.cols { display: block; }
  .submenu a { color: #f6eaec; padding-left: 34px; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
  .submenu .col-head { color: var(--turmeric); padding-left: 34px; padding-top: 8px; }
  .nav-end { display: none; }
  .home-grid, .dept-groups, .quotes { grid-template-columns: 1fr; gap: 36px; }
  .page-grid.has-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
  .toc ul { columns: 2; border: 0; }
  .toc a { padding-left: 0; border: 0; margin: 0; }
  .hero-text { position: relative; background: var(--maroon-deep); padding: 26px 0 30px; }
  .slides { min-height: 0; }
  .slide::after { display: none; }
  .hero-dots { bottom: auto; top: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topbar .wrap { justify-content: center; }
  .topbar-contact { display: none; }
  .brand img { width: 48px; }
  .brand-sub { font-size: .8rem; }
  .accred img { width: 48px; }
  .band { padding: 40px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .emblem-card { display: flex; gap: 16px; align-items: center; text-align: left; }
  .emblem-card img { width: 90px; }
  .dept-groups ul { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 64px; }
  .timeline li { grid-template-columns: 52px 1fr; gap: 30px; }
  .timeline li::before { left: 60px; }
  .gallery.wide { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .btn-ghost { margin-left: 0; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-list { animation: none; flex-wrap: wrap; white-space: normal; width: auto; }
  .slide { transition: none; }
}
@media print {
  .topbar, .mainnav, .ticker, .toc, .site-footer, .hero-dots { display: none !important; }
  .page-grid.has-toc { grid-template-columns: 1fr; }
}
