/* TPPOA website: Classic and Formal layout, Charcoal and Steel Blue colors. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --charcoal: #26313d;
  --charcoal-dark: #18202a;
  --footer: #1b232c;
  --steel: #2b6a94;
  --steel-dark: #1f5274;
  --eyebrow: #2b5f84;
  --eyebrow-on-dark: #9cc3e0;
  --ink: #1b2128;
  --text-2: #3d4650;
  --muted: #4f5965;
  --bg: #f2f4f6;
  --surface: #fff;
  --line: #dde3e9;
  --card-border: #cfd7df;
  --rule: #8da2b5;
  --input: #a9b4bf;
  --topbar-text: #dce3ea;
  --on-dark: #e6ebf0;
  --on-dark-soft: #c9d8e6;
  --on-steel: #e3eef6;
  --footer-text: #c3cbd3;
  --divider-dark: #36414d;
  --grid-dark: #3e4a57;
  --shadow: #c5cfd9;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--charcoal);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--steel);
}

:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 3px;
}

.on-dark :focus-visible,
.site-footer :focus-visible,
.topbar :focus-visible {
  outline-color: #fff;
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
  margin: 0;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.serif {
  font-family: var(--serif);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.center {
  text-align: center;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.on-dark .eyebrow {
  color: var(--eyebrow-on-dark);
}

.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 720px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 15px;
}

.h1,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.05;
}

.h1 {
  font-size: clamp(40px, 7vw, 64px);
}

.h1--hero {
  font-size: clamp(42px, 7.5vw, 68px);
  max-width: 900px;
}

.h2 {
  font-size: clamp(32px, 5vw, 48px);
}

.h3 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
}

.on-dark .h1,
.on-dark .h2,
.on-dark .h3 {
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  background: var(--surface);
  color: var(--charcoal);
  padding: 12px 18px;
  font-weight: 700;
  border: 2px solid var(--steel);
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn--dark {
  background: var(--charcoal);
  color: #fff;
}

.btn--dark:hover {
  background: var(--charcoal-dark);
  color: #fff;
}

.btn--accent {
  background: var(--steel);
  color: #fff;
}

.btn--accent:hover {
  background: var(--steel-dark);
  color: #fff;
}

.btn--outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}

.btn--outline:hover {
  background: var(--charcoal);
  color: #fff;
}

.btn--light {
  border-color: var(--on-dark-soft);
  color: #fff;
}

.btn--light:hover {
  background: #fff;
  color: var(--charcoal);
}

.btn--white {
  background: #fff;
  color: var(--steel-dark);
}

.btn--white:hover {
  background: var(--on-steel);
  color: var(--steel-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.center .btn-row {
  justify-content: center;
}

.text-link {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

/* Top bar */
.topbar {
  background: var(--charcoal);
  color: var(--topbar-text);
  font-size: 14px;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  min-height: 44px;
}

.topbar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.topbar__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.topbar a:hover {
  color: var(--on-dark-soft);
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 6px;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 96px;
  height: 96px;
}

.brand span {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
}

.double-rule {
  width: 100%;
  max-width: 880px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-top: 3px;
}

.nav-toggle {
  display: none;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 26px;
}

.main-nav a {
  display: inline-block;
  padding: 12px 4px;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--steel);
}

.main-nav a[aria-current="page"] {
  color: var(--steel);
  box-shadow: inset 0 -2px 0 var(--steel);
}

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    margin-bottom: 8px;
    border: 1px solid var(--charcoal);
    border-radius: 2px;
    background: var(--surface);
    color: var(--charcoal);
    font: 700 15px/1 var(--sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-toggle svg {
    width: 20px;
    height: 20px;
  }

  .js .main-nav:not(.is-open) {
    display: none;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .main-nav li {
    border-bottom: 1px solid var(--line);
  }

  .main-nav a {
    display: block;
    padding: 14px 4px;
  }

  .main-nav a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--steel);
  }

  .main-nav li:last-child {
    border-bottom: 0;
  }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--hero {
  padding: 64px 0 56px;
}

.section--white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: var(--charcoal);
  color: var(--on-dark);
}

.section--accent {
  background: var(--steel);
  color: #fff;
}

.section--accent p {
  color: var(--on-steel);
}

.section--accent .h2 {
  color: #fff;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .section {
    padding: 52px 0;
  }

  .section--hero {
    padding: 44px 0 40px;
  }
}

/* Layout helpers */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr));
}

.split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.split--end {
  align-items: flex-end;
}

