:root {
  --fw-ink: #061225;
  --fw-ink-soft: #0b1d37;
  --fw-blue: #1268e8;
  --fw-cyan: #5ed5ff;
  --fw-mint: #65e3c2;
  --fw-paper: #f4f8fd;
  --fw-surface: #ffffff;
  --fw-text: #14243d;
  --fw-muted: #5e708a;
  --fw-line: rgba(16, 46, 86, 0.13);
  --fw-shell: min(1240px, calc(100% - 48px));
  --fw-shadow: 0 24px 70px rgba(8, 34, 72, 0.11);
}

html {
  scroll-padding-top: 154px;
}

body.framework-site {
  background: var(--fw-paper);
  color: var(--fw-text);
}

.framework-site .site-header,
.framework-site .site-header.scrolled {
  background: rgba(6, 18, 37, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.framework-site .brand img {
  filter: none;
}

.framework-site .nav > .brand--tagged img {
  object-fit: contain;
  object-position: center;
}

.framework-site .nav-menu {
  color: #cbd7e7;
}

.fw-shell {
  width: var(--fw-shell);
  margin-inline: auto;
}

.framework-nav {
  position: sticky;
  top: 84px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--fw-line);
  backdrop-filter: blur(18px);
}

.framework-nav__inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 24px;
}

.framework-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0a2c58;
  text-transform: uppercase;
}

.framework-nav__brand img {
  width: 34px;
  height: 30px;
  padding: 3px;
  border: 1px solid rgba(10, 44, 88, 0.12);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.framework-nav__toggle {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--fw-line);
  border-radius: 10px;
  background: #fff;
  color: var(--fw-text);
}

.framework-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.framework-nav__links::-webkit-scrollbar {
  display: none;
}

.framework-nav__links a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 9px;
  color: #536780;
  font-size: 0.82rem;
  font-weight: 700;
}

.framework-nav__links a:hover,
.framework-nav__links a[aria-current="page"] {
  background: #e9f2ff;
  color: #0758bd;
}

.framework-main {
  min-height: 70vh;
}

.fw-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  background:
    radial-gradient(circle at 78% 18%, rgba(36, 147, 255, 0.28), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(74, 229, 195, 0.13), transparent 24%),
    linear-gradient(145deg, #061225 0%, #071b38 58%, #0b2a56 100%);
  color: #fff;
}

.fw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.fw-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 68px;
  align-items: center;
}

.fw-kicker {
  margin-bottom: 17px;
  color: #86dcff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.fw-hero h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(1.95rem, 2.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.fw-hero__lead {
  max-width: 770px;
  margin-bottom: 30px;
  color: #c7d8eb;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.72;
}

.fw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.fw-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.fw-button--primary {
  border-color: #6bd8ff;
  background: #fff;
  color: #06204a;
}

