:root {
  --ink: #2b2a26;
  --muted: #7a756b;
  --rule: #e3ddd0;
  --bg: #f7f3ea;
  --card: #fffdf8;
  --accent: #8a2b2b;
  --accent-soft: #f3e8e8;
  --available: #2d5a3d;
  --available-soft: #e8f0eb;
  --pending: #8a7a5b;
  --pending-soft: #f0ebe0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Always reserve the scrollbar gutter so the page width does not change (and
   every box reflow) when content grows past the viewport during load. */
html { scrollbar-gutter: stable; overflow-y: scroll; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
  padding: 2.5rem 1.5rem 4rem;
}

.page { max-width: 960px; margin: 0 auto; }

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.topnav__brand {
  margin-right: 0.35rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.topnav__brand:hover { color: var(--accent); }

.topnav__nav {
  display: flex;
  gap: 0.4rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
}

.topnav__btn {
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topnav__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.topnav__btn--home {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.topnav__btn--home:hover {
  filter: brightness(1.08);
  color: #fff;
}

.topnav__meta {
  margin: 0 0 0 auto;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.page-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}

.page-head h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-head__meta {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

header.masthead {
  text-align: center;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

header.masthead .kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--muted);
}

header.masthead h1 {
  font-size: 2.1rem;
  margin: 0.35rem 0 0.15rem;
  font-weight: 600;
}

header.masthead .lede {
  color: var(--muted);
  max-width: 36rem;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta b { color: var(--ink); font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.75rem;
}

.card h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 700;
}

.status {
  color: var(--muted);
  font-style: italic;
  padding: 1rem 0;
}

.status.error { color: var(--accent); font-style: normal; }

/* Reserve space for content that fills in after load so the page does not jump
   (no layout shift) as the title, metadata, notation, and download/print links
   arrive. Values approximate the filled height of each region. */
/* Each reserve is set just above the element's filled line height (font-size x
   the 1.5 body line-height) so the box is already its final size on the first
   paint and never grows when text arrives. */
.kicker { min-height: 1.1rem; }
.meta { min-height: 1.4rem; }
/* Reserve space only while the score container is empty/loading. Once the SVG is
   mounted, short chants should shrink to their natural height instead of being
   pinned to a 200px content box. */
#chant-container:empty { aspect-ratio: 8 / 3; min-height: 200px; }
#source { min-height: 2.4rem; }
.player-time { min-height: 1.25rem; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

footer a { color: var(--accent); }

.site-credit {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.site-credit a {
  color: var(--accent);
  text-decoration: none;
}

.site-credit a:hover { text-decoration: underline; }

a { color: var(--accent); }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.brand-lockup {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-lockup:hover { color: var(--accent); }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.brand-row .back-link,
.print-toolbar .back-link {
  margin-bottom: 0;
}

/* Catalog */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.catalog-stats {
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-stats strong { color: var(--ink); }

#search {
  flex: 1 1 16rem;
  max-width: 24rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
  color: var(--ink);
}

#search:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.category {
  margin-bottom: 2rem;
}

.category-header {
  margin-bottom: 0.75rem;
}

.category-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.category-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.chant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.chant-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--rule);
}

.chant-item:first-child { border-top: none; }

.chant-item.unavailable {
  opacity: 0.72;
}

.chant-item a.title {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.chant-item.available a.title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.chant-item .incipit {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

.chant-item .tags {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--pending-soft);
  color: var(--pending);
}

.badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.available {
  background: var(--available-soft);
  color: var(--available);
}

.badge.pending {
  background: var(--pending-soft);
  color: var(--pending);
}

.category.hidden,
.chant-item.hidden { display: none; }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

/* Viewer */

/* Notation selector sits ABOVE the paper, not inside it, so the printable
   page keeps clean margins. */
.notation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.notation-controls__group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notation-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 700;
}

.view-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.view-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.view-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 2.4rem 0.4rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.view-select:hover {
  border-color: var(--accent);
}

.view-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* The notation paper IS the 8.5x11 page: an 8.5in sheet with 0.75in margins,
   leaving a 7in (LETTER_CONTENT_WIDTH = 672px) content area that the notation
   fills exactly, so the left/right margins are even. */
.notation-paper {
  width: 8.5in;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75in;
  position: relative;
  /* Hard safety net: nothing (score, overlay, stray glyph) may visually escape
     the sheet's rounded box, regardless of viewport, zoom, or display scaling.
     `clip` avoids establishing a scroll container (no stray scrollbars); the box
     still grows vertically to fit tall scores. */
  overflow: clip;
}

/* Overlay the loading/error status inside the reserved notation area so the
   page does not shift when the status line is replaced by the rendered score. */
.notation-paper > .status {
  position: absolute;
  left: 0.75in;
  right: 0.75in;
  top: 0.75in;
  bottom: 0.75in;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
}

/* `clip` (not `hidden`) contains stray horizontal content WITHOUT forcing
   overflow-y to compute to `auto`, which would otherwise trap tall multi-line
   scores in a vertical scrollbar. */
.notation-view { overflow-x: clip; min-width: 0; max-width: 100%; }
.notation-view.text-content { overflow-y: auto; }
.notation-view[hidden] { display: none; }

#chant-container svg,
#modern-container svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
}

.notation-view,
.notation-view svg,
.notation-view text,
.notation-view tspan {
  user-select: none;
  -webkit-user-select: none;
}

.latin p { margin: 0 0 0.6rem; }
.latin .incipit { font-style: italic; color: var(--muted); margin-bottom: 1rem; }

/* Player */

.player-lede {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -0.25rem 0 1rem;
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: 0.45; cursor: default; }

a.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.player-progress {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.player-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.08s linear;
}

.player-time {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.syllable-active {
  background: var(--accent-soft);
  border-radius: 2px;
}

/* =====================================================================
   Chant detail page — "illuminated manuscript workbench"
   Hero banner (sacred art) + sticky viewer + consolidated details grid.
   ===================================================================== */

.chant-page { max-width: 1040px; }

/* ---------- Cinematic hero ---------- */
.chant-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  z-index: 30;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--rule);
  border-radius: 18px;
  margin-bottom: 1.5rem;
  /* Warm fallback wash shown until (and behind) the artwork loads. */
  background: linear-gradient(135deg, #2c2420 0%, #5a2f2c 55%, #3a2622 100%);
  box-shadow: 0 22px 48px -28px rgba(43, 38, 32, 0.65);
}

.chant-hero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 22%;
  border-radius: inherit;
}

.chant-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(130% 95% at 78% 0%, rgba(0, 0, 0, 0) 28%, rgba(15, 11, 9, 0.4) 100%),
    linear-gradient(180deg, rgba(15, 11, 9, 0.12) 0%, rgba(15, 11, 9, 0.5) 52%, rgba(15, 11, 9, 0.88) 100%);
}

