/* Access2AI (GOAL-008). Yard-sign look (DEC-085): Libre Franklin and Caveat, served from this site (DEC-061),
   light and dark. */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/librefranklin-latin.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/caveat-latin.woff2) format("woff2"); }
:root {
  --fg: #26304a; --muted: #5a6479; --bg: #ffffff; --card: #ffffff; --line: #d5dceb;
  --accent: #1f4e9c; --accent-fg: #ffffff; --link: #1f4e9c;
  --open: #2563a8; --senate: #b0408c; --new: #8fb4dc; --pending: #c9ced6; --none: #eceef1; --none-line: #c4c9d0;
  --state: #e3e7ec; --state-kit: #b9cfe8; --hover: #f2b632; --agree: #1f6f43; --differ: #8a4b00;
  --warn-bg: #fff4d6; --warn-fg: #5c4100; --focus: #c2410c;
  --tint: #eef3fb; --ink: #0f1b33; --blue: #1f4e9c; --blue-ink: #ffffff; --navy: #14305f; --navy-ink: #ffffff;
  --red: #d7263d; --red-ink: #ffffff; --marker: #d7263d; --few: #5d6676; --few-ink: #ffffff;
}
/* Theme (DEC-081): System follows the device; Light or Dark is set on <html data-theme> by assets/theme.js. */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fg: #d6dbe7; --muted: #9aa4ba; --bg: #0d1424; --card: #18233c; --line: #2a3754;
    --accent: #6f9be6; --accent-fg: #0b1222; --link: #8fb3f0;
    --open: #5b9be0; --senate: #d68cc4; --new: #2f5781; --pending: #4a515b; --none: #1c2740; --none-line: #34425f;
    --state: #24304a; --state-kit: #2d4c70; --hover: #e0a526; --agree: #79d29e; --differ: #f0b56a;
    --warn-bg: #3d3112; --warn-fg: #f6dc9b; --focus: #fb923c;
    --tint: #131d33; --ink: #f3f5fa; --blue: #6f9be6; --blue-ink: #0b1222; --navy: #8fb3f0; --navy-ink: #0b1222;
    --red: #ff6074; --red-ink: #1d0509; --marker: #ff7a8a; --few: #3b4352; --few-ink: #f3f5fa;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
    --fg: #d6dbe7; --muted: #9aa4ba; --bg: #0d1424; --card: #18233c; --line: #2a3754;
    --accent: #6f9be6; --accent-fg: #0b1222; --link: #8fb3f0;
    --open: #5b9be0; --senate: #d68cc4; --new: #2f5781; --pending: #4a515b; --none: #1c2740; --none-line: #34425f;
    --state: #24304a; --state-kit: #2d4c70; --hover: #e0a526; --agree: #79d29e; --differ: #f0b56a;
    --warn-bg: #3d3112; --warn-fg: #f6dc9b; --focus: #fb923c;
    --tint: #131d33; --ink: #f3f5fa; --blue: #6f9be6; --blue-ink: #0b1222; --navy: #8fb3f0; --navy-ink: #0b1222;
    --red: #ff6074; --red-ink: #1d0509; --marker: #ff7a8a; --few: #3b4352; --few-ink: #f3f5fa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 19px/1.6 "Libre Franklin", system-ui, sans-serif; color: var(--fg); background: var(--bg); }
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
button, input, select, textarea { font-family: inherit; }
.hand { font-family: "Caveat", cursive; font-weight: 700; color: var(--marker); }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; } h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
a { color: var(--link); } a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: .4rem .8rem; z-index: 10; }
/* Header (DEC-085): every item sits on one text baseline. */
header.site { border-bottom: 4px solid var(--blue); background: var(--bg); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 24px; padding-top: 18px; padding-bottom: 16px; }
.brand { font-weight: 900; font-size: 24px; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--red); }
header.site nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
header.site nav a { color: var(--fg); text-decoration: none; }
header.site nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
header.site nav .cta { background: var(--navy); color: var(--navy-ink); padding: 7px 14px; border-radius: 999px; }
header.site nav .cta:hover { text-decoration: none; filter: brightness(1.1); }
/* About sits between "Spread the word" and the theme button (DEC-101). */
header.site .about-link { color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 600; }
header.site .about-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.theme-btn { font: inherit; font-size: 15px; line-height: 1; background: transparent; color: var(--fg); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 9px; margin: 0; cursor: pointer; }
.theme-btn svg { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.theme-btn:hover { border-color: var(--fg); }
footer.site { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1rem 0 2rem; color: var(--muted); font-size: .9rem; }
.test-banner { background: #b00020; color: #fff; padding: .5rem 1rem; font: 700 1rem system-ui, sans-serif; text-align: center; }
.hero p { font-size: 1.1rem; max-width: 46rem; }
.hint, .muted { color: var(--muted); font-size: .9rem; }
button, .button { font-size: 1rem; padding: .5rem 1rem; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-fg); cursor: pointer; text-decoration: none; display: inline-block; margin: .2rem .3rem .2rem 0; }
.button { background: transparent; color: var(--link); }
button:disabled { opacity: .55; cursor: wait; }
input[type=text], select, textarea { font: inherit; font-size: 1rem; padding: .45rem .55rem; border: 1px solid var(--line);
  border-radius: 6px; background: var(--card); color: var(--fg); max-width: 100%; }
textarea { width: 100%; }
.find { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .4rem 1rem 1rem; }
.zip label { font-weight: 600; display: block; }
.zip-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.zip-row input { width: 8rem; font-size: 1.1rem; letter-spacing: .05em; }
#zip-out ul { padding-left: 1.2rem; margin: .4rem 0; }
.map-wrap { position: relative; margin-top: .4rem; }
.map-bar { display: flex; gap: 1rem; align-items: center; min-height: 2.6rem; font-weight: 600; }
#map { width: 100%; height: auto; display: block; touch-action: manipulation; }
#map path { stroke: var(--card); stroke-width: .6; vector-effect: non-scaling-stroke; }
#map .state { fill: var(--state); cursor: pointer; }
#map .state.s-house { fill: var(--open); }
#map .state.s-senate { fill: var(--senate); }
#map .state.s-both { fill: url(#kit-both); }
#map .state.s-new { fill: var(--new); }
#map .stripe-house { fill: var(--open); } #map .stripe-senate { fill: var(--senate); }
#map .state:hover, #map .state:focus-visible { fill: var(--hover); outline: none; }
#map .district { fill: var(--none); stroke: var(--none-line); }
#map .district.open { fill: var(--open); cursor: pointer; }
#map .district.new { fill: var(--new); cursor: pointer; }
#map .district.pending { fill: var(--pending); }
#map .district.none { cursor: default; }
#map .district:hover, #map .district:focus-visible, #map .district.sel { fill: var(--hover); outline: none; }
#map .state.current { fill: var(--card); pointer-events: none; }
#map .state.dim { fill: var(--none); opacity: .35; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; font-size: .82rem; color: var(--muted); margin: .4rem 0; }
.sw { display: inline-block; width: .9rem; height: .9rem; border-radius: 2px; vertical-align: -2px; margin-right: .25rem; border: 1px solid var(--none-line); }
.sw.open { background: var(--open); } .sw.senate { background: var(--senate); }
.sw.both { background: repeating-linear-gradient(45deg, var(--open) 0 4px, var(--senate) 4px 8px); } .sw.new { background: var(--new); } .sw.pending { background: var(--pending); } .sw.none { background: var(--none); }
.panel { min-height: 3rem; font-size: .98rem; }
.panel:empty { display: none; }
.panel h3 { margin-top: .5rem; }
ul.cols { columns: 2 18rem; padding-left: 1.2rem; }
details { border-bottom: 1px solid var(--line); padding: .35rem 0; }
summary { cursor: pointer; font-weight: 600; }
details ul { margin: .4rem 0 .6rem; }
.member .role { color: var(--muted); margin-top: 0; }
.crumbs { margin: 1rem 0 0; font-size: .9rem; }
.lede { color: var(--muted); }
ul.stmts { list-style: none; padding: 0; }
.stmt { border-left: 4px solid var(--line); padding: .2rem 0 .2rem 1rem; margin: 1rem 0; }
.stmt.agree { border-color: var(--agree); } .stmt.differ { border-color: var(--differ); }
.stmt .topic { font-weight: 600; margin: 0; }
.stmt blockquote { margin: .3rem 0; font-style: italic; }
.stmt blockquote p { margin: 0; }
.stmt .cite { font-size: .88rem; margin: 0; }
.stmt .paper-view { font-size: .95rem; margin: .3rem 0 0; }
.unrev { color: #b00020; }
.empty, .placeholder, .warn { background: var(--warn-bg); color: var(--warn-fg); border-radius: 8px; padding: .7rem 1rem; }
.placeholder { border: 2px dashed currentColor; margin-top: .8rem; }
.kit { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .2rem 1rem 1rem; margin-top: 2rem; }
.kit fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; padding: .6rem 1rem .8rem; min-width: 0; }   /* shrink to phone width */
.kit select { width: 100%; }   /* long office addresses stay inside the page */
.kit legend { font-weight: 700; padding: 0 .3rem; }
.kit label { display: block; margin: .5rem 0; }
.kit label input[type=text] { display: block; width: 100%; max-width: 28rem; margin-top: .2rem; }
.kit .choice { display: flex; gap: .6rem; align-items: flex-start; }
.kit .choice input { margin-top: .35rem; }
.letter-preview { max-height: 34rem; overflow: auto; background: #e9ebee; border: 1px solid var(--line); border-radius: 6px; padding: .8rem; }
.letter-preview .lp-page { background: #fff; color: #111; max-width: 40rem; margin: 0 auto; padding: 1.6rem 1.8rem; box-shadow: 0 1px 4px rgba(0,0,0,.18);
  font-family: "Times New Roman", Times, serif; font-size: .95rem; line-height: 1.35; }
.letter-preview p { margin: 0 0 .55rem; }
.letter-preview .lp-lines { margin-bottom: .9rem; }
.letter-preview .lp-indent { margin-left: 1.5rem; }
.letter-preview .lp-item { padding-left: 1.4rem; text-indent: -1.4rem; margin-bottom: .25rem; }
.letter-preview .lp-label { display: inline-block; width: 1.4rem; text-indent: 0; }
.letter-preview .lp-own { background: #fff3c4; box-shadow: 0 0 0 3px #fff3c4; border-radius: 2px; }
.letter-preview .lp-ph { color: #6b6b6b; font-style: italic; }
.letter-preview .lp-sig { margin-top: 2rem; border-top: 1px solid #999; width: 13rem; font-size: .7rem; color: #666; padding-top: .1rem; }
.letter-preview .lp-sources-h { font-size: .8rem; margin-top: 1rem; margin-bottom: .2rem; }
.letter-preview .lp-sources { font-size: .72rem; color: #333; padding-left: 1.6rem; overflow-wrap: anywhere; }
.kit #k-stmts label { display: flex; gap: .5rem; align-items: flex-start; }
ul.offices { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
ul.offices li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; font-size: .95rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: .88rem; width: 100%; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: .3rem .5rem; vertical-align: top; }
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 1.5rem; }
  .legend { font-size: .78rem; }
}

/* Share drop-down in the header (DEC-087): plain links, the device's share menu and copy link; no third-party code. */
.share-menu { position: relative; }
.share-btn { font: inherit; font-size: 15px; font-weight: 700; line-height: 1; background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px; margin: 0; cursor: pointer; }
.share-btn svg { width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-right: 6px; }
/* A second call to action (DEC-103): medium blue with white text, the same in light and dark (white on it is 5.7:1). */
.share-btn { background: #2563c9; color: #fff; border-color: #2563c9; }
.share-btn:hover, .share-btn[aria-expanded="true"] { background: #1d54ad; border-color: #1d54ad; }
.share-panel { position: absolute; right: 0; top: calc(100% + 12px); z-index: 50; width: min(380px, calc(100vw - 32px));
  background: var(--bg); border: 2px solid var(--line); border-top: 6px solid var(--red); border-radius: 16px; padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.share-panel[hidden] { display: none; }
/* A red 90° point rising from the drop-down's red top edge, under the middle of the button (share.js sets --caret).
   A square turned 45° and clipped to its upper half, so only the point shows; its base sits 1px into the border. */
.share-panel::before { content: ""; position: absolute; top: -12px; left: var(--caret, calc(100% - 60px)); width: 14px; height: 14px;
  margin-left: -7px; background: var(--red); transform: rotate(45deg); clip-path: polygon(0 0, 100% 0, 0 100%); }
.share-title { margin: 0 0 12px; font-weight: 900; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.share-native-row { margin: 0 0 10px; }
.share-native { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; font-weight: 800; font-size: 16px;
  padding: 11px 16px; border-radius: 999px; border: 0; background: var(--navy); color: var(--navy-ink); margin: 0; }
.share-native svg { width: 20px; height: 20px; }
.share-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.share-grid .sh { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 8px 10px; border-radius: 10px;
  border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer; text-align: left; }
.share-grid .sh:hover, .share-grid .sh:focus-visible, .share-grid .sh[aria-expanded="true"] { background: var(--tint); color: var(--blue); }
.share-grid .sh svg { width: 20px; height: 20px; flex: none; }
.share-masto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.share-masto[hidden] { display: none; }
.share-masto label { width: 100%; font-weight: 700; font-size: 14px; }
.share-masto input { flex: 1 1 10rem; min-width: 0; }
.share-masto button { margin: 0; border-radius: 999px; }
.share-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 820px) {
  /* Phones (DEC-117): two rows. First the logo, "Spread the word" and the theme button; then Why, The asks and About,
     with "Find your members" at the right end. The nav's links join the header's row layout (display: contents),
     and an empty ::after line forces the break between the rows. On the narrowest phones the pill wraps below. */
  header.site .wrap { align-items: center; gap: 12px 16px; padding-top: 14px; padding-bottom: 12px; }
  header.site .brand { order: 1; }
  .share-menu { order: 2; margin-left: auto; position: static; }
  header.site .theme-btn { order: 3; margin-left: 0; }
  header.site .wrap::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
  header.site nav { display: contents; }
  header.site nav a { order: 5; font-size: 15px; font-weight: 600; }
  header.site .about-link { order: 6; }
  header.site nav .cta { order: 7; margin-left: auto; white-space: nowrap; }
  .share-panel { left: 16px; right: 16px; width: auto; top: auto; margin-top: 12px; position: absolute; }
  header.site { position: relative; }
}
@media (max-width: 480px) {
  header.site .brand { font-size: 22px; }
  .share-btn .long { display: none; }
  header.site .wrap { column-gap: 12px; }
  header.site nav a, header.site .about-link { font-size: 14px; }
  header.site nav .cta { padding: 6px 12px; }
}
.share-btn .short { display: none; }
@media (max-width: 480px) { .share-btn .short { display: inline; } }

/* Member pages: the button under a list of statements that shows the rest (DEC-090). */
.stmts-more { margin: 0 0 1.5rem; }
.stmt[hidden] { display: none; }

.kit #k-stmts label[hidden] { display: none; }
.kit .k-group { margin: .4rem 0 1rem; }
.kit .k-group-h { font-size: 1rem; margin: .8rem 0 .3rem; }
/* Letter kit: city, state, and ZIP side by side, each its own field for browser autofill (DEC-098). */
.kit .city-row { display: flex; flex-wrap: wrap; gap: 0 12px; max-width: 28rem; }
.kit .city-row .city { flex: 1 1 12rem; }
.kit .city-row .state { flex: 0 0 5.5rem; }
.kit .city-row .postal { flex: 0 0 7rem; }
