/* AZ Did What!? Layout ported from docs/reference/mockup/digest-brand.html: a full-bleed flag masthead
   over a white column, with the list on the left and signup and dates on the right.
   Fonts are self-hosted (see fonts/SOURCES.txt); nothing here loads from another host. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

/* Brand colors are the owner's. Copper is 4.2:1 on white, so it is only used for the star, borders and
   large type; small text uses maroon, navy or ink (all well above 4.5:1). */
:root {
  color-scheme: light;
  --navy: #121E31;
  --night: #0F1D33;
  --mist: #E2E8F0;
  --copper-deep: #A9481B;
  --copper: #C85A28;
  --maroon: #5B1926;
  --ink: #141414;
  --ray-red: #b8202f;
  --ray-gold: #f0a020;
  --muted: #565d70;
  --line: #d9dbe3;
  --tint: #eceef5;
  --paper: #ffffff;
  --side: #0b1220;
  --warn: #f0a020;
  --flag-text: #231a00;
  --notice-bg: #fff6e0;
  --signup-bg: #fbf2e6;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body { background: var(--side); color: var(--ink); font: 17px/1.5 var(--body); }
.wrap { max-width: 1080px; margin: 0 auto; background: var(--paper); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--paper); color: var(--maroon); padding: 8px 12px; font-weight: 700; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead: the Arizona flag read as a horizon. The rays rise from the nav bar, and the nav is the flag's
   blue field. The artwork is a fixed-size image pinned to the logo, so resizing only reveals more of it:
   the star never moves relative to the logo and never scales. */
.masthead { background: var(--night); color: #fff; }
.horizon { --star-x: calc(50% - 540px + 492px); position: relative; overflow: hidden; }
.burst { position: absolute; bottom: 0; left: calc(var(--star-x) - 2500px); width: 5000px; height: 320px; max-width: none; }
.brand { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 16px 24px 14px; }
.logo { display: block; width: 320px; }
.logo img { display: block; width: 100%; height: auto; }
/* The tagline sits tight under WHAT!?, inside the logo's own box, so its bottom edge meets the bottom of the state. */
.tagline { position: relative; width: 192px; margin: -20px 0 0 7px; padding: 1px 0; border-block: 2px solid var(--mist); font: 700 .84rem/1 var(--head); letter-spacing: .035em; color: var(--mist); text-align: center; text-transform: uppercase; white-space: nowrap; }
/* The session stamp, slapped on the flag. Scoped to .brand: plain .stamp is also the small grey note style. */
.brand .stamp { position: absolute; right: 34px; top: 50%; transform: translateY(-50%) rotate(-5deg); margin: 0; color: #fff; background: rgba(15,29,51,.93); border: 3px solid #fff; outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; padding: 7px 16px 8px; text-align: center; }
.brand .stamp b { display: block; font: 800 1.7rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.brand .stamp-accent { color: #F29B27; }
.brand .stamp span { display: block; margin-top: 5px; font: 700 .86rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--mist); }
.masthead nav { background: var(--navy); border-top: 2px solid var(--copper); position: relative; z-index: 2; }
.nav-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.masthead nav a { color: var(--mist); font: 600 1.15rem var(--head); letter-spacing: .015em; text-decoration: none; padding: 10px 0 8px; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: #fff; border-bottom-color: var(--mist); }
.masthead nav a[aria-current] { color: #fff; border-bottom-color: var(--ray-gold); }
.search { display: flex; align-items: center; gap: 8px; width: 300px; min-height: 36px; padding: 0 10px; background: #fff; color: var(--copper-deep); border-radius: 3px; }
.search svg { flex: none; }
.search input { width: 100%; min-width: 0; padding: 6px 0; border: 0; background: none; color: var(--ink); font: 500 .95rem var(--body); outline: 0; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { outline: 3px solid var(--ray-gold); outline-offset: 1px; }
.logo:focus-visible { outline-color: #fff; }

main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; padding: 32px 24px 48px; overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.08; text-wrap: balance; }
h1 { font-size: 3.2rem; font-weight: 800; letter-spacing: -.005em; }
a { color: var(--maroon); }
.dek { font-size: 1.2rem; line-height: 1.4; margin: 10px 0 6px; max-width: 58ch; }
.stamp { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.showme { font: 700 1.05rem var(--head); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.chip { font: 600 .9rem var(--body); padding: 4px 11px; border-radius: 3px; border: 1.5px solid var(--navy); background: none; color: var(--navy); text-decoration: none; }
.chip:hover { background: var(--tint); }
.chip.on { background: var(--navy); color: #fff; }

.part { font: 800 1.9rem var(--head); margin: 38px 0 0; color: var(--navy); }
.part small { font: 600 1rem var(--body); color: var(--muted); }
.sect { display: flex; align-items: baseline; gap: 8px; border-bottom: 3px solid var(--ink); padding-bottom: 4px; margin: 26px 0 0; font: 700 1.35rem var(--head); }
.sect small { font: 600 .95rem var(--body); color: var(--muted); }
.found { border-bottom: 3px solid var(--ink); padding-bottom: 4px; margin: 26px 0 0; font: 700 1.2rem var(--head); }
.found:empty { border: 0; padding: 0; margin: 0; }
.empty { border: 1px dashed var(--line); padding: 14px 16px; margin: 18px 0 0; color: var(--ink); }

.law { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.law.plain { grid-template-columns: minmax(0, 1fr); }
.law:hover .line a { text-decoration: underline; }
.law:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; }
.law .line a:focus-visible { outline: none; }
.line { display: block; font: 600 1.08rem/1.35 var(--body); margin: 0 0 7px; }
.line a { color: var(--ink); text-decoration: none; }
.line a::after { content: ""; position: absolute; inset: 0; }
.law:hover .line a { color: var(--maroon); }
.law.big .line { font: 700 1.55rem/1.15 var(--head); }
.badge { width: 34px; height: 30px; background: var(--maroon); color: #fff; font: 800 1.15rem/30px var(--head); text-align: center; grid-row: span 2; clip-path: polygon(0 0, 100% 0, 100% 80%, 62% 80%, 62% 100%, 22% 80%, 0 80%); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; font-size: .88rem; color: var(--muted); }
.tag { padding: 1px 7px; border-radius: 3px; font-size: .84rem; }
.g { background: var(--tint); color: var(--navy); font-weight: 600; }
.t { border: 1px solid var(--line); color: var(--muted); }
.num { font-family: var(--mono); font-size: .8rem; }
.flag { background: var(--warn); color: var(--flag-text); padding: 1px 7px; border-radius: 3px; font-size: .84rem; font-weight: 700; }
.flag.soft { background: var(--tint); color: var(--navy); }

aside { display: grid; gap: 24px; align-content: start; }
.signup { border: 3px solid var(--copper); background: var(--signup-bg); padding: 14px; display: grid; gap: 9px; }
.signup h3 { font-size: 1.55rem; font-weight: 800; }
.signup input { font: inherit; padding: 8px 10px; border: 1px solid var(--navy); border-radius: 3px; width: 100%; background: #fff; color: var(--ink); }
.signup button { font: 700 1.1rem var(--head); padding: 9px; background: var(--navy); color: #fff; border: 0; border-radius: 3px; cursor: pointer; }
.signup .fine { margin: 0; font-size: .88rem; color: var(--muted); }
.signup p { margin: 0; }
.signup a.button { display: block; text-align: center; text-decoration: none; font: 700 1.1rem var(--head); padding: 9px; background: var(--navy); color: #fff; border-radius: 3px; }
.side h3 { font-size: 1.35rem; font-weight: 700; border-bottom: 3px solid var(--ink); padding-bottom: 4px; }
.side a { display: block; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: .96rem; line-height: 1.3; }
.side a:hover { text-decoration: underline; }
.side b { display: block; font: 700 1.02rem var(--head); color: var(--maroon); }
.side p { margin: 10px 0 0; font-size: .92rem; }

.back { font: 600 1rem var(--body); display: inline-block; margin-bottom: 14px; }
.bottom { font-size: 2.2rem; font-weight: 800; margin: 8px 0 12px; }
.official { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.notice { border-left: 5px solid var(--warn); background: var(--notice-bg); padding: 10px 12px; font-size: .95rem; margin: 14px 0 0; }
.notice p { margin: 4px 0 0; }
.dsect { font: 700 1.3rem var(--head); border-bottom: 3px solid var(--ink); padding-bottom: 4px; margin: 26px 0 0; }
.chg { list-style: none; padding: 0; margin: 0; }
.chg li { border-bottom: 1px solid var(--line); padding: 11px 0; font-size: .98rem; line-height: 1.42; }
.chg p { margin: 0 0 5px; }
.chg b { font: 700 .95rem var(--head); text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.was, .was b { color: var(--muted); }
.now b { color: var(--maroon); }
.dl { padding-left: 20px; margin: 10px 0 0; }
.val { margin: 10px 0 0; }
.dates { list-style: none; margin: 8px 0 0; padding: 0; font-size: .95rem; }
.caveat { color: var(--muted); font-size: .9rem; margin: 26px 0 0; }
.prose h2 { font-size: 1.6rem; margin: 30px 0 6px; color: var(--navy); }
.prose p, .prose li { max-width: 68ch; }
.list { list-style: none; padding: 0; margin: 14px 0 0; }
.list li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.list b { font: 700 1.1rem var(--head); color: var(--maroon); }

.foot { padding: 14px 24px 28px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--maroon); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.masthead nav a:focus-visible { outline-color: #fff; }

/* Below the full masthead width: flat flag stripe, wordmark logo, wrapping nav, one column. */
@media (max-width: 1079px) {
  main { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 36px; gap: 28px; }
  .horizon { --star-x: 470px; }
  .brand { padding: 14px 16px 12px; }
  .nav-in { padding: 0 16px 10px; }
  .search { width: 100%; }
  h1 { font-size: 2.5rem; }
  .law.big .line { font-size: 1.35rem; }
  .bottom { font-size: 1.75rem; }
  .foot { padding: 14px 16px 28px; }
}
@media (max-width: 799px) {
  .brand .stamp { right: 20px; padding: 5px 11px 6px; }
  .brand .stamp b { font-size: 1.25rem; }
  .brand .stamp span { font-size: .74rem; }
}
/* Phones: a smaller logo, with the star fixed near the right edge and the artwork at three-quarter size. */
@media (max-width: 639px) {
  .horizon { --star-x: calc(100% - 62px); }
  .burst { left: calc(var(--star-x) - 1875px); width: 3750px; height: 240px; }
  .brand { padding: 12px 16px; }
  .brand .stamp { top: 10px; right: 12px; transform: rotate(-5deg); border-width: 2px; outline-width: 1px; outline-offset: 2px; padding: 4px 8px 5px; }
  .brand .stamp b { font-size: 1rem; }
  .brand .stamp span { margin-top: 3px; font-size: .7rem; letter-spacing: .04em; }
  .logo { width: 222px; }
  .tagline { width: 133px; margin: -14px 0 0 5px; padding: .5px 0; font-size: .58rem; border-block-width: 1.5px; }
  .masthead nav a { font-size: clamp(.92rem, 4.35vw, 1.05rem); }
  .nav-links { width: 100%; justify-content: space-between; gap: 0 8px; }
}
/* Under 360px the stamp would reach the logo, so the logo and its tagline shrink to leave it room. */
@media (max-width: 359px) {
  .logo { width: 176px; }
  .tagline { width: 106px; margin: -11px 0 0 4px; padding: 0; font-size: .47rem; border-block-width: 1px; }
}
@media (max-width: 420px) {
  h1 { font-size: 2.1rem; }
  .bottom { font-size: 1.55rem; }
  .law { column-gap: 10px; }
}
