:root {
  --forest-950: #031c11;
  --forest-900: #07311b;
  --forest-800: #0b4528;
  --forest-700: #14633b;
  --leaf-500: #7cc144;
  --leaf-100: #e9f5dc;
  --orange-500: #f5942f;
  --orange-100: #fff0de;
  --cream-50: #fbfcf7;
  --cream-100: #f3f6ec;
  --ink-900: #17211b;
  --ink-700: #425048;
  --ink-500: #68756d;
  --line: #dce4d9;
  --white: #ffffff;
  --red-700: #a43128;
  --red-100: #fdecea;
  --blue-700: #245c75;
  --blue-100: #e6f3f8;
  --focus: #a94900;
  --shadow-sm: 0 8px 24px rgba(7, 49, 27, 0.08);
  --shadow-lg: 0 22px 60px rgba(3, 28, 17, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content: 1180px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--cream-50);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 8% 8%, rgba(124, 193, 68, 0.11), transparent 24rem),
    radial-gradient(circle at 92% 22%, rgba(245, 148, 47, 0.09), transparent 22rem);
  pointer-events: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

[id] {
  scroll-margin-top: 104px;
}

a:hover {
  color: var(--forest-900);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus);
}

.sr-only {
  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;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--forest-950);
  background: var(--orange-500);
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: var(--white);
  background: rgba(3, 28, 17, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

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

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 4px;
  color: #c6d6cb;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-link {
  padding: 10px 11px;
  color: #dce8df;
  border-radius: 9px;
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(124, 193, 68, 0.16);
}

.nav-link.is-active {
  box-shadow: inset 0 -2px 0 var(--leaf-500);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.page-shell {
  padding-block: 48px 88px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--ink-500);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
  padding: clamp(34px, 6vw, 72px);
  color: var(--white);
  background: var(--forest-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 440px;
  height: 440px;
  content: "";
  background: rgba(124, 193, 68, 0.08);
  border: 80px solid rgba(245, 148, 47, 0.08);
  border-radius: 50%;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--forest-700);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bce792;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--orange-500);
  border-radius: 50%;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--forest-950);
  line-height: 1.17;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 6vw, 4.7rem);
}

.hero h1 {
  color: var(--white);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--ink-700);
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
}

.hero .lead {
  color: #dce8df;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  color: var(--forest-950);
  background: var(--orange-500);
  border: 1px solid var(--orange-500);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
}

.button:hover {
  color: var(--forest-950);
  background: #ffa749;
}

.button.secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

.button.secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.logo-showcase {
  width: min(100%, 330px);
  padding: 18px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  transform: rotate(2deg);
}

