* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #123b4d;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

p,
li,
td,
th {
  overflow-wrap: anywhere;
}

a {
  color: #0b789e;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #075b78;
}

:focus-visible {
  outline: 3px solid #79c8e0;
  outline-offset: 2px;
}

.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
}

.rail {
  border-right: 1px solid #dceaf0;
  background: #f6fbfd;
  padding: 26px 14px;
}

.rail-inner {
  position: sticky;
  top: 24px;
}

.rail-title {
  margin: 0 0 10px;
  color: #54717d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.week-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: week;
}

.week-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #315769;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.week-list a:hover {
  background: #e3f3f9;
  color: #075b78;
}

.main {
  min-width: 0;
  padding: 26px clamp(18px, 4vw, 48px) 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding-bottom: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e1edf2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #123b4d;
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}

.topnav a {
  text-decoration: none;
}

.topnav a:hover {
  text-decoration: underline;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0b789e;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #10384a;
  line-height: 1.2;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: -0.025em;
}

h2 {
  margin: 36px 0 14px;
  font-size: clamp(22px, 2.8vw, 29px);
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lede {
  max-width: 70ch;
  margin: 0 0 20px;
  color: #3f6070;
  font-size: clamp(17px, 2vw, 19px);
}

p {
  max-width: 72ch;
}

.hero {
  margin-bottom: 28px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #d4eaf3;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf9fc 0%, #ffffff 72%);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #0b789e;
  border-radius: 10px;
  background: #0b789e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #075b78;
  border-color: #075b78;
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: #0b789e;
}

.button.secondary:hover {
  background: #edf9fc;
  color: #075b78;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dceaf0;
  border-radius: 14px;
  background: #ffffff;
}

.card p {
  margin-bottom: 0;
  color: #4d6a77;
  font-size: 15px;
}

.outline-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outline-list li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dceaf0;
  border-radius: 12px;
}

.outline-list li:hover {
  border-color: #8ccfe2;
}

.week-tag {
  color: #0b789e;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.outline-list strong {
  display: block;
  margin-bottom: 2px;
}

.outline-list .note {
  display: block;
  color: #54717d;
  font-size: 14px;
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li {
  margin-bottom: 12px;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dceaf0;
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e7f0f4;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #eef8fb;
  color: #10384a;
  font-weight: 750;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:target {
  background: #fff7df;
}

.callout {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid #0b789e;
  border-radius: 0 12px 12px 0;
  background: #f2fafc;
}

.callout p {
  margin: 0;
}

.definition {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.definition li {
  padding: 12px 0;
  border-bottom: 1px solid #e7f0f4;
}

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

.definition strong {
  display: block;
  margin-bottom: 4px;
}

.definition span {
  color: #54717d;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #e1edf2;
  color: #5a7480;
  font-size: 14px;
}

.footer nav {
  display: flex;
  gap: 16px;
}

.footer a {
  color: #5a7480;
}

@media (max-width: 700px) {
  .shell {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .rail {
    padding: 18px 5px;
  }

  .rail-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .week-list {
    gap: 1px;
  }

  .week-list a {
    padding: 7px 0;
    font-size: 12px;
    text-align: center;
  }

  .main {
    padding: 20px 14px 30px;
  }

  .topbar {
    margin-bottom: 22px;
    gap: 10px 14px;
  }

  .brand {
    font-size: 18px;
  }

  .topnav {
    gap: 6px 14px;
    font-size: 13px;
  }

  .hero {
    padding: 18px;
  }

  .outline-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .footer {
    margin-top: 30px;
  }
}
