/* AHERA.org — the style shared by the pages for each place (site/states/ and site/es/states/).
   The same sign system as the main page (web/page.tpl): colored plates with a line set in from the edge,
   number keys in each question's color, the round signs for webinar and self-paced. Copied by web/build.py. */
@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Arial"); font-weight: 400 900; size-adjust: 97.4%; ascent-override: 90.3%; descent-override: 39%; line-gap-override: 0%; }
:root {
  --green: #00694b; --white: #fff; --black: #0c0c0d; --yellow: #ffcd00; --blue: #0b4da1; --red: #c4122f;
  --dark: #101112; --wall: #17181a; --amber: #ffb000;
  --font: "Overpass", "Overpass Fallback", Arial, "Helvetica Neue", sans-serif;
  --gap: clamp(7px, .9vw, 12px); --bw: clamp(4px, .5vw, 7px); --r: clamp(18px, 2.4vw, 30px);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--wall); }
body { font-family: var(--font); font-weight: 600; line-height: 1.3; color: var(--black); -webkit-font-smoothing: antialiased; width: min(100% - 2 * var(--gap), 62rem); margin: var(--gap) auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
a { color: inherit; }
ol, ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.reg :focus-visible, .warn :focus-visible { outline-color: var(--blue); }
.skip { position: fixed; top: .6rem; left: .6rem; z-index: 80; background: var(--yellow); color: var(--black); font-weight: 800; padding: .8em 1em .65em; border-radius: .5em; transform: translateY(-300%); }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* a sign: a colored plate with a line set in from the edge */
.sign { position: relative; isolation: isolate; border-radius: var(--r); padding: calc(var(--gap) + var(--bw)); background-color: var(--face); color: var(--ink); }
.sign::before { content: ""; position: absolute; inset: var(--gap); border: var(--bw) solid var(--ink); border-radius: calc(var(--r) - var(--gap)); pointer-events: none; z-index: 3; }
.guide { --face: var(--green); --ink: var(--white); }
.reg { --face: var(--white); --ink: var(--black); }
.warn { --face: var(--yellow); --ink: var(--black); }
.info { --face: var(--blue); --ink: var(--white); }
.night { --face: var(--dark); --ink: var(--white); }
.plate { --gap: 3px; --bw: 2px; --r: .5em; display: inline-block; font-weight: 800; line-height: 1; padding: .74em .9em .56em; white-space: nowrap; text-decoration: none; }
.key { --kb: 2px; display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; flex: none; border-radius: .32em; background: var(--face); color: var(--ink); box-shadow: inset 0 0 0 .1em var(--face), inset 0 0 0 calc(.1em + var(--kb)) var(--ink); font-weight: 800; line-height: 1; padding-top: .14em; text-decoration: none; }

/* the head plate: the place, when it was checked, who to call, the rules */
.top > * { position: relative; z-index: 4; }
.bar { display: flex; align-items: center; gap: .6rem; padding: clamp(.6rem, 1.6vw, 1.1rem) clamp(.8rem, 2.6vw, 2rem) 0; }
.brand { font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.lang { margin-left: auto; font-size: 1rem; }
.lang:hover { background: var(--white); color: var(--black); }
.head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(.9rem, 2.4vw, 1.8rem); align-items: center; padding: clamp(1rem, 3vw, 2.2rem) clamp(.8rem, 2.6vw, 2rem) clamp(.6rem, 1.6vw, 1.2rem); }
.tag { --d: clamp(4.2rem, 10vw, 7rem); width: var(--d); height: var(--d); border-radius: 22%; background: var(--white); color: var(--black); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 9px var(--black); display: grid; place-items: center; font-weight: 800; font-size: calc(var(--d) * .38); line-height: 1; padding-top: .14em; }
.kicker { font-weight: 800; font-size: clamp(.8rem, 1vw, .92rem); letter-spacing: .08em; text-transform: uppercase; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .92; letter-spacing: -.015em; margin-top: .12em; text-wrap: balance; }
.lede { margin-top: .5em; font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 38ch; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1.2rem; align-items: baseline; margin: 0 clamp(.8rem, 2.6vw, 2rem); padding: 1rem 0; border-top: 3px solid rgb(255 255 255 / .5); }
.facts div { display: contents; }
.facts dt { font-weight: 800; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { font-weight: 700; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.facts a { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.facts small { display: block; margin-top: .2em; font-weight: 600; font-size: .9rem; color: #c9c9c4; }
.led { display: inline-block; background: #070707; color: var(--amber); font-weight: 800; font-size: 1.05rem; letter-spacing: .16em; line-height: 1; padding: .5em .6em .36em; border-radius: 5px; box-shadow: inset 0 0 0 2px #2c2c2c; text-shadow: 0 0 .45em rgb(255 138 0 / .55); }
.jump { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 clamp(.8rem, 2.6vw, 2rem) clamp(1rem, 2.4vw, 1.6rem); }
.jump .key { font-size: 1.15rem; width: 44px; height: 44px; }
.jump .key:hover { scale: 1.08; }

/* one plate for each question */
.q > * { position: relative; z-index: 4; }
.q { padding: calc(var(--gap) + var(--bw) + clamp(1rem, 2.6vw, 1.9rem)) calc(var(--gap) + var(--bw) + clamp(1rem, 2.8vw, 2.2rem)); display: grid; gap: .7rem; scroll-margin-top: var(--gap); }
.qh { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; }
.qh .key { font-size: clamp(1.15rem, 2vw, 1.5rem); --kb: 3px; }
h2 { font-weight: 800; font-size: clamp(1.45rem, 3.4vw, 2.3rem); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.short { font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.15; text-wrap: balance; }
.ans { font-weight: 600; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.38; max-width: 70ch; }
.same { display: inline-block; margin-right: .5em; padding: .34em .55em .16em; border-radius: .4em; background: var(--green); color: var(--white); font-weight: 800; font-size: .74em; letter-spacing: .06em; text-transform: uppercase; line-height: 1; vertical-align: .1em; }
.guide .same { background: var(--white); color: var(--green); }
.fed { padding: .7em .9em .65em; border-radius: .6em; background: rgb(255 255 255 / .16); max-width: 72ch; }
.reg .fed, .warn .fed { background: rgb(0 0 0 / .07); }
.fed h3 { font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .3em; }
.fed p { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.src { font-weight: 600; font-size: .9rem; line-height: 1.35; opacity: .9; }
.signs { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-weight: 700; font-size: 1rem; }
.signs span.line { display: inline-flex; align-items: center; gap: .5em; }
/* round signs: allowed, webinar only, not allowed, over the internet (kind not said), part by webinar, not said */
.sym { --d: 2rem; position: relative; width: var(--d); height: var(--d); flex: none; border-radius: 50%; background: var(--white); border: calc(var(--d) * .1) solid var(--green); display: grid; place-items: center; color: var(--black); }
.sym svg { width: 56%; height: 56%; fill: currentColor; }
.sym.no { border-color: var(--red); }
.sym.no::after { content: ""; position: absolute; width: 100%; height: calc(var(--d) * .1); background: var(--red); rotate: 45deg; }
.sym.live::before, .sym.part::before { content: ""; position: absolute; top: 12%; right: 12%; width: 24%; height: 24%; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--white); }
.sym.part { border-style: dashed; }
.sym.net::after, .sym.unsaid::after { content: "?"; position: absolute; top: -6%; right: -6%; display: grid; place-items: center; width: 42%; height: 42%; border-radius: 50%; background: var(--yellow); color: var(--black); box-shadow: 0 0 0 2px var(--black); font-weight: 800; font-size: calc(var(--d) * .3); line-height: 1; padding-top: .1em; }
.sym.unsaid { border-color: #8a8d91; color: #6b6e72; }
.sym.unsaid::after { background: var(--white); }

/* the last plate */
.end > * { position: relative; z-index: 4; }
.end { padding: calc(var(--gap) + var(--bw) + clamp(1rem, 2.6vw, 1.9rem)) calc(var(--gap) + var(--bw) + clamp(1rem, 2.8vw, 2.2rem)); display: grid; gap: .6rem; }
.end .big { font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2.3rem); line-height: 1; }
.end p { font-weight: 700; font-size: 1.05rem; }
.ways { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.ways .plate { font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center; white-space: normal; text-align: left; line-height: 1.15; }
.ways .plate:hover { background: var(--white); color: var(--black); }
.sig { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding-top: .8rem; border-top: var(--bw) solid var(--black); font-size: .95rem !important; }
.report-open { display: none; }
.ask-ok .report-open { display: inline-flex; }

/* report a mistake */
dialog:not([open]) { display: none; }
dialog.report { position: fixed; inset: 0; margin: auto; width: min(100% - 2 * var(--gap), 34rem); height: fit-content; max-height: calc(100dvh - 2 * var(--gap)); overflow: auto; border: 0; box-shadow: 0 0 0 3px var(--black), 0 26px 70px 6px rgb(0 0 0 / .7); }
dialog.report::backdrop { background: rgb(8 8 9 / .64); }
.report-in { position: relative; z-index: 4; display: grid; gap: .7rem; padding: clamp(1rem, 3vw, 1.6rem); }
.report-in h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1; }
.report-in label { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.report-in textarea { width: 100%; min-height: 8rem; resize: vertical; font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.3; padding: .6em .7em; border: var(--bw) solid var(--black); border-radius: .6em; background: var(--white); color: var(--black); }
.report-msg { min-height: 1.3em; font-weight: 800; }
.report-kinds { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .3rem; }
.report-kinds legend { padding: 0; margin-bottom: .35rem; font-weight: 800; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.report-in .report-kinds label { display: flex; align-items: center; gap: .6em; min-height: 44px; padding: .35em .7em .25em; border-radius: .55em; box-shadow: inset 0 0 0 2px var(--black); font-weight: 700; font-size: 1.02rem; line-height: 1.15; cursor: pointer; }
.report-in .report-kinds label:has(input:checked) { background: var(--black); color: var(--white); }
.report-kinds input { flex: none; width: 1.15em; height: 1.15em; margin: 0; accent-color: var(--yellow); }
.report-in input[type="email"] { width: 100%; min-width: 0; font: inherit; font-weight: 600; font-size: 1.05rem; padding: .6em .7em .5em; border: var(--bw) solid var(--black); border-radius: .6em; background: var(--white); color: var(--black); }
.report-note { margin-top: -.35rem; font-weight: 600; font-size: .92rem; }
.report-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-keys { display: flex; flex-wrap: wrap; gap: .5rem; }
.report-keys button { min-height: 44px; padding: .6em 1em .46em; border-radius: .55em; font-weight: 800; font-size: 1.05rem; line-height: 1; box-shadow: inset 0 0 0 3px var(--black); }
.report-keys button[value="send"] { background: var(--black); color: var(--white); }
.report-keys button:hover, .report-keys button:focus-visible { background: var(--yellow); color: var(--black); }

@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .facts dd { margin-bottom: .55rem; }
  .head { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* print: one sheet, black on white, two columns */
@media print {
  @page { margin: 12mm; }
  html { background: none; }
  body { width: auto; margin: 0; display: block; font-size: 9pt; line-height: 1.25; color: #000; }
  .sign, .sign::before { background: none !important; color: #000 !important; border: 0; box-shadow: none; padding: 0; }
  .sign::before { display: none; }
  .skip, .bar, .jump, .ways, .report-open, dialog, .lede { display: none !important; }
  .head { padding: 0 0 4pt; gap: 8pt; }
  .tag { --d: 30pt; box-shadow: inset 0 0 0 1.5pt #000; }
  h1 { font-size: 20pt; }
  .facts { margin: 0; padding: 4pt 0; border-top: 1pt solid #000; gap: 2pt 8pt; }
  .facts dt, .facts dd, .facts small { font-size: 8pt; color: #000; }
  .led { background: none; color: #000; box-shadow: none; padding: 0; text-shadow: none; font-size: 8pt; }
  main { columns: 2; column-gap: 14pt; margin-top: 6pt; }
  .q { break-inside: avoid; padding: 0 0 6pt; gap: 2pt; }
  .qh .key { font-size: 9pt; box-shadow: inset 0 0 0 1pt #000; background: none; color: #000; }
  h2 { font-size: 10.5pt; }
  .short { font-size: 9.5pt; }
  .ans, .fed p, .signs { font-size: 8.5pt; }
  .fed { background: none !important; padding: 0 0 0 6pt; border-left: 1.5pt solid #000; border-radius: 0; }
  .fed h3, .src { font-size: 7.5pt; }
  .same { background: none; color: #000; border: 1pt solid #000; }
  .sym { --d: 12pt; }
  .end { margin-top: 6pt; padding-top: 4pt; border-top: 1pt solid #000; }
  .end .big { font-size: 10pt; }
  .end p, .sig { font-size: 8pt !important; border: 0; padding: 0; }
  a { text-decoration: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
