/* IMDS Internal Training Hub — styles */

:root {
  /* IMDS brand palette — sourced from the 2026 deck theme
     navy #0B1F33 · cyan #03C4EB · teal #1C7293 · sky #4FB0D9 · pale #8FD4EE · steel #23699B · mist #E9EEF2 */
  --ink: #122438;
  --muted: #5b6b7b;
  --faint: #8a98a6;
  --accent: #0b1f33;          /* brand navy (accent2 / dk2) */
  --accent-dark: #07151f;
  --accent-soft: #e9eef2;     /* brand mist (lt2) */
  --accent-soft2: #f4f7fb;
  --cyan: #03c4eb;            /* brand cyan (accent1) */
  --cyan-dark: #1c7293;       /* brand teal (accent3) — readable on white */
  --cyan-soft: #e3f7fd;
  --steel: #23699b;           /* brand steel (accent6) */
  --sky: #4fb0d9;             /* brand sky (accent4) */
  --pale: #8fd4ee;            /* brand pale (accent5) */
  --green: #2e7d32;
  --amber: #b8860b;
  --line: #dde3ea;
  --bg: #f6f8fa;
  --card: #ffffff;
  --shadow: 0 1px 3px rgba(16,40,64,.06), 0 6px 24px rgba(16,40,64,.06);
  --radius: 12px;
  --sidebar: 256px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar);
  background: var(--accent-dark);
  background: linear-gradient(180deg, #0b1f33 0%, #0e2740 100%);
  color: #fff;
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 40;
  transition: transform .25s ease;
}
.brand { padding: 22px 22px 14px; }
.brand .logo { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand .logo-img { height: 30px; width: auto; display: block; margin-bottom: 2px; }
.brand .sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.brand .ver {
  display: inline-block; margin-top: 10px; font-size: 11px;
  background: rgba(255,255,255,.16); padding: 2px 8px; border-radius: 20px;
}

.nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  color: #dbe7f3; padding: 11px 14px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; margin-bottom: 2px;
}
.nav a:hover { background: rgba(255,255,255,.10); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.nav .group-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  opacity: .55; padding: 16px 14px 6px;
}
.sidebar .foot { padding: 14px 22px; font-size: 11px; opacity: .6; border-top: 1px solid rgba(255,255,255,.12); }

.main {
  margin-left: var(--sidebar);
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246,248,250,.88);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  display: flex; align-items: center; gap: 14px;
}
.hamburger {
  display: none; border: none; background: none; font-size: 22px; cursor: pointer; color: var(--accent); padding: 0 4px;
}
.search-wrap { flex: 1; max-width: 520px; position: relative; }
.search-wrap input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; background: #fff; color: var(--ink);
  outline: none;
}
.search-wrap input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.search-wrap .s-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.topbar .crumb { margin-left: auto; font-size: 13px; color: var(--muted); }

.content { padding: 30px 28px 70px; max-width: var(--maxw); width: 100%; margin: 0 auto; }

