/*
 * foundation_os — Mobile-first stylesheet
 */

/* ─── Tokens ─── */
:root {
  --cream:       #faf8f5;
  --brown:       #1c1917;
  --brown-light: #5c3d2e;
  --orange:      #f97316;
  --orange-dark: #c2410c;
  --border:      #e5d8c0;
  --text:        #1c1917;
  --text-muted:  #7c5c3e;
  --radius:      8px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── Base ─── */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
}

/* ─── Layout ─── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}
@media (min-width: 640px) {
  main { padding: 2rem 1.5rem; }
}

/* ─── Nav ─── */
.pknf-nav {
  background: #2d1810;
  color: #fff;
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-logo {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Hamburger toggle — mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Collapsible panel */
.nav-panel {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #1e0e07;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-panel.open { display: flex; }

.nav-links-mobile {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}
.nav-links-mobile a {
  padding: 0.65rem 1.25rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links-mobile a:hover { color: #fff; background: rgba(255,255,255,0.05); }

.nav-auth-mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-username { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; }
.nav-link { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.nav-link:hover { color: #fff; }
.nav-join {
  background: var(--orange);
  color: #fff !important;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-join:hover { background: var(--orange-dark); }
.nav-admin { color: #fbbf24 !important; font-size: 0.9rem; }

/* Desktop nav — hide hamburger, show inline */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; } /* always hidden on desktop */

  .nav-inner {
    gap: 0;
  }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
    flex: 1;
  }
  .nav-desktop .nav-link {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
  }
  .nav-desktop .nav-link:hover { color: #fff; }
  .nav-auth-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
  }
}
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .nav-auth-desktop { display: none; }
}

/* ─── Flash ─── */
.flash {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}
.flash.notice { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.flash.alert  { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* ─── Typography ─── */
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brown); border: 2px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.85rem; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

/* Hero aliases (used in home view) */
.btn-primary-lg {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin: 0.25rem;
}
.btn-secondary-lg {
  display: inline-block;
  border: 2px solid var(--brown);
  color: var(--brown);
  padding: 0.7rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin: 0.25rem;
}
/* Keep old aliases too */
.btn-primary-hero { display: inline-block; background: var(--orange); color: #fff; padding: 0.75rem 1.75rem; border-radius: 6px; font-weight: 600; text-decoration: none; margin: 0.25rem; }
.btn-secondary { display: inline-block; border: 2px solid var(--brown); color: var(--brown); padding: 0.7rem 1.75rem; border-radius: 6px; font-weight: 600; text-decoration: none; margin: 0.25rem; }

/* ─── Cards ─── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .card { padding: 1.5rem; }
}

/* ─── Responsive grids ─── */
/* 2-col: stacks on mobile */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Main + sidebar: stacks on mobile */
.grid-main-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-main-sidebar { grid-template-columns: 1fr 220px; }
}

/* Auto-fill card grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ─── Page header ─── */
.page-header {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.page-header h1 { font-size: 1.6rem; color: var(--brown); }
@media (min-width: 640px) {
  .page-header { padding: 2rem 0 1rem; }
  .page-header h1 { font-size: 2rem; }
}

/* ─── Hero (legacy) ─── */
.home-hero {
  text-align: center;
  padding: 3rem 1rem;
}
.home-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.75rem;
}
.home-hero p {
  font-size: 1.1rem;
  color: #78350f;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .home-hero { padding: 4rem 1rem; }
  .home-hero h1 { font-size: 2.75rem; }
  .home-hero p { font-size: 1.25rem; }
}

/* ─── Forms ─── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--brown); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ─── Badges ─── */
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray  { background: #f1f5f9; color: #475569; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* ─── Tags ─── */
.tag-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  background: var(--border);
  color: var(--brown-light);
  font-size: 0.8rem;
  text-decoration: none;
  margin: 0.1rem;
}
.tag-pill:hover { background: var(--orange); color: #fff; }

/* ─── Misc ─── */
.vote-score { font-weight: 700; font-size: 1.1rem; color: var(--brown); }
.accepted-badge { background: #dcfce7; color: #166534; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.member-gate { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; }
.member-gate h2 { color: var(--brown); margin-bottom: 0.5rem; }
.member-gate p { color: var(--text-muted); }
.flash-notice { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-alert  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;  padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }

/* Responsive table wrapper */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { font-weight: 600; color: var(--brown); background: var(--cream); }

/* Search row */
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}
.search-row input { flex: 1; min-width: 160px; }

/* ─── Auth pages ─── */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  min-height: 60vh;
}

.auth-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  color: var(--brown);
  margin: .5rem 0 .25rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: .9rem;
}

.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.auth-links a {
  color: var(--orange);
  text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

/* Pagy pagination — nav.pagy.nav */
nav.pagy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .3rem;
  margin: 1.75rem 0 .5rem;
  flex-wrap: wrap;
}
nav.pagy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .6rem;
  border-radius: .4rem;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--brown);
  background: #fff;
  border: 1px solid #d4c4b0;
  transition: background .15s, color .15s, border-color .15s;
}
nav.pagy a:hover {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}
nav.pagy a.current {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  font-weight: 700;
  pointer-events: none;
}
nav.pagy a.gap {
  border: none;
  background: none;
  color: var(--text-muted);
  pointer-events: none;
  min-width: 1rem;
}
nav.pagy a[aria-disabled="true"] {
  opacity: .35;
  pointer-events: none;
  cursor: default;
}

/* ── Q&A Form ─────────────────────────────────────────────────── */
.qa-form-section {
  background: #fff;
  border: 1px solid #e5ddd3;
  border-radius: .625rem;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}
.qa-form-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: .6rem;
}
.qa-form-hint {
  display: block;
  font-weight: 400;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .1rem;
}
.qa-form-input {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid #d4c4b0;
  border-radius: .4rem;
  font-size: 1rem;
  color: var(--brown);
  background: #faf8f5;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.qa-form-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
  background: #fff;
}

/* ── Trix editor ───────────────────────────────────────────────── */
.trix-wrapper trix-editor {
  min-height: 160px;
  border: 1px solid #d4c4b0;
  border-top: none;
  border-radius: 0 0 .4rem .4rem;
  padding: .75rem 1rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--brown);
  background: #faf8f5;
  outline: none;
}
.trix-wrapper trix-editor:focus {
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.trix-wrapper trix-toolbar {
  border: 1px solid #d4c4b0;
  border-radius: .4rem .4rem 0 0;
  background: #f5f0ea;
  padding: .4rem .5rem;
  overflow-x: auto;
  display: flex;
  flex-wrap: wrap;
}
.trix-wrapper trix-toolbar .trix-button-group {
  border: 1px solid #d4c4b0;
  border-radius: .3rem;
  margin-right: .3rem;
  margin-bottom: .3rem;
}
.trix-wrapper trix-toolbar .trix-button {
  border: none;
  background: none;
  color: var(--brown);
  padding: .25rem .45rem;
  font-size: .8rem;
  cursor: pointer;
  border-radius: .2rem;
}
.trix-wrapper trix-toolbar .trix-button:hover {
  background: var(--brown);
  color: #fff;
}
.trix-wrapper trix-toolbar .trix-button.trix-active {
  background: var(--orange);
  color: #fff;
}
/* Hide file attachment button — not needed for Q&A */
.trix-wrapper trix-toolbar .trix-button-group--file-tools { display: none; }

/* ── Tag input ─────────────────────────────────────────────────── */
.tag-input-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  min-height: 2.5rem;
  padding: .4rem .65rem;
  border: 1px solid #d4c4b0;
  border-radius: .4rem;
  background: #faf8f5;
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}
.tag-input-wrapper:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
  background: #fff;
}
.tag-chip-selected {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--brown);
  color: #fff;
  border-radius: 999px;
  padding: .2rem .6rem .2rem .7rem;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}