.chant-hero__inner {
  position: relative;
  padding: 2.75rem 2.5rem 2rem;
  max-width: 62rem;
  color: #fdf8f0;
}

.chant-hero__kicker {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  min-height: 1.1rem;
}

.chant-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.chant-crumbs__link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.chant-crumbs__link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.chant-crumbs__sep {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  user-select: none;
}

.chant-hero__meta[hidden] {
  display: none;
}

.chant-hero__kicker[hidden] {
  display: none;
}

.chant-hero__title {
  margin: 0.55rem 0 0.35rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

.chant-hero__incipit {
  margin: 0 0 1.1rem;
  max-width: 46rem;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  min-height: 1.6rem;
}

.chant-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  min-height: 1.95rem;
}

.chant-hero__meta span,
.chant-hero__meta .chant-hero__bubble {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Navigable group bubbles (e.g. "Mass I", "Kyrie") link back to the library. */
a.chant-hero__bubble {
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.chant-hero__bubble:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.chant-hero__meta b {
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ---------- Listening transport ---------- */
.chant-hero__transport {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.transport__btn {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.transport__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.24); }
.transport__btn:disabled { opacity: 0.5; cursor: default; }

.transport__btn--play {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  font-weight: 600;
}

.transport__btn--play:hover:not(:disabled) { transform: translateY(-1px); }

.transport__icon {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* When playing, the play button becomes a stop control: swap the triangle
   glyph for a square. */
.transport__btn--play.is-playing .transport__icon {
  width: 10px;
  height: 10px;
  border: 0;
  background: currentColor;
  border-radius: 1px;
}

.transport__dl-icon {
  flex: 0 0 auto;
  display: block;
}

.transport__btn--icon {
  padding: 0.5rem;
  width: 2.3rem;
  height: 2.3rem;
  justify-content: center;
}

.transport__btn--icon.is-busy { opacity: 0.6; }

.transport__dl {
  position: relative;
  display: inline-flex;
}

.transport__dl-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  min-width: 5.75rem;
  padding: 0.25rem;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.transport__dl-panel[hidden] { display: none; }

.transport__dl-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  background: var(--card);
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  transform: translateX(-50%) rotate(45deg);
}

.transport__dl-item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.transport__dl-item:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
}

.transport__dl-item:disabled {
  color: var(--muted);
  opacity: 0.45;
  cursor: default;
}

.transport__bar {
  flex: 1 1 9rem;
  min-width: 6rem;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.transport__fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.08s linear;
}

/* Indeterminate "working" state used while synthesizing the WAV, since there
   is no real progress value to track. A highlight sweeps across the bar. */
.transport__bar.is-indeterminate {
  position: relative;
}

.transport__bar.is-indeterminate .transport__fill {
  width: 40%;
  transition: none;
  border-radius: 3px;
  animation: transport-indeterminate 1.1s ease-in-out infinite;
}

@keyframes transport-indeterminate {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

.transport__time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  min-height: 1.25rem;
}

.transport__status {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.transport__status.is-error {
  color: #ffd4d4;
}

.chant-hero__credit {
  position: absolute;
  right: 1rem;
  bottom: 0.65rem;
  z-index: 1;
  max-width: 52%;
  text-align: right;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.66rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Viewer (sticky toolbar + framed sheet) ---------- */
.viewer { margin-bottom: 1.75rem; }

.viewer__bar {
  position: sticky;
  top: 0.6rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px -12px rgba(43, 38, 32, 0.35);
}

.viewer__views {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.viewer__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Export menu (shared with editor) */
.export-menu {
  position: relative;
}

.export-menu__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 40;
  min-width: 11.5rem;
  padding: 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.export-menu__panel[hidden] { display: none; }

.export-menu__group {
  padding: 0.2rem 0;
}

.export-menu__group + .export-menu__group {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--rule);
}

.export-menu__label {
  display: block;
  padding: 0.15rem 0.55rem 0.3rem;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.export-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.42rem 0.55rem;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.export-menu__item:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
}

.export-menu__item:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Floating manuscript sheet: deepen the shadow so the score reads as the
   centerpiece resting above the page. */
.notation-paper {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 24px 60px -34px rgba(43, 38, 32, 0.5);
}


@media (max-width: 880px) {
  .chant-hero { min-height: 260px; }
  .chant-hero__inner { padding: 2rem 1.4rem 1.5rem; }
}

/* Downloads */

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.download-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.download-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.download-group__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.download-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.download-item {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  min-width: 6.5rem;
  opacity: 0.72;
}

.download-item__label {
  font-size: 0.82rem;
  font-weight: 600;
}

.download-item__hint {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.download-file {
  text-decoration: none;
}

/* Text print views (Latin / English / bilingual) */

body.text-print-body .page {
  max-width: 8.5in;
}

.print-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.print-toolbar #print-btn {
  margin-left: auto;
}

.print-view-tabs {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}

.print-view-tabs .tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.print-view-tabs .tab:hover { color: var(--ink); }

.print-view-tabs .tab.active {
  background: var(--accent);
  color: #fff;
}

/* Text sheet uses the same 8.5x11 geometry as notation paper. */
.text-sheet {
  width: 8.5in;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75in;
}

.text-sheet-head {
  text-align: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5in;
  margin-bottom: 0.4in;
}

.text-sheet-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--muted);
}

.text-sheet-head h1 {
  font-size: 1.6rem;
  margin: 0.35rem 0 0.5rem;
  font-weight: 600;
}

.text-sheet-foot {
  margin-top: 0.5in;
  padding-top: 0.25in;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.text-content {
  font-size: 1.05rem;
  line-height: 1.65;
}

/* The text container also carries .notation-view (which disables selection for
   SVG scores); re-enable selection for rendered text. */
.text-content,
.text-content * {
  user-select: text;
  -webkit-user-select: text;
}

/* Reserve the print body height so the footer does not jump as text fills. */
#text-content { min-height: 60vh; }

.text-line {
  margin: 0 0 0.9rem;
}

.text-latin {
  font-style: italic;
}

.text-english {
  font-style: normal;
  color: var(--ink);
}

.text-spanish {
  font-style: normal;
  color: var(--ink);
}

.text-pair {
  margin-bottom: 0.95rem;
}

.text-view-bilingual .text-pair .text-latin {
  margin-bottom: 0.1rem;
}

.text-view-bilingual .text-pair .text-english {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.text-view-bilingual .text-pair .text-english:last-child {
  margin-bottom: 0;
}

.text-missing {
  color: var(--muted);
  font-style: italic;
  margin: 0 0 1rem;
}

.text-generated-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.text-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.text-view-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.text-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.text-copy-btn {
  font: inherit;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.text-copy-btn__icon {
  flex: 0 0 auto;
}

.text-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-copy-btn.is-copied {
  border-color: var(--accent);
  color: var(--accent);
}

.text-print-body .text-copy-btn {
  display: none;
}

@media print {
  .text-copy-btn,
  .text-download-btn {
    display: none;
  }
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.print-actions a {
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  color: var(--ink);
  background: var(--card);
}

.print-actions a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* US Letter (8.5 x 11) page defaults
   The chant viewer is treated as an 8.5x11 document so the on-screen render
   matches what prints / exports to PDF. Scoped to the viewer via :has() so the
   catalog list is unaffected. */

@page {
  size: letter portrait;
  margin: 0.75in;
}

body:has(#chant-container) .page {
  max-width: 8.5in;
}

.no-print { /* screen-only chrome */ }

@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .no-print,
  .back-link,
  .player-card,
  .print-section,
  .notation-controls,
  .viewer__bar,
  .export-menu,
  .chant-hero__art,
  .chant-hero__veil,
  .chant-hero__transport,
  .chant-hero__credit,
  .print-toolbar {
    display: none !important;
  }

  .page {
    max-width: none;
    margin: 0;
  }

  /* Flatten the cinematic hero into a plain centered title block on paper. */
  .chant-hero {
    min-height: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    margin: 0 0 0.3in;
  }

  .chant-hero__inner {
    padding: 0;
    color: #000;
    text-align: center;
    max-width: none;
  }

  .chant-hero__title { text-shadow: none; color: #000; }

  .chant-hero__kicker,
  .chant-hero__incipit { color: #000; }

  .chant-hero__meta { justify-content: center; }

  .chant-hero__meta span {
    background: none;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
    color: #000;
  }

  .chant-hero__meta b { color: #000; }

  /* Flatten cards into plain document sections on paper. */
  .card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0 0 0.3in;
  }

  /* @page already supplies the 0.75in margin in print, so the paper must not
     add its own padding/width on top (which would double the margins). */
  .notation-paper {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  .text-sheet {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
  }

  /* Keep source attribution on every printed page (project rule). */
  footer {
    margin-top: 0.4in;
    border-top: 1px solid var(--rule);
  }

  #chant-container svg,
  #modern-container svg {
    max-width: 100%;
  }
}

/* ---------- Catalog inventory table ---------- */

.page--wide { max-width: none; width: min(100%, 1400px); }

.inv-scroll {
  overflow: auto;
  max-height: calc(100vh - 16rem);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-top: 1rem;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.inv-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0ebe0;
}

.inv-th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 2px solid var(--rule);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.inv-th--active { color: var(--accent); }

/* Filter bar above the table */
.inv-bar__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.inv-search {
  flex: 1 1 auto;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
}

.inv-clear {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(138, 43, 43, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}

.inv-clear:hover { background: var(--accent-soft); }

.inv-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.65rem 0.85rem;
}

.inv-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.inv-field__label {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.inv-select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.inv-select:focus,
.inv-search:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Clickable values inside the table */
.inv-set {
  font: inherit;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.inv-tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.85rem;
  color: var(--ink);
}

.inv-tag:hover {
  background: var(--accent-soft);
  border-color: rgba(138, 43, 43, 0.3);
}

/* Preserve the pill look from the base .inv-group / .inv-lang spans when they
   are rendered as clickable buttons (two-class selectors beat .inv-set). */
.inv-set.inv-group {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--available-soft);
  font-size: 0.78rem;
}

.inv-set.inv-lang {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #eef2f8;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.inv-lang--btn:hover,
.inv-badge--btn:hover,
.inv-set.inv-group:hover {
  filter: brightness(0.95);
  text-decoration: underline;
}

/* ---------- GregoBase sources (master-detail) ---------- */

.sources-empty {
  padding: 1rem;
  color: var(--muted);
}

.sources-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
}

.sources-layout.has-selection {
  grid-template-columns: minmax(24rem, 34rem) 1fr;
}

/* Left: master list */
.sources-pane {
  min-width: 0;
}

.sources-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.sources-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.sources-filter input {
  margin: 0;
  accent-color: var(--accent);
}

.sources-list {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.has-selection .sources-list {
  overflow: auto;
  max-height: calc(100vh - 18rem);
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.source-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3eee6;
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.source-table th.source-num,
.source-table td.source-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.source-rowx {
  cursor: pointer;
  border-top: 1px solid var(--rule);
}

.source-rowx:first-child {
  border-top: 0;
}

.source-rowx:hover {
  background: var(--accent-soft);
}

.source-rowx.is-active {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.source-table td {
  padding: 0.5rem 0.85rem;
  vertical-align: baseline;
}

.source-cell-group {
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.source-cell-title {
  font-weight: 600;
  line-height: 1.3;
}

.source-incat {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--available-soft);
  color: var(--ink);
  font-size: 0.78rem;
}

/* Right: detail pane */
.sources-detail {
  display: none;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  padding: 1.1rem 1.25rem;
  max-height: calc(100vh - 14rem);
  overflow: auto;
}

.sources-layout.has-selection .sources-detail {
  display: block;
}

.source-detail__head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.source-detail__close {
  font: inherit;
  font-size: 0.82rem;
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.source-detail__close:hover {
  text-decoration: underline;
}

.source-detail__meta {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.source-detail__title {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
}

.source-detail__desc {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.source-detail__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.6rem;
}

.source-detail__link {
  font-size: 0.82rem;
  color: var(--accent);
}

.source-detail__filtered {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.source-count {
  font-size: 0.74rem;
  color: var(--muted);
  background: #eef2f8;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  white-space: nowrap;
}

.source-count--catalog {
  background: var(--available-soft);
  color: var(--ink);
}

.source-chants {
  display: grid;
  gap: 0.2rem;
}

.source-chant {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.26rem 0;
  border-top: 1px solid rgba(78, 59, 43, 0.08);
  font-size: 0.9rem;
}

.source-chant__id {
  flex: 0 0 auto;
  width: 4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.source-chant__title {
  flex: 1 1 auto;
  min-width: 0;
}

.source-chant__catalog {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.source-catalog-link {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--available-soft);
  font-size: 0.76rem;
}

.source-more {
  margin-top: 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  border: 1px solid rgba(138, 43, 43, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.source-more:hover {
  background: var(--accent-soft);
}

@media (max-width: 820px) {
  .sources-layout {
    grid-template-columns: 1fr;
  }

  .sources-list {
    max-height: 18rem;
  }

  .sources-detail {
    max-height: none;
  }

  .source-chant {
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
  }
}

.inv-cell {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.inv-cell--id code,
.inv-path {
  font-size: 0.78rem;
  word-break: break-all;
}

.inv-cell--title { min-width: 10rem; }

.inv-incipit {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.inv-cell--groups { min-width: 12rem; }

.inv-group {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--available-soft);
  font-size: 0.78rem;
}

.inv-kind {
  margin-left: 0.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.inv-badge {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  margin-right: 0.2rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.inv-badge--on {
  background: var(--available-soft);
  color: var(--available);
}

.inv-badge--off {
  background: var(--pending-soft);
  color: var(--pending);
  opacity: 0.65;
}

.inv-lang {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #eef2f8;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.inv-link { text-decoration: none; font-weight: 600; }
.inv-link:hover { text-decoration: underline; }

.inv-muted { color: var(--muted); }

.inv-yes {
  color: var(--available);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inv-no {
  color: var(--pending);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inv-empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

#category-filter,
#availability-filter {
  font: inherit;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

/* ---------- Inventory filters ---------- */

.inv-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.inv-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.25rem;
}

.inv-filters__row--search {
  align-items: center;
}

.inv-search {
  flex: 1 1 18rem;
  min-width: 12rem;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
}

.inv-clear {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(138, 43, 43, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
}

.inv-clear:hover { background: var(--accent-soft); }

.inv-fgroup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.inv-fgroup--chips {
  align-items: flex-start;
  flex-wrap: wrap;
}

.inv-flabel {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 0.35rem;
}

.inv-select {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  max-width: 14rem;
}

.inv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.inv-chip {
  font: inherit;
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid rgba(138, 43, 43, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  white-space: nowrap;
}

.inv-chip:hover { background: var(--accent-soft); }

.inv-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.inv-chip__n {
  font-size: 0.72rem;
  opacity: 0.75;
}

.inv-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.inv-active__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.25rem;
}

.inv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--ink);
}

.inv-pill__kind {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  color: var(--muted);
}
