:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f8;
  --surface-strong: #e8eef5;
  --ink: #101722;
  --ink-soft: #243244;
  --muted: #5b6878;
  --muted-strong: #405064;
  --line: #d8e0ea;
  --line-strong: #c5d0dc;
  --green: #147d64;
  --green-soft: #e3f4ef;
  --blue: #2457d6;
  --blue-soft: #e7eefc;
  --gold: #9a6a12;
  --gold-soft: #f7edd8;
  --purple: #6b4bc2;
  --purple-soft: #efeafe;
  --red: #b44444;
  --red-soft: #f8e8e8;
  --accent: var(--green);
  --accent-soft: var(--green-soft);
  --focus-ring: rgba(36, 87, 214, 0.36);
  --shadow: 0 18px 50px rgba(16, 23, 34, 0.08);
  --shadow-soft: 0 10px 28px rgba(16, 23, 34, 0.06);
  --shadow-strong: 0 24px 70px rgba(16, 23, 34, 0.14);
  --radius: 8px;
  --header-height: 72px;
  --tap-target: 44px;
}

.accent-green {
  --accent: var(--green);
  --accent-soft: var(--green-soft);
  --focus-ring: rgba(20, 125, 100, 0.34);
}

.accent-blue {
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --focus-ring: rgba(36, 87, 214, 0.34);
}

.accent-gold {
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --focus-ring: rgba(154, 106, 18, 0.34);
}

.accent-purple {
  --accent: var(--purple);
  --accent-soft: var(--purple-soft);
  --focus-ring: rgba(107, 75, 194, 0.34);
}

.accent-red {
  --accent: var(--red);
  --accent-soft: var(--red-soft);
  --focus-ring: rgba(180, 68, 68, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.search-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

::selection {
  background: rgba(20, 125, 100, 0.22);
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(216, 224, 234, 0.82);
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(16px);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
}

.site-header.is-scrolled {
  border-color: rgba(197, 208, 220, 0.95);
  box-shadow: var(--shadow-soft);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: var(--header-height);
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap-target);
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.site-brand strong,
.footer-brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
}

.site-brand small,
.footer-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-padding-inline: 12px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.site-nav.is-overflowing {
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.98), rgba(246, 248, 251, 0)) left center / 28px 100% no-repeat,
    linear-gradient(270deg, rgba(246, 248, 251, 0.98), rgba(246, 248, 251, 0)) right center / 28px 100% no-repeat;
}

.site-nav.is-at-start {
  background:
    linear-gradient(270deg, rgba(246, 248, 251, 0.98), rgba(246, 248, 251, 0)) right center / 28px 100% no-repeat;
}

.site-nav.is-at-end {
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.98), rgba(246, 248, 251, 0)) left center / 28px 100% no-repeat;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.site-nav a span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--surface-strong);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] span {
  color: var(--accent);
}