.tag-chip-selected button {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: color .1s;
}
.tag-chip-selected button:hover { color: #fff; }
.tag-text-input {
  flex: 1;
  min-width: 120px;
  border: none;
  background: none;
  outline: none;
  font-size: .9rem;
  color: var(--brown);
  padding: .15rem 0;
}
.tag-text-input::placeholder { color: #b0a090; }
.tag-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #d4c4b0;
  border-radius: .4rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}
.tag-dropdown-item {
  padding: .55rem .85rem;
  font-size: .88rem;
  color: var(--brown);
  cursor: pointer;
  transition: background .1s;
}
.tag-dropdown-item:hover { background: #faf0e8; }
.tag-dropdown-create {
  color: var(--orange);
  font-weight: 600;
  border-top: 1px solid #ede8e0;
}
kbd {
  background: #f0ebe4;
  border: 1px solid #d4c4b0;
  border-radius: .25rem;
  padding: .05rem .35rem;
  font-size: .78rem;
  font-family: inherit;
}

/* ── Vote column ────────────────────────────────────────────────── */
.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}
.vote-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: .3rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 28px;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.vote-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ── Accepted answer card ───────────────────────────────────────── */
.answer-card { border-left: 3px solid transparent; }
.answer-accepted { border-left-color: #16a34a !important; }

/* ── Trix content (rendered rich text) ─────────────────────────── */
.trix-content { line-height: 1.75; color: var(--brown); font-size: 1.02rem; }
.trix-content h1 { font-size: 1.6rem; font-weight: 800; margin: 2rem 0 .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); letter-spacing: -.02em; }
.trix-content h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .5rem; padding-bottom: .35rem; border-bottom: 1px solid var(--border); color: var(--brown); letter-spacing: -.015em; }
.trix-content h2:first-child { margin-top: 0; }
.trix-content h3 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .35rem; color: var(--orange-dark); }
.trix-content h4 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .3rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.trix-content p { margin: 0 0 .9rem; }
.trix-content p:last-child { margin-bottom: 0; }
.trix-content ul, .trix-content ol { padding-left: 1.5rem; margin: .5rem 0 .9rem; }
.trix-content li { margin-bottom: .3rem; }
.trix-content blockquote {
  border-left: 3px solid var(--orange);
  margin: .75rem 0;
  padding: .25rem .75rem;
  color: var(--text-muted);
  font-style: italic;
}
.trix-content pre {
  background: #f5f0ea;
  border: 1px solid #e5ddd3;
  border-radius: .35rem;
  padding: .65rem .85rem;
  font-size: .85rem;
  overflow-x: auto;
}