/* Framed image */
.frame {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.frame--double {
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--shadow);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.frame figcaption {
  padding-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.grayscale {
  filter: grayscale(1);
}

/* Home */
.hero-figure {
  margin-top: 36px;
  width: 100%;
  max-width: 1060px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: var(--grid-dark);
  border: 1px solid var(--grid-dark);
}

.stat {
  background: var(--charcoal);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__value {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.mission-quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.25;
  font-style: italic;
  font-weight: 600;
  color: var(--charcoal);
}

.point {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--card-border);
}

.point:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.point .h3 {
  color: var(--steel);
  font-size: 28px;
}

.history {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.history__image {
  flex: 0 1 380px;
}

.history__text {
  flex: 1 1 380px;
}

.photo-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  display: block;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card--top {
  border: 0;
  border-top: 3px solid var(--steel);
  padding: 32px;
  gap: 10px;
}

.card--dark {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--on-dark);
}

.card--strong {
  border-color: var(--rule);
}

.card .btn {
  align-self: flex-start;
}

.card__push {
  margin-top: auto;
}

.price {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 56px);
  font-weight: 700;
  color: var(--steel);
  line-height: 1;
}

.price--md {
  font-size: 48px;
  color: var(--charcoal);
}

.card--dark .price--md {
  color: #fff;
}

.ticks {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Key facts (When / Where / Stay) */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  border: 1px solid var(--rule);
  background: var(--surface);
}

.fact {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .fact {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .fact:last-child {
    border-right: 0;
  }
}

.fact__value {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

/* Sponsor table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.tier-table th {
  background: var(--charcoal);
  color: #fff;
  text-align: left;
  padding: 16px 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.tier-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tier-table tr:last-child td {
  border-bottom: 0;
}

.tier-table .tier-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

.tier-table .amount {
  font-weight: 700;
  white-space: nowrap;
}

.tier-table a {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .tier-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .tier-table,
  .tier-table tbody,
  .tier-table tr,
  .tier-table td {
    display: block;
  }

  .tier-table tr {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .tier-table tr:last-child {
    border-bottom: 0;
  }

  .tier-table td {
    padding: 2px 0;
    border: 0;
  }
}

/* About */
.notice {
  margin-top: 10px;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.founding {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.founding img {
  flex: 0 1 300px;
  width: 300px;
  max-width: 100%;
  border: 8px solid var(--bg);
}

.founding__text {
  flex: 1 1 380px;
}

.board {
  --min: 220px;
  gap: 40px 24px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  align-items: center;
}

.person__photo {
  width: 200px;
  height: 240px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--rule);
  padding: 6px;
  background: var(--surface);
}

.person__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 56px;
  color: #5f7387;
}

.person .eyebrow {
  color: var(--steel);
}

.person .h3 {
  font-size: 28px;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Events */
.list-title {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.event-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--card-border);
  padding: 24px;
}

.event__date {
  flex: none;
  width: 120px;
  text-align: center;
  border: 1px solid var(--charcoal);
  padding: 12px 0;
  background: var(--surface);
}

.event--featured .event__date {
  border-color: var(--steel);
}

.event--featured .event__date .eyebrow {
  color: var(--steel);
}

.event__day {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
}

.event__body {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event--past {
  background: transparent;
  border-width: 0 0 1px;
  padding: 14px 0;
}

.event--past .event__date,
.event--past .event__action {
  display: none;
}

.event--past .h3 {
  font-size: 24px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--input);
  background: var(--surface);
  color: var(--muted);
}

.partner {
  border: 1px solid var(--card-border);
  background: var(--surface);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
}

/* Agencies */
.agency-group h2 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--steel);
  margin-bottom: 6px;
}

.agency-group ul {
  list-style: none;
  padding: 0;
}

.agency-group li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
}

.agency-group .county {
  color: var(--muted);
  font-size: 15px;
}

/* Bylaws */
.doc-card {
  max-width: 760px;
  margin: 0 auto;
}

.doc-card__icon {
  width: 48px;
  height: 48px;
  color: var(--steel);
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 56px 0 32px;
  font-size: 15px;
}

.site-footer a {
  color: var(--on-dark-soft);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  width: 64px;
  height: 64px;
}

.footer-brand span {
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  line-height: 1.15;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col h2 {
  font: 700 15px/1.6 var(--sans);
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--divider-dark);
  padding-top: 20px;
  font-size: 14px;
}

