/* ============================================================================
   Village Heritage Archive — reusable template
   1930s archival-catalogue theme — custom stylesheet (built on Bootstrap 5.3)
   Brand colours (--lmh-oxblood / --lmh-brass and their shades) are overridden
   per-deployment by includes/functions.php::render_theme_overrides(), driven
   by ACCENT_PRIMARY / ACCENT_SECONDARY in config.php — do not hardcode a
   specific village's colours here.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
  --lmh-parchment:      #f2e8d5;
  --lmh-parchment-dark: #e6d8b8;
  --lmh-sepia:          #8a6d3b;
  --lmh-sepia-dark:     #5c4326;
  --lmh-charcoal:       #2b2620;
  --lmh-charcoal-soft:  #3b352c;
  --lmh-oxblood:        #6e1f26;
  --lmh-oxblood-dark:   #52161b;
  --lmh-brass:          #a8823a;
  --lmh-brass-light:    #c9a256;
  --lmh-cream:          #fbf6ea;

  --lmh-font-heading: 'Playfair Display', 'Merriweather', Georgia, serif;
  --lmh-font-heading-alt: 'Merriweather', Georgia, serif;
  --lmh-font-body: 'Lora', 'Inter', Georgia, serif;
  --lmh-font-ui: 'Inter', 'Lora', Arial, sans-serif;
  --lmh-font-mono: 'Courier New', Courier, monospace;

  --lmh-radius: 2px;
  --lmh-shadow: 0 6px 18px rgba(43, 38, 32, 0.25);
}

/* ---------------------------------------------------------------------------
   2. BASE / TEXTURE
   --------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--lmh-font-body);
  color: var(--lmh-charcoal);
  background-color: var(--lmh-parchment);
  background-image:
    radial-gradient(rgba(140, 110, 60, 0.06) 1px, transparent 1px),
    radial-gradient(rgba(140, 110, 60, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, var(--lmh-parchment) 0%, var(--lmh-parchment-dark) 100%);
  background-size: 3px 3px, 5px 5px, 100% 100%;
  background-position: 0 0, 2px 2px, 0 0;
  line-height: 1.7;
}

.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--lmh-oxblood); color: #fff;
  padding: 8px 16px; z-index: 2000;
}
.skip-link:focus { top: 0; }

h1, h2, h3, h4, h5, h6, .lmh-heading {
  font-family: var(--lmh-font-heading);
  color: var(--lmh-charcoal);
  letter-spacing: 0.01em;
}

a { color: var(--lmh-oxblood); text-decoration-thickness: 1px; }
a:hover { color: var(--lmh-oxblood-dark); }

::selection { background: var(--lmh-brass-light); color: var(--lmh-charcoal); }

/* Double-line "1930s stationery" border utility */
.lmh-double-border {
  border: 3px double var(--lmh-sepia-dark);
  padding: 1.75rem;
  background: var(--lmh-cream);
}

.lmh-eyebrow {
  font-family: var(--lmh-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--lmh-oxblood);
  font-weight: 600;
}

.lmh-divider {
  border: none;
  border-top: 1px solid var(--lmh-sepia);
  border-bottom: 1px solid var(--lmh-sepia);
  height: 4px;
  margin: 2rem 0;
  opacity: 0.6;
}

/* Sepia fade-in animation for content loading */
@keyframes lmhFadeIn {
  from { opacity: 0; transform: translateY(14px); filter: sepia(40%); }
  to   { opacity: 1; transform: translateY(0); filter: sepia(0%); }
}
.lmh-fade-in {
  animation: lmhFadeIn 0.6s ease-out both;
}
.lmh-fade-in.lmh-delay-1 { animation-delay: 0.08s; }
.lmh-fade-in.lmh-delay-2 { animation-delay: 0.16s; }
.lmh-fade-in.lmh-delay-3 { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .lmh-fade-in { animation: none; }
}

/* ---------------------------------------------------------------------------
   3. NAVBAR
   --------------------------------------------------------------------------- */
.lmh-navbar-wrap { position: sticky; top: 0; z-index: 1030; }

.lmh-navbar {
  background: linear-gradient(180deg, var(--lmh-charcoal) 0%, var(--lmh-charcoal-soft) 100%);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: var(--lmh-shadow);
}