.nav-context {
  display: none;
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-button,
.primary-action,
.secondary-action,
.icon-button,
.nav-toggle {
  min-height: var(--tap-target);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  user-select: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.tool-button {
  padding: 0 12px;
}

.primary-action::after {
  margin-left: 9px;
  content: ">";
}

.tool-button:hover,
.secondary-action:hover,
.icon-button:hover,
.nav-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.tool-button:active,
.primary-action:active,
.secondary-action:active,
.icon-button:active,
.nav-toggle:active {
  transform: translateY(1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  padding: 0;
}

.menu-lines {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.menu-lines span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

body.nav-open .menu-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .menu-lines span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.back-to-top:hover {
  background: var(--accent);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.document-page,
.suite-page {
  padding: 30px 0 44px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line-strong);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted-strong);
  text-decoration: none;
}

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

.hero,
.suite-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid #182638;
  border-radius: var(--radius);
  background: #111c2b;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero h1,
.suite-hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: 3.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy,
.suite-hero p {
  max-width: 880px;
  margin: 18px 0 0;
  color: #c7d4e4;
  font-size: 1.03rem;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 12px;
  color: #67d6bf;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.kpi,
.card,
.campaign,
.metric,
.scenario-card,
.step,
.month,
.quarter,
.side-panel,
.document-card,
.suite-quick a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero .kpi,
.suite-metrics div {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hero .kpi {
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.kpi,
.card,
.campaign,
.metric,
.scenario-card {
  padding: 18px;
}

.kpi span,
.tag,
.side-panel-head span,
.group-head span,
.doc-number,
.card-meta {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kpi span {
  color: #aebdd0;
}

.kpi strong {
  display: block;
  color: inherit;
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-toc {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 16px 0 34px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.toc-summary {
  min-width: 142px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.toc-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.toc-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
}

.section-toc ol {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.section-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.section-toc a:hover,
.section-toc a.is-active,
.section-toc a[aria-current="location"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.section {
  margin-top: 34px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 148px;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

.head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 0 0 16px;
}

.section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.section-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 850;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.section-link-button:hover,
.section-link-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.section-link-button:active {
  transform: translateY(1px);
}

.section-link-button.is-copied {
  border-color: rgba(20, 125, 100, 0.28);
  background: var(--green-soft);
  color: var(--green);
}

.head h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.head p {
  max-width: 820px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.status {
  border-color: rgba(20, 125, 100, 0.22);
  background: var(--green-soft);
  color: var(--green);
}

.status.warn {
  border-color: rgba(154, 106, 18, 0.24);
  background: var(--gold-soft);
  color: var(--gold);
}

.status.down,
.status.red {
  border-color: rgba(180, 68, 68, 0.24);
  background: var(--red-soft);
  color: var(--red);
}

.grid-2,
.grid-3,
.grid-4,
.campaigns {
  display: grid;
  gap: 14px;
  padding: 0;
}

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

.grid-3,
.campaigns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.grid-spaced {
  margin-top: 16px;
}

.card,
.campaign,
.metric,
.scenario-card,
.step,
.month,
.quarter {
  min-width: 0;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

@media (hover: hover) {
  .card:hover,
  .campaign:hover,
  .metric:hover,
  .scenario-card:hover,
  .step:hover,
  .month:hover,
  .quarter:hover,
  .document-card:hover,
  .suite-quick a:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
  }
}

.card h3,
.campaign h3,
.metric h3,
.scenario-card h3,
.step h3,
.month h3,
.quarter h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.card p,
.card li,
.campaign p,
.campaign li,
.metric p,
.scenario-card p,
.step p,
.month p,
.quarter p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.card p,
.campaign p,
.metric p,
.scenario-card p,
.step p,
.month p,
.quarter p {
  margin: 0;
}

.card ul,
.campaign ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.statement,
.note {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--muted-strong);
  line-height: 1.7;
}

.statement {
  font-size: 1.04rem;
}

.statement strong {
  color: var(--accent);
}

.note {
  margin-top: 16px;
}

.note-spaced {
  margin-top: 22px;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.table-wrap::after {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  content: attr(data-scroll-hint);
  backdrop-filter: blur(10px);
}

.table-wrap:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.table-wrap.is-scrollable {
  box-shadow: var(--shadow-soft), inset -18px 0 18px -18px rgba(16, 23, 34, 0.26);
}

.table-wrap.is-scrollable::after {
  display: block;
}

.table-wrap.has-seen-end::after,
.table-wrap:not(.is-scrollable)::after {
  display: none;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

caption {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover,
tbody tr:focus-within {
  background: #fbfcfe;
}

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

.product {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
}

.dot.blue,
.fill.blue {
  background: var(--blue);
}

.dot.gold,
.fill.gold {
  background: var(--gold);
}

.dot.purple,
.fill.purple {
  background: var(--purple);
}

.dot.red,
.fill.red {
  background: var(--red);
}

.money,
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.good,
.up {
  color: var(--green);
}

.warn {
  color: var(--gold);
}

.down,
.red {
  color: var(--red);
}

.blue {
  color: var(--blue);
}

.gold {
  color: var(--gold);
}

.purple {
  color: var(--purple);
}

.delta {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.metric-row strong {
  font-size: 1.12rem;
}

.bar {
  width: 100%;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.fill {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
}

.funnel,
.timeline,
.months,
.quarters,
.roadmap {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
}

.step .num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
}

.goal {
  color: var(--green);
  font-weight: 850;
  text-align: right;
}

.month {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.operating-calendar .month {
  grid-template-columns: 104px minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: 8px 18px;
  align-items: start;
}

.operating-calendar .month .tag {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin: 0;
}

.operating-calendar .month h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
}

.operating-calendar .month ul {
  grid-column: 2;
  grid-row: 2;
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.operating-calendar .month > strong {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: stretch;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1.35;
}

.quarter {
  padding: 18px;
}

.quarter-label,
.year {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.doc-action {
  display: block;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.doc-action:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.doc-action span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-action strong {
  display: block;
  line-height: 1.25;
}

.doc-action-disabled {
  background: var(--surface-soft);
  color: var(--muted);
}

.doc-action-home {
  border-color: rgba(20, 125, 100, 0.24);
  background: var(--green-soft);
}

.suite-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: end;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
}

.primary-action {
  border-color: #67d6bf;
  background: #67d6bf;
  color: #06251d;
}

.primary-action:hover {
  background: #7de3cf;
}

.secondary-action {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.suite-metrics {
  display: grid;
  gap: 10px;
}

.suite-metrics div {
  padding: 16px;
  border-radius: var(--radius);
}

.suite-metrics span {
  display: block;
  color: #aebdd0;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.suite-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
}

.suite-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 30px;
}

.suite-quick a {
  display: block;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.suite-quick span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.suite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.suite-group {
  margin-top: 28px;
}

.suite-group:first-child {
  margin-top: 0;
}

.group-head,
.side-panel-head {
  margin-bottom: 12px;
}

.group-head h2,
.side-panel-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

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

.document-card {
  display: grid;
  min-height: 210px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.document-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.document-card .card-meta {
  align-self: end;
  margin: 16px 0 0;
}

.accent-green .doc-number,
.accent-green .card-meta {
  color: var(--green);
}

.accent-blue .doc-number,
.accent-blue .card-meta {
  color: var(--blue);
}

.accent-gold .doc-number,
.accent-gold .card-meta {
  color: var(--gold);
}

.accent-purple .doc-number,
.accent-purple .card-meta {
  color: var(--purple);
}

.accent-red .doc-number,
.accent-red .card-meta {
  color: var(--red);
}

.suite-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  gap: 12px;
}

.side-panel {
  padding: 18px;
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.empty-state-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.empty-state-actions a:hover,
.empty-state-actions a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

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

.recent-link {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.recent-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.rhythm-list li {
  display: grid;
  gap: 3px;
}

.rhythm-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 82px 16px 24px;
}

.search-panel[hidden] {
  display: none;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 34, 0.44);
  backdrop-filter: blur(6px);
}

.search-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.search-dialog::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
  content: "";
}

.search-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.search-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--tap-target);
  padding: 0;
}

.close-mark {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.close-mark::before,
.close-mark::after {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.close-mark::before {
  transform: rotate(45deg);
}

.close-mark::after {
  transform: rotate(-45deg);
}

.search-field {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
}

.search-field input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: 0;
}

.search-results {
  display: grid;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  padding: 14px 18px 18px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.search-result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.search-result-card:hover,
.search-result-card:focus-within {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.search-result {
  display: block;
  padding: 14px 14px 12px;
  color: var(--ink);
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  outline-offset: -3px;
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.25;
}

.search-result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.search-result-kicker {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.section-chip:hover,
.section-chip:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.retrace-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: #101722;
  color: #dce6f1;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 28px 0;
}

.footer-brand {
  color: #fff;
}

.footer-brand .brand-mark {
  background: #67d6bf;
  color: #06251d;
}

.footer-brand small,
.footer-primary p,
.footer-meta {
  color: #aebdd0;
}

.footer-primary p {
  max-width: 760px;
  margin: 12px 0 0;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #dce6f1;
  text-decoration: none;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
}

.footer-meta span:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.28);
}

@media (min-width: 761px) {
  .site-header-inner {
    grid-template-columns: auto auto 1fr;
    gap: 12px 18px;
  }

  .site-tools {
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 4;
    width: 100%;
    padding-bottom: 12px;
  }

  .site-header {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .hero h1,
  .suite-hero h1 {
    font-size: 2.7rem;
  }

  .kpis,
  .grid-4,
  .suite-quick,
  .document-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .campaigns,
  .suite-hero,
  .suite-layout {
    grid-template-columns: 1fr;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

  .suite-sidebar,
  .section-toc {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .page {
    width: min(100% - 24px, 1240px);
  }

  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    min-height: var(--header-height);
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-tools {
    gap: 6px;
  }

  .tool-button {
    padding: 0 10px;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    display: grid;
    gap: 6px;
    max-height: calc(100vh - 92px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 140ms ease, transform 140ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav.is-overflowing,
  .site-nav.is-at-start,
  .site-nav.is-at-end {
    background: var(--surface);
  }

  .nav-context {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
  }

  .nav-context span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .nav-context strong {
    font-size: 0.98rem;
    line-height: 1.22;
  }

  .site-nav a {
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
  }

  .site-nav a::after {
    right: 12px;
    left: 12px;
  }

  .document-page,
  .suite-page {
    padding-top: 18px;
  }

  .hero,
  .suite-hero {
    padding: 20px;
  }

  .hero h1,
  .suite-hero h1 {
    font-size: 2rem;
    line-height: 1.04;
  }

  .hero-copy,
  .suite-hero p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .campaigns,
  .suite-quick,
  .document-actions {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .hero .kpi,
  .suite-metrics div {
    padding: 12px;
  }

  .hero .kpi strong,
  .suite-metrics strong {
    font-size: 1.28rem;
  }

  .suite-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .head {
    display: grid;
  }

  .section-actions {
    justify-self: start;
  }

  .section-link-button,
  .section-toc a,
  .breadcrumbs a {
    min-height: var(--tap-target);
  }

  .section-toc {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .toc-summary {
    min-width: 0;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap::after {
    display: none !important;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  table {
    border-collapse: separate;
    border-spacing: 0;
  }

  caption {
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tbody tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  tbody td {
    display: grid;
    grid-template-columns: minmax(108px, 40%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    text-align: left;
  }

  tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  tbody tr:last-child td {
    border-bottom: 1px solid var(--line);
  }

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

  .step,
  .month {
    grid-template-columns: 1fr;
  }

  .operating-calendar .month {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .operating-calendar .month .tag,
  .operating-calendar .month h3,
  .operating-calendar .month ul,
  .operating-calendar .month > strong {
    grid-column: auto;
    grid-row: auto;
  }

  .operating-calendar .month > strong {
    justify-self: stretch;
  }

  .goal {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-meta {
    display: grid;
  }

  .footer-meta span::after {
    display: none;
  }
}

@media (max-width: 440px) {
  .site-brand small,
  .tool-button[data-print] {
    display: none;
  }

  .site-tools {
    max-width: 100%;
  }

  .tool-button {
    min-width: 44px;
    padding: 0 9px;
  }

  .hero h1,
  .suite-hero h1 {
    font-size: 1.82rem;
  }

  .hero,
  .suite-hero {
    padding: 18px;
  }

  .hero .kpi strong,
  .suite-metrics strong {
    font-size: 1.18rem;
  }

  tbody td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --ink: #111827;
    --muted: #4b5563;
    --line: #d8dee8;
  }

  body {
    background: #fff;
  }

  .site-header,
  .search-panel,
  .reading-progress,
  .back-to-top,
  .section-toc,
  .document-actions,
  .suite-quick,
  .suite-sidebar,
  .retrace-footer,
  .skip-link {
    display: none !important;
  }

  .page {
    width: 100%;
  }

  .document-page,
  .suite-page {
    padding: 0;
  }

  .hero,
  .suite-hero {
    border-color: #d8dee8;
    background: #fff;
    color: #111827;
    box-shadow: none;
  }

  .hero-copy,
  .suite-hero p {
    color: #4b5563;
  }

  .section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
    break-inside: avoid;
  }

  .card,
  .campaign,
  .metric,
  .scenario-card,
  .step,
  .month,
  .quarter,
  .table-wrap {
    box-shadow: none;
  }
}
