/* ==========================================================================
   NBBOA AGM 2027: on-site guide (guide/index.html)
   Builds on styles.css for tokens, buttons, the language toggle and the
   program tabs. Mobile-first, high contrast and nearly motion-free: it is
   read on a phone between sessions.
   ========================================================================== */

html[data-page="guide"] { scroll-padding-top: 1rem; }

.guide {
  --container: 46rem;
  --danger: #b42318;
  background: var(--ivory);
  color: var(--ink);
}

.quick :focus-visible,
.g-section:not(.g-section--dark) :focus-visible { outline-color: var(--teal-700); }

.icon--inline { display: inline-block; width: 1em; height: 1em; margin-left: .35em; vertical-align: -.125em; }

/* ---------- Header ---------- */
.g-header {
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line-dark);
  background: var(--navy-950);
  color: var(--on-dark);
}
.g-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.g-header .brand img { width: 52px; }

/* ---------- Now / next ---------- */
.g-now {
  padding-block: 1.75rem 2.25rem;
  background: radial-gradient(110% 80% at 85% 0%, var(--navy-700) 0%, var(--navy-900) 60%);
  color: var(--on-dark);
}
.g-eyebrow {
  margin-bottom: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.g-title {
  margin-bottom: 1.25rem;
  font-size: var(--step-3);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.025em;
}
.g-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--lime-400);
}

.now-card {
  padding: 1.25rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
}
.now-fallback { color: var(--teal-300); font-weight: 600; text-underline-offset: 3px; }
.now-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime-400);
}
.now-label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.now-time {
  margin-top: .85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--teal-300);
}
.now-title {
  margin-top: .2rem;
  font-size: var(--step-2);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.now-desc { margin-top: .45rem; color: var(--on-dark-soft); }
.now-card .btn { margin-top: 1.1rem; }
.now-next {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}
.now-next-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.now-next-title { margin-top: .2rem; font-size: var(--step-1); font-weight: 600; line-height: 1.35; }
.g-preview { margin-top: .85rem; font-size: .875rem; font-weight: 600; color: var(--lime-400); }
.g-tip { margin-top: .85rem; font-size: .875rem; color: var(--on-dark-soft); }
/* Already opened from the home screen: the tip has done its job */
@media (display-mode: standalone) { .g-tip { display: none; } }

/* ---------- Quick links ---------- */
.quick {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line-light);
  background: var(--ivory);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  list-style: none;
}
.quick-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 84px;
  padding: .75rem .4rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}
.quick-grid a:hover { border-color: var(--teal-700); background: #fbfdfc; }
.quick-grid .icon { width: 24px; height: 24px; color: var(--teal-700); }
/* A lone button on the last row spans the full width instead of sitting in a corner */
.quick-grid li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.quick-grid li:last-child:nth-child(3n + 1) a { flex-direction: row; min-height: 56px; }

/* ---------- Sections ---------- */
.g-section { padding-block: 2.5rem; }
.g-section:not(.g-section--dark) + .g-section:not(.g-section--dark) { border-top: 1px solid var(--line-light); }
.g-section--dark { background: var(--navy-900); color: var(--on-dark); }
.g-h2 {
  margin-bottom: 1rem;
  font-size: var(--step-2);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.015em;
}
.g-lead { margin-bottom: 1.25rem; color: var(--ink-soft); }
.g-section--dark .g-lead { color: var(--on-dark-soft); }

/* Dining: cards come from the main page and use its .spot styles */
.g-dining .spots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.g-dining .dine-note { margin-top: 1.25rem; }
.g-note { margin-top: 1.25rem; max-width: 36rem; font-size: .9375rem; color: var(--ink-soft); }
.g-card {
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}

/* Schedule: reuses the program tabs from styles.css */
.schedule-fallback a { color: var(--teal-300); font-weight: 600; text-underline-offset: 3px; }
.schedule .session.is-past .session-title,
.schedule .session.is-past .session-time { color: var(--on-dark-soft); }
.schedule .session.is-now {
  margin-inline: -.75rem;
  padding-right: .75rem;
  padding-left: calc(1.75rem + .75rem);
  border-radius: var(--radius);
  background: rgba(215, 223, 35, .08);
}
.schedule .session.is-now::before { left: calc(4px + .75rem); }
.schedule .session.is-now::after {
  left: .75rem;
  background: var(--lime-400);
  box-shadow: inset 0 0 0 2px var(--lime-400);
}
@media (min-width: 720px) {
  .schedule .session.is-now { padding-left: calc(2rem + .75rem); }
}
.now-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 .5rem .55rem 0;
  padding: .28rem .65rem;
  border-radius: var(--radius-pill);
  background: var(--lime-400);
  color: var(--navy-900);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Wi-Fi */
.wifi { padding: 1.25rem; }
.wifi-list { display: grid; gap: 1.1rem; }
.wifi-list dt {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wifi-list dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: .2rem;
}
.wifi-value { font-size: var(--step-1); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.wifi-value--code { font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; letter-spacing: .02em; }
.wifi-pending { color: var(--ink-soft); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem 1.05rem;
  border: 1.5px solid var(--teal-700);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--teal-700);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.copy-btn:hover { background: rgba(14, 124, 118, .08); }
.copy-btn .icon { width: 1.1em; height: 1.1em; }
.copy-btn .icon-done, .copy-btn .copy-done,
.copy-btn.is-copied .icon-copy, .copy-btn.is-copied .copy-idle { display: none; }
.copy-btn.is-copied .icon-done, .copy-btn.is-copied .copy-done { display: inline; }
.copy-btn.is-copied { background: var(--teal-700); color: #fff; }

/* Where to go and AGM documents */
.place-list, .doc-list, .help-list { list-style: none; padding: 0; }
.place-list li, .doc-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .2rem 1rem;
  padding: .95rem 1.25rem;
}
.place-list li + li, .doc-list li + li, .help-list li + li { border-top: 1px solid var(--line-light); }
.place-name, .doc-name { font-weight: 600; color: var(--ink); }
.place-where, .doc-status { font-size: .9375rem; color: var(--ink-soft); }

.doc-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .1rem .8rem;
}
.doc-list li > .icon { width: 20px; height: 20px; color: var(--teal-700); }
.doc-list .doc-status { grid-column: 2; font-size: .875rem; }
.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  margin-block: -.5rem;
  color: var(--ink);
  text-decoration: none;
}
.doc-link .doc-name { text-decoration: underline; text-decoration-color: var(--teal-700); text-underline-offset: 3px; }
.doc-link .icon { width: 18px; height: 18px; color: var(--teal-700); }
.doc-link:hover .doc-name { color: var(--teal-700); }

/* Feedback */
#feedback .btn { margin-top: .25rem; }

/* Help */
.help-list li { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; }
.help-list li > .icon { width: 22px; height: 22px; margin-top: .2rem; color: var(--teal-700); }
.help-list h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.help-list p { margin-top: .15rem; color: var(--ink-soft); }
.help-list a { color: var(--teal-700); font-weight: 600; text-underline-offset: 3px; }
/* Taller tap areas for the email, phone and map links without spreading the card out */
.help-list p > a, .schedule-fallback a {
  display: inline-block;
  padding-block: .8rem;
  margin-block: -.8rem;
}
.help-emergency { background: #fdf3f2; }
.help-emergency > .icon, .help-emergency h3, .help-emergency a { color: var(--danger); }
.help-emergency p { font-size: var(--step-1); font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.g-footer {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
  background: var(--navy-950);
  color: var(--on-dark-soft);
  font-size: .875rem;
}
.g-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .quick-grid a, .copy-btn { transition: none; }
}
