/* South Plains Detachment 519 — public site
   Light direction: cream page, white cards, navy text, scarlet actions. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --cream: #f4efe6;
  --cream-deep: #efe6d6;
  --white: #ffffff;
  --ink: #1c2744;
  --muted: #3e4b66;
  --scarlet: #b42334;
  --scarlet-deep: #7c1628;
  --scarlet-press: #8e1a30;
  --gold: #8a6233;
  --gold-line: #d9c7a4;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1160px;
  --header: 96px;
  --shadow: 0 12px 32px rgba(28, 39, 68, 0.05);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

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

h1, h2, h3, p, ul, ol, figure, address {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-optical-sizing: auto;
}

p, li {
  text-wrap: pretty;
}

a {
  color: var(--scarlet-press);
}

a:hover {
  color: var(--scarlet-deep);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  z-index: 40;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

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

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker-scarlet {
  color: var(--scarlet);
}

.lede {
  font-size: 1.08rem;
  color: var(--ink);
  max-width: 42rem;
}

.fine {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--gold-line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: var(--header);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.brand-mark,
.footer-mark {
  width: 72px;
  height: auto;
  flex: none;
}

.about-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

.about-seal {
  width: 220px;
  height: auto;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.name-short,
.sub-short {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
}

.nav-toggle-bars {
  width: 16px;
  height: 11px;
  display: inline-block;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 16px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 16px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 16px 1.5px no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0.05rem;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.nav-links a[aria-current="page"] {
  color: var(--scarlet-press);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.32em;
}

.header-meet {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.header-meet-label {
  font-weight: 700;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 46px;
  padding: 0.55rem 1.05rem;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn-small {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  font-size: 0.92rem;
}

.btn-scarlet {
  background: var(--scarlet);
  color: #fff;
  border-color: var(--scarlet);
}

.btn-scarlet:hover {
  background: var(--scarlet-press);
  border-color: var(--scarlet-press);
  color: #fff;
}

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

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

.btn-white {
  background: #fff;
  color: var(--scarlet-deep);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--cream);
  color: var(--scarlet-deep);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.88);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--scarlet-deep);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* Hero: the memorial is part of the cream field. The mask reaches
   full transparency inside the image, so the photograph has no box edge. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 820px;
  display: flex;
  align-items: center;
  margin: 0 0 0.4rem;
  background: var(--cream);
}

.hero-media {
  position: absolute;
  top: 50%;
  /* Centered in the open space right of the 34rem text column:
     midpoint of (text right edge) and (mirrored right margin) = 50% + 17rem. */
  left: calc(50% + 17rem);
  width: min(540px, 42vw);
  height: auto;
  aspect-ratio: 1024 / 1536;
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center center;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-composite: intersect;
  mask-repeat: no-repeat;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, transparent 78%, var(--cream) 100%);
}

.hero-copy-wrap {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.hero-copy {
  max-width: 34rem;
  padding: 3.3rem 0 2.6rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 5vw, 4.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero .lede {
  margin: 0 0 1.4rem;
  max-width: 36rem;
}

.hero-credit {
  position: absolute;
  right: 0.85rem;
  bottom: 0.45rem;
  z-index: 1;
  margin: 0;
  max-width: 16rem;
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #1c2744;
  text-align: right;
  text-shadow: 0 0 6px rgba(244, 239, 230, 0.95), 0 1px 0 #f4efe6;
}

/* Meeting */

.meeting {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(8rem, 0.55fr) minmax(0, 1.05fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 1.2rem 0 0.4rem;
}

.meeting > div {
  padding: 1.35rem 1.4rem 1.3rem;
  min-width: 0;
}

.meeting > div + div {
  border-left: 1px solid var(--gold-line);
}

.meeting h2,
.meeting .meeting-strong {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.15;
}

.meeting p {
  margin: 0 0 0.35rem;
}

.meeting .btn {
  margin-top: 0.7rem;
}

/* Wayfinding */

.ways {
  padding: 3.4rem 0 1rem;
}

.ways h2,
.membership h2,
.semper h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 3.15rem);
}

.way-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.way-card {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--shadow);
}

.way-num {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--gold);
}

