/* Shared styles for every meeting page (/<yymmdd>/). Base reset first, then the page. */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }

/* Layout: mobile-first single column. Time-zone dropdown; every time on the page follows the chosen zone. */
:root {
  /* Dark navy with indigo-violet accents */
  --paper: #0f1322;
  --surface: #171c2e;
  --ink: #f2f3f8;
  --muted: #9ba2b8;
  --line: #262c43;
  --brand: #5b4cf0;
  --brand-grad: linear-gradient(90deg, #6d4af2, #4b5cf0);
  --on-brand: #ffffff;
  --accent: #8f89ff;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  padding-inline: 16px; padding-block: 0 48px;
}
.wrap { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.wrap > * { min-width: 0; }
html, body { overflow-x: hidden; }

header { padding-top: 20px; display: grid; gap: 4px; }
.place { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 8.5vw, 52px); line-height: 1.04; letter-spacing: -.035em;
  margin: 0; text-wrap: balance;
}
.dates { font-family: var(--font-display); font-weight: 500; font-size: 16px; margin: 4px 0 0; }
.theme { margin: 10px 0 0; padding-left: 12px; border-left: 3px solid var(--brand); display: grid; gap: 2px; }
.theme b { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; }
.theme span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.share {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font: 600 14px var(--font-body); color: var(--ink); background: transparent;
  border: 1px solid var(--brand); border-radius: 12px; padding: 12px 16px; cursor: pointer;
}
.share svg { flex: 0 0 auto; color: var(--accent); }

/* Zone bar: one dropdown; "Other city…" opens the search picker below it */
.zonebar { padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.zonebar .hint { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.zone-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font: 600 16px var(--font-body); color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f2f3f8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--brand); border-radius: 10px;
  padding: 11px 40px 11px 12px; cursor: pointer;
}
.zone-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zone-select.lang { border-color: var(--line); font-weight: 500; margin-bottom: 14px; }
.picker { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.device {
  font: 600 14px var(--font-body); color: var(--on-brand); background: var(--brand-grad);
  border: 0; border-radius: 8px; padding: 9px 12px; cursor: pointer; text-align: left;
}
.picker input {
  width: 100%; font: 16px var(--font-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
}
.picker input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; }
.results button {
  width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left;
  font: 14px var(--font-body); color: var(--ink); background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 9px 2px; cursor: pointer;
}
.results button span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.results .empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }
.now { font-size: 13px; color: var(--muted); padding-top: 8px; font-variant-numeric: tabular-nums; }
.now b { color: var(--ink); font-weight: 600; }

button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Next-up */
.next {
  background: linear-gradient(160deg, #1b2036, var(--surface)); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; display: grid; gap: 2px;
}
.next .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.next .t { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.next .s { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Overview */
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.overview > div { background: var(--paper); padding: 10px 0; display: grid; gap: 2px; min-width: 0; }
.overview > div:nth-child(even) { padding-left: 14px; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.val { font-weight: 600; font-variant-numeric: tabular-nums; }

h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 0 0 4px; letter-spacing: -.025em; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

/* Schedule */
.day { margin-top: 14px; }
.day h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.sessions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sessions li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sessions li.past { opacity: .45; }
.time { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time small { font-size: 12px; font-weight: 500; margin-left: 2px; }
/* Burmese and Thai stack marks above and below the line; give them more room */
:lang(my) .theme b, :lang(my) .theme span, :lang(my) .what strong, :lang(my) .topic, :lang(my) .next .t, :lang(my) .sub,
:lang(th) .theme span, :lang(th) .topic { line-height: 1.75; }
.time small.pre { margin: 0 3px 0 0; } /* languages that put the day period first, e.g. Korean 오후 7:00 */
.what { min-width: 0; display: grid; gap: 2px; }
.what strong { font-weight: 600; display: flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.what .topic { font-size: 14px; color: var(--muted); line-height: 1.4; padding-left: 30px; }
.num {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink); font: 700 12px var(--font-display); font-variant-numeric: tabular-nums;
}
.num.blank { visibility: hidden; } /* keeps unnumbered items (Q&A, Feast) aligned with the numbered ones */
.what .ref { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; padding-left: 30px; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .08em; border-radius: 999px; padding: 2px 8px; }
.pill.next-p { background: var(--brand); color: var(--on-brand); }
/* In progress: filled with a pulsing dot; the following meeting then gets an outline "Next" */
.pill.live-p { background: var(--brand-grad); color: var(--on-brand); display: inline-flex; align-items: center; gap: 5px; }
.pill.soon-p { border: 1px solid var(--brand); color: var(--accent); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.next .k .dot { margin-right: 6px; vertical-align: 1px; }
.next.live { border-color: var(--brand); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.pill.night { border: 1px solid var(--line); color: var(--muted); }

/* Zoom */
.zoom { background: linear-gradient(160deg, #1b2036, var(--surface)); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 10px; }
.zoom h2 { margin: 0; }
.cred { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cred .val { font-family: var(--font-display); font-size: 18px; letter-spacing: .02em; }
.cred .val.tbd { font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.copy {
  font: 600 13px var(--font-body); color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; flex: 0 0 auto;
}
.join {
  display: block; text-align: center; text-decoration: none;
  background: var(--brand-grad); color: var(--on-brand); font-weight: 600;
  border-radius: 12px; padding: 11px;
}

footer { font-size: 13px; color: var(--muted); }

@media (min-width: 640px) {
  body { padding-inline: 24px; }
  .sessions li { grid-template-columns: 112px 1fr; }
  body { font-size: 16px; }
  h2 { font-size: 24px; }
  .time { font-size: 21px; }
  .next .t { font-size: 24px; }
  .dates { font-size: 19px; }
  .theme b { font-size: 18px; }
}
