/* ============================================================
   Public pages — homepage editorial system.

   The homepage speaks one visual language (public/css/home-sections.css):
   Literata for headings with tight tracking, Google Sans for body, teal
   #09bab2 as the single accent, sharp corners, hairline rules instead of
   shadows, full-bleed sections aligned to the shared --page-inset.

   This layer carries that language to /catalog, /resources, /repository,
   /news, /events and /contacts without touching page data or behaviour.
   It loads last, so `body:not(.homepage)` (specificity 0,2,x) settles any
   conflict with a page-local <style> block rather than resorting to
   !important.
   ============================================================ */

:root {
  --public-accent: #09bab2;
  --public-accent-deep: #067a75;
  --public-ink: #1c2b2a;
  --public-muted: #5c6866;
  --public-line: #e3e6e5;
  --public-line-soft: #eef1f0;
  --public-paper: #fff;
  --public-wash: #f7f9f8;

  /* Legacy aliases: page-local CSS still reads these names. Pointing them
     at the editorial palette retints old rules instead of fighting them. */
  --cyan: var(--public-accent-deep);
  --secondary: var(--public-accent-deep);
  --blue: var(--public-ink);
  --bg: var(--public-wash);
  --surface: var(--public-paper);
  --surface-strong: var(--public-paper);
  --border: var(--public-line);
  --text: var(--public-ink);
  --muted: var(--public-muted);
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --shadow: none;
  --shadow-soft: none;
  --shadow-lg: none;
}

/* The icon font loads asynchronously. Reserve the final square before its
   ligatures resolve so header/actions do not reflow during first paint. */
.material-symbols-outlined {
  inline-size: 1em;
  min-inline-size: 1em;
  block-size: 1em;
  overflow: hidden;
  text-align: center;
}

html { color-scheme: light; }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--public-accent-deep) #0f1720;
}

html::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track { background: #0f1720; }

html::-webkit-scrollbar-thumb {
  border: 3px solid #0f1720;
  background: linear-gradient(180deg, #0d5f5b 0%, #09bab2 100%);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0e7c76 0%, #0fd1c8 100%);
}

html::-webkit-scrollbar-corner { background: #0f1720; }

body.site-shell {
  font-family: 'Google Sans', sans-serif;
  color: var(--public-ink);
  background: var(--public-paper);
  line-height: 1.65;
}

/* Sections paint their own paper/wash bands, exactly as on the homepage,
   so the page shell stays plain underneath them. */
body:not(.homepage) .page-main { background: var(--public-paper); }

/* ── Typography ───────────────────────────────────────────── */

body:not(.homepage) :where(*):not(.material-symbols-outlined) {
  font-family: 'Google Sans', sans-serif;
}

body:not(.homepage) :is(h1, h2, h3, h4, .font-headline) {
  font-family: 'Literata', Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body:not(.homepage) :is(
  .catalog-export,
  .catalog-canonical
) {
  width: min(
    calc(100% - (2 * var(--page-pad))),
    calc(var(--page-max) - (2 * var(--page-pad)))
  );
  margin-inline: auto;
}

body:not(.homepage) :is(p, li, label, input, select, textarea, button):not(.material-symbols-outlined) {
  font-family: 'Google Sans', sans-serif;
}

/* An icon element wins its font outright, whatever tag it is written as:
   /catalog renders the bookmark control as <button class="material-…">,
   which the body-font rule above would otherwise turn into the literal
   word "bookmark". */
body:not(.homepage) .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
}

/* Heading colour is deliberately NOT set globally: a blanket ink colour
   also repaints headings that sit on dark surfaces (the /news bento card)
   and drops them to ~1.2:1 contrast. Each surface sets its own instead. */

/* ── Shared section primitives ────────────────────────────── */

/* home-sections.css defines these; it loads before the page-local <style>
   blocks, so restate them here to win on public pages. */

body:not(.homepage) .hs-section {
  padding-block: clamp(64px, 8vw, 104px);
  padding-inline: var(--page-inset);
  color: var(--public-ink);
  background: var(--public-paper);
}

body:not(.homepage) .hs-section--wash { background: var(--public-wash); }
body:not(.homepage) .hs-section--ruled { border-top: 1px solid var(--public-line); }
body:not(.homepage) .hs-section--tight { padding-block: clamp(44px, 5vw, 68px); }

body:not(.homepage) .hs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

body:not(.homepage) .hs-head__copy {
  max-width: 720px;
  margin: 0;
}

body:not(.homepage) .hs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: 'Google Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.65;
  text-transform: uppercase;
  color: var(--public-accent-deep);
}

body:not(.homepage) .hs-kicker::before {
  content: '';
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--public-accent);
}

body:not(.homepage) .hs-title {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(30px, 3.4vw, 46px);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.02;
  color: var(--public-ink);
  text-wrap: balance;
}

/* Page h1 sits one step above a section h2 while keeping the same face. */
body:not(.homepage) .hs-title--display {
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: -.045em;
}

body:not(.homepage) .hs-lead {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--public-muted);
}

