/* Chapter 5 follows the GOSD paper / teal / navy baseline. */
.gm-chapter {
  --gm-bg: var(--gv-surface, #fff);
  --gm-paper: var(--gv-bg, #f3f8fa);
  --gm-raised: var(--gv-raised, #e5f0f4);
  --gm-ink: var(--gv-ink, #10334d);
  --gm-muted: var(--gv-muted, #526e7f);
  --gm-line: var(--gv-line, #c8d9e2);
  --gm-brand: var(--gv-brand, #156993);
  --gm-gold: var(--gv-gold, #a76b24);
  color: var(--gm-ink);
  min-width: 0;
}
.gm-chapter * {
  box-sizing: border-box;
}
.gm-chapter a {
  color: var(--gm-brand);
  text-underline-offset: 4px;
}
.gm-chapter button,
.gm-chapter input {
  font: inherit;
}
.gm-chapter button {
  border: 1px solid var(--gm-line);
  border-radius: 6px;
  background: var(--gm-bg);
  color: var(--gm-ink);
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.4;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.gm-chapter button:hover {
  background: var(--gm-raised);
  border-color: var(--gm-brand);
}
.gm-chapter button[aria-pressed="true"] {
  background: var(--gm-raised);
  border-color: var(--gm-brand);
  color: var(--gm-brand);
  box-shadow: inset 0 -2px var(--gm-brand);
}
.gm-chapter button:disabled {
  opacity: 0.4;
  cursor: default;
}
.gm-chapter :focus-visible {
  outline: 3px solid var(--gm-gold);
  outline-offset: 3px;
}
.gm-chapter input[type="search"] {
  width: min(100%, 460px);
  padding: 10px 12px;
  border: 1px solid var(--gm-line);
  border-radius: 6px;
  background: var(--gm-bg);
  color: var(--gm-ink);
}
.gm-chapter input::placeholder {
  color: var(--gm-muted);
  opacity: 0.9;
}
.gm-chapter .eyebrow {
  color: var(--gm-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.gm-opening {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--gm-line);
  margin-bottom: 32px;
}
.gm-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--gm-muted);
}
.gm-opening h2 {
  font-size: clamp(30px, 4vw, 54px) !important;
  line-height: 1.26;
  letter-spacing: -0.035em;
  margin: 32px 0 22px !important;
  font-weight: 650;
}
.gm-opening .gm-lead {
  max-width: 850px;
  font-size: 18px;
  line-height: 1.85;
  color: var(--gm-muted);
}
.gm-opening-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 26px 0;
}
.gm-opening-links a {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--gm-line);
  padding-bottom: 7px;
}
.gm-opening-note {
  font-size: 12px !important;
  color: var(--gm-muted);
  line-height: 1.8;
}
.gm-topic {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 2px solid var(--gm-brand);
  scroll-margin-top: 100px;
}
.gm-topic-header {
  max-width: 900px;
}
.gm-topic-header h2 {
  font-size: 32px !important;
  margin: 12px 0 10px !important;
}
.gm-topic-header > p {
  color: var(--gm-muted);
  line-height: 1.9;
}
.gm-topic-header .gm-question {
  font-size: 21px;
  color: var(--gm-ink);
  font-weight: 550;
  margin-bottom: 14px;
}
.gm-metric {
  margin: 24px 0 20px;
  border-left: 3px solid var(--gm-line);
  padding-left: 17px;
}
.gm-metric summary {
  font-size: 13px;
  color: var(--gm-brand);
  cursor: pointer;
}
.gm-metric p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gm-muted);
}
.gm-related {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  font-size: 12px;
}
.gm-section-nav {
  display: flex;
  gap: 7px 21px;
  flex-wrap: wrap;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--gm-line);
  font-size: 12px;
}
.gm-section-nav a {
  text-decoration: none;
}
.gm-findings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 28px 0 42px;
}
.gm-findings > a {
  display: block;
  text-decoration: none;
  color: var(--gm-ink);
  border-top: 1px solid var(--gm-line);
  padding-top: 15px;
}
.gm-findings > a > span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gm-brand);
}
.gm-findings h3 {
  font-size: 17px !important;
  line-height: 1.6;
  margin: 10px 0 !important;
  font-weight: 650;
}
.gm-findings p {
  font-size: 13px !important;
  line-height: 1.85;
  color: var(--gm-muted);
  margin: 0;
}
.gm-narrative {
  margin: 40px 0 18px;
  max-width: 900px;
}
.gm-narrative h3 {
  font-size: 21px !important;
  line-height: 1.6;
  margin: 0 0 10px !important;
}
.gm-narrative p {
  color: var(--gm-muted);
  line-height: 1.9;
  font-size: 15px;
}
.gm-panel {
  position: relative;
  background: var(--gm-bg);
  border: 1px solid var(--gm-line);
  border-radius: 12px;
  padding: 26px 25px 16px;
  margin: 20px 0 32px;
  overflow: hidden;
  scroll-margin-top: 95px;
  min-width: 0;
}
.gm-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.gm-chart-head h3 {
  font-size: 22px !important;
  font-weight: 650;
  line-height: 1.5;
  margin: 7px 0 6px !important;
  letter-spacing: -0.025em;
  color: var(--gm-ink);
}
.gm-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 285px;
  flex-shrink: 0;
}
.gm-tools button {
  font-size: 11px;
  padding: 6px 9px;
}
.gm-chart-deck {
  font-size: 13px !important;
  line-height: 1.8;
  color: var(--gm-muted);
  margin: 6px 0 20px !important;
}
.gm-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin: 0 0 19px;
}
.gm-controls:empty {
  display: none;
}
.gm-control-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.gm-control-group > span,
.gm-control-group > label {
  font-size: 12px;
  color: var(--gm-muted);
}
.gm-controls button {
  font-size: 12px;
  padding: 7px 11px;
}
.gm-segment,
.gm-chips,
.gm-zoom {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.gm-zoom {
  margin-left: auto;
}
.gm-zoom button:first-child,
.gm-zoom button:nth-child(2) {
  min-width: 34px;
}
.gm-view,
.gm-readout {
  min-width: 0;
}
.gm-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  touch-action: pan-y;
}
.gm-svg-action {
  cursor: pointer;
}
.gm-svg-action:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 3px var(--gm-gold));
}
.gm-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 17px 0 20px;
  border-bottom: 1px solid var(--gm-line);
  margin-bottom: 19px;
}
.gm-stats > div {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gm-stats strong {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--gm-brand);
}
.gm-stats span {
  font-size: 12px;
  color: var(--gm-ink);
}
.gm-stats small {
  font-size: 11px;
  color: var(--gm-muted);
  line-height: 1.6;
}
.gm-readout > .gm-stats {
  border-bottom: 0;
  border-top: 1px solid var(--gm-line);
  margin: 12px 0 0;
  padding: 16px 0 5px;
}
.gm-readout > .gm-stats strong {
  font-size: 24px;
}
.gm-note {
  font-size: 12px !important;
  line-height: 1.8 !important;
  color: var(--gm-muted);
  margin: 11px 0 !important;
}
.gm-legend {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gm-muted);
  padding: 5px 0 12px;
}
.gm-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.gm-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.gm-source,
.gm-table {
  border-top: 1px solid var(--gm-line);
  margin: 10px 0 0;
  padding-top: 10px;
  font-size: 12px;
}
.gm-source summary,
.gm-table summary {
  cursor: pointer;
  color: var(--gm-muted);
  padding: 3px 0;
}
.gm-source-body {
  padding: 8px 0;
  overflow-wrap: anywhere;
  color: var(--gm-muted);
  line-height: 1.85;
}
.gm-source-body p {
  font-size: 12px !important;
}
.gm-source-body code {
  font-size: 11px;
}
.gm-table-host {
  overflow: auto;
  max-height: 460px;
  margin-top: 8px;
}
.gm-chapter table {
  width: 100%;
  border-collapse: collapse;
  color: var(--gm-ink);
  font-size: 12px;
}
.gm-chapter th,
.gm-chapter td {
  text-align: left;
  border-bottom: 1px solid var(--gm-line);
  padding: 11px 13px;
  vertical-align: top;
  line-height: 1.7;
}
.gm-chapter th {
  background: var(--gm-raised);
  font-weight: 600;
}
.gm-table-host th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}
.gm-framework-focus {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
  padding: 22px 24px;
  background: var(--gm-paper);
  border-radius: 8px;
  border-left: 3px solid var(--gm-brand);
}
.gm-framework-focus span {
  font-size: 11px;
  color: var(--gm-brand);
  letter-spacing: 0.1em;
}
.gm-framework-focus h4 {
  font-size: 21px;
  margin: 9px 0 12px;
}
.gm-framework-focus b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 7px;
}
.gm-framework-focus p {
  font-size: 13px !important;
  line-height: 1.8;
  color: var(--gm-muted);
}
.gm-framework-focus a {
  font-size: 13px;
  font-weight: 600;
}
.gm-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 20px;
  align-items: start;
}
.gm-map-layout > div {
  align-self: center;
}
.gm-ranking {
  border-left: 1px solid var(--gm-line);
  padding-left: 17px;
}
.gm-ranking h4,
.gm-flow-list h4 {
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--gm-muted);
}
.gm-ranking button {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 3px;
  padding: 7px 5px;
  margin: 1px 0;
  font-size: 11px;
  text-align: left;
  overflow: hidden;
}
.gm-ranking button strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.gm-ranking button i {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gm-brand);
  opacity: 0.4;
}
.gm-month-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--gm-paper);
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 12px;
}
.gm-month-control label {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  white-space: nowrap;
  color: var(--gm-muted);
}
.gm-month-control input {
  width: min(100%, 600px);
  accent-color: var(--gm-brand);
}
.gm-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: center;
}
.gm-flow-list {
  border-left: 1px solid var(--gm-line);
  padding-left: 15px;
  max-height: 480px;
  overflow: auto;
}
.gm-flow-list > div {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gm-line);
}
.gm-flow-list strong {
  font-weight: 550;
}
.gm-flow-list i {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gm-brand);
  opacity: 0.5;
}
.gm-search-wrap {
  position: relative;
  flex: 1;
  min-width: 250px;
}
.gm-search-wrap input {
  font-size: 12px !important;
  width: min(100%, 340px) !important;
}
.gm-search-results {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  background: var(--gm-bg);
  box-shadow: 0 12px 25px #061b2e33;
  border-radius: 6px;
  min-width: 330px;
  max-width: 100%;
  overflow: hidden;
}
.gm-search-results:empty {
  display: none;
}
.gm-search-results button {
  display: block;
  width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
  border: 0;
  border-bottom: 1px solid var(--gm-line);
  border-radius: 0;
}
.gm-search-results p {
  padding: 10px;
  font-size: 12px;
}
.gm-network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 20px;
}
.gm-network-stage {
  position: relative;
  align-self: start;
  background: var(--gm-bg);
  border: 1px solid var(--gm-line);
  border-radius: 6px;
  overflow: hidden;
}
.gm-network-stage > .gm-svg {
  touch-action: none;
}
.gm-stage-hint {
  position: absolute;
  left: 10px;
  bottom: 12px;
  display: block;
  font-size: 10px;
  color: var(--gm-muted);
  background: var(--gm-bg);
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0.95;
}
.gm-three-host {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.gm-three-host[hidden] {
  display: none;
}
.gm-three-ready > .gm-svg {
  visibility: hidden;
}
.gm-three-ready > .gm-stage-hint {
  z-index: 2;
}
.gm-three-failed > .gm-three-host {
  inset: auto 15px 35px;
  height: auto;
  pointer-events: none;
}
.gm-three-status {
  font-size: 12px !important;
  padding: 16px;
  background: var(--gm-bg);
  color: var(--gm-muted);
}
.gm-three-tooltip {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  pointer-events: none;
  font-size: 12px;
  color: var(--gm-ink);
  padding: 8px 12px;
  background: var(--gm-bg);
  border: 1px solid var(--gm-line);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.gm-three-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.gm-node-detail {
  min-width: 0;
  max-height: 620px;
  overflow: auto;
  padding: 3px 12px 3px 0;
  scrollbar-width: thin;
}
.gm-node-detail h4 {
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.gm-node-detail > p {
  font-size: 11px;
  color: var(--gm-muted);
  overflow-wrap: anywhere;
}
.gm-node-detail .gm-stats {
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 12px;
}
.gm-node-detail .gm-stats > div {
  min-width: 85px;
}
.gm-node-detail .gm-stats strong {
  font-size: 24px;
}
.gm-node-detail .gm-stats span {
  font-size: 10px;
}
.gm-node-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
}
.gm-node-actions button {
  font-size: 11px;
  padding: 7px 9px;
}
.gm-neighbors h5 {
  font-size: 12px;
  margin: 16px 0 8px;
  color: var(--gm-ink);
  display: flex;
  justify-content: space-between;
}
.gm-neighbors h5 span {
  color: var(--gm-muted);
}
.gm-neighbors button {
  display: block;
  text-align: left;
  width: 100%;
  font-size: 10px;
  padding: 7px 5px;
  border: 0;
  border-bottom: 1px solid var(--gm-line);
  border-radius: 0;
  overflow-wrap: anywhere;
}
.gm-browser {
  border-top: 1px solid var(--gm-line);
  margin-top: 14px;
  padding-top: 16px;
}
.gm-browser-search {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.gm-browser-search label {
  color: var(--gm-muted);
}
.gm-open-browser-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 25px;
}
.gm-list-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gm-muted);
  padding: 8px 0;
}
.gm-open-list > button {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid var(--gm-line);
  border-radius: 0;
  padding: 9px 5px;
  overflow-wrap: anywhere;
}
.gm-open-list > button b {
  font-weight: 550;
  font-size: 12px;
}
.gm-open-list > button span {
  font-size: 10px;
  color: var(--gm-muted);
}
.gm-pager {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
}
.gm-pager button {
  font-size: 11px;
}
.gm-open-model {
  padding: 15px;
  background: var(--gm-paper);
  border-radius: 6px;
}
.gm-open-model h4 {
  font-size: 16px;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.gm-open-model p {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--gm-muted);
}
.gm-open-model .gm-stats {
  padding: 10px 0;
  gap: 12px;
}
.gm-open-model .gm-stats > div {
  min-width: 90px;
}
.gm-evidence-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gm-line);
  padding: 10px 0;
  font-size: 11px;
}
.gm-evidence-row b {
  width: 100%;
  font-weight: 550;
}
.gm-evidence-note {
  color: var(--gm-gold) !important;
  border-left: 2px solid var(--gm-gold);
  padding-left: 10px;
}
.gm-dossier-scroll {
  overflow: auto;
  scrollbar-width: thin;
}
.gm-dossiers {
  table-layout: fixed;
  min-width: 650px;
}
.gm-dossiers th:first-child {
  width: 135px;
  font-size: 12px;
}
.gm-dossiers thead th {
  background: var(--gm-raised);
  padding: 17px 15px;
}
.gm-dossiers thead span {
  font-size: 11px;
  color: var(--gm-muted);
}
.gm-dossiers h4 {
  font-size: 16px;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.gm-dossiers td {
  padding: 19px 15px;
}
.gm-dossiers p {
  font-size: 12px !important;
  color: var(--gm-muted);
  line-height: 1.8 !important;
  margin: 10px 0;
}
.gm-dossiers a {
  font-size: 11px;
}
.gm-status {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--gm-brand);
}
.gm-status-unknown {
  color: var(--gm-gold);
}
.gm-actions {
  padding: 24px 0 8px;
  margin-top: 28px;
  border-top: 1px solid var(--gm-line);
}
.gm-actions > h3 {
  font-size: 23px !important;
  margin: 10px 0 23px !important;
}
.gm-actions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.gm-actions article > span {
  font-size: 11px;
  color: var(--gm-brand);
}
.gm-actions article h4 {
  font-size: 17px;
  line-height: 1.6;
  margin: 9px 0 12px;
}
.gm-actions article p {
  font-size: 13px !important;
  line-height: 1.85;
  color: var(--gm-muted);
}
.gm-actions article a {
  font-size: 11px;
}
.gm-topic-end {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--gm-line);
  font-size: 12px;
}
.gm-methods {
  margin: 55px 0 20px;
  padding-top: 27px;
  border-top: 2px solid var(--gm-line);
}
.gm-methods h3 {
  font-size: 23px !important;
  margin: 10px 0 25px !important;
}
.gm-methods details {
  border-top: 1px solid var(--gm-line);
  padding: 15px 0;
}
.gm-methods summary {
  cursor: pointer;
  font-size: 14px;
}
.gm-methods p,
.gm-methods li {
  font-size: 12px !important;
  line-height: 1.9;
  color: var(--gm-muted);
  overflow-wrap: anywhere;
}
.gm-chapter #gm-fullscreen {
  width: calc(100vw - 30px);
  max-width: 1800px;
  height: calc(100dvh - 30px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--gm-line);
  border-radius: 12px;
  background: var(--gm-paper);
  color: var(--gm-ink);
}
#gm-fullscreen::backdrop {
  background: #031422b8;
}
.gm-fullscreen-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--gm-line);
  padding: 12px 20px;
  background: var(--gm-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.gm-fullscreen-bar strong {
  font-size: 13px;
  font-weight: 550;
}
.gm-fullscreen-bar > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gm-fullscreen-bar button {
  font-size: 11px;
  padding: 6px 9px;
}
#gm-fullscreen-body {
  height: calc(100% - 58px);
  overflow: auto;
  padding: 18px 28px;
}
#gm-fullscreen-body .gm-panel {
  max-width: 1500px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: 14px 20px;
}
#gm-fullscreen-body .gm-chart-head h3 {
  font-size: 25px !important;
}
#gm-fullscreen-body .gm-svg {
  max-height: 68vh;
}
#gm-fullscreen-body .gm-node-detail {
  max-height: 68vh;
}
#gm-fullscreen-body [data-gm-full] {
  display: none;
}
.gm-modal-open {
  overflow: hidden;
}
.gm-placeholder {
  min-height: 160px;
  border: 1px dashed var(--gm-line);
  border-radius: 12px;
  background: var(--gm-paper);
}
.gm-placeholder:after {
  content: "图表正在全屏中展示";
  display: block;
  text-align: center;
  color: var(--gm-muted);
  font-size: 13px;
  padding-top: 65px;
}
@media (min-width: 1500px) {
  .gm-network-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .gm-map-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}