.lmh-navbar-border {
  height: 6px;
  background: repeating-linear-gradient(
    90deg, var(--lmh-brass) 0, var(--lmh-brass) 10px, var(--lmh-oxblood) 10px, var(--lmh-oxblood) 20px
  );
  opacity: 0.9;
}

.lmh-brand { display: flex; align-items: center; gap: 0.65rem; }
.lmh-brand-crest {
  color: var(--lmh-brass-light);
  font-size: 1.7rem;
  border: 1px solid var(--lmh-brass);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.lmh-brand-logo-img {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--lmh-cream);
  padding: 3px;
  border: 1px solid var(--lmh-brass);
}
.lmh-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.lmh-brand-line1 {
  font-family: var(--lmh-font-heading);
  color: var(--lmh-cream);
  font-weight: 700;
  font-size: 1.15rem;
}
.lmh-brand-line2 {
  font-family: var(--lmh-font-ui);
  color: var(--lmh-brass-light);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.lmh-navbar .nav-link {
  font-family: var(--lmh-font-ui);
  color: var(--lmh-parchment);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  position: relative;
}
.lmh-navbar .nav-link:hover,
.lmh-navbar .nav-link:focus { color: var(--lmh-brass-light); }
.lmh-navbar .nav-link.active { color: var(--lmh-brass-light); }
.lmh-navbar .nav-link.active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--lmh-oxblood);
}

/* ---------------------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------------------- */
.btn-lmh-primary {
  background: var(--lmh-oxblood);
  border: 1px solid var(--lmh-oxblood-dark);
  color: var(--lmh-cream);
  font-family: var(--lmh-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--lmh-radius);
  transition: all 0.2s ease;
}
.btn-lmh-primary:hover, .btn-lmh-primary:focus {
  background: var(--lmh-oxblood-dark);
  color: var(--lmh-brass-light);
  box-shadow: var(--lmh-shadow);
}

.btn-lmh-outline {
  background: transparent;
  border: 1px solid var(--lmh-sepia-dark);
  color: var(--lmh-sepia-dark);
  font-family: var(--lmh-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--lmh-radius);
  transition: all 0.2s ease;
}
.btn-lmh-outline:hover, .btn-lmh-outline:focus {
  background: var(--lmh-sepia-dark);
  color: var(--lmh-cream);
}

.btn-lmh-brass {
  background: var(--lmh-brass);
  border: 1px solid var(--lmh-sepia-dark);
  color: var(--lmh-charcoal);
  font-family: var(--lmh-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--lmh-radius);
}
.btn-lmh-brass:hover { background: var(--lmh-brass-light); }

/* ---------------------------------------------------------------------------
   5. HERO
   --------------------------------------------------------------------------- */
.lmh-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(20,15,10,0.55), rgba(20,15,10,0.72)),
              url('../assets/img/hero-placeholder.svg') center/cover no-repeat;
  color: var(--lmh-cream);
}
.lmh-hero::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 140px 40px rgba(0,0,0,0.55);
  pointer-events: none;
}
.lmh-hero-content { position: relative; z-index: 2; }
.lmh-hero .lmh-eyebrow { color: var(--lmh-brass-light); }
.lmh-hero h1 {
  color: var(--lmh-cream);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.lmh-hero p.lead {
  color: var(--lmh-parchment-dark);
  font-family: var(--lmh-font-body);
  font-style: italic;
  max-width: 40rem;
}
.lmh-hero-frame {
  border: 1px solid rgba(201,162,86,0.6);
  outline: 1px solid rgba(201,162,86,0.25);
  outline-offset: 6px;
  display: inline-block;
  padding: 2.5rem;
}

/* ---------------------------------------------------------------------------
   6. SECTION HEADERS
   --------------------------------------------------------------------------- */
.lmh-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.lmh-section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}
.lmh-section-title h2::after {
  content: "";
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 90px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--lmh-oxblood) 0 8px, var(--lmh-brass) 8px 16px);
}

/* ---------------------------------------------------------------------------
   7. ARCHIVE CARDS (catalogue grid, collections, videos, newspapers)
   --------------------------------------------------------------------------- */
