/* DVPA membership app, in design 1 ("the field at sunrise", the site's look): sand and paper, ink, sky and sun.
   Tokens and parts copied from the design 1 mockup so the app and the site match. Light only, like the site.
   No web fonts (the security policy allows only this app's own files): Avenir Next on Apple devices, then the
   system font.

   Sized for DVPA's members and officers, mostly retired, many on an iPad or a phone (Eric 2026-11-25: "Needs to be
   VERY friendly"): text 19 px (18 px on a phone, never under 16 px anywhere), headings and the Pay button 20 px or
   more, every button and box at least 48 px tall (most 56 px), labels above their boxes, dark box borders, links
   underlined, and nothing that only shows on hover. The tests read the minimums from this file (test_simple.py). */
:root {
  /* --soft, --sun-text and --ok are the site's darker values of 11/25 (each at least 7:1 on sand and paper) */
  --sand: #F6EEE1; --paper: #FFFCF6; --ink: #2B221C; --soft: #574A40; --line: #E4D7C3; --field: #FFFFFF;
  --field-line: #9C8B72; --sky: #2B79B4; --deep: #17456B; --sun: #E5602A; --sun-dark: #C84D1C; --sun-deeper: #A8401A;
  --sun-text: #86310F; --gold: #E0AE2F; --gold-soft: #FFC56B;
  --green: #2E8B57; --ok-bg: #DDF1E4; --ok: #12552F; --warn-bg: #FCE9C9; --warn: #7A4F0F; --bad-bg: #F8DED6;
  --bad: #A3341C; --night: #231B16;
  --font: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: 19px; --text-small: 17px; --tap: 56px; --tap-min: 48px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }  /* a hidden part stays hidden even when its class sets a display */
body { margin: 0; background: var(--sand); color: var(--ink); font: var(--text)/1.6 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; }  /* the footer stays at the bottom of a short page */
body > main { flex: 1 0 auto; width: 100%; }
img { display: block; max-width: 100%; }
a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sun-deeper); }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { text-wrap: balance; }
p, ul, ol { margin: 0 0 16px; }

/* test copy strip (local and staging) */
.teststrip { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #EBCB8F; font-size: var(--text-small); }
.teststrip .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; gap: 6px 12px; flex-wrap: wrap; justify-content: center; text-align: center; }

/* header (the site's): the menu row on a wide screen; at 900 px and below a "Menu" button, with Sign in and
   Join or renew side by side under the logo (both outlined here: each page's own main button is the orange one) */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
/* The top bar sticks on screens wider than 900 (81 px tall, 120 where its links wrap, 901 to 1040): whatever the page
   scrolls to (the missing answers list when Pay is pressed, a link to a spot on the page) lands below it, not under it
   (11/25: "Please fix these" and the first missing answer were hidden under the bar on a computer or iPad). */
html { scroll-padding-top: 96px; }
@media (max-width: 1040px) { html { scroll-padding-top: 136px; } }
@media (max-width: 900px) { html { scroll-padding-top: 0; } }
.top .wrap { display: flex; align-items: center; gap: 26px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 52px; width: auto; flex: none; }
.brand span { font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: .01em; }
.brand small { display: block; font-weight: 600; color: var(--soft); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px 24px; margin-left: auto; font-weight: 600; font-size: 18px; }
.nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap-min);
  border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--sun); }
.nav a[aria-current="page"] { border-color: var(--sun); text-decoration: none; }
.top .signin, .top .join { flex: none; }
.top .signin[aria-current="page"] { border-color: var(--sun-dark); }
.top.officer { position: static; }
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: var(--tap-min); min-width: 104px; padding: 0 18px; font-weight: 700; font-size: 19px;
  color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); user-select: none; }
