:root {
  --bg: #07141d;
  --bg-soft: #0c202b;
  --panel: rgba(12, 31, 43, 0.92);
  --panel-strong: #123143;
  --text: #effbff;
  --muted: #a8c0c9;
  --line: rgba(169, 224, 232, 0.16);
  --accent: #67e8f9;
  --accent-2: #bef264;
  --warning: #fb923c;
  --shadow: 0 24px 60px rgba(0, 8, 14, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, .site-header, .site-footer, .page, .hero, .section, .card, .result-panel, .note {
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(103, 232, 249, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 10% -10%, rgba(103, 232, 249, 0.2), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(190, 242, 100, 0.1), transparent 24%),
    linear-gradient(180deg, #07141d 0%, #061017 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--accent);
  color: #00131b;
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { left: 16px; z-index: 10; }
.site-header, .site-footer, .page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 18px 14px;
  border-bottom: 1px solid rgba(169, 224, 232, 0.08);
}
.site-header.compact { padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #0d2c3a;
  border: 1px solid rgba(103, 232, 249, 0.42);
  color: #05111a;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 0 22px rgba(103, 232, 249, 0.08);
}
.brand h1, .section h2, .card h3, .card h4, .hero h2 {
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  line-height: 1.2;
}
.brand h1, .section h2, .card h3, .card h4, .hero h2, .lead, .card p, .card a, .nav a, .code-chip, .code-input, .code-button, .button, .link-list a, .history-item {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-2);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.95rem;
}
.nav a {
  color: var(--muted);
  opacity: 0.9;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(103, 232, 249, 0.09);
  text-decoration: none;
}
.page { padding: 12px 0 40px; }
.hero, .section, .card, .result-panel, .note {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 42, 56, 0.88), rgba(7, 19, 27, 0.94));
  box-shadow: var(--shadow);
  border-radius: 22px;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
  padding: 42px;
  margin-bottom: 22px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -34%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(103, 232, 249, 0.035), 0 0 0 46px rgba(103, 232, 249, 0.025);
  pointer-events: none;
  z-index: -1;
}
.hero h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 68ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-copy { display: grid; gap: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
}
.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07121b;
  font-weight: 800;
}
.button.secondary { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.button.secondary:hover,
.button.secondary:focus-visible { background: rgba(103, 232, 249, 0.1); text-decoration: none; }
.hero-panel { display: flex; align-items: stretch; }
.stat-grid, .card-grid {
  display: grid;
  gap: 14px;
}
.stat-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
.stat, .card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-width: 0;
}
.card {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.055);
}
.stat strong {
  display: block;
  font-size: 1.9rem;
  margin-bottom: 6px;
  color: var(--accent);
}
.section { padding: 28px; margin-bottom: 22px; }
.section h3, .section h2 { margin-bottom: 10px; }
.diagnostic-intro,
.guides-intro {
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(14, 42, 56, 0.9), rgba(7, 19, 27, 0.96));
}
.diagnostic-intro > h2,
.guides-intro > h2 {
  letter-spacing: -0.035em;
}
.diagnostic-intro > .lead,
.guides-intro > .lead {
  max-width: 62ch;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.card-grid { grid-template-columns: repeat(3, 1fr); }
.guide-grid,
.code-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}
.guide-layout {
  display: grid;
  gap: 22px;
}
.guide-section {
  display: grid;
  gap: 14px;
}
.guide-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.guide-section-head h3 {
  margin-bottom: 8px;
}
.guide-section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}
.guide-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.guide-section-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}
.guide-section-nav a:hover,
.guide-section-nav a:focus-visible {
  border-color: var(--accent);
  background: rgba(103, 232, 249, 0.1);
  text-decoration: none;
}
.detail-page {
  display: grid;
  gap: 0;
  --detail-accent: var(--accent);
  --detail-accent-soft: rgba(110, 231, 255, 0.14);
}
.detail-page--boot { --detail-accent: #8fe7ff; --detail-accent-soft: rgba(143, 231, 255, 0.14); }
.detail-page--critical { --detail-accent: #ff8fba; --detail-accent-soft: rgba(255, 143, 186, 0.14); }
.detail-page--explorer { --detail-accent: #a8ffd0; --detail-accent-soft: rgba(168, 255, 208, 0.14); }
.detail-page--printer { --detail-accent: #ffd78a; --detail-accent-soft: rgba(255, 215, 138, 0.14); }
.detail-page--gaming { --detail-accent: #f0a1ff; --detail-accent-soft: rgba(240, 161, 255, 0.14); }
.detail-page--display { --detail-accent: #ffb8a0; --detail-accent-soft: rgba(255, 184, 160, 0.14); }
.detail-page--storage { --detail-accent: #9ad7ff; --detail-accent-soft: rgba(154, 215, 255, 0.14); }
.detail-page--usb { --detail-accent: #b8ffa5; --detail-accent-soft: rgba(184, 255, 165, 0.14); }
.detail-page--update { --detail-accent: #9cffd6; --detail-accent-soft: rgba(156, 255, 214, 0.14); }
.detail-page--startup { --detail-accent: #ffd68f; --detail-accent-soft: rgba(255, 214, 143, 0.14); }
.detail-page--taskbar { --detail-accent: #a9c8ff; --detail-accent-soft: rgba(169, 200, 255, 0.14); }
.detail-page--wifi { --detail-accent: #8ff0ff; --detail-accent-soft: rgba(143, 240, 255, 0.14); }
.detail-page--heat { --detail-accent: #ff9f8f; --detail-accent-soft: rgba(255, 159, 143, 0.14); }
.detail-page--audio { --detail-accent: #c7a6ff; --detail-accent-soft: rgba(199, 166, 255, 0.14); }
.detail-page--sleep { --detail-accent: #8ad6ff; --detail-accent-soft: rgba(138, 214, 255, 0.14); }
.detail-page--power { --detail-accent: #ffd28a; --detail-accent-soft: rgba(255, 210, 138, 0.14); }
.detail-page .section {
  border-left: 4px solid var(--detail-accent);
}
.detail-page .detail-hero {
  background:
    radial-gradient(circle at top right, var(--detail-accent-soft), transparent 38%),
    linear-gradient(180deg, rgba(24, 37, 70, 0.88), rgba(11, 16, 32, 0.92));
}
.detail-page .detail-hero h2 {
  color: var(--detail-accent);
}
.detail-page .section:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.detail-page .section h3 {
  letter-spacing: -0.02em;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}
.guide-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guide-card-meta .eyebrow { margin: 0; }
.guide-card-meta > span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
.guide-kind-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 2px;
}
.guide-kind-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.guide-kind-filter span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}
.guide-kind-filter:hover,
.guide-kind-filter.active {
  border-color: var(--accent);
  background: rgba(110,231,255,0.1);
  color: var(--text);
}
.takeaway-panel {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--detail-accent-soft), rgba(255,255,255,0.03));
}
.takeaway-panel > div:first-child {
  display: grid;
  gap: 6px;
}
.takeaway-label {
  color: var(--detail-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.takeaway-panel strong { font-size: 1.08rem; }
.takeaway-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.takeaway-list span {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.15);
  color: var(--muted);
  font-size: 0.9rem;
}
.takeaway-list b { color: var(--text); font-size: 0.78rem; }
.route-card {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(110,231,255,0.1), rgba(255,255,255,0.03));
}
.route-card h3 { margin-bottom: 8px; }
.route-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.route-steps span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}
.guide-card h3,
.code-card h3 {
  font-size: 1.15rem;
}
.guide-card p,
.code-card p {
  font-size: 0.96rem;
  line-height: 1.5;
}
.guide-card .key-cause,
.code-card .key-cause {
  margin-top: 8px;
}
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.link-list a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--accent);
  background: rgba(103, 232, 249, 0.1);
  text-decoration: none;
}
.guide-intro {
  grid-column: 1 / -1;
}
.code-quick-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.code-quick-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.copy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.code-quick-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.code-quick-item {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.code-quick-pill,
.code-quick-btn {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  text-align: left;
}
.code-quick-pill strong,
.code-quick-btn strong {
  font-size: 0.95rem;
}
.code-quick-pill span:last-child,
.code-quick-btn span:last-child {
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.code-copy-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  justify-self: start;
  font-size: 0.85rem;
}
.code-copy-btn.is-copied {
  border-color: var(--accent);
  color: var(--accent);
}
.code-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guide-highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.board-preview-shell {
  margin: 18px 0 22px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.1);
}
.board-lab {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 10px;
}
.board-canvas {
  min-width: 0;
}
.board-frame {
  position: relative;
  min-height: 720px;
  border-radius: 30px;
  border: 1px solid rgba(16, 44, 77, 0.32);
  background:
    radial-gradient(circle at 50% 12%, rgba(158, 238, 255, 0.35), transparent 28%),
    linear-gradient(180deg, rgba(232, 245, 252, 0.98), rgba(200, 226, 241, 0.95));
  box-shadow: 0 26px 60px rgba(8, 18, 35, 0.24);
  overflow: hidden;
  padding: 18px;
}

.board-frame:has(.board-image[src*="diagnostic-pc-parts"]) {
  min-height: 0;
  aspect-ratio: 1600 / 873;
}

.board-frame:has(.board-image[src*="diagnostic-pc-parts"]) .board-board {
  min-height: 0;
}
.board-frame::before,
.board-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(34, 72, 104, 0.7);
  border-radius: 22px;
  pointer-events: none;
}
.board-frame::after {
  inset: 24px;
  border-width: 1px;
  opacity: 0.45;
}
.board-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(105, 215, 255, 0.28), transparent 14%),
    radial-gradient(circle at 82% 28%, rgba(162, 244, 230, 0.22), transparent 16%),
    radial-gradient(circle at 50% 70%, rgba(120, 185, 240, 0.16), transparent 18%);
  pointer-events: none;
}
.board-board {
  position: relative;
  height: 100%;
  min-height: 680px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20, 58, 91, 0.98), rgba(31, 73, 108, 0.97));
  border: 1px solid rgba(145, 198, 220, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}
.board-artwork {
  position: absolute;
  inset: 10px 10px 58px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 22px;
}
.board-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(1.02) contrast(1.02);
}
.board-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 100%),
    linear-gradient(rgba(255,255,255,0.04) 0 1px, transparent 1px 100%);
  background-size: 48px 48px;
  opacity: 0.28;
  pointer-events: none;
}
.board-circuit,
.board-circuit::before,
.board-circuit::after {
  position: absolute;
  border-radius: 999px;
}
.board-circuit {
  background: linear-gradient(90deg, rgba(166, 227, 255, 0.9), rgba(235, 249, 255, 0.3));
  height: 2px;
  opacity: 0.55;
}
.board-circuit::before,
.board-circuit::after {
  content: "";
  width: 2px;
  background: rgba(166, 227, 255, 0.75);
}
.board-circuit--one { left: 10%; top: 18%; width: 42%; }
.board-circuit--one::before { left: 0; top: -18px; height: 18px; }
.board-circuit--two { right: 12%; top: 36%; width: 36%; }
.board-circuit--two::after { right: 8%; top: -14px; height: 14px; }
.board-circuit--three { left: 18%; bottom: 24%; width: 32%; }
.board-circuit--three::before { left: 20%; top: -12px; height: 12px; }
.board-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: var(--w, 18%);
  height: var(--h, 18%);
  min-width: 42px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  z-index: 3;
}
.board-hotspot:hover,
.board-hotspot:focus,
.board-hotspot.active {
  outline: 1px solid rgba(105, 215, 255, 0.16);
  outline-offset: 2px;
  border-radius: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.board-detail {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.board-detail-card {
  height: 100%;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 37, 70, 0.92), rgba(10, 15, 28, 0.94));
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.board-note {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.board-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.board-code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(110, 231, 255, 0.22);
  font-size: 0.84rem;
}
.board-detail-block {
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.board-detail-block h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}
.related-guide-grid {
  display: grid;
  gap: 10px;
}
.related-guide-link {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
}
.related-guide-link span {
  color: var(--muted);
  font-size: 0.92rem;
}
.command-card h4 {
  margin: 0;
  font-size: 1rem;
}
.note { padding: 22px 24px; }
.diagnostic-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.diag-grid {
  display: grid;
  gap: 12px;
}
.diag-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px;
  cursor: pointer;
}
.diag-card.active { outline: 2px solid var(--accent); background: rgba(110, 231, 255, 0.08); }
.diag-title { display: block; font-weight: 800; margin-bottom: 6px; }
.diag-summary, .muted { color: var(--muted); }
.result-panel { padding: 20px; }
.result-box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.article .section { max-width: 820px; }
.detail-hero {
  display: grid;
  gap: 12px;
}
.detail-hero h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.detail-subtitle {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fact-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 10px;
}
.detail-step {
  display: grid;
  gap: 10px;
}
.detail-grid--split {
  grid-template-columns: 1.2fr 0.8fr;
}
.detail-stack {
  display: grid;
  gap: 12px;
}
.faq-grid {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}
.callout {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(110, 231, 255, 0.08);
  border-radius: 14px;
}
.code-panel {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}
.log-panel {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}
.code-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.code-panel-head > div {
  min-width: 0;
}
.kind-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.kind-filter {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.kind-filter .code-chip {
  opacity: 0.55;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}
.kind-filter.active .code-chip,
.kind-filter:hover .code-chip {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}
.code-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 14px;
}
.code-search > * {
  min-width: 0;
}
.log-panel-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}
.log-panel-inputs {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.log-input {
  min-height: 220px;
  resize: vertical;
  padding: 14px 16px;
  line-height: 1.55;
}
.log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.log-file-button {
  position: relative;
  overflow: hidden;
}
.log-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.log-drop {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.log-drop.dragover {
  background: rgba(110, 231, 255, 0.1);
  border-color: var(--accent);
  color: var(--text);
}
.log-result {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.log-summary {
  margin: 0;
  color: var(--muted);
}
.log-source {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.log-source strong {
  flex: 0 0 auto;
}
.log-source span {
  color: var(--muted);
}
.log-file-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061018;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.log-file-name {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.log-source--high { border-left: 4px solid #ff7f7f; }
.log-source--medium { border-left: 4px solid #ffd36e; }
.log-source--low { border-left: 4px solid #7bf0b3; }
.log-field-list,
.log-alert-list,
.log-highlight-list,
.log-link-list {
  display: grid;
  gap: 10px;
}
.log-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.log-focus-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.log-field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.5);
}
.log-field strong {
  flex: 0 0 auto;
}
.log-field span {
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}
.log-alert {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.log-alert strong {
  display: block;
  margin-bottom: 6px;
}
.log-alert p {
  margin: 0;
  color: var(--muted);
}
.log-alert--high {
  border-left: 4px solid var(--accent);
}
.log-alert--medium {
  border-left: 4px solid var(--accent-2);
}
.log-alert--low {
  border-left: 4px solid #7bf0b3;
}
.log-highlight {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
}
.log-link-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.log-link-list a {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.code-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.code-suggestions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.suggestion-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.72);
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  min-width: 0;
}
.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.suggestion-item span { color: var(--muted); }
.code-input {
  min-height: 48px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.9);
  color: var(--text);
  padding: 0 16px;
  font-size: 1rem;
}
.code-input::placeholder { color: rgba(184, 195, 224, 0.75); }
.code-button { min-width: 110px; }
.code-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #061018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.code-chip--boot { background: linear-gradient(135deg, #8ddcff, #b6f0ff); }
.code-chip--update { background: linear-gradient(135deg, #93f5c9, #d4ffe8); }
.code-chip--permission { background: linear-gradient(135deg, #ffe29a, #fff0c4); }
.code-chip--graphics { background: linear-gradient(135deg, #ffb2d8, #ffd9ea); }
.code-chip--driver { background: linear-gradient(135deg, #b7c8ff, #d8e2ff); }
.code-chip--memory { background: linear-gradient(135deg, #d2b6ff, #e8dbff); }
.code-chip--storage { background: linear-gradient(135deg, #a5f2d5, #d9fff0); }
.code-chip--general { background: linear-gradient(135deg, #ffffff, #cfd7e6); }
.code-heading, .code-result-head, .code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.code-heading > *, .code-result-head > *, .code-card-head > * {
  min-width: 0;
}
.code-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #061018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.code-icon--boot { background: linear-gradient(135deg, #8ddcff, #b6f0ff); }
.code-icon--update { background: linear-gradient(135deg, #93f5c9, #d4ffe8); }
.code-icon--permission { background: linear-gradient(135deg, #ffe29a, #fff0c4); }
.code-icon--graphics { background: linear-gradient(135deg, #ffb2d8, #ffd9ea); }
.code-icon--driver { background: linear-gradient(135deg, #b7c8ff, #d8e2ff); }
.code-icon--memory { background: linear-gradient(135deg, #d2b6ff, #e8dbff); }
.code-icon--storage { background: linear-gradient(135deg, #a5f2d5, #d9fff0); }
.code-icon--general { background: linear-gradient(135deg, #ffffff, #cfd7e6); }
.key-cause {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(110, 231, 255, 0.08);
  border-radius: 12px;
}
.code-history {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.history-clear {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  cursor: pointer;
}
.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.history-item {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  max-width: 100%;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.section-subtitle { margin: 16px 0 10px; }
.code-card p { margin-top: 8px; }
.code-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 100%;
}
.code-card a,
.guide-card a {
  margin-top: auto;
}
.screenshot-card { margin-top: 14px; }
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.example-tile {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(11, 16, 32, 0.88)),
    rgba(255, 255, 255, 0.03);
}
.example-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061018;
  font-size: 0.85rem;
  font-weight: 800;
}
.error-screen {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.error-screen-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
}
.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}
.error-screen-body {
  padding: 18px;
}
.error-screen-code {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}
.error-screen-title {
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: 1.4rem;
}
.error-screen-copy {
  margin: 10px 0 0;
  color: var(--muted);
}
.error-screen--boot { background: linear-gradient(180deg, rgba(24, 37, 70, 0.95), rgba(5, 11, 22, 0.95)); }
.error-screen--update { background: linear-gradient(180deg, rgba(20, 53, 52, 0.95), rgba(5, 11, 22, 0.95)); }
.error-screen--permission { background: linear-gradient(180deg, rgba(55, 43, 16, 0.95), rgba(5, 11, 22, 0.95)); }
.error-screen--graphics { background: linear-gradient(180deg, rgba(57, 16, 43, 0.95), rgba(5, 11, 22, 0.95)); }
.error-screen--driver { background: linear-gradient(180deg, rgba(24, 29, 57, 0.95), rgba(5, 11, 22, 0.95)); }
.error-screen--memory { background: linear-gradient(180deg, rgba(48, 24, 67, 0.95), rgba(5, 11, 22, 0.95)); }
.error-screen--storage { background: linear-gradient(180deg, rgba(20, 56, 31, 0.95), rgba(5, 11, 22, 0.95)); }
.error-screen--general { background: linear-gradient(180deg, rgba(20, 24, 48, 0.95), rgba(5, 11, 22, 0.95)); }
.mini-list { padding-left: 18px; color: var(--muted); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 30px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-links {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links a {
  color: var(--muted);
}
@media (max-width: 900px) {
  .hero, .diagnostic-shell, .card-grid, .site-header { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .home-feature-grid,
  .guide-highlight-grid { grid-template-columns: 1fr; }
  .guide-grid,
  .code-grid { grid-template-columns: 1fr; }
  .guide-section-head { flex-direction: column; }
  .diagnostic-shell { grid-template-columns: 1fr; }
  .board-lab { grid-template-columns: 1fr; }
  .board-frame { min-height: 620px; }
  .board-hotspot { min-width: 36px; min-height: 30px; }
  .code-panel-head, .code-search { grid-template-columns: 1fr; display: grid; }
  .code-quick-inline { display: grid; grid-template-columns: 1fr; }
  .kind-filters { gap: 8px; }
  .code-search { gap: 10px; }
  .code-actions { width: 100%; justify-content: stretch; }
  .code-actions .code-button { flex: 1; width: 100%; }
  .code-copy-btn { justify-self: stretch; }
  .log-panel-grid { grid-template-columns: 1fr; }
  .log-link-list { grid-template-columns: 1fr; }
  .log-field { flex-direction: column; align-items: flex-start; }
  .log-field span { text-align: left; }
  .log-source { flex-direction: column; }
  .suggestion-meta { justify-content: flex-start; }
  .suggestion-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .code-panel { padding: 16px; }
  .log-panel { padding: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .takeaway-list { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 720px) {
  .board-frame { min-height: 520px; }
  .board-hotspot-label { font-size: 0.78rem; }
}

/* Editorial service-manual visual system */
:root {
  --bg: #ece9e1;
  --bg-soft: #f7f5ef;
  --panel: #fbfaf6;
  --panel-strong: #17252c;
  --text: #16252b;
  --muted: #5c6b70;
  --line: #cbd2cf;
  --accent: #087ea4;
  --accent-2: #c9ed62;
  --warning: #e66832;
  --shadow: 0 16px 35px rgba(23, 37, 44, 0.1);
}

body {
  background:
    linear-gradient(rgba(22, 37, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 37, 43, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 92% 4%, rgba(201, 237, 98, 0.22), transparent 20%),
    #ece9e1;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.site-header {
  padding: 22px 4px 14px;
  border-bottom: 2px solid var(--text);
}
.brand { gap: 12px; }
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--text);
  border: 0;
  color: var(--accent-2);
  box-shadow: 5px 5px 0 var(--accent);
  font-size: 0;
}
.brand-mark::after {
  content: "LAB";
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.brand h1, .section h2, .card h3, .card h4, .hero h2 {
  font-family: "Avenir Next", "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.045em;
}
.brand h1 { font-size: 1.1rem; }
.eyebrow {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.nav { gap: 3px; }
.nav a {
  color: var(--text);
  border-radius: 7px;
  font-weight: 700;
}
.nav a:hover, .nav a:focus-visible {
  color: var(--text);
  background: var(--accent-2);
}
.page { padding-top: 28px; }
.hero, .section, .card, .result-panel, .note {
  border: 1px solid var(--text);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 5px 5px 0 rgba(22, 37, 43, 0.08);
}
.hero {
  padding: 42px;
  min-height: 380px;
  background:
    linear-gradient(135deg, rgba(8, 126, 164, 0.08), transparent 42%),
    var(--panel);
}
.hero::before {
  content: "FIELD NOTE / 01";
  position: absolute;
  top: 24px;
  right: 30px;
  color: var(--accent);
  font: 800 0.7rem "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.14em;
}
.hero::after {
  right: -5%;
  bottom: -42%;
  width: 45%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 16px rgba(8, 126, 164, 0.06), 0 0 0 34px rgba(8, 126, 164, 0.045);
}
.hero h2 { color: var(--text); max-width: 12ch; }
.lead { color: var(--muted); }
.button { border-radius: 7px; font-weight: 800; }
.button.primary {
  background: var(--text);
  color: var(--accent-2);
  border-color: var(--text);
  box-shadow: 3px 3px 0 var(--accent);
}
.button.secondary { color: var(--text); border-color: var(--text); background: transparent; }
.button.secondary:hover, .button.secondary:focus-visible { background: var(--accent-2); }
.section { padding: 30px; }
.section h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.card, .stat { border-radius: 6px; background: var(--bg-soft); border-color: var(--line); box-shadow: none; }
.card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--text);
  background: #fffef9;
  box-shadow: 4px 4px 0 var(--accent-2);
}
.stat strong { color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; }
.route-card { background: var(--text); color: #f5f8f3; border-color: var(--text); }
.route-card p, .route-card .eyebrow { color: #c9d6d2; }
.route-card .eyebrow { color: var(--accent-2); }
.route-steps span { border-radius: 5px; background: var(--accent-2); color: var(--text); }
.link-list a, .related-guide-link { border-radius: 6px; border-color: var(--text); color: var(--text); background: transparent; }
.link-list a:hover, .link-list a:focus-visible { background: var(--accent-2); }
.guide-card-meta > span { color: var(--accent); font: 700 0.76rem "SFMono-Regular", Consolas, monospace; }
.key-cause { border-left-color: var(--warning); background: rgba(230, 104, 50, 0.09); }
.guide-kind-filter { border-radius: 6px; border-color: var(--text); color: var(--text); background: transparent; }
.guide-kind-filter:hover, .guide-kind-filter.active { background: var(--accent-2); border-color: var(--text); color: var(--text); }
.guide-kind-filter span { background: var(--text); color: var(--accent-2); }
.kind-filter .code-chip { opacity: 0.7; }
.code-chip { border-radius: 5px; color: var(--text); background: var(--accent-2); border-color: var(--text); }
.board-preview-shell { background: var(--text); border-color: var(--text); }
.board-frame { border-radius: 6px; box-shadow: 8px 8px 0 rgba(22, 37, 43, 0.16); }
.board-detail-card { border-radius: 6px; background: var(--panel); color: var(--text); box-shadow: none; }
.board-note, .detail-subtitle { color: var(--accent); }
.board-code { border-radius: 5px; background: var(--accent-2); color: var(--text); border-color: var(--text); }
.board-detail-block { border-top-color: var(--line); }
.diag-card, .result-box, .code-panel, .log-panel {
  border-radius: 6px;
  border-color: var(--text);
  background: var(--bg-soft);
  color: var(--text);
}
.diag-card { color: var(--text); }
.diag-card.active { outline: 2px solid var(--accent); background: rgba(201, 237, 98, 0.26); }
.diag-summary, .muted { color: var(--muted); }
.code-input {
  border-radius: 6px;
  background: #fffef9;
  border-color: var(--text);
  color: var(--text);
}
.code-input::placeholder { color: #829095; }
.suggestion-item, .log-field, .log-alert, .log-highlight, .log-link-list a, .log-focus-item {
  border-radius: 5px;
  background: #fffef9;
  border-color: var(--line);
  color: var(--text);
}
.log-field span, .log-alert p { color: var(--muted); }
.log-file-badge { border-radius: 4px; background: var(--accent-2); color: var(--text); }
.log-source--high { border-left-color: var(--warning); }
.log-source--medium { border-left-color: var(--accent); }
.log-source--low { border-left-color: #5e9d3a; }
.takeaway-panel { border-radius: 6px; background: #e8f4ee; border-color: var(--text); }
.takeaway-label, .takeaway-list b { color: var(--accent); }
.takeaway-list span { border-radius: 4px; background: rgba(22, 37, 43, 0.07); color: var(--muted); }
.detail-page .section { border-left: 5px solid var(--accent); }
.callout { border-left-color: var(--warning); background: rgba(230, 104, 50, 0.1); border-radius: 4px; }
.faq-item, .fact-card { border-radius: 5px; background: var(--bg-soft); border-color: var(--line); }
.site-footer { border-top: 1px solid var(--text); padding-top: 18px; }

@media (max-width: 900px) {
  .site-header { padding-left: 0; padding-right: 0; }
  .hero { padding: 28px; }
  .hero::before { right: 20px; }
  .section { padding: 22px; }
}

/* Layout and navigation refinement */
html { scroll-padding-top: 92px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  padding: 14px 18px;
  margin: 0 auto;
  background: rgba(236, 233, 225, 0.94);
  backdrop-filter: blur(14px);
}
.site-header.compact { padding-bottom: 14px; }
.brand { min-width: 0; }
.brand > div { min-width: 0; }
.brand h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav {
  flex: 0 0 auto;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--text);
  border-radius: 9px;
  background: rgba(251, 250, 246, 0.8);
}
.nav a {
  position: relative;
  min-width: 68px;
  padding: 9px 13px;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav a.is-current {
  background: var(--text);
  color: var(--accent-2);
  box-shadow: 2px 2px 0 var(--accent);
}
.nav a.is-current:hover,
.nav a.is-current:focus-visible { background: var(--text); color: var(--accent-2); }
.page { width: min(1180px, calc(100% - 32px)); padding-top: 30px; }
.hero-home { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); }
.hero-copy { max-width: 700px; }
.hero-actions { align-items: center; }
.section > h2,
.section > h3,
.section > .lead,
.section > .muted { max-width: 78ch; }
.diagnostic-intro > .board-preview-shell { margin-left: -8px; margin-right: -8px; }
.diagnostic-intro > .card-grid,
.guides-intro > .card-grid { margin-top: 24px; }
.site-footer { width: min(1180px, calc(100% - 32px)); }

@media (max-width: 900px) {
  .site-header {
    width: 100%;
    padding: 12px 16px;
  }
  .page { width: min(100% - 24px, 720px); padding-top: 22px; }
  .hero-home { grid-template-columns: 1fr; }
  .hero-home .hero-copy { max-width: none; }
  .hero-home::before { top: 18px; }
  .nav { width: 100%; justify-content: stretch; }
  .nav a { flex: 1 1 0; min-width: 0; }
  .site-footer { width: min(100% - 24px, 720px); }
}

@media (max-width: 520px) {
  .site-header { align-items: stretch; gap: 12px; }
  .brand-mark { width: 44px; height: 44px; box-shadow: 3px 3px 0 var(--accent); }
  .brand h1 { font-size: 0.98rem; }
  .brand .eyebrow { margin-bottom: 2px; }
  .nav a { padding: 8px 6px; font-size: 0.84rem; }
  .hero { padding: 24px 20px; }
  .hero h2 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero::before { position: static; display: block; margin-bottom: 28px; }
  .section { padding: 20px 16px; }
  .diagnostic-intro > .board-preview-shell { margin-left: -2px; margin-right: -2px; padding: 4px; }
}

/* Minimal portfolio-inspired layout */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --panel: #ffffff;
  --panel-strong: #111111;
  --text: #111111;
  --muted: #686868;
  --line: #e5e5e5;
  --accent: #2457ff;
  --accent-2: #dce5ff;
  --warning: #e56b3f;
  --shadow: 0 12px 28px rgba(17, 17, 17, 0.06);
}

body {
  background: #ffffff;
  color: var(--text);
  font-family: "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.7;
}
.site-header {
  width: min(1200px, calc(100% - 48px));
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}
.site-header.compact { padding-bottom: 20px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  box-shadow: none;
}
.brand-mark::after { content: "PC"; font-size: 0.72rem; letter-spacing: 0.08em; }
.brand h1, .section h2, .card h3, .card h4, .hero h2 {
  font-family: "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -0.055em;
}
.brand h1 { font-size: 1rem; font-weight: 700; }
.eyebrow {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.nav {
  border: 0;
  padding: 0;
  gap: 4px;
  background: transparent;
}
.nav a {
  min-width: 0;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); background: var(--bg-soft); }
.nav a.is-current { color: var(--text); background: var(--bg-soft); box-shadow: none; }
.nav a.is-current::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: var(--accent);
}
.page { width: min(1200px, calc(100% - 48px)); padding-top: 54px; }
.hero, .section, .card, .result-panel, .note {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero {
  min-height: 520px;
  margin-bottom: 40px;
  padding: 72px 0 76px;
  align-items: end;
  background: #f7f7f5;
  border-radius: 22px;
}
.hero::before, .hero::after { display: none; }
.hero-copy { padding: 0 72px; }
.hero h2 { max-width: 11ch; font-size: clamp(3rem, 8vw, 6.8rem); line-height: 0.98; font-weight: 700; }
.hero .lead { max-width: 42ch; margin-top: 24px; font-size: 1.05rem; }
.hero-actions { margin-top: 30px; }
.button { min-height: 44px; padding: 0 17px; border-radius: 999px; }
.button.primary { background: var(--text); color: #fff; border-color: var(--text); box-shadow: none; }
.button.primary:hover, .button.primary:focus-visible { background: var(--accent); border-color: var(--accent); }
.button.secondary { color: var(--text); border-color: var(--line); background: #fff; }
.button.secondary:hover, .button.secondary:focus-visible { background: var(--bg-soft); }
.section { padding: 58px 0; margin-bottom: 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 700; }
.section > h3 { font-size: 1.55rem; font-weight: 700; }
.card, .stat { padding: 24px 0; border-top: 1px solid var(--line); background: transparent; }
.card:hover { transform: none; border-color: var(--line); background: transparent; box-shadow: none; }
.card-grid { gap: 0 34px; }
.home-feature-grid, .guide-highlight-grid { gap: 0 34px; }
.home-feature-grid .card, .guide-highlight-grid .card { min-height: 200px; }
.route-card { padding: 28px; border: 1px solid var(--text); border-radius: 16px; background: var(--text); color: #fff; }
.route-card p, .route-card .eyebrow { color: #c9c9c9; }
.route-card .eyebrow { color: var(--accent-2); }
.route-steps span { background: #fff; color: var(--text); }
.link-list { gap: 8px; }
.link-list a, .related-guide-link { padding: 9px 13px; border-radius: 999px; border-color: var(--line); background: #fff; color: var(--text); }
.link-list a:hover, .link-list a:focus-visible { background: var(--bg-soft); border-color: var(--text); }
.key-cause { border-left-color: var(--accent); background: var(--bg-soft); border-radius: 0; }
.guide-kind-filters { padding: 0 0 14px; }
.guide-kind-filter { border-radius: 999px; border-color: var(--line); background: #fff; color: var(--muted); }
.guide-kind-filter:hover, .guide-kind-filter.active { border-color: var(--text); background: var(--text); color: #fff; }
.guide-kind-filter span { background: var(--bg-soft); color: var(--text); }
.guide-kind-filter.active span { background: var(--accent-2); }
.code-chip { border-radius: 999px; background: var(--accent-2); border-color: transparent; color: var(--text); }
.diagnostic-intro, .guides-intro { background: transparent; }
.diagnostic-intro > .board-preview-shell { margin: 24px 0 42px; padding: 0; border: 0; background: transparent; }
.board-frame { border-radius: 16px; box-shadow: none; }
.board-detail-card { border-radius: 16px; background: var(--bg-soft); box-shadow: none; }
.board-code { border-radius: 999px; background: #fff; color: var(--text); border-color: var(--line); }
.diag-card, .result-box, .code-panel, .log-panel { border-radius: 14px; border-color: var(--line); background: var(--bg-soft); }
.diag-card { color: var(--text); }
.diag-card.active { outline: 2px solid var(--accent); background: var(--accent-2); }
.code-input { border-radius: 10px; border-color: var(--line); background: #fff; color: var(--text); }
.suggestion-item, .log-field, .log-alert, .log-highlight, .log-link-list a, .log-focus-item { border-radius: 10px; border-color: var(--line); background: #fff; color: var(--text); }
.takeaway-panel { border-radius: 14px; background: var(--bg-soft); border-color: var(--line); }
.takeaway-list span { border-radius: 8px; background: #fff; }
.detail-page .section { border-left: 0; }
.callout { border-left-color: var(--accent); background: var(--bg-soft); border-radius: 8px; }
.faq-item, .fact-card { border-radius: 10px; background: var(--bg-soft); border-color: var(--line); }
.site-footer { width: min(1200px, calc(100% - 48px)); border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .site-header, .page, .site-footer { width: min(100% - 32px, 720px); }
  .hero { min-height: 440px; padding: 46px 0; }
  .hero-copy { padding: 0 34px; }
  .hero h2 { font-size: clamp(3rem, 12vw, 5rem); }
  .section { padding: 44px 0; }
}
@media (max-width: 520px) {
  .site-header { width: calc(100% - 24px); padding: 14px 0; }
  .brand-mark { width: 40px; height: 40px; }
  .nav a { padding: 6px 7px; font-size: 0.82rem; }
  .page, .site-footer { width: calc(100% - 24px); }
  .hero { min-height: 420px; border-radius: 16px; padding: 34px 0; }
  .hero-copy { padding: 0 22px; }
  .hero h2 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .section { padding: 36px 0; }
}

/* Home hero visual */
.hero-media {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0 42px 0 0;
}
.hero-image-frame {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
  border-radius: 18px;
  background: #ececeb;
}
.hero-image-frame img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
}
.hero-media figcaption {
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .hero-media { padding: 0 34px; }
  .hero-image-frame { min-height: 300px; }
  .hero-image-frame img { max-height: 340px; }
}
@media (max-width: 520px) {
  .hero-media { padding: 0 22px; }
  .hero-image-frame { min-height: 270px; border-radius: 14px; }
  .hero-image-frame img { max-height: 310px; }
}

.editorial-meta {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 0.86rem;
}
.error-context-card,
.caution-card {
  margin-top: 24px;
}
.caution-card {
  padding-left: 20px;
  border-left: 3px solid var(--warning);
}

/* Contrast-safe interaction states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.card:hover,
.card:focus-within {
  color: var(--text);
  background: var(--panel);
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent-2);
}

.card:hover h3,
.card:hover h4,
.card:hover p,
.card:focus-within h3,
.card:focus-within h4,
.card:focus-within p {
  color: inherit;
}

.card:hover a,
.card:focus-within a {
  color: var(--accent);
}

/* Keep the dark diagnostic route readable on hover. */
.route-card:hover,
.route-card:focus-within {
  color: #ffffff;
  background: var(--text);
  border-color: var(--text);
  box-shadow: 5px 5px 0 var(--accent);
}

.route-card:hover h3,
.route-card:hover p,
.route-card:focus-within h3,
.route-card:focus-within p {
  color: inherit;
}

.route-card:hover .eyebrow,
.route-card:focus-within .eyebrow {
  color: var(--accent-2);
}

.route-card:hover .route-steps span,
.route-card:focus-within .route-steps span {
  background: #ffffff;
  color: var(--text);
}

.button.primary:hover,
.button.primary:focus-visible {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.link-list a:hover,
.link-list a:focus-visible,
.related-guide-link:hover,
.related-guide-link:focus-visible {
  color: var(--text);
  background: var(--bg-soft);
  border-color: var(--text);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Reference-style home hero */
.hero-home {
  background:
    radial-gradient(circle at 78% 40%, rgba(104, 188, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #f2f8ff 0%, #f7f7f5 58%, #edf5ff 100%);
}

.hero-home .eyebrow {
  color: #1769c2;
}

.hero-image-frame {
  min-height: 390px;
  border: 1px solid #d9e8f5;
  background: linear-gradient(145deg, #eaf5ff, #ffffff 72%);
  box-shadow: 0 18px 40px rgba(35, 112, 174, 0.12);
}

.hero-image-frame img {
  mix-blend-mode: normal;
  object-fit: contain;
  object-position: center;
}

.hero-media figcaption {
  color: #5d7182;
}

@media (max-width: 900px) {
  .hero-home {
    padding-top: 42px;
  }

  .hero-image-frame {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .hero-image-frame {
    min-height: 270px;
  }
}

/* Keep the replacement diagnostic artwork landscape at every breakpoint. */
.board-frame:has(.board-image[src*="diagnostic-pc-parts"]) {
  min-height: 0 !important;
  aspect-ratio: 1600 / 873;
}

.board-frame:has(.board-image[src*="diagnostic-pc-parts"]) .board-board {
  min-height: 0 !important;
}

/* The replacement artwork is landscape, so let it use the full diagnostic width. */
.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) {
  display: block;
}

.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-frame {
  padding: 0;
  border-radius: 18px;
  background: #eef7ff;
  box-shadow: 0 18px 42px rgba(26, 93, 146, 0.14);
}

.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-frame::before,
.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-frame::after,
.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-glow,
.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-circuit {
  display: none;
}

.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-board {
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-artwork {
  inset: 0;
  border-radius: 18px;
}

.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-detail {
  margin-top: 24px;
}

.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-hotspot:hover,
.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-hotspot:focus,
.board-lab:has(.board-image[src*="diagnostic-pc-parts"]) .board-hotspot.active {
  outline: 3px solid rgba(8, 126, 164, 0.38);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.board-code:hover,
.board-code:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(8, 126, 164, 0.14);
}

/* Bring the diagnostic title and reading text into the same visual scale. */
.diagnostic-intro > h2 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.diagnostic-intro > .lead {
  max-width: 66ch;
  margin-bottom: 14px;
  font-size: 1.12rem;
  line-height: 1.65;
}

.diagnostic-intro > p:not(.eyebrow):not(.lead) {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.72;
}

@media (max-width: 520px) {
  .diagnostic-intro > h2 {
    font-size: 2.15rem;
  }

  .diagnostic-intro > .lead {
    font-size: 1.03rem;
  }
}

/* Blend the homepage artwork into the hero instead of presenting it as a card. */
.hero-home {
  background: linear-gradient(135deg, #eef7ff 0%, #f5faff 52%, #e9f4ff 100%);
}

.hero-home .hero-copy {
  align-self: center;
}

.hero-home h2 {
  max-width: 15ch;
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  line-height: 1.04;
}

.hero-home .hero-media {
  padding: 0;
}

.hero-home .hero-image-frame {
  min-height: 390px;
  border: 0;
  border-radius: 0;
  background-color: #edf7ff;
  background-image: url("assets/pc-check-hero.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}

@media (max-width: 900px) {
  .hero-home h2 {
    font-size: clamp(2.25rem, 8vw, 3.4rem);
  }

  .hero-home .hero-image-frame {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .hero-home h2 {
    max-width: 100%;
    font-size: 2.2rem;
  }

  .hero-home .hero-image-frame {
    min-height: 270px;
  }
}

/* Let every heading wrap by words instead of breaking at arbitrary letters. */
.brand h1,
.section h2,
.section h3,
.section h4,
.hero h2,
.card h3,
.card h4,
.detail-page h2,
.code-heading h2 {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.brand h1 {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.section h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.12;
}

.diagnostic-intro > h2 {
  max-width: 24ch;
}

.code-heading h2 {
  min-width: 0;
}

@media (max-width: 900px) {
  .brand h1 {
    max-width: 25ch;
  }

  .section h2 {
    max-width: 20ch;
    font-size: clamp(1.9rem, 6vw, 3rem);
  }
}

@media (max-width: 520px) {
  .brand h1 {
    max-width: 19ch;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .section h2,
  .diagnostic-intro > h2 {
    max-width: 100%;
    font-size: 2rem;
    line-height: 1.18;
  }
}

/* Clean guide hub */
.guides-intro {
  display: block;
}

.guides-intro > h2 {
  margin-bottom: 14px;
}

.guides-intro > .lead {
  margin-bottom: 28px;
}

.guide-search-shell {
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(260px, 1fr);
  gap: 8px 18px;
  align-items: center;
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.guide-search-shell label {
  font-weight: 800;
  color: var(--text);
}

.guide-search-shell input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #c8c8c8;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.guide-search-shell input::placeholder {
  color: #777777;
}

.guide-search-shell p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-layout {
  gap: 48px;
}

.guide-section {
  gap: 18px;
}

.guide-section--filters {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.guide-kind-filters {
  gap: 8px;
  padding: 0 0 20px;
}

.guide-kind-filter {
  min-height: 42px;
  padding: 8px 13px;
}

.guide-featured-grid,
.guide-clean-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.guide-card--simple {
  height: 100%;
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.guide-card-link:hover,
.guide-card-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.guide-card-link:hover .guide-card--simple,
.guide-card-link:focus-visible .guide-card--simple {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(36, 87, 255, 0.1);
}

.guide-card-link--featured .guide-card--simple {
  background: linear-gradient(145deg, #eef4ff, #ffffff 72%);
  border-color: #cfdafe;
}

.guide-card--simple h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.3;
}

.guide-card--simple > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.guide-card-meta {
  margin-bottom: 2px;
}

.guide-type {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-first-check {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.guide-first-check strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 0.78rem;
}

.guide-card-cta {
  color: var(--accent);
  font-weight: 800;
}

.guide-result-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.guide-empty {
  padding: 34px;
  border: 1px dashed #bcbcbc;
  border-radius: 14px;
  background: var(--bg-soft);
  text-align: center;
}

.guide-empty p {
  margin-bottom: 0;
  color: var(--muted);
}

.guide-code-more {
  color: var(--accent);
  font-weight: 700;
}

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

.code-index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 9px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
}

.code-index-item:hover,
.code-index-item:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

.code-index-item > span:last-child {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-static-index {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.guide-static-index summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.guide-static-index .link-list {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .guide-featured-grid,
  .guide-clean-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 600px) {
  .guide-search-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .guide-search-shell p {
    grid-column: 1;
  }

  .guide-featured-grid,
  .guide-clean-grid,
  .code-index-grid {
    grid-template-columns: 1fr;
  }

  .guide-card--simple {
    min-height: 0;
  }

  .guide-section-head {
    align-items: flex-start;
  }
}

/* Focused diagnostic workflow */
.diagnostic-shell {
  display: block;
  margin-top: 34px;
}

.diagnostic-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.diagnostic-mode-tab {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.diagnostic-mode-tab:hover,
.diagnostic-mode-tab:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.diagnostic-mode-tab.active {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
}

.diagnostic-mode-tab strong {
  font-size: 1rem;
  word-break: keep-all;
}

.diagnostic-mode-tab span {
  color: var(--muted);
  font-size: 0.82rem;
  word-break: keep-all;
}

.diagnostic-mode-tab.active span {
  color: #d4d4d4;
}

.diagnostic-mode-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.diagnostic-mode-panel[hidden] {
  display: none !important;
}

.diagnostic-mode-panel.code-panel,
.diagnostic-mode-panel.log-panel {
  grid-column: auto;
  border-radius: 16px;
  background: #ffffff;
}

.diagnostic-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.diagnostic-panel-head h3,
.diagnostic-mode-panel .code-panel-head h3 {
  margin: 0 0 7px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.25;
  word-break: keep-all;
  text-wrap: balance;
}

.diagnostic-panel-head p {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
}

.symptom-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.symptom-group-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.symptom-group-filter {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.symptom-group-filter:hover,
.symptom-group-filter:focus-visible,
.symptom-group-filter.active {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
}

.symptom-result-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.symptom-diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.symptom-diagnosis-layout .diag-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.symptom-diagnosis-layout .diag-card {
  min-width: 0;
  border-radius: 12px;
  background: var(--bg-soft);
}

.symptom-diagnosis-layout .diag-card:hover,
.symptom-diagnosis-layout .diag-card:focus-visible {
  border-color: var(--accent);
  background: #ffffff;
}

.symptom-diagnosis-layout .diag-card.active {
  outline: 2px solid var(--accent);
  background: #eef4ff;
}

.symptom-diagnosis-layout .result-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.diagnostic-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #bdbdbd;
  border-radius: 12px;
  text-align: center;
}

.diagnostic-empty p {
  margin-bottom: 0;
  color: var(--muted);
}

.log-privacy-note {
  margin: 0 0 10px;
  padding: 11px 13px;
  border-left: 3px solid var(--accent);
  background: #eef4ff;
  color: var(--muted);
  font-size: 0.9rem;
}

.log-privacy-note strong {
  color: var(--text);
}

.log-format-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.log-format-badges span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .diagnostic-mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .symptom-toolbar,
  .symptom-diagnosis-layout {
    grid-template-columns: 1fr;
  }

  .symptom-group-filters {
    justify-content: flex-start;
  }

  .symptom-diagnosis-layout .result-panel {
    position: static;
  }
}

@media (max-width: 600px) {
  .diagnostic-mode-tabs {
    gap: 8px;
  }

  .diagnostic-mode-tab {
    min-height: 72px;
    padding: 11px 12px;
  }

  .diagnostic-mode-panel {
    padding: 17px;
  }

  .diagnostic-panel-head h3,
  .diagnostic-mode-panel .code-panel-head h3 {
    font-size: 1.3rem;
  }

  .symptom-diagnosis-layout .diag-grid {
    grid-template-columns: 1fr;
  }

  .symptom-group-filter {
    flex: 1 1 auto;
  }
}

/* Stable typography for symptom detail pages */
.detail-page > .section:first-child h2,
.static-detail-fallback > h2 {
  max-width: 26ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.045em;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.detail-page > .section:first-child .lead,
.static-detail-fallback > .lead {
  max-width: 62ch;
  margin-top: 14px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-page > .section:first-child .detail-subtitle,
.static-detail-fallback > .editorial-meta {
  max-width: 70ch;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.static-detail-fallback {
  min-width: 0;
}

.static-detail-fallback > p,
.static-detail-fallback > .mini-list {
  max-width: 72ch;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .detail-page > .section:first-child h2,
  .static-detail-fallback > h2 {
    max-width: 100%;
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    line-height: 1.28;
  }
}

@media (max-width: 420px) {
  .detail-page > .section:first-child h2,
  .static-detail-fallback > h2 {
    font-size: 1.55rem;
    letter-spacing: -0.035em;
  }
}

/* Keep editorial details on the About and Editorial Policy pages. */
.editorial-meta {
  display: none !important;
}

/* Keep the interactive parts diagnostic readable on every theme/browser. */
.board-section {
  color: #16252b !important;
  background: #ffffff !important;
  border: 1px solid #dfe5e8 !important;
  border-radius: 18px !important;
  padding: 28px !important;
}

.board-section .guide-section-head h3,
.board-section .guide-section-head p {
  color: #16252b !important;
}

.board-section .guide-section-head p {
  color: #526168 !important;
}

.board-section .guide-section-nav a {
  color: #16252b !important;
  border: 1px solid #cbd6db !important;
  background: #ffffff !important;
}

.board-section .guide-section-nav a:hover,
.board-section .guide-section-nav a:focus-visible {
  color: #ffffff !important;
  border-color: #087ea4 !important;
  background: #087ea4 !important;
}

.board-section .board-preview-shell {
  color: #16252b !important;
  background: #f7faff !important;
  border: 1px solid #dfe8ef !important;
}

.board-section .board-detail-card {
  color: #16252b !important;
  background: #ffffff !important;
  border-color: #d7e0e5 !important;
}

.board-section .board-detail-card p,
.board-section .board-detail-card li,
.board-section .board-detail-card h4 {
  color: #16252b !important;
}

@media (max-width: 600px) {
  .board-section {
    padding: 20px 16px !important;
  }
}

/* Error-code headings need their own scale and wrapping rules. */
.code-heading {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.code-heading h2 {
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  font-size: clamp(1.55rem, 3vw, 2.6rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.04em;
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.code-heading .code-chip {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .code-heading {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .code-heading .code-chip {
    grid-column: 2;
    justify-self: start;
  }

  .code-heading h2 {
    font-size: clamp(1.35rem, 6vw, 1.9rem) !important;
  }
}

/* Quiet hover states for guide cards and diagnostic results. */
.detail-grid .card,
.detail-stack .card,
.faq-grid .faq-item {
  padding-inline: clamp(20px, 2.2vw, 30px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.detail-grid .card:hover,
.detail-grid .card:focus-within,
.detail-stack .card:hover,
.detail-stack .card:focus-within,
.faq-grid .faq-item:hover,
.faq-grid .faq-item:focus-within {
  transform: translateY(-3px);
  background: #ffffff !important;
  border-color: #cfd8df !important;
  box-shadow: 0 8px 20px rgba(20, 45, 65, 0.08) !important;
}

.detail-grid .card:hover h3,
.detail-grid .card:hover p,
.detail-grid .card:focus-within h3,
.detail-grid .card:focus-within p,
.detail-stack .card:hover h3,
.detail-stack .card:hover p,
.detail-stack .card:focus-within h3,
.detail-stack .card:focus-within p,
.faq-grid .faq-item:hover summary,
.faq-grid .faq-item:focus-within summary {
  color: inherit;
}

.board-section .board-hotspot:hover,
.board-section .board-hotspot:focus-visible,
.board-section .board-hotspot.active {
  outline: 2px solid rgba(8, 126, 164, 0.55) !important;
  outline-offset: 3px;
  background: rgba(8, 126, 164, 0.06) !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .detail-grid .card,
  .detail-stack .card,
  .faq-grid .faq-item {
    transition: none;
  }
}

/* Add a calm reading gutter to long-form detail pages. */
.article .section {
  width: 100%;
  max-width: 1120px;
  padding-inline: clamp(32px, 5vw, 80px);
}

@media (max-width: 600px) {
  .article .section {
    padding-inline: 16px;
  }
}

/* Keep symptom detail titles subordinate to the page content. */
.detail-page > .section:first-child h2,
.article .static-detail-fallback > h2,
.article .section[data-symptom-detail-page] > h2,
.detail-page .section h2 {
  max-width: 100% !important;
  font-size: 2rem !important;
  line-height: 1.24 !important;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .detail-page > .section:first-child h2,
  .article .static-detail-fallback > h2,
  .article .section[data-symptom-detail-page] > h2,
  .detail-page .section h2 {
    max-width: 100% !important;
    font-size: 1.75rem !important;
  }
}

/* Restore contrast inside the dark error preview panel. */
.error-screen {
  color: #f5f7ff !important;
  border-color: #48536e !important;
}

.error-screen-top {
  background: rgba(255, 255, 255, 0.08) !important;
}

.error-screen-code {
  color: #c9ed62 !important;
}

.error-screen-title {
  color: #ffffff !important;
}

.error-screen-copy {
  color: #cbd5e1 !important;
}

/* Keep rendered error-code titles aligned with symptom detail titles. */
.code-heading h2 {
  font-size: 2rem !important;
  line-height: 1.24 !important;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .code-heading h2 {
    font-size: 1.75rem !important;
  }
}

/* Responsive typography for every title and topic in the guide hub. */
body:has([data-guides-root]) .brand h1 {
  max-width: 30ch;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.25;
  white-space: normal;
}

.guides-intro > h2 {
  max-width: 18ch;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  line-height: 1.12;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.guides-intro > .lead {
  max-width: 64ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.guide-section-head > div {
  flex: 1 1 420px;
  min-width: 0;
}

.guide-section-head h3 {
  max-width: 32ch;
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.guide-card--simple h3 {
  max-width: 100%;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.guide-card--simple > p,
.guide-search-shell p,
.guide-static-index summary,
.guide-static-index a {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.guide-card--simple > p {
  font-size: 0.95rem;
}

.guide-card-meta,
.guide-kind-filter,
.guide-result-count {
  white-space: nowrap;
}

.code-index-item {
  overflow: hidden;
}

.code-index-item strong {
  min-width: 0;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.code-index-item > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.4;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .guides-intro > h2 {
    max-width: 20ch;
    font-size: clamp(1.95rem, 6vw, 2.7rem);
  }

  .guide-section-head h3 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
  }
}

@media (max-width: 600px) {
  body:has([data-guides-root]) .brand h1 {
    max-width: 20ch;
    font-size: 0.9rem;
  }

  .guides-intro > h2 {
    max-width: 100%;
    font-size: 1.9rem;
    line-height: 1.18;
  }

  .guides-intro > .lead {
    font-size: 1rem;
  }

  .guide-section-head h3 {
    max-width: 100%;
    font-size: 1.3rem;
  }

  .guide-card--simple h3 {
    font-size: 1.12rem;
  }

  .guide-card--simple > p {
    font-size: 0.93rem;
  }
}
