:root {
  --ink: #17352b;
  --ink-2: #294c41;
  --muted: #637a72;
  --line: #d8e4df;
  --line-strong: #bdd1c9;
  --paper: #fbfdfb;
  --surface: #ffffff;
  --surface-2: #f4f8f5;
  --green: #2f7956;
  --green-dark: #1f5d40;
  --green-soft: #def3e5;
  --blue: #4d7ca8;
  --blue-soft: #e7f0fa;
  --amber: #a86f16;
  --amber-soft: #fff1d5;
  --violet: #725ca0;
  --violet-soft: #eee9f8;
  --coral: #ad604a;
  --coral-soft: #fce9e2;
  --shadow-sm: 0 1px 2px rgba(23, 53, 43, 0.04), 0 8px 24px rgba(23, 53, 43, 0.04);
  --shadow-md: 0 16px 50px rgba(23, 53, 43, 0.1);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --sidebar: 270px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 18px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 18px;
}

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 18px 26px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 8px 28px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px #b7ddc6;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-radius: 999px 999px 999px 0;
  background: var(--green-dark);
  transform: rotate(-45deg);
}

.brand-mark::before {
  width: 10px;
  height: 19px;
  left: 12px;
  top: 13px;
}

.brand-mark::after {
  width: 9px;
  height: 15px;
  right: 10px;
  top: 10px;
  transform: rotate(40deg);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group {
  margin: 22px 0;
}

.nav-label {
  display: block;
  margin: 0 12px 8px;
  color: #8aa097;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.nav-list a {
  display: flex;
  min-height: 38px;
  gap: 9px;
  align-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav-list a::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.nav-list a:hover {
  background: var(--surface-2);
}

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

.nav-list a[aria-current="page"]::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 121, 86, 0.12);
}

.sidebar-note {
  margin: 28px 8px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.page {
  min-width: 0;
}

.topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid rgba(216, 228, 223, 0.75);
  background: rgba(251, 253, 251, 0.88);
  backdrop-filter: blur(14px);
}

.breadcrumb {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.topbar-link,
.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.topbar-link:hover,
.button:hover {
  border-color: #91b1a4;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.content {
  width: calc(100% - 68px);
  max-width: var(--content);
  margin: 0 auto;
  padding: 68px 0 90px;
}

.hero {
  position: relative;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  align-items: end;
  margin-bottom: 54px;
  padding: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 12%, rgba(190, 226, 204, 0.55), transparent 32%),
    linear-gradient(145deg, #ffffff 10%, #f5faf6 100%);
  box-shadow: var(--shadow-sm);
}

.hero,
.hero-copy,
.hero-aside,
.section,
.diagram-card,
.stat,
.card,
.module-card {
  min-width: 0;
  max-width: 100%;
}

.hero::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(47, 121, 86, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 35px rgba(47, 121, 86, 0.035), 0 0 0 70px rgba(47, 121, 86, 0.025);
}

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

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.45rem, 4.2vw, 4.5rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  font-weight: 720;
}

h3 {
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}

.hero-aside {
  padding: 20px;
  border: 1px solid #cbe1d3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.hero-aside-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-aside strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.hero-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -28px 24px 62px;
  position: relative;
  z-index: 2;
}

.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.section {
  margin-top: 72px;
  scroll-margin-top: 30px;
}

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

.section-head p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.module-card,
.decision-card,
.phase-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card p,
.module-card p,
.decision-card p,
.phase-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card ul,
.module-card ul,
.decision-card ul,
.phase-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.card li + li,
.module-card li + li,
.decision-card li + li,
.phase-card li + li {
  margin-top: 6px;
}

