/* Huisslimmer 2.0: foundations and shell only. Prototype remains in design/. */
:root{
  --bg:#f3f6f2; --surface:#fff; --ink:#10221c; --muted:#45564f; --line:#10221c2e;
  --green:#0b5c48; --deep:#0b3327; --on-deep:#fff; --on-deep-muted:#bfe6d4; --deep-line:#ffffff40;
  --yellow:#f2c94c; --yellow-ink:#10221c; --note-bg:#fdf4d3; --note-line:#d9b23a;
  --code-bg:#0b3327; --code-ink:#e6f1ec;
  --display:"Bricolage Grotesque",system-ui,sans-serif; --text:"Source Sans 3",system-ui,sans-serif;
  --wrap:1240px; --gutter:clamp(16px,4vw,40px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0d1915; --surface:#14251f; --ink:#e9f0eb; --muted:#aebdb5; --line:#ffffff2b;
  --green:#86d6b9; --deep:#123d30; --note-bg:#2b2710; --note-line:#8a7325; --code-bg:#07130f;
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0d1915; --surface:#14251f; --ink:#e9f0eb; --muted:#aebdb5; --line:#ffffff2b;
  --green:#86d6b9; --deep:#123d30; --note-bg:#2b2710; --note-line:#8a7325; --code-bg:#07130f;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:5rem;scrollbar-color:var(--green) var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.0625rem/1.6 var(--text);-webkit-text-size-adjust:100%}
::selection{background:var(--yellow);color:var(--yellow-ink)}
img{max-width:100%;display:block;height:auto}
a{color:var(--green);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;box-shadow:0 0 0 5px var(--ink)}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.08;letter-spacing:-.02em;margin:0;text-wrap:balance}
h1{font-size:clamp(2.25rem,1.2rem + 4vw,3.75rem)}
h2{font-size:clamp(1.75rem,1.2rem + 1.8vw,2.5rem)}
h3{font-size:1.375rem;line-height:1.15;letter-spacing:-.01em}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.ic{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:square}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-head{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.site-head .wrap{display:flex;align-items:center;gap:8px 28px;flex-wrap:wrap;min-height:64px}
.brand{display:flex;align-items:center;gap:10px;font:700 1.25rem var(--display);color:var(--ink);text-decoration:none;letter-spacing:-.01em}
.brand img{width:32px;height:32px}
.brand .dk{display:none}
:root[data-theme="dark"] .brand .lt{display:none}:root[data-theme="dark"] .brand .dk{display:block}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .brand .lt{display:none}:root:not([data-theme="light"]) .brand .dk{display:block}}
.nav{display:flex;gap:4px;margin-right:auto}
.nav a{color:var(--ink);text-decoration:none;font-weight:600;font-size:1rem;padding:20px 12px;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap}
.nav a:hover{border-bottom-color:var(--line)}
.nav a[aria-current]{border-bottom-color:var(--green);color:var(--green)}
.head-act{display:flex;align-items:center;gap:8px}
.btn-q{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;font:600 1rem var(--text);color:var(--ink);background:none;border:1px solid var(--line);cursor:pointer;text-decoration:none}
.btn-q:hover{border-color:var(--ink)}
.menu-btn{display:none}
.menu-btn b{font-weight:600}
@media (max-width:1000px){
  .brand{margin-right:auto}
  .menu-btn{display:inline-flex;width:auto;padding:0 14px}
  .nav{display:none;flex-direction:column;gap:0;position:absolute;top:100%;left:0;right:0;margin:0;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 12px 24px -12px #10221c40;max-height:calc(100vh - 64px);overflow-y:auto}
  .site-head.open .nav{display:flex}
  html:not(.js) .nav{display:flex;position:static;order:3;width:calc(100% + 2*var(--gutter));margin:0 calc(-1*var(--gutter));border-top:1px solid var(--line);border-bottom:0;box-shadow:none}
  .nav a{padding:0 var(--gutter);min-height:52px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin:0;font-size:1.0625rem;white-space:normal}
  .nav a:last-child{border-bottom:0}
  .nav a:hover{border-bottom-color:var(--line);background:var(--bg)}
  .nav a[aria-current]{border-bottom-color:var(--line)}
  .nav a[aria-current]::after{content:"Je bent hier";font-weight:400;font-size:.875rem;color:var(--muted)}
}
.nav-theme{display:none}
@media (max-width:520px){
  .nav-theme{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 var(--gutter);border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:600 1.0625rem var(--text);cursor:pointer;text-align:left}
  .site-head .wrap{column-gap:12px}
}
@media (max-width:380px){
  .brand{font-size:1.125rem;gap:8px}
  .brand img{width:28px;height:28px}
  .head-act{gap:6px}
  .menu-btn{padding:0 10px;gap:6px}
}
.site-foot{background:var(--deep);color:var(--on-deep-muted);margin-top:clamp(64px,8vw,112px);padding-block:48px;font-size:1rem}
.site-foot .wrap{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.site-foot b img{width:28px;height:28px}
.site-foot b{display:flex;align-items:center;gap:10px;color:var(--on-deep);font:700 1.25rem var(--display);margin-bottom:8px}
.site-foot h2{font:600 .9375rem var(--text);letter-spacing:.04em;color:var(--yellow);margin-bottom:10px}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot a{color:var(--on-deep);display:inline-block;padding:5px 0}
@media (max-width:700px){.site-foot .wrap{grid-template-columns:1fr 1fr}.site-foot .wrap>div:first-child{grid-column:1/-1}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media (max-width:1240px){
  .btn-q{padding:0;width:44px;justify-content:center}
  .btn-q span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}
.hsearch{display:flex;border:1px solid var(--muted);background:var(--surface)}
.hsearch:focus-within{border-color:var(--ink)}
.hsearch input{width:11rem;min-width:0;min-height:44px;padding:0 12px;border:0;background:none;color:var(--ink);font:400 1rem var(--text);border-radius:0}
.hsearch input::placeholder{color:var(--muted)}
.hsearch button{width:44px;min-height:44px;display:grid;place-items:center;border:0;background:none;color:var(--ink);cursor:pointer;font-size:1.0625rem}
@media (max-width:1240px){
  .hsearch input{width:0;padding:0}
  .hsearch.open{position:absolute;top:10px;right:var(--gutter);z-index:2;border-color:var(--ink)}
  .hsearch.open input{width:18rem;padding:0 12px}
}
@media (max-width:520px){
  .hsearch.open{inset:8px var(--gutter) auto}
  .hsearch.open input{flex:1;width:auto}
}
.site-foot .legal{grid-column:1/-1;border-top:1px solid var(--deep-line);padding-top:16px;display:flex;flex-wrap:wrap;gap:4px 24px;font-size:.9375rem}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1 0 auto;width:100%}
.brand{min-height:44px}
.site-foot a{display:inline-flex;align-items:center;min-height:44px;padding:0}
.site-foot .legal{gap:0 24px}
.btn-q.menu-btn{width:auto;padding:0 12px;gap:8px}
@media (max-width:380px){
  .brand{font-size:1.0625rem}
  .brand img{width:26px;height:26px}
  .btn-q.menu-btn{padding:0 8px;gap:6px}
}
.hsearch input,.hsearch input::placeholder{text-overflow:ellipsis}
.btn-q.menu-btn{min-width:5.75rem;justify-content:center}
@media (max-width:380px){.btn-q.menu-btn{min-width:5.25rem}}
.skip{position:absolute;left:var(--gutter);top:-100px;z-index:20;background:var(--yellow);color:var(--yellow-ink);font-weight:600;padding:12px 16px;text-decoration:none}
.skip:focus{top:8px}
.site-head .wrap>.menu-btn{order:4}
@media (max-width:1000px){.site-head .wrap{column-gap:8px}}
:root{--ctl:#10221c8c}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--ctl:#ffffff73;--note-bg:#353011}}
:root[data-theme="dark"]{--ctl:#ffffff73;--note-bg:#353011}
.btn-q{border-color:var(--ctl)}
.site-foot h2{color:var(--on-deep-muted)}
.nav a:focus-visible{outline-offset:-3px;box-shadow:none}
@media (max-width:760px){html:not(.js) .pick-topic{display:none}}
html:not(.js) .menu-btn,html:not(.js) [data-theme-toggle]{display:none}
@media (max-width:1240px){html:not(.js) .hsearch input{width:9rem;padding:0 12px}}
@media (max-width:1000px){
  html:not(.js) .nav{flex-direction:row;flex-wrap:wrap;padding:0 var(--gutter)}
  html:not(.js) .nav a{min-height:44px;padding:0 16px 0 0;border-bottom:0;font-size:1rem}
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) :is(.field,.pick-topic) select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.4 1.6 7 7.2l5.6-5.6' fill='none' stroke='%23e9f0eb' stroke-width='2'/%3E%3C/svg%3E")}}
:root[data-theme="dark"] :is(.field,.pick-topic) select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.4 1.6 7 7.2l5.6-5.6' fill='none' stroke='%23e9f0eb' stroke-width='2'/%3E%3C/svg%3E")}

/* Bridge existing template tokens until their own review steps. */
:root {--hs-fog:var(--bg);--hs-white:var(--surface);--hs-ink:var(--ink);--hs-muted:var(--muted);--hs-line:var(--line);--hs-yellow:var(--yellow);--hs-focus:var(--green);--hs-petrol:var(--deep);--hs-on-petrol:var(--on-deep);--hs-layout:var(--wrap);--hs-reading:34rem}
body.huisslimmer-v2 {background:var(--bg);color:var(--ink);font-family:var(--text)}
.site-head .wrap {flex-wrap:nowrap}
.site-head .nav {min-width:0}
.site-foot .legal {margin:0}
.site-foot button[data-hs-manage-consent] {background:none;border:0;padding:0;color:var(--on-deep);font:inherit;text-decoration:underline;min-height:44px;cursor:pointer}
body.admin-bar .site-head {top:32px}
@media(max-width:782px){body.admin-bar .site-head {top:46px}}
html:not(.js) .site-head .wrap {flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Preserve the prototype's single row even with a non-overlay scrollbar at 320px. */
@media(max-width:380px){
 .site-head .wrap{column-gap:6px}
 .site-head .brand{font-size:1rem;gap:6px}
 .site-head .btn-q.menu-btn{min-width:5rem;padding-inline:6px;gap:4px}
}
@media(max-width:380px){.site-head .wrap{column-gap:4px}}

/* Prototype: desktop theme control moves into the menu below 520px. */
@media(max-width:520px){.head-act>[data-theme-toggle]{display:none}}