.logo-showcase img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.status-item {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.status-item:last-child {
  border-right: 0;
}

.status-item strong {
  display: block;
  color: var(--forest-900);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.status-item span {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.section {
  padding-top: 74px;
}

.section.compact {
  padding-top: 46px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading > div {
  max-width: 760px;
}

.section-heading p,
.card p,
.step p,
.decision-row p,
.phase p {
  margin: 0;
  color: var(--ink-700);
}

.section-link {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 750;
}

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px 22px;
  color: var(--ink-900);
  background: var(--orange-100);
  border: 1px solid #f7cf9f;
  border-left: 5px solid var(--orange-500);
  border-radius: var(--radius-sm);
}

.callout::before {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  content: "!";
  color: var(--forest-950);
  background: var(--orange-500);
  border-radius: 50%;
  font-weight: 900;
}

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

.callout p {
  margin: 0;
}

.callout.info {
  background: var(--blue-100);
  border-color: #b8dce9;
  border-left-color: var(--blue-700);
}

.callout.info::before {
  content: "i";
  color: var(--white);
  background: var(--blue-700);
}

.callout.success {
  background: var(--leaf-100);
  border-color: #cbe5b2;
  border-left-color: var(--leaf-500);
}

.callout.success::before {
  content: "✓";
  background: var(--leaf-500);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(7, 49, 27, 0.045);
}

.card.accent-leaf {
  border-top: 4px solid var(--leaf-500);
}

.card.accent-orange {
  border-top: 4px solid var(--orange-500);
}

.card.accent-forest {
  border-top: 4px solid var(--forest-800);
}

.card-number,
.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--forest-950);
  background: var(--leaf-100);
  border-radius: 11px;
  font-weight: 850;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 780;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tag {
  color: var(--forest-800);
  background: var(--leaf-100);
}

.status-pill.decided,
.status-pill.done {
  color: var(--forest-800);
  background: var(--leaf-100);
}

.status-pill.open,
.status-pill.pending {
  color: #7d4508;
  background: var(--orange-100);
}

.status-pill.risk {
  color: var(--red-700);
  background: var(--red-100);
}

.status-pill.progress {
  color: var(--blue-700);
  background: var(--blue-100);
}

.meta-list,
.check-list,
.plain-list {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.meta-list li,
.check-list li,
.plain-list li {
  position: relative;
  padding: 9px 0 9px 24px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
}

.meta-list li:last-child,
.check-list li:last-child,
.plain-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  position: absolute;
  top: 11px;
  left: 0;
  content: "✓";
  color: var(--forest-700);
  font-weight: 900;
}

.plain-list li::before,
.meta-list li::before {
  position: absolute;
  top: 16px;
  left: 4px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--orange-500);
  border-radius: 50%;
}

.meta-list strong {
  color: var(--ink-900);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: workflow;
}

.step {
  position: relative;
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.step::after {
  position: absolute;
  z-index: 2;
  top: 35px;
  right: -12px;
  width: 22px;
  height: 22px;
  content: "→";
  display: grid;
  place-items: center;
  color: var(--forest-700);
  background: var(--cream-50);
  font-weight: 900;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: var(--orange-100);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 66px);
  color: var(--white);
  background: linear-gradient(125deg, var(--forest-950), var(--forest-800));
  border-radius: var(--radius-lg);
}

.page-hero::after {
  position: absolute;
  top: -90px;
  right: -40px;
  width: 260px;
  height: 260px;
  content: "";
  border: 52px solid rgba(124, 193, 68, 0.1);
  border-radius: 50%;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.page-hero .lead {
  color: #dce8df;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-meta span {
  padding: 7px 11px;
  color: #dce8df;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 0.78rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 46px;
}

.content-layout > article {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 104px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--forest-900);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  text-decoration: none;
}

.toc a:last-child {
  border-bottom: 0;
}

.toc a:hover {
  color: var(--forest-800);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.table-scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: var(--ink-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.table-scroll-hint.is-hidden {
  visibility: hidden;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--forest-900);
  background: var(--cream-100);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

td p {
  margin: 0;
}

.decision-list {
  display: grid;
  gap: 12px;
}

.decision-row {
  display: grid;
  grid-template-columns: 80px 120px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.decision-id {
  color: var(--forest-800);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.decision-row h3 {
  margin-bottom: 5px;
}

.phase-list {
  display: grid;
  gap: 18px;
}

.phase {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 180px;
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.phase-index {
  color: var(--forest-900);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.phase h3 {
  margin-bottom: 7px;
}

.phase-output {
  color: var(--ink-700);
  font-size: 0.84rem;
}

.progress-card {
  padding: 24px;
  color: var(--white);
  background: var(--forest-900);
  border-radius: var(--radius-md);
}

.progress-card h2,
.progress-card h3 {
  color: var(--white);
}

.progress-value {
  display: block;
  margin: 8px 0;
  color: #bce792;
  font-size: 2.6rem;
  font-weight: 850;
  line-height: 1;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  margin: 18px 0 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange-500);
  border-radius: inherit;
  transition: width 180ms ease;
}

.progress-card p {
  margin: 0;
  color: #dce8df;
  font-size: 0.84rem;
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.task {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.task:hover {
  border-color: #a9c99a;
}

.task input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--forest-700);
}

.task strong,
.task small {
  display: block;
}

.task small {
  margin-top: 3px;
  color: var(--ink-500);
}

.flow-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.flow-node {
  position: relative;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}

.flow-node.central {
  color: var(--white);
  background: var(--forest-900);
  border-color: var(--forest-900);
}

.flow-node.central h3,
.flow-node.central p {
  color: var(--white);
}

.flow-node p {
  margin: 6px 0 0;
  color: var(--ink-700);
  font-size: 0.83rem;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--forest-700);
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
}

.brand-art {
  padding: 28px;
  background: var(--forest-900);
  border-radius: var(--radius-lg);
}

.brand-art img {
  width: 100%;
  border-radius: 20px;
}

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

.swatch {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.swatch-color {
  height: 88px;
}

.swatch-meta {
  padding: 13px 15px;
}

.swatch-meta strong,
.swatch-meta code {
  display: block;
}

.swatch-meta code {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.78rem;
}

.site-footer {
  color: #dce8df;
  background: var(--forest-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 180px;
  padding-block: 34px;
}

.footer-inner strong {
  color: var(--white);
}

.footer-inner p {
  margin: 4px 0 0;
  font-size: 0.84rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-inner a {
  color: #dce8df;
  font-size: 0.84rem;
}

.footer-meta {
  color: #9eb2a5;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    padding: 12px;
    background: var(--forest-950);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-lg);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .nav-link {
    padding: 12px;
  }

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

  .hero-visual {
    display: none;
  }

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

  .status-item:nth-child(2) {
    border-right: 0;
  }

  .status-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .step:nth-child(2)::after {
    display: none;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .phase {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .phase-output {
    grid-column: 2;
  }

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

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    display: none;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .page-shell {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .hero,
  .page-hero {
    padding: 30px 24px;
    border-radius: 20px;
  }

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

  .table-scroll-hint {
    display: block;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .status-row,
  .grid.two,
  .grid.three,
  .grid.four,
  .steps,
  .flow-map,
  .brand-board,
  .swatches {
    grid-template-columns: 1fr;
  }

  .status-item,
  .status-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-item:last-child {
    border-bottom: 0;
  }

  .step::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 28px;
    content: "↓";
  }

  .step:nth-child(2)::after {
    display: grid;
  }

  .section {
    padding-top: 56px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .decision-row,
  .phase {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .phase-output {
    grid-column: auto;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

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

  .footer-meta {
    grid-column: auto;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  body::before,
  .site-header,
  .site-footer,
  .toc,
  .hero-actions,
  .task-list,
  .progress-card {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .page-hero,
  .card,
  .phase,
  .decision-row {
    color: #000;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }

  .hero h1,
  .page-hero h1,
  .hero .lead,
  .page-hero .lead {
    color: #000;
  }
}

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