:root {
  --brand: #C8102E;
  --brand-dark: #A00D25;
  --brand-light: #FFF5F5;
  /* Tiles: pink ones use --tint-surface (from --brand-light), white ones stay white; all lift off the page with --tint-shadow */
  --tint-surface: linear-gradient(135deg, var(--brand-light) 0%, #FCE4E8 100%);
  --tint-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(200, 16, 46, 0.06), 0 14px 32px rgba(200, 16, 46, 0.12);
  --tint-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 10px rgba(200, 16, 46, 0.08), 0 20px 40px rgba(200, 16, 46, 0.16);
  /* Smaller tiles sitting inside another tile */
  --tint-shadow-sm: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 3px rgba(200, 16, 46, 0.06), 0 6px 16px rgba(200, 16, 46, 0.1);
  /* Controls laid over photos (counter, arrows, auto-advance ring): one see-through dark glass */
  --glass: rgba(15, 23, 42, 0.5);
  --glass-hover: rgba(15, 23, 42, 0.68);
  --glass-blur: blur(6px) saturate(140%);
  --text-dark: #1E293B;
  --text-mid: #64748B;
  --text-light: #94A3B8;
  --green: #2E7D32;
  --green-light: #E8F5E9;
  --orange: #E65100;
  --orange-light: #FFF3E0;
  --bg: #FFFBFB;
  --card: #FFFFFF;
  --border: #F1E4E6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* English UI: Montserrat (UTAS brand feel) */
html[lang^="en"] body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ===== Header ===== */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 40px;
  min-height: 88px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  flex: 1;
  min-width: 0;
}

/* Keep English (and other) nav labels on one line under Montserrat */
.nav-links a {
  white-space: nowrap;
}

/* "Happening" menu item: a small live/broadcast icon before the word */
.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-icon {
  flex: none;
  overflow: visible;
}

/* Homepage/header Happening mark: Figma shows a simple red live dot, not the pulsing rings. */
.nav-live .live-ring { display: none; }
.nav-live .live-icon { width: 10px; height: 10px; }
.nav-live .live-dot { fill: var(--brand); }

.live-dot { fill: var(--brand); }

.live-ring {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  transform-origin: 10px 10px;
  animation: live-pulse 2s ease-out infinite;
}

.live-ring--inner { opacity: 0.55; }
.live-ring--outer { opacity: 0.25; animation-delay: 0.35s; }

@keyframes live-pulse {
  0%   { opacity: 0.7; transform: scale(0.85); }
  70%  { opacity: 0;   transform: scale(1.12); }
  100% { opacity: 0;   transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .live-ring { animation: none; }
}

/* Happening page title: the same live icon after the words, at heading size */
.hp-title-live {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.3em;
  vertical-align: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== Language picker (a flag; the menu lists each language with its flag) and channels =====
   Both are small 38px controls (like ☰) with 20px glyphs, so the flag and the platform icon line up. */
.lang-picker {
  position: relative;
  flex-shrink: 0;
}

.lang-picker summary,
.channel-more {
  height: 40px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  background: #FFFFFF;
}

.lang-picker summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  padding: 0 5px 0 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s, border-color 0.18s;
}

.lang-picker summary::-webkit-details-marker { display: none; }

.lang-picker summary:hover,
.lang-picker[open] summary,
.channel-more:hover,
.channel-more[aria-expanded="true"] {
  background: var(--brand-light);
  border-color: #F4CCD3;
}

.lang-picker summary:focus-visible,
.channel-more:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Flags (layouts/partials/flag.html) keep their own shape at one height; the rectangular ones get soft corners */
.flag {
  display: block;
  height: 14px;
  width: auto;
  flex: none;
}

.flag--en { aspect-ratio: 2 / 1; }
.flag--zh { aspect-ratio: 3 / 2; }
.flag--ne { aspect-ratio: 100 / 122; height: 18px; }

.flag--en,
.flag--zh {
  clip-path: inset(0 round 2px);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 4px;
  z-index: 200;
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

/* One column for the flags, so the names line up whatever each flag's shape */
.lang-menu-item .lang-flag {
  display: flex;
  justify-content: center;
  width: 28px;
  flex: none;
}

.lang-menu a.lang-menu-item:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.lang-menu-current {
  color: var(--brand);
  font-weight: 700;
  cursor: default;
  background: var(--brand-light);
}

/* Channels: one button with the first three platform icons overlapping side by side, then the arrow */
.channels {
  position: relative;
  flex: none;
}

.channel-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px 0 4px;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.channel-stack { display: flex; }

.channel-stack-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F1F3F6;
  box-shadow: 0 0 0 2px #FFFFFF;
  color: var(--text-mid);
  transition: background 0.18s, color 0.18s;
}

.channel-stack-icon + .channel-stack-icon { margin-left: -6px; }
.channel-stack-icon svg { width: 13px; height: 13px; }

.channel-more:hover .channel-stack-icon,
.channel-more[aria-expanded="true"] .channel-stack-icon {
  background: #FCE4E8;
  box-shadow: 0 0 0 2px var(--brand-light);
  color: var(--brand);
}

/* The arrows on both buttons turn over while their menu is open */
.nav-caret {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text-mid);
  transition: transform 0.2s;
}

.lang-picker[open] .nav-caret,
.channel-more[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.lang-picker summary:hover .nav-caret,
.lang-picker[open] .nav-caret,
.channel-more:hover .nav-caret,
.channel-more[aria-expanded="true"] .nav-caret { color: var(--brand); }

/* The menu: like the language menu, one platform per row with its name */
.channel-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 4px;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.channel-menu[hidden] { display: none; }

.channel-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.channel-menu-item svg { flex: none; color: var(--text-mid); }

.channel-menu-item:hover,
.channel-menu-item:focus-visible { background: var(--brand-light); color: var(--brand); }
.channel-menu-item:hover svg,
.channel-menu-item:focus-visible svg { color: var(--brand); }

/* "Coming soon" note for a channel without an account yet: a pink tile lifted off a dimmed page */
html:has(.channel-dialog[open]) { overflow: hidden; }

.channel-dialog {
  margin: auto;
  width: min(380px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  overflow: visible;
}

.channel-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.channel-dialog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 28px 26px;
  border-radius: 20px;
  background: var(--tint-surface);
  box-shadow: var(--tint-shadow-hover);
  text-align: center;
}

.channel-dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 22px rgba(200, 16, 46, 0.3);
  color: #FFFFFF;
}

.channel-dialog-icon svg { width: 32px; height: 32px; }

.channel-dialog-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
}

.channel-dialog-text {
  font-size: 15px;
  color: #475569;
  margin-bottom: 10px;
}

.channel-dialog .btn-primary { min-width: 140px; padding: 11px 26px; }

@media (max-width: 768px) {
  .nav-right { gap: 8px; }
  .btn-primary { padding: 8px 16px; font-size: 13px; }
}

.btn-primary {
  display: inline-block;
  background: var(--brand);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--brand-dark); }

/* Menu links, inline and in the panel: a soft tint on hover, and the current page filled in brand red */
.nav-links a,
.mobile-menu > a {
  border-radius: 12px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

/* The pill's padding is cancelled by the negative margin, so the inline row keeps its width */
.nav-links a {
  padding: 8px 16px;
  margin: 0;
  border-radius: 999px;
}

@media (hover: hover) {
  .nav-links a:hover,
  .mobile-menu > a:hover { background: rgba(200, 16, 46, 0.07); color: var(--brand); }
}

.nav-links a:focus-visible,
.mobile-menu > a:focus-visible { background: rgba(200, 16, 46, 0.07); color: var(--brand); }

.nav-links a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  background: var(--brand);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: none;
}

/* Wide screens: one red pill behind the menu words, placed and slid by the script in header.html.
   Until it's ready (or without JavaScript) the current item keeps its own red fill above. */
.nav-links { position: relative; }
.nav-links a { position: relative; z-index: 1; }

.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: none;
  pointer-events: none;
}

.nav-pill[hidden] { display: none; }
.nav-pill-ready a[aria-current="page"] { background: none; box-shadow: none; }

/* Live icon turns white on the red pill */
[aria-current="page"] .live-dot { fill: #FFFFFF; }
[aria-current="page"] .live-ring { stroke: #FFFFFF; }

/* Menu button (☰) and panel: replace the inline links once they no longer fit (English needs about 1100px) */
.nav-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--text-dark);
}

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right { margin-left: auto; }
}

/* Wider, but the words still don't fit (the script in header.html measures): fold them all the same */
.nav-folded .nav-links { display: none; }
.nav-folded .nav-toggle { display: inline-flex; }
.nav-folded .nav-right { margin-left: auto; }

@media (min-width: 1181px) {
  .nav:not(.nav-folded) ~ .mobile-menu { display: none !important; }
}

@media (max-width: 1000px) {
  .nav { padding: 0 20px; gap: 16px; }
}

/* ===== Hero ===== */
.hero-section {
  background: var(--brand-light);
  padding: 80px 0 90px;
  margin-bottom: 48px;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-sub {
  font-size: 19px;
  color: #475569;
  margin-bottom: 16px;
  max-width: 800px;
}

@media (max-width: 768px) {
  .hero-section { padding: 48px 0 56px; }
  .hero-section h1 { font-size: 32px; }
  .hero-sub { font-size: 17px; }
}

/* ===== Share bar ===== */
.passon-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin: -84px 0 56px; /* overlaps the bottom of the pink intro (which has a 48px bottom margin) */
  padding: 26px 32px;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 14px 34px rgba(200, 16, 46, 0.22);
}

