/* =============================================================================
   Malvern Hash House Harriers — Public Stylesheet
   Malvern Hills green palette, Georgia headings, clean responsive layout
   ============================================================================= */

/* ── Custom properties ─────────────────────────────────────────────────────── */
:root {
  /* Colour palette — Malvern Hills greens 
    --green-dark:    #1a3d25;
  --green-main:    #235c34;
  */
  --green-dark:    #1a3d25;
  --green-main:    #235c34;
  --green-hover:   #1b4b29;
  --green-light:   #e8f4ec;
  --green-border:  #b5d4be;

  --amber:         #c07c1a;
  --amber-hover:   #a5680e;
  --amber-light:   #fdf3e0;

  --red:           #b94040;
  --red-light:     #fde8e8;

  --bg:            #f4f7f4;
  --surface:       #ffffff;
  --surface-2:     #eff3ef;

  --text:          #1a2e1e;
  --text-muted:    #526b58;
  --text-light:    #7a9080;

  --border:        #cfddd0;
  --border-dark:   #b0c4b1;

  /* Typography */
/*  --font-heading: Georgia, 'Times New Roman', serif; */
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Spacing scale */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;

  /* Misc */
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 8px rgba(26,61,37,.10);
  --shadow-lg: 0 4px 20px rgba(26,61,37,.15);
  --transition: 150ms ease;
  --nav-h:     48px;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img  { max-width: 100%; height: auto; display: block; }

/* ── Skip link ──────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  z-index: 9999;
  background: var(--green-dark);
  color: #fff;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: normal;
  line-height: 1.25;
  color: var(--green-dark);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: var(--sp-lg); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: var(--sp-md); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); margin-bottom: var(--sp-sm); }
h4 { font-size: 1.05rem; margin-bottom: var(--sp-sm); }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

a { color: var(--green-main); text-decoration: none; }
a:hover { color: var(--amber); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

ul, ol { padding-left: 1.5em; margin-bottom: var(--sp-md); }
li { margin-bottom: var(--sp-xs); }

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--green-dark);
}
code a { color: inherit; }

hr { border: none; border-top: 1px solid var(--border); margin: var(--sp-xl) 0; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.page-body { padding: var(--sp-xl) var(--sp-lg); }

.layout-columns {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-xl);
  align-items: start;
}
@media (max-width: 900px) {
  .layout-columns { grid-template-columns: 1fr; }
}

/* ── Site header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--green-dark);
  padding: var(--sp-lg) 0;
}
.site-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.site-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: normal;
  color: #ffffff;
  line-height: 1.1;
}
.site-tagline {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  font-style: italic;
  margin-top: 3px;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.main-nav {
  background: var(--green-main);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}
.nav-list { display: flex; list-style: none; padding: 0; margin: 0; }
.nav-item { position: relative; }

.nav-link,
.nav-dropdown-btn {
  display: block;
  height: var(--nav-h);
  line-height: var(--nav-h);
  padding: 0 var(--sp-md);
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-dropdown-btn:hover,
.nav-link.active,
.nav-dropdown-btn.active {
  background: var(--green-hover);
  color: #fff;
  text-decoration: none;
}
.nav-link.active,
.nav-dropdown-btn.active { border-bottom: 3px solid var(--amber); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  list-style: none;
  padding: var(--sp-xs) 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open  .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 9px var(--sp-md);
  font-size: .875rem;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}
.dropdown li a:hover { background: var(--green-light); color: var(--green-dark); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-sm);
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--green-dark);
    padding: var(--sp-sm) 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-list.open { display: flex; }
  .nav-link, .nav-dropdown-btn {
    height: auto;
    line-height: 1.5;
    padding: 12px var(--sp-lg);
    width: 100%;
    text-align: left;
    border-bottom: none;
  }
  .nav-link.active { border-left: 3px solid var(--amber); border-bottom: none; }
  .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,.2);
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { color: rgba(255,255,255,.85); padding: 10px var(--sp-2xl); }
  .dropdown li a:hover { background: rgba(255,255,255,.1); color: #fff; }
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  background: var(--green-light);
  border-bottom: 1px solid var(--green-border);
  padding: var(--sp-md) var(--sp-lg);
}
.card-header h2, .card-header h3 { margin-bottom: 0; font-size: 1.05rem; color: var(--green-dark); }
.card-body  { padding: var(--sp-lg); }
.card-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: var(--sp-sm) var(--sp-lg); font-size: .875rem; color: var(--text-muted); }

/* ── Sections ───────────────────────────────────────────────────────────────── */
.section { padding: var(--sp-xl) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-sm); margin-bottom: var(--sp-lg); }
.section-header h2 { margin-bottom: 0; }

