/* The public site's one stylesheet (sivic_platform/site.py). The look is the email's:
   the client's navy and gold (set per client as --deep, --accent and --link on each page),
   Verdana Bold for names and labels, Georgia for text. */
:root { --head: Verdana, Geneva, sans-serif; --text: Georgia, 'Times New Roman', serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f3f2ee; color: #1a1a1a; font: 18px/1.5 var(--text); }
a { color: var(--link); }
a:hover { color: var(--deep); }
p { margin: 0; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.narrow.wider { max-width: 640px; }

/* The navy block and the gold bar */
.top { background: var(--deep); padding: 30px 6vw 26px; }
.top .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: block; text-decoration: none; }
.brand-name { display: block; font: 700 34px/1.1 var(--head); letter-spacing: -0.01em; color: #ffffff; }
.brand-by { display: block; margin-top: 12px; font: 700 14px var(--head); letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.top-link { display: inline-block; height: 44px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 4px; text-decoration: none; font: 700 14px/42px var(--head); color: #ffffff; }
.top-link:hover { color: #ffffff; border-color: #ffffff; }
.strip { background: var(--accent); padding: 10px 6vw; }
.strip .wrap { font: 700 13px/1.3 var(--head); letter-spacing: 0.5px; color: var(--deep); }

/* Sections */
.band { padding: 64px 6vw 72px; }
.band.white { padding: 56px 6vw 60px; background: #ffffff; border-top: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; }
.cols { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.cols.mid { align-items: center; }
.col-a { flex: 1 1 440px; min-width: 0; }
.col-b { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
/* With no photo of the client beside them, the two parts stand side by side. */
.cols.alone .parts { flex-direction: row; flex-wrap: wrap; gap: 32px 56px; }
.cols.alone .parts > div { flex: 1 1 380px; min-width: 0; }
h1 { margin: 0; font: 700 44px/1.12 var(--head); letter-spacing: -0.02em; color: var(--deep); }
h2 { margin: 0 0 32px; font: 700 28px/1.2 var(--head); letter-spacing: -0.015em; color: var(--deep); }
.lead { margin: 20px 0 0; max-width: 34em; }
.lead.find { margin: -20px 0 28px; max-width: 36em; }
.parts { display: flex; flex-direction: column; gap: 32px; }
.parts p { margin-top: 14px; }
.big { font-size: 22px; line-height: 1.4; color: var(--deep); }
.muted { color: #555555; }
.other { margin: 20px 0 0; font-size: 16px; }

/* A label between two fine lines, as in the email */
.rule-label { display: flex; align-items: center; gap: 10px; }
.rule-label i { flex: 1; height: 1px; background: #c3ccd6; }
.rule-label span { font: 700 14px var(--head); letter-spacing: 1.5px; text-transform: uppercase; color: var(--deep); }
.parts .rule-label i:first-child { display: none; }

/* Forms */
.form { margin: 32px 0 0; padding: 28px; background: #ffffff; border: 1px solid #e2e2e2; border-radius: 4px; display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font: 700 13px var(--head); letter-spacing: 0.5px; color: var(--deep); }
input { height: 48px; width: 100%; padding: 0 14px; font: 400 17px var(--text); color: #1a1a1a; background: #ffffff; border: 1px solid #8a94a0; border-radius: 4px; }
input.code { height: 60px; width: 220px; padding: 0 16px; font: 700 28px var(--head); letter-spacing: 8px; color: var(--deep); }
.btn { display: inline-block; height: 52px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--deep); color: #ffffff; font: 700 16px/52px var(--head); text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { color: #ffffff; }
.btn.wide { display: block; width: 100%; }
.btn.line { height: 48px; line-height: 44px; font-size: 15px; background: #ffffff; color: var(--deep); border: 2px solid var(--deep); align-self: flex-start; }
.btn.quiet { height: 44px; line-height: 42px; padding: 0 18px; font-size: 14px; background: #ffffff; color: var(--deep); border: 1px solid #8a94a0; }
.btn.quiet.danger { color: #8a1c1c; border-color: #8a1c1c; }
.btn[disabled] { opacity: 0.6; cursor: default; }
button.link { padding: 0; border: 0; background: none; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.fine { font-size: 14px; color: #555555; }
.fine.roomy { font-size: 16px; }
.msg { font-size: 15px; color: #8a1c1c; }
.msg.ok { color: #1d5c2e; }

/* The email in small */
.mail { width: 100%; max-width: 520px; background: #ffffff; border: 1px solid #e2e2e2; border-radius: 4px; box-shadow: 0 18px 40px rgba(13, 27, 42, 0.12); }
.mail-top { background: var(--deep); padding: 26px 24px 22px; border-radius: 4px 4px 0 0; }
.mail-name { font: 700 24px/1.1 var(--head); letter-spacing: -0.01em; color: #ffffff; }
.mail-by { margin-top: 10px; font: 700 12px var(--head); letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.mail-date { background: var(--accent); padding: 9px 24px; font: 700 11px/1.3 var(--head); letter-spacing: 0.5px; color: var(--deep); }
.mail-body { padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 24px; }
.mail-head { font: 700 19px/1.25 var(--head); letter-spacing: -0.015em; color: var(--deep); }
.mail-text { margin-top: 14px; font-size: 15.5px; line-height: 1.5; }
.mail-part { display: flex; flex-direction: column; gap: 12px; }
.mail-part .rule-label span { font-size: 12px; }
.mail-item { font: 700 13.5px/1.35 var(--head); color: var(--link); }
.mail-note { font-size: 15.5px; color: #555555; }
.side { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.side-label { font: 700 13px var(--head); letter-spacing: 1.5px; text-transform: uppercase; color: #555555; }
.side .mail-head { font-size: 16px; }
.side .mail-text { margin-top: 10px; font-size: 14.5px; color: #555555; }

/* The client */
.portrait { margin: 0; width: 100%; max-width: 400px; border-radius: 4px; overflow: hidden; box-shadow: 0 18px 40px rgba(13, 27, 42, 0.14); }
.portrait img { display: block; width: 100%; height: 250px; object-fit: cover; object-position: center top; }
.portrait figcaption { background: var(--deep); padding: 20px 24px 22px; }
.portrait-name { font: 700 22px/1.2 var(--head); letter-spacing: -0.01em; color: #ffffff; }
.portrait-line { margin-top: 8px; font: 700 12px/1.4 var(--head); letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.author { margin: 24px 0 0; display: flex; align-items: center; gap: 16px; }
.author img { flex: none; width: 76px; height: 76px; border-radius: 4px; object-fit: cover; object-position: center top; }
.author-name { font: 700 17px var(--head); color: var(--deep); }
.author-line { margin-top: 4px; font-size: 15px; color: #555555; }

/* Every town */
.towns { padding: 24px 28px; background: #ffffff; border: 1px solid #e2e2e2; border-radius: 4px; }
.towns summary { font: 700 16px var(--head); color: var(--deep); cursor: pointer; min-height: 44px; line-height: 44px; }
.towns-cols { margin-top: 12px; columns: 5 170px; column-gap: 28px; font-size: 16px; line-height: 2.1; }
.now-label { font: 700 13px var(--head); letter-spacing: 1.5px; text-transform: uppercase; color: var(--deep); }
.now p { margin: 12px 0 16px; font-size: 16px; }
.now-towns { display: flex; flex-wrap: wrap; gap: 10px 20px; font: 700 16px var(--head); }

/* The pages a signup passes through */
.card { padding: 36px; background: #ffffff; border: 1px solid #e2e2e2; border-radius: 4px; display: flex; flex-direction: column; gap: 18px; }
.card.gold { border-top: 4px solid var(--accent); }
.card.flush { padding: 0; gap: 0; }
.card h1, .heading h1 { font-size: 30px; line-height: 1.15; }
.heading p { margin-top: 10px; }
#manage-on { display: flex; flex-direction: column; gap: 24px; }
.small-head { margin: 0; font: 700 14px var(--head); letter-spacing: 1.5px; text-transform: uppercase; color: var(--deep); }
.row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.row > p { flex: 1 1 280px; font-size: 16px; }
.line { height: 1px; background: #e2e2e2; }
.add { flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.add .field { flex: 1 1 220px; min-width: 0; }
.add .btn { height: 48px; line-height: 48px; font-size: 15px; }
.add .btn.line { line-height: 44px; align-self: flex-end; }
.add .msg { flex: 1 1 100%; }
.card.flush .add { padding: 22px 28px 26px; }
.town-row { padding: 20px 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e2e2; }
.town-row .msg { flex: 1 1 100%; }
.town-name { font: 700 18px var(--head); color: var(--deep); }
.town-when { font-size: 15px; color: #555555; }

/* The footer: the lines the agreement asks for on every page */
.foot { padding: 36px 6vw 44px; background: #faf9f6; border-top: 1px solid #e2e2e2; font-size: 14px; color: #555555; }
.foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.paid { padding: 10px 22px; border: 1px solid #555555; color: #333333; }
.foot a { color: #555555; }
.foot-links a:first-child { text-decoration: none; }

/* A phone */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top { padding: 24px 20px 20px; }
  .brand-name { font-size: 24px; }
  .brand-by { margin-top: 10px; font-size: 12px; }
  .top-link { height: 40px; line-height: 38px; padding: 0 14px; font-size: 13px; }
  .strip { padding: 9px 20px; }
  .strip .wrap { font-size: 11px; }
  .band, .band.white { padding: 32px 20px 44px; }
  .cols { gap: 32px; }
  h1 { font-size: 29px; line-height: 1.15; }
  h2 { font-size: 23px; margin-bottom: 24px; }
  .big { font-size: 19px; }
  .form { margin-top: 24px; padding: 20px; }
  .card { padding: 24px 20px; }
  .card h1, .heading h1 { font-size: 26px; }
  .mail { box-shadow: none; }
  .mail-top { padding: 22px 20px 18px; }
  .mail-name { font-size: 21px; }
  .mail-date { padding: 8px 20px; }
  .mail-body { padding: 22px 20px 26px; gap: 20px; }
  .towns { padding: 16px 18px; }
  .towns-cols { columns: 2 120px; column-gap: 18px; }
  .town-row, .card.flush .add { padding-left: 20px; padding-right: 20px; }
  .foot { padding: 28px 20px 36px; font-size: 13.5px; }
}
