/* Shared app-shell styling. Per-conference colours arrive as custom properties set
   inline in that conference's index.html, so this file stays event-agnostic. */

:root {
  --bg: #10203a;
  --surface: #ffffff;
  --ink: #17202f;
  --ink-soft: #5a6779;
  --accent: #e8b44a;
  --brand: #1f3a5f;
}

* {
  box-sizing: border-box;
}

html {
  /* Prevents iOS from inflating text when the device is rotated. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);

  /* In standalone mode there is no browser chrome, so the page runs under the notch
     and the home indicator. Combined with viewport-fit=cover in the meta tag, these
     insets keep content clear of both. */
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

main {
  max-width: 34rem;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.brand h1 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--surface);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

p {
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

button,
a.button {
  font: inherit;
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  /* 44px minimum touch target — below this, taps get unreliable on phones. */
  min-height: 44px;
  cursor: pointer;
}

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

.status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #eef1f6;
  color: var(--ink-soft);
}

ol.steps {
  margin: 0;
  padding-left: 1.25rem;
}

ol.steps li {
  margin-bottom: 0.4rem;
}

/* Hidden unless the platform-detection script opts it in. */
[hidden] {
  display: none !important;
}