body:not(.homepage) .hs-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--public-accent-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
  transition: color 250ms ease;
}

body:not(.homepage) .hs-link:hover { color: var(--public-ink); }
body:not(.homepage) .hs-link .material-symbols-outlined { font-size: 17px; }

/* Page roots go full-bleed; the sections inside them own the inset. */
body:not(.homepage) :is(
  .resources-canonical,
  .contacts-canonical,
  .repository-canonical,
  .news-canonical,
  .events-canonical,
  .rules-canonical,
  .leadership-canonical,
  .about-canonical,
  .discover-canonical
) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 0;
}

/* ── Shape, elevation, controls ───────────────────────────── */

body:not(.homepage) :is(
  .btn, button:not(.locale-switcher__option), [type="submit"]:not(.locale-switcher__option), input, select, textarea,
  [class$="__card"], [class*="__card "], [class$="__panel"],
  [class$="__chip"], [class*="__chip "], [class$="__tag"], [class$="__badge"]
) {
  border-radius: 0;
  box-shadow: none;
}

body:not(.homepage) :is(
  input:not([type="checkbox"]):not([type="radio"]),
  select:not(.sr-only),
  textarea
) {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--public-ink);
  background: var(--public-paper);
  border: 1px solid var(--public-line);
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
}

body:not(.homepage) :is(input, select, textarea):focus {
  border-color: var(--public-accent-deep);
  outline: 2px solid rgba(9, 186, 178, .18);
  outline-offset: 0;
}

body:not(.homepage) .material-symbols-outlined { color: currentColor; }

body:not(.homepage) :focus-visible {
  outline: 2px solid var(--public-accent-deep);
  outline-offset: 3px;
  border-radius: 0;
}

/* Card surface: hairline border on paper, teal edge on hover — the
   homepage .hs-book / .hs-faculty__card treatment. */
body:not(.homepage) :is(
  .resources-canonical__card,
  .resources-canonical__row,
  .resources-canonical__sidebar-card,
  .catalog-export .catalog-item,
  .contacts-canonical__channel-card,
  .contacts-canonical__form-card,
  .contacts-canonical__location-card,
  .contacts-canonical__room,
  .contacts-canonical__visit-link,
  .repository-canonical__card,
  .repository-canonical__empty,
  .news-canonical__card,
  .news-canonical__featured-card,
  .events-canonical__card,
  .catalog-export .advanced-search-panel,
  .catalog-export .sort-menu-panel,
  .catalog-export #catalog-active-filters,
  .catalog-export #catalog-pagination
) {
  border: 1px solid var(--public-line);
  border-radius: 0;
  background: var(--public-paper);
  box-shadow: none;
  transition: border-color 250ms ease, background-color 250ms ease;
}

body:not(.homepage) :is(
  .resources-canonical__card,
  .resources-canonical__row,
  .catalog-export .catalog-item,
  .contacts-canonical__channel-card,
  .contacts-canonical__room,
  .contacts-canonical__visit-link,
  .repository-canonical__card,
  .news-canonical__card,
  .events-canonical__card,
  .catalog-export .advanced-search-panel,
  .catalog-export .sort-menu-panel,
  .catalog-export #catalog-active-filters
):hover {
  border-color: var(--public-accent);
  background: var(--public-wash);
  box-shadow: none;
  transform: none;
}

