/* OCDA public site, sign-in pages and shared components. Requires tokens.css.
   Every colour comes from a token, so the light (faint blue) and dark (navy) themes both work. */

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

html { -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-4); font-weight: 650; }
h3 { font-size: var(--step-2); font-weight: 600; }
p { margin: 0 0 var(--space-4); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--canopy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* The light-blue word in headings */
.accent, em.accent { font-style: normal; color: var(--accent-word); }

.skip-link {
  position: absolute; left: -999px; top: var(--space-2);
  background: var(--surface); padding: var(--space-2) var(--space-4); z-index: 100;
}
.skip-link:focus { left: var(--space-4); }

.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--space-5); }
.measure { max-width: 64ch; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  font: 600 0.95rem/1 var(--font-body);
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--canopy); color: var(--on-canopy); }
.btn-primary:hover { background: var(--canopy-hover); color: var(--on-canopy); }
.btn-outline { background: transparent; color: var(--canopy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--canopy); color: var(--canopy); background: var(--surface); }
/* For navy panels (feature card, dues banner, sign-in aside): same in both themes */
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #dfecf4; color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-secondary { background: var(--sky-deep); color: #fff; }
.btn-secondary:hover { background: #0b5c73; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 var(--space-4); font-size: 0.875rem; }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--link);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Theme switch ---------- */
.theme-toggle {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s, transform .3s ease;
}
.theme-toggle:hover { border-color: var(--harvest); color: var(--link); }
.theme-toggle:active { transform: rotate(-20deg) scale(.94); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun,
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }

/* ---------- Header: sits on the page background ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-glass); color: var(--ink);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-5); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-name span { font-size: 0.78rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav a:not(.btn) {
  position: relative; color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  padding: 0.35rem 0; transition: color .3s ease;
}
/* Underline grows on hover and stays under the current page */
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--harvest); transition: width .3s ease;
}
.site-nav a:not(.btn):hover { color: var(--link); }
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--link); }
[data-theme="dark"] .site-nav a:not(.btn):hover,
[data-theme="dark"] .site-nav a[aria-current="page"] { color: var(--harvest); }
.site-nav .btn { margin-left: var(--space-2); }
.btn-nav { background: var(--canopy); color: var(--on-canopy); }
.btn-nav:hover { background: var(--canopy-hover); color: var(--on-canopy); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .site-header .wrap { gap: var(--space-3); }
  .nav-toggle { display: inline-flex; }
  .site-header .brand-name span { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: var(--space-2) var(--space-5) var(--space-5);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); align-self: stretch; }
  .site-nav a:not(.btn)::after { bottom: -1px; }
  .site-nav .btn { margin: var(--space-4) 0 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(55% 70% at 82% 35%, rgba(148, 194, 216, .32), transparent 70%),
    var(--paper);
}
[data-theme="dark"] .hero { background: radial-gradient(55% 70% at 82% 35%, rgba(0, 188, 212, .12), transparent 70%), var(--paper); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--space-7);
  padding-top: var(--space-8); padding-bottom: calc(var(--space-8) + 90px);
  position: relative; z-index: 1;
}
.hero h1 { max-width: 15ch; margin-bottom: var(--space-5); letter-spacing: -0.025em; }
.hero p { font-size: var(--step-1); max-width: 46ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-seal { justify-self: center; width: min(380px, 100%); }
.hero-seal img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(8, 27, 41, .28)); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-7); }
  .hero-seal { order: -1; width: 180px; justify-self: start; }
}

/* Hills: soft blue waves on the page background; navy tones inside navy panels */
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 150px; z-index: 0; }
.hills .hill-back { fill: var(--hill-back); }
.hills .hill-mid { fill: var(--hill-mid); }
.hills .hill-front { fill: var(--paper); }

/* ---------- Page intro (inner pages): blends into the page ---------- */
.page-intro .wrap { padding-top: var(--space-8); padding-bottom: var(--space-6); }
.eyebrow {
  margin: 0 0 var(--space-4); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}
