/*
 * app.css — Component styles for vanilla-htmx adapter.
 *
 * Uses ONLY CSS custom properties from tokens.css (generated by token_css_generator.py).
 * NO raw hex values — every color, space, and font value references a var(--*) token.
 * This file is the single place where semantic tokens are consumed.
 *
 * Spec: design/patterns/component/{button,form,table}.md
 *       out/analysis/design/app-shell-spec.md (Growth-36 app shell)
 */

/* ── Reset / base ────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  line-height: var(--font-line-md);
  color: var(--color-text-1);
  background: var(--color-surface-2);
}

/* Screen-reader only utility */
.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;
}

/* ── Global focus ring (spec §5-7) ──────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus-ring);
}

/* ── Skip link (spec §7) ─────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-page-gutter);
  background: var(--color-surface-1);
  color: var(--color-primary);
  padding: var(--space-inset-sm) var(--space-inset-md);
  border-radius: var(--radius-control);
  font-weight: var(--font-weight-label);
  z-index: calc(var(--zindex-sticky) + 100);
  transition: top 100ms ease;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-gap-sm);
}

/* ── App shell layout (spec §8) ─────────────────────────────────────────── */

:root {
  --app-header-h: 52px;
}

.app-layout {
  display: grid;
  grid-template-rows: var(--app-header-h) 1fr auto;
  min-height: 100vh;
}

.app-body {
  display: grid;
  grid-template-columns: var(--space-sidebar-width) 1fr;
  align-items: start;
}

.app-body--sidebar-collapsed {
  grid-template-columns: var(--space-sidebar-width-collapsed) 1fr;
}

/* ── Header (spec §2-2, §4) ─────────────────────────────────────────────── */

.app-header {
  height: var(--app-header-h);
  position: sticky;
  top: 0;
  z-index: var(--zindex-sticky);
  background: var(--color-surface-1);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);           /* elevation 0→1 — 디자이너 손길 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-page-gutter);
  gap: var(--space-gap-lg);
}

.header-start {
  display: flex;
  align-items: center;
  gap: var(--space-gap-sm);
  flex-shrink: 0;
}

.app-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-heading);
  color: var(--color-text-1);
  text-decoration: none;
  letter-spacing: -0.02em;              /* Pretendard 한글 자간 최적화 */
  white-space: nowrap;
  flex-shrink: 0;
}
.app-logo:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-gap-md);
}

/* 사용자 아바타 배지 (spec §4, §5-3) — 디자이너 손길 */
.header-user {
  display: flex;
  align-items: center;
  gap: var(--space-gap-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-2);
}

.header-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-badge);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-strong);
  flex-shrink: 0;
}

.header-user__name {
  font-size: var(--font-size-sm);
  color: var(--color-text-2);
}

/* 햄버거 버튼 — 데스크톱에서 collapse 토글, 모바일에서 드로어 토글 */
.hamburger-btn {
  display: none;   /* 모바일에서만 표시 — §6-2 */
  flex-shrink: 0;
}

/* 데스크톱에서도 collapse 버튼으로 재사용 */
@media (min-width: 769px) {
  .hamburger-btn {
    display: inline-flex;
  }
}

/* ── Sidebar (spec §2-3, §3) ─────────────────────────────────────────────── */

.app-sidebar {
  width: var(--space-sidebar-width);
  background: var(--color-surface-1);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - var(--app-header-h));
  position: sticky;
  top: var(--app-header-h);
  padding: var(--space-stack-sm) 0;
  transition: width 150ms cubic-bezier(0.2,0,0,1);
}

.app-sidebar--collapsed {
  width: var(--space-sidebar-width-collapsed);
}

/* 사이드바 그룹 */
.sidebar-group {
  margin-bottom: var(--space-stack-md);
}

.sidebar-group__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-strong);
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 var(--space-inset-md) var(--space-gap-xs);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-gap-sm);
  padding: var(--space-inset-xs) var(--space-inset-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  color: var(--color-text-2);
  text-decoration: none;
  border-radius: var(--radius-control);
  margin: 1px var(--space-inset-xs);
  transition: background 100ms ease, color 100ms ease;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav__link:hover {
  background: var(--color-surface-2);
  color: var(--color-text-1);
}

/* Active 상태 — 색 + 굵기 + ::before 바 3중 신호 (디자이너 서명 §5-1) */
.sidebar-nav__link--active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-weight: var(--font-weight-heading);
}