.passon-copy {
  flex: 1 1 380px;
  min-width: 0;
}

.passon-eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #FFFFFF;
}

.passon-message {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.passon-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.passon-url {
  min-width: 0;
  max-width: 340px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passon-btn {
  flex: none;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--brand);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.passon-btn:hover { background: var(--brand-light); }
.passon-btn:active { transform: scale(0.97); }

.passon-btn.is-copied {
  background: #E8F5E9;
  color: #1B5E20;
}

@media (max-width: 768px) {
  .passon-bar { margin-top: -76px; padding: 22px 20px; }
  .passon-eyebrow { font-size: 18px; }
  .passon-action { width: 100%; }
  .passon-url { flex: 1; max-width: none; }
}

/* ===== Year tabs and search ===== */
.events-controls { margin-bottom: 48px; }

.events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.year-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.year-tab {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  background: #FFFFFF;
  border: 1px solid var(--border);
  cursor: pointer;
}

.year-tab.active {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

.year-tab { font-family: inherit; line-height: inherit; transition: background 0.18s, border-color 0.18s, color 0.18s; }

@media (hover: hover) {
  .year-tab:not(.active):hover { border-color: var(--brand); color: var(--brand); }
}

.events-search {
  position: relative;
  flex: 0 1 340px;
}

.events-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-mid);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.events-search-input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #FFFFFF;
  font: inherit;
  font-size: 15px;
  color: var(--text-dark);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.events-search-input::placeholder { color: var(--text-mid); }

.events-search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

.events-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-mid);
}

.events-status[hidden] { display: none; }

.events-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}

.events-clear:hover { text-decoration: underline; }

.events-clear[hidden] { display: none; }

.events-clear-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.events-year[hidden],
.event-card[hidden] { display: none; }

.events-empty {
  margin-bottom: 64px;
  padding: 48px 24px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: #FFFFFF;
  text-align: center;
  color: var(--text-mid);
}

.events-empty[hidden] { display: none; }

.events-empty p { margin-bottom: 6px; }

.events-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.events-empty .events-clear { margin-top: 14px; }

@media (max-width: 768px) {
  .events-controls { margin-bottom: 36px; }
  .year-tab { padding: 10px 22px; }
  .events-search { flex-basis: 100%; }
}

.year-stats {
  font-size: 14px;
  color: var(--text-mid);
  margin-left: 8px;
}

/* ===== Year heading ===== */
.year-heading {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.year-divider {
  height: 2px;
  background: var(--border);
  margin-bottom: 48px;
}

/* ===== Events grid ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .events-grid { grid-template-columns: 1fr; }
}

.event-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--tint-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tint-shadow-hover);
}

.event-thumb {
  height: 260px;
  background: var(--brand-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  gap: 6px;
}

/* With photos the picture runs to the card's edges, like the Happening cards */
.event-thumb--photos {
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #1E293B;
}

.thumb-sub {
  font-size: 13px;
  color: var(--brand-dark);
  font-weight: 500;
}

.event-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

/* Primary type chip keeps brand emphasis; secondary chips stay quiet/outline. */
.tag-type { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.tag-normal {
  background: #FFFFFF;
  color: var(--text-mid);
  border-color: var(--border);
}
.tag-free {
  background: #FFFFFF;
  color: var(--green);
  border-color: #C8E6C9;
}

.event-body h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.event-body h3 a:hover { color: var(--brand); }

.event-meta {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.event-summary {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* ===== Student voice ===== */
.student-voice {
  background: #F8FAFC;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: auto;
}

.author-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.voice-peek {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: #F8FAFC;
  transition: background 0.2s;
}

.voice-peek:hover { background: var(--brand-light); }

.voice-peek-faces { display: flex; }

.voice-peek-faces > * {
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  object-fit: cover;
  font-size: 11px;
}

.voice-peek-faces > :first-child { margin-left: 0; }

.voice-peek-text {
  font-size: 13px;
  font-weight: 600;
  color: #0A66C2;
}

.voice-peek-arrow {
  margin-left: auto;
  color: #0A66C2;
}

.voice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #0A66C2;
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  font-family: Georgia, serif;
}

.linkedin-label {
  font-size: 12px;
  font-weight: 700;
  color: #0A66C2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.voice-quote {
  font-size: 14px;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 10px;
}

.voice-role {
  font-size: 12px;
  color: var(--text-mid);
}

/* ===== Bottom note ===== */
.bottom-note {
  background: var(--tint-surface);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--tint-shadow);
  margin-bottom: 80px;
}

.bottom-note-inner h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.bottom-note-inner p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* ===== Event detail ===== */
.event-detail {
  padding-top: 56px;
  padding-bottom: 96px;
}

.back-link {
  font-size: 14px;
  color: var(--text-mid);
}

.back-link:hover { color: var(--brand); }

.event-detail h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 20px 0 16px;
  letter-spacing: -0.8px;
}

.event-detail-meta {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.event-detail-content {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 32px;
  line-height: 1.7;
}

.event-source {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 32px;
}

.event-source a {
  color: var(--brand);
  font-weight: 600;
}

.event-source a:hover { text-decoration: underline; }

/* Sources under About this event (references in data/events) */
.event-references {
  max-width: 900px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-mid);
}

.event-references h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-references ol {
  padding-left: 20px;
  margin: 0;
}

.event-references li {
  margin-bottom: 6px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.event-references a {
  color: var(--brand);
  font-weight: 600;
}

.event-references a:hover { text-decoration: underline; }

.event-references-host {
  font-size: 12px;
  color: var(--text-light, var(--text-mid));
}

/* ===== EVENT DETAIL PAGE ===== */

.event-detail-page {
  padding-bottom: 80px;
}

/* Sticky back bar: appears under the header once the event title scrolls away */
.event-subbar {
  position: fixed;
  top: 73px; /* replaced with the real header height by carousel.js */
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 251, 251, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.event-subbar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.event-subbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
}

.event-subbar-back {
  flex: none;
  font-size: 13px;
  color: var(--text-mid);
  white-space: nowrap;
}

.event-subbar-back:hover { color: var(--brand); }

.event-subbar-title {
  min-width: 0;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 1px solid var(--border);
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.event-subbar-title:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .event-subbar { transition: none; }
}

@media (max-width: 768px) {
  .event-subbar-inner { height: 46px; gap: 12px; }
  .event-subbar-back { font-size: 12px; }
  .event-subbar-title { padding-left: 12px; font-size: 14px; }
}

.event-detail-page .back-link {
  display: inline-block;
  margin: 32px 0 0;
  font-size: 14px;
  color: var(--text-mid);
}

.event-detail-page .back-link:hover { color: var(--brand); }

.event-hero {
  padding-top: 24px;
  padding-bottom: 40px;
}

.event-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.event-hero .event-detail-meta {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.event-hero .event-hero-image {
  margin-top: 28px;
}

.event-hero-image {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--brand-light);
}

.event-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 16px;
  font-weight: 600;
}

/* ===== Carousel (layouts/partials/carousel.html) ===== */

.carousel {
  position: relative;
  overflow: hidden;
}

.event-thumb .carousel {
  width: 100%;
  height: 100%;
}

.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #FFFFFF;
  cursor: pointer;
}

.carousel-btn:hover { background: var(--glass-hover); }

.carousel-btn {
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel:hover .carousel-btn,
.carousel:focus-within .carousel-btn { opacity: 1; }

@media (hover: none) {
  .carousel-btn { display: none; }
}

.carousel-count {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.2s, background 0.2s;
}

.carousel-dot[aria-current="true"] {
  width: 20px;
  background: #FFFFFF;
}

/* Auto-advance ring (carousel.js ringButton / autoAdvance): fills up, then the next slide comes in.
   Click to pause (⏸ until the pointer leaves, then ▶), click again to play. */
.ring-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--brand);
  cursor: pointer;
}