/* ── Next hash card ─────────────────────────────────────────────────────────── */
.next-hash-card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
@media (max-width: 600px) { .next-hash-card { grid-template-columns: 1fr; } }

.next-hash-date { font-size: 1.5rem; font-family: var(--font-heading); color: var(--green-dark); line-height: 1; }
.next-hash-time { color: var(--text-muted); font-size: .9rem; margin-top: 2px; }
.next-hash-venue { font-size: 1.05rem; font-weight: 600; margin: var(--sp-sm) 0 var(--sp-xs); }
.next-hash-hare  { color: var(--text-muted); font-size: .9rem; }

/* ── Runs table ─────────────────────────────────────────────────────────────── */
.runs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.runs-table th {
  background: var(--green-light);
  border-bottom: 2px solid var(--green-border);
  padding: var(--sp-sm) var(--sp-md);
  text-align: left;
  font-family: var(--font-heading);
  font-size: .85rem;
  color: var(--green-dark);
  white-space: nowrap;
}
.runs-table td { padding: var(--sp-sm) var(--sp-md); border-bottom: 1px solid var(--border); vertical-align: top; }
.runs-table tr:last-child td { border-bottom: none; }
.runs-table tr:hover td { background: var(--surface-2); }
.runs-table .hash-date { white-space: nowrap; font-weight: 500; }
.venue-tbc   { color: var(--text-muted); font-style: italic; }
.notes-text  { font-size: .8rem; color: var(--text-muted); font-style: italic; margin-top: 3px; }

/* ── Data table (sortable/filterable) ───────────────────────────────────────── */
.table-controls { display: flex; gap: var(--sp-md); align-items: center; flex-wrap: wrap; margin-bottom: var(--sp-md); }
.table-filter {
  padding: 8px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  min-width: 240px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.table-filter:focus { outline: none; border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(35,92,52,.15); }

.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
  background: var(--green-light);
  border-bottom: 2px solid var(--green-border);
  padding: var(--sp-sm) var(--sp-md);
  text-align: left;
  font-family: var(--font-heading);
  font-size: .85rem;
  color: var(--green-dark);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.data-table th:hover { background: var(--green-border); }
.data-table th.sort-asc::after  { content: ' ↑'; }
.data-table th.sort-desc::after { content: ' ↓'; }
.data-table td { padding: var(--sp-sm) var(--sp-md); border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.data-table .defunct td { color: var(--text-muted); }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-number  { background: var(--amber-light); color: var(--amber); border: 1px solid rgba(192,124,26,.25); }
.badge-defunct { background: var(--red-light); color: var(--red); border: 1px solid rgba(185,64,64,.25); }

/* ── Year nav (hashes list) ─────────────────────────────────────────────────── */
.year-nav { display: flex; gap: var(--sp-xs); flex-wrap: wrap; margin-bottom: var(--sp-xl); }
.year-nav a {
  padding: 5px 13px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--green-main);
  text-decoration: none;
  transition: background var(--transition);
}
.year-nav a:hover,
.year-nav a.active {
  background: var(--green-main);
  border-color: var(--green-main);
  color: #fff;
  text-decoration: none;
}

/* ── Hash detail meta grid ──────────────────────────────────────────────────── */
.hash-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}
.meta-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-md); box-shadow: var(--shadow); }
.meta-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: var(--sp-xs); }
.meta-value { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.meta-value a { color: var(--green-main); }

/* ── Map ────────────────────────────────────────────────────────────────────── */
.map-container    { height: 520px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); isolation: isolate; }
.map-container-sm { height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); isolation: isolate; }
.hash-map         { height: 200px; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.hash-map-placeholder {
  background: var(--surface-2);
  height: 200px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .875rem;
  border: 1px dashed var(--border-dark);
}

/* ── Stats page ─────────────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-md); margin-bottom: var(--sp-xl); }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-lg); text-align: center; box-shadow: var(--shadow); }
.stat-headline { font-size: 2rem; font-family: var(--font-heading); color: var(--green-dark); line-height: 1; display: block; }
.stat-label    { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; display: block; }
.chart-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-lg); box-shadow: var(--shadow); margin-bottom: var(--sp-xl); position: relative; height: 300px; }

/* ── Diary cards ────────────────────────────────────────────────────────────── */
.diary-list { display: grid; gap: var(--sp-md); }
.diary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-md) var(--sp-lg);
  box-shadow: var(--shadow);
}
.diary-card-title { font-family: var(--font-heading); font-size: 1.05rem; color: var(--green-dark); margin-bottom: var(--sp-xs); }
.diary-card-dates { font-size: .85rem; font-weight: 600; color: var(--amber); margin-bottom: var(--sp-sm); }
.diary-card-body  { font-size: .9rem; }
.diary-card-body p:last-child { margin-bottom: 0; }