@media (max-width: 640px) {
  body:not(.homepage) .hs-section {
    padding-block: clamp(48px, 7vw, 88px);
  }

  body:not(.homepage) .hs-title--display {
    font-size: clamp(32px, 11vw, 52px);
  }
}

/* Square bordered icon plates (homepage .hs-faculty__icon). */
body:not(.homepage) :is(
  .resources-canonical__card-emblem,
  .resources-canonical__row-icon,
  .contacts-canonical__channel-icon
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--public-line);
  border-radius: 0;
  color: var(--public-accent-deep);
  background: var(--public-paper);
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

body:not(.homepage) :is(
  .resources-canonical__card,
  .resources-canonical__row,
  .contacts-canonical__channel-card
):hover :is(
  .resources-canonical__card-emblem,
  .resources-canonical__row-icon,
  .contacts-canonical__channel-icon
) {
  color: #fff;
  border-color: var(--public-accent);
  background: var(--public-accent);
}

body:not(.homepage) :is(
  .resources-canonical__card-emblem,
  .resources-canonical__row-icon,
  .contacts-canonical__channel-icon
) .material-symbols-outlined { font-size: 24px; }

/* Card titles — Literata, ink, tight. */
body:not(.homepage) :is(
  .resources-canonical__card-title,
  .resources-canonical__row-title,
  .contacts-canonical__channel-title,
  .contacts-canonical__card-heading,
  .repository-canonical__title,
  .news-canonical__card-title,
  .news-canonical__featured-title,
  .events-canonical__title
) {
  font-family: 'Literata', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--public-ink);
}

body:not(.homepage) :is(
  .repository-canonical__title,
  .news-canonical__card-title,
  .events-canonical__title
) a { color: inherit; text-decoration: none; }

/* Uppercase accent CTAs (homepage .hs-faculty__cta). */
body:not(.homepage) :is(
  .resources-canonical__card-link,
  .resources-canonical__row-link,
  .repository-canonical__details-link,
  .events-canonical__details-link,
  .contacts-canonical__directions-link,
  .news-canonical__load-more a,
  .news-canonical__load-more span
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border: 1px solid var(--public-ink);
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--public-ink);
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

body:not(.homepage) :is(
  .resources-canonical__card-link,
  .resources-canonical__row-link,
  .repository-canonical__details-link,
  .events-canonical__details-link,
  .contacts-canonical__directions-link,
  .news-canonical__load-more a
):hover {
  color: #fff;
  background: var(--public-ink);
  border-color: var(--public-ink);
  transform: none;
}

body:not(.homepage) .news-canonical__load-more span {
  color: var(--public-muted);
  border-color: var(--public-line);
  cursor: default;
}

/* Chips / filter tabs / pills. */
body:not(.homepage) :is(
  .repository-canonical__chip,
  .news-canonical__filter-tab,
  .resources-canonical__section-count,
  .resources-canonical__card-badge,
  .repository-canonical__type,
  .repository-canonical__udc,
  .contacts-canonical__room-code,
  .contacts-canonical__room-level
) {
  border-radius: 0;
  box-shadow: none;
  font-family: 'Google Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body:not(.homepage) :is(
  .repository-canonical__chip,
  .news-canonical__filter-tab
) {
  padding: 9px 14px;
  border: 1px solid var(--public-line);
  background: var(--public-paper);
  color: var(--public-muted);
  cursor: pointer;
  transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease;
}

body:not(.homepage) :is(
  .repository-canonical__chip,
  .news-canonical__filter-tab
):hover {
  color: var(--public-ink);
  border-color: var(--public-accent);
}

body:not(.homepage) :is(
  .repository-canonical__chip--active,
  .news-canonical__filter-tab--active
) {
  color: #fff;
  background: var(--public-accent-deep);
  border-color: var(--public-accent-deep);
}

body:not(.homepage) :is(
  .resources-canonical__section-count,
  .resources-canonical__card-badge,
  .repository-canonical__type,
  .repository-canonical__udc,
  .contacts-canonical__room-code,
  .contacts-canonical__room-level
) {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--public-line);
  background: var(--public-paper);
  color: var(--public-muted);
}