.ring-btn svg { display: block; margin: auto; fill: none; }
.ring-btn .ring-track { stroke: #F4C7CE; stroke-width: 2.5; }
.ring-btn .ring-fill { stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }
.ring-btn .ring-pause { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: 0; transition: opacity 0.15s; }
.ring-btn .ring-play { fill: currentColor; opacity: 0; transition: opacity 0.15s; }
.ring-btn:hover .ring-pause,
.ring-btn:focus-visible .ring-pause,
.ring-btn.just-paused .ring-pause { opacity: 1; }
.ring-btn.is-paused:not(.just-paused) .ring-pause { opacity: 0; }
.ring-btn.is-paused:not(.just-paused) .ring-play { opacity: 1; }
.ring-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* On a photo: the same glass as the counter and arrows, with a white ring */
.carousel-ring {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #FFFFFF;
  transition: background 0.2s;
}

.carousel-ring:hover { background: var(--glass-hover); }
.carousel-ring svg { width: 26px; height: 26px; }
.carousel-ring .ring-track { stroke: rgba(255, 255, 255, 0.3); }
.carousel-ring .ring-fill { stroke: #FFFFFF; }
.carousel-ring:focus-visible { outline-color: #FFFFFF; }

.event-section {
  margin-top: 64px;
}

.section-heading {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-heading.red { color: var(--brand); }

.section-sub {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 32px;
}

.section-divider {
  height: 2px;
  background: var(--border);
  margin-bottom: 32px;
}

.about-text p {
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 900px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--tint-shadow);
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-mid);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--tint-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  padding-bottom: 24px;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tint-shadow-hover);
}

.project-image {
  width: 100%;
  height: 200px;
  background: var(--brand-light);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cover-bg);
  background-image: radial-gradient(var(--cover-dot) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.project-cover--0 { --cover-bg: #FFF1F2; --cover-dot: #FBCFD6; --cover-ink: var(--brand); }
.project-cover--1 { --cover-bg: #EEF2FF; --cover-dot: #C7D2FE; --cover-ink: #3730A3; }
.project-cover--2 { --cover-bg: #ECFDF5; --cover-dot: #A7F3D0; --cover-ink: #047857; }
.project-cover--3 { --cover-bg: #FFF7ED; --cover-dot: #FED7AA; --cover-ink: #C2410C; }

.project-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  color: var(--cover-ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
}

.project-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 20px 24px 6px;
}

.project-award {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin: 0 24px 12px;
}

.project-description {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0 24px 12px;
}

.project-team {
  font-size: 12px;
  color: var(--text-mid);
  margin: 0 24px;
}

.linkedin-section {
  background: var(--brand-light);
  padding: 64px 0;
  margin-top: 64px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.author-role {
  font-size: 12px;
  color: var(--text-mid);
}

img.author-avatar {
  object-fit: cover;
}

.linkedin-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.linkedin-footer:hover .linkedin-label {
  text-decoration: underline;
}

/* ===== LinkedIn posts (layouts/partials/linkedin-post.html) ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lp-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lp {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 36px;
  align-items: start;
  background: var(--card);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--tint-shadow);
}

.lp--flip .lp-media { order: 2; }

.lp--text-only { grid-template-columns: minmax(0, 1fr); }

.lp--text-only .lp-body {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.lp--text-only .lp-body::before {
  content: "\201C";
  height: 48px;
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 1;
  color: #F3C2CB;
}

.lp--text-only .lp-text { font-size: 17px; }

.lp-tab .author-initials {
  width: 100%;
  height: 100%;
  font-size: 15px;
}

.voice-feature {
  position: relative;
  margin: 0;
  padding: 56px 64px 44px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--tint-shadow);
}

.voice-feature::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 40px;
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
  color: #F3C2CB;
}

.voice-feature blockquote {
  position: relative;
  max-width: 60ch;
  margin: 0;
  font-size: 22px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-dark);
}

.voice-feature figcaption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-mid);
}

.lp-empty {
  padding: 48px 24px;
  border: 2px dashed var(--border);
  border-radius: 20px;
  background: var(--card);
  text-align: center;
}

.lp-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #0A66C2;
  color: #FFFFFF;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 800;
}

.lp-empty h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--text-dark);
}

.lp-empty p {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ===== Photo Booth: every photo from the event as a photo wall ===== */

.booth-wall {
  column-count: 3;
  column-gap: 12px;
}

.booth-wall--1 {
  column-count: 1;
  max-width: 640px;
  margin: 0 auto;
}

.booth-wall--2 {
  column-count: 2;
  max-width: 960px;
  margin: 0 auto;
}

.booth-frame {
  display: block;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--brand-light);
  break-inside: avoid;
  transition: transform 0.2s, box-shadow 0.2s;
}

.booth-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.booth-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .booth-wall { column-count: 2; column-gap: 8px; }
  .booth-frame { margin-bottom: 8px; border-radius: 12px; }
  .voice-feature { padding: 48px 24px 32px; }
  .voice-feature::before { left: 16px; }
  .voice-feature blockquote { font-size: 18px; }
}

@media (max-width: 520px) {
  .booth-wall,
  .booth-wall--2 { column-count: 1; }
}

.lp-media {
  position: sticky;
  top: 100px;
}

.lp-carousel {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--brand-light);
}

.lp-carousel .carousel-slide {
  position: relative;
  overflow: hidden;
}

.lp-carousel .carousel-slide img {
  position: relative;
  object-fit: contain;
}

.lp-carousel .carousel-slide .carousel-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(20px) brightness(0.85);
}

.lp-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lp-text {
  max-width: 65ch;
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.lp-tag { color: #0A66C2; }

.lp-body { align-self: center; }

.lp-summary {
  max-width: 65ch;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--brand-light);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dark);
}

.lp-summary-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand);
}

.lp-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.lp-reader:not(.is-ready) .lp-tabs { display: none; }
.lp-reader:not(.is-ready) .lp-panel + .lp-panel { margin-top: 28px; }

.lp-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-tab {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}

.lp-tab img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.lp-tab:hover { opacity: 0.85; }

.lp-tab[aria-selected="true"] {
  opacity: 1;
  border-color: var(--brand);
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}

.lp-prev,
.lp-next {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--text-dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lp-prev:hover,
.lp-next:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 900px) {
  .lp {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .lp--flip .lp-media { order: 0; }
  .lp-media { position: static; }
}

.bottom-quote {
  background: var(--tint-surface);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--tint-shadow);
}

.bottom-quote .voice-quote {
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .event-hero h1 { font-size: 32px; }
  .event-hero-image { height: 260px; }
  .section-heading { font-size: 24px; }
}

/* ===== Footer ===== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 56px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.site-footer .logo {
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--brand); }

@media (max-width: 768px) {
  .footer-inner { padding: 0 20px; }
  .bottom-note { padding: 28px; }
  .event-detail h1 { font-size: 30px; }
}

/* ===== Homepage ===== */
.page-home .site-footer {
  margin-top: 0;
}

.text-brand { color: var(--brand); }

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.home-hero {
  background: #FFFFFF;
  padding: 48px 0 56px;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.home-hero-inner--solo {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.home-hero-inner--solo .home-hero-sub {
  max-width: 760px;
  font-size: 20px;
  margin-bottom: 28px;
}

.home-hero-copy h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.home-hero-highlight {
  display: block;
  color: var(--brand);
  white-space: nowrap;
}

.home-hero-sub {
  font-size: 18px;
  color: #475569;
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.55;
}

.home-hero-note {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero-media {
  border-radius: 28px;
  overflow: hidden;
  background: var(--brand-light);
  aspect-ratio: 3 / 2;
  min-height: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.home-trust-strip {
  background: #FFF1F3;
  border-radius: 16px;
  padding: 18px 28px;
  margin: 8px 0 56px;
  box-shadow: none;
  font-size: 16px;
  color: #475569;
  line-height: 1.55;
}

.home-trust-strip strong {
  color: var(--brand);
}

.home-trust-strip a {
  color: var(--brand);
  font-weight: 700;
}

.home-section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.home-section-lead {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 720px;
  margin-bottom: 40px;
}

.home-journey {
  padding-bottom: 64px;
}

.home-timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-step {
  position: relative;
  padding-left: 0;
  margin-bottom: 0;
}

.home-step-body {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 20px;
  align-items: start;
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--tint-shadow);
  height: 100%;
}

.home-step-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

.home-step-image {
  border-radius: 14px;
  overflow: hidden;
  background: var(--brand-light);
}

.home-step-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.home-step-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.home-step-content p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 16px;
}

.home-communities {
  background: #FFFFFF;
  padding: 8px 0 0;
}

.home-feature {
  padding: 56px 0;
}

.home-feature:nth-child(odd) {
  background: #FFFFFF;
}

.home-feature:nth-child(even) {
  background: #FAFAFA;
}

.home-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.home-feature-copy h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.home-feature-copy p {
  font-size: 20px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 540px;
}

.home-feature-copy p a,
.home-feature-copy p strong {
  color: var(--text-dark);
  font-weight: 700;
}

.home-feature-copy p a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.home-feature-link {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 8px 0 22px;
}

.home-feature-link:hover {
  color: var(--brand);
}

.home-feature-orgs,
.home-feature-orgs a {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-feature-orgs a:hover {
  color: var(--brand);
}

.home-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.home-feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 16px 28px;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s;
}

.home-feature-cta:hover { background: var(--brand-dark); }

.home-feature-media {
  border-radius: 20px;
  overflow: hidden;
  background: #E8F0E8;
  min-height: 280px;
  /* Figma homepage feature frames are ~466x416 (≈1.12), not 4:3. */
  aspect-ratio: 466 / 416;
}

.home-feature--flip .home-feature-media {
  background: #F3E6D4;
}

.home-feature#ict-industry .home-feature-media {
  background: #E4EAF4;
}

.home-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Per-block crop of the existing source photos (do not replace assets).
   Positions come from matching the Figma feature-frame crops. */
.home-feature#utas-campus .home-feature-media img {
  /* Portrait booth: keep the people and the tablecloth wordmark/crest. */
  object-position: 50% 38.5%;
}

.home-feature#tasmania-community .home-feature-media img {
  /* Source is 4:3; a 1.12 frame alone still shows too much of the room. */
  object-position: 55.4% 50%;
  transform: scale(1.22);
  transform-origin: 50.1% 57.8%;
}

.home-feature#ict-industry .home-feature-media img {
  object-position: 50% 50%;
}

/* Homepage stories (Figma frame: six UTAS News cards from data/stories.yaml via homepage.stories) */
.home-stories {
  background: var(--brand-light);
  padding: 64px 0 72px;
}

.home-stories #home-stories-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.home-stories-sub {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 720px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.home-stories-motto {
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  color: var(--brand);
  margin: 0 0 32px;
}

@media (max-width: 900px) {
  .home-stories { padding: 48px 0 56px; }
  .home-stories #home-stories-title { font-size: 32px; }
}

