:root {
  --ink: #17201b;
  --muted: #62706a;
  --line: #d8ddd8;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --panel-soft: #f7faf5;
  --green: #286247;
  --green-soft: #dcebe2;
  --coral: #cf5b45;
  --gold: #c49335;
  --blue: #315f8f;
  --shadow: 0 12px 32px rgba(30, 45, 36, 0.09);
  --shadow-hover: 0 18px 44px rgba(30, 45, 36, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(196, 147, 53, 0.7);
  outline-offset: 3px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: #f4f7f1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.metric span,
.module-meta,
.resource-card small,
.practice-card span,
.source-card p,
.stat-grid span {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-link {
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #3d4a44;
  font-weight: 650;
}

.nav-link.active,
.nav-link:hover {
  color: var(--green);
  background: var(--green-soft);
}

.source-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.source-card p {
  margin: 8px 0 0;
  line-height: 1.5;
}

main {
  min-width: 0;
}

.overview-band {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: 32px;
  padding: 56px clamp(24px, 6vw, 72px) 42px;
  background:
    linear-gradient(115deg, rgba(40, 98, 71, 0.9), rgba(23, 32, 27, 0.84)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='720' viewBox='0 0 1200 720'%3E%3Crect width='1200' height='720' fill='%23dfe8df'/%3E%3Cg fill='none' stroke='%23286247' stroke-width='2' opacity='.45'%3E%3Cpath d='M120 152h270v150H120zM470 108h420v80H470zM470 226h250v230H470zM760 226h260v140H760zM760 404h150v118H760zM120 354h270v170H120z'/%3E%3Cpath d='M154 190h192M154 228h126M504 146h326M504 270h152M504 312h182M504 354h114M794 266h162M794 306h96M154 398h166M154 438h210M154 478h132'/%3E%3Ccircle cx='930' cy='462' r='52'/%3E%3Cpath d='M930 410v52l38 24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-copy .eyebrow,
.overview-band .stat-grid span {
  color: rgba(255, 255, 255, 0.76);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.95;
}

.hero-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
.segment,
.icon-button {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
}

.button.primary {
  background: #fff;
  color: var(--green);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.progress-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.next-up {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.next-up span,
.next-up strong {
  display: block;
}

.next-up span {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.next-up strong {
  line-height: 1.32;
}

.progress-head,
.section-title,
.module-top,
.resource-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-head strong {
  font-size: 2.2rem;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: #fff;
  transition: width 180ms ease;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat-grid strong {
  display: block;
  font-size: 1.45rem;
}

.section-wrap {
  padding: 44px clamp(20px, 5vw, 64px);
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.metrics-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric,
.module-card,
.resource-card,
.practice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric:hover,
.module-card:hover,
.resource-card:hover,
.practice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.metric,
.module-card,
.resource-card,
.practice-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.metric {
  min-height: 132px;
  padding: 18px;
  display: grid;
  align-content: space-between;
}

.metric strong {
  font-size: 1.1rem;
  line-height: 1.25;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2ec;
}

.path-tools {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.search-box {
  display: grid;
  gap: 6px;
  min-width: min(300px, 100%);
}

.search-box span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.segment {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
}

.segment.active {
  color: #fff;
  background: var(--green);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--green);
}

.module-card.hidden {
  display: none;
}

.module-card.is-complete {
  border-color: #c8d8cd;
  border-top-color: var(--gold);
  background: linear-gradient(180deg, #fff, var(--panel-soft));
}

.module-top {
  align-items: flex-start;
}

.week-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #e3edf8;
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: capitalize;
}

.is-complete .status-pill {
  color: #68490f;
  background: #f4e7c8;
}

.module-card h3,
.resource-card h3,
.practice-card h3 {
  margin-bottom: 8px;
  line-height: 1.18;
}

.module-card p,
.resource-card p,
.practice-card p {
  color: var(--muted);
  line-height: 1.5;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.module-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2ec;
}

.learning-note {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #e2e7e1;
  border-radius: 8px;
  background: #fbfdf9;
}

.learning-note strong {
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.learning-note span {
  color: #34443b;
  line-height: 1.45;
}

.practice-note {
  border-color: #eadcbd;
  background: #fffaf0;
}

.practice-note strong {
  color: #7a5516;
}

.module-links,
.practice-card ul {
  margin: 0;
  padding-left: 18px;
  color: #34443b;
  line-height: 1.7;
}

.module-links a,
.resource-card a {
  color: #234f82;
  font-weight: 700;
  text-underline-offset: 3px;
}

.module-links a:hover,
.resource-card a:hover {
  color: var(--coral);
}

.check-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #34443b;
  font-weight: 700;
}

.empty-state {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px dashed #b7c2ba;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.resource-card {
  padding: 18px;
}

.resource-card header {
  align-items: flex-start;
}

.resource-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
}

.resource-icon.nng {
  background: var(--green);
}

.resource-icon.bay {
  background: var(--coral);
}

.resource-icon.law {
  background: var(--blue);
}

.resource-icon.mix {
  background: var(--gold);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.practice-card {
  padding: 20px;
}

.practice-card span {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--green);
  background: #fff;
  font-size: 1.25rem;
}

.reset-mark {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  position: relative;
}

.reset-mark::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(18deg);
}

@media (max-width: 1050px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px 20px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .source-card {
    display: none;
  }

  .overview-band,
  .metrics-grid,
  .module-grid,
  .resource-grid,
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-list,
  .overview-band,
  .metrics-grid,
  .module-grid,
  .resource-grid,
  .practice-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .overview-band {
    min-height: auto;
    padding-top: 40px;
  }

  .section-title,
  .progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .path-tools,
  .search-box {
    width: 100%;
  }

  .segmented {
    width: 100%;
  }

  .segment {
    flex: 1 1 42%;
  }
}