@media (max-width: 1100px) {
  .gm-panel {
    padding: 20px 18px 14px;
  }
  .gm-chart-head {
    flex-wrap: wrap;
  }
  .gm-tools {
    max-width: none;
    justify-content: flex-start;
  }
  .gm-network-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .gm-node-detail {
    max-height: 260px;
    border-top: 1px solid var(--gm-line);
    padding-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .gm-node-detail > h4,
  .gm-node-detail > .eyebrow,
  .gm-node-detail > p,
  .gm-node-detail > .gm-node-actions {
    grid-column: 1/-1;
  }
  .gm-node-detail > .gm-stats {
    grid-column: 1/-1;
  }
  .gm-flow-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .gm-map-layout {
    grid-template-columns: minmax(0, 1fr) 195px;
  }
  .gm-ranking {
    padding-left: 10px;
  }
  .gm-search-results {
    min-width: 270px;
  }
}
@media (max-width: 760px) {
  .gm-opening {
    padding-top: 15px;
  }
  .gm-topline {
    font-size: 9px;
    gap: 8px;
  }
  .gm-opening h2 {
    font-size: 34px !important;
  }
  .gm-opening .gm-lead {
    font-size: 15px;
  }
  .gm-findings {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .gm-findings > a {
    padding-top: 12px;
  }
  .gm-findings h3 {
    font-size: 16px !important;
  }
  .gm-topic {
    margin-top: 45px;
  }
  .gm-topic-header h2 {
    font-size: 27px !important;
  }
  .gm-topic-header .gm-question {
    font-size: 18px;
  }
  .gm-panel {
    padding: 17px 13px 12px;
    border-radius: 8px;
    margin-bottom: 22px;
  }
  .gm-chart-head h3 {
    font-size: 19px !important;
  }
  .gm-chart-deck {
    font-size: 12px !important;
  }
  .gm-controls {
    gap: 10px;
  }
  .gm-controls button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .gm-control-group > span {
    font-size: 11px;
  }
  .gm-stats {
    gap: 12px;
  }
  .gm-stats > div {
    min-width: 115px;
  }
  .gm-stats strong {
    font-size: 24px;
  }
  .gm-stats small {
    font-size: 10px;
  }
  .gm-framework-focus {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 17px;
  }
  .gm-framework-focus h4 {
    font-size: 18px;
  }
  .gm-map-layout,
  .gm-flow-layout {
    grid-template-columns: 1fr;
  }
  .gm-ranking {
    border-left: 0;
    border-top: 1px solid var(--gm-line);
    padding: 12px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 18px;
  }
  .gm-ranking h4 {
    grid-column: 1/-1;
  }
  .gm-ranking button {
    font-size: 10px;
  }
  .gm-flow-list {
    max-height: 270px;
    border-left: 0;
    padding-left: 0;
  }
  .gm-network-layout {
    gap: 10px;
  }
  .gm-stage-hint {
    font-size: 8px;
    left: 4px;
    bottom: 3px;
  }
  .gm-search-wrap {
    min-width: 100%;
    gap: 6px;
  }
  .gm-search-wrap input {
    max-width: 100%;
  }
  .gm-search-results {
    min-width: 100%;
    max-width: 100%;
  }
  .gm-zoom {
    margin-left: 0;
  }
  .gm-open-browser-results {
    grid-template-columns: 1fr;
  }
  .gm-open-list {
    max-height: 400px;
    overflow: auto;
  }
  .gm-actions > div {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gm-actions article h4 {
    margin-top: 7px;
  }
  .gm-topic-end {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .gm-fullscreen-bar {
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .gm-fullscreen-bar strong {
    font-size: 12px;
  }
  #gm-fullscreen-body {
    padding: 8px;
    height: calc(100% - 90px);
  }
  #gm-fullscreen-body .gm-panel {
    padding: 10px;
  }
  .gm-chapter #gm-fullscreen {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .gm-month-control {
    gap: 9px;
    padding: 10px;
    font-size: 11px;
  }
  .gm-month-control label {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gm-chapter * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .gm-tools,
  .gm-controls,
  .gm-section-nav,
  .gm-source,
  .gm-table,
  .gm-topic-end,
  .gm-fullscreen-bar,
  .gm-search-wrap,
  .gm-month-control {
    display: none !important;
  }
  .gm-panel {
    break-inside: avoid;
    border-color: #bbcbd4;
  }
  .gm-three-host {
    display: none !important;
  }
  .gm-network-stage > .gm-svg {
    visibility: visible !important;
  }
  .gm-node-detail {
    max-height: none;
  }
  .gm-chapter {
    --gm-bg: #fff;
    --gm-ink: #10334d;
    --gm-muted: #526e7f;
    --gm-paper: #fff;
  }
  .gm-topic {
    margin-top: 25px;
  }
}

/* Chapter 5 review: continuous opening and captions shared with print. */
.gm-opening .gm-lead { max-width:none; }
.gm-opening > p { max-width:none; line-height:1.9; }
.gm-opening-finding strong { color:var(--gm-ink); }
.gm-opening-note { font-size:14px !important; }
.gm-opening h2 { font-size:clamp(28px,3.1vw,42px) !important; }
.gm-framework-panel .gm-chart-head { justify-content:flex-end; }
.gm-framework-caption { margin-top:16px; text-align:center; }
.gm-framework-caption h3 { font-size:18px !important; margin:0 !important; }
.gm-framework-print { display:none; }
@media print {
  .gm-framework-panel .gm-view,.gm-framework-panel .gm-readout,.gm-framework-caption { display:none !important; }
  .gm-framework-print { display:block !important; }
  .gm-framework-print svg { width:100%;height:auto; }
}

/* Keep the chapter framework, explanatory focus and caption together. */
.gm-framework-panel { position:relative; }
.gm-framework-panel .gm-view > .gm-svg { max-height:440px; }
.gm-framework-panel .gm-framework-caption { display:block!important; width:100%;padding:7px 0 0!important;margin:0;border-top:1px solid var(--gm-line);text-align:center; }
.gm-framework-panel .gm-framework-caption h3 { font-size:16px!important;line-height:1.6;font-weight:500; }
.gm-framework-panel > :is(.gm-source,.gm-table):not([open]) { display:none; }
.gm-framework-panel > :is(.gm-source,.gm-table)[open] { position:absolute;inset:42px 12px 10px;z-index:12;overflow:auto;padding:18px;background:var(--gm-bg);border:1px solid var(--gm-line);border-radius:6px; }
.gm-framework-panel .gm-framework-focus { padding:12px 18px;gap:24px; }
.gm-framework-panel .gm-framework-focus h4 { font-size:18px!important;margin:4px 0 6px!important; }
.gm-framework-panel .gm-framework-focus p { margin:5px 0!important;line-height:1.7; }
.gm-framework-panel .gm-readout p { margin:6px 0!important; }
@media (min-width:761px) {
 .gm-chapter #gm-fullscreen:has(.gm-framework-panel) { display:grid;grid-template-rows:auto minmax(0,1fr);height:calc(100dvh - 16px);width:calc(100vw - 16px);overflow:hidden;max-width:none; }
 .gm-chapter #gm-fullscreen:not([open]) { display:none; }
 #gm-fullscreen:has(.gm-framework-panel) .gm-fullscreen-bar { position:static;min-height:0;padding:8px 14px; }
 #gm-fullscreen:has(.gm-framework-panel) #gm-fullscreen-body { height:100%;min-height:0;box-sizing:border-box;padding:8px 16px;overflow:hidden; }
 #gm-fullscreen-body .gm-framework-panel { display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;height:100%;min-height:0;gap:6px;box-sizing:border-box;padding:0 12px; }
 #gm-fullscreen-body .gm-framework-panel .gm-chart-head,#gm-fullscreen-body .gm-framework-panel .gm-controls { margin:0;padding:0; }
 #gm-fullscreen-body .gm-framework-panel .gm-view { display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0; }
 #gm-fullscreen-body .gm-framework-panel .gm-view > .gm-svg { min-height:0;height:100%;width:100%;max-height:100%; }
}
@media print { .gm-framework-panel .gm-framework-caption { display:none!important; } }
