:root {
  --navy: #003865;
  --navy-dark: #002a4c;
  --ink: #1b2430;
  --muted: #5a6573;
  --line: #dde3ea;
  --bg: #f4f6f9;
  --card: #ffffff;
  --accent: #0a6cbd;
  --error-bg: #fdecec;
  --error-ink: #8a1c1c;
  --ok-bg: #e8f4ec;
  --ok-ink: #1d5b33;
  font-family: Inter, "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); line-height: 1.5; }

header.site {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header.site .brand { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
header.site .brand small { display: block; font-weight: 400; opacity: 0.8; font-size: 0.8rem; }

.cross-app-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.cross-app-back:hover { background: rgba(255, 255, 255, 0.24); }

main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 1.6rem; margin: 0 0 6px; }
.lede { color: var(--muted); margin: 0 0 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
}
.card h2 { font-size: 1.05rem; margin: 0 0 12px; }

.choices { display: grid; gap: 14px; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }

.choice {
  display: block;
  min-height: 44px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.choice:hover { border-color: var(--accent); }
.choice strong { display: block; font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.choice span { color: var(--muted); font-size: 0.92rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--navy-dark); }

a:focus-visible, .button:focus-visible, .choice:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 2px;
}

.notice { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.notice.error { background: var(--error-bg); color: var(--error-ink); }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice code { font-size: 0.85em; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e3edf7;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
code { font-family: "Fira Code", ui-monospace, Consolas, monospace; }

[hidden] { display: none !important; }
