/* Productized handbook pages: concept browse, detail, examples, map, tools, learning paths. */

body[data-page] .app-shell,
body[data-page] .content-flow,
body[data-page] .panel,
body[data-page] .doc-body,
body[data-page] .panel-head,
body[data-page] .panel-head > div {
  min-width: 0;
  max-width: 100%;
}

body[data-page] h1,
body[data-page] h2,
body[data-page] h3,
body[data-page] h4,
body[data-page] p,
body[data-page] a {
  overflow-wrap: anywhere;
}

.product-hero {
  display: grid;
  gap: 14px;
}

.product-hero h2 {
  margin-bottom: 6px;
}

.product-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(170px, 0.85fr) minmax(150px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.product-toolbar label,
.calculator-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.product-toolbar input,
.product-toolbar select,
.calculator-grid input,
.calculator-grid select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-soft);
  color: var(--ink);
  padding: 7px 10px;
  min-width: 0;
}

.product-toolbar .checkbox-line {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-soft);
  padding: 7px 10px;
}

.product-toolbar .checkbox-line input {
  width: auto;
  min-width: 16px;
  min-height: 16px;
  flex: 0 0 auto;
}

.filter-reset {
  justify-content: center;
  min-height: 38px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.product-count {
  color: var(--muted);
  font-size: 13px;
}

.browse-group {
  margin-top: 18px;
}

.browse-group h3,
.map-group h3,
.path-section h3 {
  margin: 0 0 10px;
}

.concept-card-grid,
.example-grid,
.tool-grid,
.path-grid-product,
.map-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.concept-card,
.example-card,
.tool-card,
.path-card-product,
.map-node-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.30);
  padding: 16px;
  overflow-wrap: anywhere;
}

html[data-theme="light"] .example-card,
html[data-theme="light"] .map-node-card {
  background: rgba(245, 242, 233, 0.76);
}

.concept-card {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px 0;
}

.tool-grid {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.tool-card {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding: 18px 0;
}

.concept-card h4,
.example-card h4,
.tool-card h4,
.path-card-product h4,
.map-node-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.concept-card p,
.example-card p,
.tool-card p,
.path-card-product p,
.map-node-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.concept-detail-shell .tag-row {
  margin: 0 0 20px;
}

.meta-pill,
.tag-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.45;
}

.detail-meta {
  margin-top: 8px !important;
  color: var(--faint) !important;
  font-family: var(--mono);
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.concept-detail-shell .panel-head h2 {
  max-width: 980px;
}

.detail-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-nav-row a,
.tool-link,
.path-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
}

.product-section {
  margin-top: 24px;
  max-width: 940px;
}

.product-section code {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  overflow-wrap: normal;
}

.formula-section p {
  max-width: 100%;
}

.math-formula {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.math-display {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--note-bg);
  padding: 10px 12px;
}

.math-inline {
  display: inline-flex;
  vertical-align: middle;
}

.math-formula .katex-display {
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
}

.katex-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.math-formula .katex {
  color: var(--ink);
  font-size: 1.02em;
}

.product-section.section-table {
  overflow-x: auto;
}

.product-section h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.section-note {
  max-width: 720px;
  color: var(--muted) !important;
  font-size: 13px;
}

.example-list {
  display: grid;
  gap: 10px;
}

.qa-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  align-items: stretch;
  perspective: 1200px;
}

.qa-card {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 178px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
  perspective: 1200px;
}

.qa-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.qa-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.qa-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  min-width: 0;
  overflow: auto;
  padding: 15px;
  backface-visibility: hidden;
  transition: opacity 180ms ease, transform 260ms ease, visibility 180ms ease;
  visibility: visible;
  z-index: 2;
}

.qa-card-back {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 42%, rgba(15, 23, 42, 0.70));
  opacity: 0;
  transform: rotateY(-180deg);
  visibility: hidden;
  z-index: 1;
}

.qa-card.is-flipped .qa-card-front {
  opacity: 0;
  transform: rotateY(180deg);
  visibility: hidden;
  z-index: 1;
}

.qa-card.is-flipped .qa-card-back {
  opacity: 1;
  transform: rotateY(0deg);
  visibility: visible;
  z-index: 2;
}

html[data-theme="light"] .qa-card-face {
  background: rgba(245, 242, 233, 0.86);
  box-shadow: 0 12px 24px rgba(39, 54, 68, 0.10);
}

html[data-theme="light"] .qa-card-back {
  background: color-mix(in srgb, var(--accent-soft) 46%, rgba(245, 242, 233, 0.92));
}

.qa-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
}

.qa-card-question,
.qa-card-answer {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.qa-card-answer {
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.58;
}

@media (prefers-reduced-motion: reduce) {
  .qa-card-face {
    transition: none;
  }
}

.tool-result code {
  display: block;
  min-width: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.source-preview {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper-soft) 72%, transparent);
  overflow: hidden;
}

