/* Shared parody-gov styling for the Learner's Arcade */
:root {
  --ink: #0b0c0c;
  --paper: #ffffff;
  --muted: #505a5f;
  --line: #b1b4b6;
  --soft: #f3f2f1;
  --blue: #1d70b8;
  --green: #00703c;
  --green-dark: #005a30;
  --red: #d4351c;
  --yellow: #ffdd00;
  --purple: #4c2c92;
  --font: "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--blue); }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--ink);
}

/* Header */
.gh { background: var(--ink); color: #fff; border-bottom: 10px solid var(--blue); }
.gh__inner { max-width: 1000px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gh__logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.gh__logo small { font-weight: 400; font-size: 13px; opacity: .8; letter-spacing: 0; }
.gh__crown { font-size: 26px; line-height: 1; }
.gh__service { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; margin-left: auto; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.phase { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 15px; }
.tag { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; padding: 3px 8px 2px; margin-right: 8px; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.tag--red { background: var(--red); }
.tag--green { background: var(--green); }
.tag--yellow { background: var(--yellow); color: var(--ink); }

.back { display: inline-block; margin: 16px 0 0; font-size: 15px; color: var(--ink); }
.back::before { content: "‹ "; }

h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.05; margin: 24px 0 12px; letter-spacing: -1px; }
.lede { font-size: clamp(17px, 2.5vw, 21px); color: var(--ink); margin: 0 0 20px; max-width: 42em; }
.caption { color: var(--muted); font-size: 18px; margin: 0; }

/* Buttons */
.btn {
  font: inherit; font-weight: 700; font-size: 19px; cursor: pointer;
  background: var(--green); color: #fff; border: 0; padding: 10px 18px 9px;
  box-shadow: 0 3px 0 var(--green-dark); border-radius: 0;
  touch-action: manipulation;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--grey { background: #e5e5e5; color: var(--ink); box-shadow: 0 3px 0 #929191; }
.btn--red { background: var(--red); box-shadow: 0 3px 0 #8f2a1a; }
.btn--black { background: var(--ink); box-shadow: 0 3px 0 #444; }
.btn--small { font-size: 15px; padding: 6px 12px 5px; }

.inset { border-left: 10px solid var(--line); padding: 12px 16px; margin: 20px 0; }
.warn { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.warn::before { content: "!"; flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px; }

.gf { border-top: 1px solid var(--line); background: var(--soft); margin-top: 48px; padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.gf p { margin: 0 0 8px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(11,12,12,.72); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.modal__box { background: #fff; max-width: 480px; width: 100%; padding: 24px; border-top: 8px solid var(--ink); max-height: 90vh; overflow: auto; }
.modal__box h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.1; }
.modal__box p { margin: 0 0 14px; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(120%); background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 700; transition: transform .25s; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
