/* ==========================================================================
   Paisley Central Mosque — public site design system
   Thesis: "The Boteh Comes Home" — the paisley boteh motif (Persian/Kashmiri
   teardrop, woven into world fame by this town) as the mosque's ornament
   language. Deep emerald grounds, fine gold line-work, Amiri display type
   carrying Arabic and Latin with one voice.
   ========================================================================== */

:root {
  /* Colour */
  --ground: #0A3F2E;        /* deep emerald — hero, footer */
  --ground-2: #0D4A37;      /* raised panel on ground */
  --emerald: #00964B;       /* brand — actions, links */
  --emerald-dark: #007B3A;  /* hover, small text on cream */
  --gold: #C9A227;          /* ornament, accents */
  --gold-soft: #E8D9A8;     /* ornament on dark grounds */
  --cream: #FAF8F0;         /* page paper */
  --card: #FFFFFF;
  --ink: #152A20;           /* text on cream */
  --ink-soft: #4E6357;      /* secondary text */
  --line: #E5DECB;          /* hairlines on cream */
  --line-dark: rgba(232, 217, 168, 0.25); /* hairlines on emerald */
  --now: #C9A227;           /* current prayer accent */

  /* Type */
  --font-display: "Amiri", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", serif;

  /* Scale */
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.6rem;
  --text-2xl: clamp(2rem, 4.5vw, 2.9rem);
  --text-hero: clamp(2.6rem, 6.5vw, 4.6rem);

  /* Rhythm */
  --space-section: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(21, 42, 32, 0.05), 0 12px 32px -16px rgba(21, 42, 32, 0.22);
  --shadow-float: 0 24px 64px -24px rgba(10, 63, 46, 0.45);
  --wrap: 1120px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald-dark); text-decoration-color: rgba(0, 150, 75, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--emerald); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--gold-soft); color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: var(--text-hero); letter-spacing: -0.01em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 1em; }
.lede { font-size: var(--text-lg); color: var(--ink-soft); max-width: 42em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }

/* Eyebrow: small caps label above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--emerald-dark); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold-soft); }

/* Arabic + Urdu helpers */
.arabic { font-family: var(--font-display); direction: rtl; }
.urdu { font-family: var(--font-urdu); direction: rtl; }

/* --------------------------------------------------------------------------
   Boteh ornament system (inline SVG uses currentColor)
   -------------------------------------------------------------------------- */
