/*
Theme Name: Repository Theme
Description: Public pages for the thesis repository. Needs the Repository Core plugin.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.2
Author: Alchemy Solutions
License: Proprietary
Text Domain: sangraha
*/

/* Tokens. --accent is overridden per college from settings (functions.php). */
:root {
	--ink: #26332d;
	--muted: #5d6b63;
	--line: #d9d6c8;
	--paper: #fbf9f3;
	--white: #ffffff;
	--tint: #f3efe3;
	--sage: #dfe9e1;
	--forest: #0f4a3a;
	--accent: #0b6b57;
	--accent-ink: #ffffff;
	--gold: #b0802a;
	--gold-light: #d9a944;
	--mark: #f1deaa;
	--c1: #e3eee6;
	--c2: #f6eadb;
	--c3: #dcedf0;
	--c4: #e8e2f1;
	--c5: #e6efd9;
	--radius: 6px;
	--s1: 4px;
	--s2: 8px;
	--s3: 12px;
	--s4: 16px;
	--s5: 24px;
	--s6: 32px;
	--s7: 48px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", sans-serif;
	--serif: "Lora", Georgia, "Noto Serif Devanagari", "Kohinoor Devanagari", serif;
	--deva: "Noto Serif Devanagari", "Kohinoor Devanagari", "Nirmala UI", serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; } /* anchors land below the pinned menu bar */
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 16px/1.65 var(--font);
}
h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; font-family: var(--serif); font-weight: 600; color: var(--forest); }
:lang(hi), :lang(mr), :lang(sa) { font-family: var(--deva); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a, button, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
input, select, button, textarea { font: inherit; font-size: 16px; color: inherit; }
mark { background: var(--mark); color: inherit; padding: 0 0.1em; border-radius: 2px; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--white); padding: var(--s2) var(--s4); }
.skip:focus { left: var(--s2); }
.muted { color: var(--muted); }

/* Header: college | wordmark | partner. Stacks and centres on phones. */
.hd {
	display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center;
	gap: var(--s3); padding: var(--s4) var(--s4) var(--s3); max-width: 1280px; margin: 0 auto;
}
.hd-college { display: flex; align-items: center; gap: var(--s3); color: var(--forest); text-align: left; }
.hd-college b { display: block; font: 600 15px/1.3 var(--serif); }
.hd-college .motto { display: block; font-size: 14px; }
.emblem { width: 52px; height: 52px; object-fit: contain; flex: none; }
.hd-mark { display: grid; text-decoration: none; color: var(--forest); }
.wm { font: 600 34px/1.05 var(--serif); color: var(--forest); margin: 0; letter-spacing: 0.005em; }
.wm i { font-style: normal; color: var(--gold); }
.hd-sub { font: 15px/1.4 var(--serif); margin-top: var(--s1); }
.hd-spacer { display: none; }
@media (min-width: 900px) {
	.hd { grid-template-columns: 1fr auto 1fr; justify-items: stretch; align-items: center; gap: var(--s4); padding: var(--s4) 5vw; }
	.hd-mark { text-align: center; }
	.wm { font-size: 44px; }
	.hd-spacer { display: block; }
	.emblem { width: 64px; height: 64px; }
	.hd-college b { font-size: 17px; }
}

/* Image logo variant: logo on the left (centred on phones), partner credit on the right. */
.hd-brand { display: block; line-height: 0; }
.hd-brand img { display: block; width: auto; height: 64px; max-width: 100%; }
.hd-logo .hd-college:empty { display: none; }
/* Emblem beside the logo on phones, so the header doesn't grow taller. */
/* Repository logo on the left, college emblem at the right end. */
.hd-logo:has(.hd-college) { grid-template-columns: minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; }
.hd-logo .hd-college { justify-self: end; }
.hd-logo .emblem { width: auto; height: 56px; }
@media (min-width: 700px) {
	.hd-brand img { height: 72px; }
}
@media (min-width: 900px) {
	.hd-logo { grid-template-columns: auto; }
	.hd-logo .hd-brand { justify-self: start; }
	.hd-logo:has(.hd-college) { grid-template-columns: minmax(0, 1fr) auto; }
	.hd-logo .emblem { height: 84px; }
	.hd-brand img { height: 84px; }
}
/* The wide logo's smallest line (college name) is ~11% of its height; keep it readable. */
@media (min-width: 1100px) {
	.hd-brand img { height: 100px; }
	.hd-logo .emblem { height: 100px; }
}
.hero-logo { line-height: 0; }
.hero-logo img { display: block; width: min(100%, 460px); height: auto; margin: 0 auto; }

