* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6b1f2a;
  --primary-dark: #4d1520;
  --accent: #c4973a;
  --accent-light: #d4a94a;
  --bg: #f4f4f4;
  --card-bg: #ffffff;
  --text: #222222;
  --text-light: #666666;
  --border: #dddddd;
  --nav-height: 52px;
}

html {
  scroll-behavior: smooth;
}

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

/* Offset anchor targets so sticky nav doesn't cover them */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ─── Nav ─────────────────────────────────────────────── */
nav {
  background: var(--primary-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
  height: var(--nav-height);
}

nav .nav-inner {
  max-width: 960px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
}

nav .brand {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

nav .brand:hover {
  color: var(--accent);
}

nav .nav-links {
  display: flex;
  align-items: stretch;
  flex-shrink: 1;
  overflow: hidden;
}

nav .nav-links > a {
  color: #e0c8a0;
  text-decoration: none;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

nav .nav-links > a:hover,
nav .nav-links > a.active {
  color: #ffffff;
  background: var(--primary);
}

/* ─── Dropdown ───────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #e0c8a0;
  cursor: pointer;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  height: 100%;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active,
.nav-dropdown[data-open] .nav-dropdown-trigger {
  color: #ffffff;
  background: var(--primary);
}

.nav-dropdown-arrow {
  font-size: 0.55rem;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown[data-open] .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: var(--primary-dark);
  border-top: 2px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 200;
  flex-direction: column;
}

.nav-dropdown[data-open] .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  color: #e0c8a0;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  display: block;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.current-practice {
  background: var(--primary);
  color: #ffffff;
}

/* ─── Hamburger ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e0c8a0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Layout ──────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Cards ───────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-top: 4px solid var(--primary);
  border-radius: 2px;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h2 {
  color: var(--primary);
  margin-bottom: 1.1rem;
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.card h3 {
  color: var(--primary);
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

/* ─── Practice frame ──────────────────────────────────── */
.practice-frame {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.frame-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.frame-step strong {
  color: var(--primary);
  font-size: 0.95rem;
}

.frame-step p {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ─── Announcements ──────────────────────────────────── */
.announcements-card {
  border-top-color: var(--accent);
}

.announcements-card h2 {
  color: var(--accent);
  border-bottom-color: #f0e0c0;
}

.announcements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  background: #fffdf8;
  border-radius: 0 4px 4px 0;
}

.announcement-date {
  font-size: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.announcement-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.announcement-body {
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
}

/* ─── Purpose pillars ─────────────────────────────────── */
.purpose-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-top-color: var(--accent);
  color: #fff;
}

.purpose-card h2 {
  color: var(--accent);
  border-bottom-color: rgba(255,255,255,0.15);
}

.purpose-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.pillar {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 1.25rem;
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  color: var(--accent);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.pillar p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cdd3de;
}

/* ─── Resource items ─────────────────────────────────── */
.resource-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.resource-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resource-meta {
  font-size: 0.72rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.resource-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.resource-desc {
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.resource-link {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.resource-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ─── Meet schedule table ─────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #fdf7ed;
}

/* ─── Practice grid ───────────────────────────────────── */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.practice-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 90px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-left-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.practice-link:hover {
  border-left-color: var(--accent);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  background: #fffdf8;
}

.practice-link .num {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.practice-link .title {
  font-weight: 600;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.practice-link .meta {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color 0.2s;
}

.practice-link:hover .meta {
  color: var(--accent);
}

/* ─── Practice page extras ───────────────────────────── */
.practice-summary {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 680px;
}

.section-time {
  font-size: 0.72rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.section-note {
  font-size: 0.88rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.section ul li ul {
  margin: 0.3rem 0 0.3rem 1rem;
}

.section ul li ul li::before {
  content: "–";
  color: var(--text-light);
}

.baseline-table-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.baseline-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.baseline-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.baseline-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  min-width: 80px;
  height: 2.2rem;
}

.parent-note-card {
  border-top-color: var(--accent);
  background: #fffdf8;
}

.parent-note-card h2 {
  color: var(--accent);
  border-bottom-color: #f0e0c0;
}

/* ─── Practice page ───────────────────────────────────── */
.practice-header {
  border-left: 5px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.practice-header .label {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.practice-header h1 {
  color: var(--primary);
  font-size: 1.9rem;
  margin-top: 0.2rem;
}

.section {
  margin-bottom: 1.5rem;
}

.section h2 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

ul {
  list-style: none;
  padding: 0;
}

.section ul li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.section ul li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ─── Prev/Next nav ───────────────────────────────────── */
.practice-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.practice-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.practice-nav a:hover {
  color: var(--accent);
}

/* ─── Info list ───────────────────────────────────────── */
.info-list li {
  padding: 0.4rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list strong {
  color: var(--primary);
}

/* ─── Mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {
  nav {
    height: auto;
    min-height: var(--nav-height);
  }

  nav .nav-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-hamburger {
    display: flex;
  }

  nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow: visible;
  }

  nav .nav-links.open {
    display: flex;
  }

  nav .nav-links > a {
    padding: 0.85rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    width: 100%;
  }

  .nav-dropdown {
    flex-direction: column;
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    height: auto;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--accent);
    margin-left: 1.25rem;
    min-width: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  table {
    font-size: 0.85rem;
  }

  td, th {
    padding: 0.5rem 0.75rem;
  }
}