/* Primary submit buttons. */
body:not(.homepage) :is(.btn-primary, [type="submit"]:not(.locale-switcher__option), [class$="__cta-btn"]) {
  padding: 13px 20px;
  color: #fff;
  background: var(--public-accent-deep);
  border: 1px solid var(--public-accent-deep);
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

body:not(.homepage) :is(.btn-primary, [type="submit"]:not(.locale-switcher__option), [class$="__cta-btn"]):hover {
  color: var(--public-ink);
  background: var(--public-accent);
  border-color: var(--public-accent);
  transform: none;
}

body:not(.homepage) :is(table, .table) {
  width: 100%;
  border-collapse: collapse;
  background: var(--public-paper);
  border: 1px solid var(--public-line);
}

body:not(.homepage) :is(th, td) {
  padding: 14px 16px;
  border-bottom: 1px solid var(--public-line);
  text-align: left;
}

body:not(.homepage) th {
  color: var(--public-muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── /resources ───────────────────────────────────────────── */

body:not(.homepage) .resources-canonical__hero {
  display: block;
  margin: 0;
  border: 0;
  background: transparent;
}

body:not(.homepage) .resources-canonical__hero::before { content: none; }

body:not(.homepage) .resources-canonical__hero-aside { margin-top: 34px; }

body:not(.homepage) .resources-canonical__off-campus {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  padding: 18px 20px;
  border: 1px solid var(--public-line);
  border-radius: 0;
  background: var(--public-paper);
  box-shadow: none;
}

body:not(.homepage) .resources-canonical__off-campus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--public-line);
  border-radius: 0;
  background: var(--public-paper);
  color: var(--public-accent-deep);
}

body:not(.homepage) .resources-canonical__off-campus-title {
  margin: 0 0 4px;
  font-family: 'Literata', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--public-ink);
}

body:not(.homepage) .resources-canonical__off-campus-cta {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--public-accent-deep);
  text-decoration: none;
}

body:not(.homepage) .resources-canonical__off-campus-cta:hover { color: var(--public-ink); }

body:not(.homepage) .resources-canonical__main {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

/* The page-local rules span these onto a 12/4-column template; the
   editorial layout is a plain two-track grid, so drop the spans. */
body:not(.homepage) :is(
  .resources-canonical__sidebar,
  .resources-canonical__directory,
  .resources-canonical__hero-copy,
  .resources-canonical__hero-aside
) {
  grid-column: auto;
  min-width: 0;
}

@media (min-width: 1024px) {
  body:not(.homepage) .resources-canonical__main {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

body:not(.homepage) .resources-canonical__sidebar-card {
  padding: 24px;
  position: sticky;
  top: 100px;
}

body:not(.homepage) .resources-canonical__sidebar-title {
  margin: 0 0 18px;
  font-family: 'Literata', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--public-ink);
}

body:not(.homepage) .resources-canonical__facet-heading {
  margin: 0 0 12px;
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--public-muted);
}

body:not(.homepage) .resources-canonical__facet-divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--public-line);
}

body:not(.homepage) .resources-canonical__section + .resources-canonical__section {
  margin-top: clamp(40px, 5vw, 64px);
}

body:not(.homepage) .resources-canonical__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--public-line);
}

body:not(.homepage) .resources-canonical__section-title {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--public-ink);
}

body:not(.homepage) .resources-canonical__card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

body:not(.homepage) .resources-canonical__card { padding: 24px; }

body:not(.homepage) .resources-canonical__card-title {
  font-size: 18px;
  margin: 14px 0 0;
}

body:not(.homepage) :is(
  .resources-canonical__card-desc,
  .resources-canonical__row-desc
) {
  font-size: 14px;
  line-height: 1.6;
  color: var(--public-muted);
}

body:not(.homepage) .resources-canonical__card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--public-line);
}

body:not(.homepage) .resources-canonical__card-provider {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--public-muted);
}

body:not(.homepage) .resources-canonical__list {
  display: grid;
  gap: 14px;
}

body:not(.homepage) .resources-canonical__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