.way-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.way-card p {
  margin: 0;
  color: var(--ink);
}

.way-card .text-link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.way-card .text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  margin-top: 0.8rem;
}

.flyer {
  margin: 0;
}

.flyer img {
  width: 100%;
  height: auto;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
}

.flyer figcaption {
  margin-top: 0.45rem;
}

.disclaimer {
  font-weight: 700;
}

.event-layout .actions {
  margin: 0.8rem 0;
}

.event-layout a,
.toys a {
  overflow-wrap: anywhere;
}

/* Toys */

.toys {
  margin-top: 3.2rem;
  background-color: var(--scarlet);
  color: #fff;
  background-image: repeating-linear-gradient(
    -22deg,
    transparent,
    transparent 13px,
    rgba(255, 255, 255, 0.045) 13px,
    rgba(255, 255, 255, 0.045) 14px
  );
}

.toys-inner {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
  padding: 2.6rem 0;
}

.toys-mark {
  background: var(--scarlet-deep);
  border-radius: 14px;
  min-height: 240px;
  padding: 1.25rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.toys-word {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.65rem;
  line-height: 0.88;
  letter-spacing: 0.01em;
}

.toys-for {
  margin: 0.15rem 0 0.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
}

.toys-service {
  margin: 1rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toys .kicker {
  color: rgba(255, 255, 255, 0.86);
}

.toys h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  max-width: 16ch;
}

.toys p {
  margin: 0 0 0.75rem;
  max-width: 46rem;
}

.toys .actions {
  margin-top: 1rem;
}

.only-mobile {
  display: none;
}

/* Membership + semper */

.membership {
  text-align: center;
  padding: 4rem 0 1.5rem;
}

.membership .kicker {
  margin-bottom: 0.55rem;
}

.membership p {
  max-width: 40rem;
  margin: 1rem auto 1.4rem;
}

.membership .actions {
  justify-content: center;
}

.semper-wrap {
  padding-bottom: 2.5rem;
}

.semper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 1.45rem 1.5rem;
  box-shadow: var(--shadow);
}

.semper h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.3rem;
}

.semper p {
  margin: 0;
  max-width: 36rem;
}

/* Inner pages */

.page-hero {
  padding: 2.8rem 0 0.4rem;
}

.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 0.8rem;
}

.page-hero .lede {
  margin-bottom: 0.4rem;
}

.page-hero .actions {
  margin-top: 1.15rem;
}

.stack {
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem 0 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card h2 {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  margin: 0 0 0.55rem;
}

.card h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.35rem;
}

.card p,
.card li,
.card address {
  max-width: 68ch;
}

.card > :last-child {
  margin-bottom: 0;
}

.card ul,
.card ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.card li + li {
  margin-top: 0.4rem;
}

.card a {
  text-underline-offset: 0.16em;
}

.notice {
  margin-top: 0.85rem;
  padding: 0.75rem 0 0.15rem 0.9rem;
  border-left: 3px solid var(--gold);
}

.notice p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.9rem;
}

.crisis {
  border-color: var(--scarlet);
  box-shadow: none;
}

.crisis h2 {
  color: var(--scarlet-deep);
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}

.resource-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--gold-line);
  max-width: none;
}

.resource-list a {
  font-weight: 700;
}

.compose {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
  max-width: 38rem;
}

.compose label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.95rem;
}

.compose input,
.compose select,
.compose textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem var(--sans);
}

.compose textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.compose-status {
  margin: 0;
  font-size: 0.95rem;
}

.plain-list {
  padding-left: 1.15rem;
}

.plain-list li + li {
  margin-top: 0.35rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--gold-line);
  padding: 2.2rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr 1.05fr;
  gap: 1.4rem 1.5rem;
}

.footer-name {
  margin: 0.65rem 0 0.1rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
}

.footer-sub,
.footer-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer address,
.site-footer p {
  font-style: normal;
  margin: 0;
}

.footer-base {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink);
  font-weight: 650;
}

.photo-credit {
  max-width: 72ch;
  font-size: 0.84rem;
  line-height: 1.45;
}