.inline-code-preview-group,
.path-inline-code {
  margin-top: 12px;
}

.inline-code-preview-group > p,
.path-inline-code > p {
  margin: 0 0 8px;
}

.source-preview summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  list-style: none;
}

.source-preview summary::-webkit-details-marker {
  display: none;
}

.source-preview summary::before {
  content: "▸";
  color: var(--faint);
  font-size: 12px;
  transition: transform 180ms ease;
}

.source-preview[open] summary {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 42%, transparent);
}

.source-preview[open] summary::before {
  transform: rotate(90deg);
}

.source-preview-close,
.source-preview[open] .source-preview-open {
  display: none;
}

.source-preview[open] .source-preview-close {
  display: inline;
}

.source-preview-file {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-preview-body {
  display: grid;
}

.source-preview-status,
.source-preview-fallback {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.source-code {
  overflow: auto;
  margin: 0;
  max-height: min(62vh, 620px);
  border: 0;
  border-radius: 0;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  tab-size: 4;
}

.source-code code {
  display: block;
  min-width: max-content;
  white-space: pre;
}

html[data-theme="light"] .source-preview {
  background: color-mix(in srgb, var(--paper-soft) 84%, white);
}

html[data-theme="light"] .source-code {
  background: #f7f4ea;
  color: #1f2937;
}

.map-layout {
  display: grid;
  gap: 18px;
}

.map-svg-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-soft);
  padding: 14px;
  overflow: hidden;
}

.map-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.map-overview div {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 12px;
}

.map-overview strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.map-overview span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.map-zoom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px 0 8px;
}

.map-zoom-button,
.map-zoom-reset {
  display: inline-flex;
  min-width: 34px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
}

.map-zoom-reset {
  min-width: 52px;
  color: var(--muted);
  font-size: 12px;
}

.map-zoom-button:hover,
.map-zoom-button:focus-visible,
.map-zoom-reset:hover,
.map-zoom-reset:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.map-zoom-range {
  width: min(190px, 28vw);
  accent-color: var(--accent);
}

.map-zoom-value {
  min-width: 42px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 720;
  text-align: right;
}

.map-network-frame {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.map-network {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 340px;
  transform-origin: top left;
}

.map-graph-group-box {
  fill: color-mix(in srgb, var(--paper) 62%, transparent);
  stroke: var(--line);
}

.map-graph-group-label,
.map-graph-group-count {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.map-graph-edge {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 42%, var(--line));
  stroke-width: 1.15;
  opacity: 0.14;
  transition: opacity 160ms ease, stroke-width 160ms ease, stroke 160ms ease;
}

.has-active-map-node .map-graph-edge {
  opacity: 0.045;
}

.map-graph-edge.is-active {
  opacity: 0.88;
  stroke-width: 2;
}

.map-graph-edge.is-incoming {
  stroke: var(--mint);
}

.map-graph-edge.is-outgoing {
  stroke: var(--accent);
}

.map-graph-node {
  cursor: pointer;
  outline: none;
  transition: opacity 160ms ease;
}

.map-graph-node rect {
  fill: color-mix(in srgb, var(--paper-soft) 88%, var(--accent-soft));
  stroke: var(--line-strong);
  transition: fill 160ms ease, stroke 160ms ease, filter 160ms ease;
}

.map-graph-node text {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 760;
  pointer-events: none;
}

.has-active-map-node .map-graph-node {
  opacity: 0.48;
}

.has-active-map-node .map-graph-node.is-active,
.has-active-map-node .map-graph-node.is-neighbor {
  opacity: 1;
}

.map-graph-node:hover rect,
.map-graph-node:focus-visible rect,
.map-graph-node.is-active rect {
  fill: var(--accent-soft);
  stroke: var(--accent);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 30%, transparent));
}

.map-graph-node.is-active text {
  fill: var(--accent);
}

.map-graph-node.is-neighbor rect {
  stroke: color-mix(in srgb, var(--accent) 64%, var(--line-strong));
}

.map-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}

.map-group {
  min-width: 0;
}

.map-group-head {
  display: flex;
  min-height: 34px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.map-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.map-group-head span {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 12px;
}

.map-card-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.map-node-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.map-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-card-head > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.map-card-head h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.map-card-head span {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.35;
}

.map-card-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-soft);
  color: var(--accent);
  cursor: pointer;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}

.map-card-toggle:hover,
.map-card-toggle:focus-visible {
  border-color: var(--accent);
}

.map-card-body {
  display: none;
  gap: 8px;
}

.map-node-card.is-expanded {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: color-mix(in srgb, var(--paper-soft) 78%, var(--accent-soft));
}

.map-node-card.is-expanded .map-card-body {
  display: grid;
}

.map-node-card p {
  margin: 0;
}

