/* Shared styles extracted from inline page definitions. */
:root {
  --bg:#0b1020;
  --ink:#111827;
  --card:#ffffff;
  --muted:#6b7280;
  --hi:#ef4444;
  --brand:#9b1c1c;
  --ring:rgba(239,68,68,.3);
  --accent:#f97316;
  --line:#e5e7eb;
  --soft:#f7f7fb;
  --accent-dark:#b91c1c;
  --ok:#047857;
  --error:#b91c1c;
  --loc-park:#b9e89b;
  --loc-2387:#ffe599;
  --loc-2383:#68d3f6;
  --loc-2375:#f9c5d4;
  --loc-online:#d6c3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font: 16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica Neue,Arial,sans-serif;
  color: var(--ink, #111827);
  background: var(--soft, #ffffff);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;         /* 👈 removes underline */
  transition: color 0.2s ease;
}

/* Page-level overrides */
body.page-home {
  padding: 10px;
  background: var(--soft);
}

body.page-absence {
  --ink:#1f2937;
  --muted:#6b7280;
  --accent:#1d4ed8;
  --bg:#f8fafc;
  --ring:#93c5fd;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
}

body.page-pickup {
  --bg:#f8fafc;
  --card:#ffffff;
  --ink:#1f2937;
  --muted:#6b7280;
  --accent:#2563eb;
  --accent-dark:#1d4ed8;
  --ring:rgba(37,99,235,.25);
  --ok:#047857;
  --error:#b91c1c;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
}

/* Home header & navigation */
body.page-home > header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.site {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

nav a {
  color: #111827;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: #d1321d;
  color: #000000;
}

a {
  color: inherit;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: #1d4ed8;
}

nav a.cta:hover {
  background: #1d3a8a;
}

.menu {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cta {
  background: var(--brand);
  color: #000000;
}

.hamburger {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
}

.drawer {
  display: none;
}

@media (max-width:820px) {
  nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .drawer {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .drawer a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .drawer.show {
    display: block;
  }
}

/* Home sections */
.hero {
  background: linear-gradient(180deg, #ffffff, #ffffff 60%, #fef2f2);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 42px 0;
}

.hero.hero--compact .hero-inner {
  align-items: stretch;
}

.course-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.course-hero-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.course-hero-media h2 {
  margin: 0;
}

.course-hero-gallery {
  margin-top: 0;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: nowrap;
}

.course-hero-gallery img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.course-hero-gallery img.course-hero-img--large {
  width: 420px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.course-hero-gallery video {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .22);
  background: #000;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7f1d1d;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.category-chip:hover,
.category-chip:focus-visible {
  background: #fee2e2;
  box-shadow: 0 10px 24px rgba(190, 18, 60, .18);
  transform: translateY(-1px);
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 0 8px;
}

.hero p {
  color: #374151;
  margin: 0 0 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .95rem;
  padding: .65rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--brand);
  color: #ffffff;
}

.btn.secondary {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #1f2937;
}

.btn.danger {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.hero-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.page-course-portal .hero-card img,
.page-volunteer .hero-card img {
  height: clamp(220px, 30vw, 320px);
  object-fit: cover;
}

section {
  padding: 30px 0;
}

h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 0 0 10px;
}

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

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .course-hero-gallery {
    flex-wrap: wrap;
  }

  .course-hero-gallery video,
  .course-hero-gallery img {
    width: min(430px, 100%);
    max-width: 100%;
    height: auto;
  }
}

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

  .course-hero-copy {
    order: 2;
  }

  .category-bar {
    justify-content: center;
  }

  .category-chip {
    font-size: .78rem;
  }

  .course-hero-gallery {
    justify-content: center;
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  .course-hero-gallery img {
    width: min(220px, 45vw);
    height: auto;
  }

  .course-hero-gallery video {
    width: min(360px, 90vw);
    height: auto;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:640px) {
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.card h3 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
}

.reward-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.points-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.reward-card p {
  margin-top: 0;
}

.reward-card ul {
  margin-top: 8px;
}

.reward-tier {
  background: #f8fafc;
  border-color: #dbeafe;
}

.list {
  margin: 0;
  padding: 0 0 0 18px;
}

.callout {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px;
}

footer {
  background: #0f172a;
  color: #e5e7eb;
  margin-top: 20px;
}

footer a {
  color: #e5e7eb;
}

.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
  padding: 28px 18px;
}

.foot small {
  color: #94a3b8;
}

@media (max-width:820px) {
  .site {
    padding: 0 32px;
  }
}

.foot {
  padding: 28px 24px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  text-align: center;
  color: #cbd5e1;
}

/* Absence report & pickup forms */
.wrap {
  max-width: 880px;
  margin: 32px auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.wrap.pickup {
  max-width: 860px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 2.8vw + 1rem, 2.3rem);
}

header p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  margin-top: 0;
}

.banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
  font-weight: 600;
}

.note {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 0;
}

.note.critical {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.wrap form {
  margin-top: 20px;
}

.wrap fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
}

.wrap legend {
  padding: 0 8px;
  color: #111827;
  font-weight: 700;
}

.wrap label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}

.wrap .req::after {
  content: " *";
  color: #dc2626;
  font-weight: 700;
}

.wrap input[type="text"],
.wrap input[type="email"],
.wrap input[type="tel"],
.wrap input[type="date"],
.wrap input[type="file"],
.wrap textarea,
.wrap select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  background: #ffffff;
  transition: border 0.2s, box-shadow 0.2s;
}

.wrap textarea {
  min-height: 100px;
  resize: vertical;
}

.wrap textarea:focus,
.wrap input:focus,
.wrap select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

.help {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inline > div {
  flex: 1 1 260px;
}

.radio-list,
.check-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.wrap .actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.wrap button {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.wrap button:hover {
  background: var(--accent-dark, var(--accent));
}

.wrap button:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.sr {
  position: absolute;
  left: -9999px;
}

.wrap .actions .help {
  margin-top: 0;
}

#formMsg {
  margin-top: 10px;
  font-weight: 600;
}

/* Registration form page */
body.page-registration {
  --bg: #f7f7fb;
  --fg: #111827;
  --muted: #6b7280;
  --brand: #9b1c1c;
  --accent: #ef4444;
  --ring: rgba(239,68,68,.35);
  --card: #ffffff;
  --border: #e5e7eb;
  --ok: #16a34a;
  --warn: #b45309;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

body.page-registration .wrap {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 1rem 3rem;
}

body.page-registration header {
  text-align: center;
  margin-bottom: 1.5rem;
}

body.page-registration header h1 {
  margin: .25rem 0;
  font-size: clamp(1.4rem, 2.2vw + 1rem, 2rem);
  letter-spacing: .2px;
}

body.page-registration header p {
  margin: 0;
  color: var(--muted);
}

body.page-registration form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 26px rgba(17,24,39,.06);
}

body.page-registration .section {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

body.page-registration .section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

body.page-registration .section h2 {
  font-size: 1.1rem;
  margin: 0 0 .75rem;
  letter-spacing: .2px;
}

body.page-registration .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .9rem;
}

body.page-registration .col-12 {
  grid-column: span 12;
}

body.page-registration .col-8 {
  grid-column: span 8;
}

body.page-registration .col-6 {
  grid-column: span 6;
}

body.page-registration .col-4 {
  grid-column: span 4;
}

body.page-registration .col-3 {
  grid-column: span 3;
}

@media (max-width: 720px) {
  body.page-registration .col-8,
  body.page-registration .col-6,
  body.page-registration .col-4,
  body.page-registration .col-3 {
    grid-column: span 12;
  }
}

body.page-registration label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
}

body.page-registration .hint {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-top: .25rem;
}

body.page-registration input[type="text"],
body.page-registration input[type="email"],
body.page-registration input[type="tel"],
body.page-registration input[type="date"],
body.page-registration input[type="number"],
body.page-registration select,
body.page-registration textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  outline: none;
  transition: box-shadow .15s, border-color .15s;
}