/* ── Scribe archive ─────────────────────────────────────────────────────────── */
.scribe-list { list-style: none; padding: 0; }
.scribe-list li { padding: var(--sp-xs) 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: var(--sp-sm); }
.scribe-list li:last-child { border-bottom: none; }

/* ── Hasher grid / chips ────────────────────────────────────────────────────── */
.hasher-grid { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.hasher-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .9rem;
  color: var(--green-main);
  text-decoration: none;
  transition: background var(--transition);
}
.hasher-chip:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; border-color: var(--green-border); }

/* ── Sidebar (homepage) ─────────────────────────────────────────────────────── */
.sidebar-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--sp-lg);
}
.sidebar-section h3 { font-size: 1rem; border-bottom: 2px solid var(--green-border); padding-bottom: var(--sp-sm); margin-bottom: var(--sp-md); }
.sidebar-event       { margin-bottom: var(--sp-md); padding-bottom: var(--sp-md); border-bottom: 1px solid var(--border); }
.sidebar-event:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-event-date  { font-size: .8rem; font-weight: 700; color: var(--amber); margin-bottom: 2px; }
.sidebar-event-title { font-size: .9rem; font-weight: 600; margin-bottom: 2px; }
.sidebar-event-desc  { font-size: .8rem; color: var(--text-muted); }

/* ── Prose (content pages) ──────────────────────────────────────────────────── */
.prose { max-width: 720px; }
.prose p     { margin-bottom: 1.25em; }
.prose h2    { margin-top: 2em; margin-bottom: .75em; }
.prose h3    { margin-top: 1.5em; margin-bottom: .5em; }
.prose ul, .prose ol { margin-bottom: 1.25em; }
.prose a     { color: var(--green-main); text-decoration: underline; }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: var(--sp-xs); justify-content: center; margin-top: var(--sp-xl); flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--green-main);
  text-decoration: none;
  transition: background var(--transition);
}
.pagination a:hover { background: var(--green-light); text-decoration: none; }
.pagination .current { background: var(--green-main); border-color: var(--green-main); color: #fff; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-sm); font-size: .8rem; color: var(--text-muted); margin-bottom: var(--sp-lg); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb-sep { color: var(--border-dark); }

/* ── Forms (public) ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-lg); }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: var(--sp-xs); }
.form-control {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(35,92,52,.15); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover      { text-decoration: none; }
.btn:focus-visible { outline: 3px solid rgba(35,92,52,.4); outline-offset: 2px; }
.btn-primary    { background: var(--green-main); border-color: var(--green-main); color: #fff; }
.btn-primary:hover    { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.btn-secondary  { background: var(--surface); border-color: var(--border-dark); color: var(--text); }
.btn-secondary:hover  { background: var(--surface-2); color: var(--text); }
.btn-amber      { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-hover); color: #fff; }
.btn-danger     { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #9c3434; color: #fff; }
.btn-sm         { padding: 6px 14px; font-size: .8rem; }
.btn-outline    { background: transparent; border-color: var(--border-dark); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); }

/* ── Alerts ─────────────────────────────────────────────────────────────────── */
.alert { padding: var(--sp-md) var(--sp-lg); border-radius: var(--radius); margin-bottom: var(--sp-lg); font-size: .9rem; }
.alert-success { background: #d4edda; border: 1px solid #b8dacc; color: #1c5c2e; }
.alert-error, .alert-danger { background: var(--red-light); border: 1px solid #f5c6c6; color: #7c1a1a; }
.alert-info    { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }

/* ── Cookie notice ──────────────────────────────────────────────────────────── */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green-dark);
  color: rgba(255,255,255,.9);
  padding: var(--sp-md) var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  z-index: 1000;
  font-size: .875rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,.2);
}
.cookie-notice.hidden { display: none; }
.cookie-notice a { color: rgba(255,255,255,.85); text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: var(--sp-xl) 0;
  margin-top: auto;
  font-size: .875rem;
}
.site-footer a    { color: rgba(255,255,255,.85); text-decoration: underline; }
.site-footer a:hover { color: #fff; }
.site-footer p    { margin-bottom: var(--sp-sm); }
.footer-links     { margin-bottom: var(--sp-sm); }
.footer-ical code { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); font-size: .8rem; }
.footer-ical code a { color: rgba(255,255,255,.9); }

/* ── Table responsive wrapper ───────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: .875rem; }
.text-mono   { font-family: var(--font-mono); }

.mt-sm { margin-top: var(--sp-sm); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mb-md { margin-bottom: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-xl { margin-bottom: var(--sp-xl); }
.mb-0  { margin-bottom: 0; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-sm  { gap: var(--sp-sm); }
.gap-md  { gap: var(--sp-md); }
.flex-wrap { flex-wrap: wrap; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