/* ---------- Typography ---------- */
h1.page-title { font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.3px; }
.page-lead { color: var(--muted); font-size: 16px; margin: 0 0 26px; max-width: 720px; }
h2.sec { font-size: 20px; font-weight: 700; margin: 34px 0 14px; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(120deg, #0b1f33 0%, #1c4a6b 62%, #23699b 100%);
  color: #fff; border-radius: var(--radius); padding: 34px 34px;
  margin-bottom: 26px; box-shadow: var(--shadow);
  border-bottom: 3px solid var(--cyan);
}
.hero h1 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.hero p { margin: 0; opacity: .92; font-size: 16.5px; max-width: 640px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 22px 0 30px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat .v { font-size: 28px; font-weight: 800; color: var(--cyan-dark); }
.stat { border-top: 3px solid var(--cyan); }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: block; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s;
}
a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16,40,64,.10), 0 14px 36px rgba(16,40,64,.10); border-color: #c4d2e2; }
.card .eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--cyan-dark); font-weight: 700; }
a.card:hover { border-color: var(--cyan); }
.card h3 { margin: 6px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .meta { margin-top: 12px; font-size: 12.5px; color: var(--faint); display: flex; gap: 12px; flex-wrap: wrap; }

.platform-feature { border-top: 3px solid var(--cyan); background: linear-gradient(180deg, #f4fbfe 0%, #ffffff 60%); margin-bottom: 16px; }
.platform-feature h3 { font-size: 18px; }

.phase { margin-bottom: 30px; }
.phase-head { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--cyan); }
.phase-num { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--cyan-dark); background: var(--cyan-soft); padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.phase-title { font-size: 19px; font-weight: 700; margin: 0; }

.section-tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.tile-ico { font-size: 22px; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; letter-spacing: .3px; }
.badge.sb { background: var(--cyan-soft); color: var(--cyan-dark); border: 1px solid #b8e9f5; }
.badge.fmt { background: var(--accent-soft); color: var(--accent-dark); }
.badge.comp { background: #fff4e6; color: #9a6500; border: 1px solid #f3e0c0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Product detail ---------- */
.prod-head { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.prod-head .fmt { font-size: 13px; color: var(--cyan-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.prod-head h1 { font-size: 28px; margin: 6px 0 4px; }
.prod-head .tag { font-style: italic; color: var(--muted); margin: 0 0 12px; }
.prod-head .role { margin: 0; font-size: 15.5px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel h2 { margin: 0 0 14px; font-size: 18px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 40%; font-weight: 600; }

ul.clean { margin: 0; padding-left: 20px; }
ul.clean li { margin-bottom: 8px; font-size: 14.5px; }

.evidence-box { background: var(--accent-soft2); border-left: 4px solid var(--cyan); padding: 14px 18px; border-radius: 8px; font-size: 14px; }

/* ---------- Objection cards ---------- */
.obj-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 7px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.obj-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.obj-card .obj-top { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.obj-card .obj-prod { font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--cyan-dark); font-weight: 700; }
.obj-card .they-say { font-size: 16.5px; font-weight: 700; margin: 8px 0 0; line-height: 1.4; }
.obj-card .they-say:before { content: "\201C"; color: var(--faint); }
.obj-card .they-say:after { content: "\201D"; color: var(--faint); }
.obj-card .obj-body { padding: 18px 22px; }
.lead-with { background: var(--cyan-soft); border-left: 3px solid var(--cyan); border-radius: 9px; padding: 13px 16px; margin-bottom: 14px; }
.lead-with .lbl { font-size: 11.5px; font-weight: 800; color: var(--cyan-dark); letter-spacing: .5px; text-transform: uppercase; }
.lead-with p { margin: 5px 0 0; font-size: 14.5px; }
.pushback .lbl { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.pb-item { margin-bottom: 9px; font-size: 14px; }
.pb-item b { color: var(--ink); }
.evidence-line { margin-top: 12px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.evidence-line b { color: var(--accent-dark); }

.pause-box { background: #fffdf5; border: 1px solid #f0e6c8; border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
.pause-box .ttl { font-weight: 800; color: var(--amber); font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; }
.pause-q { margin-top: 10px; font-size: 14px; }
.pause-q .q { font-weight: 600; }
.pause-q .u { color: var(--muted); font-size: 13px; }
.pause-q .u b { color: var(--ink); }

/* ---------- PDF embed ---------- */
.pdf-frame { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.back-link { display: inline-block; margin-bottom: 14px; font-size: 14px; }
.deck-actions { margin: 4px 0 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); text-decoration: none; }

/* ---------- Comparison table ---------- */
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 13.5px; }
.cmp-table th { background: var(--accent-soft); text-align: left; padding: 11px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--accent-dark); }
.cmp-table td { padding: 10px 12px; border-top: 1px solid var(--line); }
.cmp-table tr.imds td { background: #f3f8ff; }
.cmp-table tr.imds td:first-child { font-weight: 700; color: var(--accent-dark); }
.cmp-table td.imds-cell { font-weight: 600; color: var(--accent-dark); }

/* ---------- Guide pages ---------- */
.src-cite { font-size: 13px; color: var(--muted); margin: -12px 0 20px; max-width: 760px; }
.src-cite a { color: var(--cyan-dark); }
.guide-toc { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 28px; }
.guide-toc .toc-ttl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--cyan-dark); font-weight: 700; margin-bottom: 8px; }
.guide-toc .toc-link { display: inline-block; margin: 3px 16px 3px 0; font-size: 14px; color: var(--accent); cursor: pointer; }
.guide-toc .toc-link:hover { color: var(--cyan-dark); text-decoration: underline; }
.guide-sec { scroll-margin-top: 84px; margin-bottom: 32px; }
.guide-sec h2.sec { padding-bottom: 7px; border-bottom: 1px solid var(--line); margin-top: 6px; }
.guide-p { font-size: 15px; margin: 0 0 12px; max-width: 760px; }
.guide-terms td:first-child { color: var(--accent-dark); font-weight: 700; width: 30%; }
.guide-terms td { vertical-align: top; }
.tbl-cap { margin: 22px 0 10px; font-size: 15px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab { padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Video ---------- */
.video-el { width: 100%; border-radius: 10px; background: #000; display: block; }
.yt-link { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .12s ease, border-color .12s, box-shadow .12s; }
.yt-link:hover { transform: translateY(-2px); border-color: var(--cyan); text-decoration: none; box-shadow: 0 4px 12px rgba(16,40,64,.10), 0 14px 36px rgba(16,40,64,.10); }
.yt-thumb { display: block; position: relative; width: 100%; padding-bottom: 56.25%; background-color: #0b1f33; background-size: cover; background-position: center; background-repeat: no-repeat; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 39px; background: rgba(214,28,28,.92); color: #fff; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 15px; padding-left: 2px; }
.yt-link:hover .yt-play { background: #d61c1c; }
.yt-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.yt-cap .video-title { font-weight: 600; font-size: 14px; }
.yt-cta { font-size: 12.5px; color: var(--cyan-dark); font-weight: 600; white-space: nowrap; }
.video-card { display: flex; flex-direction: column; gap: 8px; }
.video-block { padding: 16px; }
.video-block .video-el { margin-bottom: 10px; }
.video-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.video-title { font-weight: 600; }
.video-dur { color: var(--faint); }
.video-link { margin-left: auto; font-size: 13px; }
.badge.vid-case { background: #eaf3ff; color: var(--accent); border: 1px solid #cfe0f5; }
.badge.vid-edu { background: #eef7ee; color: var(--green); border: 1px solid #cfe8cf; }

/* ---------- Search results ---------- */
.result { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); display: block; color: inherit; }
.result:hover { text-decoration: none; border-color: var(--accent); }
.result .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); font-weight: 700; }
.result h4 { margin: 4px 0 3px; font-size: 15.5px; }
.result p { margin: 0; color: var(--muted); font-size: 13.5px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------- Misc ---------- */
.note { font-size: 13px; color: var(--faint); margin-top: 8px; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(10,25,40,.4); z-index: 35; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-2, .section-tiles, .stats { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .sidebar { transform: translateX(-100%); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .hamburger { display: block; }
  .scrim.show { display: block; }
  .content { padding: 22px 16px 60px; }
  .topbar { padding: 10px 16px; }
}
