:root {
  --paper: #fff8ed;
  --surface: #ffffff;
  --surface-soft: #fff3df;
  --ink: #121212;
  --muted: #5e5d64;
  --line: #ead7bd;
  --line-strong: #d9b98d;
  --orange: #f47a32;
  --gold: #f7b725;
  --blue: #08a7dc;
  --purple: #6351a8;
  --teal: #087f8f;
  --danger: #a33e2f;
  --good: #087f5b;
  --shadow: 0 10px 28px rgba(18, 18, 18, 0.08);
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: #075d8d;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(8, 167, 220, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(247, 183, 37, 0.18), transparent 36%),
    var(--surface);
}

.hero-inner,
.workspace,
.overview-inner,
.advice-strip {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  padding: 28px 0 32px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.school-logo {
  width: 70px;
  height: 70px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #000;
  object-fit: cover;
}

.school-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.school-context {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 32px;
  margin-top: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}

.eyebrow {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 740px;
  font-size: 52px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 760px;
  color: #3f3f45;
  font-size: 18px;
  line-height: 1.65;
}

.contact-note {
  max-width: 760px;
  border-left: 5px solid var(--orange);
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: var(--shadow);
}

.hero-image {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.common-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.common-panel h2,
.advice-strip h2,
.panel-head h2,
.results-head h2,
.overview-head h2 {
  font-size: 24px;
  line-height: 1.2;
}

.common-panel p,
.advice-strip p,
.panel-head p,
.results-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.common-list,
.tags,
.link-list,
.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.common-list span,
.tag,
.legend-grid span {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 8px 12px;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legend-grid span {
  border-color: rgba(244, 122, 50, 0.28);
  background: #fff8ec;
  line-height: 1.45;
}

.legend-grid strong {
  display: inline-block;
  margin-right: 6px;
  color: #111;
}

.advice-strip {
  margin-top: 28px;
  border: 1px solid #e5c295;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
  padding: 18px 20px;
}

.workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
}

.selector-panel,
.profile-card,
.route-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel-head,
.results-head,
.overview-head,
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.math-note {
  margin-top: 16px;
  border: 1px solid rgba(8, 167, 220, 0.25);
  border-radius: 6px;
  background: #eefaff;
  padding: 10px 12px;
  color: #26505b;
  font-size: 13px;
  line-height: 1.5;
}

.ghost-button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: #29252a;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
}

.ghost-button:hover,
.segment button:hover {
  background: #fff0dc;
}

.subject-selector {
  margin-top: 20px;
}

.subject-group + .subject-group {
  margin-top: 20px;
}

.subject-group h3 {
  color: #342d37;
  font-size: 14px;
}

.subject-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.subject-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  min-width: 0;
  border: 1px solid #eadfcd;
  border-radius: 4px;
  background: var(--surface-soft);
  padding: 8px 12px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.subject-option:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.subject-option.selected {
  border-color: var(--teal);
  background: #eaf8fb;
}

.subject-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.subject-code {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.subject-name {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.results-area {
  min-width: 0;
}

.segment {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  padding: 4px;
}

.segment button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #29252a;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
}

.segment button.active {
  background: #111;
  color: #fff;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.profile-card {
  border-left-width: 5px;
}

.profile-card.humaniora {
  border-left-color: var(--orange);
  background: #fff3eb;
}

.profile-card.mens {
  border-left-color: var(--gold);
  background: #fff9e7;
}

.profile-card.natuur {
  border-left-color: var(--blue);
  background: #eefaff;
}

.family,
.route-score,
.link-group-title {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.profile-code {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
}

.score {
  min-width: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  text-align: right;
}

.score strong {
  display: block;
  font-size: 28px;
}

.score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-list {
  margin-top: 20px;
}

.detail-list dt {
  margin-top: 12px;
  font-weight: 800;
}

.detail-list dd {
  margin-top: 4px;
  color: #454348;
  font-size: 14px;
  line-height: 1.5;
}

.callout {
  margin-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.callout .good {
  color: var(--good);
  font-weight: 800;
}

.callout .missing {
  color: var(--danger);
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-card h3 {
  font-size: 22px;
}

.route-card p,
.route-card li {
  color: #454348;
  font-size: 14px;
  line-height: 1.58;
}

.tags {
  margin-top: 2px;
}

.route-details {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.route-details summary {
  color: #111;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.route-detail-grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.mini-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.link-groups {
  display: grid;
  gap: 12px;
}

.link-list a {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}

.link-list a:hover {
  border-color: var(--orange);
  color: #111;
}

.overview {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.overview-inner {
  padding: 32px 0;
}

.overview-head {
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: var(--surface);
  text-align: left;
  font-size: 14px;
}

thead {
  background: #111;
  color: #fff;
}

th,
td {
  padding: 12px;
  vertical-align: top;
}

tbody tr {
  border-top: 1px solid #f0e0c6;
}

tbody td:first-child {
  font-weight: 900;
}

.source-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero-grid,
  .common-panel,
  .workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-inner,
  .workspace,
  .overview-inner {
    width: auto;
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .advice-strip {
    width: auto;
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .hero-inner {
    padding-top: 20px;
  }

  .hero-copy,
  .hero-image,
  .common-panel,
  .selector-panel,
  .results-area,
  .lead,
  .contact-note {
    max-width: 100%;
    min-width: 0;
  }

  .brand-row {
    align-items: center;
  }

  .school-logo {
    width: 58px;
    height: 58px;
  }

  .school-name {
    font-size: 19px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-image {
    min-height: 230px;
  }

  .panel-head,
  .results-head,
  .overview-head,
  .card-top {
    align-items: stretch;
    flex-direction: column;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .segment {
    width: 100%;
  }

  .segment button {
    flex: 1;
  }

  .common-list,
  .legend-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
