/* Contact, /contact, as Taylor approved it (November 16, 2026: "C is good with me."): Website Review/Concepts/Contact/
   Sources/round-three, its contact.css and c.css whole and in the page's order (src/contact.py). */
/* Contact, round one (November 16, 2026): what the three ideas share. The colours and type are the family's
   (Get involved, round six); each idea's own object is in a.css, b.css or c.css. */
:root { --ground: #fff; --ink: #000; --paper: #fff; --hand: #1D3C8F; --mark: #EAF5F1; --bad: #B3261E; --ease: cubic-bezier(.2,.7,.2,1); }
:root[data-theme="dark"] { --blue: #B6C5F0; --line: #4D5B7E; --rule: #28324F; --quiet: #AAB4CD; --dome: #72B3A0; color-scheme: dark;
  --ground: #131B33; --ink: #ECEFF6; --paper: #1A2340; --hand: #DCE4FA; --mark: #1E2A4D; --tint: #1A2340; --bad: #FFB4AB; }
body { background: var(--ground); color: var(--ink); }
:root[data-theme="dark"] .btn { background: #2D4FAE; color: #F6F7FA; }
.foot { background: #1D3C8F; } :root[data-theme="dark"] .foot { background: #0E1530; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* the head: the row under the bar, the page's word, his line */
.k-head { margin-top: 40px; border-top: 2px solid var(--blue); padding-top: 24px; }
.k-head .ps-title { margin-top: 32px; }
.k-ln { font: 400 21px/30px "Libre Franklin", sans-serif; text-wrap: pretty; text-box: trim-both cap alphabetic; }
.k-ln a, .k-ways a { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line); }
.k-ln a:hover, .k-ways a:hover { text-decoration-color: var(--blue); }
.k-ln a { white-space: nowrap; }

/* the fields a note needs: the member's note's own labels and button */
.k-fl { display: block; font: 600 14px/1.4 "Libre Franklin", sans-serif; color: var(--quiet); }
.k-in { width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--hand); font: 400 18px/1.3 "Libre Franklin", sans-serif; padding: 0; outline: none; }
.k-in::placeholder { color: var(--line); }
textarea.k-in { resize: none; display: block; }
.k-err { display: block; font: 400 14px/20px "Libre Franklin", sans-serif; color: var(--bad); }
.k-err:empty { display: none; }
.k-f.bad .k-rule::after, .k-f.bad.k-rule::after { background: var(--bad); }
.k-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the send line: the button, then what happened */
.k-send { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.k-send .btn { height: 56px; padding: 0 34px; font-size: 18px; white-space: nowrap; justify-content: center; }
.k-send .btn[aria-disabled="true"] { cursor: progress; opacity: .78; }
.k-status { font: 400 16px/24px "Libre Franklin", sans-serif; color: var(--quiet); }
.k-status:empty { display: none; }
.k-status.k-fail { color: var(--bad); }
.k-sent { display: none; font: 700 24px/32px "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; color: var(--blue); text-wrap: balance; }
.k-sent:focus { outline: none; }
.k-done .k-sent { display: block; animation: k-up .4s var(--ease) both; }
.k-done .k-send .btn, .k-done .k-status { display: none; }
.k-done .k-in { pointer-events: none; }
@keyframes k-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* the other ways to reach PDP: the foot's and the fact sheet's own lines */
.k-ways .ps-label { display: block; }
.k-ways .k-addr { font: 600 18px/24px "Libre Franklin", sans-serif; text-box: trim-both cap alphabetic; }
.k-ways .k-hand { font: 700 26px/30px "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; color: var(--blue); text-box: trim-both cap alphabetic; }
.k-ch { list-style: none; margin: 0; padding: 0; }
.k-ch a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 16px/1 "Libre Franklin", sans-serif; text-decoration: none !important; color: var(--blue); }
.k-ch a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.k-ch svg { width: 20px; height: 20px; fill: var(--blue); flex: none; }

/* focus, as the family draws it */
.k-in:focus-visible { outline: none; }
.btn:focus-visible, .k-ways a:focus-visible, .k-ln a:focus-visible { outline: 3px solid var(--dome); outline-offset: 2px; }

main.k-main { margin-bottom: 96px; }
@media (max-width: 1439px) { .k-head { margin-top: 36px; } main.k-main { margin-bottom: 80px; } }
@media (max-width: 760px) {
  .k-g12 { grid-template-columns: minmax(0, 1fr); }
  .k-head { margin-top: 24px; padding-top: 20px; }
  .k-head .ps-title { margin-top: 24px; }
  .k-ln { font-size: 19px; line-height: 28px; }
  .k-send .btn { width: 100%; justify-content: center; }
  .k-sent { font-size: 22px; line-height: 28px; }
  .foot .fnav { display: flex !important; flex-wrap: wrap; gap: 0 22px !important; }
  main.k-main { margin-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* C, round three (November 16, 2026): the memo on the association's letterhead. Drawn from the South Carolina
   Democratic Party's memo of January 26, 2020 (scdp.org): the mark at the top left and the ways to reach the office at
   the top right, a rule, then TO and DATE, FROM, and the body, ruled. Round three, on the three testers' faults:
   a sent memo is set as written, with a way to write another; the body grows with the note; a wrong entry's line takes
   its label's place, so nothing moves under a pointer or a finger; the failure line sits beside Send (on a phone, in a
   place kept for it under Send); the blanks are 44 px; the head's line starts on the memo's email column; the channels
   are the foot's six, in the foot's order. */
.k-logo { display: block; height: auto; }
.k-dk { display: none; }
:root[data-theme="dark"] .k-lt { display: none; } :root[data-theme="dark"] .k-dk { display: block; }
:root { --field: #F3F5FA; --fr: #6E7DA6; --k: 132px; --pad: 48px; --lh: 32px; --rows: 5; }
:root[data-theme="dark"] { --field: #212C4F; --fr: #7F8DB5; }

/* the head: the title, and his line from the memo's email column */
.c-hl { margin-top: 28px; display: grid; align-items: end;
  grid-template-columns: calc(1px + var(--pad) + var(--k)) minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1.25fr) calc(var(--pad) + 1px); }
.c-hl .ps-title { margin-top: 0; }
.c-tl { grid-column: 1 / 4; }
.c-ln { grid-column: 4 / 7; }

.c-sheet { margin-top: 32px; background: var(--paper); border: 1px solid var(--line); padding: 28px var(--pad) 30px; }

/* the letterhead: the mark, and the ways to reach PDP where SCDP's memo puts the chair's email and phone */
.c-lh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-bottom: 18px; border-bottom: 2px solid var(--blue); }
.c-lh .k-logo { width: 210px; margin-left: calc(210px * -0.012); }
.c-ways { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.c-pr { display: flex; align-items: center; gap: 12px; }
.c-pr .ps-label { font-size: 13px; }
.c-pr a { display: inline-flex; align-items: center; min-height: 44px; font: 600 18px/1 "Libre Franklin", sans-serif; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line); }
.c-pr a:hover { text-decoration-color: var(--blue); }
.c-pr a:focus-visible { outline: 3px solid var(--dome); outline-offset: 2px; }
.c-ch { display: flex; gap: 0 20px; flex-wrap: wrap; justify-content: flex-end; }
.c-ch a { font-size: 15px; gap: 8px; min-height: 44px; }
.c-ch a:focus-visible { outline: 3px solid var(--dome); outline-offset: 2px; }
.c-ch svg { width: 16px; height: 16px; }

/* a line of the memo: the printed word in its column, the writing beside it */
.c-l { display: grid; grid-template-columns: var(--k) minmax(0, 1fr); align-items: baseline; }
.c-k { font: 600 14px/1 "Libre Franklin", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.c-k label { cursor: pointer; }
.c-v.a-fixed { font: 700 21px/1.2 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; color: var(--hand); }
.c-to { grid-template-columns: var(--k) minmax(0, 1fr) auto auto; column-gap: 0; padding-top: 22px; }
.c-to .c-dk { margin: 0 20px 0 24px; }

/* From: three blanks, each labelled above its line and drawn as a place to write */
.c-from { padding-top: 18px; align-items: start; }
.c-from > .c-k { padding-top: 39px; } /* FROM on the line the blanks are written on */
.c-three { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 24px; align-items: start; }
.k-lab { position: relative; height: 16px; margin-bottom: 6px; }
.c-three .k-fl { display: block; font-size: 14px; line-height: 16px; color: var(--quiet); white-space: nowrap; }
/* a wrong entry's line takes its label's place: the field keeps its name for a screen reader, and nothing moves */
.k-lab .k-err, .c-kmsg .k-err { font: 600 13px/16px "Libre Franklin", sans-serif; letter-spacing: 0; text-transform: none; color: var(--bad); }
.k-lab .k-err { position: absolute; left: 0; top: 0; white-space: nowrap; }
.k-lab.bad label, .c-kmsg.bad label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-three .k-rule { display: block; position: relative; background: var(--field); min-height: 44px; }
.c-three .k-rule::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--fr); }
.c-three .k-rule:focus-within { outline: 2px solid var(--dome); outline-offset: 2px; }
.c-three .k-f.bad .k-rule::after { height: 3px; background: var(--bad); }
.c-three .k-in { height: 44px; padding: 0 12px 2px; font-size: 18px; }

/* the body: ruled as a memo pad is; it grows a line at a time with what is written */
.c-bd { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); align-items: start; }
.c-kmsg { padding-top: 11px; display: flex; flex-direction: column; gap: 0; padding-right: 12px; }
.c-kmsg .k-err { margin-top: -1px; }
.c-body .k-ruled { display: block; position: relative; }
.c-body .k-ruled:focus-within { outline: 2px solid var(--dome); outline-offset: 4px; }
.c-body textarea, .k-setmsg { font: 400 18px/var(--lh) "Libre Franklin", sans-serif; color: var(--ink); min-height: calc(var(--lh) * var(--rows) + 1px);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), var(--fr) calc(var(--lh) - 1px), var(--fr) var(--lh)); }
.c-body textarea { height: calc(var(--lh) * var(--rows) + 1px); overflow: hidden; padding: 0; }
.k-f.bad.c-body textarea { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 2px), var(--bad) calc(var(--lh) - 2px), var(--bad) var(--lh)); }