@media (max-width: 560px) {
  .home-stories #home-stories-title { font-size: 28px; }
}

/* Stories page (issue #36) */
.stories-motto {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}

.stories-section {
  padding-bottom: 80px;
}

.stories-filter {
  margin-bottom: 32px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--tint-shadow);
}

.story-card[hidden] {
  display: none;
}

.story-image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--brand-light);
}

.story-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.story-body h2,
.story-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.story-role {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
  margin-bottom: 14px;
}

.story-quote {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-dark);
}

.story-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.story-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

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

.story-source {
  font-size: 12px;
  color: var(--text-light);
}

.stories-credit {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

@media (max-width: 900px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage — sources & acknowledgements (issue #20) */
.home-sources {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
}

.home-sources-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.home-sources-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 6px;
}

.home-sources-text a,
.home-sources-list a {
  color: var(--brand);
  font-weight: 600;
  word-break: break-word;
}

.home-sources-text a:hover,
.home-sources-list a:hover {
  text-decoration: underline;
}

.home-sources-subtitle {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.home-sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.home-sources-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  break-inside: avoid;
  margin-bottom: 10px;
}

.home-sources-publisher {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  background: var(--brand-light);
  border-radius: 10px;
  padding: 1px 8px;
}

@media (max-width: 768px) {
  .home-sources-list {
    columns: 1;
  }
}

.page-simple {
  padding: 56px 0 96px;
}

.simple-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--brand);
}

.simple-body {
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
  color: var(--text-dark);
}

@media (max-width: 1000px) {
  .home-hero-highlight { white-space: normal; }
  .home-hero-inner {
    grid-template-columns: 1fr;
  }
  .home-hero-media {
    order: -1;
  }
  .home-timeline {
    grid-template-columns: 1fr;
  }
  .home-step-body {
    grid-template-columns: minmax(120px, 160px) 1fr;
  }
  .home-feature-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-feature--flip .home-feature-media {
    order: -1;
  }
  .home-feature-copy h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .home-hero-copy h1 {
    font-size: 36px;
  }
  .home-section-title {
    font-size: 28px;
  }
  .home-step-body {
    grid-template-columns: 1fr;
  }
}

/* ===== Journey Step pages ===== */
.journey-main {
  max-width: 980px;
  padding-bottom: 96px;
}

.journey-priorities {
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
}

.journey-priority-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--tint-shadow);
}

.journey-priority-media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--brand-light);
}

.journey-priority-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.journey-priority-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.journey-priority-head h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.journey-priority-text {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.journey-priority-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

.journey-priority-sub strong {
  color: var(--brand);
}

.journey-basics-section {
  margin-bottom: 56px;
}

.journey-basics-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.journey-basics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.journey-basic-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--tint-shadow);
}

.journey-basic-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.journey-basic-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand-light);
}

.journey-basic-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-basic-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.journey-basic-list {
  list-style: none;
}

.journey-basic-list li {
  position: relative;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  padding-left: 26px;
  margin-bottom: 10px;
}

.journey-basic-list li:last-child {
  margin-bottom: 0;
}

.journey-basic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--brand-light);
  border: 1px solid #F8D7DA;
}

.journey-basic-list strong {
  color: var(--brand);
}

.journey-checklist {
  background: var(--tint-surface);
  box-shadow: var(--tint-shadow);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.journey-checklist h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.journey-checklist-lead {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.journey-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1.5;
}

.journey-check-item:last-child {
  margin-bottom: 0;
}

.journey-check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  flex-shrink: 0;
  cursor: pointer;
}

.journey-check-item input:checked + span {
  color: var(--text-light);
  text-decoration: line-through;
}

.journey-note {
  background: var(--card);
  box-shadow: var(--tint-shadow);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.journey-note h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.journey-note p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
}

.journey-next {
  background: var(--text-dark);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.journey-next-copy h3 {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.journey-next-copy p {
  font-size: 15px;
  color: #CBD5E1;
  max-width: 520px;
}

.journey-next-btn {
  padding: 14px 28px;
  border-radius: 26px;
  font-size: 15px;
  white-space: nowrap;
}

.journey-first-steps {
  margin-bottom: 56px;
}

.journey-first-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.journey-first-card {
  background: var(--card);
  box-shadow: var(--tint-shadow);
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
}

.journey-first-card > div {
  display: flex;
  flex-direction: column;
}

.journey-first-links {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.journey-first-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.journey-first-links a:hover {
  text-decoration: underline;
}

.journey-first-icon {
  align-self: start;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.journey-first-num {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: var(--brand);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
}

.journey-first-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 2px 0 4px;
}

.journey-first-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

.journey-priority-card--detailed {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.journey-priority-card--detailed .journey-priority-media {
  max-width: none;
  border-radius: 0;
}

.journey-priority-card--detailed .journey-priority-media img {
  aspect-ratio: 3 / 1;
  object-position: 50% 30%;
}

.journey-priority-card--detailed .journey-priority-body {
  padding: 24px;
}

.journey-tip-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.journey-tip {
  background: var(--tint-surface);
  box-shadow: var(--tint-shadow-sm);
  border-radius: 12px;
  padding: 16px;
}

.journey-tip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.journey-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* SVG icons for Journey Step 1 */
.journey-first-icon img,
.journey-tip-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.journey-tip h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.journey-tip p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
}

.journey-tip-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.journey-tip-links span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-right: 4px;
}

.journey-tip-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid #F8D7DA;
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
}

.journey-tip-links a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.journey-warn {
  margin-top: 16px;
  padding: 12px 16px 12px 34px;
  background: var(--tint-surface);
  border-radius: 10px;
  box-shadow: var(--tint-shadow-sm);
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.55;
}

.journey-warn li + li {
  margin-top: 4px;
}

.journey-warn li::marker {
  color: var(--brand);
}

.journey-warn strong {
  color: var(--brand);
}

.journey-tip p a,
.journey-warn a,
.journey-basic-list a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.journey-priority-card[id] {
  scroll-margin-top: 96px;
}

.journey-credit {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

@media (max-width: 900px) {
  .journey-priority-card {
    grid-template-columns: 1fr;
  }

  .journey-priority-media {
    max-width: 200px;
  }

  .journey-basics-grid {
    grid-template-columns: 1fr;
  }

  .journey-first-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-tip-list {
    grid-template-columns: 1fr;
  }

  .journey-priority-card--detailed .journey-priority-media img {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 560px) {
  .journey-first-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .journey-checklist {
    padding: 24px;
  }

  .journey-next {
    padding: 24px;
  }

  .journey-next-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== Photo viewer (lightbox in assets/js/carousel.js) ===== */

[data-lightbox] img:not(.carousel-backdrop) { cursor: zoom-in; }

html:has(.lightbox[open]) { overflow: hidden; }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 12, 16, 0.94);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop { background: transparent; }

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 72px 96px 40px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Click to zoom: at 100% the stage is invisible to layout; zoomed, it becomes a scrollable view */
.lightbox-stage { display: contents; }
.lightbox-stage img { cursor: zoom-in; user-select: none; }

.lightbox-stage.is-zoomed {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.lightbox-stage.is-zoomed::-webkit-scrollbar { display: none; }

.lightbox-stage.is-zoomed img {
  flex: none;
  max-width: none;
  max-height: none;
  margin: auto;
  cursor: zoom-out;
}

.lightbox-stage.is-dragging img { cursor: grabbing; }

/* Toolbar: − 100% + · Download · Original post */
.lightbox-toolbar {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-50%);
  white-space: nowrap;
}

.lightbox-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #FFFFFF;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-zoom-in,
.lightbox-zoom-out { font-size: 20px; padding: 0; }

.lightbox-zoom-level { min-width: 64px; font-variant-numeric: tabular-nums; }

.lightbox-tool:hover,
.lightbox-tool[aria-expanded="true"] { background: rgba(255, 255, 255, 0.2); }

.lightbox-tool:focus-visible,
.lightbox-zoom-menu button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

.lightbox-tool svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-download { margin-left: 6px; }

.lightbox-zoom { position: relative; }

.lightbox-zoom-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 96px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: rgba(30, 34, 42, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
}

.lightbox-zoom-menu button {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #FFFFFF;
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  cursor: pointer;
}

.lightbox-zoom-menu button:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox-zoom-menu button.is-current { background: var(--brand); }

.lightbox-figure figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: min(720px, 90vw);
  text-align: center;
}

.lightbox-caption {
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.lightbox-caption:empty { display: none; }

.lightbox-count {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.75;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 32px;
  transform: translateY(-50%);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox [hidden] { display: none; }

@media (max-width: 768px) {
  .lightbox-figure { padding: 64px 12px 88px; }
  .lightbox-toolbar { left: 12px; transform: none; }
  .lightbox-download span,
  .lightbox-original span { display: none; }
  .lightbox-download { margin-left: 0; }
  .lightbox-figure img { max-height: calc(100vh - 170px); }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

@media (max-width: 520px) {
  .site-header .logo img { height: 36px; }
}

/* Narrow phones: the channels button keeps only its front icon, so the bar still fits beside the logo */
@media (max-width: 410px) {
  .channel-stack-icon + .channel-stack-icon { display: none; }
}

@media (max-width: 360px) {
  .nav-right { gap: 6px; }
  .lang-picker summary { padding: 0 4px 0 6px; }
  .nav { padding: 0 16px; gap: 12px; }
  .site-header .logo img { height: 30px; }
  .mobile-menu { padding: 10px 16px 16px; }
}

/* ===== Journey Step 2 — intro and voices ===== */
.journey-why {
  background: var(--tint-surface);
  box-shadow: var(--tint-shadow);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 56px;
}

.journey-why h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.journey-why p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}

.journey-voice-section {
  margin-bottom: 56px;
}

/* ===== Journey Step 2 — tips ===== */
.journey-tips {
  margin-bottom: 24px;
}

.journey-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.journey-tip-card {
  background: var(--tint-surface);
  box-shadow: var(--tint-shadow);
  border-radius: 16px;
  padding: 24px;
}

.journey-tip-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.journey-tip-card p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.65;
}

@media (max-width: 900px) {

  .journey-tips-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Happening page: Happening Now, Upcoming (cards / list) and the calendar ===== */
.happening { padding-bottom: 32px; }

.hp-section { margin-bottom: 72px; scroll-margin-top: 96px; }

.hp-head { margin-bottom: 24px; }

.hp-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-dark);
  line-height: 1.2;
}

.hp-head p { margin-top: 6px; font-size: 16px; color: var(--text-mid); }

.hp-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.hp-tz-note { margin: -12px 0 20px; font-size: 13px; color: var(--text-light); }

/* Search box to the left of the Cards / List switch */
.hp-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.hp-tools .hp-search { flex: 0 0 280px; }
.hp-search-status { margin: -8px 0 20px; }
.hp-search-status[hidden] { display: none; }
#upcoming .events-empty { margin-bottom: 0; }

@media (max-width: 768px) {
  .hp-tools { width: 100%; flex-wrap: wrap; }
  .hp-tools .hp-search { flex: 1 1 100%; }
}

/* Buttons */
.hp-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.hp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid var(--brand);
  border-radius: 24px;
  background: #FFFFFF;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s;
}

.hp-btn-outline:hover { background: var(--brand-light); }

/* Link from Happening (live calendar) to the /events/ archive. */
.hp-archive-cta { margin-top: 16px; }
.hero-section .hp-archive-cta .hp-btn-outline { display: inline-flex; }
.hp-btn-outline[hidden] { display: none; }

/* When an event starts (assets/js/happening.js): a flip-clock countdown, "Happening Now" with the live dot,
   or a plain note. No pills: the clock is the badge. */
.hp-countdown { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
.hp-countdown[hidden], .hp-when-slot[hidden] { display: none; }
.hp-countdown-lead { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-mid); }

.hp-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand);
}
.hp-live .live-icon { width: 18px; height: 18px; }
.hp-when-note { font-size: 13px; font-weight: 700; color: var(--text-mid); }

