:root {
  color-scheme: light;
  --paper: #fbf9f1;
  --white: #fffefa;
  --ink: #0f1f4d;
  --muted: #45516c;
  --line: #d0d8e6;
  --blue-soft: #bcd3ff;
  --blue-pale: #dbe7ff;
  --red-soft: #f6c5ca;
  --blue-wash: #d7e5ff;
  --soft: #edf2fb;
  --blue: #1d4ed8;
  --red: #c8102e;
  --focus: var(--blue);
  --display: "Avenir Next", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.65; }
.wrap { width: min(1136px, calc(100% - 5rem)); margin: auto; }
main.wrap { flex: 1; margin-block: 0; padding: clamp(2.75rem, 5.6vw, 5.25rem) 0 4.5rem; }
.top { border-bottom: 1px solid var(--ink); background: var(--white); }
.bar, .foot { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1rem 0; }
.brand { display: flex; gap: .75rem; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 850; line-height: 1.03; letter-spacing: -.025em; }
.mark { display: grid; place-items: center; position: relative; flex: 0 0 2.45rem; width: 2.45rem; height: 2.45rem; background: var(--blue-soft); border: 1.5px solid var(--ink); border-radius: .6rem; box-shadow: 2px 2px var(--ink); }
.mark::before { content: ""; width: 1.05rem; height: .78rem; background: var(--ink); border-radius: .24rem; transform: rotate(-9deg); clip-path: polygon(0 0,100% 0,100% 81%,43% 81%,22% 100%,22% 81%,0 81%); }
.mark::after { content: ""; position: absolute; width: .55rem; height: .13rem; background: var(--white); box-shadow: 0 .23rem var(--white); transform: translateY(-.14rem) rotate(-9deg); }
.top nav { display: flex; gap: .4rem; align-items: center; }
.top nav a { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 44px; padding: .38rem .8rem; border: 1px solid transparent; border-radius: .65rem; color: var(--ink); text-decoration: none; font-weight: 650; }
.top nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.top nav a[aria-current] { border-color: var(--ink); background: var(--blue-wash); box-shadow: 2px 2px var(--ink); font-weight: 800; }
a { color: var(--blue); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
*:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -8rem; background: white; padding: .7rem; z-index: 2; }
.skip:focus { top: .5rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 850; color: var(--ink); }
h1 { font-size: clamp(2.65rem, 6.6vw, 5.8rem); line-height: .99; letter-spacing: -.069em; margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 1.15rem; }
h3 { margin: 0 0 .45rem; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; }
p { margin: .35rem 0 .95rem; }
.lede { font-size: clamp(1.04rem, 2vw, 1.23rem); max-width: 37rem; color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(13rem, 1fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); margin-bottom: clamp(1.3rem, 3vw, 2.2rem); }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-bottom: 0; }
.hero-art {
  width: min(100%, 390px);
  aspect-ratio: 39 / 23;
  justify-self: end;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 230'%3E%3Cg stroke='%230f1f4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='%23d7e5ff' d='M222 116h104v52a52 52 0 0 1-104 0z'/%3E%3Cpath fill='%23dbe7ff' d='m280 59 37-42 45 37-37 42z'/%3E%3Cpath fill='none' d='m291 64 39-42m-28 51 39-42m-28 50 39-42'/%3E%3Cpath fill='%230f1f4d' d='M53 64h170a23 23 0 0 1 23 23v65a23 23 0 0 1-23 23h-86l-35 24v-24H53a23 23 0 0 1-23-23V87a23 23 0 0 1 23-23z'/%3E%3Cpath fill='%23bcd3ff' d='M45 56h170a23 23 0 0 1 23 23v65a23 23 0 0 1-23 23h-86l-35 24v-24H45a23 23 0 0 1-23-23V79a23 23 0 0 1 23-23z'/%3E%3Cpath d='M69 92h105m-105 19h83m-83 19h50' fill='none' stroke-width='3'/%3E%3Cpath fill='%23f6c5ca' d='m243 176 33 38-50 9z'/%3E%3Cpath d='m7 180 8-10 9 10 7-10 10 10 8-10 8 10' fill='none'/%3E%3Cpath d='M354 124q8-10 15 0t15 0m-30 11q8-10 15 0t15 0' fill='none'/%3E%3Cpath d='m87 21 14 12m-7-19-2 23m-9-6 20-8' fill='none'/%3E%3Ccircle cx='254' cy='40' r='7' fill='%23f6c5ca'/%3E%3Ccircle cx='339' cy='191' r='5' fill='%23dbe7ff'/%3E%3Cpath d='m175 191 8-7m-4 15 11-9m-6 17 10-9' fill='none'/%3E%3C/g%3E%3C/svg%3E");
}