.page-intro h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em;
  max-width: 17ch; margin-bottom: var(--space-5);
}
.page-intro .lede { font-size: var(--step-1); line-height: 1.7; color: var(--ink-soft); max-width: 56ch; margin: 0; }
.page-intro + .section { padding-top: var(--space-6); }
.page-intro + .section > .wrap { position: relative; padding-top: var(--space-7); }
.page-intro + .section > .wrap::before {
  content: ""; position: absolute; top: 0; left: var(--space-5); right: var(--space-5); border-top: 1px solid var(--line);
}
.page-intro + .section .notice-list, .page-intro + .section .faq-list { border-top: 0; }
@media (max-width: 640px) {
  .page-intro .wrap { padding-top: var(--space-7); padding-bottom: var(--space-5); }
  .eyebrow { letter-spacing: 0.24em; }
  .page-intro + .section > .wrap { padding-top: var(--space-6); }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: var(--step-3); }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-7); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }

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

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-6);
}
.panel-quiet { background: var(--canopy-tint); border-color: transparent; }

/* ---------- Animated accordions (news, portal notices, FAQ) ---------- */
.accordion-panel { overflow: hidden; }

/* ---------- Notices (news page and member portal) ---------- */
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); overflow-anchor: none; }
.notice { border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.notice > button, .notice > .notice-row {
  width: 100%; display: grid; grid-template-columns: 7.5rem 1fr auto 20px; gap: var(--space-4); align-items: center;
  padding: var(--space-4) var(--space-2); margin: 0; background: none; border: 0; border-radius: var(--radius-sm);
  text-align: left; font: inherit; color: inherit; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s ease;
}
@media (hover: hover) { .notice > button:hover { background: var(--row-hover); } }
.notice > button::after {
  content: ""; justify-self: end; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .2s;
}
.notice > button[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; border-color: var(--canopy); }
.notice time { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.notice-title { font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.notice-kind {
  font-size: 0.78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--canopy-tint); color: var(--ink);
}
.notice-kind[data-kind="event"] { background: var(--harvest-tint); color: var(--harvest-ink); }
.notice-body-inner { padding: 0 var(--space-2) var(--space-5) calc(8.5rem + var(--space-2)); color: var(--ink-soft); white-space: pre-line; max-width: calc(64ch + 8.5rem); line-height: 1.7; }
.notice > button[aria-expanded="true"] .notice-title { color: var(--canopy); }
@media (max-width: 640px) {
  .notice > button, .notice > .notice-row { grid-template-columns: 1fr auto 16px; gap: var(--space-2) var(--space-3); padding: var(--space-4) var(--space-1); }
  .notice time { grid-column: 1 / -1; }
  .notice-body-inner { padding: 0 var(--space-1) var(--space-5); }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); overflow-anchor: none; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: var(--space-5) var(--space-6) var(--space-5) 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); touch-action: manipulation;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq-item summary:hover { color: var(--link); } }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--canopy); border-bottom: 2px solid var(--canopy); transform: rotate(45deg);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), margin-top .3s;
}
.faq-item[open]:not(.is-closing) summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item[open]:not(.is-closing) summary { color: var(--canopy); }
.faq-answer-inner { padding: 0 0 var(--space-5); color: var(--ink-soft); white-space: pre-line; max-width: 68ch; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.contact-grid > * { position: sticky; top: 96px; }
.contact-info { white-space: pre-line; font-size: 0.97rem; line-height: 1.75; color: var(--ink-soft); }
.contact-grid .panel { padding: var(--space-6) var(--space-6) var(--space-5); box-shadow: var(--shadow-card); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > * { position: static; } }

/* ---------- About (card stack, as on the original page) ---------- */
.about { padding: var(--space-8) 0; }
.about-wrap { max-width: 1024px; margin: 0 auto; padding: 0 var(--space-5); }
.about-head { text-align: center; margin-bottom: var(--space-7); }
.about-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); max-width: 26ch; margin: 0 auto var(--space-3); }
.about-head p { font-size: var(--step-1); color: var(--muted); margin: 0; }
.about-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: var(--space-6); margin-bottom: var(--space-6);
  transition: transform .3s ease, box-shadow .3s ease, opacity .7s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.about-card h2 { font-size: var(--step-2); margin-bottom: var(--space-3); color: var(--canopy); }
