/* Guest manuals - manuals.tenhuizeboi.be */

:root {
    --navy: #13294b;
    --navy-700: #1d3a66;
    --navy-50: #eef2f8;
    --brass: #b8894a;
    --brass-200: #ecdcc2;
    --brass-50: #faf5ec;
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #18212f;
    --muted: #5c6678;
    --border: #e1e5ec;
    --success: #1f8a5b;
    --success-50: #e8f6ef;
    --danger: #b42318;
    --danger-50: #fdeceb;
    --info-50: #eef4fd;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 4px 16px rgba(19, 41, 75, .06);
    --shadow-hover: 0 2px 4px rgba(19, 41, 75, .08), 0 10px 28px rgba(19, 41, 75, .12);
    --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-700); }
img, video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

main.container { flex: 1; padding-top: 24px; padding-bottom: 48px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Top bar ------------------------------------------------------------------ */

.preview-banner {
    background: var(--brass);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 6px var(--gutter);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}

.topbar__inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 10px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand__mark svg { width: 36px; height: 36px; display: block; }
.brand__mark rect { fill: var(--navy); }
.brand__mark path { fill: #d9b67c; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar__actions { display: flex; align-items: center; gap: 6px; }
.topbar__actions form { margin: 0; }

.lang__label {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 6px 0 10px;
    background: var(--surface);
    cursor: pointer;
}
.lang__label:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 3px var(--navy-50); }
.lang__icon { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.lang select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6678' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center / 14px;
    font: 500 14px/1 inherit;
    font-family: inherit;
    color: var(--text);
    padding: 9px 22px 9px 0;
    max-width: 130px;
    cursor: pointer;
}
.lang select:focus { outline: none; }
[dir="rtl"] .lang select { background-position: left 4px center; padding: 9px 0 9px 22px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
}
.icon-btn:hover { color: var(--navy); border-color: var(--navy-700); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hero --------------------------------------------------------------------- */

.hero {
    background:
        radial-gradient(1200px 300px at 85% -40%, rgba(217, 182, 124, .35), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
    color: #fff;
    padding: 40px 0 72px;
}
.hero__title { margin: 0; font-size: clamp(26px, 5vw, 36px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.hero__intro { margin: 8px 0 0; color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 560px; }
.hero + main.container { margin-top: -48px; padding-top: 0; }

/* Category tiles ----------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--brass-200); outline: none; }

.tile__icon, .page-head__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brass-50);
    color: var(--brass);
    flex-shrink: 0;
}
.icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tile__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tile__title { font-weight: 600; font-size: 17px; color: var(--navy); }
.tile__text { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.tile__meta { font-size: 12px; font-weight: 600; color: var(--brass); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.tile__chevron, .list__chevron, .answer__chevron { width: 20px; height: 20px; fill: none; stroke: #9aa3b2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .tile__chevron, [dir="rtl"] .list__chevron, [dir="rtl"] .answer__chevron { transform: scaleX(-1); }

/* Breadcrumbs & page header ------------------------------------------------ */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.page-head__title { margin: 0; font-size: clamp(24px, 4.5vw, 30px); letter-spacing: -.02em; color: var(--navy); line-height: 1.2; }
.page-head__text { margin: 4px 0 0; color: var(--muted); }

/* Manual list -------------------------------------------------------------- */

.list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.list li + li { border-top: 1px solid var(--border); }
.list__item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; color: inherit; }
.list__item:hover, .list__item:focus-visible { background: var(--navy-50); outline: none; }
.list__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list__title { font-weight: 600; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.list__text { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.list__steps { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--brass); background: var(--brass-50); border-radius: 999px; padding: 3px 10px 3px 8px; }
.list__steps svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brass); background: var(--brass-50); border: 1px solid var(--brass-200); border-radius: 6px; padding: 1px 6px; }

.empty { padding: 28px; text-align: center; color: var(--muted); }

/* Article ------------------------------------------------------------------ */

.article, .step { padding: clamp(20px, 4vw, 36px); margin-bottom: 20px; }
.article__title, .step__title { margin: 0; font-size: clamp(24px, 4.5vw, 32px); line-height: 1.2; letter-spacing: -.02em; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article__lead { font-size: 18px; color: var(--muted); margin: 8px 0 0; }

.video { margin: 24px 0; border-radius: var(--radius-sm); overflow: hidden; background: #0b1424; aspect-ratio: 16 / 9; }
.video iframe, .video video { display: block; width: 100%; height: 100%; border: 0; }

/* HTML from the manual itself */
.prose { margin-top: 20px; font-size: 16.5px; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 21px; color: var(--navy); margin: 28px 0 8px; letter-spacing: -.01em; }
.prose h3 { font-size: 18px; color: var(--navy); margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin: 0 0 14px; }
.prose li { margin: 4px 0; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: s; }
.prose ol.steps > li { counter-increment: s; position: relative; padding-inline-start: 44px; margin: 0 0 14px; min-height: 30px; }
.prose ol.steps > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.prose img { border-radius: var(--radius-sm); display: block; margin: 16px 0; }
.prose figure { margin: 18px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose kbd { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--navy-50); border: 1px solid #cfd7e4; border-bottom-width: 2px; border-radius: 6px; padding: 3px 7px; white-space: nowrap; color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg); font-weight: 600; color: var(--navy); }
.prose .callout { border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; border-inline-start: 4px solid var(--navy-700); background: var(--info-50); }
.prose .callout.tip { border-color: var(--success); background: var(--success-50); }
.prose .callout.warning { border-color: var(--brass); background: var(--brass-50); }
.prose .callout.danger { border-color: var(--danger); background: var(--danger-50); }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .video { margin: 18px 0; }

/* Flow --------------------------------------------------------------------- */

.flow-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin-bottom: 20px; border-color: var(--brass-200); background: linear-gradient(0deg, var(--brass-50), var(--surface)); }
.flow-cta__title { margin: 0; font-size: 18px; color: var(--navy); }
.flow-cta__text { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.step__head { display: flex; flex-direction: column; gap: 10px; }
.step__badge { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brass); background: var(--brass-50); border-radius: 999px; padding: 4px 12px; }
.step__question { font-size: 18px; color: var(--navy); margin: 28px 0 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.step__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.answers { display: grid; gap: 10px; }
.answers--images { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.answer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    background: var(--surface);
    transition: border-color .15s ease, background .15s ease;
}
.answer:hover, .answer:focus-visible { border-color: var(--navy-700); background: var(--navy-50); outline: none; }
.answer__label { flex: 1; }
.answers--images .answer { flex-wrap: wrap; align-content: flex-start; }
.answer__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bg); }

/* Solved ------------------------------------------------------------------- */

.solved { text-align: center; padding: clamp(28px, 6vw, 48px) 24px; max-width: 560px; margin: 0 auto; }
.solved__icon { display: inline-flex; width: 64px; height: 64px; border-radius: 999px; background: var(--success-50); color: var(--success); align-items: center; justify-content: center; }
.solved__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.solved__title { color: var(--navy); font-size: 24px; margin: 16px 0 6px; letter-spacing: -.01em; }
.solved__text, .solved__contact { color: var(--muted); margin: 0 0 12px; }
.solved__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* Login -------------------------------------------------------------------- */

.login { display: flex; justify-content: center; padding-top: clamp(8px, 6vh, 56px); }
.login__card { width: 100%; max-width: 440px; padding: clamp(24px, 5vw, 36px); }
.login__badge { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #d9b67c; align-items: center; justify-content: center; }
.login__badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.login__title { margin: 16px 0 4px; font-size: 26px; color: var(--navy); letter-spacing: -.02em; }
.login__intro { margin: 0 0 20px; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 600; font-size: 14px; }
.field__input {
    font: 500 18px/1.2 inherit;
    font-family: inherit;
    letter-spacing: .04em;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    width: 100%;
}
.field__input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px var(--navy-50); }
.field__help { font-size: 13px; color: var(--muted); }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 18px; font-size: 15px; }
.alert--error { background: var(--danger-50); color: var(--danger); }
.alert--info { background: var(--info-50); color: var(--navy-700); }
.step .alert { margin: 24px 0 0; }

/* Buttons ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 600 15px/1 inherit;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy-700); background: var(--surface); }
.btn--block { width: 100%; }
.btn--sm { min-height: 34px; padding: 0 12px; }

/* Footer & overlay --------------------------------------------------------- */

.footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
.footer a { color: var(--navy); text-decoration: none; font-weight: 500; }

.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(19, 41, 75, .45); display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.overlay[hidden] { display: none; }
.overlay__box { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-hover); font-weight: 500; }
.spinner { width: 22px; height: 22px; border-radius: 999px; border: 3px solid var(--navy-50); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Small screens ------------------------------------------------------------ */

@media (max-width: 560px) {
    .brand__sub { display: none; }
    .lang select { max-width: 96px; }
    .hero { padding: 28px 0 64px; }
    .grid { grid-template-columns: 1fr; gap: 12px; }
    .tile { padding: 16px; }
    .flow-cta { flex-direction: column; align-items: stretch; }
    .flow-cta .btn { width: 100%; }
    .step__nav .btn { flex: 1; }
    .answers--images { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation-duration: 0s !important; }
}