.narrow { max-width: 50rem; }
.answer-page { max-width: 52rem; margin-inline: auto; }
.response-title { font-size: clamp(2.4rem, 6vw, 4.55rem); overflow-wrap: anywhere; }
.answer-meta { display: inline-block; padding: .22rem .65rem; margin: 0 0 .8rem; border: 1px solid var(--ink); border-radius: .4rem; background: var(--blue-wash); font-weight: 750; }
.searchbox { margin: 1.4rem 0 1.15rem; border: 1.5px solid var(--ink); padding: clamp(1.1rem, 3vw, 1.65rem); border-radius: 1rem; background: var(--white); box-shadow: 5px 5px var(--ink); }
.searchbox > label { display: block; font-family: var(--display); font-weight: 850; font-size: clamp(1.12rem, 2.1vw, 1.35rem); letter-spacing: -.02em; }
.searchbox textarea { margin: .55rem 0 .7rem; resize: vertical; min-height: 6.35rem; background: #f6f8fd; }
.formline, .chips, .filters, .rowactions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.formline { justify-content: space-between; margin-top: .75rem; }
.formline label { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; font-size: .94rem; cursor: pointer; }
.fine, .meta { font-size: .875rem; color: var(--muted); }
.fine { margin: 0; }
.message { margin: .6rem 0 0; font-weight: 700; }
.message[role="alert"], .notice[role="alert"] { color: var(--red); }
.message:empty { display: none; }
.chips { margin: 1.5rem 0 0; }
.chip { display: inline-flex; align-items: center; gap: .55rem; border-radius: 2rem; padding: .4rem .85rem; background: var(--white); color: var(--ink); box-shadow: 2px 2px var(--ink); }
.chip::before { content: ""; flex: 0 0 .7rem; height: .7rem; border: 1px solid var(--ink); background: var(--chip-color,var(--blue-soft)); }
.chip:nth-child(1)::before, .chip:nth-child(5)::before { border-radius: 50%; }
.chip:nth-child(2) { --chip-color: var(--blue-pale); }
.chip:nth-child(2)::before, .chip:nth-child(6)::before { transform: rotate(45deg) scale(.84); }
.chip:nth-child(3) { --chip-color: var(--blue-wash); }
.chip:nth-child(3)::before { border-radius: 1rem 1rem 0 0; }
.chip:nth-child(4) { --chip-color: var(--red-soft); }
.chip:nth-child(5) { --chip-color: var(--blue-pale); }
.chip:hover { background: var(--blue-pale); }

button, input, select, textarea { font: inherit; }
textarea, input, select { border: 1px solid var(--ink); border-radius: .5rem; padding: .65rem .8rem; background: var(--white); color: var(--ink); max-width: 100%; }
input:not([type=checkbox]), select, button { min-height: 44px; }
input[type=checkbox] { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ink); }
textarea { display: block; width: 100%; }
button { border: 1px solid var(--ink); border-radius: .58rem; background: var(--ink); color: var(--white); padding: .58rem 1rem; font-weight: 760; cursor: pointer; box-shadow: 2px 2px var(--ink); transition: box-shadow .14s ease, transform .14s ease, background-color .14s ease; }
button:hover { background: var(--blue); box-shadow: 3px 3px var(--ink); transform: translate(-1px,-1px); }
button:active { box-shadow: none; transform: translate(2px,2px); }
button.secondary { background: var(--white); color: var(--blue); }
button.secondary:hover { background: var(--soft); }
button:disabled { opacity: .65; cursor: wait; transform: none; }

