@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&family=Dancing+Script:wght@600;700&display=swap');

/*
  Vacation Craver - trip portal
  Brand-locked dark theme, taken from the Himachal Pradesh flyer:
  night-mountain background, amber CTA, sky-blue highlights,
  condensed display type with a script accent.
*/

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0a0d13;
  --bg-glow-warm: rgba(234, 88, 12, 0.22);
  --bg-glow-cool: rgba(14, 165, 233, 0.13);
  --surface: #141922;
  --surface-2: #1a212c;
  --surface-3: #212a38;
  --border: #28313f;
  --border-strong: #3a4657;

  /* text */
  --text: #f3f6fa;
  --muted: #98a4b6;
  /* 4.9:1 on --bg. The old #6b7686 measured 4.22 and failed AA at 12-13px. */
  --faint: #7d8798;

  /* brand */
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.13);
  --ember: #ea580c;
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.13);
  --on-amber: #140f04;

  /* status */
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.13);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.13);

  /* shape */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);

  /* type */
  --display: 'Barlow Condensed', 'Arial Narrow', ui-sans-serif, system-ui, sans-serif;
  --body: 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Dancing Script', ui-rounded, cursive;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed mountain scene behind everything. bg.webp (photo) sits above the
   built-in bg.svg and takes over if it exists; the scrim keeps text readable
   either way and fades to the page colour so the cards never fight the picture. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 13, 19, 0.26) 0%, rgba(10, 13, 19, 0.62) 36%, rgba(10, 13, 19, 0.90) 78%, var(--bg) 100%),
    url('bg.webp') center / cover no-repeat,
    url('bg.svg') center 35% / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 18px calc(80px + env(safe-area-inset-bottom));
}

/* ------------------------------------------------------------- brand + hero */

.brandbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px 0 0;
  color: var(--amber);
}

.brandbar__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--amber);
  border-radius: 50%;
}

.brandbar__mark svg {
  width: 16px;
  height: 16px;
}

.brandbar__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero {
  padding: 20px 0 6px;
}

.hero__dates {
  display: inline-block;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-bright);
  border-bottom: 2px solid var(--ember);
  padding-bottom: 3px;
  margin-bottom: 10px;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(44px, 15vw, 68px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  background: linear-gradient(176deg, #ffffff 34%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Internal screens (admin) keep a solid title - the gradient is a
   traveller-facing brand treatment, not general decoration. */
.hero__title--solid {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
}

.hero__tagline {
  font-family: var(--script);
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 600;
  color: var(--amber);
  margin: 2px 0 0;
  line-height: 1.2;
}

.hero__lede {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 15.5px;
}

/* Route strip. On phones it's a rule above centred text, since the
   flyer's side-rules break apart as soon as the route wraps. */
.route {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.route__text {
  display: block;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

@media (min-width: 600px) {
  .route {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 0;
    border-top: 0;
  }

  .route::before,
  .route::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  }
}

/* ------------------------------------------------------------- whoami */

.whoami {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.whoami__avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--amber), var(--ember));
  color: var(--on-amber);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.whoami__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------- tabs */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 14px 0 22px;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  min-width: 0;
  overflow: hidden;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.tab:hover {
  color: var(--text);
}

.tab svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.tab__count {
  flex: none;
}

.tab[aria-selected='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tab[aria-selected='true'] svg {
  color: var(--amber);
}

.tab__count {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
}

.tab[aria-selected='true'] .tab__count {
  background: var(--amber-soft);
  color: var(--amber-bright);
}

/* ------------------------------------------------------------- sections */

.section {
  margin: 28px 0 0;
}

.section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 11px;
}

.section__count {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--faint);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 9px;
}

.section__hint {
  font-size: 14.5px;
  color: var(--muted);
  margin: -4px 0 13px;
}

.section__hint strong {
  color: var(--text);
  font-weight: 600;
}

/* ------------------------------------------------------------- cards */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 11px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.card--mine {
  border-color: var(--sky);
  background: linear-gradient(170deg, var(--sky-soft), transparent 55%), var(--surface);
}

.card--full {
  opacity: 0.6;
}

.card--joinable:hover {
  border-color: var(--border-strong);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.card__name {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(19px, 5.2vw, 22px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  flex: none;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--mine {
  background: var(--sky-soft);
  color: var(--sky);
}

.badge--full {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge--open {
  background: var(--amber-soft);
  color: var(--amber-bright);
}

/* seat meter */

.seats {
  display: flex;
  gap: 4px;
  margin-bottom: 13px;
}

.seat {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: var(--surface-3);
}

.seat--taken {
  background: linear-gradient(90deg, var(--amber), var(--ember));
}

.card--mine .seat--taken {
  background: linear-gradient(90deg, var(--sky), #0ea5e9);
}

.members {
  list-style: none;
  margin: 0;
  padding: 0;
}

.member {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  padding: 4px 0;
}

.member__dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}

.member__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.member__remove {
  flex: none;
  min-width: 68px;
  min-height: 44px;
}

.member--me {
  font-weight: 600;
  color: var(--sky);
}

.member--me .member__dot {
  background: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-soft);
}

.member__tag {
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.empty-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  color: var(--faint);
  font-size: 14px;
}

.empty-slot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
}

/* ------------------------------------------------------------- join requests */

.card__note {
  margin: 9px 0 0;
  font-size: 13.5px;
  color: var(--faint);
  text-align: center;
}

/* the waiting list, shown only to whoever started the group */
.asks {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--border-strong);
}

.asks__title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin: 0 0 10px;
}