.fw-hero__system {
  position: relative;
  min-height: 430px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(5, 17, 35, 0.52);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.fw-system-stack {
  display: grid;
  gap: 9px;
}

.fw-system-layer {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.fw-system-layer strong {
  font-size: 0.91rem;
}

.fw-system-layer span {
  color: #91a9c6;
  font-size: 0.72rem;
}

.fw-system-layer b {
  color: #65d6ff;
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.fw-system-layer--accent {
  border-color: rgba(98, 214, 255, 0.38);
  background: linear-gradient(90deg, rgba(20, 105, 224, 0.28), rgba(94, 213, 255, 0.08));
}

.fw-hero__note {
  margin: 22px 0 0;
  color: #93a9c4;
  font-size: 0.78rem;
  line-height: 1.5;
}

.fw-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -34px;
  position: relative;
  z-index: 4;
  overflow: hidden;
  border: 1px solid var(--fw-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--fw-shadow);
}

.fw-metric {
  padding: 24px;
}

.fw-metric + .fw-metric {
  border-left: 1px solid var(--fw-line);
}

.fw-metric strong {
  display: block;
  margin-bottom: 4px;
  color: #075bbf;
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
}

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

.fw-section {
  padding: 88px 0;
}

.fw-section--tight {
  padding: 58px 0;
}

.fw-section--white {
  background: #fff;
}

.fw-section--ink {
  background: var(--fw-ink);
  color: #fff;
}

.fw-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}

.fw-section-head h2 {
  margin-bottom: 0;
  color: #09264c;
  font-size: clamp(1.85rem, 2.7vw, 2.8rem);
  letter-spacing: -0.04em;
}

.fw-page-intro h1 {
  margin-bottom: 0;
  color: #09264c;
  font-size: clamp(1.9rem, 2.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.fw-section--ink .fw-section-head h2 {
  color: #fff;
}

.fw-section-head p,
.fw-page-intro__lead {
  margin-bottom: 0;
  color: var(--fw-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.fw-section--ink .fw-section-head p {
  color: #aebed2;
}

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

.fw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 25px;
  border: 1px solid var(--fw-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(8, 38, 78, 0.055);
}

.fw-card:hover {
  border-color: rgba(18, 104, 232, 0.35);
  box-shadow: 0 20px 46px rgba(8, 38, 78, 0.1);
}

.fw-card__index {
  margin-bottom: 28px;
  color: #1680e9;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.fw-card h3 {
  margin-bottom: 12px;
  color: #102b51;
  font-size: 1.22rem;
}

.fw-card p {
  color: var(--fw-muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.fw-card__link {
  margin-top: auto;
  padding-top: 18px;
  color: #075fc9;
  font-size: 0.86rem;
  font-weight: 800;
}

.fw-page-intro {
  padding: 78px 0 58px;
  background:
    radial-gradient(circle at 90% 20%, rgba(80, 190, 255, 0.14), transparent 25%),
    #fff;
  border-bottom: 1px solid var(--fw-line);
}

.fw-page-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(290px, 0.52fr);
  gap: 70px;
  align-items: end;
}

.fw-page-intro h1 {
  margin-bottom: 20px;
}

.fw-page-intro__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fw-page-intro__meta span {
  padding: 13px;
  border: 1px solid var(--fw-line);
  border-radius: 12px;
  background: rgba(244, 248, 253, 0.75);
  color: #526983;
  font-size: 0.78rem;
  font-weight: 700;
}

.fw-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.fw-rail {
  position: sticky;
  top: 174px;
  padding: 17px;
  border: 1px solid var(--fw-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
}

.fw-rail strong {
  display: block;
  margin-bottom: 10px;
  color: #193960;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fw-rail a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: #65768d;
  font-size: 0.8rem;
  line-height: 1.35;
}

.fw-rail a:hover {
  background: #eaf3ff;
  color: #075fc9;
}

.fw-content {
  min-width: 0;
}

.fw-content > section + section {
  margin-top: 82px;
  padding-top: 76px;
  border-top: 1px solid var(--fw-line);
}

.fw-content h2 {
  margin-bottom: 20px;
  color: #0a2b55;
  font-size: clamp(1.5rem, 1.9vw, 2rem);
  line-height: 1.18;
}

.fw-content h3 {
  margin: 34px 0 12px;
  color: #173c67;
  font-size: 1.25rem;
}

.fw-content p,
.fw-content li {
  color: #40546e;
  line-height: 1.78;
}

.fw-content code,
.fw-code {
  padding: 0.12em 0.38em;
  border-radius: 5px;
  background: #e9f1fb;
  color: #064f9e;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.fw-standfirst {
  padding: 25px 28px;
  border-left: 4px solid #1570e6;
  border-radius: 0 16px 16px 0;
  background: #eaf3ff;
}

.fw-standfirst p:last-child {
  margin-bottom: 0;
}

.fw-callout {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid rgba(18, 104, 232, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff, #edf6ff);
}

.fw-callout strong {
  display: block;
  margin-bottom: 7px;
  color: #0a58b2;
}

.fw-callout p:last-child {
  margin-bottom: 0;
}

.fw-decision-grid,
.fw-mechanism-grid,
.fw-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.fw-decision,
.fw-mechanism,
.fw-family {
  padding: 22px;
  border: 1px solid var(--fw-line);
  border-radius: 15px;
  background: #fff;
}

.fw-decision b,
.fw-mechanism b,
.fw-family b {
  display: block;
  margin-bottom: 8px;
  color: #0b3568;
}

.fw-decision p,
.fw-mechanism p,
.fw-family p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.fw-table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--fw-line);
  border-radius: 15px;
  background: #fff;
}

.fw-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.fw-table th,
.fw-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--fw-line);
  text-align: left;
  vertical-align: top;
  font-size: 0.84rem;
  line-height: 1.55;
}

.fw-table th {
  background: #edf5ff;
  color: #153f71;
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

.fw-table code {
  white-space: nowrap;
}

.fw-diagram {
  margin: 34px 0;
  padding: 24px;
  border: 1px solid var(--fw-line);
  border-radius: 20px;
  background: #07172e;
  color: #fff;
  box-shadow: 0 18px 50px rgba(5, 25, 55, 0.13);
}

.fw-diagram__title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.fw-diagram__title strong {
  color: #fff;
}

.fw-diagram__title span {
  color: #7bcfff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fw-diagram figcaption {
  margin-top: 18px;
  color: #92a8c4;
  font-size: 0.78rem;
  line-height: 1.55;
}

.fw-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.fw-flow__node {
  position: relative;
  min-height: 112px;
  padding: 15px;
  border: 1px solid rgba(111, 207, 255, 0.24);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.fw-flow__node:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -18px;
  top: 42%;
  color: #50c6ff;
  font-size: 1.1rem;
}

.fw-flow__node b {
  display: block;
  margin-bottom: 6px;
  color: #78d7ff;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.fw-flow__node span {
  color: #c0d0e3;
  font-size: 0.78rem;
  line-height: 1.45;
}

.fw-layers {
  display: grid;
  gap: 8px;
}

.fw-layer {
  display: grid;
  grid-template-columns: 70px minmax(160px, 0.55fr) 1fr;
  gap: 15px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.fw-layer b {
  color: #64d1ff;
  font-family: "Manrope", sans-serif;
}

.fw-layer strong {
  color: #fff;
}

.fw-layer span {
  color: #9db0c9;
  font-size: 0.78rem;
}

.fw-zone-map {
  display: grid;
  grid-template-columns: 0.36fr 1fr 0.52fr;
  grid-template-rows: auto auto minmax(155px, auto) auto;
  gap: 8px;
}

.fw-zone {
  padding: 12px;
  border: 1px solid rgba(101, 211, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #bcd0e6;
  font-size: 0.76rem;
}

.fw-zone b {
  display: block;
  margin-bottom: 4px;
  color: #72d8ff;
}

.fw-zone--commands,
.fw-zone--filters {
  grid-column: 1 / -1;
}

.fw-zone--grid {
  grid-column: 1 / 3;
}

.fw-zone--status {
  grid-column: 1 / -1;
}

.fw-timeline {
  counter-reset: fwstep;
  display: grid;
  gap: 0;
  margin: 28px 0;
}

.fw-step {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 32px;
}

.fw-step::before {
  counter-increment: fwstep;
  content: counter(fwstep, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0d65d9;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.fw-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50px;
  bottom: 2px;
  left: 23px;
  width: 1px;
  background: #bed2e8;
}

.fw-step h3 {
  margin: 2px 0 7px;
}

.fw-step p {
  margin-bottom: 0;
}

.fw-media {
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--fw-line);
  border-radius: 18px;
  background: #07172e;
  box-shadow: var(--fw-shadow);
}

.fw-media img,
.fw-media video {
  display: block;
  width: 100%;
  height: auto;
}

.fw-media figcaption {
  padding: 14px 17px;
  color: #a9bed6;
  font-size: 0.78rem;
  line-height: 1.5;
}

.fw-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.fw-media-grid .fw-media {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.fw-media-grid .fw-media img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.fw-media-grid .fw-media figcaption {
  margin-top: auto;
}

.fw-reference-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 28px 0 16px;
}

.fw-search {
  position: relative;
}

.fw-search input {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid #afc6df;
  border-radius: 13px;
  background: #fff;
  color: var(--fw-text);
  outline: none;
}

.fw-search input:focus {
  border-color: #1671e6;
  box-shadow: 0 0 0 4px rgba(22, 113, 230, 0.12);
}

.fw-clear {
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--fw-line);
  border-radius: 11px;
  background: #fff;
  color: #315579;
  font-weight: 800;
}

.fw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.fw-filter {
  padding: 8px 11px;
  border: 1px solid #c5d5e7;
  border-radius: 999px;
  background: #fff;
  color: #526b86;
  font-size: 0.78rem;
  font-weight: 800;
}

.fw-filter[aria-pressed="true"] {
  border-color: #0c64d4;
  background: #0c64d4;
  color: #fff;
}

.fw-reference-status {
  margin-bottom: 16px;
  color: var(--fw-muted);
  font-size: 0.82rem;
}

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

.fw-reference-card {
  overflow: hidden;
  border: 1px solid var(--fw-line);
  border-radius: 15px;
  background: #fff;
}

.fw-reference-card[hidden] {
  display: none;
}

.fw-reference-card summary {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.fw-reference-card summary::-webkit-details-marker {
  display: none;
}

.fw-reference-card summary::after {
  content: "+";
  color: #0b66d4;
  font-size: 1.3rem;
}

.fw-reference-card[open] summary::after {
  content: "\2212";
}

.fw-reference-card__name {
  color: #073d7b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 800;
}

.fw-reference-card__identity {
  color: #52657e;
  font-size: 0.83rem;
}

.fw-reference-card__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 20px;
  border-top: 1px solid var(--fw-line);
  background: #f8fbff;
}

.fw-reference-card__body h3 {
  margin: 0 0 6px;
  color: #134275;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fw-reference-card__body p {
  margin-bottom: 0;
  color: #4c607a;
  font-size: 0.84rem;
  line-height: 1.62;
}

.fw-reference-card__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fw-chip {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e5f0fd;
  color: #2e5e91;
  font-size: 0.69rem;
  font-weight: 800;
}

.fw-next {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin-top: 70px;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #08204a, #0d69d7);
  color: #fff;
}

.fw-next h2 {
  margin-bottom: 7px;
  color: #fff;
  font-size: 1.55rem;
}

.fw-next p {
  margin-bottom: 0;
  color: #c8dbef;
}

.fw-next a {
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.framework-site footer {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .fw-hero__grid,
  .fw-page-intro__grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .fw-hero__system {
    width: 100%;
    max-width: 760px;
    min-height: auto;
  }

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

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

  .fw-rail {
    position: static;
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }

  .fw-rail strong {
    display: none;
  }

  .fw-rail a {
    flex: 0 0 auto;
  }
}

@media (max-width: 900px) {
  :root {
    --fw-shell: min(100% - 32px, 760px);
  }

  html {
    scroll-padding-top: 142px;
  }

  .framework-site .nav-menu {
    background: #07162d;
  }

  .framework-nav__inner {
    min-height: 56px;
  }

  .framework-nav__toggle {
    display: block;
  }

  .framework-nav__links {
    display: none;
    position: absolute;
    inset: 56px 0 auto;
    max-height: calc(100vh - 140px);
    padding: 15px 16px 22px;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--fw-line);
    box-shadow: 0 18px 35px rgba(9, 35, 72, 0.12);
  }

  .framework-nav__links.is-open {
    display: flex;
  }

  .fw-hero {
    padding: 78px 0 68px;
  }

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

  .fw-metric:nth-child(3) {
    border-left: 0;
  }

  .fw-metric:nth-child(n + 3) {
    border-top: 1px solid var(--fw-line);
  }

  .fw-section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fw-section,
  .fw-section--tight {
    padding: 64px 0;
  }

  .fw-flow {
    grid-template-columns: 1fr;
  }

  .fw-media-grid {
    grid-template-columns: 1fr;
  }

  .fw-media-grid .fw-media img {
    aspect-ratio: auto;
  }

  .fw-flow__node {
    min-height: auto;
  }

  .fw-flow__node:not(:last-child)::after {
    content: "\2193";
    right: 50%;
    top: auto;
    bottom: -22px;
  }

  .fw-layer {
    grid-template-columns: 50px 1fr;
  }

  .fw-layer span {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .fw-hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.3rem);
  }

  .fw-system-layer {
    grid-template-columns: 42px 1fr;
  }

  .fw-system-layer b {
    grid-column: 2;
  }

  .fw-card-grid,
  .fw-decision-grid,
  .fw-mechanism-grid,
  .fw-family-grid {
    grid-template-columns: 1fr;
  }

  .fw-card {
    min-height: 220px;
  }

  .fw-metrics {
    grid-template-columns: 1fr;
  }

  .fw-metric + .fw-metric,
  .fw-metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--fw-line);
  }

  .fw-page-intro__meta {
    grid-template-columns: 1fr;
  }

  .fw-zone-map {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .fw-zone,
  .fw-zone--commands,
  .fw-zone--filters,
  .fw-zone--grid,
  .fw-zone--status {
    grid-column: 1;
  }

  .fw-reference-tools {
    grid-template-columns: 1fr;
  }

  .fw-reference-card summary {
    grid-template-columns: 1fr auto;
    gap: 7px 14px;
  }

  .fw-reference-card__identity {
    grid-column: 1 / -1;
  }

  .fw-reference-card summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .fw-reference-card__body {
    grid-template-columns: 1fr;
  }

  .fw-reference-card__meta {
    grid-column: 1;
  }

  .fw-next {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .framework-nav,
  .fw-actions,
  .fw-reference-tools,
  .fw-filters,
  footer {
    display: none !important;
  }

  .fw-hero,
  .fw-section--ink,
  .fw-diagram {
    color: #111;
    background: #fff;
  }

  .fw-layout {
    display: block;
  }

  .fw-rail {
    display: none;
  }
}