body:not(.homepage) .resources-canonical__row-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 420px;
}

body:not(.homepage) .resources-canonical__row-title {
  margin: 0 0 4px;
  font-size: 17px;
}

/* ── /repository ──────────────────────────────────────────── */

body:not(.homepage) .repository-canonical__header {
  margin: 0;
  border: 0;
  background: transparent;
  padding-inline: clamp(2px, 0.8vw, 12px);
}

body:not(.homepage) .repository-canonical__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px clamp(2px, 0.8vw, 12px) 2px;
}

body:not(.homepage) .repository-canonical__chip-count {
  margin-left: 7px;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}

body:not(.homepage) .repository-canonical__summary {
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--public-line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--public-muted);
}

body:not(.homepage) .repository-canonical__list {
  display: grid;
  gap: 16px;
  padding-inline: clamp(2px, 0.8vw, 12px);
}

body:not(.homepage) .repository-v2__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

body:not(.homepage) .repository-v2__aside {
  position: sticky;
  top: 24px;
}

body:not(.homepage) .repository-canonical__card {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

body:not(.homepage) .repository-canonical__rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 172px;
  padding: 24px;
  border-right: 1px solid var(--public-line);
  border-left: 0;
  background: var(--public-wash);
}

body:not(.homepage) .repository-canonical__year {
  font-family: 'Literata', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--public-ink);
  font-variant-numeric: tabular-nums;
}

body:not(.homepage) .repository-canonical__body {
  flex: 1 1 420px;
  min-width: 0;
  padding: 24px;
}

body:not(.homepage) .repository-canonical__title {
  margin: 0 0 10px;
  font-size: 21px;
}

body:not(.homepage) :is(
  .repository-canonical__authors,
  .repository-canonical__department,
  .repository-canonical__abstract
) {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--public-muted);
}

body:not(.homepage) .repository-canonical__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body:not(.homepage) .repository-canonical__keywords > * {
  padding: 4px 9px;
  border: 1px solid var(--public-line);
  border-radius: 0;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--public-muted);
  background: var(--public-paper);
}

body:not(.homepage) .repository-canonical__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--public-line);
}

body:not(.homepage) .repository-canonical__keywords { margin-top: 0; }

body:not(.homepage) .repository-canonical__card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  border-top: 0;
}

body:not(.homepage) .repository-canonical__lock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--public-muted);
}

body:not(.homepage) .repository-canonical__empty {
  padding: 40px 28px;
  text-align: center;
  color: var(--public-muted);
}

/* ── /news ────────────────────────────────────────────────── */

body:not(.homepage) .news-canonical__header {
  margin: 0;
  border: 0;
  background: transparent;
}

body:not(.homepage) .news-canonical__featured {
  margin: 0;
  border: 0;
  background: transparent;
}

body:not(.homepage) .news-canonical__featured-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 900px) {
  body:not(.homepage) .news-canonical__featured-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

body:not(.homepage) .news-canonical__featured-image {
  margin: 0;
  min-height: 260px;
  background: var(--public-wash);
}

body:not(.homepage) .news-canonical__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

body:not(.homepage) .news-canonical__featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3.4vw, 44px);
}

body:not(.homepage) .news-canonical__featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--public-accent-deep);
}

body:not(.homepage) .news-canonical__featured-date { color: var(--public-muted); }

body:not(.homepage) .news-canonical__featured-title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
}

body:not(.homepage) .news-canonical__featured-excerpt {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--public-muted);
}

body:not(.homepage) .news-canonical__featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 3px;
  align-self: flex-start;
  border-bottom: 1px solid currentColor;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--public-accent-deep);
}

body:not(.homepage) .news-canonical__grid-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--public-line);
}

body:not(.homepage) .news-canonical__grid-heading {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--public-ink);
}

body:not(.homepage) .news-canonical__filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body:not(.homepage) .news-canonical__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

body:not(.homepage) .news-canonical__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

body:not(.homepage) .news-canonical__card-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  border-radius: 0;
}

body:not(.homepage) .news-canonical__card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--public-accent-deep);
}