body.page-registration textarea {
  min-height: 96px;
  resize: vertical;
}

body.page-registration input:focus,
body.page-registration select:focus,
body.page-registration textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

body.page-registration .inline {
  display: flex;
  align-items: center;
  gap: .6rem;
}

body.page-registration .muted {
  color: var(--muted);
}

body.page-registration .pill {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #7f1d1d;
  font-size: .8rem;
  font-weight: 600;
}

body.page-registration .actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

body.page-registration button,
body.page-registration .btn {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-weight: 700;
}

body.page-registration .btn-primary {
  background: var(--brand);
  color: #fff;
}

body.page-registration .btn-secondary {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
}

body.page-registration .req::after {
  content: " *";
  color: var(--accent);
}

body.page-registration .legal {
  font-size: .92rem;
  color: #374151;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: .9rem;
  border-radius: 12px;
}

body.page-registration .hr {
  height: 1px;
  background: var(--border);
  margin: .75rem 0;
}

body.page-registration .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1rem;
}

body.page-registration .grid--mt-sm {
  margin-top: .5rem;
}

body.page-registration .grid--mt-md {
  margin-top: .75rem;
}

@media (max-width: 640px) {
  body.page-registration .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

body.page-registration .footer-note {
  text-align: center;
  color: var(--muted);
  margin-top: 1.25rem;
  font-size: .9rem;
}

.wechat-btn {
  padding: .75rem 1rem;
  border: 0;
  border-radius: .75rem;
  background: #07c160;
  color: #fff;
  font: 600 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(7,193,96,.3);
}

.wechat-btn:hover {
  filter: brightness(1.05);
}

.wechat-modal[hidden] {
  display: none;
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.5);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.wechat-modal__dialog {
  background: #fff;
  color: #111;
  width: min(92vw, 420px);
  border-radius: 1rem;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  position: relative;
}

.wechat-close {
  position: absolute;
  top: .5rem;
  right: .6rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.wechat-body {
  display: grid;
  gap: .9rem;
  justify-items: center;
  text-align: center;
}

.wechat-qr {
  border-radius: .5rem;
  border: 1px solid #eee;
}

.wechat-id {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.wechat-id__label {
  color: #555;
}

.wechat-id__value {
  background: #f3f5f7;
  padding: .25rem .5rem;
  border-radius: .4rem;
}

.wechat-copy {
  border: 0;
  padding: .4rem .6rem;
  border-radius: .5rem;
  cursor: pointer;
  background: #e6f7ed;
  color: #0a7c3a;
}

.wechat-copy:hover {
  filter: brightness(1.03);
}

.wechat-open-app {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  background: #07c160;
  color: #fff;
  padding: .5rem .9rem;
  border-radius: .6rem;
}

.wechat-open-app:hover {
  filter: brightness(1.05);
}

.wechat-note {
  font-size: .9rem;
  color: #666;
  margin: .25rem 0 0;
}

/* Schedule page */
body.page-schedule {
  background: var(--soft);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
}

body.page-schedule .schedule-wrap {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 4rem;
}

body.page-schedule .wrap {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

body.page-schedule .schedule-header h1 {
  margin: 1rem 0 .25rem;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.25rem);
}

body.page-schedule .schedule-section + .schedule-section {
  margin-top: 3.5rem;
}

body.page-schedule .section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 1rem;
}

body.page-schedule .section-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw + 1rem, 1.8rem);
}

