:root {
  --main: #3b2a6e;
  --accent: #e0b44c;
  --ink: #0d1330;
  --paper: #f6f7fb;
  --card: #ffffff;
  --muted: #5d6480;
  --line: #dfe3f0;
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; }
h2, h3 { font-family: var(--serif); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Layout with left sidebar ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 264px; flex: none; background: var(--main); color: #e8e3f6;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
  display: flex; flex-direction: column; padding: 22px 14px;
}
.side-brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: #fff; padding: 0 10px 16px; margin: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.side-nav { display: grid; gap: 4px; }
.side-nav a {
  display: block; padding: 11px 12px; border-radius: 8px; color: inherit; text-decoration: none;
  font-weight: 600; border-left: 4px solid transparent;
}
.side-nav a:hover { background: rgba(255,255,255,.08); }
.side-nav a[aria-current="page"] { background: rgba(255,255,255,.14); border-left-color: var(--accent); color: #fff; }
.side-foot { margin-top: auto; padding-top: 18px; }
.side-foot .cta { display: block; text-align: center; padding: 12px 14px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: 64px; background: var(--card);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 0 18px;
}
.hdr-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.burger { display: none; font: inherit; font-weight: 700; background: #e9ecf7; color: var(--ink); border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo { width: 42px; height: 42px; border-radius: 50%; background: var(--main); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-nav { display: flex; align-items: center; gap: 6px; }
.hdr-tab { font: inherit; font-weight: 700; color: var(--ink); background: transparent; border: 0; border-radius: 8px; padding: 9px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.hdr-tab:hover { background: #e9ecf7; }
.hdr-tab[aria-current="page"] { color: var(--main); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.hdr-nav .cta { padding: 9px 16px; font-size: .98rem; box-shadow: none; margin-left: 4px; }
.dd { position: relative; }
.dd-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 10, 50, .18); padding: 8px; z-index: 50;
}
.dd-panel.wide { width: 350px; max-height: 70vh; overflow-y: auto; }
.dd-item { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.dd-item:hover { background: #e9ecf7; }
.nt-item { padding: 10px 12px; }
.nt-item + .nt-item { border-top: 1px solid var(--line); }
.nt-item strong { display: block; }
.nt-item span { color: var(--muted); font-size: .9rem; }
.nt-foot { padding: 8px 12px 4px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #d93636; color: #fff; font-size: .75rem; }
.scrim { display: none; }
.content { flex: 1; min-width: 0; }
.page { max-width: 1000px; margin: 0 auto; padding: 24px 22px 40px; }

/* ---------- Above the fold (dashboard top) ---------- */
.hero {
  background: var(--main); color: #fff; border-radius: 14px; padding: 26px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 0 0 6px; }
.hero h2 { color: var(--accent); }
.hero p { margin: 0; color: #ddd7f0; max-width: 46ch; }
.cta {
  display: inline-block; background: var(--accent); color: #0d1330; font-weight: 800; font-size: 1.1rem;
  padding: 15px 26px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255,255,255,.28);
}
.cta:hover { filter: brightness(1.06); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.info h3 { font-size: 1.1rem; margin: 0 0 8px; }
.info p { margin: 0; font-size: .95rem; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; font-size: .94rem; }
.svc small { display: block; color: var(--muted); }
.badge { font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e9ecf7; color: var(--main); white-space: nowrap; }
.badge.both { background: #e0f3e8; color: #14683a; }
.badge.online { background: #e3effd; color: #1b4f9c; }
.btn-outline {
  display: inline-block; margin-top: 10px; font-weight: 700; padding: 9px 14px;
  border: 2px solid var(--main); border-radius: 8px; color: var(--main); text-decoration: none; background: transparent; cursor: pointer; font-family: inherit; font-size: .95rem;
}
.btn-outline:hover { background: var(--main); color: #fff; }

/* ---------- Sections ---------- */
.section-head { margin: 30px 0 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section-head h2, .section-head h3 { margin: 0; font-size: 1.5rem; }
.view-title { font-size: 2rem; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.link { font-weight: 700; color: var(--main); }
.controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-weight: 700; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--main); border-color: var(--main); color: #fff; }
.search { font: inherit; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; min-width: 240px; background: var(--card); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { text-align: left; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: var(--main); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--main), color-mix(in srgb, var(--main) 62%, white)); display: grid; place-items: center; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.card-body { padding: 13px 15px 15px; }
.card-body h3 { font-size: 1.08rem; margin: 0 0 4px; line-height: 1.25; }
.meta { color: var(--muted); font-size: .88rem; }
.tag { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--main); background: #e9ecf7; padding: 2px 10px; border-radius: 999px; }
.photo { padding: 0; border: 0; background: #ddd; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--main), color-mix(in srgb, var(--main) 62%, white)); font-weight: 600; padding: 10px; text-align: center; }
.empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 10px; }

/* ---------- Live ---------- */
.player-box { position: relative; aspect-ratio: 16 / 9; background: #050a24; border-radius: 10px; overflow: hidden; }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #cfc8e6; }
.player-empty strong { display: block; font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-top: 16px; }
.panel h3 { margin: 0 0 8px; font-size: 1.15rem; }

/* ---------- Calendar ---------- */
.events { display: grid; gap: 12px; }
.event { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.datebox { flex: none; width: 58px; text-align: center; background: var(--main); color: #fff; border-radius: 10px; padding: 8px 0; line-height: 1.1; }
.datebox strong { display: block; font-size: 1.5rem; font-family: var(--serif); }
.datebox span { font-size: .85rem; }
.ev-info h3 { margin: 0 0 2px; font-size: 1.1rem; }
.ev-info p { margin: 6px 0; }

/* ---------- Contact ---------- */
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 8px; }
footer.site-foot { background: var(--footer, var(--ink)); color: #fff; text-align: center; padding: 36px 22px 18px; font-size: .95rem; }
.foot-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; text-align: left; }
.site-foot h3 { color: var(--accent); font-size: 1.05rem; margin: 0 0 8px; }
.site-foot p { margin: 0 0 6px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: #fff; text-underline-offset: 3px; }
.foot-copy { max-width: 1000px; margin: 24px auto 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: .85rem; }

/* ---------- Player dialog ---------- */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(860px, 94vw); background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(10, 6, 25, .72); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 10px; }
.dlg-head h3 { margin: 0; font-size: 1.3rem; }
.close { font: inherit; font-weight: 700; background: #e9ecf7; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.dlg-body { padding: 0 18px 18px; }
.dlg-body audio { width: 100%; margin: 8px 0; }
.dlg-body img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: #111; }

/* ---------- New Here page ---------- */
.nh-top { background: var(--main); color: #fff; }
.nh-top .row { max-width: 1000px; margin: 0 auto; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nh-top a { text-decoration: none; font-weight: 700; }
.nh-top .brand { font-family: var(--serif); font-size: 1.2rem; }
.nh-hero { background: var(--main); color: #fff; }
.nh-hero .row { max-width: 1000px; margin: 0 auto; padding: 44px 22px; }
.nh-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; }
.nh-hero p { max-width: 56ch; color: #e4def5; font-size: 1.1rem; margin: 0 0 20px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--main); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps h3 { margin: 0 0 2px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.actions .btn-outline { margin-top: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 64px; height: calc(100vh - 64px); z-index: 40; transform: translateX(-100%); transition: transform .2s; width: 280px; }
  .sidebar.open { transform: none; }
  .scrim.show { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(10, 6, 25, .55); z-index: 35; }
  .site-header { padding: 0 10px; gap: 6px; }
  .burger { display: inline-block; padding: 8px 10px; font-size: .9rem; }
  .logo { width: 36px; height: 36px; }
  .logo-name { display: none; }
  .hdr-nav { gap: 2px; }
  .hdr-tab { padding: 8px 7px; font-size: .88rem; }
  .hdr-nav .cta { padding: 8px 10px; font-size: .86rem; margin-left: 2px; }
  .dd { position: static; }
  .dd-panel, .dd-panel.wide { position: fixed; left: 10px; right: 10px; top: 70px; width: auto; }
  .search { width: 100%; }
  .page { padding: 18px 16px 34px; }
  .hero { padding: 20px; }
}
