/* Saba Cooperative — modern calm UI (2026 refresh) */
:root {
  --bg-page: #f7f6f3;
  --bg-white: #ffffff;
  --bg-subtle: #efede8;
  --bg-band: #eceae4;
  --text: #2c2c2c;
  --text-muted: #5c5c5c;
  --heading: #1e3a2f;
  --accent: #2d5a45;
  --accent-hover: #234a38;
  --accent-soft: #e8f0eb;
  --border: #e0ddd6;
  --shadow: 0 2px 12px rgba(30, 58, 47, 0.08);
  --shadow-lg: 0 8px 30px rgba(30, 58, 47, 0.12);
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.06);
  --radius-card: 12px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --font-body: "Open Sans", Segoe UI, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-hero: "Fraunces", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

.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;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-btn);
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.prose {
  max-width: 65ch;
}

/* ——— Header ——— */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.75rem 1rem;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

@media (min-width: 900px) {
  .header-bar {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.header-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-title {
  color: var(--heading);
  text-decoration: none;
}

.site-title:hover {
  color: var(--accent);
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  max-width: 36ch;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--heading);
}

.nav-toggle__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.25rem;
}

.nav-toggle__lines span {
  display: block;
  height: 2px;
  background: var(--heading);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle__lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle__lines span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle__lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    background: rgba(247, 246, 243, 0.98);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-drop {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
  }

  .nav-drop__btn {
    width: 100%;
    text-align: left;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  .nav-drop__panel {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0 0.75rem 1rem;
    border-left: 3px solid var(--accent-soft);
  }

  .nav-drop__btn[aria-expanded="true"] + .nav-drop__panel {
    display: flex;
  }
}

@media (min-width: 900px) {
  .site-nav {
    grid-column: auto;
    justify-self: end;
    justify-content: flex-end;
    position: static;
    transform: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    flex-direction: row;
    gap: 0.15rem 0.25rem;
  }

  .site-nav__link {
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
  }

  .site-nav__link:hover {
    background: var(--accent-soft);
    color: var(--accent-hover);
  }

  .nav-drop {
    position: relative;
  }

  .nav-drop__btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-drop__btn::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
  }

  .nav-drop__btn:hover,
  .nav-drop__btn:focus-visible {
    background: var(--accent-soft);
    color: var(--accent-hover);
  }

  .nav-drop__panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 0.35rem;
    min-width: 240px;
    padding: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
  }

  .nav-drop__panel a {
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
  }

  .nav-drop__panel a:hover {
    background: var(--accent-soft);
    color: var(--accent-hover);
  }

  .nav-drop:hover .nav-drop__panel,
  .nav-drop:focus-within .nav-drop__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: #1a2e24;
}

.hero-media {
  position: relative;
  max-height: min(56vh, 520px);
  overflow: hidden;
}

.hero-img,
.hero-media video {
  width: 100%;
  height: min(56vh, 520px);
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 46, 36, 0.45) 0%,
    rgba(26, 46, 36, 0.72) 100%
  );
  pointer-events: none;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  z-index: 2;
}

.hero-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-hero);
  font-size: clamp(1.95rem, 5.5vw, 3rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 0.4;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  font-size: clamp(1.02rem, 2.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 400;
  max-width: 38rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  line-height: 1.5;
}

main .container {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.section-band {
  padding: 2.75rem 0;
}

.section-band--alt {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 1.25rem;
  text-align: center;
  line-height: 1.25;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.65rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}

.card--intro {
  border-left: 4px solid var(--accent);
}

.card-kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.h3-sub {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  margin: 1.5rem 0 0.5rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading);
  margin: 1.25rem 0 0.5rem;
}

.card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0 0.4rem;
  text-transform: none;
}

.card p,
.card li {
  color: var(--text);
}

.card ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.card a {
  color: var(--accent);
  font-weight: 600;
}

.card a:hover {
  color: var(--accent-hover);
}

.link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.link-pills--center {
  justify-content: center;
}

.link-pills li {
  margin: 0;
}

.link-pills a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid transparent;
}

.link-pills a:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.section-lead a {
  color: var(--accent);
  font-weight: 600;
}

.tiktok-panel {
  margin: 1.25rem auto 0;
  max-width: 780px;
  padding: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.tiktok-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

/* Accordions */
.accordion {
  margin: 0.65rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.accordion summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.accordion[open] summary::after {
  transform: rotate(225deg);
}

.accordion__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.accordion__body p:first-child {
  margin-top: 0.75rem;
}

.join-cta {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.handbook-article a {
  color: var(--accent);
  font-weight: 600;
}

.handbook-article a:hover {
  color: var(--accent-hover);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.handbook-article h1 {
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 0.65rem;
}

.handbook-article h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--heading);
  margin: 1.75rem 0 0.65rem;
}

.handbook-article h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
}

.handbook-article p,
.handbook-article li {
  color: var(--text);
}

.handbook-main {
  padding-top: 0.75rem;
  padding-bottom: 2.5rem;
}

.handbook-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin: 1rem 0;
}

.handbook-article strong {
  color: var(--heading);
}

.button {
  display: inline-block;
  margin: 0.35rem 0.65rem 0.35rem 0;
  padding: 0.7rem 1.35rem;
  border: none;
  border-radius: var(--radius-btn);
  color: #fff !important;
  background: var(--accent);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  box-shadow: 0 4px 14px rgba(45, 90, 69, 0.28);
  transition: background 0.15s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background: #3d5c80;
  box-shadow: 0 4px 14px rgba(61, 92, 128, 0.2);
}

.button-secondary:hover {
  background: #2f4a66;
}

@media (prefers-reduced-motion: reduce) {
  .button:hover {
    transform: none;
  }
}

.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 0;
  padding: 2rem 0 2.25rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-col--full {
  grid-column: 1 / -1;
  margin: 0;
}

.footer-copy {
  margin: 0 0 0.35rem;
}

.footer-blog {
  margin: 0;
  font-size: 1rem;
}

.footer-blog a {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  color: var(--accent);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-admin {
  margin: 0;
  opacity: 0.75;
  font-size: 0.82rem;
}

.small {
  font-size: 0.88rem;
}

.handbook-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 1rem 0;
}

.handbook-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .hero-img,
  .hero-media video {
    height: 40vh;
    min-height: 220px;
  }
}

/* Handbook / inner pages (card shell) */
.handbook-shell {
  padding: 0.35rem 0 0;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.breadcrumb__current {
  color: var(--heading);
  font-weight: 600;
}

.handbook-page-card {
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 1.75rem 1.85rem;
}

.handbook-page-card.handbook-article h1 {
  margin-top: 0;
}
