/* ================================
   DESIGN TOKENS
================================ */
:root {
  --forest:      #1B4035;
  --forest-deep: #0E2018;
  --forest-mid:  #2B644A;
  --forest-lt:   #4D9469;
  --forest-pale: #C8E8D0;
  --gold:        #B5791E;
  --gold-bright: #D4960A;
  --gold-pale:   #F8EED8;

  --bg:       #F6F2ED;
  --surface:  #FFFFFF;
  --surface2: #EFE9DF;
  --text:     #141210;
  --text2:    #4A4540;
  --text3:    #8C8480;
  --border:   #DDD7CD;
  --border2:  #EAE4DB;

  --font-ui: 'Instrument Sans', system-ui, sans-serif;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-full: 999px;

  --sh-sm: 0 1px 3px rgba(0,0,0,0.07);
  --sh-md: 0 4px 14px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);

  /* School alumni colors */
  --clr-ithaca:  #163a6d;
  --clr-msu:     #18453B;
  --clr-berklee: #CC0000;
  --clr-asu:     #8C1D40;
  --clr-cmu:     #6A0032;
  --clr-famu:    #CC5500;
  --clr-iup:     #8B0000;
  --clr-fsu:     #782F40;
  --clr-ucf:     #b89010;
}

body.dark {
  --bg:          #0C1C12;
  --surface:     #132019;
  --surface2:    #1A2D21;
  --text:        #EDE9E3;
  --text2:       #A2B4A4;
  --text3:       #637063;
  --border:      #243C2C;
  --border2:     #1C2E22;
  --forest-pale: #1A3522;
  --gold-pale:   #1E1500;

  /* School alumni colors — lightened for dark backgrounds */
  --clr-ithaca:  #7aaee8;
  --clr-msu:     #72c491;
  --clr-berklee: #ff7070;
  --clr-asu:     #e0708a;
  --clr-cmu:     #d46898;
  --clr-famu:    #ff8c42;
  --clr-iup:     #e06060;
  --clr-fsu:     #d47a88;
  --clr-ucf:     #e8c040;
}

/* ================================
   RESET
================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-ui); border: none; background: none; cursor: pointer; }

.app { max-width: 100%; margin: 0 auto; }

/* ================================
   SVG ICON HELPER
================================ */
.icon {
  display: block;
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 24px; height: 24px; }