/* ── Research record type badges ───────────────────────────────── */
.record-type-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: #f0ebe4;
  color: var(--brown);
}
.record-type-observation_record  { background: #dbeafe; color: #1e40af; }
.record-type-harvest_record      { background: #dcfce7; color: #15803d; }
.record-type-amendment_record    { background: #fef9c3; color: #854d0e; }
.record-type-sowing_record       { background: #f0fdf4; color: #166534; }
.record-type-water_record        { background: #e0f2fe; color: #0369a1; }
.record-type-maintenance_record  { background: #f3e8ff; color: #7e22ce; }
.record-type-weekly_report       { background: #fff7ed; color: #c2410c; }

/* ── Blog cards ────────────────────────────────────────────────── */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.blog-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.blog-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream);
}
.blog-card-body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-title {
  font-size: 1.1rem;
  color: var(--brown);
  margin: 0 0 .25rem;
  line-height: 1.3;
}
.blog-card-date {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0 0 .5rem;
}
.blog-card-excerpt {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* ── Section Sub-Navigation ────────────────────────────────────── */
.section-subnav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.subnav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.subnav-link {
  padding: .65rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.subnav-link:hover {
  color: var(--text);
}
.subnav-active {
  color: var(--orange-dark);
  border-bottom-color: var(--orange-dark);
}
.subnav-search {
  flex-shrink: 0;
}
.subnav-search-input {
  width: 180px;
  padding: .35rem .65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .85rem;
  background: var(--cream);
}
@media (max-width: 639px) {
  .subnav-inner { padding: 0 .75rem; }
  .subnav-search-input { width: 140px; }
}

/* ── Subnav Dropdowns ─────────────────────────────────────────── */
.subnav-item-with-children {
  position: relative;
  display: flex;
  align-items: center;
}
.subnav-chevron {
  font-size: .6em;
  margin-left: .15rem;
  opacity: .45;
}
.subnav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: .35rem 0;
  z-index: 100;
}
.subnav-item-with-children:hover .subnav-dropdown,
.subnav-dropdown.is-open {
  display: block;
}
.subnav-dropdown-link {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.subnav-dropdown-link:hover {
  background: var(--cream, #faf8f5);
  color: var(--orange-dark);
}
.subnav-dropdown-active {
  color: var(--orange-dark);
  font-weight: 600;
}
@media (max-width: 768px) {
  .subnav-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    min-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ── Homepage Hero ─────────────────────────────────────────────── */
/* ── Hero — split layout with image gallery ─── */
.hero {
  padding: 2.5rem 1rem 2rem;
}
.hero-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.hero-text {
  text-align: center;
}
.hero-logo-mark {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
}
.hero-headline {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-stat-dot {
  color: var(--border);
}

/* Hero gallery — hidden on mobile, 2x2 grid on desktop */
.hero-gallery {
  display: none;
}
.hero-gallery-img {
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

@media (min-width: 640px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-split {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .hero-text {
    flex: 1 1 55%;
    text-align: left;
  }
  .hero-text .hero-sub {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-text .hero-ctas {
    justify-content: flex-start;
  }
  .hero-text .hero-stats {
    justify-content: flex-start;
  }
  .hero-headline { font-size: 2.75rem; }
  .hero-sub { font-size: 1.15rem; }
  .hero-logo-mark { height: 64px; }
  .hero-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
    flex: 0 0 40%;
    max-width: 440px;
  }
}
@media (min-width: 900px) {
  .hero-headline { font-size: 3rem; }
  .hero-sub { font-size: 1.2rem; }
}

/* ── Meetings Section ────────────────────────────────────────── */

/* Shared intro card — cream card at top of every meeting subpage */
.meeting-intro {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.meeting-intro h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brown);
  margin: 0 0 .25rem;
  letter-spacing: -.01em;
}
.meeting-intro .intro-subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0 0 1rem;
}
.meeting-intro .intro-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.meeting-intro .intro-text {
  flex: 1;
  min-width: 260px;
}
.meeting-intro .intro-text p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: .95rem;
  margin: 0 0 1rem;
}
.meeting-intro .intro-text p:last-child { margin-bottom: 0; }
.meeting-intro .intro-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
}

/* Shared next-meeting callout — orange-bordered card */
.next-meeting-card {
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.next-meeting-card-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.next-meeting-card-info {
  flex: 1;
  min-width: 180px;
}
.next-meeting-card-actions {
  flex: 0 0 auto;
  text-align: right;
}

/* Meetings index — type cards */
.meetings-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto 3rem;
}
.meeting-type-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
  transition: border-color .15s;
}
.meeting-type-card:hover { border-color: var(--orange); }
.meeting-type-card .card-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
}
.meeting-type-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .5rem;
}
.meeting-type-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.meeting-type-card .card-schedule {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
  background: #fef3e2;
  padding: .3rem .75rem;
  border-radius: 20px;
  margin-bottom: .65rem;
}

.meetings-recent {
  max-width: 820px;
  margin: 0 auto 3rem;
}
.meetings-recent h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1rem;
  text-align: center;
}

/* Next-meeting eyebrow/date (used inside next-meeting-card and standalone) */
.next-meeting-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: .25rem;
}
.next-meeting-date {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
}
.next-meeting-detail {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .2rem;
}
.next-meeting-countdown {
  font-size: .85rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: .5rem;
}

/* Shared pill filters */
.meetings-year-filters {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.meetings-year-pill {
  display: inline-block;
  padding: .3rem .7rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: all .15s;
}
.meetings-year-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.meetings-year-pill.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* YouTube thumbnail play overlay */
.meeting-card-thumb { position: relative; }
.meeting-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
  transition: opacity .15s;
}
.meeting-recording-card:hover .meeting-play-overlay { opacity: 1; }

/* Next-meeting eyebrow */
.next-meeting-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: .5rem;
}
.next-meeting-date {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.2;
}
.next-meeting-countdown {
  font-size: .85rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: .5rem;
}

/* Chat info — step cards */
.chat-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.chat-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.chat-step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: .5rem;
}
.chat-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 .4rem;
}
.chat-step p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