body.page-schedule .schedule-grid {
  --time-column-width: 80px;
  --grid-padding: 18px;
  --grid-gap: 6px;
  display: grid;
  grid-template-columns: var(--time-column-width) repeat(7, minmax(140px, 1fr));
  grid-template-rows: 48px repeat(27, minmax(46px, 1fr));
  gap: var(--grid-gap);
  margin-top: 2rem;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: var(--grid-padding);
  position: relative;
}

body.page-schedule .schedule-grid::before {
  content: "";
  position: absolute;
  inset: var(--grid-padding);
  border-radius: 12px;
  pointer-events: none;
  border: 1px dashed rgba(148, 163, 184, .35);
}

.schedule-grid--weekend {
  grid-template-columns: var(--time-column-width) repeat(6, minmax(160px, 1fr));
  position: relative;
}

.schedule-grid--weekdays {
  grid-template-columns: var(--time-column-width) repeat(5, minmax(150px, 1fr));
}

body.page-schedule .day-header {
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
}

body.page-schedule .time-label {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: .15rem .5rem 0 0;
}

body.page-schedule .event {
  border-radius: 12px;
  padding: .55rem .6rem;
  font-size: .85rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  opacity: .9;
}

body.page-schedule .event strong {
  font-size: .92rem;
  font-weight: 700;
}