body:not(.homepage) .news-canonical__card-date { color: var(--public-muted); }

body:not(.homepage) .news-canonical__card-title {
  margin: 12px 0 0;
  padding: 0 20px;
  font-size: 18px;
}

body:not(.homepage) .news-canonical__card-excerpt {
  margin: 10px 0 20px;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--public-muted);
}

body:not(.homepage) .news-canonical__load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* The bento is a dark surface: it opts out of the ink palette and keeps
   its own light-on-dark scale. */
body:not(.homepage) .news-canonical__bento {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
  border: 0;
  border-radius: 0;
  background: var(--public-ink);
  color: #fff;
}

body:not(.homepage) .news-canonical__bento-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--public-accent);
}

body:not(.homepage) .news-canonical__bento-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--public-accent);
}

body:not(.homepage) .news-canonical__bento-heading {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: #fff;
}

body:not(.homepage) .news-canonical__bento-body {
  margin: 14px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
}

body:not(.homepage) .news-canonical__bento-footer { margin-top: 26px; }

body:not(.homepage) .news-canonical__bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

body:not(.homepage) .news-canonical__bento-cta:hover {
  color: var(--public-ink);
  background: #fff;
  border-color: #fff;
}

/* ── /events ──────────────────────────────────────────────── */

body:not(.homepage) .events-canonical__header {
  margin: 0;
  max-width: none;
  border: 0;
  background: transparent;
}

body:not(.homepage) .events-canonical__list {
  display: grid;
  gap: 16px;
}

body:not(.homepage) .events-canonical__card {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

body:not(.homepage) .events-canonical__card--featured {
  border-color: var(--public-accent);
  box-shadow: inset 3px 0 0 var(--public-accent);
}

body:not(.homepage) .events-canonical__date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 176px;
  padding: 24px;
  border-right: 1px solid var(--public-line);
  background: var(--public-wash);
}

body:not(.homepage) .events-canonical__eyebrow {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--public-accent-deep);
}

body:not(.homepage) .events-canonical__date-day {
  font-family: 'Literata', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--public-ink);
}

body:not(.homepage) .events-canonical__date-meta {
  font-size: 13px;
  color: var(--public-muted);
}

body:not(.homepage) .events-canonical__body {
  flex: 1 1 420px;
  min-width: 0;
  padding: 24px;
}

body:not(.homepage) .events-canonical__title {
  margin: 0 0 10px;
  font-size: 21px;
}

body:not(.homepage) .events-canonical__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--public-muted);
}

body:not(.homepage) .events-canonical__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--public-line);
}

body:not(.homepage) .events-canonical__venue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--public-muted);
}

body:not(.homepage) .events-canonical__load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

body:not(.homepage) .events-canonical__load-more {
  padding: 13px 22px;
  border: 1px solid var(--public-ink);
  border-radius: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--public-ink);
  cursor: pointer;
  transition: color 250ms ease, background-color 250ms ease;
}

body:not(.homepage) .events-canonical__load-more:hover {
  color: #fff;
  background: var(--public-ink);
}

/* ── /contacts ────────────────────────────────────────────── */

body:not(.homepage) .contacts-canonical__hero-glow { display: none; }

body:not(.homepage) .contacts-canonical__hero-inline {
  margin: 0;
  border: 0;
  background: transparent;
}

body:not(.homepage) .contacts-canonical__grid {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 1024px) {
  body:not(.homepage) .contacts-canonical__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

body:not(.homepage) .contacts-canonical__section-heading {
  margin: 0 0 20px;
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--public-ink);
}

body:not(.homepage) .contacts-canonical__col-left { margin-top: clamp(36px, 4vw, 56px); }

body:not(.homepage) .contacts-canonical__channels {
  display: grid;
  gap: 14px;
}

body:not(.homepage) .contacts-canonical__channel-card {
  display: flex;
  gap: 16px;
  padding: 22px;
}

body:not(.homepage) .contacts-canonical__channel-title {
  margin: 0 0 6px;
  font-size: 18px;
}

body:not(.homepage) .contacts-canonical__channel-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--public-accent-deep);
  text-decoration: none;
}

