/* Pack 993 Lions · Den host - prep site (phone-friendly) */
:root {
  --navy: #003f87;
  --navy-deep: #002a5c;
  --gold: #ffb81c;
  --gold-soft: #ffe8a3;
  --cream: #f7f4ea;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #5a6570;
  --ok: #1b7a3d;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0, 63, 135, 0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.45;
  min-height: 100dvh;
  padding-bottom: calc(72px + var(--safe-bottom));
}

a { color: var(--navy); }

.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.site-header .badge {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
}

.site-header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.site-header .sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  opacity: 0.9;
  color: var(--gold);
  font-weight: 600;
}

.meta-bar {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.85rem;
  color: var(--navy-deep);
  font-weight: 600;
}

.meta-bar span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  position: sticky;
  top: 74px;
  z-index: 30;
}

.tab {
  flex: 0 0 auto;
  appearance: none;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.tab[aria-selected="true"] {
  background: var(--navy);
  color: var(--white);
}

.tab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

main {
  padding: 14px 14px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.panel { display: none; }
.panel.active { display: block; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 63, 135, 0.08);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.card p, .card li {
  font-size: 0.92rem;
}

.timing {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.script {
  background: #eef4fb;
  border-left: 4px solid var(--navy);
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
}

.script strong { color: var(--navy); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e8e4d8;
}

.checklist li:last-child { border-bottom: none; }

.checklist input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.checklist label {
  flex: 1;
  cursor: pointer;
}

.checklist .done label {
  text-decoration: line-through;
  color: var(--muted);
}

.law-block {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.law-block .label {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.law-block .words {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
}

.law-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.law-points span {
  background: rgba(255, 184, 28, 0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.law-points span.focus {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  background: var(--navy);
}

.btn.gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn:active { transform: scale(0.98); }

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.alert {
  background: #fff6e0;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin: 8px 0;
}

.alert strong { color: var(--navy-deep); }

.year-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.year-list li {
  padding: 12px;
  border-radius: 10px;
  background: #eef4fb;
  margin-bottom: 8px;
  border-left: 4px solid var(--gold);
}

.year-list .when {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.9rem;
}

.year-list .what {
  font-size: 0.88rem;
  margin-top: 2px;
}

.progress {
  font-size: 0.8rem;
  color: var(--ok);
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-links {
  text-align: center;
  padding: 8px 16px 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links a { font-weight: 700; }

@media (min-width: 600px) {
  .site-header h1 { font-size: 1.35rem; }
  .site-header .badge { width: 56px; height: 56px; }
  main { padding: 18px 20px 28px; }
}