.about-card p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; max-width: 75ch; }
.about-card p:last-child { margin-bottom: 0; }
.about-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-6); }
@media (max-width: 760px) { .about-pair { grid-template-columns: 1fr; } .about-card { padding: var(--space-5); } .about { padding: var(--space-7) 0; } }
.about-values, .about-list { list-style: none; margin: 0; padding: 0; color: var(--ink-soft); }
.about-values li, .about-list li { padding: var(--space-3) 0 var(--space-3) 1.6rem; position: relative; border-top: 1px solid var(--line); line-height: 1.6; }
.about-values li:first-child, .about-list li:first-child { border-top: 0; padding-top: 0; }
.about-values li::before, .about-list li::before {
  content: ""; position: absolute; left: 0; top: calc(var(--space-3) + 0.8em - 4px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--harvest);
}
.about-values li:first-child::before, .about-list li:first-child::before { top: calc(0.8em - 4px); }
.about-values strong { color: var(--ink); margin-right: 0.35rem; }
.about-values strong::after { content: ":"; }
.about-cta { text-align: center; padding-top: var(--space-4); }
.about-cta p { font-size: var(--step-1); color: var(--ink-soft); }

/* Scroll reveal (retriggers when a card re-enters view, like the original page) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease, box-shadow .3s ease; }
.reveal.reveal-left { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-visible:hover { transform: translateY(-4px); }
.page-intro .reveal.is-visible:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; padding-right: 40px;
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--canopy); box-shadow: var(--focus-soft);
}
.field input:disabled, .field input[readonly] { background: var(--surface-2); color: var(--muted); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.error, .field-error { display: none; color: var(--danger); font-size: 0.85rem; }
.field.has-error .error, .field.has-error .field-error, .error.is-visible { display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-5); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-section { border: 0; padding: 0; margin: 0 0 var(--space-5); }
.form-section legend { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); padding: 0; margin-bottom: var(--space-4); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
}
.password-toggle:hover { color: var(--ink); }
.password-toggle svg { width: 20px; height: 20px; }

.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--canopy); flex: none; }

.alert {
  display: none; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  font-size: 0.95rem; margin-bottom: var(--space-4); border: 1px solid transparent;
}
.alert.is-visible { display: block; }
.alert-success { background: var(--canopy-tint); color: var(--ink); border-color: var(--success-line); }
.alert-error { background: var(--danger-tint); color: var(--danger-ink); border-color: var(--danger-tint); }
.alert-info { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }

/* ---------- Auth layout: same two-column format as Contact ----------
   Left: plain text on the page background. Right: the form in a card.
   Both columns stick, so the shorter one waits while the longer one scrolls. */