/* Main menu: sticky bar; collapses behind a button on phones. */
.nav { background: var(--tint); border-block: 1px solid var(--line); position: sticky; top: 0; z-index: 10; transition: box-shadow 0.2s; }
/* Shadow once the bar is pinned (site.js toggles .is-stuck). */
.nav.is-stuck { box-shadow: 0 2px 10px rgba(15, 74, 58, 0.12); }
/* Logged-in users: keep below the WordPress admin bar. */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }
.nav-in { max-width: 1280px; margin: 0 auto; padding: 0 var(--s4); }
.nav-toggle {
	display: flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0; border: 0; background: none;
	color: var(--forest); font-weight: 600; cursor: pointer;
}
.nav-toggle::before { content: ""; width: 18px; height: 12px; border-block: 2px solid currentColor; box-shadow: inset 0 5px 0 -3px var(--tint), inset 0 7px 0 -3px currentColor; }
.menu { list-style: none; margin: 0; padding: 0 0 var(--s2); display: none; }
.nav.open .menu { display: block; }
.menu a {
	display: flex; align-items: center; min-height: 44px; padding: 0 var(--s2);
	color: var(--forest); text-decoration: none; font-size: 15px; border-left: 3px solid transparent;
}
.menu a[aria-current="page"], .menu .current-menu-item > a { border-color: var(--accent); font-weight: 600; }
@media (min-width: 900px) {
	.nav-in { padding: 0 5vw; }
	.nav-toggle { display: none; }
	.menu { display: flex; padding: 0; gap: var(--s1); }
	.menu a { min-height: 48px; padding: 0 var(--s3); border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
	.menu .menu-account { margin-left: auto; }
}

/* Search box */
.search { display: flex; gap: var(--s2); margin: var(--s5) 0 var(--s4); }
.search input {
	flex: 1; min-width: 0; height: 52px; padding: 0 var(--s4);
	border: 1px solid #a9b2ad; border-radius: var(--radius); background: var(--white);
	font-size: 16px;
}
.search input:focus-visible { outline-offset: 0; }
.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 var(--s4); border: 0; border-radius: var(--radius);
	background: var(--accent); color: var(--accent-ink); font-weight: 600;
	text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none;
	white-space: nowrap;
}
.search .button { height: 52px; flex-shrink: 0; }
.button-quiet { background: var(--tint); color: var(--ink); border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) {
	.button:hover { filter: brightness(1.12); }
}
.button:active { filter: brightness(0.92); }

/* Results bar */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.results-count { font-weight: 600; }
.sort { display: flex; gap: var(--s1); font-size: 15px; }
.sort a, .sort span {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3);
	border-radius: var(--radius); text-decoration: none;
}
.sort span { background: var(--tint); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); list-style: none; padding: 0; }
.chip {
	display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px;
	padding: var(--s1) var(--s3); border: 1px solid var(--line); border-radius: 999px;
	background: var(--tint); color: var(--ink); text-decoration: none; font-size: 15px;
	overflow-wrap: anywhere;
}
.chip-x { font-size: 18px; line-height: 1; color: var(--muted); }
.notice { margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--sage); border-left: 4px solid var(--accent); }
.notice-error { background: #f8e5e0; border-color: #8a3b2b; }

/* Layout: filters beside results on wide screens */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s4); }
@media (min-width: 900px) {
	.layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s6); }
}