/* Chat channel table */
.chat-channels { width: 100%; border-collapse: collapse; }
.chat-channels td { padding: .6rem .5rem; }
.chat-channels tr { border-bottom: 1px solid var(--border); }
.chat-channels tr:last-child { border-bottom: none; }
.chat-channel-name {
  font-weight: 600;
  white-space: nowrap;
  color: var(--brown);
}
.chat-channel-desc {
  color: var(--text-muted);
  font-size: .9rem;
}

/* Shared check-in page */
.checkin-wrap {
  max-width: 420px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}
.checkin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.checkin-icon { font-size: 3rem; margin-bottom: 1rem; }
.checkin-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.checkin-detail {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.checkin-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--orange);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .15s;
}
.checkin-btn:hover { opacity: .9; }
.checkin-success {
  background: #dcfce7;
  color: #15803d;
  border-radius: var(--radius);
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
}
.checkin-already {
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: var(--radius);
  padding: 1rem;
  font-weight: 600;
  font-size: .95rem;
}
.checkin-none {
  background: var(--cream);
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: .95rem;
}
.checkin-user {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.checkin-alert {
  margin-top: 1rem;
  color: #b91c1c;
  font-size: .9rem;
}

/* ── Photo Band ───────────────────────────────────────────────── */
.photo-band {
  margin: 0 -1rem 2rem;
  overflow: hidden;
}
.photo-band-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem;
  scrollbar-width: none;
}
.photo-band-track::-webkit-scrollbar {
  display: none;
}
.photo-band-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
}
.photo-band-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--border);
}
@media (min-width: 640px) {
  .photo-band {
    margin: 0 -1.5rem 3rem;
    padding: 0;
  }
  .photo-band-track {
    padding: 0 1.5rem;
  }
  .photo-band-item {
    flex: 0 0 280px;
  }
  .photo-band-item img {
    height: 200px;
  }
}