/* Flip clock: each digit is a split card, brand red on top and a shade darker below, with a hinge line.
   A changing digit turns over: the old top half flaps down, then the new bottom half lands. */
.flipclock { display: inline-flex; align-items: flex-start; gap: 12px; }
.flipclock-group { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.flipclock-digits { display: flex; gap: 3px; }
.flipclock-label { font-size: 10px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-mid); }

.flip {
  --flip-h: 36px;
  position: relative;
  display: block;
  width: 27px;
  height: var(--flip-h);
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 23px;
  font-weight: 800;
  line-height: var(--flip-h);
  text-align: center;
  font-variant-numeric: tabular-nums;
  perspective: 240px;
  box-shadow: 0 2px 5px rgba(200, 16, 46, 0.16), 0 8px 16px rgba(200, 16, 46, 0.14);
}
.flip > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.flip > span > span { display: block; height: var(--flip-h); }
.flip-top, .flip-flap-top {
  top: 0;
  border-radius: 6px 6px 0 0;
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform-origin: 50% 100%;
}
.flip-bottom, .flip-flap-bottom {
  bottom: 0;
  border-radius: 0 0 6px 6px;
  background: var(--brand-dark);
  transform-origin: 50% 0;
}
.flip-bottom > span, .flip-flap-bottom > span { transform: translateY(-50%); }
.flip::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 0.5px); height: 1px; background: rgba(60, 0, 10, 0.45); z-index: 3; }
.flip-flap { visibility: hidden; z-index: 2; backface-visibility: hidden; }
.flip--go .flip-flap-top { visibility: visible; animation: flip-down-top 0.28s ease-in forwards; }
.flip--go .flip-flap-bottom { visibility: visible; animation: flip-down-bottom 0.28s ease-out 0.28s both; }
@keyframes flip-down-top { from { transform: rotateX(0deg); } to { transform: rotateX(-90deg); } }
@keyframes flip-down-bottom { from { transform: rotateX(90deg); } to { transform: rotateX(0deg); } }

/* Smaller clock in the list view and the calendar's day panel */
.flipclock--sm { gap: 7px; }
.flipclock--sm .flipclock-digits { gap: 2px; }
.flipclock--sm .flipclock-label { font-size: 8.5px; letter-spacing: 0.5px; }
.flipclock--sm .flip { --flip-h: 24px; width: 18px; font-size: 15px; border-radius: 4px; }
.flipclock--sm .flip-top, .flipclock--sm .flip-flap-top { border-radius: 4px 4px 0 0; }
.flipclock--sm .flip-bottom, .flipclock--sm .flip-flap-bottom { border-radius: 0 0 4px 4px; }

/* ---- Event card ---- */
.hp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hp-cards[hidden], .hp-list[hidden], .hp-deck[hidden], .hp-card[hidden], .hp-row[hidden], .hp-section[hidden] { display: none; }

.hp-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--tint-shadow);
  scroll-margin-top: 96px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hp-card:hover { transform: translateY(-3px); box-shadow: var(--tint-shadow-hover); }
.hp-card:target { box-shadow: 0 0 0 3px var(--brand), var(--tint-shadow-hover); }

.hp-card-media {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--tint-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hp-card-media--online { background: linear-gradient(135deg, #F5F7FF 0%, #FCE4E8 100%); }
.hp-card-media--online,
.hp-card-media--in_person,
.hp-card-media--hybrid { flex-direction: column; gap: 8px; padding: 16px; }

.hp-card-host {
  max-width: 90%;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: rgba(160, 13, 37, 0.7);
}

.hp-card-glyph {
  fill: none;
  stroke: rgba(200, 16, 46, 0.35);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.hp-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: 7px 10px 6px;
  border-radius: 14px;
  background: var(--brand);
  color: #FFFFFF;
  line-height: 1.1;
}

.hp-date-month { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; }
.hp-date-day { font-size: 22px; font-weight: 800; }

/* Card pictures (Happening and Events cards): shown whole over a blurred copy of themselves,
   so banners keep their text and photos aren't cropped */
.hp-card-media--photos { aspect-ratio: 16 / 9; }
.hp-card-media .carousel { width: 100%; height: 100%; }
.carousel--fit .carousel-slide { position: relative; overflow: hidden; }
.carousel--fit .carousel-slide img { position: relative; object-fit: contain; cursor: zoom-in; }

.carousel--fit .carousel-slide .carousel-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(20px) brightness(0.85);
}

.carousel-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

.hp-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}


.hp-card-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
  padding-top: 2px;
}

.hp-facts { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; }

.hp-facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.45;
}

.hp-facts svg {
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-summary { font-size: 14.5px; color: var(--text-dark); margin-bottom: 16px; }

.hp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.hp-actions { gap: 8px; }
.hp-actions .btn-primary { padding: 9px 16px; font-size: 13.5px; }
.hp-actions .hp-btn-outline { padding: 8px 16px; font-size: 13.5px; }

.hp-prev-link {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}

.hp-prev-link:hover { text-decoration: underline; }

/* ---- Happening Now and Recommended by us: one wide event per slide (assets/js/happening.js Deck) ---- */
.hp-deck { position: relative; }

.hp-deck-track {
  position: relative;
  display: flex;
  gap: 80px; /* wider than the padding plus the shadow, so the next slide stays out of view */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* A scrolling track clips whatever spills out of it, so it is padded wide enough for the PINNED tab
     and the whole card shadow (--tint-shadow), and pulled back by the same amount so the cards don't move */
  padding: 22px 40px 52px;
  margin: 0 -40px -42px;
  scroll-padding-inline: 40px;
}

.hp-deck-track::-webkit-scrollbar { display: none; }

.hp-deck .hp-card {
  flex: 0 0 100%;
  flex-direction: row;
  scroll-snap-align: start;
}

.hp-deck .hp-card:hover { transform: none; }
.hp-deck .hp-card-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 280px; }
.hp-deck .hp-card-media:not(.hp-card-media--photos) { flex-basis: 32%; }
.hp-deck .hp-card-body { padding: 28px 32px; }
.hp-deck .hp-card-title { font-size: 26px; }
.hp-deck .hp-summary { font-size: 15.5px; }

.hp-deck-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 2px;
}

.hp-deck-nav[hidden] { display: none; }

.hp-deck-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--brand);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hp-deck-btn:hover { background: var(--brand); color: #FFFFFF; }
.hp-deck-dots { display: flex; gap: 6px; }

.hp-deck-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #F4B6C0;
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.hp-deck-dot[aria-current="true"] { width: 24px; background: var(--brand); }
.hp-deck-count { min-width: 44px; font-size: 13px; font-weight: 700; color: var(--text-mid); text-align: center; font-variant-numeric: tabular-nums; }

/* ---- Pinned events: Laura's sticky-note tab (#53) ---- */
.hp-picks-section h2 .pin-icon { color: var(--brand); }

.pin-icon .pin-head { fill: currentColor; }
.pin-icon .pin-needle { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.hp-card--pinned {
  position: relative;
  overflow: visible;
}
.hp-card--pinned .hp-card-media { border-radius: 20px 20px 0 0; }
.hp-deck .hp-card--pinned .hp-card-media { border-radius: 16px 0 0 20px; }

.hp-pin {
  position: absolute;
  top: -16px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px 9px 14px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 4px;
  /* Folded bottom-right corner, like a sticky note */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transform: rotate(-3deg);
  pointer-events: none;
}

.hp-pin::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--brand-dark) 50%, transparent 50%);
}