/* Staff roster */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.staff-card {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.05rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.staff-title {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staff-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
}

.staff-note {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Responsive */

@media (max-width: 959px) {
  .name-long,
  .sub-long {
    display: none;
  }

  .name-short,
  .sub-short {
    display: inline;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-meet {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.4rem 1rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gold-line);
    box-shadow: 0 16px 28px rgba(28, 39, 68, 0.08);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 1.05rem;
  }

  .site-nav .btn {
    width: 100%;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    height: auto;
    padding-top: 0.2rem;
  }

  .hero-copy-wrap {
    order: 1;
    position: relative;
    z-index: 1;
  }

  /* The desktop picture is taken out of flow. On a phone that collapses in
     Safari: height:100% on the image plus aspect-ratio on the figure does not
     produce a used height, object-fit then shows only the middle, and the
     meeting card cuts it off. Size the image from its own width and height. */
  .hero-media {
    order: 2;
    position: static;
    inset: auto;
    display: block;
    flex: none;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    transform: none;
    z-index: 0;
  }

  .hero-media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: fill;
    object-position: center top;
    aspect-ratio: 1024 / 1536;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
    mask-composite: add;
  }

  .hero-media::after {
    background: linear-gradient(to bottom, transparent 0%, transparent 82%, var(--cream) 100%);
  }

  .hero-copy {
    max-width: none;
    padding: 1.45rem 0 0.2rem;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-credit {
    right: 0.7rem;
    bottom: 0.55rem;
  }
}

@media (max-width: 800px) {
  .meeting,
  .way-grid,
  .staff-grid,
  .split,
  .footer-grid,
  .toys-inner,
  .event-layout {
    grid-template-columns: 1fr;
  }

  .meeting > div + div {
    border-left: 0;
    border-top: 1px solid var(--gold-line);
  }

  .semper {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: inline;
  }

  .toys-mark {
    display: none;
  }

  .toys-inner {
    padding: 2rem 0 2.1rem;
  }

  .hero .actions,
  .semper .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .actions .btn,
  .semper .actions .btn,
  .membership .actions .btn {
    width: 100%;
  }

  .membership {
    text-align: left;
    padding: 2.6rem 0 1.2rem;
  }

  .membership p,
  .membership .actions {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .wrap,
  .hero-copy-wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .hero-media {
    height: auto;
    margin-top: 0;
    position: static;
  }

  .actions .btn,
  .meeting .btn,
  .semper .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 56px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .about-seal {
    width: 168px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.05rem, 11vw, 2.7rem);
  }
}

@media (max-width: 359px) {
  .brand-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .actions,
  .compose,
  .skip {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card,
  .meeting,
  .way-card,
  .semper {
    box-shadow: none;
  }
}


/* Members nav hint + placeholders */

.login-hint {
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a[aria-current="page"] .login-hint {
  color: inherit;
  opacity: 0.85;
}

.placeholder-note {
  margin: 0 0 0.6rem;
  padding: 0.65rem 0.8rem;
  background: var(--cream-deep);
  border: 1px dashed var(--gold-line);
  border-radius: 10px;
  color: var(--muted);
  font-style: italic;
}

.card code {
  font-size: 0.92em;
  background: var(--cream);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}

/* ---------- Members area (v16, Supabase sign-in) ---------- */
.member-narrow {
  max-width: 44rem;
}

.stack-inner {
  display: grid;
  gap: 0.9rem;
}

.member-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
}

.member-narrow [hidden],
#main [hidden] {
  display: none !important;
}

.member-bar p {
  margin: 0;
  overflow-wrap: anywhere;
}

.member-subform {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-line);
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--gold-line);
}

.member-item:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.member-item h3 {
  margin: 0 0 0.2rem;
}

.member-meta {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.member-body {
  margin: 0 0 0.5rem;
  white-space: pre-line;
}

.member-delete {
  margin-top: 0.3rem;
}

.compose-status.member-error {
  color: var(--scarlet-deep);
  font-weight: 650;
}

.officer-tools {
  border-color: var(--scarlet);
}

.btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--scarlet-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.btn-link:hover {
  color: var(--scarlet);
  background: var(--cream);
}

.card .member-list {
  padding-left: 0;
}