.ask {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.ask + .ask {
  border-top: 1px solid var(--border);
}

.ask__name {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask__btns {
  flex: none;
  display: flex;
  gap: 6px;
}

/* Your own pending request. Stacked on phones - side by side the label
   gets squeezed into a two-word column next to the button. */
.waiting {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 13px;
  padding: 12px 13px;
  background: var(--amber-soft);
  border: 1px dashed var(--amber);
  border-radius: var(--radius-sm);
}

.waiting__text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--amber-bright);
}

@media (min-width: 480px) {
  .waiting {
    flex-direction: row;
    align-items: center;
  }

  .waiting__text {
    flex: 1;
    min-width: 0;
  }
}

.waiting__text svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.waiting__text b {
  font-weight: 700;
}

/* ------------------------------------------------------------- buttons */

.btn {
  appearance: none;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: linear-gradient(140deg, var(--amber-bright), var(--ember));
  color: var(--on-amber);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(140deg, #fcc947, #f2650f);
}

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--amber);
}

.btn--danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}

.btn--link {
  background: none;
  border: 0;
  color: var(--amber);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  /* Padded out to a 44px tap target without growing the visible text. */
  padding: 12px 6px;
  min-height: 44px;
}

.btn--link:hover {
  color: var(--amber-bright);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--sm {
  font-size: 14px;
  padding: 7px 12px;
  min-height: 0;
}

.card__action {
  margin-top: 13px;
}

/* keyboard focus, kept visible everywhere */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 14.5px;
  color: var(--muted);
}

.chip--me {
  border-color: var(--sky);
  color: var(--sky);
  font-weight: 600;
}

/* ------------------------------------------------------------- notices */

.notice {
  display: flex;
  gap: 11px;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 15px;
  border: 1px solid;
}

.notice svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
}

.notice strong {
  font-weight: 700;
}

.notice--warm {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber-bright);
}

.notice--info {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
}

/* ------------------------------------------------------------- picker */

.picker__search {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  margin-bottom: 12px;
}

.picker__search::placeholder {
  color: var(--faint);
}




.signin__error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 14.5px;
  font-weight: 500;
}

.signin__error svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.signin__help {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--faint);
}

.signin__toggle {
  min-height: 44px;
  margin: -6px 0 6px;
  padding-left: 0;
}

/* Present for password managers and screen readers, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ------------------------------------------------------------- modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.74);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: end center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  animation: fade var(--t-base) var(--ease);
}

@media (min-width: 560px) {
  .modal-backdrop {
    place-items: center;
  }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  animation: rise var(--t-base) var(--ease);
}

.modal__title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 9px;
}

.modal__body {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15.5px;
}

.modal__body b {
  color: var(--text);
  font-weight: 600;
}

/* A quieter aside than modal__warn - context, not a warning. The recessed
   surface carries it; the amber warning below is the only accent here. */
.modal__aside {
  display: block;
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.modal__warn {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--amber-bright);
  font-weight: 600;
  font-size: 14.5px;
}

.modal__warn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.modal__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 9px;
}

@media (min-width: 420px) {
  .modal__actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .modal__actions .btn {
    min-width: 116px;
  }
}

/* ------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 60;
  max-width: calc(100vw - 32px);
  text-align: center;
  animation: rise var(--t-base) var(--ease);
}

.toast--ok {
  border-color: var(--ok);
  color: var(--ok);
}

.toast--err {
  border-color: var(--danger);
  color: var(--danger);
}

/* ------------------------------------------------------------- trip info */

.info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.info[open] {
  border-color: var(--border-strong);
}

.info__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 48px;
  transition: color var(--t-fast) var(--ease);
}

.info__head::-webkit-details-marker {
  display: none;
}

.info__head:hover {
  color: var(--amber);
}

.info__chevron {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-base) var(--ease);
}

.info[open] .info__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--amber);
}

.info__body {
  padding: 0 15px 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.info__list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}

.info__list li {
  margin-bottom: 7px;
}

.info__list li::marker {
  color: var(--amber);
}

.info__list b {
  color: var(--text);
  font-weight: 600;
}

.info__list--plain {
  list-style: none;
  padding-left: 0;
}

.info__list--plain li {
  margin-bottom: 12px;
}

.info__call {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}

.info__call svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--amber);
}

.info__call:hover b {
  color: var(--amber);
}

/* day-by-day */

.day {
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.day:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.day__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.day__n {
  font-family: var(--script);
  font-size: 23px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.day__place {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.day__title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 5px 0 9px;
  color: var(--text);
}

/* ------------------------------------------------------------- footer */

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.help {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast) var(--ease);
}

.help:hover {
  border-color: var(--amber);
}

.help__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--amber);
}

.help__icon svg {
  width: 18px;
  height: 18px;
}

.help__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.help__label {
  font-size: 12.5px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--display);
  font-weight: 600;
}

.help__value {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  color: var(--faint);
  font-size: 13px;
}

/* Pulses only while polls are actually getting through. When the server
   is unreachable it goes static and amber, and the label says so. */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 7px;
  animation: pulse 2.4s ease-in-out infinite;
}

.live-dot--off {
  background: var(--amber);
  animation: none;
}

.footer__live--off {
  color: var(--amber-bright);
}

/* ------------------------------------------------------------- motion */

@keyframes fade {
  from { opacity: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes riseX {
  from { opacity: 0; transform: translate(-50%, 14px); }
}

.toast {
  animation-name: riseX;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Stagger the cards in, ~0.06s apart (ui-ux-pro-max "Stagger List"). */
.stagger > * {
  animation: rise 380ms var(--ease) backwards;
}
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(n + 5) { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------- misc */

.skeleton {
  height: 92px;
  border-radius: var(--radius);
  background: var(--surface-2);
  margin-bottom: 11px;
}

/* Collapsible name lists on the organiser page. */
.adm-details {
  margin: 8px 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.adm-details summary {
  cursor: pointer;
  min-height: 24px;
  color: var(--text);
}
