:root {
  /* Dynafix.nl brand palette */
  --brand: #235787;
  --brand-dark: #1e4b75;
  --brand-soft: #66839c;
  --accent: #f29920;
  --accent-strong: #c3512f;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --ink: #2b2b2b;
  --muted: #686868;
  --line: #eaecee;
  --ok: #235787;
  --ok-bg: #e8eef4;
  --concept: #c3512f;
  --concept-bg: #fdeee8;
  --hoog: #ff5062;
  --gemiddeld: #f29920;
  --laag: #66839c;
  --radius: 10px;
  --shadow: 0 10px 28px rgba(30, 75, 117, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #e8eef4 0%, var(--bg) 28%);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--brand-dark);
}

.wrap {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--brand);
  color: #fff;
  padding: 1rem 0;
  border-bottom: 4px solid var(--accent);
}

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-mark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}

.breadcrumbs {
  padding: 0.85rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--brand-dark);
}

.breadcrumbs a:hover {
  color: var(--accent-strong);
}

.breadcrumbs .sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.hero {
  padding: 1.5rem 0 1rem;
}

.hero.compact {
  padding-top: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  color: var(--brand);
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}

.category-card,
.model-row,
.issue {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-card {
  display: block;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  border-top: 4px solid var(--brand-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--accent);
}

.category-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: var(--brand);
}

.display-name {
  margin: 0 0 0.75rem;
  color: var(--brand-soft);
}

.stats,
.meta,
.issue-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.model-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.model-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--brand-soft);
}

.model-row:hover {
  border-left-color: var(--accent);
}

.model-row strong {
  display: block;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--brand);
}

.badge-concept {
  background: var(--concept-bg);
  color: var(--concept);
}

.issue {
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.issue summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.issue summary::-webkit-details-marker {
  display: none;
}

.issue-title {
  flex: 1;
}

.freq {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--laag);
}

.error-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: #e8eef3;
  color: var(--brand);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.freq-hoog {
  background: #ffe5e8;
  color: var(--hoog);
}

.freq-gemiddeld {
  background: #fff1db;
  color: #b36d00;
}

.issue-body {
  padding: 0 1.1rem 1.2rem;
  border-top: 1px solid var(--line);
}

.issue-body h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--brand-soft);
}

.steps {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.step-test {
  color: var(--brand-soft);
  font-weight: 600;
}

.steps li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.parts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.parts th,
.parts td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.parts th {
  color: var(--brand);
}

.video-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.video-link:hover {
  background: var(--brand-dark);
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 0.75rem;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sources,
.doc-section {
  margin: 2rem 0;
}

.sources h2,
.doc-section h2 {
  color: var(--brand);
}

.doc-section h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--brand-soft);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.doc-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--brand-soft);
}

.doc-list .doc-desc {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-list .doc-desc.doc-warn {
  color: #8a5a00;
  background: #fff6e5;
  border: 1px solid #f0d9a8;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  margin-top: 0.45rem;
}

.doc-list .doc-file {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--brand-soft);
  word-break: break-word;
}

.doc-preview {
  margin-top: 0.65rem;
}

.doc-preview > summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
}

.doc-preview > summary::-webkit-details-marker {
  display: none;
}

.doc-preview > summary::before {
  content: "▸ ";
  color: var(--accent);
}

.doc-preview[open] > summary::before {
  content: "▾ ";
}

.doc-preview-frame {
  position: relative;
  width: 100%;
  height: min(70vh, 720px);
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e8eef3;
}

.doc-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sources ul {
  padding-left: 1.2rem;
}

.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.source-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
}

.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.model-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--brand-soft);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.model-tab:hover {
  color: var(--brand-dark);
  background: var(--ok-bg);
}

.model-tab.is-active {
  color: #fff;
  background: var(--brand);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.model-tab:not(.is-active) .tab-count {
  background: var(--ok-bg);
  color: var(--brand);
}

.tab-panels {
  margin: 1.25rem 0 2rem;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.tab-heading {
  margin: 1.25rem 0 0.55rem;
  color: var(--brand);
  font-size: 1.15rem;
}

.tab-panel > .tab-heading:first-child {
  margin-top: 0;
}

.tab-subheading {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--brand-soft);
}

.shared-block {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem 1.2rem;
  background: linear-gradient(180deg, #eef3f7 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.shared-intro {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-tab {
  color: var(--muted);
  margin: 0;
  padding: 1rem 0;
}

.empty {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #eef2f5;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .model-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .model-tabs {
    flex-direction: column;
  }

  .model-tab {
    width: 100%;
    justify-content: space-between;
  }

  .issue summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .parts {
    display: block;
    overflow-x: auto;
  }
}

@media print {
  .site-header,
  .video-wrap,
  .video-link,
  .model-tabs {
    box-shadow: none;
  }

  .model-tabs {
    display: none;
  }

  .tab-panel {
    display: block !important;
  }

  .issue {
    break-inside: avoid;
  }

  details[open] summary,
  details summary {
    display: block;
  }

  .issue-body {
    display: block !important;
  }
}