/* ================================
   HEADER
================================ */
.header {
  background: var(--forest);
  color: white;
  padding: 11px 16px 9px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.dark .header { background: var(--forest-deep); }

@media (display-mode: standalone) {
  .header { padding-top: calc(11px + env(safe-area-inset-top, 0px)); }
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.wordmark { flex: 1; min-width: 0; }

.wm-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sax-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  filter: invert(1);
  mix-blend-mode: screen;
  transform: scaleX(-1);
  opacity: 0.85;
}

.hbtns { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

.hbtn {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: background 0.15s, color 0.15s;
}
.hbtn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ================================
   BANNER
================================ */
.banner {
  background: var(--gold-pale);
  border-bottom: 1px solid rgba(181,121,30,0.15);
  padding: 9px 16px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.83rem;
  color: #7A5010;
  line-height: 1.4;
}

body.dark .banner {
  background: #1C1200;
  border-bottom-color: rgba(181,121,30,0.1);
  color: #C88820;
}

.banner-txt { flex: 1; }
.banner-x {
  color: inherit; opacity: 0.4; font-size: 1.1rem;
  padding: 0 2px; line-height: 1; margin-top: 1px;
  flex-shrink: 0; transition: opacity 0.15s;
}
.banner-x:hover { opacity: 0.85; }

/* ================================
   MAIN
================================ */
.main { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 14px; }

/* ================================
   NOW / NEXT CARD
================================ */
.now-next {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
  animation: fadeUp 0.45s ease-out both;
}

.now-pane {
  background: var(--forest);
  color: white;
  padding: 16px 18px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.now-pane:hover, .now-pane:active { background: var(--forest-mid); }
body.dark .now-pane { background: #142A1E; }
body.dark .now-pane:hover, body.dark .now-pane:active { background: #1A3525; }

.now-label {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 9px;
}

.now-lbl-txt {
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.45);
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.now-name {
  font-size: 1.45rem; font-weight: 600;
  line-height: 1.2; color: #fff;
  margin-bottom: 6px; letter-spacing: -0.01em;
}

.now-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.now-sep { opacity: 0.3; }

.now-pills { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }

.now-pill {
  font-size: 0.82rem; font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.35;
  display: flex; gap: 0.35em; align-items: flex-start;
}
.now-pill::before { content: '·'; flex-shrink: 0; }

.next-pane {
  background: var(--surface);
  padding: 10px 18px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.next-pane:hover, .next-pane:active { background: var(--surface2); }

.next-lbl { font-size: 0.87rem; color: var(--text3); flex-shrink: 0; }

.next-name {
  flex: 1;
  font-size: 0.87rem; font-weight: 400;
  color: var(--text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.next-time { font-size: 0.87rem; color: var(--text3); flex-shrink: 0; }

/* ================================
   SCHEDULE
================================ */
.sched { display: flex; flex-direction: column; gap: 6px; }

.day-card {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: fadeUp 0.4s ease-out both;
}

.day-card:nth-child(1) { animation-delay: 0.05s; }
.day-card:nth-child(2) { animation-delay: 0.09s; }
.day-card:nth-child(3) { animation-delay: 0.13s; }
.day-card:nth-child(4) { animation-delay: 0.17s; }
.day-card:nth-child(5) { animation-delay: 0.21s; }
.day-card:nth-child(6) { animation-delay: 0.25s; }
.day-card.no-animate { animation: none; }

.day-toggle {
  width: 100%; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: background 0.15s; text-align: left;
}
.day-toggle:hover { background: var(--surface2); }

.chevron {
  width: 0; height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 6.5px solid var(--text3);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.day-card.open .chevron { transform: rotate(90deg); }

.day-hd { flex: 1; min-width: 0; }

.day-name { font-size: 1.125rem; font-weight: 600; color: var(--text); }

.day-tags { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.tag {
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 2px 8px; border-radius: var(--r-full);
  display: inline-flex; align-items: center;
}

.tag-today { background: var(--forest-pale); color: var(--forest-mid); }
body.dark .tag-today { background: #1B3824; color: #5DAA78; }

.tag-theme {
  font-weight: 400; font-size: 0.72rem;
  background: var(--gold-pale); color: #8A5C10;
}
body.dark .tag-theme { background: #1E1500; color: #C88820; }
.tag-theme em { font-style: italic; }

.act-list {
  list-style: none;
  border-top: 1px solid var(--border);
  display: none;
}
.day-card.open .act-list { display: block; }

.act-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border2);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.act-row:last-child { border-bottom: none; }
.act-row:active { background: var(--surface2); }
.act-row.past { opacity: 0.35; }

.act-row.current {
  background: linear-gradient(90deg, rgba(43,100,74,0.07) 0%, transparent 70%);
  border-left: 3px solid var(--forest-mid);
}
body.dark .act-row.current {
  background: linear-gradient(90deg, rgba(77,148,105,0.09) 0%, transparent 70%);
  border-left-color: var(--forest-lt);
}

.act-row.selected {
  background: linear-gradient(90deg, rgba(181,121,30,0.08) 0%, transparent 70%);
  border-left: 3px solid var(--gold);
}
body.dark .act-row.selected {
  background: linear-gradient(90deg, rgba(181,121,30,0.12) 0%, transparent 70%);
  border-left-color: var(--gold-bright);
}

@keyframes rowFlash {
  0%   { background: rgba(181,121,30,0.22); }
  100% { background: transparent; }
}
.act-row.flash { animation: rowFlash 1.1s ease-out forwards; }

.act-time {
  font-family: var(--font-ui); font-size: 0.9rem;
  color: var(--text3); flex-shrink: 0;
  width: 4rem; padding-top: 1px; line-height: 1.4;
}
.act-row.current .act-time { color: var(--forest-mid); }
body.dark .act-row.current .act-time { color: var(--forest-lt); }

.act-body { flex: 1; min-width: 0; }

.act-name { font-size: 1.0625rem; font-weight: 400; color: var(--text); line-height: 1.3; }
.act-row.current .act-name { font-weight: 600; }

.act-loc { font-size: 0.9rem; color: var(--text3); margin-top: 2px; }

.act-notes { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

.act-note {
  font-size: 0.9rem; color: var(--text3); line-height: 1.35;
  display: flex; gap: 0.35em; align-items: flex-start;
}
.act-note::before { content: none; }
.act-note.no-dot::before { content: none; }

/* ================================
   EVENT DETAIL SHEET
================================ */
.event-hd {
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  line-height: 1.25; margin-bottom: 12px;
}

.event-meta-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--border2);
  font-size: 0.87rem; color: var(--text2); line-height: 1.4;
}
.event-meta-row .c-icon { margin-top: 1px; }

.event-notes { margin-top: 12px; border-top: 1px solid var(--border2); padding-top: 10px; }
.event-detail { margin-top: 12px; border-top: 1px solid var(--border2); padding-top: 10px; }

#lightbox { display:none; position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,0.92); align-items:center; justify-content:center; cursor:zoom-out; }
#lightbox.show { display:flex; }
#lightbox img { max-width:95vw; max-height:92vh; object-fit:contain; border-radius:var(--r-md); box-shadow:var(--sh-md); }

.event-notes-lbl {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 7px;
}

.event-note-line {
  font-size: 0.85rem; color: var(--text2); line-height: 1.4;
  display: flex; gap: 0.4em; align-items: flex-start; padding: 2px 0;
}
.event-note-line::before { content: none; }

.sheet-close {
  display: block; width: 100%; margin-top: 14px; padding: 11px;
  border-radius: var(--r-md);
  background: var(--surface2); color: var(--text2);
  font-size: 0.9rem; font-weight: 600; text-align: center;
  cursor: pointer; transition: background 0.15s;
}
.sheet-close:hover { background: var(--border); }

/* ================================
   BOTTOM NAV
================================ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0;
  width: 100%;
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 200;
  box-shadow: 0 -1px 10px rgba(0,0,0,0.05);
}

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 10px 2px; gap: 4px;
  color: var(--text3); cursor: pointer; transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  border: none; background: none; font-family: var(--font-ui);
  text-decoration: none;
}
.nav-item.active { color: var(--forest-mid); }
body.dark .nav-item.active { color: var(--forest-lt); }
.nav-item:hover { color: var(--text2); }

.nav-lbl { font-size: 0.625rem; font-weight: 400; letter-spacing: 0.02em; }

/* ================================
   CONTACT SHEET
================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 400; display: none;
  align-items: flex-end; justify-content: center;
}
.overlay.show { display: flex; }

.sheet {
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  animation: sheetUp 0.28s ease-out;
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.sheet-handle {
  width: 34px; height: 4px;
  border-radius: var(--r-full);
  background: var(--border);
  margin: 0 auto 14px;
}

.sheet-title {
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin-bottom: 10px; text-align: center;
}

.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: var(--r-md);
  transition: background 0.15s; cursor: pointer;
}
.contact-item:hover { background: var(--surface2); }

.c-icon { width: 26px; text-align: center; flex-shrink: 0; color: var(--forest-mid); }
body.dark .c-icon { color: var(--forest-lt); }
.c-lbl { font-size: 0.9rem; font-weight: 400; color: var(--text); }

/* ================================
   KEYFRAMES
================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================
   HEADER NAV (desktop only)
================================ */
.hdr-nav { display: none; }

.hdr-nav-item {
  padding: 6px 13px;
  border-radius: var(--r-full);
  font-size: 0.87rem; font-weight: 500;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.hdr-nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hdr-nav-item.active { color: #fff; background: rgba(255,255,255,0.13); }

/* ================================
   RESPONSIVE — TABLET (≥ 600px)
================================ */
@media (min-width: 600px) {
  .app { max-width: none; }
  .bottom-nav { max-width: none; left: 0; transform: none; }
  .sheet { max-width: 600px; margin: 0 auto; }
  .main { max-width: 640px; margin: 0 auto; padding: 16px 18px 0; }
}

/* ================================
   RESPONSIVE — DESKTOP (≥ 960px)
================================ */
@media (min-width: 960px) {
  :root { --sticky-top: 73px; }

  body { padding-bottom: 0; }

  .app { max-width: none; }
  .header { padding: 12px 32px 10px; }

  .hdr-nav { display: flex; align-items: center; gap: 2px; }
  .bottom-nav { display: none; }

  .main {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr;
    align-items: start;
    gap: 20px;
    padding: 20px 32px 20px;
    max-width: 1060px;
    margin: 0 auto;
  }

  .now-next {
    position: sticky;
    top: var(--sticky-top);
    align-self: start;
    max-height: calc(100vh - var(--sticky-top) - 10px);
    overflow-y: auto;
  }

  .sched { min-height: 200px; }

  /* Sheets become centered modals */
  .overlay { align-items: center; }
  .sheet {
    border-radius: var(--r-lg);
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 14px;
    animation: modalIn 0.22s ease-out;
  }
}

/* ================================
   RESPONSIVE — WIDE (≥ 1280px)
================================ */
@media (min-width: 1280px) {
  .header { padding: 12px 48px 10px; }

  .main {
    grid-template-columns: minmax(0, 360px) 1fr;
    gap: 24px;
    padding: 24px 48px 24px;
    max-width: 1200px;
  }
}

/* ================================
   ADD TO HOMESCREEN BANNER
================================ */
.install-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 9999;
  display: flex;
  align-items: flex-end; justify-content: center;
  pointer-events: none;
  transition: background 0.3s;
}
.install-overlay.show {
  background: rgba(0,0,0,0.38);
  pointer-events: auto;
}

.install-banner {
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%; max-width: 600px;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.28s ease-out;
}
.install-overlay.show .install-banner { transform: translateY(0); }

.install-handle {
  width: 34px; height: 4px;
  border-radius: var(--r-full);
  background: var(--border);
  margin: 0 auto 16px;
}

.install-banner-title {
  font-size: 1rem; font-weight: 600; color: var(--text);
  text-align: center; margin-bottom: 10px;
}

#install-homescreen-text { margin-bottom: 14px; }
#install-homescreen-text p#install-text {
  margin: 0; line-height: 1.45;
  font-size: 0.9rem; color: var(--text2);
  text-align: center; word-break: break-word;
}

#install-banner-buttons { display: flex; flex-direction: column; gap: 8px; }

.install-banner button {
  display: block; width: 100%; padding: 11px;
  border-radius: var(--r-md);
  font-size: 0.9375rem; font-weight: 600; font-family: var(--font-ui);
  cursor: pointer; transition: background 0.15s, opacity 0.15s; border: none;
}

#install-now { background: var(--forest); color: #fff; }
body.dark #install-now { background: var(--forest-mid); }
#install-now:hover { opacity: 0.88; }

#install-dismiss { background: var(--surface2); color: var(--text2); }
#install-dismiss:hover { background: var(--border); }

/* NOTIFICATION PERMISSION BANNER */
#notif-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0;
  z-index: 9999;
  pointer-events: none;
}
#notif-overlay.show { pointer-events: auto; }

#notif-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md), 0 8px 32px rgba(0,0,0,0.13);
  width: 100%; max-width: 420px;
  padding: 14px 16px 14px;
  transform: translateY(calc(-100% - 28px));
  transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#notif-overlay.show #notif-card { transform: translateY(0); }

.notif-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.notif-app-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.notif-app-icon img { width: 18px; height: 18px; filter: invert(1); transform: scaleX(-1); }
.notif-app-name {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.notif-title {
  font-size: 0.9375rem; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.notif-body {
  font-size: 0.875rem; color: var(--text2);
  line-height: 1.4; margin-bottom: 14px;
}
.notif-actions {
  display: flex; gap: 8px; justify-content: flex-end;
}
.notif-actions button {
  font-family: var(--font-ui);
  font-size: 0.875rem; font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-md);
  border: none; cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
#notif-dismiss { background: var(--surface2); color: var(--text2); }
#notif-dismiss:hover { background: var(--border); }
#notif-allow { background: var(--forest); color: #fff; }
body.dark #notif-allow { background: var(--forest-mid); }
#notif-allow:hover { opacity: 0.88; }

/* ================================
   SUPPORTING PAGES (body.page)
   — rooms, faq, faculty-list, etc.
================================ */
body.page {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

body.page a { color: var(--forest-mid); text-decoration: none; }
body.page a:visited { color: var(--forest-lt); }
body.page a:hover, body.page a:focus { text-decoration: underline; }
body.dark.page a { color: var(--forest-lt); }

body.page header:not(.header) {
  position: relative; background-color: var(--forest); color: #fff;
  padding: 1.5rem; text-align: left; z-index: 999;
}
body.dark.page header:not(.header) { background-color: var(--forest-deep); }

body.page .main-container { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; text-align: left; }
body.page .content-inner { text-align: left; }

body.page h1 { font-size: 1.65rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-top: 0; margin-bottom: 0.5rem; }
body.page h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; margin-top: 1.5rem; margin-bottom: 0.75rem; }
body.page h3 { font-size: 1.0625rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.5rem; }
body.page p { font-size: 1.0625rem; line-height: 1.55; margin-top: 0; margin-bottom: 0.75rem; }
body.dark.page h3 { color: var(--forest-lt); }

body.page .day {
  background: var(--surface); font-size: 1rem; margin-bottom: 1rem;
  padding: 0.5rem 1.5rem; border-radius: var(--r-md);
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
}
body.page .day > ul > li { border-bottom: 1px dashed var(--border); padding: 0.5rem 0; }
body.page .day ul ul li { padding: 0.2rem 0; border-bottom: none; margin-bottom: 0; }

body.page .theme-description {
  background-color: var(--forest-pale); border: 1px solid var(--forest-mid);
  padding: 0.75rem 1rem; margin-top: 0.75rem; border-radius: 6px;
  font-weight: 500; text-align: center;
}
body.page li ul { list-style-type: disc; margin-left: 1.5rem; font-size: 1rem; color: var(--text2); }

body.page .day > ul > li.blink-highlight {
  background-color: var(--gold-pale); box-shadow: 0 0 0 4px var(--gold-pale);
  border-radius: 4px; transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

body.page .notice {
  font-size: 1rem; padding: 0.75rem 2.5rem; margin: 1rem auto;
  text-align: center; width: fit-content; border-radius: 6px;
  white-space: normal; word-break: break-word;
  background: var(--gold-pale); color: var(--gold);
}
body.dark.page .notice { background: #1C1200; color: #C88820; }

body.page footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1rem 2rem; font-size: 0.9rem;
  background: var(--surface); color: var(--text2);
}
body.page .footer-container { max-width: 900px; margin: 0 auto; padding: 0 1rem; width: 100%; }
body.page .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 0.5rem; }
body.page .footer-links a { color: var(--forest-mid); }
body.dark.page .footer-links a { color: var(--forest-lt); }
body.page .footer-note { text-align: center; color: var(--text2); }
body.page .cc-attribution {
  text-align: center; font-family: var(--font-ui);
  font-size: 0.8rem; line-height: 1.4; max-width: 100%;
  word-break: break-word; white-space: normal; display: block;
  overflow-wrap: break-word; padding: 0 1rem; box-sizing: border-box;
  color: var(--text3);
}
.cc-icon { width: 16px; height: 16px; vertical-align: middle; margin-right: 2px; }

body.page summary {
  font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 400; color: var(--text);
  cursor: pointer; background: none; padding: 8px 14px;
  list-style: none; position: relative; z-index: 1;
}
body.page summary::marker, body.page summary::-webkit-details-marker { display: none; }
body.page summary::before {
  content: ''; display: inline-block;
  width: 0; height: 0; margin-right: 10px; margin-top: 3px;
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
  border-left: 6.5px solid var(--text3); transition: transform 0.22s ease;
  flex-shrink: 0;
}
body.page details[open] summary::before { transform: rotate(90deg); }

.styled-table {
  width: 100%; max-width: 600px; border-collapse: collapse;
  margin: 0 auto 1rem; font-size: 0.95rem; box-shadow: var(--sh-sm);
}
.styled-table thead { background-color: var(--forest-mid); color: #fff; }
.styled-table th, .styled-table td { padding: 0.75em 1em; border: 1px solid var(--border); text-align: left; }
.styled-table tbody tr:nth-child(even) { background-color: var(--surface2); }

.breadcrumb { margin-top: 0.2rem; font-size: 0.9rem; }
.breadcrumb a { color: var(--forest-lt); text-decoration: none; }
.breadcrumb a:hover { color: #e8f3ec; transition: color 0.3s ease; }

body.page ol { padding-left: 1.5rem; margin: 1rem 0; counter-reset: item; list-style: none; }
body.page ol li { counter-increment: item; font-size: 1.0625rem; margin-bottom: 0.5rem; position: relative; padding-left: 1.2em; }
body.page ol li::before { content: counter(item) "."; position: absolute; left: 0; color: var(--forest-lt); font-weight: bold; }

body.page ul { list-style-type: disc; padding-left: 1rem; margin-bottom: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
body.page li { margin-top: 0 !important; margin-bottom: 0 !important; }
body.page ul ul { list-style-type: circle; padding-left: 0.25rem; margin-bottom: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
body.page ul ul ul { list-style-type: square; padding-left: 0.25rem; margin-bottom: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
body.page ul li { font-size: 1.0625rem; padding: 0 !important; margin-top: .5rem !important; margin-bottom: .5rem !important; }
body.page ul li:first-child { margin-top: 0; }

.group-list ol { padding-left: 2rem !important; }
.group-list ol li { counter-increment: list-counter; position: relative; padding-left: 2rem !important; margin-bottom: 0.5rem; color: var(--text); line-height: 1.5; }
.group-list ol li::before { content: counter(list-counter) "."; position: absolute; left: 0; color: var(--text); font-weight: bold; }

body.page .audio-player { width: 100%; max-width: 400px; outline: none; }
@media (max-width: 500px) { body.page .audio-player { max-width: 90vw; } }
body.page .content-inner.recordings-page { padding-bottom: 1rem; width: 100%; }

.responsive-iframe { width: 100%; max-width: 100%; height: 52px; overflow: hidden; box-sizing: border-box; }
.responsive-iframe iframe { width: 100%; height: 52px; display: block; box-sizing: border-box; }

.faq-section { margin-top: 1rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.faq-section h2 { display: flex; align-items: center; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0; margin-bottom: 6px;
  box-shadow: var(--sh-sm); transition: background 0.2s, border-color 0.2s; display: block; width: 100%;
}
.faq-item summary { font-weight: 400; font-size: 1.0625rem; cursor: pointer; display: flex; align-items: flex-start; padding: 8px 14px; }
.faq-item[open] { background-color: var(--forest-pale); border-color: var(--forest-mid); }
.faq-item p { margin-top: 0; font-family: var(--font-ui); font-size: 1rem; line-height: 1.55; color: var(--text2); padding: 4px 14px 10px; border-top: 1px solid var(--border2); }
body.page .main-container.faq-block-display { display: block; }
@media (max-width: 600px) { body.page .main-container { padding-left: 1rem; padding-right: 1rem; } }
@media (max-width: 450px) { body.page h2 { font-size: 1.25rem; } }