/* ============================================================
   xdi extras — ONLY classes NOT in Polaris Design System
   styles.css. Everything else comes from the bundle as-is.

   If a class duplicates polaris-platform.css, REMOVE it here.
   ============================================================ */

/* ── Breadcrumb above the title in topbar (xdi addition) ── */
.tb-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.tb-crumb { font-size: 12px; color: var(--fg2); display: flex; align-items: center; gap: 4px; }
.tb-crumb a { color: var(--fg2); text-decoration: none; }
.tb-crumb a:hover { color: var(--accent); }
.tb-crumb-sep { color: var(--fg3); }

/* ── Sidebar brand text fallback when org has no logo image ── */
.sb-brand-text { font-size: 18px; font-weight: 700; color: var(--fg1); letter-spacing: -0.01em; }

/* ── Stack utilities (only stack-16 is in bundle; we add 8/12/24) ── */
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-8  { display: flex; flex-direction: column; gap: 8px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }

/* ── Sub-navigation (xdi custom) ── */
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0; margin-bottom: 16px; }
.subnav-item { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--fg2); cursor: pointer; border-bottom: 2px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); text-decoration: none; }
.subnav-item:hover { color: var(--fg1); }
.subnav-item.is-active { color: var(--accent-pressed); border-bottom-color: var(--accent); }

/* ── Settings meta column (used in GlobalSettings extra layout) ── */
.gs-meta { flex: 1; min-width: 0; }

/* ── Mono helper ── */
.section-mono { font-family: var(--font-mono); }

/* ── Mobile notification sheet (slide-down from top, overlay) ── */
.notif-sheet {
  position: fixed; top: 0; left: 0; right: 0; z-index: calc(var(--z-modal, 500) + 1);
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: 80dvh; display: flex; flex-direction: column;
  transform-origin: top center;
  animation: notif-sheet-in var(--t-base, 200ms) var(--ease-out, ease) both;
}
@keyframes notif-sheet-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.notif-sheet-inner { display: flex; flex-direction: column; max-height: 80dvh; overflow: hidden; }
.notif-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-sheet-head .notif-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--fg1); }
.notif-sheet-head .notif-count { font-size: 11px; font-weight: 700; color: var(--accent-fg); background: var(--accent-tint); padding: 2px 8px; border-radius: 999px; }
.notif-sheet .tb-notif-list { flex: 1; overflow-y: auto; padding: 6px; }
.notif-sheet-foot {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.notif-sheet-scrim {
  position: fixed; inset: 0; z-index: var(--z-modal, 500);
  background: rgba(0,0,0,0.32); backdrop-filter: blur(2px);
}
/* Only show sheet on mobile (≤767px); on desktop use dropdown popup */
@media (min-width: 768px) {
  .notif-sheet, .notif-sheet-scrim { display: none !important; }
}

/* ── Prose typography for glossary ── */
.prose { font-size: 14px; line-height: 1.6; color: var(--fg1); max-width: none; }
.prose h1 { font-size: 20px; margin-top: 28px; font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: 8px; color: var(--fg1); }
.prose h2 { font-size: 16px; margin-top: 22px; font-weight: 600; color: var(--fg1); }
.prose h3 { font-size: 14px; margin-top: 16px; font-weight: 600; color: var(--fg1); }
.prose table { border-collapse: collapse; margin: 12px 0; width: 100%; }
.prose th, .prose td { border: 1px solid var(--border); padding: 7px 11px; text-align: left; font-size: 13px; vertical-align: top; }
.prose th { background: var(--surface-muted); font-weight: 600; color: var(--fg1); }
.prose td { color: var(--fg2); }
.prose code { background: var(--surface-muted); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; font-family: var(--font-mono); color: var(--accent-pressed); }
.prose ul, .prose ol { padding-left: 22px; margin: 6px 0; }
.prose li { margin: 3px 0; color: var(--fg2); }
.prose strong { color: var(--fg1); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.prose p { margin: 6px 0; color: var(--fg2); }