.auth {
  position: relative; min-height: 100vh; width: 100%; max-width: var(--content); margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start;
}
.auth.auth-wide { grid-template-columns: 0.75fr 1.25fr; }
.auth-tools { position: absolute; top: var(--space-4); right: var(--space-5); z-index: 20; display: flex; align-items: center; gap: var(--space-2); }
.auth-tools .nav-toggle, .auth-menu { display: none; }
.auth-menu {
  position: absolute; top: calc(100% + var(--space-2)); right: 0; width: min(280px, calc(100vw - 2rem));
  flex-direction: column; padding: var(--space-2) var(--space-5) var(--space-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop);
}
.auth-menu a:not(.btn) { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.auth-menu a:not(.btn):hover, .auth-menu a[aria-current="page"]:not(.btn) { color: var(--link); }
[data-theme="dark"] .auth-menu a[aria-current="page"]:not(.btn) { color: var(--harvest); }
.auth-menu .btn { margin-top: var(--space-4); }

/* Left: full screen height. Back link, then three bands split by hairlines
   (brand / message / credit); each block sits centred in its band. */
.auth-aside { position: sticky; top: 0; height: 100vh; color: var(--ink-soft); }
.auth-aside-inner { height: 100%; display: flex; flex-direction: column; padding: var(--space-6) 0 var(--space-5); }
.auth-back { color: var(--muted); text-decoration: none; font-size: 0.92rem; align-self: flex-start; margin-bottom: var(--space-5); transition: color .2s; }
.auth-back:hover { color: var(--link); }
.auth-band {
  border-top: 1px solid var(--line); padding: var(--space-6) 0;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-band-main { flex: 1; min-height: 0; }
.auth-band-foot { padding-bottom: 0; }
.auth-brand { display: inline-flex; align-items: center; gap: var(--space-4); text-decoration: none; color: var(--ink); }
.auth-brand:hover { color: var(--ink); }
.auth-brand img { width: 60px; height: 60px; flex: none; filter: drop-shadow(0 6px 16px rgba(8, 27, 41, .2)); }
.auth-brand .brand-name strong { font-size: 1.55rem; line-height: 1.1; }
.auth-brand .brand-name span { font-size: 0.98rem; color: var(--muted); margin-top: 2px; }
.auth-aside-body > * { max-width: 46ch; }
.auth-aside h2 { font-size: var(--step-4); margin-bottom: var(--space-4); letter-spacing: -0.025em; }
.auth-aside-body p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.7; margin: 0; }
.auth-credit { margin: 0; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.auth-credit-mobile { display: none; }
.credit-link { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1px dotted currentColor; transition: color .2s, border-color .2s; }
.credit-link:hover { color: var(--link); border-bottom-color: transparent; }
.site-footer .credit-link:hover { color: var(--link); text-decoration: none; }
[data-theme="dark"] .credit-link:hover { color: var(--harvest); }

/* Right: the form card, centred in the screen height; a long form scrolls while the left waits */
.auth-main {
  position: sticky; top: 0; min-width: 0; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; padding: 72px 0 var(--space-5);
}
.auth-card {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: var(--space-6) var(--space-6) var(--space-5);
}
.auth-card h1 { font-size: var(--step-3); margin-bottom: var(--space-2); }
.auth-card .lede { color: var(--muted); margin-bottom: var(--space-6); }
.auth-foot { margin: var(--space-6) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; line-height: 1.9; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin: calc(-1 * var(--space-2)) 0 var(--space-5); font-size: 0.92rem; }
.auth-mobile-brand { display: none; }

@media (max-height: 700px) { .auth-band { padding: var(--space-4) 0; } .auth-band-foot { padding-bottom: 0; } .auth-brand img { width: 52px; height: 52px; } .auth-aside h2 { font-size: var(--step-3); } }
/* Shorter screens: trim the card slightly so it ends just above the bottom of the screen */
@media (min-width: 901px) and (max-height: 780px) {
  .auth-main { padding: 68px 0 var(--space-4); }
  .auth-card { padding: 28px var(--space-6) var(--space-5); }
  .auth-card h1 { font-size: 1.95rem; }
  .auth-card .lede { margin-bottom: var(--space-5); }
  .auth-card .field { margin-bottom: 14px; }
  .auth-card .field input:not([type="checkbox"]):not([type="radio"]), .auth-card .field select { min-height: 44px; }
  .auth-foot { margin-top: var(--space-5); padding-top: var(--space-4); line-height: 1.8; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .auth-card:has(.field:nth-of-type(3)) { padding-top: var(--space-5); padding-bottom: var(--space-4); }
  .auth-card:has(.field:nth-of-type(3)) .lede { margin-bottom: var(--space-4); }
  .auth-card:has(.field:nth-of-type(3)) .field { margin-bottom: 10px; }
  .auth-card:has(.field:nth-of-type(3)) .auth-foot { margin-top: var(--space-4); padding-top: var(--space-3); }
}
@media (max-width: 900px) {
  .auth-tools { right: var(--space-4); }
  .auth-tools .nav-toggle { display: inline-flex; }
  .auth-menu.is-open { display: flex; }
  .auth, .auth.auth-wide { grid-template-columns: 1fr; padding: 0 var(--space-4); }
  .auth-aside { display: none; }
  .auth-main { position: static; min-height: 0; justify-content: flex-start; padding: var(--space-8) 0 var(--space-6); }
  .auth-credit-mobile { display: flex; align-items: center; text-align: center; margin-top: var(--space-5); }
  .auth-card { padding: var(--space-5); }
  .auth-mobile-brand { display: flex; margin-bottom: var(--space-5); }
}

/* ---------- Footer: faint blue in light mode, navy in dark mode ---------- */
.site-footer { background: var(--surface-2); color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: var(--space-8); }
.site-footer .wrap { padding-top: var(--space-7); padding-bottom: var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.site-footer .brand, .site-footer .brand:hover { color: var(--ink); }
.site-footer .brand-name span { color: var(--muted); display: block; }
.site-footer h3 { color: var(--ink); font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line-strong); margin-top: var(--space-6); padding-top: var(--space-4); font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
[data-theme="dark"] .site-footer { background: var(--canopy-deep); color: #b5cad9; }
[data-theme="dark"] .site-footer .brand, [data-theme="dark"] .site-footer h3 { color: #fff; }
[data-theme="dark"] .site-footer .brand-name span { color: #9fb9cc; }
[data-theme="dark"] .site-footer a { color: #d6e5ef; }
[data-theme="dark"] .site-footer a:hover { color: #fff; }
[data-theme="dark"] .footer-base { border-top-color: rgba(255,255,255,.12); color: #b5cad9; }

/* ---------- States ---------- */
.empty { color: var(--muted); padding: var(--space-5) 0; }
.skeleton-line {
  height: 14px; border-radius: 4px; margin: 10px 0;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .hills, .theme-toggle { display: none !important; }
  body { background: #fff; }
}

/* ---------- Home: what we do ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.work-feature {
  position: relative; overflow: hidden; color: #c9dbe7;
  background: radial-gradient(120% 90% at 100% 0%, rgba(0, 188, 212, .28), transparent 55%), var(--feature);
  border: 1px solid transparent;
  border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; align-items: flex-start;
}
[data-theme="dark"] .work-feature { border-color: var(--line-strong); }
.work-feature::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  background: url("/photos/ocda-seal-192.webp") center / contain no-repeat; opacity: .12;
}
.work-feature h2 { color: #fff; font-size: var(--step-3); margin-bottom: var(--space-3); }
.work-feature p { color: #b5cad9; margin-bottom: var(--space-5); }
.work-feature .btn { margin-top: auto; position: relative; z-index: 1; }
.work-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .7s ease;
}
.work-tile::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--harvest);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.work-tile:hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.work-tile:hover::before { transform: scaleX(1); }
.work-icon {
  display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--feature); color: var(--harvest); margin-bottom: var(--space-4);
}
[data-theme="dark"] .work-icon { box-shadow: inset 0 0 0 1px var(--line-strong); }
.work-icon svg { width: 24px; height: 24px; }
.work-tile h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.work-tile p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } .work-feature { grid-column: 1 / -1; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Home: notices ---------- */
.section.band { background: var(--surface); padding: var(--space-8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.band + .section { padding-top: var(--space-8); }
.notice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.notice-card {
  display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.notice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); color: inherit; }
.notice-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.date-block {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 12px; background: var(--feature); color: #fff; line-height: 1;
}
.date-block b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.date-block span { font-size: 0.72rem; color: var(--harvest); margin-top: 4px; font-weight: 600; }
.notice-card h3 { font-size: 1.08rem; margin: 0; line-height: 1.35; }
.notice-card p {
  margin: 0; color: var(--ink-soft); font-size: 0.93rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.notice-card .more { margin-top: auto; padding-top: var(--space-2); color: var(--link); font-weight: 600; font-size: 0.9rem; }
.notice-cards .empty { grid-column: 1 / -1; }
@media (max-width: 960px) { .notice-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .notice-cards { grid-template-columns: 1fr; } }

/* ---------- Home: dues banner ---------- */
.dues-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5);
  align-items: center; padding: var(--space-6) var(--space-7); border-radius: var(--radius-lg); color: #c9dbe7;
  background: radial-gradient(90% 140% at 0% 100%, rgba(0, 188, 212, .25), transparent 60%), linear-gradient(120deg, var(--navy), var(--navy-2));
  border: 1px solid transparent;
}
[data-theme="dark"] .dues-banner {
  background: radial-gradient(90% 140% at 0% 100%, rgba(0, 188, 212, .2), transparent 60%), linear-gradient(120deg, #0f2a3f, #163a54);
  border-color: var(--line-strong);
}
.dues-icon {
  width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 188, 212, .15); color: var(--harvest); border: 1px solid rgba(0, 188, 212, .35);
}
.dues-icon svg { width: 30px; height: 30px; }
.dues-copy h2 { color: #fff; font-size: var(--step-2); margin-bottom: var(--space-2); }
.dues-copy p { margin: 0; color: #b5cad9; max-width: 58ch; }
.dues-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 900px) {
  .dues-banner { grid-template-columns: 1fr; padding: var(--space-6); }
}

/* ---------- Scroll reveal timing (shared) ----------
   --rd staggers siblings; the delay only applies to the entrance, not to hover. */
.reveal,
.work-tile.reveal,
.notice-card.reveal,
.about-card.reveal,
.work-feature.reveal,
.dues-banner.reveal {
  transition: opacity .75s ease var(--rd, 0s), transform .75s cubic-bezier(.2, .7, .2, 1) var(--rd, 0s),
              box-shadow .25s ease, border-color .25s ease;
}
.reveal.is-visible:hover { transition-delay: 0s; }
.work-tile.reveal.is-visible:hover, .notice-card.reveal.is-visible:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-left, .reveal.reveal-right { opacity: 1; transform: none; transition: none; }
}