/* Filters */
.filters { border: 1px solid var(--line); border-radius: var(--radius); }
.filters > summary {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 48px; padding: 0 var(--s4); font-weight: 600; cursor: pointer; list-style: none;
}
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: "+"; font-size: 22px; color: var(--muted); }
.filters[open] > summary::after { content: "−"; }
.filters form { display: grid; gap: var(--s4); padding: var(--s4); }
@media (min-width: 900px) {
	.filters { border: 0; align-self: start; position: sticky; top: 64px; } /* below the pinned menu bar */
	.filters > summary { display: none; }
	.filters form { padding: 0; }
}
.field { display: grid; gap: var(--s1); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; }
.field select, .field input, .field textarea {
	width: 100%; min-height: 44px; padding: 0 var(--s3);
	border: 1px solid #b9c3be; border-radius: var(--radius); background: var(--white);
}
.field textarea { padding: var(--s2) var(--s3); min-height: 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); border: 0; padding: 0; margin: 0; }
.filter-actions { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }

/* Result list: hairline separated, no cards */
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: var(--s4) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s1); }
.result:first-child { border-top: 0; padding-top: 0; }
/* Long thesis titles clamp to 4 lines in lists; the record page shows them in full.
   padding-block keeps Devanagari matras from being clipped by the clamp. */
