/**
 * AI Frame Helpdesk v8.0 — nieuw design (v8.12.0)
 * Docs-rail + panelen. Tokens: #FAFAF7 pagina, #F5F4F0 panelen,
 * #E6E4DD randen, #C8A24B goud, #14140F inkt.
 * Archivo (koppen) · Manrope (tekst) · Space Mono (labels).
 */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;800&family=Manrope:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

.imgx-helpdesk-page { background: #FAFAF7; }

.hdx-page {
  display: flex; min-height: 100vh;
  font-family: 'Manrope', -apple-system, sans-serif;
  color: #14140F; -webkit-font-smoothing: antialiased;
}

/* ── Rail ── */
.hdx-rail {
  width: 230px; flex-shrink: 0;
  background: #F5F4F0; border-right: 1px solid #E6E4DD;
  padding: 18px 12px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.hdx-rail-group { display: flex; flex-direction: column; gap: 2px; }
.hdx-rail-label {
  font-family: 'Space Mono', monospace; font-size: 9.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: #8A887E;
  padding: 0 10px 5px;
}
.hdx-rail-item {
  display: flex; align-items: center; height: 34px; padding: 0 10px;
  border-radius: 8px; border-left: 3px solid transparent;
  font-size: 13px; font-weight: 450; color: #5C5A52;
  cursor: pointer; text-decoration: none; transition: background .12s ease;
}
.hdx-rail-item:hover { background: rgba(200,162,75,.06); color: #14140F; }
.hdx-rail-item.active {
  background: rgba(200,162,75,.1); border-left-color: #C8A24B;
  color: #7A5C1A; font-weight: 600;
}

/* ── Main ── */
.hdx-main { flex: 1; min-width: 0; }
.hdx-topbar {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 28px;
  border-bottom: 1px solid #E6E4DD; background: #fff;
  font-size: 13px; color: #8A887E; position: sticky; top: 0; z-index: 10;
}
.hdx-topbar strong { color: #14140F; font-weight: 500; }
.hdx-topbar svg { stroke: #8A887E; }
.hdx-spacer { flex: 1; }
.hdx-topbar-btn {
  font-size: 12px; font-weight: 500; color: #5C5A52; padding: 6px 14px;
  border: 1px solid #E6E4DD; border-radius: 8px; text-decoration: none;
  transition: border-color .12s ease;
}
.hdx-topbar-btn:hover { border-color: #C8A24B; color: #14140F; }
.hdx-topbar-btn--accent { background: #14140F; color: #FAFAF7; border-color: #14140F; }
.hdx-topbar-btn--accent:hover { background: #26261E; color: #FAFAF7; }

.hdx-body { padding: 28px; max-width: 980px; }

/* ── Panelen ── */
.hdx-panel { display: none; }
.hdx-panel.active { display: block; animation: hdxIn .25s ease; }
@keyframes hdxIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Hero ── */
.hdx-hero { margin-bottom: 24px; }
.hdx-kicker {
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #C8A24B; font-weight: 700;
}
.hdx-hero h1 {
  font-family: 'Archivo', sans-serif; font-size: 30px; font-weight: 800;
  letter-spacing: -.02em; margin: 8px 0 10px;
}
.hdx-hero h1 em { font-style: normal; color: #C8A24B; }
.hdx-hero p { font-size: 14px; line-height: 1.65; color: #5C5A52; max-width: 640px; }

.hdx-guide-hero {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px;
}
.hdx-guide-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: #14140F; color: #C8A24B; font-size: 20px;
  display: grid; place-items: center;
}
.hdx-guide-hero h1 {
  font-family: 'Archivo', sans-serif; font-size: 22px; font-weight: 800;
  letter-spacing: -.01em; margin: 2px 0 6px;
}
.hdx-guide-hero p { font-size: 13.5px; line-height: 1.65; color: #5C5A52; max-width: 640px; }

/* ── KPI's ── */
.hdx-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px;
}
.hdx-kpi {
  background: #fff; border: 1px solid #E6E4DD; border-radius: 12px;
  padding: 18px; display: flex; align-items: center; gap: 12px;
}
.hdx-kpi-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: rgba(200,162,75,.08); color: #C8A24B;
  display: grid; place-items: center;
}
.hdx-kpi-val { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px; }
.hdx-kpi-label { font-size: 11px; color: #8A887E; margin-top: 1px; }

/* ── Kaart ── */
.hdx-card {
  background: #fff; border: 1px solid #E6E4DD; border-radius: 16px;
  overflow: hidden; margin-bottom: 22px;
}
.hdx-card-head {
  padding: 15px 22px; border-bottom: 1px solid #E6E4DD;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.hdx-card-head h2 { font-family: 'Archivo', sans-serif; font-size: 16px; font-weight: 700; }
.hdx-card-head span { font-size: 11px; color: #8A887E; }
.hdx-card-body { padding: 22px; }

/* ── Grids & stappen ── */
.hdx-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hdx-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hdx-step, .hdx-tile {
  background: #F5F4F0; border: 1px solid #E6E4DD; border-radius: 10px;
  padding: 20px 16px; text-align: left;
}
.hdx-step-num {
  width: 28px; height: 28px; background: #14140F; border-radius: 7px;
  display: grid; place-items: center; font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700; color: #FAFAF7; margin-bottom: 12px;
}
.hdx-step h3, .hdx-tile h3 {
  font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 6px;
}
.hdx-step p, .hdx-tile p { font-size: 12.5px; color: #5C5A52; line-height: 1.6; }
.hdx-step a { color: #C8A24B; font-weight: 600; text-decoration: none; }
.hdx-step a:hover { text-decoration: underline; }

.hdx-tile { cursor: pointer; font-family: inherit; transition: border-color .15s ease; width: 100%; }
.hdx-tile:hover { border-color: #C8A24B; }
.hdx-tile-icon {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(200,162,75,.08);
  color: #C8A24B; display: grid; place-items: center; font-size: 14px; margin-bottom: 12px;
}

/* ── Accordions ── */
.hdx-acc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.hdx-acc {
  background: #fff; border: 1px solid #E6E4DD; border-radius: 12px; overflow: hidden;
}
.hdx-acc summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none;
}
.hdx-acc summary::-webkit-details-marker { display: none; }
.hdx-acc summary:hover { background: #F5F4F0; }
.hdx-acc summary::after {
  content: ''; margin-left: auto; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.5px solid #8A887E; border-bottom: 1.5px solid #8A887E;
  transform: rotate(45deg); transition: transform .15s ease;
}
.hdx-acc[open] summary::after { transform: rotate(-135deg); }
.hdx-acc-dot { width: 7px; height: 7px; border-radius: 50%; background: #C8A24B; flex-shrink: 0; }
.hdx-prijs {
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  color: #7A5C1A; background: rgba(200,162,75,.1); border-radius: 6px;
  padding: 2px 8px; margin-left: 8px;
}
.hdx-acc summary .hdx-prijs { margin-left: 8px; }
.hdx-acc summary::after { margin-left: auto; }
.hdx-acc summary .hdx-prijs + * { margin-left: 0; }
.hdx-acc-body { padding: 2px 18px 16px 35px; }
.hdx-acc-body p { font-size: 13px; line-height: 1.65; color: #5C5A52; margin-bottom: 8px; }
.hdx-acc-body ul { margin: 0; padding-left: 18px; }
.hdx-acc-body li { font-size: 12.5px; line-height: 1.7; color: #5C5A52; }
.hdx-acc-body a { color: #C8A24B; font-weight: 600; text-decoration: none; }
.hdx-acc-body a:hover { text-decoration: underline; }

/* ── Tabellen ── */
.hdx-tabel { width: 100%; border-collapse: collapse; font-size: 13px; }
.hdx-tabel th {
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #8A887E;
  text-align: left; padding: 0 10px 10px; border-bottom: 1px solid #E6E4DD;
}
.hdx-tabel td { padding: 11px 10px; border-bottom: 1px solid #F0EEE7; color: #5C5A52; line-height: 1.5; }
.hdx-tabel tr:last-child td { border-bottom: none; }
.hdx-tabel td strong { color: #14140F; }
.hdx-tabel .r { text-align: right; white-space: nowrap; }
.hdx-nvt { color: #C9C6BB; }
.hdx-ster { color: #C8A24B; font-weight: 700; margin-left: 2px; }
.hdx-noot { font-size: 12px; color: #8A887E; line-height: 1.6; margin-top: 14px; }
.hdx-noot a { color: #7A5C1A; font-weight: 600; }

/* ── Lijsten & callouts ── */
.hdx-lijst { margin: 0; padding-left: 18px; }
.hdx-lijst li { font-size: 13px; line-height: 1.8; color: #5C5A52; }
.hdx-lijst a { color: #C8A24B; font-weight: 600; text-decoration: none; }
.hdx-lijst a:hover { text-decoration: underline; }

.hdx-callout {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(200,162,75,.06); border: 1px solid rgba(200,162,75,.25);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 22px;
  font-size: 12.5px; line-height: 1.6; color: #5C5A52;
}
.hdx-callout svg { flex-shrink: 0; color: #C8A24B; margin-top: 1px; }
.hdx-callout a { color: #7A5C1A; font-weight: 600; }

.hdx-inline-link {
  background: none; border: none; padding: 0; font: inherit;
  color: #C8A24B; font-weight: 600; cursor: pointer; text-decoration: underline;
}

/* ── Pakketten ── */
.hdx-pakketten { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.hdx-pakket {
  background: #F5F4F0; border: 1px solid #E6E4DD; border-radius: 10px;
  padding: 16px; text-align: center;
}
.hdx-pakket-tokens { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 18px; }
.hdx-pakket-prijs { font-family: 'Space Mono', monospace; font-size: 12px; color: #7A5C1A; margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hdx-grid4 { grid-template-columns: repeat(2, 1fr); }
  .hdx-grid3 { grid-template-columns: repeat(2, 1fr); }
  .hdx-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hdx-page { flex-direction: column; }
  .hdx-rail {
    width: auto; height: auto; position: static; flex-direction: row;
    overflow-x: auto; gap: 14px; padding: 10px 14px;
    border-right: none; border-bottom: 1px solid #E6E4DD;
  }
  .hdx-rail-group { flex-direction: row; align-items: center; gap: 4px; }
  .hdx-rail-label { display: none; }
  .hdx-rail-item { height: 32px; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; }
  .hdx-rail-item.active { border-bottom-color: #C8A24B; }
  .hdx-body { padding: 18px 14px; }
  .hdx-grid3, .hdx-grid4 { grid-template-columns: 1fr; }
  .hdx-topbar { padding: 0 14px; }
  .hdx-tabel { font-size: 12px; }
}