.sidebar-nav__link--active::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--color-primary);
  border-radius: var(--radius-sm, 2px);
  margin-right: calc(var(--space-gap-sm) - 3px);
  flex-shrink: 0;
}

.sidebar-nav__link:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: -2px;
  box-shadow: none;
}

/* 접힘 상태 텍스트/레이블 숨김 */
.app-sidebar--collapsed .sidebar-group__label,
.app-sidebar--collapsed .sidebar-nav__link-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, width 150ms ease;
}

/* 첫글자 아바타 (접힘 상태 아이콘 대체) */
.sidebar-nav__link-initial {
  display: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-badge);
  background: var(--color-surface-3);
  color: var(--color-text-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-heading);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-sidebar--collapsed .sidebar-nav__link-initial {
  display: flex;
}

/* ── Main content area (spec §2-4) ──────────────────────────────────────── */

.app-main {
  flex: 1;
  min-width: 0;
  padding: var(--space-stack-lg) var(--space-page-gutter);
  overflow-y: auto;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.app-footer {
  text-align: center;
  padding: var(--space-inset-md);
  color: var(--color-text-3);
  font-size: var(--font-size-xs);
  border-top: 1px solid var(--color-border);
}

/* ── Mobile drawer (spec §6) ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .app-body {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: var(--app-header-h);
    height: calc(100vh - var(--app-header-h));
    z-index: calc(var(--zindex-sticky) + 50);
    transform: translateX(-100%);
    transition: transform 200ms cubic-bezier(0,0,0.2,1);
    box-shadow: var(--shadow-modal);
    width: 280px;
  }

  .app-sidebar--open {
    transform: translateX(0);
  }

  .drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-surface-overlay);
    z-index: calc(var(--zindex-sticky) + 40);
  }

  .drawer-backdrop--visible {
    display: block;
  }

  .hamburger-btn {
    display: flex;
  }
}

/* 데스크톱에서 drawer 숨김 */
@media (min-width: 769px) {
  .drawer-backdrop { display: none !important; }
  .app-sidebar { transform: none !important; }
}

/* ── Persona select ──────────────────────────────────────────────────────── */

.persona-select {
  font-size: var(--font-size-sm);
  padding: var(--space-inset-xs) var(--space-inset-sm);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-control);
  background: var(--color-surface-1);
  color: var(--color-text-1);
  cursor: pointer;
}

/* ── Page header ─────────────────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-stack-md);
}

.page-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-heading);
  color: var(--color-text-1);
  margin: 0;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.card {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-inset-xl);
  margin-bottom: var(--space-stack-md);
}

.card--centered {
  max-width: 480px;
  margin: var(--space-stack-xl) auto;
  text-align: center;
}

/* ── Buttons (button.md spec) ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-gap-xs);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-label);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease;
  box-shadow: var(--shadow-xs);
}

.btn:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus-ring);
}

.btn:disabled {
  background: var(--color-surface-3);
  border-color: var(--color-border);
  color: var(--color-text-disabled);
  cursor: not-allowed;
  box-shadow: none;
}

/* Sizes */
.btn-sm  { height: 28px; padding: 0 var(--space-inset-sm); font-size: var(--font-size-sm); }
.btn-md  { height: 36px; padding: 0 var(--space-inset-md); font-size: var(--font-size-md); }
.btn-lg  { height: 44px; padding: 0 var(--space-inset-lg); font-size: var(--font-size-lg); }

/* Variants */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); box-shadow: var(--shadow-card); }
.btn-primary:active:not(:disabled) { background: var(--color-primary-active); box-shadow: none; }

.btn-secondary {
  background: var(--color-surface-1);
  border-color: var(--color-border-strong);
  color: var(--color-text-2);
}
.btn-secondary:hover:not(:disabled) { background: var(--color-surface-2); }

.btn-danger {
  background: var(--color-danger);
  color: var(--color-text-on-danger);
}
.btn-danger:hover:not(:disabled) { background: var(--color-danger-hover); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-2);
  box-shadow: none;
}
.btn-ghost:hover:not(:disabled) { background: var(--color-surface-2); }

.btn-danger-ghost {
  color: var(--color-danger);
}
.btn-danger-ghost:hover:not(:disabled) { background: var(--color-danger-subtle); }

/* ── Forms (form.md spec) ─────────────────────────────────────────────────── */

