/* Shared header, isolated from landing, account and exam styles. */
html:has(.koers-header) { scroll-padding-top: calc(var(--koers-header-height, 76px) + 16px); }
.koers-header { box-sizing: border-box; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; height: auto; padding: 12px max(5vw, 24px); border-bottom: 1px solid #dce3e9; background: #fff; color: #173547; font: 15px/1.5 Arial, sans-serif; }
.koers-header a { color: inherit; text-decoration: none; }
.koers-header .koers-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: #173547; font-size: 30px; font-weight: 800; letter-spacing: -1.5px; }
.koers-header .koers-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #234ee8; color: #fff; line-height: 1; }
.koers-header .koers-brand-sub { border-left: 1px solid #dce3e9; padding-left: 20px; margin-left: 10px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; }
.koers-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 600; }
.koers-nav > a, .koers-dropdown > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #536277; cursor: pointer; white-space: nowrap; }
.koers-header a:hover, .koers-header a[aria-current="page"] { color: #354984; text-decoration: underline; text-underline-offset: 5px; }
.koers-header :is(a, summary, button):focus-visible { outline: 3px solid #f4a52e; outline-offset: 4px; border-radius: 4px; }
.koers-header .koers-menu-toggle { display: none; }
.koers-menu-close-icon, .koers-menu-toggle[aria-expanded="true"] .koers-menu-open-icon { display: none; }
.koers-menu-toggle[aria-expanded="true"] .koers-menu-close-icon { display: block; }
.koers-header .koers-account-button { box-sizing: border-box; justify-content: center; gap: 8px; min-width: 152px; min-height: 44px; padding: 9px 16px; border: 1px solid #354984; border-radius: 8px; background: #354984; color: #fff; text-decoration: none; white-space: nowrap; }
.koers-header .koers-account-button:hover, .koers-header .koers-account-button[aria-current="page"] { background: #293a6e; border-color: #293a6e; color: #fff; text-decoration: none; }
.koers-header .koers-account-button:focus-visible { border-radius: 8px; }
.koers-header .koers-account-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
.koers-dropdown { position: relative; border: 0; padding: 0; margin: 0; background: transparent; }
.koers-dropdown > summary { list-style: none; font: inherit; }
.koers-dropdown > summary::-webkit-details-marker { display: none; }
.koers-menu { position: absolute; top: 100%; right: 0; min-width: 210px; max-height: calc(100dvh - var(--koers-header-height, 76px) - 12px); overflow-y: auto; box-sizing: border-box; display: grid; padding: 8px; border: 1px solid #dce3e9; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px #17354720; }
.koers-menu a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 6px; }
.koers-menu a:hover { background: #f4f7fa; }
.koers-dropdown:not([open]) .koers-menu { display: none; }
.koers-book-icon, .koers-site-icon { display: block; flex: 0 0 auto; }
.koers-book-badge, .koers-icon-badge { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: #edf2fa; color: #354984; }
.koers-nav .koers-icon-badge { width: 30px; height: 30px; border-radius: 9px; }
.koers-nav .koers-site-icon { width: 20px; height: 20px; }
.koers-learning-menu > summary { white-space: nowrap; gap: 8px; }
.koers-learning-menu > summary .koers-book-badge { width: 30px; height: 30px; border-radius: 9px; }
.koers-learning-menu > summary .koers-book-icon { width: 20px; height: 20px; }
.koers-learning-menu .koers-menu { width: 270px; max-width: calc(100vw - 32px); }
.koers-menu-heading { display: block; padding: 14px 12px 6px; margin: 4px 4px 0; border-top: 1px solid #dce3e9; color: #536277; font-size: 12px; font-weight: 700; }
.koers-dropdown > .koers-menu-current { color: #354984; }
.koers-dropdown[open] > summary .koers-dropdown-arrow { transform: rotate(180deg); }
.exam-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 28px; border-bottom: 1px solid #d3deea; background: #fff; color: #173547; }
.exam-toolbar[hidden] { display: none; }
.exam-toolbar #exam-tools { flex: 1; }
@media (max-width: 900px) {
  .exam-toolbar { flex-wrap: wrap; padding: 12px 16px; }
  .exam-toolbar #exam-tools { width: 100%; flex-basis: 100%; }
}
@media (max-width: 1350px) { .koers-header .koers-brand-sub { display: none; } }
/* The navigation opens beneath the compact sticky bar, without enlarging it. */
@media (max-width: 1100px) {
  .koers-header { min-height: 64px; flex-wrap: nowrap; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
  .koers-header .koers-brand { font-size: 27px; gap: 10px; }
  .koers-header .koers-mark { width: 36px; height: 36px; border-radius: 10px; }
  .koers-header .koers-menu-toggle { box-sizing: border-box; appearance: none; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; min-height: 44px; min-width: 104px; margin: 0; padding: 9px 12px; border: 1px solid #cdd9ea; border-radius: 10px; background: #edf2fa; color: #354984; font: 700 14px/1.5 Arial, sans-serif; cursor: pointer; }
  .koers-header .koers-menu-toggle:hover, .koers-header .koers-menu-toggle[aria-expanded="true"] { border-color: #354984; background: #e4ebf8; }
  .koers-menu-toggle svg { display: block; flex: 0 0 22px; }
  .koers-header .koers-nav { box-sizing: border-box; position: absolute; top: 100%; left: 0; right: 0; z-index: 1; display: none; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 6px; width: 100%; max-height: calc(100vh - var(--koers-header-height, 64px)); max-height: calc(100dvh - var(--koers-header-height, 64px)); overflow-y: auto; overscroll-behavior: contain; padding: 12px max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-bottom: 1px solid #cdd9ea; background: #fff; box-shadow: 0 14px 24px #17354718; font-size: 15px; }
  .koers-header.koers-menu-open .koers-nav { display: flex; }
  .koers-nav > a, .koers-nav .koers-dropdown > summary { box-sizing: border-box; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 9px; }
  .koers-nav > a:not(.koers-account-button):hover, .koers-nav .koers-dropdown > summary:hover { background: #f4f7fa; }
  .koers-nav .koers-dropdown { flex: 0 0 auto; width: 100%; }
  .koers-nav .koers-dropdown-arrow { margin-left: auto; }
  .koers-nav .koers-menu { position: static; top: auto; left: auto; right: auto; width: 100%; min-width: 0; max-width: none; max-height: none; overflow: visible; margin: 4px 0 6px; padding: 6px; border: 0; border-radius: 10px; background: #f4f7fa; box-shadow: none; }
  .koers-nav .koers-menu a { min-height: 44px; box-sizing: border-box; padding: 8px 12px; }
  .koers-nav .koers-menu a > span:not(.koers-icon-badge):not(.koers-book-badge) { white-space: normal; }
  .koers-header .koers-account-button { flex: 0 0 auto; width: 100%; min-height: 48px; margin-top: 6px; }
}
/* Keep public navigation reachable when the browser has JavaScript disabled. */
@media (max-width: 1100px) and (scripting: none) {
  .koers-header { flex-wrap: wrap; position: static; }
  .koers-header .koers-menu-toggle { display: none; }
  .koers-header .koers-nav { display: flex; position: static; max-height: none; padding: 8px 0 0; border: 0; box-shadow: none; }
}

/* Shared candidate footer; scoped to avoid changing exam navigation or admin controls. */
.koers-footer { box-sizing: border-box; position: static; width: 100%; max-width: none; margin: 32px 0 0; padding: 28px max(5vw, 24px); display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px; border-top: 1px solid #dce3e9; background: #fff; color: #173547; font: 14px/1.6 Arial, sans-serif; }
.koers-footer-brand { display: grid; gap: 4px; }
.koers-footer-brand > a { font-size: 16px; font-weight: 700; }
.koers-footer-brand > span { color: #536277; font-size: 12px; }
.koers-footer a { color: #354984; text-decoration: underline; text-underline-offset: 3px; }
.koers-footer a:hover { color: #173547; }
.koers-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.koers-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.koers-footer a:focus-visible { outline: 3px solid #f4a52e; outline-offset: 4px; border-radius: 3px; }
.koers-footer a[aria-current="page"] { font-weight: 700; }
.koers-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px), (max-width: 1024px) and (pointer: coarse) {
  .koers-footer { align-items: flex-start; flex-direction: column; margin-top: 24px; padding: 24px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); gap: 12px; }
  /* The measured fixed navigation height also clears the final footer link when zoomed. */
  .candidate-page:has(.has-exam-navigation) .koers-footer { padding-bottom: calc(var(--exam-navigation-height, 170px) + 24px); }
}

.koers-footer [data-cookie-settings] { appearance: none; border: 0; background: transparent; padding: 0; min-height: 44px; color: #354984; text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.koers-footer [data-cookie-settings]:focus-visible { outline: 3px solid #f4a52e; outline-offset: 4px; }
.koers-consent-status { flex-basis: 100%; margin: 0; font-size: 13px; }
.koers-consent-status:empty { display: none; }

/* Cookie choice overlays the document and never moves the page underneath. */
.koers-consent-dialog { box-sizing: border-box; width: min(880px, calc(100% - 32px)); max-width: 880px; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid #cbd7e4; border-radius: 16px; background: #fff; color: #173547; box-shadow: 0 20px 70px #17354740; font: 15px/1.65 Arial, sans-serif; overflow-wrap: anywhere; }
.koers-consent-dialog::backdrop { background: #17354780; }
.koers-cookie-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; gap: 16px; border-bottom: 1px solid #dce3e9; }
.koers-cookie-brand { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.koers-cookie-brand > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: #354984; }
.koers-cookie-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #dce3e9; }
.koers-cookie-tabs button { min-height: 52px; padding: 12px 8px; border: 0; border-bottom: 3px solid transparent; background: #fff; color: #455766; font: 600 15px/1.5 Arial, sans-serif; cursor: pointer; }
.koers-cookie-tabs button[aria-selected="true"] { border-bottom-color: #354984; color: #354984; background: #f4f6fc; }
.koers-cookie-content { padding: 24px; }
.koers-consent-dialog h2 { font-size: 20px; line-height: 1.4; margin: 0 0 12px; color: #173547; }
.koers-consent-dialog h3 { font-size: 16px; margin: 0; }
.koers-consent-dialog p { margin: 0 0 16px; color: #173547; }
.koers-consent-dialog p:last-child { margin-bottom: 0; }
.koers-consent-dialog a { color: #354984; text-decoration: underline; }
.koers-consent-current, .koers-consent-detail { color: #536277; font-size: 13px; }
.koers-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 20px 24px; border-top: 1px solid #dce3e9; background: #f7f9fc; }
.koers-consent-actions button, .koers-consent-close { box-sizing: border-box; appearance: none; min-height: 46px; padding: 10px 16px; border: 1px solid #354984; border-radius: 8px; background: #fff; color: #354984; font: 600 15px/1.5 Arial, sans-serif; cursor: pointer; }
.koers-consent-actions button { flex: 1 1 180px; overflow-wrap: normal; }
.koers-consent-actions .koers-consent-allow { background: #354984; color: #fff; }
.koers-consent-actions button:hover { background: #e9edfa; color: #173547; }
.koers-consent-close { font-size: 24px; min-width: 44px; padding: 0 8px; border-color: transparent; }
.koers-consent-dialog :is(a, button, input):focus-visible { outline: 3px solid #f4a52e; outline-offset: 3px; }
.koers-cookie-category { border: 1px solid #dce3e9; border-radius: 10px; padding: 16px; margin: 0 0 12px; }
.koers-cookie-category > div, .koers-cookie-category > label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-weight: 700; }
.koers-cookie-category input { width: 22px; height: 22px; margin: 0; accent-color: #354984; }
.koers-cookie-required { color: #455766; font-size: 13px; font-weight: 400; }
.koers-consent-dialog [hidden] { display: none !important; }
@media (max-width: 480px) {
  .koers-consent-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .koers-cookie-brand-row, .koers-cookie-content { padding: 16px; }
  .koers-consent-actions { padding: 16px; gap: 8px; flex-direction: column; }
  .koers-consent-actions button { flex: none; }
}
.koers-footer .payment-marks{flex:1 0 100%;box-sizing:border-box;width:100%;padding:24px;margin-bottom:20px;background:#fff;border:1px solid #d3deea;border-radius:14px;color:#173547}
.koers-footer .payment-marks h2{font-size:17px;margin:0 0 4px;color:#173547}
.koers-footer .payment-marks-list{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 28px;list-style:none;margin:0;padding:0}
.koers-footer .payment-marks-list li{display:flex;flex-direction:column;align-items:center;gap:0;padding:0;margin:0;font-size:12px;color:#536a7d}
.koers-footer .payment-mark-image{height:80px;display:flex;align-items:center;justify-content:center}
.koers-footer .payment-mark-image img{display:block;max-width:none;object-fit:contain}
.koers-footer .payment-marks p{font-size:13px;line-height:1.6;color:#536a7d;max-width:740px;margin:18px 0 0}
@media(max-width:480px){.koers-footer .payment-marks{padding:20px 16px}.koers-footer .payment-marks-list{gap:8px 20px}}
