:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #e8eef6;
  --ink: #17202a;
  --text: #17202a;
  --muted: #334155;
  --line: #c8d3df;
  --accent: #1f6feb;
  --accent-dark: #174ea6;
  --green: #16834a;
  --amber: #b25b00;
  --red: #b42318;
  --shadow: 0 12px 28px rgba(21, 32, 45, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: end;
  padding: 26px 32px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 8px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.22;
}

.summary,
.section-meta {
  color: var(--muted);
}

.summary {
  margin: 10px 0 0;
  font-size: 15px;
}

.status-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.status-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#progressText {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d6dfeb;
}

#progressBar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0e7490, var(--green));
  transition: width 160ms ease;
}

.quick-path {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.quick-path button,
.quick-path a,
.print-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #243449;
  font-weight: 850;
  cursor: pointer;
}

.quick-path button,
.quick-path a {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 13px;
}

.quick-path button:hover,
.quick-path a:hover,
.print-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

.workspace {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr) 292px;
  gap: 20px;
  padding: 20px 24px 32px;
}

.sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.search-box {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

#navList {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.nav-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-group-title {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 900;
}

.nav-item {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.nav-item:last-child {
  border-bottom: 0;
}

.nav-item:hover,
.nav-item.active {
  background: #eaf3ff;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-code {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border-radius: 6px;
  background: #e1e8f2;
  color: #26384d;
  font-size: 12px;
  font-weight: 950;
}

.nav-item.active .nav-code {
  background: var(--accent);
  color: #fff;
}

.nav-title,
.nav-meta {
  display: block;
  min-width: 0;
}

.nav-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nav-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.content-panel,
.rail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-panel {
  overflow: hidden;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.section-head h2 {
  font-size: 26px;
  line-height: 1.25;
}

.section-meta {
  margin: 8px 0 0;
}

.print-button {
  align-self: start;
  padding: 8px 12px;
}

.visual-stage {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
}

.journey-map,
.split-steps,
.template-card,
.timeline-visual,
.ops-board {
  display: grid;
  gap: 12px;
}

.journey-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-map div,
.template-card div,
.timeline-visual div,
.ops-board div,
.split-steps > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.journey-map span,
.timeline-visual span {
  display: block;
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
}

.journey-map strong,
.template-card b,
.timeline-visual strong,
.ops-board strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.journey-map small,
.template-card span,
.timeline-visual small,
.ops-board span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.split-steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.split-steps h3 {
  font-size: 18px;
}

.split-steps ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.split-steps li + li {
  margin-top: 6px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.pipeline div {
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-weight: 900;
}

.pipeline span {
  display: none;
}

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

.timeline-visual {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topology-visual {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, #dfe7f0 49%, #dfe7f0 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, #dfe7f0 49%, #dfe7f0 51%, transparent 51%),
    #fff;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 132px;
  min-height: 54px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #eef6ff;
  color: #123a6f;
  font-weight: 950;
}

.node.internet { left: 6%; top: 38%; }
.node.web { left: 36%; top: 14%; }
.node.host { right: 8%; top: 38%; }
.node.log { left: 36%; bottom: 14%; border-color: var(--green); background: #ecfdf3; color: #0f5b33; }

.ops-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-body {
  display: grid;
  gap: 16px;
  padding: 22px 24px 28px;
}

.lesson-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lesson-block h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.lesson-block p {
  margin: 0;
  line-height: 1.65;
}

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

.talk-list p {
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.flow-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.flow-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.flow-row:last-child {
  border-bottom: 0;
}

.flow-row span,
.flow-row strong {
  padding: 11px 12px;
}

.flow-row span {
  background: var(--surface-soft);
  color: #334155;
  font-weight: 900;
}

.flow-row strong {
  font-weight: 750;
}

.lab-steps,
.pattern-list {
  margin: 0;
  padding-left: 22px;
}

.lab-steps li + li,
.pattern-list li + li,
.close-block li + li {
  margin-top: 8px;
}

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

.command-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.command-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #1f2937;
  border-radius: 999px;
  color: #ffffff;
  background: #1f2937;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
}

.surface-badge-kali {
  border-color: #166534;
  background: #166534;
}

.surface-badge-windows {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.surface-badge-local {
  border-color: #be123c;
  background: #be123c;
}

.surface-badge-macos {
  border-color: #475569;
  background: #475569;
}

.surface-badge-oracle {
  border-color: #9a3412;
  background: #9a3412;
}

.surface-badge-browser {
  border-color: #0f766e;
  background: #0f766e;
}

.command-surface-kali {
  border-left: 5px solid #166534;
}

.command-surface-windows {
  border-left: 5px solid #1d4ed8;
}

.command-surface-local {
  border-left: 5px solid #be123c;
}

.command-surface-macos {
  border-left: 5px solid #475569;
}

.command-surface-oracle {
  border-left: 5px solid #9a3412;
}

.command-surface-browser {
  border-left: 5px solid #0f766e;
}

.command-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
  align-items: stretch;
}

.command-code-row pre {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 12px;
  border-radius: 6px;
  background: #101827;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-button {
  min-height: 44px;
  border: 1px solid #93a4b8;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.copy-button:hover,
.copy-button.copied {
  border-color: var(--accent);
  background: #eaf3ff;
  color: var(--accent-dark);
}

.copy-button.copy-failed {
  border-color: #d97706;
  background: #fff7ed;
  color: #9a3412;
}

.command-note,
.command-result {
  margin: 0;
  color: #26384d;
  font-size: 13px;
  line-height: 1.55;
}

.command-result {
  color: #14532d;
}

.command-note strong,
.command-result strong {
  margin-right: 6px;
}

.copy-line {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bfccd9;
  border-radius: 6px;
  background: #17202a;
  color: #f8fafc;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-row a,
.link-stack a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.right-rail {
  display: grid;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.rail-section {
  padding: 16px;
}

.rail-section h2 {
  margin-bottom: 12px;
  font-size: 16px;
}

.deliverable-list {
  display: grid;
  gap: 8px;
}

.deliverable-list div {
  padding: 10px;
  border-left: 3px solid var(--green);
  background: #f0fdf4;
  color: #14532d;
  font-size: 13px;
  font-weight: 800;
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
  font-weight: 750;
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row input {
  margin-top: 2px;
}

.link-stack {
  display: grid;
  gap: 8px;
}

.scope-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.empty-state {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

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

  .right-rail {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar,
  .workspace {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 22px 18px;
  }

  .quick-path {
    padding: 10px 18px;
  }

  .workspace {
    padding: 16px;
  }

  .sidebar,
  .right-rail {
    position: static;
    max-height: none;
  }

  .content-panel {
    order: 1;
  }

  .right-rail {
    order: 2;
  }

  .sidebar {
    order: 3;
  }

  .right-rail,
  .split-steps,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .journey-map,
  .template-card,
  .timeline-visual,
  .ops-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }

  .print-button {
    margin-top: 12px;
  }

  .flow-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .command-code-row {
    grid-template-columns: 1fr;
  }

  .copy-button {
    min-height: 44px;
  }
}

@media print {
  .sidebar,
  .right-rail,
  .quick-path,
  .print-button {
    display: none;
  }

  .topbar,
  .workspace {
    display: block;
    padding: 0;
  }

  .content-panel {
    box-shadow: none;
    border: 0;
  }
}

.detail-shell {
  min-height: 100vh;
}

.detail-header {
  padding: 30px 36px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.detail-header h1 {
  max-width: 1080px;
  font-size: 34px;
}

.detail-subtitle {
  max-width: 980px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

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

.detail-page-nav a,
.mobile-toc-list a,
.prev-next a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.mobile-toc-list {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-toc-list a {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 28px 40px;
}

.detail-rail {
  position: sticky;
  top: 16px;
  align-self: start;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.detail-rail section,
.detail-summary,
.detail-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-rail section {
  padding: 16px;
}

.detail-rail h2 {
  margin-bottom: 12px;
  font-size: 16px;
}

.toc-list,
.prev-next {
  display: grid;
  gap: 8px;
}

.toc-list a {
  display: block;
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  background: #f8fafc;
  color: #243449;
  font-size: 13px;
  font-weight: 800;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.detail-summary {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-left: 4px solid var(--accent);
}

.detail-summary p {
  margin: 0;
  color: #243449;
  line-height: 1.7;
}

#detailSections {
  display: grid;
  gap: 18px;
}

.detail-module {
  overflow: hidden;
}

.install-matrix,
.day-install-guide {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.install-matrix-head {
  display: grid;
  gap: 6px;
}

.install-matrix-head p:last-child {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.install-card-grid {
  display: grid;
  gap: 12px;
}

.install-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.install-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-card-title span {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.install-card-title strong {
  font-size: 16px;
}

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

.day-install-guide .install-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-columns div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.install-columns h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.install-columns ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.55;
}

.install-card .detail-subblock {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.install-card .step-list li {
  background: #ffffff;
}

.install-command-list {
  display: grid;
  gap: 12px;
}

.setup-selector {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.setup-selector-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

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

.setup-choice {
  position: relative;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.setup-choice strong,
.setup-choice span {
  display: block;
}

.setup-choice strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.setup-choice span {
  color: var(--muted);
  line-height: 1.45;
}

.setup-choice.active {
  border-color: var(--accent);
  background: #eef6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.setup-selected {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.jump-to-lab {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #eef6ff;
  color: var(--accent-dark);
  font-weight: 950;
}

.module-topline {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-module h2 {
  padding: 18px 18px 0;
  font-size: 24px;
  line-height: 1.3;
}

.lecture-points {
  display: grid;
  gap: 10px;
  padding: 16px 18px 0;
}

.lecture-points p {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--green);
  line-height: 1.65;
}

.detail-subblock {
  padding: 16px 18px 0;
}

.detail-subblock:last-child {
  padding-bottom: 18px;
}

.detail-subblock h3,
.compare-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.detail-subblock ul,
.compare-grid ul {
  margin: 0;
  padding-left: 22px;
}

.detail-subblock li + li,
.compare-grid li + li {
  margin-top: 7px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px 18px 0;
}

.compare-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.numbered-list {
  list-style: decimal;
}

.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.step-list span {
  display: inline-flex;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.step-list p {
  margin: 0;
  line-height: 1.55;
}

.image-guide-block {
  padding-top: 4px;
}

.image-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.image-guide {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.image-guide img {
  display: block;
  width: 100%;
  height: auto;
  background: #f8fafc;
}

.image-guide figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: #26384d;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.evidence-list li::marker,
.check-list li::marker {
  color: var(--accent);
}

.context-block,
.prompt-block,
.expected-block,
.pitfall-block,
.pattern-block,
.transition-block {
  margin: 12px 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.prompt-block {
  border-left: 4px solid var(--accent);
}

.expected-block {
  border-left: 4px solid var(--green);
}

.pitfall-block {
  border-left: 4px solid #d97706;
}

.pattern-block {
  border-left: 4px solid #475569;
}

.transition-block {
  background: #f8fafc;
}

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

.prev-next a:last-child {
  text-align: right;
}

@media (max-width: 900px) {
  .detail-header {
    padding: 24px 18px 20px;
  }

  .detail-header h1 {
    font-size: 28px;
  }

  .mobile-toc-list {
    display: flex;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .detail-main {
    order: 1;
  }

  .detail-rail {
    position: static;
    order: 2;
    max-height: none;
  }

  .compare-grid,
  .install-columns,
  .image-guide-grid,
  .setup-choice-grid,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .command-code-row {
    grid-template-columns: 1fr;
  }

  .copy-button {
    min-height: 44px;
  }

  .prev-next a:last-child {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .journey-map,
  .template-card,
  .timeline-visual,
  .ops-board {
    grid-template-columns: 1fr;
  }

  .context-block,
  .prompt-block,
  .expected-block,
  .pitfall-block,
  .pattern-block,
  .transition-block {
    margin-left: 14px;
    margin-right: 14px;
  }
}