/* ── Homepage Sections ─────────────────────────────────────────── */
.home-section {
  margin-bottom: 3rem;
}
.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1.25rem;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.section-header-row .section-heading {
  margin-bottom: 0;
}
.section-link {
  font-size: .9rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ── Solutions Grid ────────────────────────────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.solution-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: border-color .15s, box-shadow .15s;
}
.solution-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.solution-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 .3rem;
}
.solution-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ── Promo Cards ───────────────────────────────────────────────── */
.promo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .15s, box-shadow .15s;
}
.promo-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.promo-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 .5rem;
}
.promo-card-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.promo-card-link {
  font-size: .9rem;
  color: var(--orange);
  font-weight: 600;
}

/* ── Home Join Section ─────────────────────────────────────────── */
.home-join {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
}
.home-join h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .5rem;
}
.home-join > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.home-join-tiers {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.home-tier {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
}
.home-tier small {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Membership Perks ── */
.home-join-perks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  text-align: left;
}
.home-perk {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
}
.home-perk-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}
.home-perk strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brown);
}
.home-perk span {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Panoramic Divider ── */
.home-panorama {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 2rem 0 3rem;
}
.home-panorama img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.home-panorama-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  font-size: .95rem;
  font-style: italic;
  text-align: center;
}
@media (min-width: 640px) {
  .home-panorama img { height: 360px; }
}

