:root {
  color-scheme: light;
  --ink: #17212a;
  --ink-soft: #334755;
  --muted: #687782;
  --line: #d9e2e5;
  --line-strong: #bdccd0;
  --paper: #f7f5ef;
  --paper-2: #efe9dc;
  --white: #ffffff;
  --pool: #0f6f78;
  --pool-dark: #103f4b;
  --pool-soft: #e1f0ef;
  --coral: #c45e43;
  --amber: #d69a3a;
  --green: #4e765f;
  --shadow: 0 16px 42px rgba(16, 63, 75, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(225, 240, 239, 0.48), rgba(247, 245, 239, 0) 340px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
li,
a,
button {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(189, 204, 208, 0.78);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pool-dark);
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--pool-dark);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(217, 226, 229, 0.9);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 5px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--pool-dark);
  background: var(--pool-soft);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(16, 63, 75, 0.06);
}

.lang-button {
  min-width: 46px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.lang-button.is-active {
  color: var(--white);
  background: var(--pool-dark);
}

.guide-workspace {
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--line);
}

.workspace-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.78fr);
  gap: 22px;
  align-items: stretch;
}

.workspace-copy,
.workspace-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.workspace-copy {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
}

.workspace-panel {
  display: grid;
  grid-template-rows: minmax(170px, 0.72fr) 1fr;
  overflow: hidden;
}

.workspace-image {
  min-height: 190px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(180deg, rgba(16, 63, 75, 0.08), rgba(16, 63, 75, 0.42)),
    url("assets/family-guide-hero.jpg");
  background-size: cover;
  background-position: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--pool-dark);
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 780;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: var(--coral);
}

.button-primary:hover {
  background: #ad5139;
}

.button-secondary {
  color: var(--pool-dark);
  border-color: var(--line-strong);
  background: var(--white);
}

.button-secondary:hover {
  border-color: var(--pool);
  background: var(--pool-soft);
}

.hero-path-grid {
  display: grid;
  gap: 0;
  background: var(--white);
}

.hero-path {
  min-height: 72px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-areas:
    "num title"
    "num body";
  column-gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.hero-path:last-child {
  border-bottom: 0;
}

.hero-path:hover {
  background: #f7fbfa;
}

.hero-path span {
  grid-area: num;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--pool-dark);
  font-size: 12px;
  font-weight: 820;
}

.hero-path strong {
  grid-area: title;
  color: var(--pool-dark);
  font-size: 16px;
  line-height: 1.16;
}

.hero-path em {
  grid-area: body;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.34;
}

.start-panel,
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.start-panel {
  padding: 44px 0 58px;
}

.section {
  padding: 66px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: var(--pool-dark);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.start-grid,
.meet-grid,
.notes-grid,
.tool-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.qa-grid,
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.start-card,
.meet-card,
.qa-card,
.note-card,
.term,
.tool-card,
.resource-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.start-card,
.meet-card,
.qa-card,
.note-card,
.tool-card,
.resource-card {
  min-height: 100%;
  padding: 18px;
}

.card-label,
.meet-time,
.guide-tag,
.note-status,
.tool-status,
.resource-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 14px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-label,
.guide-tag {
  color: var(--pool);
  background: var(--pool-soft);
}

.meet-time,
.tool-status,
.resource-label {
  color: var(--green);
  background: #e8f1eb;
}

.note-status {
  color: var(--coral);
  background: #f8e4dc;
}

.start-card h3,
.meet-card h3,
.qa-card h3,
.note-card h3,
.tool-card h3,
.resource-card h3 {
  margin: 0 0 8px;
  color: var(--pool-dark);
  font-size: 20px;
  line-height: 1.18;
}

.start-card p:not(.card-label),
.meet-card p,
.qa-card p,
.note-card p,
.term p,
.tool-card p,
.resource-card p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--coral);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.resource-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meet-day-section,
.notes-section,
.glossary-section,
.tool-section {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meet-day-section {
  background: #f2f7f6;
}

.notes-section {
  background: #fbf1e9;
}

.glossary-section {
  background: var(--paper-2);
}

.tool-section {
  padding-top: 66px;
  padding-bottom: 66px;
  background: #e8f3f1;
}

.meet-card,
.qa-card,
.note-card,
.resource-card {
  box-shadow: 0 10px 28px rgba(16, 63, 75, 0.06);
}

.meet-prompt,
.verify-note,
.note-takeaway {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--pool-dark) !important;
  font-size: 14px;
  font-weight: 720;
}

