/* =========================================================
   Inner pages — service, notes and article layouts
   Loaded after styles.css on every non-home page.
   ========================================================= */

:root {
  --paper-2: var(--paper-soft);
  --paper-3: var(--paper-deep);
  --white: var(--paper-soft);
  --ink-2: #15171f;
  --ink-3: #20232d;
  --cyan: var(--blue);
  --cyan-deep: var(--blue-deep);
  --cyan-soft: #b9c4ff;
  --yellow: var(--signal);
  --yellow-deep: #4d6b00;
  --orange: #ff6a3d;
  --orange-deep: #a43b0c;
  --muted: #676761;
  --line-strong: rgba(10, 11, 14, 0.3);
  --max: var(--max-width);
  --radius: 3px;
  --radius-lg: 18px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
}

/* Header on light inner pages */

body.page-inner .site-header {
  --header-fg: var(--ink);
  --header-bg: var(--paper);
  --header-line: rgba(10, 11, 14, 0.18);
  --header-cta-bg: var(--ink);
  --header-cta-fg: var(--paper);
  --toggle-border: rgba(10, 11, 14, 0.2);
  --toggle-active-bg: var(--ink);
  --toggle-active-fg: var(--paper);
  background: rgba(242, 239, 231, 0.92);
  border-bottom-color: rgba(10, 11, 14, 0.09);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

body.page-inner .site-header.is-scrolled {
  background: rgba(242, 239, 231, 0.96);
}

body.page-inner .brand-dot {
  color: var(--blue);
}

body.page-inner .nav-link[aria-current="page"] {
  opacity: 1;
}

body.page-inner .nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: translate(-50%, 0);
  background: var(--blue);
}

/* Shared small pieces used by inner pages */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
}

.page-inner .button {
  min-height: 48px;
  margin-top: 0;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
}

.page-inner .button .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.page-inner .button:hover .icon {
  transform: translateX(4px);
}

.page-inner .button--ink {
  background: var(--ink);
  color: var(--paper);
}

.page-inner .button--ink:hover {
  background: var(--ink-2);
}

.page-inner .button--line {
  border-color: var(--line-strong);
  color: var(--ink);
}

.page-inner .button--line:hover {
  background: var(--ink);
  color: var(--paper);
}

.page-inner .button--cyan {
  background: var(--blue);
  color: var(--cream);
}

.page-inner .button--cyan:hover {
  background: var(--blue-deep);
}

.page-inner .button--ghost {
  border-color: rgba(244, 241, 233, 0.28);
  color: var(--cream);
}

.page-inner .button--ghost:hover {
  border-color: rgba(244, 241, 233, 0.6);
  background: rgba(244, 241, 233, 0.08);
}

.page-actions .button {
  margin-top: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.text-link:hover {
  gap: 13px;
  color: var(--orange-deep);
}

.text-link--light {
  color: var(--paper);
}

.text-link--light:hover {
  color: var(--signal);
}

.text-link--muted {
  border-color: var(--line-strong);
  color: var(--muted);
  font-size: 12.5px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.55);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
}

.big-quote {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.note-meta span {
  color: var(--orange-deep);
}

.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.note-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.note-arrow .icon {
  width: 15px;
  height: 15px;
}

.note-arrow:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.content-section .section-label {
  margin-bottom: clamp(30px, 4vw, 52px);
}

/* ==========================================================================
   Inner pages — hero and shared page blocks
   ========================================================================== */

.page-inner {
  background: var(--paper);
}

.page-inner main {
  display: block;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -20vw;
  right: -14vw;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb, 0, 207, 232), 0.22), transparent 66%);
  pointer-events: none;
}

.page-training {
  --accent: var(--cyan);
  --accent-deep: var(--cyan-deep);
  --accent-rgb: 0, 207, 232;
}

.page-enterprise {
  --accent: var(--yellow);
  --accent-deep: var(--yellow-deep);
  --accent-rgb: 255, 211, 78;
}

.page-gitdata {
  --accent: var(--orange);
  --accent-deep: var(--orange-deep);
  --accent-rgb: 255, 122, 47;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.breadcrumb span {
  color: var(--line-strong);
}

.page-hero .eyebrow {
  margin-top: 36px;
  color: var(--accent-deep);
}

.page-hero .live-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 0, 207, 232), 0.16);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  margin-top: 10px;
}

.page-title {
  max-width: none;
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 84px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-wrap: balance;
}

.page-lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.68;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.page-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.66);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.art-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 28px 60px rgba(4, 33, 38, 0.18);
}

.art-card::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -20%;
  width: 70%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb, 0, 207, 232), 0.36), transparent 66%);
  pointer-events: none;
}

.art-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-head b {
  color: var(--accent);
  font-weight: 500;
}

.art-body {
  position: relative;
  z-index: 1;
  padding: 22px 0 4px;
}

.capability-map {
  display: grid;
  gap: 10px;
}