body:not(.homepage) .contacts-canonical__channel-contact:hover { color: var(--public-ink); }

body:not(.homepage) .contacts-canonical__col-right {
  display: grid;
  gap: 18px;
}

body:not(.homepage) :is(
  .contacts-canonical__form-card,
  .contacts-canonical__location-card
) { padding: 26px; }

body:not(.homepage) .contacts-canonical__card-heading {
  margin: 0 0 8px;
  font-size: 19px;
}

body:not(.homepage) .contacts-canonical__form-note {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--public-muted);
}

body:not(.homepage) .contacts-canonical__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

body:not(.homepage) .contacts-canonical__field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--public-muted);
}

/* Wayfinding and visit are full-bleed bands now, not inset panels. */
body:not(.homepage) :is(
  .contacts-canonical__wayfinding,
  .contacts-canonical__visit
) {
  margin: 0;
  border: 0;
  background: transparent;
}

body:not(.homepage) .contacts-canonical__visit { background: var(--public-wash); }

body:not(.homepage) .contacts-canonical__wayfinding-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

body:not(.homepage) .contacts-canonical__wayfinding-head .material-symbols-outlined {
  color: var(--public-accent-deep);
}

/* The map is a placeholder plate, not a photograph: give it the catalogue
   grid the homepage statistics motifs use instead of a blue gradient. */
body:not(.homepage) .contacts-canonical__map {
  margin: 22px 0 0;
  border: 1px solid var(--public-line);
  border-radius: 0;
  overflow: hidden;
  background: var(--public-paper);
}

body:not(.homepage) .contacts-canonical__map-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: clamp(220px, 26vw, 300px);
  min-height: 0;
  aspect-ratio: auto;
  background:
    linear-gradient(rgba(28, 43, 42, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 43, 42, .05) 1px, transparent 1px),
    var(--public-wash);
  background-size: 48px 48px, 48px 48px, auto;
}

/* The pin is an emoji the UI font has no glyph for — it renders as tofu,
   and the label below already names the place. */
body:not(.homepage) .contacts-canonical__map-pin { display: none; }

body:not(.homepage) .contacts-canonical__map-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--public-muted);
}

body:not(.homepage) .contacts-canonical__map figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--public-line);
  font-size: 13px;
  color: var(--public-muted);
  background: var(--public-paper);
}

body:not(.homepage) .contacts-canonical__rooms {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 22px;
}

body:not(.homepage) .contacts-canonical__room { padding: 20px; }

body:not(.homepage) .contacts-canonical__visit-links {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}

body:not(.homepage) .contacts-canonical__visit-link {
  padding: 20px;
  text-decoration: none;
}

/* ── /catalog ─────────────────────────────────────────────── */

/* The catalog is Tailwind-driven; these rules retune the utility output
   rather than the (mostly absent) page classes. */

body:not(.homepage) .catalog-export {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--page-inset);
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

body:not(.homepage) .catalog-export .font-newsreader {
  font-family: 'Literata', Georgia, serif;
}

body:not(.homepage) .catalog-export__hero {
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--public-line);
}

body:not(.homepage) .catalog-export__hero .hs-title { margin-bottom: 24px; }

body:not(.homepage) .catalog-export #catalog-search-input {
  min-height: 60px;
  padding-left: 56px;
  border: 1px solid var(--public-line);
  border-radius: 0;
  background: var(--public-paper);
  font-size: 17px;
}

body:not(.homepage) .catalog-export #catalog-summary-text {
  font-style: normal;
  font-size: 13px;
  color: var(--public-muted);
}

body:not(.homepage) .catalog-export .advanced-search-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--public-line);
  border-radius: 0;
  background: var(--public-paper);
  box-shadow: none;
}

body:not(.homepage) .catalog-export :is(h2, h3):is([class*="uppercase"]) {
  font-family: 'Google Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--public-muted);
}

body:not(.homepage) .catalog-export #catalog-filters {
  padding-right: clamp(0px, 2vw, 24px);
}

body:not(.homepage) .catalog-export .catalog-item {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--public-line);
}

body:not(.homepage) .catalog-export .sort-menu-panel {
  border: 1px solid var(--public-line);
  border-radius: 0;
  background: var(--public-paper);
  box-shadow: none;
}