.lmh-card {
  background: var(--lmh-cream);
  border: 1px solid var(--lmh-sepia);
  border-radius: var(--lmh-radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.lmh-card::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid rgba(92, 67, 38, 0.35);
  pointer-events: none;
  z-index: 2;
}
.lmh-card:hover {
  transform: translateY(-6px) rotate(-0.3deg);
  box-shadow: var(--lmh-shadow);
}
.lmh-card-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lmh-parchment-dark);
  border-bottom: 3px double var(--lmh-sepia-dark);
}
.lmh-card-thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(28%) contrast(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.lmh-card:hover .lmh-card-thumb-wrap img {
  transform: scale(1.06);
  filter: sepia(10%) contrast(1.05);
}
.lmh-card-thumb-wrap::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 40px 12px rgba(43,38,32,0.35);
  pointer-events: none;
}
.lmh-media-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: rgba(43,38,32,0.85);
  color: var(--lmh-brass-light);
  font-family: var(--lmh-font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--lmh-brass);
}
.lmh-card-body { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.lmh-card-ref {
  font-family: var(--lmh-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--lmh-oxblood);
  border: 1px dashed var(--lmh-oxblood);
  display: inline-block;
  padding: 0.1rem 0.45rem;
  margin-bottom: 0.5rem;
}
.lmh-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.lmh-card-title a { color: var(--lmh-charcoal); text-decoration: none; }
.lmh-card-title a:hover { color: var(--lmh-oxblood); }
.lmh-card-desc {
  font-size: 0.9rem;
  color: #4d453a;
  margin-bottom: 0.75rem;
  flex: 1;
}
.lmh-card-meta {
  font-family: var(--lmh-font-ui);
  font-size: 0.76rem;
  color: var(--lmh-sepia-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem;
  margin-bottom: 0.9rem;
  border-top: 1px solid rgba(92,67,38,0.25);
  padding-top: 0.6rem;
}
.lmh-card-meta span i { color: var(--lmh-oxblood); margin-right: 0.25rem; }

/* ---------------------------------------------------------------------------
   8. INDEX-CARD METADATA PANEL (item detail + admin previews)
   --------------------------------------------------------------------------- */
.lmh-index-card {
  background: var(--lmh-cream);
  border: 1px solid var(--lmh-sepia-dark);
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
}
.lmh-index-card::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(92,67,38,0.4);
  pointer-events: none;
}
.lmh-index-card::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 34px;
  background: repeating-linear-gradient(180deg, rgba(110,31,38,0.12) 0 4px, transparent 4px 26px);
  border-right: 1px dashed rgba(92,67,38,0.4);
  pointer-events: none;
}
.lmh-index-card-title {
  font-family: var(--lmh-font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--lmh-sepia-dark);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  margin-left: 34px;
}
.lmh-index-card dl {
  font-family: var(--lmh-font-mono);
  font-size: 0.86rem;
  margin-left: 34px;
  margin-bottom: 0;
}
.lmh-index-card dt {
  color: var(--lmh-oxblood);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  margin-top: 0.6rem;
}
.lmh-index-card dd { margin-left: 0; color: var(--lmh-charcoal); }

/* ---------------------------------------------------------------------------
   9. SEARCH / FILTER BAR
   --------------------------------------------------------------------------- */
