body.gdl-notes-page {
  --tda-yellow: #e7cf74;
  --tda-orange: #e5a16d;
  --tda-green: #8fc88e;
  --tda-blue: #89b6e3;
  --tda-pink: #df9dbf;
  --tda-violet: #c0b6f0;
}

body.gdl-notes-page .tda-notebook::before {
  opacity: 0.08;
}

body.gdl-notes-page .tda-display {
  max-width: 11.5ch;
}

body.gdl-notes-page .tda-callout-label,
body.gdl-notes-page .tda-figure-kicker,
body.gdl-notes-page .tda-widget-kicker {
  display: none;
}

body.gdl-notes-page .tda-callout,
body.gdl-notes-page .tda-widget,
body.gdl-notes-page .tda-figure,
body.gdl-notes-page .tda-toc-card {
  background: rgba(14, 19, 17, 0.28);
}

body.gdl-notes-page .tda-button,
body.gdl-notes-page .tda-widget-button {
  background: rgba(20, 27, 23, 0.22);
}

body.gdl-notes-page .tda-button.is-primary {
  background: rgba(169, 196, 178, 0.07);
}

body.gdl-notes-page .tda-widget-button.is-active {
  background: rgba(169, 196, 178, 0.08);
}

.gdl-hero-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.9fr);
}

.gdl-hero-diagram {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.7rem;
}

.gdl-hero-diagram svg {
  background: rgba(12, 17, 15, 0.18);
  border-radius: 12px;
  display: block;
  height: auto;
  width: 100%;
}

.gdl-strip-label {
  color: var(--tda-ink-faint);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.gdl-why-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-top: 0.85rem;
}

.gdl-why-item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.35rem;
  padding: 0 0.9rem;
}

.gdl-why-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.gdl-why-item strong,
.gdl-reference-card strong {
  color: var(--tda-ink);
  font-size: 0.92rem;
}

.gdl-why-item p,
.gdl-reference-card p {
  color: var(--tda-ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

.gdl-domain-grid,
.gdl-application-grid,
.gdl-checklist-grid,
.gdl-reference-grid {
  display: grid;
  gap: 1rem;
}

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

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

.gdl-reference-card {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem 0 0;
}

.gdl-reference-card a {
  color: var(--tda-ink);
  text-decoration-color: rgba(169, 196, 178, 0.32);
  text-underline-offset: 0.15rem;
}

.gdl-reference-card a:hover {
  color: var(--site-accent);
}

.gdl-svg-label,
.gdl-svg-small,
.gdl-svg-number,
.gdl-svg-title {
  fill: var(--tda-ink);
  font-family: var(--site-font-stack);
}

.gdl-svg-label {
  font-size: 12px;
}

.gdl-svg-small {
  fill: var(--tda-ink-soft);
  font-size: 10.5px;
}

.gdl-svg-number {
  font-size: 10px;
}

.gdl-svg-title {
  font-size: 13px;
}

.gdl-axis,
.gdl-grid-line,
.gdl-arrow,
.gdl-edge,
.gdl-manifold,
.gdl-geodesic,
.gdl-ambient-chord,
.gdl-neighborhood,
.gdl-frame-axis,
.gdl-curve-band {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gdl-axis {
  stroke: rgba(214, 226, 219, 0.52);
  stroke-width: 1.3;
}

.gdl-grid-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.gdl-arrow {
  stroke: rgba(169, 196, 178, 0.72);
  stroke-width: 2.8;
}

.gdl-edge {
  stroke: rgba(214, 226, 219, 0.26);
  stroke-width: 2;
}

.gdl-edge.is-bottleneck {
  stroke: rgba(229, 161, 109, 0.9);
  stroke-width: 4.5;
}

.gdl-manifold {
  stroke: rgba(140, 182, 227, 0.86);
  stroke-width: 5;
}

.gdl-curve-band {
  stroke: rgba(169, 196, 178, 0.2);
  stroke-width: 18;
}

.gdl-geodesic {
  stroke: rgba(231, 207, 116, 0.92);
  stroke-width: 4.2;
}

.gdl-ambient-chord {
  stroke: rgba(229, 161, 109, 0.78);
  stroke-dasharray: 5 5;
  stroke-width: 2.4;
}

.gdl-neighborhood {
  stroke: rgba(169, 196, 178, 0.56);
  stroke-dasharray: 6 6;
  stroke-width: 1.4;
}

.gdl-frame-axis {
  stroke: rgba(192, 182, 240, 0.86);
  stroke-width: 2.6;
}

.gdl-node,
.gdl-bar,
.gdl-cell,
.gdl-swatch {
  stroke-width: 1.3;
}

.gdl-node.is-blue,
.gdl-bar.is-blue,
.gdl-cell.is-blue,
.gdl-swatch.is-blue {
  fill: rgba(137, 182, 227, 0.25);
  stroke: rgba(137, 182, 227, 0.96);
}

.gdl-node.is-green,
.gdl-bar.is-green,
.gdl-cell.is-green,
.gdl-swatch.is-green {
  fill: rgba(143, 200, 142, 0.24);
  stroke: rgba(143, 200, 142, 0.96);
}

.gdl-node.is-yellow,
.gdl-bar.is-yellow,
.gdl-cell.is-yellow,
.gdl-swatch.is-yellow {
  fill: rgba(231, 207, 116, 0.22);
  stroke: rgba(231, 207, 116, 0.96);
}

.gdl-node.is-orange,
.gdl-bar.is-orange,
.gdl-cell.is-orange,
.gdl-swatch.is-orange {
  fill: rgba(229, 161, 109, 0.22);
  stroke: rgba(229, 161, 109, 0.96);
}

.gdl-node.is-pink,
.gdl-bar.is-pink,
.gdl-cell.is-pink,
.gdl-swatch.is-pink {
  fill: rgba(223, 157, 191, 0.22);
  stroke: rgba(223, 157, 191, 0.96);
}

.gdl-patch,
.gdl-patch.is-active {
  stroke-width: 1.1;
}

.gdl-patch {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.08);
}

.gdl-patch.is-active {
  fill: rgba(137, 182, 227, 0.28);
  stroke: rgba(137, 182, 227, 0.9);
}

.gdl-patch.is-kernel {
  fill: rgba(231, 207, 116, 0.16);
  stroke: rgba(231, 207, 116, 0.84);
}

.gdl-badge {
  fill: rgba(20, 27, 23, 0.72);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.gdl-widget-note {
  color: var(--tda-ink-faint);
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 1180px) {
  .gdl-hero-grid,
  .gdl-why-grid,
  .gdl-domain-grid,
  .gdl-application-grid,
  .gdl-checklist-grid,
  .gdl-reference-grid {
    grid-template-columns: 1fr;
  }

  .gdl-why-grid {
    gap: 0.75rem;
  }

  .gdl-why-item,
  .gdl-why-item:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0 0;
  }
}

@media (max-width: 840px) {
  body.gdl-notes-page .tda-display {
    max-width: 10ch;
  }
}