/* ── Gatherings Tabs ── */
.gatherings-tabs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gatherings-tab-input {
  display: none;
}
.gatherings-tab-label {
  display: inline-block;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.gatherings-tab-label:hover {
  color: var(--brown);
}
.gatherings-tab-input:checked + .gatherings-tab-label {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.gatherings-panel {
  display: none;
  padding: 1.5rem 1.5rem 2rem;
}
/* CSS-only tab switching: nth-of-type panel selection */
.gatherings-tab-input:nth-of-type(1):checked ~ .gatherings-panel:nth-of-type(1) { display: block; }
.gatherings-tab-input:nth-of-type(2):checked ~ .gatherings-panel:nth-of-type(2) { display: block; }
.gatherings-tab-input:nth-of-type(3):checked ~ .gatherings-panel:nth-of-type(3) { display: block; }
.gatherings-tab-input:nth-of-type(4):checked ~ .gatherings-panel:nth-of-type(4) { display: block; }

/* ── Learning Never Stops (dark atmosphere) ── */
.home-atmosphere {
  background: #1c1917;
  margin: 2rem 0;
  overflow: hidden;
}
.home-atmosphere-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.home-atmosphere-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.home-atmosphere-text {
  padding: 2rem 1.5rem;
}
.home-atmosphere-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #faf8f5;
  margin: 0 0 1rem;
}
.home-atmosphere-text p {
  font-size: 1rem;
  color: #a8a29e;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}
@media (min-width: 640px) {
  .home-atmosphere-inner {
    grid-template-columns: 1fr 1fr;
  }
  .home-atmosphere-img img {
    height: 100%;
    min-height: 320px;
  }
  .home-atmosphere-text {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ── Membership Landing ────────────────────────────────────────── */
.membership-landing {
  max-width: 720px;
  margin: 0 auto;
}
.membership-hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}
.membership-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.membership-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .membership-hero h1 { font-size: 2.5rem; }
}
.membership-benefits {
  margin-bottom: 2.5rem;
}
.membership-benefits h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1rem;
  text-align: center;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.benefit-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .5rem;
}
.benefit-item h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 .3rem;
}
.benefit-item p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.membership-pricing {
  text-align: center;
  margin-bottom: 2.5rem;
}
.membership-pricing h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .5rem;
}
.pricing-subtitle {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.tier-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  min-width: 140px;
  flex: 1;
  max-width: 180px;
}
.tier-card-featured {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(249,115,22,.1);
}
.tier-card-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1;
}
.tier-card-period {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.tier-card-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--orange-dark);
}
.membership-cta {
  margin-bottom: 1rem;
}
.membership-signin {
  font-size: .9rem;
  color: var(--text-muted);
}
.membership-faq {
  text-align: center;
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.membership-faq h2 {
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: .35rem;
}


/* ─── Programs Page ─── */
.prog-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}
.prog-card:hover { border-color: #f97316; }
.prog-card img {
    width: 220px;
    min-height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}
.prog-card-body {
    padding: 20px 24px 20px 0;
    flex: 1;
}
.prog-card-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 2px;
    letter-spacing: -0.2px;
}
.prog-card-body .prog-tagline {
    font-size: 14px;
    font-weight: 500;
    color: #c2410c;
    margin: 0 0 10px;
}
.prog-card-body p {
    font-size: 14px;
    color: #57534e;
    margin: 0 0 12px;
    line-height: 1.6;
}
.prog-card-body a.prog-link {
    font-size: 14px;
    font-weight: 600;
    color: #c2410c;
    text-decoration: none;
}
.prog-card-body a.prog-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .prog-card { flex-direction: column; }
    .prog-card img { width: 100%; height: 180px; }
    .prog-card-body { padding: 16px 20px 20px; }
}

/* ─── Contact Page ─── */
.pknf-contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 2.5rem;
}
.pknf-contact-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 2.5rem;
}
@media (max-width: 600px) {
    .pknf-contact-cards { grid-template-columns: 1fr; }
    .pknf-contact-secondary { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ─── Committee table (Get Involved page) ─── */
.pknf-committee-table {
    width: 100%;
    font-size: .9rem;
    margin-bottom: 1.25rem;
}
.pknf-committee-table .pct-header,
.pknf-committee-table .pct-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: .5rem;
    padding: .6rem .75rem;
    align-items: start;
}
.pknf-committee-table .pct-header {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.pknf-committee-table .pct-row {
    border-bottom: 1px solid var(--border);
    color: var(--brown);
    line-height: 1.5;
}
.pknf-committee-table .pct-row:last-child { border-bottom: none; }
.pknf-committee-table a { color: var(--orange); font-weight: 600; text-decoration: none; }
.pknf-committee-table a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .pknf-committee-table .pct-header { display: none; }
    .pknf-committee-table .pct-row { grid-template-columns: 1fr; gap: .15rem; padding: .75rem; }
    .pknf-committee-table .pct-row span:nth-child(2) { color: var(--text-muted); font-size: .85rem; }
    .pknf-committee-table .pct-row span:nth-child(3) { display: none; }
}

/* ─── Start Here page ─── */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.solution-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem 1.25rem;
}
.solution-item span { font-size: 1.4rem; display: block; margin-bottom: .4rem; }
.solution-item strong { display: block; font-size: .95rem; font-weight: 700; color: var(--brown); margin-bottom: .4rem; }
.solution-item p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

.start-here-ctas {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.start-here-cta-primary {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: .75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.start-here-cta-primary:hover { background: #ea6c00; }
.start-here-cta-secondary {
    display: inline-block;
    background: transparent;
    color: var(--brown);
    font-weight: 600;
    font-size: .95rem;
    padding: .75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1.5px solid var(--border);
    white-space: nowrap;
}
.start-here-cta-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ─── Footer ─── */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,.75);
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.footer-dot {
  color: rgba(255,255,255,.2);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