.map-node-card .map-subtitle {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.map-node-card .tag-row {
  margin-top: 0;
}

.map-relations {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 10px;
}

.map-relations strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
}

.map-relations div div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-relation-chip,
.map-empty-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-relation-chip {
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.map-relation-chip:hover,
.map-relation-chip:focus-visible {
  border-color: var(--accent);
  text-decoration: none;
}

.map-empty-chip {
  color: var(--faint);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.tool-result {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.tool-result p {
  margin: 4px 0;
}

.tool-purpose {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.path-grid-product {
  grid-template-columns: 1fr;
}

.path-syllabus {
  display: grid;
  gap: 10px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding: 20px 0;
}

.path-syllabus h5 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.path-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0;
}

.path-summary div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.path-summary dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.path-summary dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.path-steps {
  display: grid;
  gap: 14px;
  margin: 10px 0 4px;
  padding: 0;
  list-style: none;
}

.path-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.path-steps > li > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.path-steps p {
  margin: 5px 0;
}

.path-review-questions {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
}

.path-review-questions ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.next-step-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.not-found-box {
  border: 1px solid var(--coral);
  border-radius: var(--radius);
  background: var(--coral-soft);
  padding: 16px;
}

@media (max-width: 900px) {
  .product-toolbar,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .map-overview,
  .map-board {
    grid-template-columns: 1fr;
  }

  .map-network {
    min-height: 280px;
  }

  .path-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .product-hero {
    gap: 10px;
  }

  .product-hero h2,
  .concept-detail-shell .panel-head h2 {
    font-size: 24px;
    line-height: 1.22;
  }

  .product-toolbar {
    gap: 9px;
  }

  .product-toolbar input,
  .product-toolbar select,
  .calculator-grid input,
  .calculator-grid select,
  .product-toolbar .checkbox-line,
  .filter-reset {
    min-height: 44px;
  }

  .product-toolbar .checkbox-line input {
    min-width: 20px;
    min-height: 20px;
  }

  .concept-card,
  .example-card,
  .tool-card,
  .path-card-product,
  .map-node-card {
    padding: 13px 0;
  }

  .example-card,
  .map-node-card {
    padding: 13px;
  }

  .concept-card h4,
  .example-card h4,
  .tool-card h4,
  .path-card-product h4,
  .map-node-card h4 {
    font-size: 16px;
  }

  .detail-meta {
    font-size: 11px !important;
  }

  .detail-nav-row a,
  .tool-link,
  .path-link,
  .meta-pill,
  .tag-pill,
  .map-relation-chip,
  .map-empty-chip {
    min-height: 40px;
    align-items: center;
    padding: 5px 10px;
  }

  .meta-row,
  .tag-row,
  .detail-nav-row {
    gap: 7px;
  }

  .product-section {
    margin-top: 20px;
  }

  .product-section h3 {
    font-size: 17px;
    line-height: 1.3;
  }

  .math-formula,
  .katex-display,
  .math-formula .katex-display,
  .product-section code,
  .tool-result code,
  .source-code {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .math-display {
    padding: 9px 10px;
  }

  .math-formula .katex {
    font-size: 0.96em;
  }

  .qa-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .qa-card {
    height: 156px;
  }

  .qa-card-face {
    padding: 13px;
  }

  .qa-card-question,
  .qa-card-answer {
    font-size: 13.5px;
    line-height: 1.52;
  }

  .source-preview summary {
    min-height: 46px;
    gap: 8px;
  }

  .source-preview-file {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .source-code {
    max-height: min(54vh, 460px);
    padding: 12px;
    font-size: 11.5px;
  }

  .source-code code {
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .map-overview {
    gap: 8px;
  }

  .map-overview div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 9px 0 0;
  }

  .map-board {
    gap: 16px;
  }

  .map-group-head {
    position: sticky;
    top: 122px;
    z-index: 1;
    background: var(--bg);
    padding-top: 6px;
  }

  .map-card-grid {
    gap: 9px;
  }

  .map-node-card {
    gap: 9px;
  }

  .map-card-head {
    gap: 8px;
  }

  .map-relations div div {
    gap: 7px;
  }

  .calculator-grid {
    gap: 9px;
  }

  .tool-result {
    margin-top: 14px;
    padding-top: 14px;
  }

  .tool-result p {
    margin: 7px 0;
  }

  .path-syllabus {
    gap: 9px;
    padding: 18px 0;
  }

  .path-steps {
    gap: 12px;
  }

  .path-steps li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .path-steps a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .path-inline-code {
    margin-top: 10px;
  }

  .path-inline-code .source-preview summary {
    align-items: flex-start;
  }

  .path-review-questions ul {
    gap: 5px;
    padding-left: 16px;
  }
}

@media (min-width: 1680px) {
  .map-board {
    grid-template-columns: repeat(4, minmax(300px, 1fr));
  }
}