.hp-row-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 2px 8px 2px 6px;
  border-radius: 4px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-now-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.hp-now-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 32px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: #FFFFFF;
}

.hp-now-empty[hidden] { display: none; }
.hp-now-empty-title { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.hp-now-empty-next, .hp-now-empty-none { color: var(--text-mid); }
.hp-now-empty-next[hidden], .hp-now-empty-none[hidden] { display: none; }
.hp-now-empty-next a { font-weight: 700; color: var(--brand); }
.hp-now-empty-next a:hover { text-decoration: underline; }

/* ---- Cards / List switch ---- */
.hp-view-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #FFFFFF;
}

.hp-view-btn,
.cal-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 0;
  border-radius: 20px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.hp-view-btn svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.hp-view-btn svg circle { fill: currentColor; stroke: none; }
.hp-view-btn[aria-pressed="true"],
.cal-view-btn[aria-pressed="true"] { background: var(--brand); color: #FFFFFF; }

/* ---- List view ---- */
.hp-list {
  list-style: none;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: var(--tint-shadow);
  padding: 8px 24px;
}

.hp-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.hp-row:last-child { border-bottom: 0; }

.hp-row-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; color: var(--brand); }
.hp-row-month { font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; }
.hp-row-day { font-size: 24px; font-weight: 800; }
.hp-row-main { display: flex; flex-direction: column; gap: 2px; }
.hp-row-title { font-weight: 700; color: var(--text-dark); line-height: 1.35; }
.hp-row-host, .hp-row-place, .hp-row-when { font-size: 14px; color: var(--text-mid); }
.hp-row-when { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.hp-row-link {
  justify-self: end;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hp-row-link:hover { background: var(--brand-dark); }
.hp-row-link--ghost { background: #FFFFFF; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.hp-row-link--ghost:hover { background: var(--brand-light); }

.hp-row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; justify-self: end; }

.hp-row-more {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  cursor: pointer;
}

.hp-row-more:hover { text-decoration: underline; }
.hp-row--past .hp-row-date { color: var(--text-light); }

.hp-empty {
  padding: 40px 24px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: #FFFFFF;
  text-align: center;
  color: var(--text-mid);
}

.hp-empty[hidden] { display: none; }

/* ---- Calendar ---- */
.cal {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: var(--tint-shadow);
  padding: 24px;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 18px;
}

.cal-nav, .cal-controls, .cal-pickers { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cal-controls { gap: 12px; }

.cal-arrow,
.cal-today-btn {
  height: 38px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  font: inherit;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.cal-arrow { width: 38px; border-radius: 50%; font-size: 20px; line-height: 1; }
.cal-today-btn { padding: 0 16px; border-radius: 20px; font-size: 14px; }
.cal-arrow:hover, .cal-today-btn:hover { border-color: var(--brand); color: var(--brand); }

.cal-title { margin-left: 8px; font-size: 20px; font-weight: 800; color: var(--text-dark); }

.cal-select {
  height: 38px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  font: inherit;
  font-size: 14px;
  color: var(--text-dark);
  appearance: none;
  cursor: pointer;
}

.cal-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1); }
.cal-select[hidden] { display: none; }

.cal-view-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 22px;
}

.cal-view-btn { padding: 6px 14px; }

.cal-tbc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--brand-light);
  font-size: 13.5px;
  color: var(--text-mid);
}