@media print {
  .topbar,
  .main-nav,
  .nav-toggle,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Small utilities used by the page templates (no inline styles, so the
   Content Security Policy can forbid them). */
.pt-16 { padding-top: 16px; }
.pt-24 { padding-top: 24px; }
.pb-40 { padding-bottom: 40px; }
.pb-48 { padding-bottom: 48px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.center-text { text-align: center; }
.align-start { align-items: start; }
.border-bottom { border-bottom: 1px solid var(--line); }
.no-border-bottom { border-bottom: 0; }
.measure { max-width: 680px; }
.stack--tight { gap: 8px; }
.stack--22 { gap: 22px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.grid--200 { --min: 200px; }
.grid--240 { --min: 240px; }
.grid--300 { --min: 300px; }
.grid--320 { --min: 320px; }
.grid--wide { --min: 320px; gap: 48px; }
.grid--32 { gap: 32px; }
.grid--40 { gap: 40px; }
.grid--56 { gap: 56px; }
.h2--md { font-size: clamp(32px, 4.4vw, 40px); }
.h2--sm { font-size: clamp(30px, 4vw, 38px); }
.lead-plain { font-size: 19px; }
.lead--inherit { color: inherit; }
.link-white { color: #fff; }
.address { font-style: normal; }
.conf-dates {
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  color: var(--steel);
  line-height: 1.3;
}
.event-list--flush { gap: 0; }

/* Meeting agendas on the events page */
.event__agenda-title {
  margin-top: 10px;
}

.event__agenda {
  margin: 4px 0 0;
  padding-left: 22px;
  color: var(--text-2);
}

/* ------------------------------------------------------------------
   Member area: join, sign in, membership, member card
   ------------------------------------------------------------------ */
.m-narrow {
  max-width: 720px;
}

.m-title {
  font-size: clamp(36px, 6vw, 52px);
}

.m-lead {
  max-width: 640px;
}

.m-signed {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 16px;
  font-size: 15px;
  color: var(--muted);
}

.text-button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  color: var(--charcoal);
  font: 600 15px/1 var(--sans);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.text-button:hover {
  color: var(--steel);
}

.m-flash,
.m-test,
.m-error {
  border-left: 4px solid var(--steel);
  background: var(--surface);
  padding: 14px 18px;
}

.m-test {
  border-left-color: #a86b00;
  background: #fff8e6;
}

.m-error {
  border-left-color: #a12a2a;
  background: #fdf1f1;
}

.m-error ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.m-code {
  font-size: 1.3em;
  letter-spacing: 0.15em;
}

/* Forms (the same field markup the admin page uses) */
.m-form .form-heading {
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 700 13px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.m-form .form-heading:first-child {
  border-top: 0;
  padding-top: 0;
}

.m-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.m-form label,
.m-form legend {
  font-weight: 600;
}

.m-form .req,
.m-form .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
}

.m-form .help {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.m-form .field-error {
  margin: 0;
  color: #a12a2a;
  font-weight: 600;
}

.m-form input[type="text"],
.m-form input[type="email"],
.m-form input[type="tel"],
.m-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--input);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: 17px/1.3 var(--sans);
}

.m-form .has-error input,
.m-form .has-error select {
  border: 2px solid #a12a2a;
}

.m-code-input {
  max-width: 220px;
  font-size: 26px !important;
  letter-spacing: 0.3em;
}

.m-form .btn {
  border: 0;
  cursor: pointer;
}

.m-form .btn--outline {
  border: 1px solid var(--charcoal);
}

/* Membership page */
.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 32px;
  align-items: start;
}

.m-status__word {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.1;
}

.m-status__word--ok,
.m-status__word--info {
  color: #1f6b3a;
}

.m-status__word--warn {
  color: #8a5300;
}

.m-status__word--bad {
  color: #a12a2a;
}

.m-status__line {
  font-size: 19px;
  font-weight: 600;
}

.m-status__pay {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-section {
  margin-top: 40px;
}

.m-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.m-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px 24px;
  margin: 0;
}

.m-details dt {
  font: 700 13px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.m-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.m-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--card-border);
}

.m-table th {
  text-align: left;
  font: 700 13px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 2px solid var(--charcoal);
}

.m-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 600px) {
  .m-table thead {
    display: none;
  }

  .m-table tr {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }

  .m-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    border: 0;
  }

  .m-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
  }
}

/* The member card */
.m-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 520px;
  padding: 22px;
  background: #fff;
  border: 2px solid var(--charcoal);
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px var(--rule);
}

.m-card__qr {
  flex: 0 0 132px;
  width: 132px;
}

.m-card__qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.m-card__text {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-card__org {
  font: 700 12px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.m-card__name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.m-card__agency,
.m-card__no {
  color: var(--text-2);
  font-size: 15px;
}

.m-card__valid {
  font-weight: 700;
}

.m-card__stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 10px;
  border: 3px solid #a12a2a;
  color: #a12a2a;
  font: 700 14px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

/* Room above the text for the stamp, so they never overlap. */
.m-card--stamped {
  padding-top: 58px;
}

.m-section > .h2 {
  margin-bottom: 16px;
}

.m-card-page {
  display: flex;
  justify-content: center;
}

@media print {
  .m-noprint,
  .m-signed,
  .m-area .eyebrow,
  .m-area .m-title,
  .m-area .m-lead,
  .skip-link,
  .site-header {
    display: none;
  }

  .m-area {
    padding: 0;
  }

  .m-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