.form-field {
  margin-bottom: var(--space-stack-md);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  color: var(--color-text-2);
  margin-bottom: var(--space-gap-xs);
}

.required-marker {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-input {
  display: block;
  width: 100%;
  height: 36px;
  padding: var(--space-inset-xs) var(--space-inset-md);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-input);
  background: var(--color-surface-1);
  color: var(--color-text-1);
  font-size: var(--font-size-md);
  font-family: var(--font-family-body);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
}

.form-input:hover { border-color: var(--color-border-strong); }

.form-input:focus {
  border-color: var(--color-border-focus);
  outline: 2px solid var(--color-border-focus);
  outline-offset: -1px;
  box-shadow: var(--shadow-focus-ring);
}

.form-input--readonly {
  background: var(--color-surface-2);
  color: var(--color-text-2);
  cursor: default;
}

.form-input--error {
  border-color: var(--color-danger-border);
  background: var(--color-danger-subtle);
}

.form-hint, .form-caption {
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
  margin-top: var(--space-gap-xs);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-gap-sm);
  margin-top: var(--space-stack-lg);
}

.form-actions--center { justify-content: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-gap-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-2);
  cursor: pointer;
}

/* System fields hidden for non-IT personas */
[data-persona="ops"] .form-field--system[data-system-field="true"],
[data-persona="ceo"] .form-field--system[data-system-field="true"] {
  display: none;
}

/* ── Table (table.md spec) ───────────────────────────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-gap-sm);
  margin-bottom: var(--space-stack-md);
}

.toolbar-search {
  max-width: 280px;
}

.paging-mode-switcher {
  display: flex;
  gap: var(--space-gap-xs);
  margin-bottom: var(--space-stack-sm);
}

.table-wrapper {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  margin-bottom: var(--space-stack-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-md);
  font-family: var(--font-family-body);
}

.th {
  background: var(--color-surface-3);
  color: var(--color-text-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  padding: var(--space-inset-sm) var(--space-inset-md);
  border-bottom: 1px solid var(--color-border-strong);
  text-align: left;
  white-space: nowrap;
}

.th--actions { text-align: right; }

.th-sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-gap-xs);
  cursor: pointer;
}
.th-sort-link:hover { color: var(--color-primary); }

.td {
  padding: var(--space-inset-xs) var(--space-inset-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* 숫자 컬럼 우측 정렬 (spec §5-3) */
.td[data-type="number"] {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

.td--actions {
  text-align: right;
  white-space: nowrap;
  display: flex;
  gap: var(--space-gap-xs);
  justify-content: flex-end;
}

.tr:hover .td { background: var(--color-primary-subtle); }
.tr--alt .td { background: var(--color-surface-2); }
.tr--alt:hover .td { background: var(--color-primary-subtle); }

.text-empty { color: var(--color-text-3); }
.text-caption { font-size: var(--font-size-xs); color: var(--color-text-3); }
.text-secondary { color: var(--color-text-2); }

/* ── Pagination (table.md spec) ─────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-gap-xs);
  flex-wrap: wrap;
  margin-top: var(--space-stack-md);
}

.pagination-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-3);
  margin-right: var(--space-gap-md);
}

.pagination-ellipsis {
  color: var(--color-text-3);
  padding: 0 var(--space-gap-xs);
}

.cursor-pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-stack-md);
}

/* ── Error / status banners ─────────────────────────────────────────────── */

.error-banner {
  background: var(--color-danger-subtle);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-card);
  color: var(--color-danger);
  padding: var(--space-inset-md);
  margin-bottom: var(--space-stack-md);
  font-size: var(--font-size-md);
}

.error-banner--page {
  text-align: left;
}

.error-message {
  font-weight: var(--font-weight-label);
  margin: 0 0 var(--space-gap-xs);
}

.error-code {
  margin: 0;
}

.error-details {
  margin: var(--space-gap-sm) 0 0;
  padding-left: var(--space-inset-md);
}

.error-details-block {
  margin-top: var(--space-stack-sm);
  font-size: var(--font-size-sm);
}

.retry-hint {
  color: var(--color-text-3);
  font-size: var(--font-size-sm);
  margin-top: var(--space-gap-sm);
}

/* ── Status / health badges ─────────────────────────────────────────────── */

.health-summary {
  display: flex;
  align-items: center;
  gap: var(--space-gap-lg);
  margin-bottom: var(--space-stack-md);
}

.health-badge {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-heading);
  padding: var(--space-inset-xs) var(--space-inset-md);
  border-radius: var(--radius-badge);
}