.section { margin-top: clamp(2.3rem, 5vw, 3.45rem); border-top: 1px solid var(--line); padding-top: 1.45rem; }
.recent { position: relative; margin-top: 3.35rem; border-color: var(--ink); }
.recent::before { content: ""; position: absolute; width: 3.1rem; height: .53rem; top: -.3rem; right: .3rem; border: 1px solid var(--ink); transform: rotate(-8deg); background: repeating-linear-gradient(120deg,var(--red) 0 6px,var(--paper) 6px 10px); }
.cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.panel, .party { border: 1px solid var(--ink); background: var(--white); border-radius: .8rem; padding: clamp(1rem, 3vw, 1.5rem); box-shadow: 3px 3px var(--ink); min-width: 0; }
.recent .panel { position: relative; }
.recent .panel::after { content: ""; position: absolute; right: 1.2rem; top: 1.2rem; width: .8rem; height: .8rem; border-radius: 50%; border: 1px solid var(--ink); background: var(--blue-wash); }
.recent .panel + .panel::after { border-radius: .12rem; background: var(--blue-soft); transform: rotate(25deg); }
.recent .panel h3 { padding-right: 1.5rem; }
.party { margin: .9rem 0 1.15rem; box-shadow: 3px 3px #d8deeb; }
.party h3 { display: inline-block; margin: 0 0 .55rem; padding: .34rem .74rem; border: 1px solid var(--ink); border-radius: .45rem; background: var(--soft); font-size: 1.12rem; }
.party .meta { overflow-wrap: anywhere; }
.results, .sources { list-style: none; padding: 0; margin: .55rem 0; }
.results li, .sources li { padding: .65rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.results li:first-child, .sources li:first-child { border-top: 0; }
.results a { font-weight: 700; }
.notice { background: var(--soft); border-left: 3px solid var(--ink); padding: .8rem 1rem; border-radius: 0 .5rem .5rem 0; margin: 1rem 0; }
blockquote { margin: .4rem 0 .35rem; background: #edf2fb; border-left: 3px solid var(--ink); border-radius: 0 .45rem .45rem 0; padding: .8rem .95rem; font-family: var(--serif); font-size: clamp(1.04rem, 2vw, 1.16rem); line-height: 1.56; overflow-wrap: anywhere; }
cite { display: block; font-style: normal; margin-bottom: .8rem; }
.party > :last-child cite { margin-bottom: 0; }
.summary { margin-top: 1.65rem; border: 1px solid var(--ink); background: var(--white); padding: 1.25rem 1.35rem; border-radius: .8rem; box-shadow: 4px 4px var(--ink); }
.summary h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.summary h2::before { content: ""; display: block; margin: 0 0 .65rem; height: .42rem; width: 2.8rem; border-radius: .4rem; background: var(--red-soft); border: 1px solid var(--ink); }
.summary p { margin: .4rem 0; }
.press-section { border: 1px solid var(--ink); border-top: .42rem solid var(--blue); background: var(--white); border-radius: .8rem; padding: 1.15rem 1.35rem; }
.press-section + .searchbox { margin-top: 2.25rem; }
.formstack { display: grid; gap: .8rem; }
.formstack label, .filters label { display: grid; gap: .25rem; font-weight: 700; }
.formstack button { justify-self: start; }
.formstack .check-setting { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
.admin-page .panel, .admin-page button { box-shadow: none; }
.admin-page .section { margin-top: 2.15rem; }
.foot { border-top: 1px solid var(--line); align-items: flex-start; font-size: .875rem; color: var(--muted); }
.foot a { padding-block: .2rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--white); border: 1px solid var(--ink); padding: 1rem; border-radius: .65rem; font: inherit; }
.filters { margin: 1.35rem 0; align-items: end; }
.filters input { min-width: min(16rem,75vw); }
.history-results .results { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap: 1rem; }
.history-results .results li { border: 1px solid var(--ink); box-shadow: 2px 2px var(--ink); border-radius: .65rem; background: var(--white); padding: .9rem 1rem; }
.filtered-empty { color: var(--muted); }
code { overflow-wrap: anywhere; }
small { font-size: .875rem; color: var(--muted); }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: minmax(0,1fr) minmax(7rem,.43fr); gap: .8rem; }
  .top nav { gap: .12rem; }
  .top nav a { padding-inline: .55rem; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  main.wrap { padding-top: 2.35rem; }
  .bar { padding-block: .65rem; gap: .45rem; }
  .brand { gap: .4rem; font-size: .78rem; }
  .mark { width: 1.72rem; height: 1.72rem; flex-basis: 1.72rem; }
  .top nav a { font-size: .84rem; padding-inline: .37rem; }
  .hero { position: relative; display: block; padding-top: 1rem; }
  .hero h1 { max-width: 10ch; }
  .hero-art { position: absolute; right: 0; top: -.55rem; width: 3.6rem; }
  .searchbox { box-shadow: 3px 3px var(--ink); }
  .formline { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .formline button { width: 100%; }
  .chips { gap: .55rem; }
  .chip { min-height: 44px; font-size: .9rem; padding-inline: .65rem; }
  .cols { grid-template-columns: 1fr; }
  .recent { margin-top: 2.65rem; }
  .recent::before { width: 1.85rem; }
  .foot { flex-wrap: wrap; gap: .4rem; }
}
@media (max-width: 345px) {
  .bar { flex-wrap: wrap; }
  .top nav { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  button:hover, button:active { transform: none; }
}

.share-actions { container-type: inline-size; margin-block: .3rem .55rem; }
.share-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
.share-control {
  --share-size: 32px;
  --share-accent: #087f82;
  position: relative; display: inline-grid; flex: 0 0 var(--share-size); box-sizing: border-box;
  grid-template-rows: 20px 2px; gap: 3px; place-content: center; justify-items: center;
  width: var(--share-size); height: var(--share-size); min-width: 0; min-height: 0;
  padding: 0; border: 0; border-radius: 4px; background: transparent;
  color: #45516c; text-decoration: none; box-shadow: none; cursor: pointer;
  list-style: none; transition: color 150ms ease;
}
.share-control::-webkit-details-marker { display: none; }
.share-control svg {
  display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.share-control::after {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: #a8b3c6; transform: scaleX(.667);
  transition: transform 150ms ease, background-color 150ms ease;
}
.share-control:hover, .share-control:focus-visible, .share-control:active {
  background: transparent; color: var(--ink); box-shadow: none; transform: none;
}
.share-control:focus-visible { outline: 2px solid var(--share-accent); outline-offset: 1px; }
.share-control:hover::after, .share-control:focus-visible::after, .share-control.share-copied::after {
  background: var(--share-accent); transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .share-control, .share-control::after { transition: none; }
}
.share-tooltip {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 4;
  padding: .28em .55em; border-radius: .3rem; background: var(--ink);
  color: var(--white); font-size: .75rem; font-weight: 600; white-space: nowrap;
  pointer-events: none;
}
.share-control:hover > .share-tooltip, .share-control:focus-visible > .share-tooltip { display: block; }
.share-status:empty { height: 0; margin: 0; }
.share-overflow { display: none; position: relative; }
.share-overflow[open] { z-index: 5; }
.share-overflow[open] > summary > .share-tooltip { display: none; }
.share-menu {
  display: flex; gap: 4px; position: absolute; right: 0; top: calc(100% + 5px);
  padding: .4rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--white);
}
@container (width < 248px) {
  .share-row:has(> .share-native) > .share-extra { display: none; }
  .share-row:has(> .share-native) > .share-overflow { display: block; }
}
@container (width < 212px) {
  .share-row > .share-extra { display: none; }
  .share-overflow { display: block; }
}
@media (max-width: 650px) {
  .share-control { --share-size: 40px; }
  .share-row.share-native-ready > :not(.share-native) { display: none; }
  .share-row:not(.share-native-ready) > .share-native { display: none; }
  @container (width < 260px) {
    .share-row > .share-extra { display: none; }
    .share-overflow { display: block; }
  }
}

.foot-links { display: flex; gap: .75rem; flex-wrap: wrap; }