.ornament-divider {
  display: flex; align-items: center; gap: 1.1rem;
  color: var(--gold); margin: 0 auto; max-width: 340px;
}
.ornament-divider::before, .ornament-divider::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 40%, var(--line));
}
.ornament-divider::after { background: linear-gradient(270deg, transparent, var(--line) 40%, var(--line)); }
.ornament-divider svg { width: 22px; height: 30px; flex: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 40px; color: var(--emerald); flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); }
.site-nav a { font-size: var(--text-sm); font-weight: 600; color: var(--ink); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--emerald-dark); }
.site-nav a[aria-current="page"] { color: var(--emerald-dark); border-bottom-color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  padding: 0.72rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #211A05; }
.btn--gold:hover { background: #D9B23A; color: #211A05; box-shadow: 0 10px 24px -10px rgba(201, 162, 39, 0.7); }
.btn--emerald { background: var(--emerald); color: #fff; }
.btn--emerald:hover { background: var(--emerald-dark); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 150, 75, 0.6); }
.btn--ghost { border-color: var(--line-dark); color: var(--gold-soft); background: transparent; }
.btn--ghost:hover { border-color: var(--gold-soft); color: #fff; }
.btn--outline { border-color: var(--emerald); color: var(--emerald-dark); background: transparent; }
.btn--outline:hover { background: rgba(0, 150, 75, 0.07); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-110%); transition: transform 0.25s ease;
    box-shadow: 0 24px 48px -24px rgba(21, 42, 32, 0.3);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 0.9rem; }
}

/* --------------------------------------------------------------------------
   Hero (deep emerald ground, boteh ornament, prayer bar)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(0, 150, 75, 0.35), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--ground);
  color: #F4F1E4;
  padding-top: clamp(3.5rem, 8vw, 6rem);
}
.on-dark, .hero { --line: var(--line-dark); }
.hero h1 { color: #FDFCF6; }
.hero .bismillah {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold-soft); margin-bottom: 1.2rem;
  /* RTL text, but visually anchored to the same left edge as the heading */
  direction: rtl; text-align: left;
}
.hero .lede { color: rgba(244, 241, 228, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero__ornament {
  position: absolute; pointer-events: none; color: var(--gold);
  opacity: 0.28; width: clamp(220px, 30vw, 420px); height: auto;
}
.hero__ornament--tr { top: -40px; right: -60px; transform: rotate(12deg); }
.hero__ornament--bl { bottom: 60px; left: -80px; transform: rotate(-160deg); opacity: 0.14; }
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero__date { margin-top: 1.4rem; font-size: var(--text-sm); color: var(--gold-soft); font-weight: 600; letter-spacing: 0.04em; }
.hero__date .sep { opacity: 0.5; margin-inline: 0.5rem; }

/* Load sequence */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .bismillah { animation: rise 0.7s 0.05s ease both; }
.hero h1 { animation: rise 0.7s 0.18s ease both; }
.hero .lede, .hero__date { animation: rise 0.7s 0.32s ease both; }
.hero__actions { animation: rise 0.7s 0.44s ease both; }
.prayer-board { animation: rise 0.8s 0.55s ease both; }

/* --------------------------------------------------------------------------
   Prayer board — the page's reason to exist
   -------------------------------------------------------------------------- */
.prayer-board {
  position: relative; z-index: 2;
  background: var(--card); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  transform: translateY(clamp(2.5rem, 6vw, 4.5rem));
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.hero--with-board { padding-bottom: 0; }
.after-board { padding-top: clamp(5rem, 12vw, 8.5rem); }

.prayer-board__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding: 1.2rem 1.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.prayer-board__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin: 0; }
.prayer-board__meta { font-size: var(--text-sm); color: var(--ink-soft); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--emerald-dark); }

.prayer-board__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
}
.prayer-cell { padding: 1.1rem 0.75rem 1.25rem; text-align: center; border-inline-start: 1px solid var(--line); position: relative; }
.prayer-cell:first-child { border-inline-start: 0; }
.prayer-cell__name { font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.prayer-cell__name .ar { display: block; font-family: var(--font-display); font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--emerald-dark); margin-top: 0.1rem; }
.prayer-cell__time { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.15; margin-top: 0.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prayer-cell__iqamah strong { white-space: nowrap; }
.prayer-cell__iqamah { font-size: var(--text-xs); color: var(--ink-soft); margin-top: 0.15rem; }
.prayer-cell__iqamah strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.prayer-cell.is-next { background: linear-gradient(180deg, rgba(0, 150, 75, 0.09), rgba(0, 150, 75, 0.03)); }
.prayer-cell.is-next::before {
  content: "next"; position: absolute; top: 0.5rem; inset-inline-end: 0.5rem;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--emerald); color: #fff; border-radius: 999px; padding: 0.15rem 0.5rem;
}
.prayer-cell.is-now { background: linear-gradient(180deg, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0.05)); }
.prayer-cell.is-now::before {
  content: "now"; position: absolute; top: 0.5rem; inset-inline-end: 0.5rem;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--gold); color: #211A05; border-radius: 999px; padding: 0.15rem 0.5rem;
}

.prayer-board__foot {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; align-items: center;
  padding: 0.8rem 1.6rem; border-top: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--ink-soft); background: rgba(201, 162, 39, 0.05);
  border-radius: 0 0 var(--radius) var(--radius);
}
.prayer-board__foot strong { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .prayer-board__grid { grid-template-columns: 1fr; }
  .prayer-cell {
    display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.25rem 1rem;
    text-align: start; border-inline-start: 0; border-top: 1px solid var(--line);
    padding: 0.8rem 3.4rem 0.8rem 1.2rem;
  }
  .prayer-cell:first-child { border-top: 0; }
  .prayer-cell__time { margin-top: 0; font-size: 1.45rem; }
  .prayer-cell__iqamah { margin-top: 0; text-align: end; }
  .prayer-cell.is-next::before, .prayer-cell.is-now::before { top: 50%; transform: translateY(-50%); }
}