.capability-row {
  display: grid;
  grid-template-columns: 74px 1fr 34px;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}

.capability-row span:first-child {
  color: var(--muted-light);
}

.capability-row span:last-child {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: right;
}

.capability-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(247, 242, 231, 0.12);
  overflow: hidden;
}

.capability-bar i {
  display: block;
  width: var(--w, 60%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(247, 242, 231, 0.5));
}

.context-graph {
  width: 100%;
  height: auto;
}

.session-card {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.session-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.session-tab {
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.session-tab:hover {
  color: var(--ink);
}

.session-tab.is-active {
  border-color: var(--accent);
  color: var(--ink);
}

.session-panel h3 {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.session-panel p {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.session-panel .session-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (min-width: 901px) {
  .session-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 52px);
  }

  .session-tabs {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
    padding-right: 18px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .session-tab {
    width: 100%;
    padding: 12px 14px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    text-align: left;
  }

  .session-tab.is-active {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
    background: rgba(var(--accent-rgb, 0, 207, 232), 0.07);
  }

  .session-panels {
    padding: 4px 0;
  }

  .session-panel p {
    max-width: 78ch;
  }
}

.repo-tree {
  display: grid;
  gap: 6px;
  padding: 4px 0;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
}

.repo-tree .tree-root {
  color: var(--accent);
}

.repo-tree .tree-commit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
  color: var(--accent);
  font-size: 10px;
  line-height: 1.6;
}

.repo-tree .tree-note {
  color: rgba(247, 242, 231, 0.42);
  font-size: 9.5px;
}

.art-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

/* Inner page content */

.content-section {
  padding: clamp(60px, 8vw, 110px) 0;
  border-bottom: 1px solid var(--line);
}

.content-section:last-of-type {
  border-bottom: 0;
}

.content-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 22px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.content-head h2 {
  max-width: 26em;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.04;
  text-wrap: balance;
}

.content-head .lede {
  justify-self: end;
  max-width: 46ch;
  font-size: clamp(15px, 1.3vw, 18px);
}

.content-head .content-kicker {
  grid-column: 1 / -1;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.problem-card,
.format-card,
.related-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.problem-card {
  border-top: 3px solid var(--accent);
}

.problem-num {
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.problem-card h3,
.format-card h3,
.related-card h3 {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.problem-card p,
.format-card p,
.related-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.insight-line {
  max-width: 30em;
  margin-top: 36px;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.18;
  text-wrap: balance;
}

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

.method-step {
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.method-step-index {
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.method-step h3 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.method-step p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.method-step .deliverable {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.method-step .deliverable b {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-weight: 400;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.curriculum {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.curriculum th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.curriculum td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

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

.curriculum td strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.curriculum td:last-child {
  white-space: nowrap;
}

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.track-card {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.track-card--accent {
  background:
    linear-gradient(160deg, rgba(var(--accent-rgb, 0, 207, 232), 0.16), transparent 60%),
    var(--paper-2);
  border-color: rgba(var(--accent-rgb, 0, 207, 232), 0.45);
}

.track-label {
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.track-card h3 {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.track-card p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.track-card .tag-list {
  margin: 20px 0;
}

.track-card .text-link {
  margin-top: 4px;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.who-card {
  padding: 24px;
  background: var(--paper-2);
}

.who-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.who-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.deliverable-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  padding: 0;
  list-style: none;
}

.deliverable-list li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.deliverable-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
}

.faq {
  max-width: 1000px;
  margin-inline: auto;
}

.content-head--faq {
  max-width: 1000px;
  margin-inline: auto;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-a {
  max-width: 72ch;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.faq-a p + p {
  margin-top: 0.9em;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(44px, 6vw, 76px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
}

.cta-band h2 {
  max-width: 24em;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.cta-band p {
  max-width: 40ch;
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.65;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.related-card {
  border-top: 3px solid var(--accent);
}

.related-card .text-link {
  margin-top: 18px;
}

/* ==========================================================================
   Notes index
   ========================================================================== */

.notes-page .page-hero {
  background: var(--paper-2);
}

.notes-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.notes-feature-main {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 48px);
  background:
    linear-gradient(150deg, rgba(0, 207, 232, 0.12), transparent 55%),
    var(--paper-2);
}

.notes-feature-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
}

.notes-feature h2 {
  max-width: 16ch;
  margin: 24px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.notes-feature p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.notes-feature-aside p {
  color: var(--muted-light);
}

.notes-feature-aside .big-quote {
  color: var(--paper);
  font-size: clamp(24px, 2.8vw, 38px);
}

.notes-list {
  margin-top: 42px;
}

.notes-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1.15fr) minmax(0, 0.85fr) 36px;
  align-items: start;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}

.notes-row:hover {
  border-color: var(--orange);
}

.notes-row time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.notes-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.notes-row h3 a:hover {
  color: var(--orange-deep);
}

.notes-row p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.notes-row .note-arrow {
  justify-self: end;
}

.editorial-note {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-note span {
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editorial-note p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ==========================================================================
   Article
   ========================================================================== */

.article-hero {
  padding: calc(var(--header-h) + clamp(48px, 6vw, 88px)) 0 clamp(44px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.article-hero .breadcrumb {
  margin-bottom: 34px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-meta .article-category {
  color: var(--orange-deep);
}

.article-title {
  max-width: 17ch;
  margin: 22px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 92px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.article-lede {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.65;
}

.article-body {
  width: min(100% - var(--pad) * 2, 780px);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0;
  color: #183338;
  font-size: clamp(16px, 1.3vw, 17.5px);
  line-height: 1.9;
}

.article-body h2 {
  margin: 2.2em 0 0.7em;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.article-body h3 {
  margin: 1.8em 0 0.5em;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.article-body p {
  margin-bottom: 1.25em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35em;
  margin: 0 0 1.4em;
}

.article-body li {
  margin: 0.5em 0;
}

.article-body strong {
  font-weight: 600;
}

.article-body blockquote {
  margin: 2em 0;
  padding-left: 24px;
  border-left: 2px solid var(--orange);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.article-body blockquote p {
  margin: 0;
}

.article-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.article-callout {
  margin: 2em 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-2);
  font-size: 0.94em;
  line-height: 1.75;
}

.article-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-body figure {
  margin: 2.4em 0;
}

.article-body figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.article-end {
  margin-top: 3em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.article-foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.article-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}

.article-foot .text-link {
  font-size: 12.5px;
}

.article-next {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 34ch;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.article-next:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.article-next span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-next strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-next .icon {
  margin-left: auto;
  width: 16px;
  height: 16px;
}

/* Per-page accents, mapped to the first-commit palette */

.page-training {
  --accent: var(--blue);
  --accent-deep: var(--blue-deep);
  --accent-rgb: 43, 75, 255;
}

.page-enterprise {
  --accent: var(--signal);
  --accent-deep: #4d6b00;
  --accent-rgb: 205, 255, 106;
}

.page-gitdata {
  --accent: #ff6a3d;
  --accent-deep: #a43b0c;
  --accent-rgb: 255, 106, 61;
}

.notes-page,
.page-article {
  --accent: var(--blue);
  --accent-deep: var(--blue-deep);
  --accent-rgb: 43, 75, 255;
}

/* Responsive */

@media (max-width: 1100px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .page-hero .art-card {
    max-width: 620px;
  }

  .method-grid,
  .problem-grid,
  .format-grid,
  .related-grid,
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-feature {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .notes-row p {
    grid-column: 2 / 3;
  }

  .notes-row .note-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding-top: calc(var(--header-h) + 46px);
    padding-bottom: 60px;
  }

  .page-title {
    font-size: clamp(36px, 10.4vw, 58px);
  }

  .page-lede {
    font-size: 16px;
  }

  .content-section {
    padding: 64px 0;
  }

  .content-head h2 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .problem-grid,
  .format-grid,
  .related-grid,
  .method-grid,
  .track-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .curriculum {
    display: block;
    overflow-x: auto;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .cta-band-actions {
    width: 100%;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .cta-band-actions .button {
    flex: 1 1 auto;
  }

  .notes-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 10px 16px;
  }

  .notes-row time {
    grid-column: 1 / -1;
  }

  .notes-row p {
    grid-column: 1;
  }

  .notes-row .note-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .editorial-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .article-body {
    width: calc(100% - var(--pad) * 2);
  }

  .article-title {
    font-size: clamp(38px, 11vw, 58px);
  }

  .article-foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: calc(var(--header-h) + 32px);
  }

  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .art-card {
    border-radius: 12px;
  }

  .cta-band {
    padding: 28px 20px;
  }

  .article-body {
    font-size: 16px;
  }
}


/* First-commit reading palette */
.article-body {
  color: #1b1c20;
}

.article-body blockquote {
  border-left-color: var(--blue);
}

/* Refined service-page blocks */

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

.question-card {
  padding: clamp(24px, 3.2vw, 42px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.question-label {
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.question-card h3 {
  max-width: 16ch;
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.question-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.question-card ul {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.question-card li {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.question-card li::before {
  content: "—";
  color: var(--accent-deep);
}

.source-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(250, 248, 243, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.source-note a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.source-note a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.source-note strong {
  color: var(--ink);
  font-weight: 500;
}

.principle-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.principle-card h3 {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.principle-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.principle-num {
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.repo-tree-large {
  font-size: 12px;
  line-height: 1.9;
}

.repo-tree-large .tree-root {
  font-size: 14px;
}

@media (max-width: 760px) {
  .question-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .question-card h3 {
    max-width: none;
  }
}

/* Standalone closing CTA (after removing related-card grids) */
.content-section > .shell > .cta-band:first-child {
  margin-top: 0;
}