.lmh-search-panel {
  background: var(--lmh-cream);
  border: 3px double var(--lmh-sepia-dark);
  padding: 1.5rem;
}
.lmh-search-panel label {
  font-family: var(--lmh-font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lmh-sepia-dark);
  font-weight: 600;
}
.lmh-search-panel .form-control,
.lmh-search-panel .form-select {
  border: 1px solid var(--lmh-sepia);
  border-radius: var(--lmh-radius);
  background: var(--lmh-parchment);
  font-family: var(--lmh-font-body);
}
.lmh-search-panel .form-control:focus,
.lmh-search-panel .form-select:focus {
  border-color: var(--lmh-oxblood);
  box-shadow: 0 0 0 0.2rem rgba(110,31,38,0.15);
}
.lmh-results-count {
  font-family: var(--lmh-font-ui);
  font-size: 0.85rem;
  color: var(--lmh-sepia-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------------------
   10. ITEM DETAIL PAGE
   --------------------------------------------------------------------------- */
.lmh-media-frame {
  background: var(--lmh-charcoal);
  border: 6px solid var(--lmh-sepia-dark);
  padding: 10px;
  position: relative;
}
.lmh-media-frame img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.lmh-media-frame iframe { width: 100%; border: 0; }
.lmh-media-frame .ratio { background: #000; }

.lmh-transcript {
  background: var(--lmh-parchment);
  border-left: 4px solid var(--lmh-oxblood);
  padding: 1.25rem 1.5rem;
  font-family: var(--lmh-font-body);
  font-style: italic;
  white-space: pre-line;
}

/* ---------------------------------------------------------------------------
   11. 1930s FRAME FOR VIDEO EMBEDS
   --------------------------------------------------------------------------- */
.lmh-video-frame {
  border: 10px solid var(--lmh-sepia-dark);
  outline: 3px solid var(--lmh-brass);
  outline-offset: -14px;
  background: #000;
  padding: 4px;
}

/* ---------------------------------------------------------------------------
   12. MAP VIEWER
   --------------------------------------------------------------------------- */
.lmh-map-viewer {
  border: 6px solid var(--lmh-sepia-dark);
  background: #111;
  overflow: hidden;
  position: relative;
}
.lmh-map-viewer img {
  width: 100%;
  transition: transform 0.25s ease;
  cursor: zoom-in;
  transform-origin: center center;
}
.lmh-map-controls {
  position: absolute; bottom: 10px; right: 10px; z-index: 4;
  display: flex; gap: 0.4rem;
}
.lmh-map-controls .btn {
  background: rgba(43,38,32,0.85);
  color: var(--lmh-brass-light);
  border: 1px solid var(--lmh-brass);
}

/* ---------------------------------------------------------------------------
   13. MODAL VIEWER
   --------------------------------------------------------------------------- */
.lmh-viewer-modal .modal-content {
  background: var(--lmh-charcoal);
  color: var(--lmh-cream);
  border: 2px solid var(--lmh-brass);
}
.lmh-viewer-modal .modal-header { border-bottom: 1px solid var(--lmh-sepia); }
.lmh-viewer-modal .btn-close { filter: invert(1); }
#lmhViewerModalBody img { max-width: 100%; max-height: 80vh; }
#lmhViewerModalBody iframe { width: 100%; min-height: 70vh; border: 0; }

/* ---------------------------------------------------------------------------
   14. COLLECTIONS TILES
   --------------------------------------------------------------------------- */
.lmh-collection-tile {
  position: relative;
  min-height: 220px;
  display: flex; align-items: flex-end;
  background: linear-gradient(rgba(20,15,10,0.15), rgba(20,15,10,0.75)), var(--lmh-sepia);
  border: 1px solid var(--lmh-sepia-dark);
  color: var(--lmh-cream);
  overflow: hidden;
}
.lmh-collection-tile a { color: inherit; text-decoration: none; display: block; width: 100%; }
.lmh-collection-tile .lmh-tile-body { padding: 1.25rem; width: 100%; }
.lmh-collection-tile h3 { color: var(--lmh-cream); font-size: 1.25rem; margin-bottom: 0.25rem; }
.lmh-collection-tile p { font-size: 0.85rem; color: var(--lmh-parchment-dark); margin-bottom: 0; }
.lmh-collection-tile:hover { box-shadow: var(--lmh-shadow); }

/* ---------------------------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------------------------- */
.lmh-footer {
  background: var(--lmh-charcoal);
  color: var(--lmh-parchment-dark);
  margin-top: 4rem;
}
.lmh-footer-border-top {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--lmh-brass) 0 10px, var(--lmh-oxblood) 10px 20px);
}
.lmh-footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lmh-brass-light);
  margin-bottom: 1rem;
}
.lmh-footer-text { font-size: 0.9rem; color: var(--lmh-parchment-dark); }
.lmh-footer-links li { margin-bottom: 0.4rem; }
.lmh-footer-links a { color: var(--lmh-parchment-dark); text-decoration: none; font-size: 0.9rem; }
.lmh-footer-links a:hover { color: var(--lmh-brass-light); text-decoration: underline; }
.lmh-footer-divider { border-top: 1px solid rgba(201,162,86,0.25); margin: 1.5rem 0; }
.lmh-footer-copy { font-size: 0.8rem; margin-bottom: 0.25rem; }
.lmh-footer-copy-small { font-size: 0.72rem; opacity: 0.75; }