/* --------------------------------------------------------------------------
   Cards, grids, panels
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 3px rgba(21,42,32,0.05), 0 22px 44px -18px rgba(21, 42, 32, 0.28); }
.card h3 { margin-bottom: 0.35rem; }
.card .card__icon { color: var(--gold); width: 30px; height: 40px; margin-bottom: 0.9rem; }
.card p { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; }
.card .card__go { display: inline-block; margin-top: 0.9rem; font-weight: 700; font-size: var(--text-sm); color: var(--emerald-dark); }

.panel--dark {
  background:
    radial-gradient(800px 300px at 110% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    var(--ground);
  color: #F4F1E4; border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.panel--dark h2, .panel--dark h3 { color: #FDFCF6; }
.panel--dark p { color: rgba(244, 241, 228, 0.82); }

/* Jumu'ah strip */
.jumuah { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.jumuah__times { display: flex; gap: clamp(1.25rem, 4vw, 3rem); }
.jumuah__slot .label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.jumuah__slot .time { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; color: #FDFCF6; }
.jumuah__slot .sub { font-size: var(--text-xs); color: rgba(244, 241, 228, 0.65); }
@media (max-width: 760px) { .jumuah { grid-template-columns: 1fr; } }

/* Weather */
.weather-card { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.weather-icon { font-size: 2.8rem; line-height: 1; }
.weather-temp { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin: 0; line-height: 1; }
.weather-desc { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: var(--text-sm); }
.weather-meta { display: flex; gap: 1.5rem; margin: 0 0 0 auto; }
.weather-meta dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.weather-meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .weather-meta { margin-left: 0; } }

/* Daily inspiration (verse rotator) */
.verse-panel { transition: opacity 0.5s ease; }
.verse-panel.is-fading { opacity: 0; }
.verse-arabic { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 2; color: #FDFCF6; margin: 0.5rem auto 1rem; max-width: 24ch; }
.verse-english { font-size: var(--text-lg); color: rgba(244, 241, 228, 0.9); max-width: 46ch; margin-inline: auto; }
.verse-ref { color: var(--gold-soft); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.06em; margin-top: 0.75rem; }

/* Announcements */
.announcement { border-inline-start: 3px solid var(--gold); padding: 0.9rem 1.2rem; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); margin-bottom: 0.9rem; }
.announcement__title { font-weight: 700; margin: 0 0 0.15rem; }
.announcement__body { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }
.announcement--empty { border-inline-start-color: var(--line); color: var(--ink-soft); font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   Timetable
   -------------------------------------------------------------------------- */
.month-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 2rem; }
.month-nav button {
  font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 0.4rem 0.95rem;
}
.month-nav button:hover { border-color: var(--emerald); color: var(--emerald-dark); }
.month-nav button[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); }
table.timetable { border-collapse: collapse; width: 100%; min-width: 760px; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.timetable caption { text-align: start; padding: 1.1rem 1.25rem 0.4rem; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.timetable th, .timetable td { padding: 0.5rem 0.7rem; text-align: center; border-top: 1px solid var(--line); }
.timetable thead th { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-top: 0; padding-top: 0.9rem; }
.timetable thead th.group { border-bottom: 1px solid var(--line); color: var(--emerald-dark); }
.timetable td:first-child, .timetable th:first-child { text-align: start; padding-inline-start: 1.25rem; font-weight: 600; }
.timetable tbody tr:nth-child(even) { background: rgba(201, 162, 39, 0.04); }
.timetable tr.is-today { background: rgba(0, 150, 75, 0.1); box-shadow: inset 3px 0 0 var(--emerald); }
.timetable tr.is-friday td { color: var(--emerald-dark); font-weight: 600; }

/* --------------------------------------------------------------------------
   Duas
   -------------------------------------------------------------------------- */
.dua-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card); }
.dua-card .arabic { font-size: 1.7rem; line-height: 2.1; color: var(--ink); text-align: end; margin-bottom: 1rem; }
.dua-card .translit { font-style: italic; color: var(--ink-soft); font-size: var(--text-sm); margin-bottom: 0.5rem; }
.dua-card .translation { font-size: var(--text-sm); margin-bottom: 0.75rem; }
.dua-card .ref { font-size: var(--text-xs); color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem; background: var(--card);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(0, 150, 75, 0.15); }
.field .hint { font-size: var(--text-xs); color: var(--ink-soft); margin-top: 0.3rem; }
.form-status { border-radius: var(--radius-sm); padding: 0.8rem 1rem; font-size: var(--text-sm); font-weight: 600; margin-bottom: 1rem; display: none; }
.form-status.is-ok { display: block; background: rgba(0, 150, 75, 0.1); color: var(--emerald-dark); }
.form-status.is-err { display: block; background: rgba(196, 52, 43, 0.09); color: #A3352C; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ground); color: rgba(244, 241, 228, 0.8); margin-top: var(--space-section); position: relative; overflow: hidden; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2.5rem; position: relative; z-index: 1; }
.site-footer h3 { color: #FDFCF6; font-size: 1.05rem; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: var(--text-sm); }
.site-footer__legal { border-top: 1px solid var(--line-dark); padding-block: 1.2rem; font-size: var(--text-xs); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; color: rgba(244, 241, 228, 0.55); position: relative; z-index: 1; }
.site-footer .hero__ornament { opacity: 0.1; bottom: -60px; right: -60px; top: auto; left: auto; transform: rotate(160deg); }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -48px; left: 1rem; z-index: 100; background: var(--emerald); color: #fff; font-weight: 700; padding: 0.6rem 1.1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none; transition: top 0.15s ease; }
.skip-link:focus { top: 0; color: #fff; }

@media print {
  .site-header, .site-footer, .hero__actions, .month-nav, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .table-scroll { border: 0; box-shadow: none; }
  .timetable { min-width: 0; font-size: 11px; }
}
