:root {
  color-scheme: light;
  --page: #eef7fd;
  --page-soft: #f7fbfe;
  --surface: #ffffff;
  --surface-muted: #f2f6fa;
  --ink: #0b1220;
  --muted: #5f6d7c;
  --line: #d8e4ef;
  --soft-line: #e8eef5;
  --blue: #0876d1;
  --blue-dark: #075fa8;
  --blue-soft: #dff1fc;
  --ignite-red: #e31b23;
  --nav: #ffffff;
  --nav-shadow: rgba(20, 45, 70, 0.12);
  --code-bg: #edf3f8;
  --code-ink: #263241;
  --table-head: #2e3949;
  --table-stripe: #f8fbfd;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--page) 92px, var(--page-soft) 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

body.page-doc:not(.page-pulse) {
  background: var(--surface);
}

a {
  color: var(--blue-dark);
  text-decoration-color: rgba(8, 118, 209, 0.3);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px var(--nav-shadow);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

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

.brand__mark {
  width: 28px;
  height: 28px;
  background:
    radial-gradient(circle at 48% 34%, #ffffff 0 12%, transparent 13%),
    linear-gradient(135deg, var(--ignite-red), #ff6b58);
  border-radius: 7px 18px 18px 18px;
  box-shadow: 0 2px 7px rgba(227, 27, 35, 0.28);
}

.brand__text {
  font-size: 1.04rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 0.96rem;
  text-decoration: none;
  border-radius: 4px;
}

.site-nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.page-doc .page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 102px);
}

body.page-doc:not(.page-pulse) .page {
  width: 100%;
  padding: 0;
  background: var(--surface);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: end;
  overflow: hidden;
  padding: 30px 34px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 52%),
    linear-gradient(135deg, #d9effb 0, #a9d9f5 54%, #52a9eb 100%);
  border-bottom: 1px solid #b6d8ee;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 55, 80, 0.09);
  text-align: left;
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -32px;
  width: 560px;
  height: 180px;
  content: "";
  background:
    repeating-linear-gradient(
      132deg,
      rgba(255, 255, 255, 0.82) 0 2px,
      transparent 2px 20px
    );
  opacity: 0.75;
  pointer-events: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 620px;
  color: #050b14;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p:last-child {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 14px 0 0;
  color: #193249;
  font-size: 1rem;
}

.latest-report {
  position: relative;
  z-index: 1;
  display: block;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-left: 5px solid var(--ignite-red);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(31, 55, 80, 0.12);
}

.latest-report:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.latest-report__label {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-report strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.latest-report .report-meta {
  display: block;
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 24px 28px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 56%),
    linear-gradient(135deg, #dff2fb 0, #b9e0f6 56%, #68b5eb 100%);
  border: 1px solid #b9d8ec;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 55, 80, 0.09);
}

.report-hero .eyebrow {
  margin-bottom: 8px;
}

.report-hero h1 {
  margin: 0;
  color: #050b14;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.report-meta {
  max-width: none;
  margin: 10px 0 0;
  color: #193249;
}

.report-summary {
  justify-content: flex-end;
  max-width: 520px;
  margin: 0;
}

.report-summary .metric {
  background: rgba(255, 255, 255, 0.86);
}

.content {
  padding-top: 34px;
}

.page-doc .content {
  flex: 1;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(31, 55, 80, 0.08);
}

body.page-doc:not(.page-pulse) .content {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 124px);
  margin: 0 auto;
  padding: 34px 0 56px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.content h1,
.content h2,
.content h3,
.content h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: 0;
}

.content h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.content h1 + small {
  display: block;
  max-width: max-content;
  margin: 0 0 30px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface-muted);
  border-left: 4px solid var(--ignite-red);
  border-radius: 4px;
}

.content h2 {
  margin: 40px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.5rem;
}

.content h3 {
  margin: 34px 0 12px;
  font-size: 1.18rem;
}

.content h3::before {
  display: inline-block;
  width: 7px;
  height: 0.82em;
  margin-right: 8px;
  content: "";
  background: var(--ignite-red);
  border-radius: 2px;
  vertical-align: -0.06em;
}

.page-pulse .content {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-pulse .content > h2 {
  margin-top: 26px;
  border-top: 0;
}

.content p {
  max-width: 780px;
  margin: 0 0 16px;
  color: var(--muted);
}

.content code {
  padding: 0.12em 0.32em;
  color: var(--code-ink);
  background: var(--code-bg);
  border-radius: 4px;
  font-size: 0.92em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content pre {
  max-width: 100%;
  margin: 16px 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--code-ink);
  background: var(--code-bg);
  border: 1px solid var(--soft-line);
  border-radius: 6px;
}

.content pre code {
  padding: 0;
  background: transparent;
  border-radius: 0;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.page-home .content > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 16px 0 28px;
  padding: 0;
  list-style: none;
}

.page-home .content > ul li {
  margin: 0;
}

.page-home .content > ul a {
  display: block;
  min-height: 78px;
  padding: 18px 18px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(31, 55, 80, 0.08);
}

.page-home .content > ul a:hover {
  transform: translateY(-1px);
  border-left-color: var(--ignite-red);
  box-shadow: 0 16px 36px rgba(31, 55, 80, 0.12);
}

.content table {
  display: block;
  width: 100%;
  margin: 18px 0 26px;
  overflow-x: auto;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 55, 80, 0.05);
}

.content thead,
.content tbody,
.content tr {
  width: 100%;
}

.content th,
.content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft-line);
  vertical-align: top;
  white-space: nowrap;
}