body.page-schedule .event-meta {
  font-size: .78rem;
  color: rgba(17, 24, 39, .7);
}

body.page-schedule .event-link,
body.page-schedule-editor .event-link {
  color: inherit;
  text-decoration: none;
}

body.page-schedule .event-link:hover,
body.page-schedule-editor .event-link:hover {
  text-decoration: underline;
}

body.page-schedule-editor .auth-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.65);
  padding: 1.5rem;
  z-index: 10000;
  backdrop-filter: blur(3px);
}

body.page-schedule-editor .auth-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  padding: 2.2rem 2.5rem;
  max-width: 420px;
  width: min(100%, 420px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
  text-align: center;
}

body.page-schedule-editor .auth-card h1 {
  margin: 0 0 .75rem;
  font-size: 1.6rem;
}

body.page-schedule-editor .auth-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 14px;
}

body.page-schedule-editor .auth-form input[type="password"] {
  padding: .75rem .9rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
}

body.page-schedule-editor .auth-form input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

body.page-schedule-editor .auth-error {
  color: #b91c1c;
  font-size: .85rem;
  margin: 0;
}

.location-park {
  background: var(--loc-park);
  border-left: 6px solid #4d7c0f;
}

.location-2387 {
  background: var(--loc-2387);
  border-left: 6px solid #ca8a04;
}

.location-2383 {
  background: var(--loc-2383);
  border-left: 6px solid #0284c7;
}

.location-2375 {
  background: var(--loc-2375);
  border-left: 6px solid #be123c;
}

.location-online {
  background: var(--loc-online);
  border-left: 6px solid #7c3aed;
}

.event-stack-left,
.event-stack-right {
  width: calc(50% - 8px);
}

.event-stack-left {
  margin-right: calc(50% + 8px);
}

.event-stack-right {
  margin-left: calc(50% + 8px);
}

.is-canceled {
  text-decoration: line-through;
  opacity: .6;
}

body.page-schedule .schedule-legend {
  margin-top: 2.5rem;
}

body.page-schedule .schedule-legend h2 {
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

body.page-schedule .schedule-legend ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 0;
  margin: 0 0 1rem;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-block;
  margin-right: .5rem;
  vertical-align: middle;
}

@media (max-width: 960px) {
  body.page-schedule .schedule-grid {
    --time-column-width: 64px;
    grid-template-columns: var(--time-column-width) repeat(7, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .schedule-grid--weekend {
    grid-template-columns: var(--time-column-width) repeat(6, minmax(150px, 1fr));
  }

  .schedule-grid--weekdays {
    grid-template-columns: var(--time-column-width) repeat(5, minmax(140px, 1fr));
  }
}

@media (max-width: 680px) {
  body.page-schedule .schedule-wrap {
    padding: 0 1rem 3rem;
  }

  body.page-schedule .schedule-grid {
    --time-column-width: 54px;
    --grid-padding: 14px;
    --grid-gap: 4px;
    padding: var(--grid-padding);
    grid-template-columns: var(--time-column-width) repeat(7, minmax(160px, 1fr));
  }

  .schedule-grid--weekend {
    grid-template-columns: var(--time-column-width) repeat(6, minmax(180px, 1fr));
  }

  .schedule-grid--weekdays {
    grid-template-columns: var(--time-column-width) repeat(5, minmax(180px, 1fr));
  }

  body.page-schedule .event {
    font-size: .8rem;
  }
}

/* Schedule editor */
body.page-schedule-editor {
  background: var(--soft);
}

body.page-schedule-editor .editor-wrap {
  max-width: 1280px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
}

body.page-schedule-editor .schedule-header .header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.page-schedule-editor .editor-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 28px;
  align-items: flex-start;
}

body.page-schedule-editor .editor-panel,
body.page-schedule-editor .preview-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
  padding: 24px 26px 28px;
}