/* Send, and beside it what happened */
.c-bd .k-send { margin-top: 20px; flex-wrap: nowrap; align-items: center; }
.c-bd .k-status { max-width: 420px; font-size: 16px; line-height: 22px; }

/* sent: the memo set as it was written, nothing left that looks like a blank; and a way to write another */
.k-set { display: none; }
.k-done .k-in { display: none; }
.k-done .c-three .k-rule { background: transparent; min-height: 44px; }
.k-done .c-three .k-rule::after { height: 1px; background: var(--rule); }
.k-done .k-set { display: block; }
.c-three .k-set { padding: 11px 0 9px; font: 400 18px/24px "Libre Franklin", sans-serif; color: var(--hand); overflow-wrap: anywhere; }
.k-done .k-f.k-empty { visibility: hidden; } /* an optional blank left empty is not set at all */
.k-setmsg { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.k-done .k-send { flex-wrap: wrap; gap: 14px 28px; align-items: baseline; }
.k-again { font: 600 16px/1 "Libre Franklin", sans-serif; color: var(--blue); background: transparent; border: 2px solid var(--blue); min-height: 44px; padding: 0 18px; cursor: pointer; white-space: nowrap; }
.k-again:hover { background: var(--mark); }
.k-again:focus-visible { outline: 3px solid var(--dome); outline-offset: 2px; }

/* a laptop: the whole memo and its Send in the first screen */
@media (max-height: 860px) and (min-width: 761px) {
  :root { --rows: 4; }
  .c-hl { margin-top: 20px; } .c-sheet { margin-top: 24px; padding-top: 22px; padding-bottom: 24px; }
  .c-lh { padding-bottom: 12px; } .c-to { padding-top: 16px; } .c-from { padding-top: 14px; }
  .c-bd { margin-top: 16px; padding-top: 14px; } .c-bd .k-send { margin-top: 16px; }
}
@media (max-height: 760px) and (min-width: 761px) { :root { --rows: 3; } .c-hl { margin-top: 16px; } .c-sheet { margin-top: 20px; padding-top: 16px; padding-bottom: 16px; } }

@media (max-width: 1439px) {
  :root { --pad: 40px; --k: 116px; }
  .c-hl { margin-top: 24px; } .c-sheet { margin-top: 28px; }
  .c-lh .k-logo { width: 190px; }
}
/* a tablet, and a phone on its side: the channels' marks beside the press line, the names read by a screen reader */
@media (max-width: 1100px) {
  .c-lh .k-logo { width: 170px; }
  .c-ch { gap: 0; margin-right: -12px; }
  .c-ch a { width: 44px; height: 44px; justify-content: center; gap: 0; }
  .c-ch svg { width: 20px; height: 20px; }
  .c-cn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* two blanks a row where three would not hold the campaign's label */
@media (max-width: 1000px) {
  .c-three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 14px; }
  .c-three .k-f:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --k: 96px; --pad: 32px; }
  .c-hl { grid-template-columns: minmax(0, 1fr); } .c-tl, .c-ln { grid-column: 1; } .c-ln { margin-top: 20px; } .c-ln .k-ln { max-width: 640px; }
  .c-k { font-size: 13px; }
  .c-v.a-fixed { font-size: 19px; } .c-to .c-dk { margin: 0 12px 0 16px; }
}
@media (max-width: 760px) {
  :root { --k: 64px; --pad: 16px; --lh: 30px; --rows: 5; }
  .c-hl { margin-top: 22px; } .c-ln { margin-top: 18px; }
  .c-sheet { margin-top: 24px; padding: 16px 16px 22px; margin-inline: calc(var(--gutter) * -0.5); }
  /* the mark and the press line side by side, the channels' marks under them */
  .c-lh { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; padding-bottom: 4px; }
  .c-lh .k-logo { width: 112px; }
  .c-ways { display: contents; }
  .c-pr { grid-column: 2; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
  .c-pr .ps-label { font-size: 12px; }
  .c-pr a { font-size: 15px; }
  .c-ch { grid-column: 1 / -1; margin: 0 0 0 -12px; justify-content: flex-start; }
  .c-k { font-size: 12px; }
  .c-v.a-fixed { font-size: 17px; }
  .c-to { grid-template-columns: var(--k) minmax(0, 1fr); padding-top: 16px; }
  /* the date is the memo's own, written by the visitor's clock; on a phone it gives its line to the note */
  .c-to .c-dk, .c-to .c-dv { display: none; }
  .c-from { padding-top: 14px; }
  .c-from > .c-k { padding-top: 36px; }
  .c-three { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .c-three .k-f:last-child { grid-column: auto; }
  .k-lab { height: 15px; margin-bottom: 4px; }
  .c-three .k-fl { font-size: 13px; line-height: 15px; }
  .c-three .k-in { font-size: 17px; padding-inline: 10px; }
  .c-three .k-set { font-size: 17px; }
  .c-bd { margin-top: 16px; padding-top: 14px; grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .c-kmsg { padding-top: 0; min-height: 16px; display: block; position: relative; padding-right: 0; }
  .c-kmsg .k-err { position: absolute; left: 0; top: 0; white-space: nowrap; margin: 0; }
  .c-body textarea, .k-setmsg { font-size: 17px; }
  /* Send across the sheet, and under it a place kept for the line that says it did not go */
  .c-bd .k-send { flex-direction: column; align-items: stretch; gap: 0; }
  .c-bd .k-status, .c-bd .k-status:empty { min-height: 50px; padding-top: 10px; font-size: 14px; line-height: 20px; max-width: none; display: block; }
  .k-done .k-send { gap: 14px; align-items: flex-start; }
  .k-done .c-bd .k-status { display: none; }
  .k-again { align-self: flex-start; }
}
@media (max-width: 359px) { .c-lh { grid-template-columns: minmax(0, 1fr); } .c-pr { grid-column: 1; } }
/* the lead beside "Contact." (the confirming testers and control, November 16, 2026, the last pass): it began 20 px above
   the heading and its last line stood 17 px over the memo. Beside the heading it now starts on the heading's line (the
   first lines share a baseline), and the memo stands a clear step under it at every window height */
@media (min-width: 1101px) {
  .c-hl { align-items: first baseline; }
  .c-hl + .c-sheet, .c-sheet { margin-top: 40px; }
}