.menu > summary::before, .menu[open] > summary::before { content: ""; width: 20px; height: 16px; border: 0; border-radius: 0;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 6.5px / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 13px / 100% 3px no-repeat; }
.menu[open] > summary { background: var(--ink); color: #fff; margin-bottom: 0; }
.menu[open] > summary::before { background: linear-gradient(#fff, #fff) 0 0 / 100% 3px no-repeat,
    linear-gradient(#fff, #fff) 0 6.5px / 100% 3px no-repeat, linear-gradient(#fff, #fff) 0 13px / 100% 3px no-repeat; }
.menu-opened { display: none; }
.menu[open] .menu-opened { display: inline; }
.menu[open] .menu-closed { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--paper);
  border-bottom: 2px solid #CBB99D; box-shadow: 0 18px 30px rgba(60, 38, 16, .18); padding: 4px 20px 16px; display: grid; }
.menu-panel a { display: flex; align-items: center; min-height: var(--tap); padding: 6px 4px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.menu-panel a:last-child { border-bottom: 0; }

/* buttons: the main one is solid orange, the others outlined. Every one is at least 48 px tall. */
.btn, button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 20px; line-height: 1.2; border-radius: 12px; padding: 14px 28px;
  min-height: var(--tap); border: 2px solid var(--sun-dark); cursor: pointer; background: var(--sun-dark); color: #fff;
  text-align: center; }
.btn:hover, button:hover, .button:hover { background: var(--sun-deeper); border-color: var(--sun-deeper); color: #fff; }
.btn.big, button.big { font-size: 22px; padding: 16px 40px; min-height: 64px; }
.btn.small { padding: 10px 18px; font-size: 18px; min-height: var(--tap-min); }
.btn.line, button.secondary, .button.secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.line:hover, button.secondary:hover, .button.secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
button.danger:hover { background: #7E2714; border-color: #7E2714; }
button.link, button.link:hover { background: none; color: var(--deep); padding: 0; border: 0; min-height: 0; font-weight: 600;
  font-size: inherit; text-decoration: underline; text-underline-offset: 3px; border-radius: 0; }
button:disabled { opacity: .55; cursor: default; }
button:disabled, button:disabled:hover { background: var(--sun-dark); border-color: var(--sun-dark); }
form.inline { display: inline-block; vertical-align: middle; margin: 4px 0; }
.acts { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* officers' bar (dashboard pages): the dashboard's menu as big buttons, most used first, and Sign out */
.officers { background: var(--deep); color: #fff; }
.officers .wrap { padding-top: 14px; padding-bottom: 16px; }
.officers .barhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.officers .who { font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #CFE3F3; }
.officers nav { display: flex; gap: 8px; flex-wrap: wrap; }
.officers nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 8px 10px; border-radius: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; background: rgba(255, 255, 255, .12);
  border: 2px solid rgba(255, 255, 255, .35); }
.officers nav a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.officers nav a.on { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.dashmenu { display: none; }  /* the phone's one Menu button (below 680 px) */
.dashmenu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: var(--tap);
  padding: 8px 14px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 12px; background: rgba(255, 255, 255, .12);
  color: #fff; font-weight: 700; font-size: 19px; }
.officers button.onblue { background: transparent; border-color: #fff; color: #fff; min-height: var(--tap-min); padding: 8px 20px; font-size: 18px; white-space: nowrap; }
.officers button.onblue:hover { background: #fff; color: var(--deep); }

/* page */
main.wrap { padding-top: 40px; padding-bottom: 72px; }
main.narrow { max-width: 880px; }
.pagehead { margin-bottom: 22px; }
.eyebrow a { color: inherit; }
.eyebrow { font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-text); margin: 0 0 10px; }
.back { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: clamp(25px, 2.4vw, 30px); line-height: 1.2; margin: 1.6em 0 .55em; font-weight: 800; }
h3 { font-size: 22px; line-height: 1.25; margin: 1.2em 0 .5em; font-weight: 800; }
h2.flush, h3.flush { margin-top: 0; }
p.lead, .lead { font-size: 21px; line-height: 1.5; color: var(--ink); max-width: 40em; margin: 0 0 10px; }
.muted { color: var(--soft); }
.small { font-size: var(--text-small); }
.hint { color: var(--soft); font-size: var(--text-small); margin: 0 0 6px; }
.errors { color: var(--bad); margin: 8px 0 0; padding-left: 24px; }
.errors li { margin: 4px 0; }

/* the short facts at the top of the join page: how long, what it costs, renewing */
ul.facts { list-style: none; padding: 18px 22px; margin: 0 0 22px; background: var(--paper); border: 1px solid var(--line);
  border-left: 6px solid var(--sun-dark); border-radius: 14px; }
ul.facts li { margin: 6px 0; }
ol.steps { font-size: 20px; padding-left: 30px; }
ol.steps li { margin: 8px 0; padding-left: 4px; }

/* cards and notices */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; margin: 18px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.aside { margin-top: 34px; }
.card.aside h2 { font-size: 24px; margin-top: 1em; }
details.card > summary, details.refund > summary, details.mail > summary, details.more > summary { cursor: pointer; font-weight: 700; font-size: 20px;
  color: var(--deep); min-height: var(--tap-min); display: flex; align-items: center; gap: 10px; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border: 2px solid currentColor; border-radius: 8px; font-size: 22px; line-height: 1; }
details[open] > summary::before { content: "\2212"; }
details[open] > summary { margin-bottom: 10px; }
.notice { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 12px;
  padding: 14px 18px; margin: 16px 0; font-size: var(--text); }
.notice.bad { border-left-color: var(--bad); background: #FFF4EF; color: #6E200F; }
.notice.ok { border-left-color: var(--green); background: #F1FAF4; }
.notice.test { border-left-color: var(--gold); background: var(--warn-bg); color: #5E3E0C; font-size: var(--text-small); }

/* forms: labels above their boxes, tall boxes with a dark border */
fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 20px 26px 16px; margin: 22px 0; background: var(--paper); min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--ink); }
legend + * { clear: both; }
fieldset.optional { background: #FBF6EE; border-style: dashed; border-color: #CDBB9F; }
label { display: block; font-weight: 700; color: var(--ink); margin: 16px 0 6px; font-size: var(--text); line-height: 1.35; }
label .opt { font-weight: 500; color: var(--soft); }
.field .hint { margin-top: -2px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: var(--text); color: var(--ink); background: var(--field); border: 2px solid var(--field-line);
  border-radius: 10px; padding: 12px 14px; min-height: var(--tap); }
input[type=file] { padding: 10px; }
select { appearance: auto; }
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(229, 96, 42, .35); outline-offset: 0; border-color: var(--sun-dark); }
input::placeholder { color: #7D6F63; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }  /* a missed answer (pay.js) */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 18px; }
.row > .field { align-self: end; }  /* a two line label never pushes its box out of line */
.row.city { grid-template-columns: minmax(0, 1fr) 110px 170px; }
.row.two { grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--ink); margin: 18px 0 10px; cursor: pointer; }
.check input { margin: 2px 0 0; width: 30px; height: 30px; accent-color: var(--sun-dark); flex: none; }
.check strong { font-weight: 700; }

/* the term picker: big tiles */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 6px; }
.term { margin: 0; cursor: pointer; position: relative; font-weight: 500; }
.term input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.term span { display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 96px; border: 2px solid var(--field-line);
  background: #fff; border-radius: 14px; padding: 16px 18px; }
.term b { font-size: 21px; }
.term em { font-style: normal; font-weight: 800; font-size: 32px; line-height: 1.1; }
.term small { color: var(--ok); font-weight: 700; font-size: 18px; }
.term input:checked + span { border: 3px solid var(--sun-dark); background: #FDEEE4; padding: 15px 17px; }
.term input:checked + span b::after { content: " \2713"; color: var(--sun-dark); }
.term input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 3px; }
.check:has(input:disabled) { color: var(--soft); cursor: default; }
/* what happens after the years picked: on 1 year "Automatically renew your membership each year?" over No and Yes; on 2 or 3 years one
   line in the same spot. Shown or hidden by app.js, never greyed out. */
.nextyear { margin: 14px 0 0; }
.nextyear .check { margin: 8px 0; }
.nextlabel { font-weight: 700; margin: 0 0 4px; }
.nextyear[aria-invalid="true"] .nextlabel { color: var(--bad); }  /* not answered yet (pay.js) */
.nextyear[aria-invalid="true"] input[type="radio"] { outline: 2px solid var(--bad); outline-offset: 2px; }
.throughline { margin: 14px 0 0; padding: 12px 16px; background: #fff; border: 2px solid var(--line); border-radius: 12px;
  font-weight: 600; }
.checkline { margin: 16px 0 4px; }
/* a group of boxes under one label ("Your plane (optional)") */
.field.group { margin: 16px 0 0; }
.grouplabel { font-weight: 700; margin: 0 0 -6px; line-height: 1.35; }
.grouplabel .opt { font-weight: 500; color: var(--soft); }
.field.group .row label { font-weight: 600; }

/* payment */
.terms .pay { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }  /* the card boxes, right under the years */
.express-wrap { margin: 8px 0 6px; }
.express-wrap .or { margin: 16px 0 4px; }
.pe { margin: 12px 0 14px; min-height: 48px; }
.paybar { margin: 22px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.paybar button.pay { min-width: 300px; min-height: 68px; font-size: 24px; padding: 16px 36px; }
.paynote { margin: 0; font-weight: 600; max-width: 26em; }  /* what is charged today, next to Pay */
/* "Stripe handles the payment...", right above the payment fields in the normal text size (round 4) */
/* Pay is never greyed out (round 3); while paying it says how long it takes, in a size that fits three lines */
.paybar button.pay.busy { font-size: 20px; line-height: 1.3; max-width: 30em; }
/* "Loading the card boxes..." where the boxes will appear, until Stripe has drawn them (pay.js) */
.peload { margin: 12px 0 0; padding: 14px 16px; border: 2px dashed var(--field-line); border-radius: 10px; background: #fff;
  font-weight: 600; color: var(--soft); }
/* the phone's slim bar at the bottom of the join and renewal pages: "Pay $45", a link down to the card boxes (pay.js
   shows it while Pay is further down; phones only, below) */
.paysticky { display: none; }
#payment-element { scroll-margin-top: 16px; }

/* receipts: an "Open receipt" button in each row, and the one page receipt (to read, print or email) */
.rcell .btn { white-space: nowrap; padding: 8px 14px; }
.mainact .getreceipt { margin: 12px 0 0; }
.mainact .lead strong { white-space: nowrap; }  /* a date never breaks inside (Nov / 23, 2026) */  /* My membership: "Open my latest receipt" near the top */
.rcell .rno { display: block; margin-top: 6px; font-size: var(--text-small); }
.receipt { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; margin: 10px 0 18px;
  max-width: 680px; }
.receipt .rhead { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 2px solid var(--line);
  line-height: 1.45; }
.receipt .rhead img { height: 56px; width: auto; flex: none; }
.receipt .rhead > div { min-width: 0; overflow-wrap: anywhere; }
.receipt h1 { margin: 18px 0 8px; }
.rlines { margin: 0; }
.rlines div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rlines div:last-child { border-bottom: 0; }
.rlines dt { color: var(--soft); font-weight: 700; }
.rlines dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
/* the receipt's buttons above it: "first", never "top", the page header's class, which sticks to the window's top
   (round 4 usability test: the row slid over the header on scrolling) */
.receipt-acts.first { margin: 6px 0 14px; }
/* the Thank you page: "Nothing more to do." right under the paid through line (round 4) */
.donenote { font-size: 22px; font-weight: 700; margin: -4px 0 18px; }
.donecard { max-width: 460px; margin: 6px 0 22px; }
.donecard .acts { margin: 14px 0 0; }

/* status pills (the site's chips) */
.pill { display: inline-block; padding: 4px 14px; border-radius: 99px; font-size: 17px; font-weight: 700; white-space: nowrap; vertical-align: 2px;
  background: #EFE6D8; color: var(--soft); }
.pill.active { background: var(--ok-bg); color: var(--ok); }
.pill.due, .pill.grace { background: var(--warn-bg); color: var(--warn); }
.pill.lapsed, .pill.none { background: var(--bad-bg); color: var(--bad); }

/* My membership: the member card and the Renew button first */
.mehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.mehead h1 { margin-bottom: 0; }
form.signout { margin: 0; }
form.signout button { min-height: var(--tap-min); padding: 10px 22px; font-size: 19px; }
.endbar { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.metop { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 26px; align-items: stretch; }
.metop .card { margin: 0; }
.mainact .lead { font-size: 22px; }
.mainact .acts { margin: 20px 0 10px; }
.pass { background: linear-gradient(160deg, #FFF6DF, #F6D98A); border-radius: 18px; padding: 22px 24px 20px; color: var(--ink);
  box-shadow: 0 14px 30px rgba(60, 38, 16, .18); }
.pass .hd { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.pass .hd img { height: 40px; width: auto; mix-blend-mode: multiply; }
.pass .nm { font-size: 30px; font-weight: 800; line-height: 1.15; margin: 18px 0 4px; overflow-wrap: anywhere; }
.pass .org { font-size: 18px; font-weight: 600; }
.pass dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 0; }
.pass dl div:last-child { grid-column: 1 / -1; }
.pass dt { font-size: 16px; font-weight: 700; color: #6A5229; }
.pass dd { margin: 0; font-weight: 800; font-size: 21px; }
.pass.lapsed, .pass.none { background: linear-gradient(160deg, #F7F1E8, #E3D8C6); }
.invite { overflow-wrap: anywhere; font-weight: 600; }
/* My membership's renewal emails switch: one line in its own box at the bottom, clear of the receipts (round 3) */
.emailsarea { margin-top: 44px; }
.emailsbox { margin: 0; }
.emailsbox form.oneline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.emailsbox form.oneline p { margin: 0; font-size: 21px; }
.emailsbox .stays { margin: 10px 0 0; }  /* "Your membership stays as it is." under the switch (round 4) */

/* tables (receipts, the dashboard). On a phone the ones marked "stack" turn into one block per row. */
.tablewrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 18px; }
.tablewrap table { min-width: 560px; }
th { text-align: left; color: var(--soft); font-weight: 700; font-size: 17px; border-bottom: 2px solid var(--line);
  padding: 12px 14px 10px; white-space: nowrap; }
td { border-bottom: 1px solid var(--line); padding: 12px 14px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.row table td, .row table th { padding-left: 0; }
td a { font-weight: 600; }
td .pill { white-space: normal; }

/* a member's payments on the dashboard: one block each, with its buttons */
ul.payments { list-style: none; padding: 0; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
li.payment { padding: 16px 20px; border-bottom: 1px solid var(--line); }
li.payment:last-child { border-bottom: 0; }
li.payment p { margin: 0 0 4px; }
li.payment .ph { font-size: 20px; }
li.payment .acts { margin: 10px 0 0; }
td.acts-cell { white-space: normal; }
td.acts-cell form.inline { display: block; margin: 0 0 8px; }
td.acts-cell button { font-size: 17px; min-height: var(--tap-min); padding: 8px 14px; }
details.refund { margin-top: 6px; }
details.refund > summary { font-size: 18px; }
details.refund form { margin-top: 8px; min-width: 240px; }

/* dashboard parts */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.tabs a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap-min); padding: 8px 18px;
  border: 2px solid var(--field-line); border-radius: 99px; color: var(--ink); font-size: 18px; font-weight: 700; background: #fff; }
.tabs a .n { color: var(--soft); font-weight: 600; }
.tabs a:hover { border-color: var(--sun-dark); color: var(--ink); }
.tabs a.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.tabs a.on .n { color: #CFE3F3; }
.morelists { margin: -8px 0 20px; }  /* the lists past the three tabs fold in here */
.morelists > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  min-height: var(--tap-min); font-weight: 700; font-size: 19px; color: var(--deep); }
.morelists .tabs { margin: 8px 0 0; }
form.search { display: flex; gap: 14px; max-width: 720px; align-items: flex-end; flex-wrap: wrap; }
form.search .field { flex: 1 1 260px; min-width: 0; }
form.search label { margin-top: 0; }
form.search button { flex: none; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.kv dt { color: var(--soft); }
.kv dd { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 16px 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.stat .n { font-size: 30px; font-weight: 800; }
.stat .l { color: var(--soft); font-size: 17px; }
.qr svg { width: 180px; height: 180px; background: #fff; border-radius: 8px; }
div.line { margin: 10px 0; }
/* the dashboard's home: one number at the top, and when renewal emails go */
.paidup { font-size: 26px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }  /* the sentence's two lines close together on a phone */
.paidup strong { font-size: 40px; font-weight: 800; }  /* "20 members are paid up today." (round 4) */
td .under { margin-top: 4px; font-size: var(--text-small); }
/* Record a check or cash, one step at a time */
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.methods .term span { min-height: 76px; align-items: center; justify-content: center; }
.methods .term b { font-size: 24px; }
.picklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.picklist li { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
p.or { margin: 22px 0 4px; font-weight: 700; }
/* step 1: Find and New member side by side, the same size, and one line under both (round 3) */
form.search .findnew { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
form.search .findhint { flex: 1 0 100%; margin: 0; }
/* the Ended list: a divider row above the members who ended more than 30 days ago (round 4) */
tr.divider th { background: var(--sand); color: var(--ink); font-size: 18px; padding: 10px 14px; border-bottom: 2px solid var(--line); }
details.more { margin: 12px 0; }
/* "Date you got the check": Today and Yesterday fill the box (app.js) */
.datepick { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 4px 0 10px; }
.datepick button { min-width: 140px; }
.datepick button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.field.amount input, .dategot input { max-width: 320px; }
/* the box at the top of Members: members who ended lately and have had no renewal email */
.card.unsent { border: 2px solid var(--sun-dark); border-left-width: 8px; }
.card.unsent .lead { font-size: 22px; }
.card.unsent .acts { margin: 14px 0 6px; }
.card.unsent .only { margin: 0 0 10px; font-weight: 600; }  /* "Emails only these 4. ..." under the button (round 4) */
.card.unsent ul.names { margin: 4px 0 8px; }
ul.names { padding-left: 26px; }
ul.names li { margin: 4px 0; }
/* the monthly report's top line */
.money .total { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.money .total strong { font-size: 34px; font-weight: 800; }
.money .split { font-size: 21px; }
div.line form.inline { margin-left: 8px; }
.card.status .lead { font-size: 22px; }
/* a member's page: one large line, "Paid up through <date>", the last payment smaller under it (round 3) */
.card.status .bigline { font-size: 30px; line-height: 1.25; font-weight: 700; margin: 0 0 4px; }
.card.status .bigline.active strong { color: var(--ok); }
.card.status .bigline.grace strong, .card.status .bigline.lapsed strong { color: var(--bad); }
.card.status .bigline strong { white-space: nowrap; }  /* the date on one line, never "Nov 25," then "2027" on a phone */
.card.status .lastpay { font-size: var(--text-small); margin: 0 0 14px; }

/* the renewal emails at launch: one card per group, its email behind "See the email", the send's progress */
.cugrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 0 20px; }
.cu { display: flex; flex-direction: column; }
.cuhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cuhead .check { margin: 0; font-size: 21px; }
.cu .count { color: var(--soft); white-space: nowrap; }
.cu .count b { color: var(--ink); font-size: 30px; font-weight: 800; margin-right: 4px; }
.cu p { margin: 10px 0; }
details.mail { margin-top: auto; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; }
details.mail[open] { padding-bottom: 12px; }
details.mail > summary { font-size: 18px; }
.mail .subj { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.mail .subj span { display: block; font-size: 16px; font-weight: 700; color: var(--soft); }
.mail .mbody { padding: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 1.5; }
.run .stats { margin: 14px 0 6px; }
.narrowtable { max-width: 560px; }
.narrowtable table { min-width: 0; }

/* footer (the site's) */
.foot { background: var(--night); color: #DCCFC1; padding: 48px 0 60px; font-size: 17px; }
.foot .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot h2 { margin: 0 0 12px; color: #fff; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.foot a { display: block; color: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.foot a:hover { color: #fff; }
.foot p { margin: 0 0 8px; }
.foot p a { display: inline; padding: 0; }

@media (max-width: 1200px) {
  .wide-only { display: none; }
}
@media (max-width: 1040px) {
  .top .wrap { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 2px; gap: 6px 16px; }
  .top .signin, .top .join { margin-left: auto; }
  .top .signin + .join { margin-left: 0; }
  .nav { order: 3; width: 100%; margin: 0; gap: 0 22px; flex-wrap: wrap; border-top: 1px solid var(--line); }
  .foot .grid { grid-template-columns: 1fr 1fr; }
  .metop { grid-template-columns: 1fr; }
  .metop .pass { max-width: 460px; }
}
/* phones and iPads held upright: the site's two row header, not pinned to the top */
@media (max-width: 900px) {
  .top { position: relative; }
  .top .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding-top: 10px;
    padding-bottom: 12px; }
  .top .nav { display: none; }
  .menu { display: block; grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .brand { grid-column: 1 / 3; grid-row: 1; justify-self: start; min-width: 0; max-width: calc(100% - 124px); }
  .brand span { max-width: 9.5em; }
  .top .signin { grid-column: 1; grid-row: 2; margin: 0; width: 100%; }
  .top .join { grid-column: 2; grid-row: 2; margin: 0; width: 100%; }
  .top.solo .signin, .top.solo .join { grid-column: 1 / 3; }
}
@media (max-width: 680px) {
  :root { --text: 18px; --text-small: 17px; }
  .wrap { padding: 0 16px; }
  .brand { gap: 10px; min-width: 0; }
  .brand span { font-size: 17px; min-width: 0; }
  .brand small { display: none; }
  .brand img { height: 44px; }
  .top .btn.small { padding: 8px 14px; font-size: 17px; }
  main.wrap { padding-top: 26px; padding-bottom: 52px; }
  h1 { font-size: 34px; }
  p.lead, .lead { font-size: 20px; }
  fieldset { padding: 16px 16px 12px; }
  legend { font-size: 22px; }
  .card { padding: 18px; }
  .row.city { grid-template-columns: minmax(0, 1fr) 96px; }
  .row.city .zip { grid-column: 1 / -1; }
  .row.two { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; gap: 10px; }
  .term span { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; min-height: 0; padding: 14px 16px; }
  .term input:checked + span { padding: 13px 15px; }
  .term em { font-size: 26px; }
  .term small { margin-left: auto; }
  .mehead { align-items: center; }
  .mehead .eyebrow { display: none; }
  .pass { padding: 16px 18px 14px; }
  .pass .nm { font-size: 26px; margin: 10px 0 2px; }
  .pass dl { margin-top: 10px; gap: 8px 14px; }
  .metop { gap: 14px; }
  .mainact .lead.status { display: none; }  /* the card just above says the same */
  .mainact .acts { margin-top: 4px; }
  .paybar button.pay, .btn.big, button.big, .mainact .btn { width: 100%; min-width: 0; }
  .paysticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center;
    justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--deep); color: #fff; font-size: 21px; font-weight: 800; text-decoration: none;
    box-shadow: 0 -6px 18px rgba(23, 69, 107, .25); }
  .paysticky:hover { color: #fff; background: #1F5E8E; }
  form.search .findnew { width: 100%; }
  form.search .findnew > * { flex: 1 1 0; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
  form.search .findnew.addnew > * { flex: 1 1 100%; }  /* Members: Find, then "Add a new member" under it */
  .card.status .bigline { font-size: 26px; }
  .datepick button { flex: 1 1 0; min-width: 0; }
  .choices.two { grid-template-columns: 1fr 1fr; }
  .receipt { padding: 18px; }
  .receipt .rhead { flex-direction: column; gap: 10px; }
  .receipt .rhead img { height: 44px; }
  .rlines div { grid-template-columns: 1fr; gap: 2px; }
  .paidup strong { font-size: 34px; }
  .officers nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .officers nav.dashnav { display: none; }
  .dashmenu { display: block; }
  .officers nav a { justify-content: center; text-align: center; padding: 8px 10px; font-size: 17px; }
  .foot .grid { grid-template-columns: 1fr; gap: 24px; }
  form.search button { width: 100%; }
  /* tables marked "stack": one block per row, each value under its column's name */
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  .tablewrap table.stack { min-width: 0; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { padding: 12px 16px; border-bottom: 2px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; }
  table.stack td::before { content: attr(data-label); color: var(--soft); font-weight: 700; }
  table.stack td > * { grid-column: 2; justify-self: start; }
  table.stack td:first-child { display: block; font-size: 20px; padding-bottom: 6px; }
  table.stack td:first-child::before { content: none; }
  table.stack td.wide-only { display: none; }
  table.stack td:empty { display: none; }
  table.stack td.acts-cell { display: block; padding-top: 8px; }
  table.stack td.acts-cell::before { content: none; }
  table.stack tr.divider th { display: block; padding: 10px 16px; }
  /* Members: one size bigger on a phone (round 4 usability test: the rows read small) */
  table.stack.memberlist td { font-size: 20px; grid-template-columns: 7em minmax(0, 1fr); }  /* a narrower name column, so a status pill fits in two lines */
  table.stack.memberlist td:first-child { font-size: 22px; }
  table.stack.memberlist td .under, table.stack.memberlist .pill { font-size: 18px; }
}
@media (max-width: 440px) {
  .brand span { display: none; }  /* the logo only, as on the site */
}
/* no smooth scrolling or motion for people who ask their device for less (pay.js scrolls the same way) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top .nav, .top .join, .top .signin, .menu, .officers, .teststrip, .noprint, .foot, .signout, .endbar { display: none; }
  /* a receipt or the member card prints alone: no header, nothing else from the page */
  body:has(article.receipt) .top, body:has(.donecard) .top { display: none; }
  body:has(.donecard) main > :not(.donecard) { display: none; }
  .receipt { border: 0; padding: 0; max-width: none; }
  body { background: #fff; }
  .top { position: static; border: 0; }
  .card, .tablewrap { border: 0; }
}