body.page-schedule-editor .preview-panel {
  overflow: hidden;
}

body.page-schedule-editor .editor-form {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

body.page-schedule-editor .field-row,
body.page-schedule-editor .field-grid-2 {
  display: grid;
  gap: 12px;
}

body.page-schedule-editor .field-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

body.page-schedule-editor .field-grid-2.align-end {
  align-items: end;
}

body.page-schedule-editor .column-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

body.page-schedule-editor label {
  font-weight: 600;
  font-size: .9rem;
  color: #1f2937;
  margin-bottom: .25rem;
}

body.page-schedule-editor input,
body.page-schedule-editor select,
body.page-schedule-editor textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: 0.95rem/1.4 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background: #ffffff;
  transition: border 0.2s, box-shadow 0.2s;
}

body.page-schedule-editor input:focus,
body.page-schedule-editor select:focus,
body.page-schedule-editor textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

body.page-schedule-editor .checkbox-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
}

body.page-schedule-editor .checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

body.page-schedule-editor .form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.event-list {
  margin-top: 12px;
}

.event-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.event-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: .9rem;
}

.event-list table th,
.event-list table td {
  border-bottom: 1px solid #e5e7eb;
  padding: .55rem .4rem;
  text-align: left;
}

.event-list table th {
  font-weight: 700;
  color: #1f2937;
  background: #f9fafb;
}

.event-list table tr:last-child td {
  border-bottom: 0;
}

.action-cell {
  text-align: right;
  white-space: nowrap;
}

button.link {
  background: none;
  border: none;
  padding: 0 .25rem;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}

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

button.link.danger {
  color: #b91c1c;
}

.muted.small {
  font-size: .82rem;
}

.export-panel {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.export-panel textarea {
  width: 100%;
  min-height: 180px;
  font-family: SFMono-Regular,Consolas,Monaco,'Liberation Mono','Courier New',monospace;
  font-size: .85rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  border: 0;
  padding: 16px;
}

.export-panel textarea:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

body.page-schedule-editor .preview-sections {
  display: grid;
  gap: 28px;
}

body.page-schedule-editor .preview-section h3 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

body.page-schedule-editor .preview-panel .schedule-grid {
  min-height: 720px;
  overflow: hidden;
}

@media (min-width: 1100px) {
  body.page-schedule-editor .preview-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  body.page-schedule-editor .editor-layout {
    grid-template-columns: 1fr;
  }

  body.page-schedule-editor .preview-panel {
    margin-top: 10px;
  }
}

@media (max-width: 680px) {
  body.page-schedule-editor .editor-wrap {
    padding: 0 1rem 3rem;
  }

  body.page-schedule-editor .btn {
    width: 100%;
  }

  .event-list table th,
  .event-list table td {
    font-size: .85rem;
  }

  .export-actions {
    flex-direction: column;
  }
}

body.page-pickup .note {
  background: #ecfeff;
  border-color: #bae6fd;
  color: #0f172a;
}

body.page-pickup .wrap form {
  margin-top: 1.5rem;
}

body.page-pickup .wrap input[type="text"],
body.page-pickup .wrap input[type="email"],
body.page-pickup .wrap input[type="tel"],
body.page-pickup .wrap textarea,
body.page-pickup .wrap select {
  padding: 11px 12px;
}

body.page-pickup .wrap textarea {
  min-height: 110px;
}

body.page-pickup .wrap button {
  padding: 12px 20px;
}

@media (max-width:600px) {
  .wrap,
  .wrap.pickup {
    margin: 20px 12px;
    padding: 20px;
  }
}
.program-table {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.program-table__row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.program-table__col--category {
  font-weight: 700;
  font-size: 1.02rem;
  color: #0f172a;
  display: flex;
  align-items: center;
}

.program-table__col > div {
  margin-bottom: 8px;
  color: #1f2937;
  line-height: 1.5;
}

.program-table__col > div:last-child {
  margin-bottom: 0;
}

.program-table__col a {
  color: #2563eb;
}

.program-table__col a:hover,
.program-table__col a:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
}