body:not(.homepage) .catalog-export #catalog-pagination :is(a, button, span) {
  border-radius: 0;
  border-color: var(--public-line);
  box-shadow: none;
}

/* ── /news, /events, /repository, /rules text system ───────── */

body:not(.homepage) :is(
  .news-canonical__display,
  .news-canonical__grid-heading,
  .news-canonical__featured-title,
  .news-canonical__card-title,
  .news-canonical__bento-heading,
  .events-canonical__display,
  .events-canonical__title,
  .repository-canonical__display,
  .repository-canonical__title,
  .repository-canonical__year,
  .rules-canonical__header h1,
  .rules-canonical__section h2,
  .rules-canonical__subheading,
  .rules-canonical__footer-meta h2
) {
  font-family: 'Literata', Georgia, serif;
  letter-spacing: -.035em;
}

body:not(.homepage) :is(
  .news-canonical__lead,
  .news-canonical__card-excerpt,
  .news-canonical__featured-excerpt,
  .news-canonical__bento-body,
  .news-canonical__card-date,
  .news-canonical__filter-tab,
  .events-canonical__lead,
  .events-canonical__description,
  .events-canonical__date-meta,
  .events-canonical__venue,
  .repository-canonical__lead,
  .repository-canonical__summary,
  .repository-canonical__authors,
  .repository-canonical__department,
  .repository-canonical__abstract,
  .repository-canonical__lock,
  .repository-canonical__details-link,
  .rules-canonical__lead,
  .rules-canonical__section-lede,
  .rules-canonical__panel p,
  .rules-canonical__panel ul,
  .rules-canonical__notes,
  .rules-canonical__footer-body
) {
  font-family: 'Google Sans', sans-serif;
  color: var(--public-muted);
}

body:not(.homepage) .news-canonical__filter-tab.news-canonical__filter-tab--active {
  color: #fff;
}

body:not(.homepage) .news-canonical__header,
body:not(.homepage) .events-canonical__header,
body:not(.homepage) .repository-canonical__header,
body:not(.homepage) .rules-canonical__header {
  margin: 0 0 clamp(40px, 5vw, 72px);
  max-width: 760px;
}

body:not(.homepage) .news-canonical__featured-card,
body:not(.homepage) .events-canonical__card,
body:not(.homepage) .repository-canonical__card,
body:not(.homepage) .rules-canonical__panel,
body:not(.homepage) .rules-canonical__footer-meta {
  border-radius: 0;
}

body:not(.homepage) .news-canonical__featured-card,
body:not(.homepage) .news-canonical__card,
body:not(.homepage) .events-canonical__card,
body:not(.homepage) .repository-canonical__card,
body:not(.homepage) .rules-canonical__panel,
body:not(.homepage) .rules-canonical__footer-meta {
  border: 1px solid var(--public-line);
  box-shadow: none;
}

body:not(.homepage) .news-canonical__grid-bar,
body:not(.homepage) .events-canonical__footer,
body:not(.homepage) .repository-canonical__summary,
body:not(.homepage) .rules-canonical__section h2 {
  border-color: var(--public-line);
}

/* ── Article reading measure (news detail) ────────────────── */

body:not(.homepage) .news-detail-canonical__body {
  max-width: 760px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.78;
}

body:not(.homepage) .news-detail-canonical__hero {
  border-radius: 0;
  border: 1px solid var(--public-line);
}

/* Book detail is standalone; align its generated record UI. */
body.site-shell .page {
  max-width: 1440px;
  padding-inline: var(--page-inset);
}

body.site-shell #book-content :is(.rounded, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-full) {
  border-radius: 0 !important;
}

body.site-shell #book-content :is(.shadow, .shadow-xl, .shadow-2xl) {
  box-shadow: none !important;
}

/* ── Breakpoints ──────────────────────────────────────────── */

@media (max-width: 900px) {
  body:not(.homepage) :is(
    .repository-canonical__rail,
    .events-canonical__date
  ) {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--public-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.homepage) *,
  body:not(.homepage) *::before,
  body:not(.homepage) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