.content th {
  color: #ffffff;
  background: var(--table-head);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.content tr:nth-child(even) td {
  background: var(--table-stripe);
}

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

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.metric {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 0;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(31, 55, 80, 0.05);
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.metric:last-child {
  border-left-color: var(--ignite-red);
}

.goals {
  display: grid;
  gap: 16px;
}

.goal {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 55, 80, 0.07);
}

.goal-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.goal-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.goal-title::before {
  display: inline-block;
  width: 7px;
  height: 0.82em;
  margin-right: 8px;
  content: "";
  background: var(--ignite-red);
  border-radius: 2px;
  vertical-align: -0.06em;
}

.goal-id,
.labels,
.muted {
  color: var(--muted);
}

.goal-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-muted);
  color: var(--muted);
  white-space: nowrap;
}

.pill.done {
  border-color: #bfe3cc;
  color: #1f883d;
  background: #f0fbf4;
}

.supplementary {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}

.supp-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.supp-kind {
  min-width: 72px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.supp-item a,
.links a {
  color: var(--blue-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.supp-item a:hover,
.links a:hover {
  text-decoration: underline;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--surface-muted);
  white-space: nowrap;
}

.supp-text {
  margin-top: 4px;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sha {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
}

.goal table {
  display: table;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.goal th,
.goal td {
  padding: 10px 12px;
}

.content h2 + table:first-of-type {
  display: block;
  margin: 8px 0 30px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.content h2 + table:first-of-type thead {
  display: none;
}

.content h2 + table:first-of-type tbody {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content h2 + table:first-of-type tr,
.content h2 + table:first-of-type td {
  display: inline-flex;
  align-items: baseline;
}

.content h2 + table:first-of-type tr {
  gap: 8px;
  min-height: 0;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(31, 55, 80, 0.05);
}

.content h2 + table:first-of-type td {
  padding: 0;
  border: 0;
  white-space: normal;
}

.content h2 + table:first-of-type td:first-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.content h2 + table:first-of-type td:last-child {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.content h2 + table:first-of-type tr:last-child {
  border-left-color: var(--ignite-red);
}

.content blockquote {
  margin: 22px 0;
  padding: 12px 16px;
  color: var(--muted);
  background: var(--surface-muted);
  border-left: 4px solid var(--ignite-red);
}

.content hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

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

  .page {
    width: min(100% - 28px, 1180px);
    padding-top: 22px;
  }

  .hero {
    display: block;
    padding: 24px 22px;
  }

  .latest-report {
    margin-top: 18px;
  }

  .report-hero {
    display: block;
    padding: 22px;
  }

  .report-summary {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .page-doc .content {
    padding: 22px;
  }

  body.page-doc:not(.page-pulse) .content {
    width: min(100% - 28px, 1180px);
    padding: 22px 0 40px;
  }

  .page-pulse .content {
    padding: 0;
  }

  .goal-head {
    display: block;
  }

  .goal-stats {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .content th,
  .content td {
    padding: 9px 10px;
  }
}