.cal-tbc[hidden] { display: none; }

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-weekdays span {
  padding: 0 8px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.cal-grid {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.cal-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 108px;
  padding: 8px;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  font: inherit;
  text-align: left;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s;
}

.cal-grid--week .cal-day { min-height: 200px; }
.cal-day:hover { background: #FFFAFA; }
.cal-day.is-outside { background: #FCFAFA; color: var(--text-light); }
.cal-day.is-past .cal-day-num { color: var(--text-light); }
.cal-day[aria-pressed="true"] { background: var(--brand-light); box-shadow: inset 0 0 0 2px var(--brand); }

.cal-day-head { display: flex; align-items: baseline; gap: 6px; }
.cal-day-weekday { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-mid); }

.cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.cal-day.is-today .cal-day-num { background: var(--brand); color: #FFFFFF; }

.cal-day-items { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.cal-chip {
  display: block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-grid--week .cal-chip { white-space: normal; }
.cal-chip-time { font-weight: 800; }
.cal-chip--upcoming { background: #FDE2E6; color: var(--brand-dark); }
.cal-chip--now { background: var(--brand); color: #FFFFFF; }
.cal-chip--past { background: #F1F5F9; color: var(--text-mid); }
.cal-chip--archive { background: #FFFFFF; box-shadow: inset 0 0 0 1px #E2E8F0; }
.cal-tbc .cal-chip { display: inline-block; max-width: 100%; }

.cal-more { font-size: 12px; font-weight: 700; color: var(--brand); padding-left: 4px; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-mid);
}

.cal-key { display: inline-flex; align-items: center; gap: 6px; }
.cal-key::before { content: ""; width: 12px; height: 12px; border-radius: 4px; }
.cal-key--today::before { border-radius: 50%; background: var(--brand); }
.cal-key--upcoming::before { background: #FDE2E6; }
.cal-key--past::before { background: #F1F5F9; }

.cal-panel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cal-panel-title { font-size: 17px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }

/* The day's events use the list-view rows; inside the calendar card they need no card of their own */
.cal-panel-list { box-shadow: none; padding: 0; border-radius: 0; }
.cal-panel-list .hp-row:first-child { padding-top: 4px; }
.cal-panel-none { padding: 4px 0; color: var(--text-mid); }

@media (max-width: 1000px) {
  .hp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .hp-row-place, .hp-row-when { grid-column: 2; }
  .hp-row > .hp-row-link, .hp-row-actions { grid-column: 3; grid-row: 1 / span 3; }
}

@media (max-width: 768px) {
  .hp-section { margin-bottom: 56px; }
  .hp-head h2 { font-size: 26px; }
  .hp-cards { grid-template-columns: 1fr; }
  .hp-deck-track { gap: 56px; padding: 22px 20px 48px; margin: 0 -20px -38px; scroll-padding-inline: 20px; } /* stays inside the 20px page gutter */
  .hp-deck .hp-card { flex-direction: column; }
  .hp-deck .hp-card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .hp-deck .hp-card--pinned .hp-card-media { border-radius: 16px 16px 0 0; }
  .hp-deck .hp-card-body { padding: 20px 22px 22px; }
  .hp-deck .hp-card-title { font-size: 21px; }
  .hp-now-empty { padding: 22px; }
  .hp-list { padding: 4px 18px; }
  .hp-row { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; }
  .hp-row-date { grid-row: 1 / span 4; align-self: start; padding-top: 2px; }
  .hp-row > .hp-row-link, .hp-row-actions { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
  .hp-row-actions { align-items: flex-start; }

  .cal { padding: 16px; }
  .cal-toolbar { flex-direction: column; align-items: stretch; }
  .cal-nav { justify-content: space-between; }
  .cal-title { order: -1; flex-basis: 100%; margin: 0 0 4px; font-size: 18px; }
  .cal-controls { justify-content: space-between; }
  .cal-day { min-height: 64px; padding: 4px; align-items: center; }
  .cal-day-num { min-width: 26px; height: 26px; font-size: 13px; }
  .cal-weekdays span { padding: 0 2px 6px; text-align: center; font-size: 11px; }

  /* Phones: events show as dots; the day's list under the grid has the details */
  .cal-grid--month .cal-day-items { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .cal-grid--month .cal-chip { width: 7px; height: 7px; padding: 0; border-radius: 50%; box-shadow: none; }
  .cal-grid--month .cal-chip > * { display: none; }
  .cal-grid--month .cal-chip--upcoming { background: var(--brand); }
  .cal-grid--month .cal-chip--now { background: var(--brand-dark); }
  .cal-grid--month .cal-chip--past { background: #CBD5E1; }
  .cal-grid--month .cal-more { display: none; }

  /* Week view as a list of days */
  .cal-board--week .cal-weekdays { display: none; }
  .cal-grid--week { grid-template-columns: 1fr; }
  .cal-grid--week .cal-day { min-height: 0; flex-direction: row; align-items: flex-start; gap: 12px; padding: 10px; }
  .cal-grid--week .cal-day-head { flex-direction: column; align-items: center; gap: 0; min-width: 40px; }
  .cal-grid--week .cal-day-items { flex: 1; }
}

/* ===== Place / club cards (Journey Step 2 & 3) ===== */
.place-list { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.place-card { background: var(--card); border-radius: 20px; padding: 32px; box-shadow: var(--tint-shadow); }
.place-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.place-card-head h3 { margin: 0; font-size: 1.5rem; color: var(--text-dark); }
.place-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.place-card-text { margin: 12px 0 20px; color: var(--text-mid); line-height: 1.6; }
.place-gallery { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.place-gallery li { margin: 0; }
.place-photo { position: relative; display: block; width: 100%; aspect-ratio: 13 / 10; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #E2E8F0; cursor: zoom-in; }
.place-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.place-photo:hover img, .place-photo:focus-visible img { transform: scale(1.05); }
.place-photo:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.place-photo-zoom { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 12px; line-height: 24px; text-align: center; }
.place-card-meta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.place-map { display: flex; flex-direction: column; gap: 6px; }
.place-map iframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: 14px; background: #F8FAFC; }
.place-map-link { font-size: .85rem; color: var(--brand); }
.place-pin-map { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: 14px; background: #F8FAFC; overflow: hidden; z-index: 0; }
.place-pin-map--fallback { border: 0; background: none; }
.place-pin-map--fallback iframe, .place-pin-map iframe { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 14px; }
.place-map-hint { font-size: .8rem; color: var(--text-mid); margin: 0; }
.pin-popup p { margin: 0 0 8px; font-size: .85rem; line-height: 1.45; }
.pin-popup p:last-child { margin-bottom: 0; }
.pin-popup a { color: var(--brand); font-weight: 600; }
.place-details { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.place-details dt { font-weight: 700; color: var(--text-dark); }
.place-details dd { margin: 2px 0 0; color: var(--text-mid); overflow-wrap: anywhere; }
.place-details a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.place-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.place-services-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.place-services-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.place-service-title { margin: 0 0 4px; font-size: .98rem; font-weight: 800; color: var(--text-dark); }
.place-service-when { margin: 0 0 4px; font-size: .92rem; font-weight: 700; color: var(--brand); }
.place-service-when-label { font-weight: 800; }
.place-service-text { margin: 0; color: var(--text-mid); font-size: .95rem; line-height: 1.45; }
.place-service-text .place-paywhat { color: var(--brand); font-weight: 800; }
.journey-main > section + .journey-next { margin-top: 56px; }
.life-gallery .place-photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.life-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.life-gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #E2E8F0; }
.life-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.life-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
/* Fold-out list under a place card (every Rotary club in Tasmania) */
.place-groups { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.place-groups summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; }
.place-groups summary::-webkit-details-marker { display: none; }
.place-groups summary::after { content: "▾"; transition: transform .2s ease; }
.place-groups[open] summary::after { transform: rotate(180deg); }
.place-groups summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.place-groups-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; margin-top: 16px; }
.place-group h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dark); }
.place-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.place-group a { color: var(--text-mid); text-decoration: none; }
.place-group a:hover, .place-group a:focus-visible { color: var(--brand); text-decoration: underline; }
@media (max-width: 900px) {
  .place-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place-groups-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place-card-meta { grid-template-columns: 1fr; }
  .life-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .place-card { padding: 20px; }
  .place-groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .place-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .life-gallery { grid-template-columns: 1fr; }
}

/* ===== Fun & Fitness (layouts/fun-fitness/list.html, layouts/partials/fun-fitness-card.html) ===== */
.ff-page { padding-bottom: 80px; }
.ff-section + .ff-section { margin-top: 64px; }
.ff-section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.4px; color: var(--text-dark); margin-bottom: 6px; }
.ff-section-lead { font-size: 16px; color: var(--text-mid); margin-bottom: 24px; }
.ff-list { display: flex; flex-direction: column; gap: 40px; }

.ff-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--tint-shadow);
  scroll-margin-top: 96px;
}

.ff-media { border-radius: 18px; overflow: hidden; background: var(--brand-light); }
.ff-media .carousel { aspect-ratio: 12 / 5; }

.ff-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 32px;
  margin-top: 28px;
  align-items: start;
}

.ff-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: var(--text-dark); margin-bottom: 14px; }
.ff-text { font-size: 16px; line-height: 1.7; color: #334155; margin-bottom: 12px; }

.ff-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ff-points li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.65; color: #334155; }
.ff-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.ff-points strong { color: var(--text-dark); }
.ff-points a, .ff-fact-lines a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.ff-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Key details: small filled pink tiles stacked on the right */
.ff-facts { display: flex; flex-direction: column; gap: 14px; }
.ff-fact {
  background: var(--tint-surface);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--tint-shadow-sm);
}
.ff-fact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand);
}
.ff-fact-label svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ff-fact-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ff-fact-lines li { font-size: 14px; line-height: 1.5; color: var(--text-dark); overflow-wrap: anywhere; }
.ff-fact-lines li:first-child { font-weight: 700; }

/* Yarn Spinner: games made with it */
.ff-showcase { margin-top: 32px; }
.ff-showcase-title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; }
.ff-showcase-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ff-game {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--tint-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ff-game:hover { transform: translateY(-3px); box-shadow: var(--tint-shadow-hover); }
.ff-game img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ff-game-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.ff-game-title { font-weight: 800; color: var(--text-dark); }
.ff-game-by { font-size: 12px; font-weight: 700; color: var(--brand); }
.ff-game-text { font-size: 13px; line-height: 1.5; color: var(--text-mid); margin-top: 4px; }

@media (max-width: 900px) {
  .ff-body { grid-template-columns: 1fr; gap: 24px; }
  .ff-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ff-card { padding: 16px; border-radius: 20px; }
  .ff-media { border-radius: 14px; }
  .ff-media .carousel { aspect-ratio: 4 / 3; }
  .ff-media .carousel-caption { display: none; } /* still shown in the photo viewer */
  .ff-title { font-size: 24px; }
  .ff-section-title { font-size: 24px; }
  .ff-showcase-grid { grid-template-columns: 1fr; }
}

/* ===== Motion =====
   Short (150–300 ms), only position and opacity, and switched off for visitors who prefer reduced motion.
   Pages: the browser cross-fades the page content (View Transitions; browsers without it simply switch pages as
   before). The header stays live through it, so the menu pill visibly slides to the new item (header.html).
   In-page changes use the same API from assets/js/carousel.js. */
@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }

::view-transition-group(*) {
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.22, 0.8, 0.24, 1);
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.2s; }

/* The header is shown live, not cross-faded, so the pill's slide in it is what you see */
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }

/* Clicks go straight through to the page while something animates, so nothing waits on an animation */
::view-transition { pointer-events: none; }

/* Events filter: the controls stay live (their pill slides) instead of cross-fading */
::view-transition-old(ev-controls) { display: none; }
::view-transition-new(ev-controls) { animation: none; }

/* Calendar: the month or week slides in the direction you moved */
::view-transition-group(cal-board) { overflow: clip; animation: none; }
:root[data-cal-slide="next"]::view-transition-old(cal-board) { animation: cal-out-left 0.28s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
:root[data-cal-slide="next"]::view-transition-new(cal-board) { animation: cal-in-right 0.28s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
:root[data-cal-slide="prev"]::view-transition-old(cal-board) { animation: cal-out-right 0.28s cubic-bezier(0.22, 0.8, 0.24, 1) both; }
:root[data-cal-slide="prev"]::view-transition-new(cal-board) { animation: cal-in-left 0.28s cubic-bezier(0.22, 0.8, 0.24, 1) both; }

@keyframes cal-out-left { to { transform: translateX(-12%); opacity: 0; } }
@keyframes cal-in-right { from { transform: translateX(12%); opacity: 0; } }
@keyframes cal-out-right { to { transform: translateX(12%); opacity: 0; } }
@keyframes cal-in-left { from { transform: translateX(-12%); opacity: 0; } }
@keyframes hp-fade-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes hp-pop { 50% { transform: scale(1.06); } }

/* Toggle groups ([data-segmented]): one red pill slides to the pressed button (set up in carousel.js) */
[data-segmented] { position: relative; }

.seg-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.seg-ready > button { position: relative; z-index: 1; }
.seg-ready > button[aria-pressed="true"] { background: transparent; }
.year-tabs.seg-ready .year-tab { background: transparent; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Menu and toggle pills: slide with a small overshoot, stretching and thinning on the way */
  .nav-pill-animate .nav-pill {
    transition: transform 0.42s cubic-bezier(0.3, 1.25, 0.45, 1), width 0.42s cubic-bezier(0.3, 1.25, 0.45, 1);
  }
  .nav-pill.is-moving { animation: seg-flow 0.42s cubic-bezier(0.3, 0.7, 0.3, 1); }

  .seg-animate .seg-pill {
    transition: transform 0.38s cubic-bezier(0.3, 1.25, 0.45, 1), width 0.38s cubic-bezier(0.3, 1.25, 0.45, 1), height 0.28s ease;
  }
  .seg-pill.seg-moving { animation: seg-flow 0.38s cubic-bezier(0.3, 0.7, 0.3, 1); }
  @keyframes seg-flow { 45% { scale: 1.06 0.84; } }

  /* ☰ panel slides down; language menu grows from its button */
  .mobile-menu { transition: opacity 0.2s ease, transform 0.2s ease, display 0.2s allow-discrete; }
  .mobile-menu[hidden] { opacity: 0; transform: translateY(-8px); }
  @starting-style { .mobile-menu:not([hidden]) { opacity: 0; transform: translateY(-8px); } }

  .lang-menu { transform-origin: top right; transition: opacity 0.16s ease, transform 0.16s ease; }
  @starting-style { .lang-picker[open] .lang-menu { opacity: 0; transform: translateY(-4px) scale(0.97); } }
  .channel-menu { transform-origin: top right; transition: opacity 0.16s ease, transform 0.16s ease, display 0.16s allow-discrete; }
  .channel-menu[hidden] { opacity: 0; transform: translateY(-4px) scale(0.97); }
  @starting-style { .channel-menu:not([hidden]) { opacity: 0; transform: translateY(-4px) scale(0.97); } }

  /* Photo viewer fades in, the photo settles from slightly smaller */
  .lightbox { opacity: 0; transition: opacity 0.22s ease, display 0.22s allow-discrete, overlay 0.22s allow-discrete; }
  .lightbox[open] { opacity: 1; }
  @starting-style { .lightbox[open] { opacity: 0; } }
  .lightbox-figure img { transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.24, 1); }
  @starting-style { .lightbox[open] .lightbox-figure img { transform: scale(0.96); } }

  /* Events and Happening search: cards that come back while typing fade in */
  .events-typing .event-card:not([hidden]),
  .hp-typing .hp-cards .hp-card:not([hidden]),
  .hp-typing .hp-row:not([hidden]) { animation: hp-fade-up 0.22s ease-out both; }

  /* Calendar: the day's list fades in; the selected day's outline eases */
  .cal-panel-list > * { animation: hp-fade-up 0.2s ease-out both; }
  .cal-day { transition: background 0.15s, box-shadow 0.15s; }

  .passon-btn.is-copied { animation: hp-pop 0.3s ease; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*),
  ::view-transition-image-pair(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---- Homepage: new and pinned events (layouts/index.html, upstream issue #61) ---------------------------- */
.home-new { padding: 48px 0 8px; }
.home-new-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.home-new-head .home-section-lead { margin-bottom: 0; }
.home-new-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.home-new-item[hidden] { display: none; }
.home-new-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--tint-shadow-sm);
  color: var(--text-dark);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.home-new-card:hover { box-shadow: var(--tint-shadow-hover); transform: translateY(-2px); }
.home-new-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.home-new-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.home-new-title { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.home-new-meta { font-size: 14px; color: var(--text-mid); }
.home-new-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .home-new { padding-top: 32px; }
}

/* ---- Happening: calendar subscription (layouts/happening/list.html) ------------------------------------- */
.hp-subscribe {
  margin-top: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--tint-surface);
  box-shadow: var(--tint-shadow-sm);
}
.hp-subscribe-title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.hp-subscribe-text { color: var(--text-mid); margin-bottom: 16px; }
.hp-subscribe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-subscribe-topics { margin-top: 16px; }
.hp-subscribe-topics summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.hp-subscribe-topics ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.hp-subscribe-topics a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.hp-subscribe-topics a:hover { background: var(--brand-light); }
@media (prefers-reduced-motion: reduce) {
  .home-new-card { transition: none; }
  .home-new-card:hover { transform: none; }
}

/* ===== Community features (assets/js/community.js; only present when params.communityAPI is set) ======== */
.nav-account-link { font-weight: 700; }
.cm-page { padding-bottom: 64px; }
.cm-note { color: var(--text-mid); }
.cm-muted { color: var(--text-mid); }
.cm-small { font-size: 13px; }
.cm-empty { color: var(--text-mid); padding: 8px 0; }
.cm-message { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #F8FAFC; color: var(--text-dark); }
.cm-message[hidden] { display: none; }
.cm-message--ok { background: var(--green-light); color: var(--green); }
.cm-message--error { background: var(--brand-light); color: var(--brand-dark); }
.cm-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--tint-shadow-sm);
}
.cm-card h2 { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.cm-card h3 { font-size: 15px; font-weight: 800; color: var(--text-dark); margin: 16px 0 8px; }
.cm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cm-field label { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.cm-field input, .cm-field textarea, .cm-field select,
.cm-buddy-me textarea, .cm-buddy-ask input, .hp-digest input[type="email"], .cm-card input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
  font: inherit;
  color: var(--text-dark);
}
.cm-field input:focus, .cm-field textarea:focus, .cm-field select:focus,
.cm-buddy-me textarea:focus, .cm-buddy-ask input:focus, .hp-digest input:focus, .cm-card input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
.cm-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cm-actions--wrap { flex-wrap: wrap; }
.cm-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 700;
}
.cm-tag--ok { background: var(--green-light); color: var(--green); }
.cm-link { border: none; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--text-mid); cursor: pointer; text-decoration: underline; }
.cm-link:hover { color: var(--brand); }
.cm-danger {
  padding: 9px 20px;
  border: 1.5px solid #B91C1C;
  border-radius: 24px;
  background: #FFFFFF;
  color: #B91C1C;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cm-danger:hover { background: #FEF2F2; }
button[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Event cards on Happening: Interested / Going / Find someone to go with */
.cm-event { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.cm-event-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--text-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cm-chip:hover { border-color: var(--brand); color: var(--brand); }
.cm-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.cm-chip[aria-pressed="true"]::before { content: "✓"; }
.cm-chip:disabled { cursor: default; opacity: 0.7; }
.cm-chip--buddy { border-style: dashed; }
.cm-event-counts { margin-top: 8px; font-size: 13px; color: var(--text-mid); }
.cm-event-counts[hidden] { display: none; }

/* The buddy dialog */
.cm-dialog {
  margin: auto; /* the site's reset removes the browser's centring of modal dialogs */
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: none;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
}
.cm-dialog::backdrop { background: rgba(15, 23, 42, 0.5); }
.cm-dialog-card { position: relative; padding: 28px 24px 24px; }
.cm-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #F1F5F9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cm-dialog-title { font-size: 22px; font-weight: 800; color: var(--brand); margin-bottom: 4px; padding-right: 40px; }
.cm-dialog-event { font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.cm-buddy-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.cm-buddy { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.cm-buddy-name { font-weight: 800; color: var(--text-dark); }
.cm-buddy-meta { font-size: 13px; color: var(--text-mid); }
.cm-buddy-note { font-size: 14px; color: var(--text-dark); margin-top: 4px; overflow-wrap: anywhere; }
.cm-buddy-ask { display: flex; gap: 8px; margin-top: 8px; }
.cm-buddy-ask input { flex: 1; min-width: 0; padding: 7px 10px; font-size: 14px; }
.cm-buddy-me { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.cm-buddy-me label { font-size: 14px; font-weight: 600; }
@media (max-width: 520px) {
  .cm-buddy-ask { flex-direction: column; }
}

/* Account, moderation */
.cm-account { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.cm-signin { max-width: 460px; }
.cm-intro { padding: 12px 0; border-top: 1px solid var(--border); }
.cm-intro:first-of-type { border-top: none; }
.cm-event-list { list-style: none; margin: 0; padding: 0; }
.cm-event-list li { padding: 8px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.cm-event-list li:first-child { border-top: none; }
.cm-event-list a { font-weight: 700; color: var(--text-dark); }
.cm-event-list .cm-tag { margin-left: 8px; }
.cm-stats { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.cm-stats dt { color: var(--text-mid); text-transform: capitalize; }
.cm-stats dd { margin: 0; font-weight: 800; text-align: right; }
.cm-user { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }

/* Noticeboard */
.cm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cm-tab {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #FFFFFF;
  font: inherit;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
}
.cm-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.cm-board { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 24px; align-items: start; }
.cm-board > .cm-small { grid-column: 1 / -1; }
.cm-posts { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cm-post {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--tint-shadow-sm);
}
.cm-post--pending { background: #F8FAFC; box-shadow: none; border: 1px dashed var(--border); }
.cm-post-title { font-size: 17px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; overflow-wrap: anywhere; }
.cm-post-title a { color: inherit; }
.cm-post-body { white-space: pre-line; color: var(--text-dark); margin-bottom: 8px; overflow-wrap: anywhere; }
.cm-post-tools { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cm-rights {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--green-light);
  color: var(--green);
}
.cm-rights--full_work_rights { background: var(--orange-light); color: var(--orange); }
.cm-rights--citizen_or_pr { background: #EEF2FF; color: #3730A3; }
@media (max-width: 900px) {
  .cm-board { grid-template-columns: 1fr; }
}

/* Suggest an event */
.cm-suggest { max-width: 640px; }
.cm-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Arrival checklist (Kickstart) */
.cm-checklist-progress { font-size: 14px; font-weight: 600; color: var(--green); margin: -4px 0 14px; }
.cm-checklist-progress[hidden] { display: none; }

/* Weekly digest form (Happening) */
.hp-digest { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(200, 16, 46, 0.15); }
.hp-digest[hidden] { display: none; }
.hp-digest-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hp-digest-row input { flex: 1 1 220px; }
.hp-digest-topics { border: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hp-digest-topics legend { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.hp-digest-topics label { font-size: 14px; color: var(--text-dark); display: inline-flex; align-items: center; gap: 6px; }

/* Homepage: community entry points (only with the community API) */
.home-community { padding: 40px 0 8px; }
.home-community-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.home-community-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--tint-surface);
  box-shadow: var(--tint-shadow-sm);
  color: var(--text-dark);
  text-decoration: none;
}
.home-community-card strong { color: var(--brand); font-size: 17px; }
.home-community-card span { color: var(--text-mid); font-size: 14px; }
.home-community-card:hover { box-shadow: var(--tint-shadow-hover); }
.home-community-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

@media (max-width: 520px) {
  .home-feature-media,
  .home-feature-media img {
    min-height: 0;
    min-width: 0;
  }
}

.utas-events-preview p { font-size: 14px; color: var(--text-mid); margin: 12px 0 16px; max-width: 42em; }
.utas-events-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.utas-events-cta:hover { background: var(--brand-dark); color: #FFFFFF; }