.module-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.module-card:hover {
  border-color: #aac9bc;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.module-card::after {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.module-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.module-card[data-tone="blue"] .module-number { background: var(--blue-soft); color: var(--blue); }
.module-card[data-tone="amber"] .module-number { background: var(--amber-soft); color: var(--amber); }
.module-card[data-tone="violet"] .module-number { background: var(--violet-soft); color: var(--violet); }
.module-card[data-tone="coral"] .module-number { background: var(--coral-soft); color: var(--coral); }

.module-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.module-link::after {
  content: "→";
  transition: transform 150ms ease;
}

.module-link:hover::after {
  transform: translateX(4px);
}

.diagram-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.diagram-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.diagram-toolbar strong {
  font-size: 13px;
}

.diagram-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.diagram-actions a,
.diagram-actions button {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.diagram-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  background:
    linear-gradient(90deg, rgba(241, 247, 243, 0.7) 1px, transparent 1px),
    linear-gradient(rgba(241, 247, 243, 0.7) 1px, transparent 1px),
    white;
  background-size: 24px 24px;
}

.diagram-scroll img {
  display: block;
  width: 100%;
  min-width: 760px;
  max-height: 720px;
  object-fit: contain;
  padding: 24px;
  cursor: zoom-in;
}

.diagram-caption {
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #c9ded1;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
}

.pill.blue { border-color: #cadbeb; background: var(--blue-soft); color: var(--blue); }
.pill.amber { border-color: #edd7ad; background: var(--amber-soft); color: var(--amber); }
.pill.violet { border-color: #d9cfee; background: var(--violet-soft); color: var(--violet); }
.pill.coral { border-color: #efd0c5; background: var(--coral-soft); color: var(--coral); }

.callout {
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  margin: 26px 0;
  padding: 22px;
  border: 1px solid #c9ded1;
  border-radius: 18px;
  background: #f1f9f4;
}

.callout.warn {
  border-color: #eed4aa;
  background: #fff8eb;
}

.callout.risk {
  border-color: #efcec2;
  background: #fff5f1;
}

.callout-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: white;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 0 0 1px rgba(47, 121, 86, 0.12);
}

.callout.warn .callout-icon { color: var(--amber); }
.callout.risk .callout-icon { color: var(--coral); }

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

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.flow-list,
.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li,
.timeline li {
  position: relative;
  display: grid;
  min-height: 92px;
  gap: 18px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding-bottom: 20px;
}

.flow-list li:not(:last-child)::before,
.timeline li:not(:last-child)::before {
  position: absolute;
  left: 20px;
  top: 42px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b8d4c3;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
}

.flow-list h3,
.timeline h3 {
  margin-top: 2px;
}

.flow-list p,
.timeline p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td strong {
  color: var(--ink);
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  padding: 0.15em 0.4em;
  border-radius: 5px;
  background: #edf3ef;
  color: #24533f;
  font-size: 0.88em;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid #294b40;
  border-radius: var(--radius);
  background: #17352b;
  color: #e7f3ec;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.contract {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contract > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.contract dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contract dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.phase-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phase-card {
  padding-top: 58px;
}

.phase-card::before {
  position: absolute;
  left: 24px;
  top: 22px;
  height: 5px;
  width: 52px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.phase-card:nth-child(3n + 2)::before { background: var(--blue); }
.phase-card:nth-child(3n + 3)::before { background: var(--amber); }

.phase-meta {
  display: block;
  margin-top: 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

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

.decision-card {
  display: grid;
  gap: 15px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.decision-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 850;
}

.decision-card p {
  margin-top: 7px;
}

.page-nav {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.page-nav a {
  display: grid;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
}

.page-nav a:last-child {
  text-align: right;
}

.page-nav span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-nav strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 76px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

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

.diagram-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  padding: 32px;
  background: rgba(17, 37, 31, 0.85);
  backdrop-filter: blur(10px);
}

.diagram-modal[data-open="true"] {
  display: grid;
  place-items: center;
}

.diagram-modal-inner {
  position: relative;
  width: min(96vw, 1700px);
  height: min(92vh, 1050px);
  overflow: auto;
  border-radius: 20px;
  background: white;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.diagram-modal img {
  display: block;
  width: 100%;
  min-width: 1000px;
  padding: 32px;
}

.modal-close {
  position: fixed;
  z-index: 1;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    max-width: 520px;
  }

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

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

@media (max-width: 860px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 70;
    left: 0;
    top: 0;
    width: min(86vw, 320px);
    height: 100vh;
    transform: translateX(-105%);
    box-shadow: var(--shadow-md);
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open::after {
    position: fixed;
    z-index: 60;
    inset: 0;
    background: rgba(23, 53, 43, 0.34);
    content: "";
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    padding: 0 20px;
  }

  .topbar-link.hide-mobile {
    display: none;
  }

  .content {
    width: calc(100% - 36px);
    max-width: var(--content);
    padding-top: 34px;
  }

  .hero {
    padding: 30px;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -16px 12px 50px;
  }

  .split,
  .decision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .card-grid,
  .card-grid.two,
  .phase-grid,
  .page-nav {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .section-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 26px 22px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .topbar-actions .button {
    display: none;
  }

  .diagram-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagram-scroll img {
    min-width: 680px;
  }

  .page-nav a:last-child {
    text-align: left;
  }
}

@media print {
  .sidebar,
  .topbar,
  .page-nav,
  .diagram-actions,
  .diagram-modal {
    display: none !important;
  }

  .site-shell {
    display: block;
  }

  .content {
    width: 100%;
    padding: 0;
  }

  .hero,
  .card,
  .module-card,
  .diagram-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
