:root {
  --ink: #17202b;
  --black: #182838;
  --charcoal: #263b52;
  --slate: #9f5555;
  --paper: #f1eee7;
  --white: #fffdf8;
  --stone: #dce5eb;
  --stone-dark: #9aaab6;
  --muted: #5c646b;
  --line: #c5c4bf;
  --locked: #e3e5e4;
  --focus: #155eef;
  --shadow: 0 18px 45px rgba(0, 0, 0, .13);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--type-reading); line-height: 1.58; }
button, a { font: inherit; }
p, small, summary, details { font-family: var(--type-reading); }
h1, h2, h3, h4, h5, h6, .brand strong, .unit-state, .primary-action { text-transform: uppercase; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: .7rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { min-height: 74px; max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid #c5c4bf; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; line-height: 1.05; }
.brand img { border-radius: 9px; }
.brand span { display: grid; }
.brand strong { font-size: 1rem; letter-spacing: .01em; }
.brand small { margin-top: 5px; color: var(--muted); font-family: Arial, sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; gap: .25rem; }
nav a { min-height: 44px; padding: .7rem .75rem; display: inline-flex; align-items: center; color: #46525b; text-decoration: none; font-weight: 750; border-bottom: 2px solid transparent; text-transform: uppercase; white-space: nowrap; }
nav a:hover, nav a[aria-current="page"] { color: #182838; background: transparent; border-bottom-color: #9b343c; }
.menu-button { display: none; min-height: 44px; border: 1px solid #aeb4b5; background: transparent; border-radius: 2px; padding: .5rem .85rem; font-weight: 800; }

main { max-width: 1240px; margin: 0 auto; padding: 10px 24px 80px; }
.view { animation: reveal .25s ease-out; }
#home, .agenda-view { position: relative; isolation: isolate; }
.home-dynamic-background {
  position: fixed;
  z-index: -1;
  inset: 74px 0 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 24%, rgba(166, 130, 83, .08), transparent 54%),
    radial-gradient(ellipse at 78% 72%, rgba(255, 255, 255, .32), transparent 58%),
    linear-gradient(125deg, rgba(116, 86, 51, .025), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
  background-size: 165% 165%, 175% 175%, 180% 180%, 220px 220px;
  background-position: 0% 0%, 100% 100%, 0% 50%, center;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  animation: civic-background-drift 48s ease-in-out infinite alternate;
}
/* Editorial homepage: an open, print-inspired cover and field guide. */
#home { color: #182838; }
.home-hero {
  min-height: 0;
  margin: .5rem 0 1.8rem;
  padding: clamp(1rem, 2vw, 1.75rem) 0 2rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .92fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  place-items: start stretch;
  color: #182838;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #aeb4b5;
  border-radius: 0;
  overflow: visible;
  text-align: left;
}
.hero.home-hero { background: transparent; border-bottom: 1px solid #aeb4b5; }
.home-hero .hero-copy { color: #182838; text-align: left; }
.home-hero::before { display: none; }
.home-hero .hero-copy { z-index: auto; }
.home-hero .eyebrow { max-width: 36rem; margin-bottom: 1.2rem; color: #46525b; font-size: .72rem; letter-spacing: .13em; }
.hero.home-hero .eyebrow { color: #46525b; }
.home-hero h1 { max-width: 760px; color: #182838; font-family: var(--type-display); font-size: clamp(4rem, 8.6vw, 7.6rem); font-weight: 500; letter-spacing: -.065em; line-height: .88; text-transform: none; }
.home-hero h1 span:last-child { color: #9b343c; font-style: italic; }
.home-hero .now-panel { width: 100%; margin: 1.35rem 0 0; padding: 1.1rem 0 0; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; background: transparent; border: 0; border-top: 2px solid #182838; border-radius: 0; box-shadow: none; }
.home-hero .unit-number { color: #9b343c; }
.home-hero .now-main h2 { max-width: 30rem; margin: .3rem 0; color: #182838; font-family: var(--type-display); font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.05; text-transform: none; }
.home-hero .essential-question { max-width: 34rem; font-size: .93rem; line-height: 1.45; }
.home-hero .next-step { padding: 0; border: 0; }
.home-hero .primary-action { min-height: 48px; padding: .55rem 0; justify-content: flex-start; color: #8f3438; background: transparent; border-bottom: 1px solid #8f3438; border-radius: 0; font-size: .75rem; letter-spacing: .04em; }
.home-hero .primary-action:hover { color: #182838; background: transparent; }
.home-hero .current-lesson-action { color: #174f85; border-color: #174f85; }
.featured-documents { width: 100%; max-width: 480px; margin: 0 auto; }
.featured-documents-heading { min-height: 64px; margin-bottom: .35rem; display: flex; align-items: end; justify-content: space-between; gap: .7rem; border-bottom: 2px solid #182838; }
.featured-documents-heading .eyebrow { margin: 0 0 .25rem; color: #8f3438; font-size: .61rem; letter-spacing: .14em; }
.featured-documents-heading h2 { margin: 0 0 .55rem; color: #182838; font-family: var(--type-display); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 500; line-height: 1.05; text-transform: none; }
.featured-documents-heading > a { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; color: #8f3438; font-family: Arial, sans-serif; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.featured-document { min-height: 100px; padding: .65rem 0; display: grid; grid-template-columns: 86px minmax(0, 1fr) 24px; align-items: center; gap: .75rem; border-bottom: 1px solid #c5c4bf; color: #182838; text-decoration: none; }
.featured-document-image { width: 86px; height: 78px; display: block; overflow: hidden; background: #ddd6c6; border: 1px solid rgba(24, 40, 56, .16); }
.featured-document-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: sepia(.16) saturate(.76) contrast(.98); transition: transform .25s ease; }
.declaration-detail img { object-position: 43% 30%; }
.constitution-detail img { object-position: 50% 18%; }
.birmingham-detail img { object-position: 38% 12%; }
.featured-document-copy { min-width: 0; display: grid; gap: .16rem; }
.featured-document-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .55rem; color: #68737a; font-family: var(--type-label); font-size: .58rem; font-weight: 500; letter-spacing: .04em; line-height: 1.3; }
.featured-document-meta time { color: #8f3438; font-size: .68rem; }
.featured-document-copy strong { color: #182838; font-family: var(--type-display); font-size: 1rem; font-weight: 600; line-height: 1.1; }
.featured-document-copy > span:last-child { color: #505b62; font-family: Arial, sans-serif; font-size: .73rem; line-height: 1.35; }
.featured-document-arrow { color: #8f3438; font-size: 1rem; text-align: right; transition: transform .2s ease; }
.featured-document:hover .featured-document-image img { transform: scale(1.07); }
.featured-document:hover .featured-document-arrow { transform: translate(2px, -2px); }
.featured-document:focus-visible { outline-offset: 2px; }
.home-section-label { margin: 2.4rem 0 .3rem; padding: .75rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; border-top: 3px solid #182838; border-bottom: 1px solid #aeb4b5; color: #8f3438; font-size: .67rem; font-weight: 900; letter-spacing: .14em; }
.home-section-label span:last-child { color: #5c646b; font-size: .61rem; }
.home-dashboard { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "election history" "links links"; column-gap: clamp(1.5rem, 4vw, 3.5rem); row-gap: 2.2rem; }
.home-dashboard .dashboard-card { padding: 1.15rem 0; background: transparent; border: 0; border-top: 1px solid #aeb4b5; border-radius: 0; box-shadow: none; }
.home-dashboard .card-heading { min-height: 72px; padding: 0 0 .8rem; align-items: center; border-bottom: 1px solid #aeb4b5; }
.home-dashboard .card-heading h2, .course-links-heading { font-size: .77rem; letter-spacing: .1em; }
.home-dashboard .card-heading .eyebrow { margin: 0 0 .3rem; color: #9b343c; font-size: .65rem; }
.home-dashboard .election-tracker-layout { height: auto; grid-template-columns: minmax(130px, .52fr) minmax(0, 1fr); }
.home-dashboard .election-countdown { padding: .8rem 1rem .8rem 0; }
.home-dashboard .election-tracker-card .election-countdown strong { color: #9b343c; font-family: var(--type-display); font-size: clamp(4rem, 7vw, 6.3rem); font-weight: 500; line-height: .95; }
.home-dashboard .election-tracker-copy { padding: .8rem 0 .8rem 1rem; border-left: 1px solid #aeb4b5; }
.home-dashboard .election-tracker-copy h3 { color: #182838; font-family: var(--type-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500; line-height: 1.06; text-transform: none; }
.home-dashboard .election-tracker-copy > p:not(.eyebrow) { font-size: .91rem; font-weight: 400; line-height: 1.5; }
.home-dashboard .election-tracker-copy .primary-action, .home-dashboard .upcoming-unit-link { width: fit-content; min-height: 44px; padding: .5rem 0; color: #8f3438; background: transparent; border-bottom: 1px solid #8f3438; border-radius: 0; font-size: .72rem; }
.home-dashboard .election-tracker-copy .primary-action:hover, .home-dashboard .upcoming-unit-link:hover { color: #182838; background: transparent; }
.home-dashboard .date-badge { padding: .35rem 0; color: #5c646b; background: transparent; font-weight: 800; }
.home-dashboard .history-body { min-height: 0; padding: 1.2rem 0 .6rem; grid-template-columns: minmax(90px, 130px) minmax(0, 1fr); gap: 1rem; }
.home-dashboard .history-year { color: #9b343c; font-family: var(--type-display); font-size: clamp(2.7rem, 5vw, 4rem); font-weight: 500; }
.home-dashboard .history-body p { font-size: .95rem; font-weight: 400; line-height: 1.5; }
.home-dashboard .upcoming-row { padding: .65rem 0; }
.home-dashboard .upcoming-row span { color: #46525b; background: transparent; font-weight: 750; }
.course-links-card { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1rem, 3vw, 2rem); }
.course-links-heading { grid-column: 1 / -1; margin: 0; padding: 0 0 .65rem; border-bottom: 1px solid #aeb4b5; }
.home-dashboard .course-link-tile { min-height: 100px; padding: 1rem 0; aspect-ratio: auto; justify-content: center; gap: .4rem; color: #182838; border: 0; border-bottom: 1px solid #aeb4b5; }
.home-dashboard .course-link-tile h2 { color: #182838; font-family: var(--type-display); font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 600; text-transform: none; }
.home-dashboard .course-link-tile > span { color: #8f3438; font-size: .67rem; letter-spacing: .06em; }
.home-dashboard .course-link-tile:hover, .home-dashboard .course-link-tile.ap-classroom-tile:hover, .home-dashboard .course-link-tile.test-corrections-card:hover { color: #8f3438; background: rgba(255, 253, 248, .65); }
.home-dashboard .course-link-tile.test-corrections-card, .home-dashboard .course-link-tile.ap-classroom-tile { color: #182838; background: transparent; border-color: #aeb4b5; box-shadow: none; }
.home-dashboard .course-link-tile:focus-visible { outline-offset: 3px; }
.portrait-rain {
  position: fixed; z-index: -1; inset: 0;
  pointer-events: none; overflow: hidden;
}
.portrait-rain span {
  position: absolute; top: -190px; left: var(--left);
  width: var(--size); aspect-ratio: 1; border-radius: 50%;
  background: var(--portrait) center 16% / cover no-repeat;
  border: 5px solid rgba(13, 13, 14, .35);
  box-shadow: 0 8px 0 rgba(13, 13, 14, .13);
  filter: grayscale(1) contrast(1.08);
  opacity: .1;
  animation: portrait-rain-fall var(--duration) linear var(--delay) infinite;
}
.hero { min-height: 285px; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem); display: grid; place-items: center; color: var(--white); background: var(--black); border-radius: 8px; overflow: hidden; position: relative; border-bottom: 12px solid var(--slate); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .14; background: repeating-linear-gradient(90deg, transparent 0 86px, #fff 86px 87px); }
.hero-copy { position: relative; z-index: 1; width: 100%; }
.eyebrow { margin: 0 0 .6rem; color: var(--slate); font-size: .77rem; line-height: 1.2; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: var(--stone); }
.hero h1, .page-intro h1 { margin: 0; line-height: .92; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 5.4rem); }
.hero h1 span { display: block; }
.hero-line-primary { color: var(--white); font-size: .66em; letter-spacing: -.025em; }
.hero-line-secondary { margin-top: .12em; color: var(--stone); white-space: nowrap; }
.page-intro h1 { font-size: clamp(2.6rem, 5.3vw, 4.9rem); }

.now-panel { position: relative; z-index: 2; width: calc(100% - 7vw); margin: -38px auto 2.5rem; padding: 1.2rem 1.25rem 1.2rem 1.5rem; display: grid; grid-template-columns: 1fr minmax(230px, 330px); gap: 1.5rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.unit-number { margin: 0; color: var(--slate); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.now-main h2 { margin: .2rem 0; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.essential-question { margin: 0; color: var(--muted); }
.next-step { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.next-step p { margin: 0 0 .5rem; color: var(--muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.next-step small { display: block; margin-top: .45rem; color: var(--muted); }
.primary-action { min-height: 52px; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--white); background: var(--black); border-radius: 3px; text-decoration: none; font-weight: 900; }
.primary-action:hover { background: var(--charcoal); }

.home-dashboard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "election election election election election election election history history history history history" "links links links links links links links links links links links links"; gap: 1.2rem; align-items: stretch; }
.exit-card[hidden], .current-lesson-action[hidden] { display: none; }
.next-step { display: grid; gap: .65rem; }
.current-lesson-action { background: #174f85; }
.lesson-jump { margin: 1.25rem 0 .75rem; }
.lesson-jump label { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .9rem; font-weight: 800; }
.lesson-jump select { max-width: 100%; min-height: 48px; padding: .65rem; color: var(--black); background: white; border: 2px solid #174f85; font: inherit; }
.unit-resource-group { scroll-margin-top: 1.5rem; }
.dashboard-card { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--black); }
.card-heading h2 { margin: 0; font-size: 1.35rem; }
.date-badge { padding: .35rem .6rem; color: var(--white); background: var(--black); font-size: .72rem; letter-spacing: .08em; }
.history-card { grid-area: history; }
.test-corrections-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; color: #fff; background: #a32638; border: 4px solid #174f85; box-shadow: inset 0 -8px 0 #174f85; text-decoration: none; }
.test-corrections-card:hover { background: #84202e; }
.test-corrections-card:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }
.test-corrections-card .eyebrow, .test-corrections-card h2 { margin: 0; color: #fff; }
.test-corrections-card h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.test-corrections-card > span { font-weight: 900; }
.election-tracker-card { grid-area: election; padding: 0; overflow: hidden; }
.election-tracker-card .card-heading { padding: 1.5rem; }
.election-tracker-layout { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); height: calc(100% - 91px); }
.election-tracker-card .election-countdown { padding: 1.5rem; border-top: 0; }
.election-tracker-card .election-countdown strong { font-size: clamp(4.5rem, 7vw, 6.5rem); }
.election-tracker-copy { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: center; }
.election-tracker-copy h3 { margin: 0 0 .7rem; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.05; }
.election-tracker-copy > p:not(.eyebrow) { max-width: 650px; margin: 0 0 1.4rem; color: var(--muted); font-weight: 650; }
.election-tracker-copy .primary-action { width: min(100%, 390px); }
.history-body { min-height: 130px; padding: 1.25rem 0; display: grid; grid-template-columns: minmax(145px, 175px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.history-year { max-width: 100%; color: var(--stone-dark); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; font-weight: 950; letter-spacing: -.06em; white-space: nowrap; }
.history-body p { margin: 0 0 .8rem; max-width: 850px; font-size: 1.05rem; font-weight: 650; }
.upcoming-list { display: grid; }
.upcoming-unit-link { min-height: 44px; padding: .55rem .7rem; display: inline-flex; align-items: center; color: var(--white); background: var(--black); text-decoration: none; font-size: .7rem; font-weight: 900; white-space: nowrap; }
.upcoming-row { padding: 1rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.upcoming-row:last-child { border-bottom: 0; }
.upcoming-row strong { text-transform: uppercase; }
.upcoming-row span { padding: .3rem .55rem; background: var(--stone); font-size: .72rem; font-weight: 900; white-space: nowrap; }
.empty-state { color: var(--muted); font-weight: 700; }
.classroom-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.classroom-mark { width: 54px; height: 54px; display: grid; place-items: center; color: var(--white); background: var(--black); font-size: 1.5rem; font-weight: 950; }
.classroom-card h2 { margin: 0 0 .35rem; }
.classroom-card p:last-child { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 650; }
.classroom-card .primary-action { grid-column: 1 / -1; }
.classroom-code { grid-column: 1 / -1; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--stone); border-left: 4px solid var(--black); }
.classroom-code span { color: var(--black); font-size: .75rem; font-weight: 950; letter-spacing: .08em; }
.classroom-code code { color: var(--black); font-size: 1.15rem; font-weight: 950; letter-spacing: .08em; text-transform: none; }
.classroom-code-list { grid-column: 1 / -1; display: grid; gap: .55rem; }
.classroom-code-list .classroom-code { grid-column: auto; }
.ap-classroom-card .classroom-mark { font-size: 1rem; }
.course-links-card { grid-area: links; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.course-link-tile { box-sizing: border-box; aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; padding: clamp(1rem, 3vw, 2rem); color: #174f85; border: 4px solid #174f85; text-decoration: none; }
.course-link-tile h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 2rem); overflow-wrap: anywhere; }
.course-link-tile > span { font-size: .9rem; font-weight: 850; }
.course-link-tile:hover { background: #edf5fc; }
.course-link-tile.test-corrections-card { color: #fff; background: #a32638; border-color: #a32638; box-shadow: inset 0 -8px 0 #7f1d2d; }
.course-link-tile.test-corrections-card:hover { background: #84202e; }
.course-link-tile.ap-classroom-tile { color: #fff; background: #174f85; border-color: #174f85; box-shadow: inset 0 -8px 0 #103a63; }
.course-link-tile.ap-classroom-tile:hover { color: #fff; background: #103f6d; }
.course-link-list { display: grid; gap: .65rem; padding-top: .8rem; }
.compact-course-link { padding: .7rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; background: var(--paper); border: 1px solid var(--line); }
.compact-course-link .classroom-mark { width: 46px; height: 46px; font-size: 1rem; }
.compact-course-link h3 { margin: 0; font-size: .95rem; }
.compact-course-link > div > p { margin: .15rem 0 0; color: var(--muted); font-size: .72rem; font-weight: 700; }
.compact-course-link > a { min-height: 44px; padding: .55rem .7rem; display: inline-flex; align-items: center; gap: .3rem; color: var(--white); background: var(--black); text-decoration: none; font-size: .72rem; font-weight: 900; }
.compact-code, .compact-code-list { grid-column: 1 / -1; }
.compact-code { margin: 0; padding: .45rem .6rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--stone); font-size: .68rem; font-weight: 900; }
.compact-code code { font-size: .85rem; font-weight: 900; }
.compact-code-list { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.compact-code-list .compact-code { grid-column: auto; }
.home-exit-ticket { margin: 1.2rem 0 2rem; min-height: 112px; padding: 1.1rem 1.4rem; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; color: var(--white); background: var(--black); border: 3px solid var(--black); box-shadow: 7px 7px 0 var(--stone-dark); text-decoration: none; }
.home-exit-ticket:hover { color: var(--black); background: var(--white); }
.home-exit-icon { width: 64px; height: 64px; display: grid; place-items: center; color: var(--black); background: var(--white); font-size: 2rem; }
.home-exit-ticket:hover .home-exit-icon { color: var(--white); background: var(--black); }
.home-exit-ticket small, .home-exit-ticket strong { display: block; }
.home-exit-ticket small { margin-bottom: .2rem; color: var(--stone); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.home-exit-ticket:hover small { color: var(--muted); }
.home-exit-ticket strong { font-size: clamp(1.1rem, 2.3vw, 1.65rem); line-height: 1.05; }
.home-exit-ticket > b { font-size: 2rem; }
.exit-ticket-view { max-width: 1040px; margin: 0 auto; padding-bottom: 3rem; }
.exit-page-header { min-height: 210px; margin-top: 1rem; padding: clamp(1.5rem, 5vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--white); background: var(--black); }
.exit-page-header h1 { margin: 0; font-size: clamp(3.2rem, 8vw, 6.5rem); line-height: .85; letter-spacing: -.06em; }
.exit-page-header .eyebrow { color: var(--stone); }
.exit-page-number { color: var(--slate); font-family: Georgia, serif; font-size: clamp(5rem, 14vw, 10rem); line-height: .7; }
.exit-card { margin: 0 0 1.5rem; padding: 0; overflow: hidden; border: 3px solid var(--black); border-top: 0; box-shadow: 9px 9px 0 var(--stone-dark); }
.exit-card.is-empty .exit-question { margin: 0; padding: clamp(2rem, 5vw, 4rem); text-align: center; font-size: clamp(1.3rem, 3vw, 2rem); }
.exit-question { padding: 1.5rem; display: grid; gap: 1rem; background: var(--stone); }
.exit-prompt { position: relative; min-height: 180px; display: grid; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden; color: var(--black); background: var(--white); border: 3px solid var(--black); border-radius: 16px; box-shadow: 7px 7px 0 var(--slate); }
.exit-prompt::before, .exit-prompt::after { position: absolute; z-index: 2; top: 50%; width: 22px; height: 22px; content: ""; background: var(--stone); border: 3px solid var(--black); border-radius: 50%; transform: translateY(-50%); }
.exit-prompt::before { left: -14px; }
.exit-prompt::after { right: -14px; }
.exit-prompt-marker { padding: 1rem .7rem; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: .55rem; color: var(--white); background: var(--black); border-right: 3px dashed var(--white); text-align: center; }
.exit-prompt-marker span { font-size: 2.15rem; line-height: 1; }
.exit-prompt-marker b { font-size: .65rem; line-height: 1.15; letter-spacing: .07em; }
.exit-prompt-copy { padding: clamp(1.1rem, 3vw, 1.7rem); display: flex; flex-direction: column; justify-content: center; }
.exit-prompt-copy > p:first-child { margin: 0 0 .8rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 900; line-height: 1.3; }
.exit-support { margin: .3rem 0; font-size: clamp(.9rem, 1.35vw, 1rem); line-height: 1.45; }
.exit-side { padding: .75rem 1rem; background: var(--white); border: 2px solid var(--black); }
.exit-side:nth-of-type(2) { border-left: 8px solid var(--slate); }
.exit-side:nth-of-type(4) { border-left: 8px solid var(--black); }
.exit-or { font-weight: 950; text-align: center; }
.exit-direction { margin-top: .75rem; font-weight: 900; }
.exit-form { margin: 0; padding: 1.5rem; background: var(--white); border-top: 3px solid var(--black); }
.exit-form-heading { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.exit-form-heading h2 { margin: 0; font-size: 1.35rem; }
.exit-card label { display: block; margin: 1rem 0 .4rem; font-size: .76rem; font-weight: 900; letter-spacing: .04em; }
.exit-identity { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; }
.exit-card textarea, .exit-card select, .admin-panel textarea, .admin-panel input, .admin-panel select { width: 100%; min-height: 48px; margin-top: .4rem; padding: .8rem; border: 2px solid var(--stone-dark); background: var(--white); color: var(--black); font: 700 .95rem Arial, sans-serif; }
.exit-card textarea:focus, .exit-card select:focus { border-color: var(--black); outline: 3px solid color-mix(in srgb, var(--focus) 25%, transparent); }
.exit-card textarea { min-height: 145px; resize: vertical; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #dededb 32px); line-height: 32px; }
.exit-submit { width: 100%; min-height: 54px; margin-top: 1rem; padding: .8rem 1rem; display: flex; align-items: center; justify-content: center; gap: .8rem; border: 2px solid var(--black); color: var(--white); background: var(--black); cursor: pointer; font-weight: 900; letter-spacing: .035em; box-shadow: 4px 4px 0 var(--stone-dark); }
.exit-submit:not(:disabled):hover { color: var(--black); background: var(--white); }
.exit-submit:disabled { color: #777; background: var(--stone); }
.system-note { min-height: 1.1em; margin: .7rem 1.5rem 1rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.exit-ticket-success { width: min(680px, 100%); margin: 1rem auto .35rem; animation: ticket-arrives .45s cubic-bezier(.2,.8,.2,1) both; }
.exit-ticket-success img { width: 100%; height: auto; display: block; }
@keyframes ticket-arrives { from { opacity: 0; transform: translateY(14px) rotate(-1deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes civic-background-drift { from { background-position: 0% 0%, 100% 100%, 0% 50%, center; } to { background-position: 100% 72%, 4% 18%, 100% 55%, center; } }
@media (max-width: 620px) { .exit-identity { grid-template-columns: 1fr; } .exit-prompt { grid-template-columns: 76px minmax(0, 1fr); border-radius: 12px; } .exit-page-number { display: none; } }
@media (prefers-reduced-motion: reduce) { .exit-ticket-success { animation: none; } }

.section-heading { margin-bottom: 1.4rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -.04em; }
.section-heading > a { font-weight: 850; }
.semester-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.semester-card { min-height: 235px; padding: 1.8rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.semester-card > strong { grid-column: 2; }
.semester-card p { margin: 0 0 .35rem; color: var(--muted); font-weight: 600; }
.semester-card h3 { margin: 0 0 .6rem; font-size: 1.5rem; }
.semester-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 2px; color: var(--white); background: var(--black); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 900; }

.page-intro { padding: clamp(1.5rem, 3vw, 2.75rem) 0 1.5rem; max-width: 820px; }
.units-intro,
#foundations > .page-intro,
#words > .page-intro { padding: 1.25rem 0 1.5rem; }
.units-intro h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.045em; }
.page-intro h1 { font-size: clamp(2.5rem, 6vw, 5rem); color: var(--black); }
.page-intro > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.1rem; font-weight: 600; }
.agenda-layout { min-height: calc(100vh - 190px); display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.agenda-board { min-width: 0; padding: clamp(2rem, 6vw, 5rem); }
.agenda-board h1 { margin: 0; padding-bottom: 1rem; border-bottom: 10px solid var(--black); font-size: clamp(3rem, 8vw, 7rem); line-height: .88; letter-spacing: -.06em; overflow-wrap: anywhere; }
.agenda-copy { max-width: 850px; padding-top: clamp(1.5rem, 4vw, 3rem); white-space: pre-wrap; color: var(--charcoal); font: 750 clamp(1.15rem, 2.2vw, 1.65rem)/1.6 Arial, Helvetica, sans-serif; }
.agenda-date-panel { min-width: 0; display: grid; grid-template-rows: 1fr auto; color: var(--white); background: var(--black); border-left: 10px solid var(--slate); }
.agenda-today { padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.agenda-today p { margin: 0; color: var(--stone); font-size: clamp(1.35rem, 3vw, 2.5rem); font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.agenda-today time { display: block; font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 950; line-height: .82; letter-spacing: -.07em; text-transform: uppercase; }
.election-countdown { padding: clamp(1.5rem, 4vw, 3rem); color: var(--black); background: var(--stone); border-top: 10px solid var(--white); }
.election-countdown strong { display: block; font-size: clamp(5rem, 11vw, 10rem); line-height: .72; letter-spacing: -.08em; }
.election-countdown p { max-width: 330px; margin: 1.25rem 0; font-size: clamp(.9rem, 1.6vw, 1.15rem); font-weight: 950; line-height: 1.2; letter-spacing: .06em; }
.election-countdown > time { display: block; margin-top: .75rem; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.election-progress { height: 12px; background: var(--white); border: 2px solid var(--black); overflow: hidden; }
.election-progress span { width: 0; height: 100%; display: block; background: var(--black); transition: width .4s ease; }
.unit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.unit-card { min-height: 250px; padding: 1.5rem; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); position: relative; }
.unit-card.current { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.unit-card.locked { background: var(--locked); color: #56635f; }
.unit-top { display: flex; justify-content: space-between; gap: 1rem; }
.unit-index { color: var(--slate); font-size: .74rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.unit-state { padding: .28rem .65rem; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 900; }
.unit-card h2 { margin: 1rem 0 .55rem; font-size: 1.55rem; }
.unit-card p { margin: 0; color: var(--muted); font-weight: 600; }
.unit-card .standards { margin-top: auto; padding-top: 1.2rem; color: var(--black); font-size: .78rem; font-weight: 850; }
.unit-card button { min-height: 48px; margin-top: 1rem; border: 0; border-radius: 3px; background: var(--black); color: var(--white); cursor: pointer; font-weight: 900; }
.unit-card button:disabled { color: #697470; background: #d6d8d2; cursor: not-allowed; }

.back-button { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; margin: 2rem 0; padding: .7rem 1rem; border: 1px solid var(--line); color: var(--black); background: var(--white); border-radius: 999px; cursor: pointer; font-weight: 850; text-decoration: none; }
.unit-detail-header { padding: clamp(1.5rem, 4vw, 3rem); color: var(--black); background: var(--white); border: 1px solid var(--line); border-left: 8px solid var(--slate); border-radius: 4px; }
.unit-detail-header .eyebrow { color: var(--muted); }
.unit-detail-header h1 { margin: 0 0 .8rem; max-width: none; font-size: clamp(1.8rem, 3.45vw, 3.1rem); line-height: 1.05; letter-spacing: -.045em; }
.unit-detail-header > p { max-width: 700px; margin: 0; color: var(--muted); font-family: Arial, sans-serif; font-size: 1.2rem; font-weight: 600; }
.unit-path-heading { margin: 2rem 0 .8rem; }
.unit-path-heading h2 { margin: 0 0 .25rem; font-size: 1.2rem; letter-spacing: .03em; }
.unit-path-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.unit-resources { margin: 0 0 2rem; }
.unit-sources { margin: 0 0 2rem; padding: clamp(1rem, 3vw, 1.5rem); background: var(--stone); border: 1px solid var(--line); }
.unit-sources .section-heading { margin-bottom: 1rem; }
.unit-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.unit-source { min-height: 92px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: .35rem; text-align: left; text-decoration: none; color: var(--black); background: var(--white); border: 1px solid var(--stone-dark); border-top: 5px solid var(--black); cursor: pointer; }
.unit-source:hover { background: var(--paper); }
.unit-quick-resources { margin: 1.5rem 0 2rem; }
.unit-quick-resources-heading { margin: 0 0 .8rem; }
.unit-glossary-link { max-width: none; min-height: 64px; margin: 0 0 .65rem; border: 1px solid var(--line); border-left: 4px solid var(--black); border-radius: 4px; }
.unit-glossary-link:hover { background: #f7f8f8; }
.unit-source.unit-glossary-link strong { display: flex; justify-content: space-between; align-items: center; font-family: var(--type-display); font-size: clamp(1rem, 1.8vw, 1.25rem); letter-spacing: .025em; }
.unit-source strong { font-size: .88rem; }
.unit-source span { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .04em; }
.unit-resource-group { margin: 0 0 .65rem; border: 1px solid var(--line); border-radius: 4px; background: var(--white); scroll-margin-top: 1rem; }
.unit-resource-summary { min-height: 64px; padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem; cursor: pointer; list-style: none; }
.unit-resource-summary::-webkit-details-marker { display: none; }
.unit-resource-summary::before { width: 1.15rem; flex: 0 0 1.15rem; color: #657483; content: "＋"; font-size: 1.15rem; font-weight: 700; text-align: center; }
.unit-resource-group[open] > .unit-resource-summary::before { content: "−"; }
.unit-resource-summary h2 { min-width: 0; margin: 0; font-size: 1rem; letter-spacing: .025em; }
.unit-resource-summary:hover { background: #f7f8f8; }
.unit-resource-summary:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--focus); outline-offset: -3px; }
.unit-resource-count { margin-left: auto; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .07em; white-space: nowrap; }
.unit-resource-group-assessments > .unit-resource-summary h2 { color: #8e2a37; }
.unit-resource-group-practice > .unit-resource-summary { border-left: 4px solid #bd941c; }
.unit-quick-resources > .unit-resource-summary { border-left: 4px solid var(--charcoal); }
.unit-resource-row { margin: 0; padding: .25rem 1rem 1rem; }
.unit-resource-row + .unit-resource-row { padding-top: 0; }
.unit-resource-row > h3 { margin: 0 0 .45rem; padding-bottom: .35rem; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .68rem; font-weight: 900; letter-spacing: .09em; }
.unit-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.unit-resource { min-height: 68px; padding: .7rem .8rem; display: flex; flex-direction: column; justify-content: center; gap: .2rem; color: var(--black); background: #fff; border: 1px solid var(--line); border-radius: 3px; text-align: left; text-decoration: none; }
.unit-resource:hover { background: #f4f6f7; border-color: #9aa8b4; }
.unit-resource strong { font-size: .92rem; }
.unit-resource span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .035em; }
.unit-resource .unit-resource-kind { color: var(--muted); font-size: .6rem; letter-spacing: .09em; }
.unit-resource.placeholder { color: var(--black); background: #f2f2ef; border-style: dashed; }
.unit-resource.placeholder span { color: var(--muted); }
.unit-resource-concept-practice:not(.placeholder) { border-left: 4px solid #bd941c; }
.unit-resource-assessment:not(.placeholder) { border-left: 4px solid #a32638; }
.unit-resource-item { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .65rem; align-items: center; }
.unit-resource-item .unit-resource { min-width: 0; }
.unit-completion-star { width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; color: #78848e; background: var(--white); border: 1px solid #cbd1d6; border-radius: 4px; cursor: pointer; font: 800 1.5rem/1 Arial, sans-serif; text-shadow: none; }
.unit-completion-star:hover { color: #304d65; border-color: #718494; }
.unit-completion-star[aria-pressed="true"] { color: #463700; background: #f1d982; border-color: #c5a32c; text-shadow: none; }
.unit-completion-star:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.unit-completion-star:disabled { color: #65788b; border-color: #9aa9b7; opacity: .65; cursor: not-allowed; }
.president-tools { margin-bottom: 1rem; padding: 1rem; background: var(--stone); border-radius: var(--radius); }
.president-tools label { display: block; margin-bottom: .4rem; font-size: .75rem; font-weight: 950; letter-spacing: .08em; }
.president-tools input { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 2px solid var(--black); background: var(--white); font: inherit; font-weight: 750; }
.president-tools p { margin: .6rem 0 0; color: var(--muted); font-size: .75rem; font-weight: 900; }
.president-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.president-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.president-card img { width: 100%; aspect-ratio: 4 / 5; display: block; object-fit: cover; object-position: top center; background: var(--stone); }
.president-card-heading { padding: 1rem; border-top: 6px solid var(--black); }
.president-card-heading h2 { margin: 0 0 .25rem; font-size: 1.3rem; }
.president-card-heading strong { color: var(--muted); }
.president-card details { border-top: 1px solid var(--line); }
.president-card summary { min-height: 48px; padding: .85rem 1rem; cursor: pointer; font-weight: 950; }
.president-facts { padding: 0 1rem 1rem; }
.president-facts p { margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.president-facts p b, .president-facts p span { display: block; }
.president-facts p b { margin-bottom: .2rem; font-size: .7rem; letter-spacing: .06em; }
.president-facts p span, .president-facts li { color: var(--muted); font-weight: 650; }
.president-facts h3 { margin: 1rem 0 .5rem; font-size: .85rem; }
.president-facts ul { margin: 0; padding-left: 1.2rem; }
.president-facts blockquote { margin: 0; padding: .8rem; background: var(--stone); font-weight: 750; }
.president-quotes { display: grid; gap: .55rem; }
.president-quote { padding-bottom: .35rem; border: 1px solid var(--line); background: var(--stone); }
.president-quote blockquote { border: 0; }
.president-quote a { margin: 0; padding: 0 .8rem .55rem; }
.president-connection { margin-top: 1rem; padding: .85rem; border-left: 6px solid var(--black); background: var(--stone); }
.president-connection h3 { margin-top: 0; }
.president-connection p { padding: 0; border: 0; color: var(--black); }
.president-connection a + a { margin-left: .75rem; }
.president-facts a { margin-top: .8rem; display: inline-block; color: var(--black); font-size: .72rem; font-weight: 900; }
.lesson-list { display: grid; gap: .75rem; }
.unit-lessons { margin: 2rem 0; }
.unit-lesson-list { padding: 0; list-style: none; }
.unit-lesson-group { margin-bottom: .65rem; }
.unit-lesson-group:last-child { margin-bottom: 0; }
.unit-lesson-group .unit-resource-summary h2 { font-family: var(--type-display); font-size: clamp(1rem, 1.8vw, 1.25rem); }
.unit-lesson-empty { margin: 0; padding: 0 1rem 1rem 3rem; color: var(--muted); font-size: .9rem; }
.lesson-card {
  min-height: 132px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 7px solid var(--slate);
  border-radius: var(--radius);
}
.lesson-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--black);
  font-weight: 950;
}
.lesson-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.lesson-card strong { display: block; color: var(--charcoal); font-family: Arial, Helvetica, sans-serif; }
.lesson-card p { margin: .45rem 0; color: var(--muted); }
.lesson-card small { color: var(--slate); font-weight: 900; text-transform: uppercase; }
.lesson-standard {
  padding: .35rem .55rem;
  color: var(--black);
  background: var(--stone);
  font-size: .7rem;
  font-weight: 900;
  white-space: nowrap;
}
.lesson { padding: 1rem 1.1rem; display: grid; grid-template-columns: 50px 1fr auto; gap: 1rem; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.lesson-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 2px; color: var(--white); background: var(--black); font-weight: 950; }
.lesson h3 { margin: 0 0 .25rem; }
.lesson p { margin: 0; color: var(--muted); }
.lesson details { grid-column: 2 / -1; }
.lesson summary { width: max-content; padding: .25rem 0; color: var(--black); cursor: pointer; font-weight: 850; }
.lesson details p { max-width: 760px; padding-top: .5rem; }
.standard-tag { padding: .3rem .55rem; color: var(--black); background: var(--stone); border-radius: 2px; font-size: .72rem; font-weight: 900; }

.word-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.glossary-tools { margin-bottom: 1.25rem; padding: 1rem; border: 1px solid var(--line); background: var(--stone); border-radius: var(--radius); }
.glossary-tools label { display: block; margin-bottom: .45rem; font-size: .75rem; font-weight: 950; letter-spacing: .06em; }
.glossary-tools input { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 2px solid var(--black); background: var(--white); color: var(--black); font: inherit; font-weight: 750; }
.glossary-filters { margin-top: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.glossary-filters button { min-height: 44px; padding: .6rem .85rem; border: 1px solid var(--black); background: var(--white); cursor: pointer; font-size: .75rem; font-weight: 950; }
.glossary-filters button[aria-pressed="true"] { color: var(--white); background: var(--black); }
.glossary-branch-filters { margin-top: .8rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.glossary-branch-filters[hidden] { display: none; }
.glossary-branch-filters > span { margin-right: .25rem; color: var(--muted); font-family: var(--type-label); font-size: var(--type-size-label); letter-spacing: .04em; }
.glossary-branch-filters button { min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--stone-dark); color: var(--black); background: var(--white); cursor: pointer; font-size: .7rem; font-weight: 850; }
.glossary-branch-filters button[aria-pressed="true"] { color: var(--white); background: var(--slate); border-color: var(--slate); }
.glossary-status { min-height: 1.2rem; margin: .65rem 0 0; color: var(--muted); font-size: .75rem; font-weight: 900; }
.word-card { min-height: 175px; padding: 1.3rem; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 18px; cursor: pointer; }
.word-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.word-card h2 { margin: 0 0 .45rem; font-size: 1.25rem; }
.word-card p { margin: 0; color: var(--muted); font-weight: 600; }
.word-dialog { position: fixed; z-index: 500; inset: 0; padding: 1.5rem; display: grid; place-items: center; background: rgba(12, 30, 28, .72); }
.dialog-card { width: min(520px, 100%); padding: 2rem; background: var(--white); border-radius: var(--radius); position: relative; box-shadow: var(--shadow); }
.dialog-card h2 { margin: 0 0 .7rem; font-size: 2rem; }
.dialog-close { position: absolute; top: .7rem; right: .7rem; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 1.8rem; }
.example-box { margin-top: 1.2rem; padding: 1rem; background: var(--stone); border-radius: 4px; }
.example-box p { margin: .35rem 0 0; }
footer { max-width: 1240px; margin: 0 auto; padding: 1.5rem 24px 3rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }

.foundations-intro { max-width: 920px; }
.foundation-tabs { position: sticky; top: 0; z-index: 20; margin-bottom: 1.5rem; padding: .5rem; display: flex; gap: .4rem; overflow-x: auto; background: var(--black); border: 1px solid var(--charcoal); }
.foundation-tabs button { min-height: 48px; padding: .7rem 1rem; flex: 1; border: 1px solid #555; color: #cfcfcd; background: transparent; cursor: pointer; font-size: .76rem; font-weight: 950; white-space: nowrap; }
.foundation-tabs button[aria-selected="true"] { color: var(--black); background: var(--white); border-color: var(--white); }
.foundation-panel { padding: clamp(1rem, 3vw, 2rem); background: #dededb; border: 1px solid var(--line); }
.tool-heading { margin-bottom: 1.4rem; padding-bottom: 1rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-bottom: 3px solid var(--black); }
.tool-heading h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.8rem); }
.tool-heading > p { max-width: 300px; margin: 0; color: var(--muted); text-align: right; font-size: .74rem; font-weight: 850; letter-spacing: .06em; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.document-card { min-height: 280px; padding: 1.3rem; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--stone-dark); border-top: 7px solid var(--black); }
.document-card-link { color: var(--black); text-decoration: none; }
.document-card-link:hover { background: var(--paper); box-shadow: 5px 5px 0 var(--black); transform: translate(-2px, -2px); }
.document-card-link:focus-visible { outline: 4px solid var(--slate); outline-offset: 3px; }
.document-meta { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.document-card h3 { margin: .7rem 0; font-size: 1.35rem; }
.document-card > p:not(.document-meta) { margin: 0 0 1rem; color: var(--muted); font-weight: 650; }
.document-card .standard-tag { width: max-content; margin-top: auto; }
.document-card button { min-height: 46px; margin-top: 1rem; border: 0; color: var(--white); background: var(--black); cursor: pointer; font-size: .76rem; font-weight: 950; }
.document-card-action { min-height: 46px; margin-top: auto; padding: .8rem; display: flex; align-items: center; justify-content: center; color: var(--white); background: var(--black); font-size: .76rem; font-weight: 950; }
.case-foundation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.case-foundation-card { min-height: 250px; padding: 1.3rem; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--stone-dark); border-top: 7px solid var(--slate); }
.case-foundation-card h3 { margin: .7rem 0; font-size: 1.35rem; }
.case-foundation-card > p:not(.document-meta) { margin: 0 0 1rem; color: var(--muted); font-weight: 650; }
.case-foundation-card a { min-height: 46px; margin-top: auto; padding: .8rem 1rem; display: flex; align-items: center; color: var(--white); background: var(--black); font-size: .76rem; font-weight: 950; text-decoration: none; }
.foundation-dialog { position: fixed; z-index: 800; inset: 0; padding: 1rem; display: grid; place-items: center; background: rgba(0,0,0,.82); }
.foundation-dialog-card { width: min(760px, 100%); max-height: calc(100vh - 2rem); padding: clamp(1.4rem, 4vw, 2.5rem); overflow: auto; background: var(--paper); border: 6px solid var(--white); position: relative; }
.foundation-dialog-close { position: absolute; top: .7rem; right: .7rem; width: 46px; height: 46px; border: 1px solid var(--black); background: var(--white); cursor: pointer; font-size: 1.7rem; }
.foundation-dialog-card h2 { max-width: calc(100% - 50px); margin: 0 0 1.3rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; }
.document-detail-block { padding: 1rem 0; border-top: 1px solid var(--stone-dark); }
.document-detail-block h3 { margin: 0 0 .35rem; font-size: .78rem; letter-spacing: .08em; }
.document-detail-block p { margin: 0; font-weight: 650; }
.document-detail-block:nth-of-type(2) p { padding-left: 1rem; border-left: 5px solid var(--black); font-size: 1.08rem; font-weight: 750; }
.amendment-filters, .madison-topics { margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.amendment-filters button, .madison-topics button { min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--black); background: var(--white); cursor: pointer; font-size: .72rem; font-weight: 950; }
.amendment-filters button[aria-pressed="true"], .madison-topics button[aria-pressed="true"] { color: var(--white); background: var(--black); }
.amendment-grid { display: grid; gap: .7rem; }
.amendment-card { padding: 1rem; display: grid; grid-template-columns: 70px 1fr; gap: 1rem; background: var(--white); border: 1px solid var(--stone-dark); }
.amendment-number { width: 64px; height: 64px; display: grid; place-items: center; color: var(--white); background: var(--black); font-size: 1.6rem; font-weight: 950; }
.amendment-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.amendment-card p { margin: 0; color: var(--muted); font-weight: 650; }
.amendment-card details { margin-top: .7rem; }
.amendment-card summary { width: max-content; cursor: pointer; font-size: .74rem; font-weight: 950; }
.amendment-card details p { padding: .6rem 0; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ap-exam-lab {
  margin: 1rem 0 2rem;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  display: grid;
  grid-template-columns: minmax(150px, .35fr) 1fr;
  gap: 1rem;
  align-items: center;
  color: var(--white);
  background: var(--slate);
  border-radius: var(--radius);
  text-decoration: none;
}
.ap-exam-lab span { font-size: .72rem; font-weight: 950; letter-spacing: .1em; }
.ap-exam-lab strong { font-size: clamp(1.05rem, 2.4vw, 1.65rem); line-height: 1.2; }
.ap-exam-lab:hover { background: #7c3f42; }
.skill-card { padding: 1.2rem; background: var(--white); border: 1px solid var(--stone-dark); border-top: 7px solid var(--black); }
.skill-card h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.skill-card > p { min-height: 48px; margin: 0 0 1rem; color: var(--muted); font-weight: 650; }
.skill-levels { display: grid; gap: .5rem; }
.skill-levels button { min-height: 58px; padding: .7rem; text-align: left; border: 1px solid var(--black); background: var(--white); cursor: pointer; font-size: .72rem; font-weight: 900; }
.skill-levels button:hover:not(:disabled) { color: var(--white); background: var(--black); }
.skill-levels button:disabled { color: #777; background: var(--stone); cursor: not-allowed; }
.skill-workspace { margin-top: 1rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--white); border: 4px solid var(--black); }
.skill-workspace h2 { margin: 0 0 .6rem; font-size: 1.6rem; }
.skill-prompt { font-weight: 750; }
.skill-options { display: grid; gap: .6rem; }
.skill-options button { min-height: 50px; padding: .7rem 1rem; text-align: left; border: 1px solid var(--black); background: var(--white); cursor: pointer; font: 700 .9rem Arial, sans-serif; }
.skill-options button:hover:not(:disabled) { background: var(--stone); }
.skill-options button[data-result="correct"] { color: var(--white); background: #202020; }
.skill-options button[data-result="incorrect"] { text-decoration: line-through; background: var(--stone); }
.skill-feedback { min-height: 1.5rem; font-weight: 800; }
#madison { background-color: #fff; background-image: radial-gradient(circle at 1px 1px,rgba(0,0,0,.1) 1px,transparent 1.2px); background-size: 17px 17px; }
#madison .page-intro { padding: clamp(1.5rem,4vw,3rem); color: #000; background: rgba(255,255,255,.97); border: 5px double #000; box-shadow: 9px 9px 0 #e5e5e2,12px 12px 0 #000; }
#madison .page-intro h1 { margin: .15rem 0; font-family: Impact,"Arial Narrow Bold",sans-serif; font-size: clamp(3.6rem,9vw,8rem); line-height: .88; letter-spacing: .01em; }
#madison .page-intro p:last-child { margin: .8rem 0 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(1.05rem,2vw,1.35rem); font-weight: 800; }
.madison-topics { margin: 2.5rem 0 1.25rem; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; }
.madison-topics button { min-height: 115px; padding: .8rem; display: grid; align-content: center; gap: .35rem; border: 3px solid #000; background: #fff; font-size: .72rem; }
.madison-topics button span { font-size: 1.8rem; }
.madison-topics button strong { line-height: 1.15; }
.madison-topics button[aria-pressed="true"] { color: #fff; background: #000; box-shadow: 5px 5px 0 #9f2839; }
.madison-workspace { background: #fff; border: 5px double #000; box-shadow: 9px 9px 0 #e5e5e2,12px 12px 0 #000; }
.madison-setup { margin: 0; padding: 1.2rem; color: #000; background: repeating-linear-gradient(#fff 0 31px,#d8d8d8 32px); font-family: Georgia,"Times New Roman",serif; font-size: clamp(1.05rem,2vw,1.3rem); font-weight: 800; }
.madison-workspace > h2 { margin: 0; padding: clamp(1.2rem,3vw,2rem); color: #fff; background: #000; font-family: Impact,"Arial Narrow Bold",sans-serif; font-size: clamp(2rem,5vw,4.5rem); line-height: .95; }
.madison-sides { padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.madison-side { padding: 1.2rem; border: 3px solid #000; }
.madison-side:nth-child(2) { background: #e8e8e5; }
.madison-side img { width: 100%; aspect-ratio: 16/9; margin-bottom: 1rem; display: block; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.18); border: 2px solid #000; }
.madison-side h3 { margin: 0 0 .6rem; font-family: Impact,"Arial Narrow Bold",sans-serif; font-size: clamp(1.5rem,3vw,2.2rem); }
.madison-side p { min-height: 110px; margin: 0 0 .8rem; font-family: Georgia,"Times New Roman",serif; font-size: 1.05rem; font-weight: 650; }
.madison-side strong { font-size: .72rem; letter-spacing: .06em; }
.madison-connection, .madison-turn { margin: 0 1rem 1rem; padding: 1.2rem; border: 3px solid #000; }
.madison-connection { background: #e8e8e5; }
.madison-connection h3::before { content: "⚖️ "; }
.madison-turn { color: #fff; background: #000; }
.madison-connection h3, .madison-turn h3 { margin: 0 0 .5rem; }
.madison-connection p, .madison-turn p { font-family: Georgia,"Times New Roman",serif; font-weight: 650; }
.madison-choices { display: flex; gap: .6rem; flex-wrap: wrap; }
.madison-choices button { min-height: 50px; padding: .7rem .9rem; border: 2px solid #fff; color: #000; background: #fff; cursor: pointer; font-size: .72rem; font-weight: 950; }
.madison-choices button[aria-pressed="true"] { color: #fff; background: #9f2839; }
.madison-turn label { margin-top: 1rem; display: block; font-size: .72rem; font-weight: 950; letter-spacing: .08em; }
.madison-turn textarea { width: 100%; margin-top: .8rem; padding: 1rem; border: 3px solid #fff; color: #000; background: #fff; font: 700 1rem Arial, sans-serif; }
.explorer { max-width: 900px; padding: clamp(1rem, 4vw, 2rem); background: var(--stone); border: 1px solid var(--line); }
.explorer-progress { margin: 0 0 1rem; font-size: .76rem; font-weight: 950; letter-spacing: .08em; }
.explorer-situation { margin: 0; padding: clamp(1.2rem, 4vw, 2rem); color: var(--white); background: var(--black); font-size: clamp(1.15rem, 3vw, 1.55rem); font-weight: 750; line-height: 1.4; }
.explorer h2 { margin: 1.4rem 0 .8rem; font-size: clamp(1.4rem, 4vw, 2rem); }
.explorer-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.explorer-options button, .explorer-next, .explorer-finish button { min-height: 58px; padding: .8rem 1rem; border: 2px solid var(--black); background: var(--white); cursor: pointer; font-weight: 950; }
.explorer-options button:hover:not(:disabled) { color: var(--white); background: var(--black); }
.explorer-options button[data-answer="correct"] { color: var(--white); background: var(--black); border-width: 5px; }
.explorer-options button[data-answer="selected"] { text-decoration: line-through; background: var(--paper); }
.explorer-feedback { margin-top: 1rem; padding: 1.2rem; background: var(--white); border-left: 8px solid var(--black); }
.explorer-feedback > strong { display: block; margin-bottom: .6rem; font-size: 1.15rem; }
.explorer-feedback p { margin: .5rem 0 0; line-height: 1.45; }
.explorer-source { color: var(--muted); font-size: .72rem; font-weight: 950; letter-spacing: .06em; }
.explorer-next { margin-top: 1rem; color: var(--white); background: var(--black); }
.explorer-finish { padding: clamp(1.2rem, 4vw, 2rem); background: var(--white); border-top: 8px solid var(--black); }
.explorer-finish h2 { margin-top: 0; }
.rights-referee { max-width: 940px; padding: clamp(1rem, 4vw, 2rem); background: var(--stone); border: 1px solid var(--line); }
.rights-case { display: grid; grid-template-columns: minmax(180px, 32%) 1fr; background: var(--white); border-top: 8px solid var(--black); }
.rights-case > svg { width: 100%; align-self: center; padding: 1.2rem; color: var(--black); }
.rights-case > div { padding: clamp(1rem, 3vw, 1.7rem); }
.rights-facts { margin: .6rem 0 1rem; font-size: 1.02rem; font-weight: 650; line-height: 1.5; }
.rights-case h2 { margin: 0 0 .8rem; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.rights-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.rights-options button { min-height: 58px; border: 2px solid var(--black); background: var(--white); cursor: pointer; font-weight: 950; }
.rights-options button:hover:not(:disabled), .rights-options button[data-answer="correct"] { color: var(--white); background: var(--black); }
.rights-options button[data-answer="selected"] { text-decoration: line-through; background: var(--paper); }
.rights-referee .explorer-feedback a { display: inline-block; margin-top: .8rem; color: var(--black); font-size: .74rem; font-weight: 950; }
.presidential-power { max-width: 940px; padding: clamp(1rem, 4vw, 2rem); background: var(--stone); border: 1px solid var(--line); }
.power-case { display: grid; grid-template-columns: minmax(190px, 32%) 1fr; background: var(--white); border-top: 8px solid var(--black); }
.power-case > svg { width: 100%; align-self: center; padding: 1.2rem; color: var(--black); }
.power-case > div { padding: clamp(1rem, 3vw, 1.7rem); }
.power-action { margin: .6rem 0 1rem; font-size: 1.02rem; font-weight: 650; line-height: 1.5; }
.power-case h2 { margin: 0 0 .8rem; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.power-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.power-options button { min-height: 58px; border: 2px solid var(--black); background: var(--white); cursor: pointer; font-weight: 950; }
.power-options button:hover:not(:disabled), .power-options button[data-answer="correct"] { color: var(--white); background: var(--black); }
.power-options button[data-answer="selected"] { text-decoration: line-through; background: var(--paper); }
.power-feedback { margin-top: 1rem; padding: 1.2rem; background: var(--white); border-left: 8px solid var(--black); }
.power-feedback > strong { display: block; margin-bottom: .6rem; font-size: 1.15rem; }
.power-feedback > p { font-weight: 650; line-height: 1.5; }
.power-feedback > a { display: inline-block; margin-top: .8rem; color: var(--black); font-size: .74rem; font-weight: 950; }
.power-limits { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.power-limits p { margin: 0; padding: .8rem; background: var(--stone); font-size: .82rem; font-weight: 650; }
.power-limits b { display: block; margin-bottom: .35rem; font-size: .7rem; letter-spacing: .08em; }
.bill-intro { max-width: 920px; }
.bill-journey { max-width: 1120px; padding: clamp(.8rem, 2vw, 1.4rem); background: var(--stone); border: 1px solid var(--line); }
.bill-route { margin-bottom: 1rem; display: grid; grid-template-columns: repeat(7, 1fr); background: var(--white); border: 2px solid var(--black); overflow-x: auto; }
.bill-route-stop { min-width: 105px; min-height: 72px; padding: .7rem; position: relative; display: grid; align-content: center; border-right: 1px solid var(--stone-dark); }
.bill-route-stop:last-child { border-right: 0; }
.bill-route-stop span { color: var(--muted); font-size: .62rem; font-weight: 950; letter-spacing: .08em; }
.bill-route-stop strong { font-size: .68rem; line-height: 1.2; }
.bill-route-stop[data-state="passed"] { color: var(--white); background: var(--slate); }
.bill-route-stop[data-state="passed"] span { color: var(--stone); }
.bill-route-stop[data-state="current"] { color: var(--white); background: var(--black); box-shadow: inset 0 -7px 0 var(--white); }
.bill-route-stop[data-state="current"] span { color: var(--white); }
.bill-stage-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr); gap: 1rem; }
.bill-stage { min-height: 560px; padding: clamp(1.2rem, 4vw, 2.4rem); display: flex; flex-direction: column; background: var(--white); border-top: 10px solid var(--black); }
.bill-stage h2, .bill-start h2, .bill-outcome h2 { margin: .25rem 0 .8rem; font-size: clamp(2rem, 5vw, 4rem); line-height: .93; letter-spacing: -.045em; }
.bill-stage h3 { margin: auto 0 .8rem; padding-top: 2rem; font-size: .82rem; letter-spacing: .07em; }
.bill-stage-explanation { max-width: 670px; margin: 0; font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 650; line-height: 1.55; }
.bill-hearing-note { margin-top: 1.4rem; padding: 1rem; background: var(--stone); border-left: 7px solid var(--black); }
.bill-hearing-note strong { font-size: .69rem; letter-spacing: .08em; }
.bill-hearing-note p { margin: .4rem 0 0; font-weight: 700; line-height: 1.45; }
.bill-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.bill-choices button { min-height: 62px; padding: .8rem 1rem; border: 2px solid var(--black); background: var(--white); cursor: pointer; font-weight: 950; text-align: left; }
.bill-choices button:hover:not(:disabled), .bill-choices button[data-selected="true"] { color: var(--white); background: var(--black); }
.bill-feedback { margin-top: .8rem; padding: 1rem; background: var(--stone); border-left: 7px solid var(--black); }
.bill-feedback strong { display: block; font-size: .75rem; letter-spacing: .06em; }
.bill-feedback p { margin: .4rem 0 0; font-weight: 650; line-height: 1.45; }
.bill-folder { min-height: 560px; padding: 2rem 1.2rem 1.2rem; position: relative; background: #eceae5; border: 2px solid var(--black); box-shadow: 7px 7px 0 var(--slate); }
.bill-folder::before { content: ""; position: absolute; inset: 13px; pointer-events: none; border: 1px solid #aaa; }
.bill-folder > * { position: relative; }
.bill-folder-tab { margin: -2rem 0 1.4rem -1.2rem; padding: .65rem 1.2rem; display: inline-block; color: var(--white); background: var(--black); font-size: .66rem; font-weight: 950; letter-spacing: .06em; }
.bill-folder h2 { margin: .3rem 0 .8rem; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: .95; }
.bill-number { padding: .35rem .5rem; display: inline-block; background: var(--white); border: 1px solid var(--black); font-family: "Courier New", monospace; font-size: .8rem; }
.bill-folder > p:not(.eyebrow) { font-weight: 650; line-height: 1.5; }
.bill-change { margin-top: 1rem; padding: .8rem; background: var(--white); border: 1px solid var(--black); }
.bill-change strong { font-size: .66rem; letter-spacing: .07em; }
.bill-change p { margin: .35rem 0 0; font-size: .82rem; font-weight: 650; line-height: 1.4; }
.bill-stamps { margin-top: 1.2rem; display: grid; gap: .55rem; }
.bill-stamps span { padding: .55rem; display: block; color: var(--slate); border: 3px double var(--slate); font-size: .65rem; font-weight: 950; letter-spacing: .06em; text-align: center; transform: rotate(-1deg); }
.bill-stamps span:nth-child(even) { transform: rotate(1deg); }
.bill-start { padding: clamp(1.2rem, 4vw, 2.5rem); background: var(--white); border-top: 10px solid var(--black); }
.bill-start > p { font-size: 1.08rem; font-weight: 650; }
.bill-proposal-grid { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.bill-proposal-grid button { min-height: 170px; padding: 1.2rem; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: .4rem 1rem; border: 2px solid var(--black); background: var(--white); cursor: pointer; text-align: left; }
.bill-proposal-grid button:hover, .bill-proposal-grid button:focus-visible { color: var(--white); background: var(--black); }
.bill-proposal-grid button span { grid-row: 1 / 3; font-size: 2.5rem; font-weight: 950; line-height: .9; }
.bill-proposal-grid button strong { font-size: 1.05rem; }
.bill-proposal-grid button p { margin: 0; font-weight: 650; line-height: 1.4; }
.bill-outcome { min-height: 380px; padding: clamp(1.2rem, 4vw, 2.5rem); display: grid; grid-template-columns: minmax(170px, .45fr) 1fr; gap: 1.5rem; align-items: center; color: var(--white); background: var(--black); border-bottom: 10px solid var(--slate); }
.bill-outcome-mark { aspect-ratio: 1; display: grid; place-items: center; border: 10px double var(--white); border-radius: 50%; font-size: clamp(2rem, 6vw, 4.8rem); font-weight: 950; transform: rotate(-6deg); }
.bill-outcome .eyebrow { color: var(--stone); }
.bill-outcome h2 { color: var(--white); }
.bill-outcome p:not(.eyebrow) { max-width: 680px; font-weight: 650; line-height: 1.5; }
.bill-outcome-note { padding: .8rem; color: var(--black); background: var(--stone); }
.bill-outcome .primary-action { margin-top: .8rem; color: var(--black); background: var(--white); border-color: var(--white); }
.bill-outcome + .bill-folder { display: none; }
.federalism-intro { max-width: 920px; }
.federalism-map { max-width: 1180px; padding: clamp(.8rem, 2vw, 1.4rem); background: var(--stone); border: 1px solid var(--line); }
.federalism-key { margin-bottom: 1rem; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border: 2px solid var(--black); }
.federalism-key-item { min-width: 0; padding: .75rem; border-right: 1px solid var(--stone-dark); }
.federalism-key-item:last-child { border-right: 0; }
.federalism-key-item p { margin: .5rem 0 0; font-size: .7rem; font-weight: 650; line-height: 1.35; }
.government-levels { display: flex; flex-wrap: wrap; gap: .35rem; }
.government-level { padding: .35rem .45rem; display: inline-block; color: var(--white); background: var(--black); border: 2px solid var(--black); font-size: .61rem; font-weight: 950; letter-spacing: .06em; line-height: 1; }
.government-level[data-level="state"] { color: var(--black); background: #bdbdb9; }
.government-level[data-level="local"] { color: var(--black); background: var(--white); }
.government-level[data-level="tribal"] { color: var(--white); background: var(--slate); }
.government-level[data-level="shared"] { color: var(--black); background: repeating-linear-gradient(135deg, var(--white) 0 6px, #c9c9c5 6px 12px); }
.federalism-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 1rem; align-items: start; }
.community-map { min-height: 720px; padding: 1rem; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto repeat(3, 1fr); gap: .8rem; background-color: #d1d0cb; background-image: linear-gradient(90deg, transparent 31.8%, #f5f5f2 31.8% 35%, transparent 35% 65%, #f5f5f2 65% 68.2%, transparent 68.2%), linear-gradient(transparent 31%, #f5f5f2 31% 34%, transparent 34% 65%, #f5f5f2 65% 68%, transparent 68%); border: 2px solid var(--black); overflow: hidden; }
.community-map::after { content: "SAN DIEGO"; padding: .35rem .5rem; position: absolute; right: 1rem; bottom: 1rem; color: var(--white); background: var(--black); font-size: .62rem; font-weight: 950; letter-spacing: .1em; pointer-events: none; }
.community-map-heading { grid-column: 1 / -1; padding: .7rem .8rem; position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; color: var(--white); background: var(--black); }
.community-map-heading p { margin: 0; color: var(--stone); }
.community-map-heading h2 { margin: 0; font-size: 1rem; }
.map-location { min-height: 170px; padding: .8rem; position: relative; z-index: 1; display: grid; grid-template-rows: 1fr auto auto; align-items: end; justify-items: start; border: 2px solid var(--black); background: rgba(255,255,255,.92); cursor: pointer; text-align: left; }
.map-location:hover, .map-location:focus-visible, .map-location[aria-pressed="true"] { color: var(--white); background: var(--black); }
.map-location[data-visited="true"]::after { content: "EXPLORED"; padding: .25rem .35rem; position: absolute; top: .45rem; right: .45rem; color: var(--black); background: var(--white); border: 1px solid var(--black); font-size: .52rem; font-weight: 950; letter-spacing: .06em; }
.map-location strong { font-size: .8rem; line-height: 1.15; }
.map-location-levels { margin-top: .3rem; font-size: .55rem; font-weight: 900; letter-spacing: .04em; }
.map-structure { width: 72px; height: 46px; margin: 0 auto 1rem; position: relative; align-self: center; justify-self: center; display: block; background: var(--black); border-bottom: 7px solid var(--slate); }
.map-structure::before { content: ""; width: 0; height: 0; position: absolute; left: 50%; top: -24px; border-left: 44px solid transparent; border-right: 44px solid transparent; border-bottom: 25px solid var(--black); transform: translateX(-50%); }
.map-structure::after { content: ""; position: absolute; inset: 10px 9px 7px; background: repeating-linear-gradient(90deg, var(--white) 0 7px, transparent 7px 15px); opacity: .9; }
.map-location:hover .map-structure, .map-location:focus-visible .map-structure, .map-location[aria-pressed="true"] .map-structure { background: var(--white); border-color: #888; }
.map-location:hover .map-structure::before, .map-location:focus-visible .map-structure::before, .map-location[aria-pressed="true"] .map-structure::before { border-bottom-color: var(--white); }
.map-location:hover .map-structure::after, .map-location:focus-visible .map-structure::after, .map-location[aria-pressed="true"] .map-structure::after { background: repeating-linear-gradient(90deg, var(--black) 0 7px, transparent 7px 15px); }
.map-location[data-icon="STREET"] .map-structure, .map-location[data-icon="FREEWAY"] .map-structure, .map-location[data-icon="BORDER"] .map-structure { width: 100px; height: 52px; background: repeating-linear-gradient(90deg, var(--black) 0 42px, var(--white) 42px 58px, var(--black) 58px 100px); border: 0; transform: perspective(90px) rotateX(28deg); }
.map-location[data-icon="STREET"] .map-structure::before, .map-location[data-icon="STREET"] .map-structure::after, .map-location[data-icon="FREEWAY"] .map-structure::before, .map-location[data-icon="FREEWAY"] .map-structure::after, .map-location[data-icon="BORDER"] .map-structure::before, .map-location[data-icon="BORDER"] .map-structure::after { display: none; }
.map-location[data-icon="TRIBAL"] .map-structure { width: 76px; height: 76px; background: transparent; border: 8px double var(--black); border-radius: 50%; }
.map-location[data-icon="TRIBAL"] .map-structure::before { width: 38px; height: 38px; top: 11px; border: 0; border-radius: 50%; background: var(--black); }
.map-location[data-icon="TRIBAL"] .map-structure::after { display: none; }
.map-location[data-icon="TRIBAL"]:hover .map-structure, .map-location[data-icon="TRIBAL"]:focus-visible .map-structure, .map-location[data-icon="TRIBAL"][aria-pressed="true"] .map-structure { border-color: var(--white); }
.map-location[data-icon="TRIBAL"]:hover .map-structure::before, .map-location[data-icon="TRIBAL"]:focus-visible .map-structure::before, .map-location[data-icon="TRIBAL"][aria-pressed="true"] .map-structure::before { background: var(--white); }
.federalism-detail { min-height: 720px; padding: clamp(1.2rem, 3vw, 2rem); position: sticky; top: 88px; background: var(--white); border-top: 10px solid var(--black); box-shadow: 7px 7px 0 var(--slate); }
.federalism-detail-top h2 { margin: .35rem 0 .8rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .92; letter-spacing: -.04em; }
.federalism-facts { margin-top: 1.5rem; display: grid; gap: .9rem; }
.federalism-facts section { padding-top: .8rem; border-top: 2px solid var(--black); }
.federalism-facts h3 { margin: 0 0 .35rem; font-size: .7rem; letter-spacing: .08em; }
.federalism-facts p { margin: 0; font-weight: 650; line-height: 1.48; }
.federalism-detail blockquote { margin: 1.2rem 0; padding: 1rem; background: var(--stone); border-left: 7px solid var(--black); font-size: 1rem; font-weight: 800; line-height: 1.4; }
.federalism-detail > a { min-height: 44px; padding: .6rem 0; display: inline-flex; align-items: center; color: var(--black); font-size: .68rem; font-weight: 950; letter-spacing: .05em; }
.founding-power { max-width: 1100px; padding: clamp(1rem, 3vw, 2rem); background: var(--stone); border: 1px solid var(--line); }
.founding-story-opening { min-height: 70vh; padding: clamp(1.5rem, 6vw, 4rem); display: grid; align-content: center; color: #f4ead7; background: #211d18; border-top: 9px solid #080808; }
.founding-story-opening .eyebrow { color: #c9b997; }
.founding-story-opening h2 { max-width: 760px; margin: .35rem 0 1.4rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 6vw, 4.8rem); font-weight: 700; line-height: .98; }
.founding-story-opening p:not(.eyebrow) { max-width: 700px; margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.02rem, 2vw, 1.35rem); line-height: 1.55; }
.founding-story { margin-top: 1rem; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(340px, .92fr); gap: clamp(1.5rem, 5vw, 4rem); background: var(--white); border-top: 8px solid var(--black); }
.founding-story-visual { height: calc(100vh - 90px); margin: 0; padding: 1.5rem; position: sticky; top: 78px; display: grid; grid-template-rows: 1fr auto; gap: .8rem; background: #d4d0c7; overflow: hidden; }
.founding-story-media { min-height: 0; display: grid; place-items: center; overflow: hidden; }
.founding-story-media img, .founding-story-media svg { width: 100%; height: 100%; max-height: calc(100vh - 180px); object-fit: contain; animation: story-image-in .5s ease both; }
.founding-story-visual figcaption { padding-top: .7rem; border-top: 3px solid var(--black); font-size: .68rem; font-weight: 950; letter-spacing: .07em; }
.founding-story-chapters { padding: 20vh 1.4rem 30vh 0; }
.founding-story-chapter { min-height: 78vh; padding: clamp(1.2rem, 4vw, 2.2rem); display: grid; align-content: center; opacity: .34; transform: translateY(18px); transition: opacity .35s ease, transform .35s ease; outline: none; }
.founding-story-chapter[data-active="true"], .founding-story-chapter:focus-within { opacity: 1; transform: none; }
.founding-story-chapter:focus { box-shadow: inset 5px 0 0 var(--black); }
.founding-story-chapter .eyebrow { margin: 0 0 .5rem; }
.founding-story-chapter h2 { margin: 0 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.05; }
.founding-story-chapter h3 { margin: 0 0 1rem; font-size: .8rem; letter-spacing: .08em; }
.story-type-1 h2, .story-type-1 blockquote { font-family: "Courier New", Courier, monospace; }
.story-type-2 h2 { font-family: Baskerville, Georgia, "Times New Roman", serif; font-style: italic; }
.founding-story-chapter blockquote { margin: .5rem 0 .8rem; padding: 1rem; background: #f0e7d5; border-left: 6px solid var(--black); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.02rem, 2vw, 1.25rem); font-weight: 700; line-height: 1.45; }
.founding-story-chapter > p:not(.eyebrow):not(.founding-word-help) { font-weight: 650; line-height: 1.55; }
.founding-story-chapter > a { color: var(--black); font-size: .72rem; font-weight: 950; }
.founding-story-mobile-visual { display: none; }
.founding-word-help { display: inline-block; justify-self: start; margin: 0 0 1rem; padding: .5rem .65rem; background: var(--stone); font-size: .72rem; font-weight: 950; letter-spacing: .04em; line-height: 1.55; white-space: pre-line; }
.founding-story-connection { padding: .8rem; background: var(--stone); }
.founding-story-connection b { display: block; margin-bottom: .35rem; font-size: .66rem; letter-spacing: .08em; }
.founding-caution { padding: .75rem; border-left: 5px solid var(--black); font-size: .82rem; }
.founding-story-conclusion { padding: clamp(1.5rem, 5vw, 3.5rem); color: var(--black); background: var(--white); border-top: 10px solid var(--black); }
.founding-story-conclusion > h2 { max-width: 760px; margin: .35rem 0 .8rem; font-size: clamp(2rem, 6vw, 4.6rem); line-height: .95; }
.founding-story-conclusion > p:not(.eyebrow) { max-width: 720px; font-size: 1.05rem; font-weight: 650; line-height: 1.55; }
.founding-story-framework { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.founding-column { min-width: 0; display: grid; gap: .7rem; }
.founding-column > h2 { min-height: 48px; margin: 0; padding-bottom: .55rem; display: flex; align-items: end; border-bottom: 4px solid var(--black); font-size: .8rem; letter-spacing: .08em; }
.founding-ideals article, .founding-designs article { min-height: 115px; padding: .85rem; border: 2px solid var(--black); }
.founding-ideals article { color: var(--white); background: var(--black); }
.founding-designs article { background: var(--stone); }
.founding-ideals h3, .founding-designs h3 { margin: 0 0 .35rem; font-size: .82rem; }
.founding-ideals article > span, .founding-designs article > span { display: block; margin-bottom: .5rem; font-size: .58rem; font-weight: 950; letter-spacing: .05em; }
.founding-ideals article > span { color: var(--stone); }
.founding-designs article > span { color: var(--muted); }
.founding-ideals p, .founding-designs p { margin: 0; font-size: .73rem; font-weight: 650; line-height: 1.35; }
@keyframes story-image-in { from { opacity: 0; transform: scale(.985); } }
.founding-story-chapter > a, .president-facts a {
  min-height: 44px; padding: .55rem 0; display: inline-flex; align-items: center;
}
.zip-chooser { margin-top: 1rem; }
.zip-change-button { min-height: 44px; margin-top: .25rem; padding: .5rem 0; color: var(--black); background: transparent; border: 0; border-bottom: 1px solid var(--black); font: inherit; font-size: .7rem; font-weight: 950; cursor: pointer; }
.zip-change-button:hover { color: var(--slate); }
.zip-change-button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.zip-chooser label { display: block; margin-bottom: .35rem; font-size: .72rem; font-weight: 950; letter-spacing: .08em; }
.zip-chooser > div { display: flex; gap: .5rem; }
.zip-chooser input { width: 10rem; min-height: 48px; padding: .75rem; border: 2px solid var(--black); background: var(--white); font: inherit; font-weight: 900; }
.zip-chooser button { min-height: 48px; padding: .75rem 1rem; border: 2px solid var(--black); color: var(--white); background: var(--black); font: inherit; font-size: .78rem; font-weight: 950; cursor: pointer; }
.zip-status { margin-bottom: 0; font-size: .82rem; font-weight: 800; }
.local-lookup-card { border-top-color: var(--blue); }
.proposition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.proposition-card { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--black); }
.proposition-card summary { min-height: 150px; padding: 1rem; display: grid; align-content: start; gap: .45rem; cursor: pointer; }
.proposition-card summary span { width: max-content; padding: .3rem .5rem; color: var(--white); background: var(--black); font-size: .7rem; font-weight: 950; }
.proposition-card summary strong { font-size: 1.08rem; }
.proposition-card summary small { color: var(--muted); font-size: .84rem; font-weight: 650; line-height: 1.4; }
.proposition-choices { padding: 0 1rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.proposition-choices p { margin: 0; padding: .8rem; background: var(--stone); font-size: .8rem; font-weight: 650; line-height: 1.4; }
.proposition-choices b { display: block; margin-bottom: .3rem; font-size: .72rem; letter-spacing: .08em; }
.proposition-explanation { margin: 0 1rem .75rem; padding: .85rem; font-size: .84rem; font-weight: 650; line-height: 1.5; }
.proposition-explanation { background: var(--stone); }
.proposition-explanation b { display: block; margin-bottom: .3rem; font-size: .7rem; letter-spacing: .08em; }
.proposition-source { min-height: 44px; margin: 0 1rem .75rem; display: inline-flex; align-items: center; color: var(--black); font-size: .72rem; font-weight: 900; }
.more-propositions { margin-top: 1rem; padding: 1.2rem; background: var(--stone); border: 1px solid var(--stone-dark); }
.more-propositions h3 { margin: 0 0 .8rem; }
.more-propositions > p { margin: -.3rem 0 1rem; color: var(--muted); font-size: .84rem; font-weight: 650; }
.more-propositions ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.more-propositions li { padding: .8rem; display: grid; gap: .25rem; background: var(--white); border-left: 5px solid var(--black); }
.more-propositions li strong { font-size: .84rem; }
.more-propositions li span { color: var(--muted); font-size: .8rem; font-weight: 650; }
.more-propositions li a { min-height: 36px; display: inline-flex; align-items: center; color: var(--black); font-size: .7rem; font-weight: 950; }
.admin-foundation-note { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 650; }
.admin-unlock-row { margin-top: .7rem; grid-template-columns: 1fr 190px; align-items: center; }
.admin-unit-unlock-row, .admin-assignment-unlock-row { display: grid; grid-template-columns: auto 1fr; gap: .65rem; }
.admin-unit-unlock-row input, .admin-assignment-unlock-row > input:first-child { width: 22px; height: 22px; }
.admin-assignment-unlock-row { grid-template-columns: auto minmax(180px, .7fr) minmax(260px, 1.3fr); padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.admin-assignment-unlock-row > input:last-child { min-height: 44px; }
.admin-assignment-unlock-row > input:disabled + span { color: var(--muted); }

.admin-overlay { position: fixed; z-index: 900; inset: 0; padding: 1rem; display: grid; place-items: center; background: rgba(0,0,0,.82); }
.admin-panel { width: min(780px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: var(--paper); border: 6px solid var(--white); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.admin-header { padding: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--white); background: var(--black); }
.admin-header h2 { margin: 0; }
.admin-header .eyebrow { color: var(--stone); }
.admin-header button { width: 46px; height: 46px; border: 1px solid var(--white); color: var(--white); background: transparent; cursor: pointer; font-size: 1.6rem; }
.admin-grid { padding: 1.2rem; display: grid; gap: 1rem; }
.admin-grid label, .admin-grid legend { display: grid; gap: .4rem; font-size: .75rem; font-weight: 950; letter-spacing: .06em; }
.admin-grid fieldset { margin: 0; padding: 1rem; border: 1px solid var(--stone-dark); }
.admin-upcoming-row { margin-top: .6rem; display: grid; grid-template-columns: 1fr 150px 44px; gap: .5rem; }
.admin-upcoming-row button, .admin-add { border: 1px solid var(--black); background: var(--white); cursor: pointer; font-weight: 900; }
.admin-add { min-height: 44px; margin-top: .7rem; padding: .5rem .8rem; }
.admin-actions { padding: 1.2rem; display: flex; align-items: center; justify-content: flex-end; gap: .6rem; border-top: 1px solid var(--line); background: var(--white); }
.admin-actions p { margin: 0 auto 0 0; max-width: 390px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.admin-actions button { min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--black); background: var(--white); cursor: pointer; font-weight: 900; }
#admin-publish { color: var(--white); background: var(--black); }
.admin-actions button:disabled, .admin-token-row button:disabled { color: #777; background: var(--stone); cursor: not-allowed; }
.admin-token-row { margin-top: .8rem; display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: end; }
.admin-token-help { margin-top: .55rem; display: inline-block; color: var(--black); font-size: .72rem; font-weight: 950; }
.admin-token-row button { min-height: 46px; padding: .65rem .8rem; border: 1px solid var(--black); background: var(--white); cursor: pointer; font-size: .72rem; font-weight: 950; }
.admin-connection-status { margin: .7rem 0 0; padding: .65rem .8rem; background: var(--stone); border-left: 5px solid var(--black); font-size: .74rem; font-weight: 900; }
.admin-connection-status[data-connected="true"] { color: var(--white); background: var(--black); }
.admin-status { min-height: 1.5rem; margin: 0; padding: 0 1.2rem 1rem; font-size: .78rem; font-weight: 900; }

@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
@keyframes portrait-rain-fall {
  from { transform: translate3d(0, -15vh, 0) rotate(-4deg); }
  to { transform: translate3d(45px, 125vh, 0) rotate(7deg); }
}
@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; padding: 10px 16px; }
  .menu-button { display: block; }
  nav { width: 100%; display: none; flex-direction: column; padding-bottom: .5rem; }
  nav.open { display: flex; }
  nav a { width: 100%; }
}
@media (max-width: 800px) {
  .madison-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { flex-wrap: wrap; padding: 10px 16px; }
  .menu-button { display: block; }
  nav { width: 100%; display: none; flex-direction: column; padding-bottom: .5rem; }
  nav.open { display: flex; }
  nav a { width: 100%; }
  main { padding: 5px 14px 60px; }
  .home-hero { margin: .5rem 0 1.5rem; padding: 1.5rem 0; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hero.home-hero { border-radius: 0; }
  .home-hero h1 { font-size: clamp(3.4rem, 9vw, 5rem); }
  .home-hero .now-panel { grid-template-columns: minmax(0, 1fr); }
  .home-hero .next-step { justify-items: start; }
  .hero { min-height: 230px; padding: 3rem 1.2rem 4.25rem; border-radius: 24px; }
  .course-path { font-size: .85rem; }
  .now-panel { width: calc(100% - 18px); margin-top: -35px; grid-template-columns: 1fr; gap: 1rem; }
  .next-step { padding: 0; border: 0; }
  .semester-cards, .unit-grid, .word-grid, .president-grid { grid-template-columns: 1fr; }
  .semester-card { grid-template-columns: auto 1fr; }
  .unit-resource-grid, .unit-source-grid { grid-template-columns: 1fr; }
  .unit-resource-item { grid-template-columns: 48px minmax(0, 1fr); }
  .unit-resource-summary { flex-wrap: wrap; }
  .unit-resource-count { margin-left: auto; }
  .unit-completion-star { width: 44px; min-height: 44px; font-size: 1.5rem; }
  .lesson-card { grid-template-columns: 46px minmax(0, 1fr); }
  .lesson-standard { grid-column: 2; width: fit-content; white-space: normal; }
  .lesson { grid-template-columns: 46px 1fr; }
  .standard-tag { grid-column: 2; width: max-content; }
  .home-dashboard { grid-template-columns: 1fr; grid-template-areas: "election" "history" "links"; gap: 1rem; }
  .course-links-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-dashboard .course-link-tile { min-height: 92px; padding: .8rem 0; }
  .home-exit-ticket { grid-template-columns: 52px minmax(0, 1fr) auto; padding: .9rem; gap: .75rem; }
  .home-exit-icon { width: 52px; height: 52px; }
  .election-tracker-layout { grid-template-columns: 1fr; }
  .agenda-layout { min-height: auto; grid-template-columns: 1fr; }
  .agenda-date-panel { border-left: 0; border-top: 10px solid var(--slate); }
  .agenda-today { min-height: 330px; }
  .agenda-today time { font-size: clamp(4rem, 21vw, 7rem); }
  .election-countdown strong { font-size: clamp(6rem, 32vw, 9rem); }
  .history-card, .exit-card { grid-column: 1; }
  .history-body { grid-template-columns: 1fr; gap: .8rem; }
  .admin-actions { align-items: stretch; flex-direction: column; }
  .admin-token-row { grid-template-columns: 1fr 1fr; }
  .admin-token-row label { grid-column: 1 / -1; }
  .admin-upcoming-row { grid-template-columns: 1fr 100px 44px; }
  .foundation-tabs button { flex: 0 0 auto; }
  .tool-heading { align-items: start; flex-direction: column; }
  .tool-heading > p { text-align: left; }
  .document-grid, .case-foundation-grid, .skills-grid, .madison-sides { grid-template-columns: 1fr; }
  .ap-exam-lab { grid-template-columns: 1fr; }
  .explorer-options { grid-template-columns: 1fr; }
  .rights-case { grid-template-columns: 1fr; }
  .rights-case > svg { max-width: 220px; justify-self: center; padding-bottom: 0; }
  .power-case { grid-template-columns: 1fr; }
  .power-case > svg { max-width: 220px; justify-self: center; padding-bottom: 0; }
  .bill-route { grid-template-columns: repeat(7, minmax(105px, 1fr)); }
  .bill-stage-layout { grid-template-columns: 1fr; }
  .bill-folder { min-height: auto; order: -1; }
  .bill-stage { min-height: auto; }
  .bill-stage h3 { margin-top: 1.2rem; }
  .bill-proposal-grid { grid-template-columns: 1fr; }
  .bill-outcome { grid-template-columns: 1fr; }
  .bill-outcome-mark { width: 150px; }
  .federalism-key { grid-template-columns: 1fr 1fr; }
  .federalism-key-item { border-bottom: 1px solid var(--stone-dark); }
  .federalism-layout { grid-template-columns: 1fr; }
  .community-map { min-height: auto; }
  .federalism-detail { min-height: auto; position: static; }
  .founding-story-opening { min-height: auto; padding: 2rem 1.3rem; }
  .founding-story { grid-template-columns: 1fr; }
  .founding-story-visual { display: none; }
  .founding-story-chapters { padding: 0; }
  .founding-story-chapter { min-height: auto; padding: 2.5rem 1.2rem; opacity: 1; transform: none; }
  .founding-story-mobile-visual { min-height: 250px; margin-bottom: 1.2rem; padding: 1rem; display: grid; place-items: center; background: var(--stone); }
  .founding-story-mobile-visual img, .founding-story-mobile-visual svg { width: 100%; max-height: 430px; object-fit: contain; }
  .founding-story-framework { grid-template-columns: 1fr; }
  .founding-column { grid-template-columns: 1fr 1fr; }
  .founding-column > h2 { grid-column: 1 / -1; min-height: auto; }
  .race-grid, .proposition-grid, .more-propositions ul { grid-template-columns: 1fr; }
  .madison-side p { min-height: auto; }
  .admin-unlock-row { grid-template-columns: 1fr; }
  .admin-unit-unlock-row { grid-template-columns: auto 1fr; }
  .admin-assignment-unlock-row { grid-template-columns: auto 1fr; }
  .admin-assignment-unlock-row > input:last-child { grid-column: 1 / -1; }
  footer { flex-direction: column; }
}
@media (max-width: 420px) {
  .founding-column { grid-template-columns: 1fr; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .72rem; }
  .brand img { width: 38px; height: 38px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .home-hero h1 { font-size: clamp(3.6rem, 16vw, 5rem); }
  .home-hero .now-panel { gap: .65rem; }
  .featured-documents { max-width: none; }
  .featured-document { grid-template-columns: 72px minmax(0, 1fr) 20px; gap: .6rem; }
  .featured-document-image { width: 72px; height: 72px; }
  .featured-document-copy strong { font-size: .94rem; }
  .featured-document-copy > span:last-child { font-size: .69rem; }
  .home-dashboard .election-tracker-layout { grid-template-columns: 1fr; }
  .home-dashboard .election-countdown { padding-right: .65rem; }
  .home-dashboard .election-tracker-copy { padding-left: .7rem; }
  .home-dashboard .election-tracker-card .election-countdown { min-height: 0; padding: .75rem 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .65rem; row-gap: .2rem; border: 0; }
  .home-dashboard .election-tracker-card .election-countdown strong { grid-row: 1 / 3; font-size: 3.6rem; }
  .home-dashboard .election-tracker-card .election-countdown p { margin: 0; font-size: .72rem; line-height: 1.2; letter-spacing: .04em; }
  .home-dashboard .election-tracker-card .election-progress { grid-column: 1 / -1; width: 100%; margin: .3rem 0; }
  .home-dashboard .election-tracker-card .election-countdown > time { grid-column: 1 / -1; margin: 0; font-size: .72rem; }
  .home-dashboard .election-tracker-copy { padding: .85rem 0; border-top: 1px solid #aeb4b5; border-left: 0; }
  .home-dashboard .history-body { grid-template-columns: minmax(76px, .4fr) minmax(0, 1fr); gap: .7rem; }
  .course-links-card { grid-template-columns: 1fr; gap: 0; }
  .course-links-heading { margin-bottom: .2rem; }
  .home-dashboard .course-link-tile { min-height: 70px; padding: .7rem 0; }
  .home-dashboard .course-link-tile h2 { font-size: 1.3rem; }
  .zip-chooser > div { align-items: stretch; flex-direction: column; }
  .zip-chooser input { width: 100%; }
  .hero h1 { font-size: clamp(1.55rem, 8vw, 3.25rem); }
  .hero-line-secondary { font-size: .72em; letter-spacing: -.045em; white-space: normal; }
  .path-stop b { font-size: .75rem; }
  .lesson { grid-template-columns: 1fr; }
  .lesson details, .standard-tag { grid-column: 1; }
  .candidate-list, .proposition-choices { grid-template-columns: 1fr; }
  .race-issue-row > div { grid-template-columns: 1fr; }
  .power-options, .power-limits { grid-template-columns: 1fr; }
  .bill-choices { grid-template-columns: 1fr; }
  .bill-proposal-grid button { grid-template-columns: 1fr; }
  .bill-proposal-grid button span { grid-row: auto; font-size: 1.5rem; }
  .community-map { grid-template-columns: 1fr; grid-template-rows: auto; background-image: none; }
  .community-map-heading { align-items: start; flex-direction: column; gap: .3rem; }
  .map-location { min-height: 140px; grid-template-columns: 95px 1fr; grid-template-rows: 1fr auto; align-items: center; }
  .map-structure { grid-row: 1 / 3; margin: 0; transform: scale(.8); }
  .map-location-levels { grid-column: 2; }
  .federalism-key { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .portrait-rain span { transform: translateY(var(--rest)); }
}
