[data-a11-legacy-shell="sections"] > :is(nav.a11-nav, .a11-status-banner) {
  display: none;
}
.a11b > .site-header.wrap[data-a11-sections] {
  align-items: center;
  column-gap: clamp(.65rem, 2vw, 1.6rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-inline: auto;
  max-width: 80rem;
  padding: .7rem clamp(.8rem, 3vw, 2rem);
  width: 100%;
}
[data-a11-legacy-shell="sections"] .a11b {
  background: #10241d;
  color: #fffdf3;
  position: relative;
  z-index: 2;
}
.a11b > .site-header.wrap[data-a11-sections] > .brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: .6rem;
  min-width: 0;
  order: 0;
}
[data-a11-legacy-shell="sections"] [data-a11-sections] .brand {
  color: inherit;
  font: 750 .92rem/1.2 system-ui, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
}
[data-a11-legacy-shell="sections"] [data-a11-sections] .mark {
  align-items: center;
  background: #345746;
  border-radius: 50%;
  display: inline-flex;
  font: 700 1.15rem/1 Georgia, serif;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}
[data-a11-legacy-shell="sections"] [data-a11-sections] small {
  display: block;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .04em;
  margin-top: .22rem;
}
.a11b > .site-header.wrap[data-a11-sections] > .a11n-agent-link {
  align-items: center;
  display: inline-flex;
  font: 700 .88rem/1.2 system-ui, sans-serif;
  margin: 0 0 0 auto;
  min-height: 44px;
  order: 2;
  text-underline-offset: .22em;
  white-space: nowrap;
}
[data-a11-legacy-shell="sections"] [data-a11-sections] > .a11n-agent-link { color: #aaf0bf; }
.a11b > .site-header.wrap[data-a11-sections] > nav#a11n-nav {
  align-items: center;
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 0 .95rem;
  margin: 0;
  mask-image: none;
  order: 4;
  overflow: visible;
  padding: .4rem 0 0;
  white-space: normal;
}
.a11b > .site-header.wrap[data-a11-sections] > nav#a11n-nav > a {
  align-items: center;
  border-radius: .3rem;
  color: inherit;
  display: inline-flex;
  font: 650 .88rem/1.2 system-ui, sans-serif;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 .3rem;
  text-decoration: none;
}
.a11b > .site-header.wrap[data-a11-sections] > nav#a11n-nav > a:hover,
.a11b > .site-header.wrap[data-a11-sections] > nav#a11n-nav > a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .32em;
}
.a11b > .site-header.wrap[data-a11-sections] :is(a, button):focus-visible,
.a11-home-intro :is(a, button):focus-visible,
.a11-home-body :is(a, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.a11b > .site-header.wrap[data-a11-sections] > .a11n-toggle[hidden] { display: none; }
@media (max-width: 1099px) {
  .a11b > .site-header.wrap[data-a11-sections].a11n-js > .a11n-toggle:not([hidden]) {
    align-items: center;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: .5rem;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: 700 .88rem/1.2 system-ui, sans-serif;
    justify-content: center;
    min-height: 44px;
    min-width: 58px;
    order: 3;
    padding: 0 .65rem;
  }
  .a11b > .site-header.wrap[data-a11-sections].a11n-js > nav#a11n-nav { display: none; }
  .a11b > .site-header.wrap[data-a11-sections].a11n-open > nav#a11n-nav {
    border-top: 1px solid currentColor;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .a11b > .site-header.wrap[data-a11-sections] > nav#a11n-nav {
    border: 0;
    flex: 0 1 auto;
    justify-content: center;
    order: 1;
    padding: 0;
    width: auto;
  }
  .a11b > .site-header.wrap[data-a11-sections] > .a11n-toggle { display: none; }
  .a11b > .site-header.wrap[data-a11-sections] > nav#a11n-nav > .a11-sections-archive {
    border-left: 1px solid color-mix(in srgb, currentColor 45%, transparent);
    border-radius: 0;
    min-height: 1.3rem;
    padding-left: 1rem;
  }
}
@media (max-width: 460px) {
  .a11b > .site-header.wrap[data-a11-sections] { column-gap: .6rem; }
  .a11b > .site-header.wrap[data-a11-sections] > .brand > span:not(.mark) { display: inline; }
  .a11b > .site-header.wrap[data-a11-sections] .brand small { display: none; }
  .a11b > .site-header.wrap[data-a11-sections] .brand .mark { height: 1.8rem; width: 1.8rem; }
}