.note-card {
  background: #fffaf6;
}

.article-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.article-kicker {
  margin: 0;
  color: var(--pool-dark);
  font-size: 16px;
  font-weight: 840;
}

.article-card {
  padding: 22px;
  border-color: #e5cec0;
  background: #fffdf9;
}

.article-header {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.article-number {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--pool-dark);
  font-size: 14px;
  font-weight: 840;
}

.article-card h3 {
  margin: 0;
  color: var(--pool-dark);
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.14;
}

.article-header p {
  margin: 7px 0 0;
  color: var(--ink-soft);
}

.article-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 20px;
  border-top: 1px solid #ead7cb;
}

.article-body section {
  padding: 16px 0;
  border-bottom: 1px solid #ead7cb;
}

.article-card h4 {
  margin: 0;
  color: var(--pool-dark);
  font-size: 15px;
  line-height: 1.24;
}

.article-body p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.article-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.68fr);
  gap: 14px;
  margin-top: 16px;
}

.article-takeaway,
.article-verify {
  margin: 0;
  border-radius: 8px;
}

.article-takeaway {
  padding: 15px 16px;
  color: var(--pool-dark);
  background: #f8eee6;
  font-weight: 800;
}

.article-verify {
  padding: 14px 16px;
  color: var(--ink-soft);
  background: #edf5f3;
  font-size: 14px;
}

.article-verify strong {
  color: var(--pool-dark);
}

.article-verify ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.term {
  min-height: 104px;
  padding: 15px;
}

.term strong {
  display: block;
  margin-bottom: 6px;
  color: var(--pool-dark);
}

.tool-card {
  background: #fbfefd;
}

.tool-card:nth-child(3) {
  border-color: #dcc6b5;
  background: #fff8f3;
}

.tool-card:nth-child(3) .tool-status {
  color: var(--coral);
  background: #f8e4dc;
}

.tool-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tool-card li {
  min-height: 30px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 680;
}

.tool-card li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border: 2px solid var(--pool);
  border-radius: 3px;
  background: var(--white);
}

.resource-card h3 a {
  color: var(--pool-dark);
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px max(16px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
}

.site-footer strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--pool-dark);
}

.site-footer p {
  max-width: 680px;
  margin: 0;
}

@media (max-width: 1040px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-copy {
    min-height: auto;
  }

  .workspace-panel {
    grid-template-rows: minmax(180px, auto) auto;
  }

  .hero-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-path:nth-last-child(2) {
    border-bottom: 0;
  }

  .start-grid,
  .meet-grid,
  .notes-grid,
  .tool-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .workspace-shell,
  .start-panel,
  .section {
    width: min(100% - 22px, 1180px);
  }

  .guide-workspace {
    padding-top: 20px;
  }

  .workspace-copy {
    padding: 22px;
  }

  .workspace-panel {
    grid-template-rows: 96px auto;
  }

  .workspace-image {
    order: 1;
    min-height: 96px;
  }

  .hero-path-grid {
    order: 2;
  }

  h1 {
    font-size: clamp(32px, 10.4vw, 46px);
    line-height: 1.04;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .hero-path-grid,
  .start-grid,
  .meet-grid,
  .qa-grid,
  .notes-grid,
  .glossary-grid,
  .tool-grid,
  .resource-grid,
  .article-body,
  .article-footer {
    grid-template-columns: 1fr;
  }

  .hero-path:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .article-header {
    grid-template-columns: 1fr;
  }

  .article-number {
    width: auto;
    max-width: 48px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand span:last-child {
    display: none;
  }

  .lang-button {
    min-width: 42px;
  }

  .start-panel,
  .section,
  .tool-section,
  .glossary-section,
  .meet-day-section,
  .notes-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
