:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  background: var(--color-bg, #f8fafc);
  color: var(--color-text, #152033);
  font-family: var(--font-body, Arial, sans-serif);
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--color-accent, #f59e0b);
  outline-offset: 4px;
}

.site-header,
.hub-intro,
.worksheet,
.single-panel,
footer {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 2px solid var(--color-text, #152033);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--color-text, #152033);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  background: var(--color-primary, #0f766e);
  color: var(--color-primary-text, #ffffff);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-nav,
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-nav a,
footer a {
  color: var(--color-muted, #5b677a);
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
}

.site-nav a:hover,
footer a:hover {
  color: var(--color-primary, #0f766e);
}

.hub-intro {
  padding: 34px 0 6px;
}

.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid var(--color-primary, #0f766e);
  color: var(--color-primary, #0f766e);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hub-intro > p:not(.intro-kicker) {
  max-width: 640px;
  color: var(--color-muted, #5b677a);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
}

.featured-image {
  min-width: 0;
  margin: 22px 0 0;
  overflow: hidden;
  border: 2px solid var(--color-text, #152033);
}

.featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.worksheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "checks"
    "sheet"
    "steps";
  gap: 0;
  margin-top: 26px;
  padding-bottom: 56px;
}

.quick-checks,
.sheet,
.next-steps {
  min-width: 0;
}

.quick-checks {
  grid-area: checks;
  margin-bottom: 24px;
}

.quick-checks-heading {
  margin: 0 0 10px;
  color: var(--color-muted, #5b677a);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.check-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-strip li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 9px;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-text, #152033);
  font-size: 0.88rem;
  font-weight: 800;
}

.tick {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  background: var(--color-primary, #0f766e);
  color: var(--color-primary-text, #ffffff);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.sheet {
  grid-area: sheet;
  position: relative;
  background: var(--color-surface, #ffffff);
  border: 2px solid var(--color-text, #152033);
  border-bottom: 0;
  padding: clamp(26px, 4vw, 40px);
  padding-top: clamp(34px, 5vw, 46px);
}

.sheet-clip {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 28px;
  background: var(--color-surface, #ffffff);
  border: 2px solid var(--color-text, #152033);
  transform: translateX(-50%);
}

.sheet-clip::after {
  content: "";
  position: absolute;
  inset: 7px 26px;
  background: var(--color-primary, #0f766e);
}

.sheet-section:not(:first-of-type) {
  margin-top: 34px;
}

.sheet-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-text, #152033);
}

.sheet-section-head h2 {
  margin: 0;
}

.count-chip {
  padding: 3px 10px;
  border: 1px solid var(--color-border, #dbe3ea);
  color: var(--color-muted, #5b677a);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.check-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-items li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px dashed var(--color-muted, #5b677a);
}

.check-items li:last-child,
.check-items li:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.check-items li > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.check-items li .tick {
  margin-top: 2px;
}

.check-items strong {
  font-size: 0.98rem;
}

.item-hint {
  color: var(--color-muted, #5b677a);
  font-size: 0.88rem;
}

.guide-body {
  min-width: 0;
}

.guide-body > p:first-child {
  font-size: 1.04rem;
}

.guide-body a {
  color: var(--color-primary, #0f766e);
  font-weight: 750;
  text-decoration: underline;
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.guide-body li {
  margin-bottom: 6px;
}

.guide-body figure {
  min-width: 0;
  margin: 20px 0;
  border: 1px solid var(--color-border, #dbe3ea);
  padding: 0;
}

.guide-body figcaption {
  padding: 8px 12px;
  color: var(--color-muted, #5b677a);
  font-size: 0.84rem;
  border-top: 1px solid var(--color-border, #dbe3ea);
}

.next-steps {
  grid-area: steps;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  background: var(--color-surface, #ffffff);
  border: 2px solid var(--color-text, #152033);
  border-top: 2px dashed var(--color-muted, #5b677a);
  padding: clamp(20px, 3vw, 28px);
}

.next-steps h2 {
  margin: 0;
  font-size: 1.06rem;
}

.next-steps-note {
  margin: 0 0 4px;
  color: var(--color-muted, #5b677a);
  font-size: 0.88rem;
}

.next-steps a {
  color: var(--color-primary, #0f766e);
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: var(--font-heading, Georgia, serif);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h2 {
  font-size: clamp(1.14rem, 2vw, 1.4rem);
}

h3 {
  font-size: 1.02rem;
}

p {
  margin: 0 0 16px;
}

.single-panel {
  position: relative;
  max-width: 760px;
  margin-top: 44px;
  margin-bottom: 26px;
  background: var(--color-surface, #ffffff);
  border: 2px solid var(--color-text, #152033);
  padding: clamp(26px, 4vw, 40px);
}

.single-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 28px;
  background: var(--color-surface, #ffffff);
  border: 2px solid var(--color-text, #152033);
  transform: translateX(-50%);
}

.single-panel > p {
  color: var(--color-muted, #5b677a);
}

.single-panel a {
  color: var(--color-primary, #0f766e);
  font-weight: 750;
  text-decoration: underline;
}

footer {
  justify-content: flex-start;
  padding: 22px 0 30px;
  border-top: 2px solid var(--color-text, #152033);
  color: var(--color-muted, #5b677a);
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hub-intro {
    padding: 26px 0 4px;
  }

  .check-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-items li:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px dashed var(--color-muted, #5b677a);
  }

  .check-items li:last-child {
    border-bottom: 0;
  }

  .sheet {
    padding: 24px 18px;
    padding-top: 32px;
  }

  h1 {
    font-size: clamp(1.55rem, 8.5vw, 2rem);
  }
}

@media (min-width: 641px) {
  body.layout-2 .worksheet {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "checks sheet"
      "steps sheet";
    gap: 0 28px;
    width: min(100% - 32px, 1080px);
    align-items: start;
  }

  body.layout-2 .quick-checks {
    margin-bottom: 18px;
  }

  body.layout-2 .check-strip {
    flex-direction: column;
    align-items: stretch;
  }

  body.layout-2 .next-steps {
    border-top: 2px solid var(--color-text, #152033);
  }

  body.layout-3 .hub-intro {
    text-align: center;
  }

  body.layout-3 .intro-kicker {
    margin-inline: auto;
  }

  body.layout-3 .hub-intro > p:not(.intro-kicker),
  body.layout-3 h1 {
    margin-inline: auto;
  }

  body.layout-3 h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }

  body.layout-3 .site-header,
  body.layout-3 .hub-intro,
  body.layout-3 .worksheet,
  body.layout-3 .single-panel,
  body.layout-3 footer {
    width: min(100% - 32px, 800px);
  }

  body.layout-3 .check-strip {
    justify-content: center;
  }

  body.layout-4 .site-header,
  body.layout-4 .hub-intro,
  body.layout-4 .worksheet,
  body.layout-4 .single-panel,
  body.layout-4 footer {
    width: min(100% - 32px, 720px);
  }

  body.layout-4 .hub-intro {
    padding-top: 24px;
  }

  body.layout-4 .sheet {
    padding: clamp(20px, 3vw, 28px);
    padding-top: 34px;
  }

  body.layout-4 .check-items {
    gap: 0 22px;
  }

  body.layout-4 .worksheet {
    margin-top: 20px;
    padding-bottom: 40px;
  }
}

img {
  max-width: 100%;
  height: auto;
}