.health-badge--ok       { background: var(--color-success-subtle); color: var(--color-status-ok); }
.health-badge--degraded { background: var(--color-warning-subtle); color: var(--color-warning-text); }
.health-badge--down     { background: var(--color-danger-subtle);  color: var(--color-status-down); }

.status-badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  padding: 2px 6px;
  border-radius: var(--radius-badge);
}

.status-badge--ok       { background: var(--color-success-subtle); color: var(--color-status-ok); }
.status-badge--degraded { background: var(--color-warning-subtle); color: var(--color-warning-text); }
.status-badge--down     { background: var(--color-danger-subtle);  color: var(--color-status-down); }

/* ── Login page ─────────────────────────────────────────────────────────── */

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-inset-xl);
}

.login-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-heading);
  color: var(--color-text-1);
  margin: 0 0 var(--space-stack-lg);
  text-align: center;
}

/* ── Delete confirm ─────────────────────────────────────────────────────── */

.delete-warning {
  background: var(--color-danger-subtle);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-card);
  padding: var(--space-inset-md);
  margin-bottom: var(--space-stack-md);
  color: var(--color-danger);
}

.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-gap-xs) var(--space-gap-lg);
  margin: 0 0 var(--space-stack-md);
}

.detail-term {
  font-weight: var(--font-weight-label);
  color: var(--color-text-2);
  font-size: var(--font-size-sm);
}

.detail-value {
  color: var(--color-text-1);
  font-size: var(--font-size-md);
  margin: 0;
}

/* ── Detail footer ──────────────────────────────────────────────────────── */

.detail-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-stack-md);
  padding-top: var(--space-stack-md);
  border-top: 1px solid var(--color-border);
}

/* ── Success state ──────────────────────────────────────────────────────── */

.success-icon {
  font-size: var(--font-size-4xl, 30px);
  color: var(--color-success);
  margin-bottom: var(--space-stack-sm);
}

/* ── Home screen — domain card grid (spec §5-6 hover lift) ──────────────── */

.home-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-gap-md);
  margin-bottom: var(--space-stack-lg);
}

.home-domain-card {
  padding: var(--space-inset-lg);
  /* 카드 hover lift — 디자이너 서명 §5-6 */
  transition: transform 150ms cubic-bezier(0.2,0,0,1),
              box-shadow 150ms cubic-bezier(0.2,0,0,1);
}

.home-domain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dropdown);
}

.home-domain-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-heading);
  color: var(--color-text-1);
  margin: 0 0 var(--space-stack-sm);
}

.home-entity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-gap-xs);
}

.home-entity-item {
  display: flex;
}

.home-entity-link {
  justify-content: flex-start;
  text-align: left;
  font-size: var(--font-size-md);
  color: var(--color-primary);
}

.home-entity-link:hover {
  text-decoration: underline;
}

/* ── Empty state (spec §5-4) ────────────────────────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-stack-md);
  padding: var(--space-stack-xl) var(--space-page-gutter);
  text-align: center;
}

.empty-state__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-badge);
  background: var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  color: var(--color-text-3);
}

.empty-state__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-heading);
  color: var(--color-text-2);
  margin: 0;
}

.empty-state__message {
  font-size: var(--font-size-sm);
  color: var(--color-text-3);
  margin: 0;
}

/* ── Feedback CTA (home + footer) ───────────────────────────────────────── */

.feedback-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-stack-xl);
  padding-top: var(--space-stack-md);
  border-top: 1px solid var(--color-border);
}

.footer-feedback-link {
  color: var(--color-text-3);
  font-size: var(--font-size-xs);
  text-decoration: underline;
}

.footer-feedback-link:hover {
  color: var(--color-primary);
}

.footer-sep {
  color: var(--color-text-3);
  font-size: var(--font-size-xs);
}

/* ── Breadcrumb (spec §5-5) ─────────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-gap-xs);
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
  margin-bottom: var(--space-gap-sm);
}

.breadcrumb__sep { color: var(--color-border-strong); user-select: none; }
.breadcrumb__link { color: var(--color-text-link); text-decoration: none; }
.breadcrumb__link:hover { text-decoration: underline; }
.breadcrumb__current { color: var(--color-text-2); font-weight: var(--font-weight-label); }

/* ── Code block ──────────────────────────────────────────────────────────── */

.code-block {
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-inset-md);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