.result-title {
	font-size: 19px; font-weight: 650; overflow-wrap: anywhere; padding-block: 2px;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.result-title { font-family: var(--serif); color: var(--forest); }
.result-title a { color: var(--forest); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
	.result-title a:hover { color: var(--accent); text-decoration: underline; }
}
.result-dev { font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.result-people, .result-meta { font-size: 15px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.result-snippet {
	font-size: 15px; line-height: 1.7; padding-block: 2px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.badge {
	display: inline-block; margin-left: var(--s1); padding: 0 var(--s2);
	border: 1px solid var(--line); border-radius: var(--radius);
	font-size: 13px; line-height: 1.7; color: var(--ink); white-space: nowrap;
}
.badge-open { border-color: var(--accent); color: var(--accent); background: var(--sage); }

/* Pagination */
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin: var(--s5) 0; font-size: 15px; }
.pager a, .pager span.off {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4);
	border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.pager span.off { color: #9aa49f; }

/* Empty state */
.empty { padding: var(--s5) 0; display: grid; gap: var(--s3); }
.empty h2 { font-size: 20px; }
.empty ul { margin: 0; padding-left: 1.2em; }

/* Record page */
.record { max-width: 820px; padding-bottom: var(--s7); }
.report { margin-top: var(--s3); font-size: 15px; }
.back { margin: var(--s4) 0; font-size: 15px; }
.back a { display: inline-flex; align-items: center; min-height: 44px; }
.record h1 { font-size: 26px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .record h1 { font-size: 32px; } }
.record-dev { font-size: 20px; line-height: 1.6; margin-top: var(--s2); overflow-wrap: anywhere; }
.record-byline { margin-top: var(--s4); font-weight: 600; }
.record-sub { color: var(--muted); font-size: 15px; }
.access { margin-top: var(--s5); padding: var(--s4); background: var(--sage); border-radius: var(--radius); display: grid; gap: var(--s3); }
.access-files { display: flex; flex-wrap: wrap; gap: var(--s2); }
.record section { margin-top: var(--s6); }
.record h2 { font-size: 19px; margin-bottom: var(--s3); }
.abstract p + p { margin-top: var(--s3); }
.details { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.details div { display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.details dt { font-size: 14px; color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 600px) {
	.details div { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s4); }
	.details dt { font-size: 15px; }
}
.subject-group + .subject-group { margin-top: var(--s4); }
.subject-group h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: var(--s2); }
.cite { padding: var(--s3) var(--s4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; overflow-wrap: anywhere; }
.cite-actions { margin-top: var(--s2); display: flex; gap: var(--s3); align-items: center; }


/* Page titles and editable pages */
.page-title { font-size: 26px; margin-top: var(--s5); }
.page { padding-bottom: var(--s7); }
.page > h1 { font-size: 30px; margin: var(--s6) 0 var(--s4); }
.prose { max-width: 760px; }
.prose > * + * { margin-top: var(--s3); }
.prose h2 { font-size: 21px; margin-top: var(--s5); }
.prose ul { padding-left: 1.3em; }

/* Home hero */
.hero {
	position: relative; overflow: hidden; text-align: center; padding: var(--s7) var(--s4) var(--s6);
	background: radial-gradient(circle at 12% 70%, #7fa56a55, transparent 40%), radial-gradient(circle at 90% 30%, #4a331e33, transparent 38%), linear-gradient(180deg, #e9efdf, #dbe5cf);
}
.hero-in { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
/* Photo banner: image covers the section; a soft light wash behind the text keeps it readable. */
.hero.has-bg { background: #dfe7d2; padding-block: var(--s7); }
.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero.has-bg::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: radial-gradient(ellipse 55% 75% at 50% 45%, rgba(251, 249, 243, 0.82), rgba(251, 249, 243, 0.45) 60%, rgba(251, 249, 243, 0) 85%);
}
/* Hero entrance: the photo settles with a slow zoom, then the logo, titles,
   tagline and search box fade up in turn. Plays once; off for reduced motion. */
@keyframes sgrt-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes sgrt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sgrt-leaf { 0% { opacity: 0; transform: translateY(18px) scale(0.96); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.hero-bg { animation: sgrt-settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.hero-in > * { animation: sgrt-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.hero-in > .hero-logo, .hero-in > .wm { animation-name: sgrt-leaf; animation-duration: 0.9s; animation-delay: 0.15s; }
	.hero-in > .hero-sub { animation-delay: 0.35s; }
	.hero-in > .hero-college { animation-delay: 0.45s; }
	.hero-in > .tag { animation-delay: 0.6s; }
	.hero-in > .search-hero { animation-delay: 0.75s; }
	.art { animation: sgrt-rise 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
/* Safety net (site.js adds .anim-done after 2.5 s): if a browser stalls the
   animations (battery saver, background tab), the hero is still shown. */
.anim-done .hero-bg, .anim-done .hero-in > *, .anim-done .art { animation: none; }

/* The link can land on the dark table in the photo. */
.hero.has-bg .adv > summary { background: rgba(251, 249, 243, 0.9); border-radius: var(--radius); margin-top: var(--s2); padding: 0 var(--s3); }
@media (max-width: 699px) {
	.hero.has-bg::before { background: rgba(251, 249, 243, 0.62); }
}
.hero .wm { font-size: clamp(44px, 11vw, 84px); }
.hero-sub { font: 600 clamp(18px, 2.4vw, 24px)/1.35 var(--serif); color: var(--forest); margin-top: var(--s2); }
.hero-college { font: 600 clamp(15px, 2vw, 18px)/1.4 var(--serif); color: var(--forest); margin-top: var(--s1); }
.tag { font: italic 16px/1.5 var(--serif); color: var(--forest); margin-top: var(--s4); }
.tag span { color: var(--accent); margin: 0 var(--s2); }
.art { position: absolute; bottom: 0; display: none; pointer-events: none; }
.art-l { left: 0; width: min(22vw, 340px); }
.art-r { right: 0; width: min(20vw, 320px); }
/* Only where the art fits beside the 680px text column. */
@media (min-width: 1280px) { .art { display: block; } }
.search-hero { flex-wrap: wrap; margin: var(--s5) 0 0; }
.search-hero input { box-shadow: 0 2px 10px #0001; }
.adv { flex-basis: 100%; text-align: left; }
.adv > summary {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2);
	color: var(--forest); font-size: 15px; cursor: pointer;
}
.adv-grid {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3);
	padding: var(--s4); background: #ffffffd9; border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 560px) {
	.adv-grid { grid-template-columns: 1fr 1fr; }
	.adv-wide { grid-column: 1 / -1; }
}

/* Feature strip */
.feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding: var(--s6) var(--s4); max-width: 1280px; margin: 0 auto; }
.feat > div { text-align: center; }
.feat h2 { font-size: 18px; }
.feat p { color: var(--muted); font-size: 14px; margin-top: var(--s1); }
.ic { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto var(--s3); border-radius: 50%; background: var(--sage); color: var(--forest); }
@media (min-width: 600px) { .feat { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
	.feat { grid-template-columns: repeat(5, 1fr); gap: 0; padding: var(--s6) 3vw; }
	.feat > div { padding: 0 var(--s4); border-left: 1px solid var(--line); }
	.feat > div:first-child { border: 0; }
}

/* Sections and collection cards */
.sec { padding: var(--s6) var(--s4); background: #f7f5ec; }
.sec-plain { background: none; }
.sec > * { max-width: 1280px; margin-inline: auto; }
.sh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: var(--s4); }
.sh h2 { font-size: 24px; }
.sh a { color: var(--forest); font-weight: 500; font-size: 15px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(5, 1fr); } }
.card {
	display: grid; justify-items: center; align-content: start; gap: var(--s1); height: 100%;
	padding: var(--s5) var(--s3); border-radius: var(--radius); text-align: center; text-decoration: none; color: var(--ink);
}
.card .ic { width: 50px; height: 50px; background: #ffffffa8; margin-bottom: var(--s2); }
.card-title { font: 600 16px/1.3 var(--serif); color: var(--forest); }
.card-text { font-size: 13px; color: var(--muted); }
.card-count { font-size: 12px; font-weight: 600; color: var(--forest); margin-top: var(--s1); }
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); } .c4 { background: var(--c4); } .c5 { background: var(--c5); }
@media (hover: hover) and (pointer: fine) {
	.card:hover { box-shadow: 0 0 0 2px var(--accent) inset; }
}

/* Stats band */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s3); padding: var(--s6) var(--s4); background: var(--forest); color: var(--white); }
.stats > div { text-align: center; }
.stats b { display: block; font: 600 32px/1.2 var(--serif); }
.stats span { font-size: 13px; opacity: 0.9; }
@media (min-width: 900px) {
	.stats { grid-template-columns: repeat(4, 1fr); padding: var(--s6) 4vw; }
	.stats > div + div { border-left: 1px solid #ffffff40; }
}

/* Browse */
.toc { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--forest); font-size: 15px; }
.browse section { margin-top: var(--s6); scroll-margin-top: 64px; }
.browse h2 { font-size: 22px; margin-bottom: var(--s3); }
.browse h3 { font-size: 16px; margin: var(--s4) 0 var(--s2); color: var(--muted); }
.browse-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.browse-list li { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; min-height: 44px; border-top: 1px solid var(--line); }
.browse-list span:not(.n) { color: var(--muted); }
@media (min-width: 700px) { .browse-list { grid-template-columns: 1fr 1fr; column-gap: var(--s6); } }
@media (min-width: 1000px) { .browse-list.cols { grid-template-columns: 1fr 1fr 1fr; } }
.n { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.year-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.year-list a { display: inline-flex; gap: var(--s2); align-items: center; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--forest); }

/* Download messages (no access, limit, storage down) */
.notice-page { max-width: 680px; }
.notice-page .lead { font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.form { display: grid; gap: var(--s4); max-width: 560px; margin-top: var(--s5); }
.hp { position: absolute; left: -9999px; }
.contact-card { padding: var(--s4); background: var(--sage); border-radius: var(--radius); display: grid; gap: var(--s2); align-self: start; }

/* Footer */
.site-footer { background: #0b3d30; color: #e8efe9; margin-top: var(--s7); }
.fg { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding: var(--s6) var(--s4) var(--s5); max-width: 1280px; margin: 0 auto; font-size: 14px; }
.site-footer .wm { color: var(--white); font-size: 30px; }
.footer-logo { margin: 0 0 var(--s3); line-height: 0; }
.footer-logo img { width: 220px; max-width: 100%; height: auto; }
.site-footer .wm i { color: var(--gold-light); }
.site-footer h2 { color: var(--white); font: 600 15px/1.4 var(--font); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 2px 0; }
.site-footer a { color: #e8efe9; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { text-decoration: underline; } }
@media (min-width: 700px) { .fg { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .fg { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; padding: var(--s6) 5vw var(--s5); } }
.fb { background: #082e24; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4); font-size: 12px; }
.fb-links { display: flex; gap: var(--s4); }
@media (min-width: 1000px) { .fb { padding-inline: 5vw; } }

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

/* Zero-result suggestions (search page) */
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.suggest p { margin: 0; }
.suggest ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; }
.suggest a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--forest); }