/* ---------------------------------------------------------------------------
   16. ADMIN — LEDGER LOGIN
   --------------------------------------------------------------------------- */
.lmh-admin-body {
  background: var(--lmh-charcoal);
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  min-height: 100vh;
}
/* Page titles sit directly on the dark admin body (outside any .lmh-admin-panel
   card), so they need a light colour rather than the site-wide dark heading
   default. The one exception is login.php's <h1>, which is inside the light
   .lmh-ledger-card and must stay dark — the more specific selector wins. */
.lmh-admin-body h1 { color: var(--lmh-cream); }
.lmh-admin-body .lmh-ledger-card h1 { color: var(--lmh-charcoal); }
.lmh-admin-lead { color: var(--lmh-parchment-dark); }
.lmh-ledger-card {
  background: var(--lmh-cream);
  border: 3px double var(--lmh-sepia-dark);
  max-width: 440px;
  margin: 6rem auto;
  padding: 2.5rem 2.25rem;
  box-shadow: var(--lmh-shadow);
}
.lmh-ledger-card h1 {
  font-size: 1.4rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.lmh-ledger-sub {
  text-align: center;
  font-family: var(--lmh-font-ui);
  font-size: 0.78rem;
  color: var(--lmh-sepia-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.lmh-ledger-card label {
  font-family: var(--lmh-font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lmh-sepia-dark);
}

/* ---------------------------------------------------------------------------
   17. ADMIN DASHBOARD
   --------------------------------------------------------------------------- */
.lmh-admin-topbar {
  background: var(--lmh-charcoal);
  color: var(--lmh-cream);
  padding: 1rem 0;
  border-bottom: 6px double var(--lmh-brass);
}
.lmh-admin-topbar a { color: var(--lmh-brass-light); text-decoration: none; }
.lmh-dash-tile {
  display: block;
  background: var(--lmh-cream);
  border: 1px solid var(--lmh-sepia-dark);
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: var(--lmh-charcoal);
  text-decoration: none;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lmh-dash-tile:hover { transform: translateY(-4px); box-shadow: var(--lmh-shadow); color: var(--lmh-oxblood); }
.lmh-dash-tile i { font-size: 2rem; color: var(--lmh-oxblood); margin-bottom: 0.6rem; display: block; }
.lmh-dash-tile span { font-family: var(--lmh-font-ui); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }

.lmh-admin-panel {
  background: var(--lmh-cream);
  border: 1px solid var(--lmh-sepia-dark);
  padding: 1.75rem;
}
.lmh-admin-panel h1, .lmh-admin-panel h2 { margin-bottom: 1.25rem; }

.lmh-table thead {
  background: var(--lmh-charcoal);
  color: var(--lmh-brass-light);
  font-family: var(--lmh-font-ui);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.lmh-table td, .lmh-table th { vertical-align: middle; }
.lmh-table-ref { font-family: var(--lmh-font-mono); font-size: 0.82rem; }

.lmh-alert-warning {
  background: #f7e8c9;
  border: 1px solid var(--lmh-oxblood);
  color: var(--lmh-oxblood-dark);
  padding: 1rem 1.25rem;
}

/* ---------------------------------------------------------------------------
   18. UTILITIES
   --------------------------------------------------------------------------- */
.lmh-text-oxblood { color: var(--lmh-oxblood); }
.lmh-bg-cream { background: var(--lmh-cream); }
.lmh-shadow { box-shadow: var(--lmh-shadow); }
.lmh-scroll-fade { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.lmh-scroll-fade.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------------
   19. RESPONSIVE ADJUSTMENTS
   --------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .lmh-navbar .navbar-nav { background: var(--lmh-charcoal-soft); padding: 1rem 0; margin-top: 0.5rem; }
  .lmh-hero { min-height: 50vh; }
}
@media (max-width: 575.98px) {
  .lmh-hero-frame { padding: 1.25rem; }
  .lmh-index-card dl, .lmh-index-card-title { margin-left: 0; }
  .lmh-index-card::after { display: none; }
  .lmh-ledger-card { margin: 3rem 1rem; padding: 1.75rem 1.25rem; }
}