.a11v main > .a11-home-intro {
  background: #10162a;
  color: #f9f6e8;
  margin: 0;
  max-width: none;
  padding: clamp(2rem, 5vw, 5rem) max(clamp(1rem, 3vw, 2.75rem), calc((100% - 76rem) / 2));
}
.a11-home-intro .town-futures__lead { margin: 0 auto; max-width: 76rem; }
.a11-home-intro .a11-home-title h1 {
  color: #fff9e6;
  font: 500 clamp(2.4rem, 4.7vw, 5rem)/1.01 Georgia, serif;
  letter-spacing: -.045em;
  margin: 0 0 1.15rem;
  max-width: 15ch;
}
.a11-home-intro .a11-home-title h1 span { display: block; }
.a11-home-intro .a11-home-title > p {
  color: #e0e5ec;
  font: 400 clamp(1.05rem, 1.7vw, 1.25rem)/1.55 system-ui, sans-serif;
  margin: 0;
  max-width: 34ch;
}
.a11-home-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.a11-home-intro .a11-home-actions .a11-action {
  align-items: center;
  border: 1px solid #bdc6d8;
  border-radius: .55rem;
  color: #f9f6e8;
  display: inline-flex;
  font: 700 .95rem/1.2 system-ui, sans-serif;
  gap: .5rem;
  justify-content: center;
  min-height: 46px;
  padding: .6rem .9rem;
  text-decoration: none;
}
.a11-home-intro .a11-home-actions .a11-action--light { background: #f8dc8c; border-color: #f8dc8c; color: #192038; }
.a11-home-intro .a11-home-actions .a11-action:hover { text-decoration: underline; text-underline-offset: .2em; }
.a11-home-body {
  background: #f5f3e9;
  color: #142b23;
  padding: 0 max(clamp(1rem, 3vw, 2.75rem), calc((100% - 76rem) / 2)) clamp(2.5rem, 5vw, 5rem);
}
.a11-home-questions {
  border-bottom: 1px solid #bec8ba;
  display: grid;
  gap: .75rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(1rem, 3vw, 1.8rem) 0;
}
.a11-home-questions h2 {
  font: 500 clamp(1.12rem, 1.65vw, 1.46rem)/1.25 Georgia, serif;
  margin: 0;
}
.a11-home-questions a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.a11-home-questions a:hover { color: #3a664f; }
.a11-home-sections { padding: clamp(1.5rem, 4vw, 3rem) 0 .75rem; scroll-margin-top: 6rem; }
.a11-home-sections > h2 {
  color: inherit;
  font: 500 clamp(1.8rem, 3vw, 3rem)/1.1 Georgia, serif;
  letter-spacing: -.025em;
  margin: 0 0 1.1rem;
}
.a11-section-cards { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a11-section-card {
  background: var(--card-paper);
  border: 1px solid var(--card-line);
  border-radius: .8rem;
  color: var(--card-ink);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  text-decoration: none;
}
.a11-section-card[data-a11-card="learn"] { --card-paper: #f9efdb; --card-line: #d8c292; --card-ink: #432a18; --card-art: #eed8ac; }
.a11-section-card[data-a11-card="tools"] { --card-paper: #e8f4e9; --card-line: #b1cdbd; --card-ink: #163c2a; --card-art: #bed8c4; --card-position: 50% 58%; }
.a11-section-card[data-a11-card="agents"] { --card-paper: #181b39; --card-line: #3b416a; --card-ink: #ecf2ff; --card-art: #0c0b22; --card-fit: contain; }
.a11-section-card[data-a11-card="cybersecurity"] { --card-paper: #192b2e; --card-line: #405a59; --card-ink: #e5f8ed; --card-art: #162427; --card-position: 50% 64%; }
.a11-section-card[data-a11-card="rules"] { --card-paper: #f5e9e0; --card-line: #d6bbaa; --card-ink: #572d25; --card-art: #d7beac; }
.a11-section-card[data-a11-card="about"] { --card-paper: #edf0e6; --card-line: #b9c3ab; --card-ink: #263c2b; --card-art: #deddd0; }
.a11-section-card:hover .a11-section-card__copy strong { text-decoration: underline; text-underline-offset: .14em; }
.a11-home-body .a11-section-card:focus-visible { outline-color: #15382b; }
.a11-section-card img {
  aspect-ratio: 2 / 1;
  background: var(--card-art);
  display: block;
  height: auto;
  object-fit: var(--card-fit, cover);
  object-position: var(--card-position, center);
  width: 100%;
}
.a11-section-card__copy {
  align-content: start;
  display: grid;
  gap: .35rem .65rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 6rem;
  padding: .85rem 1rem 1rem;
}
.a11-section-card__copy strong { font: 650 1.35rem/1.15 Georgia, serif; }
.a11-section-card__copy span:not(.a11-section-card__arrow) { font: 400 .95rem/1.45 system-ui, sans-serif; grid-column: 1 / -1; }
.a11-section-card__arrow { grid-column: 2; grid-row: 1; }
.a11-home-archive { color: #384f43; font: 400 .95rem/1.5 system-ui, sans-serif; margin: 1.4rem 0 .65rem; }
.a11-home-archive a { color: #124b39; font-weight: 700; text-underline-offset: .18em; }
.a11-home-context { border-top: 1px solid #bdc7b8; margin-top: .3rem; }
.a11-home-context > summary {
  cursor: pointer;
  font: 650 .96rem/1.5 system-ui, sans-serif;
  min-height: 44px;
  padding: .9rem 0;
}
.a11-story-context { padding: 1rem 0; }
.a11-home-body .a11-story-context :is(.town-futures__rule, .town-futures__stakes section, .town-futures__foot) {
  background: #fffdf4;
  border-color: #c5cdbf;
  color: #183428;
}
.a11-home-body .a11-story-context :is(h2, p, a) { color: #183428; }
.a11-home-body .a11v-rest { margin-inline: 0; max-width: none; padding-inline: 0; width: 100%; }

@media (max-width: 800px) { .a11-section-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 510px) {
  .a11-home-questions, .a11-section-cards { grid-template-columns: 1fr; }
  .a11-home-questions h2 + h2 { margin-top: .15rem; }
}
