/* Cookie banner, settings and cookie notice page (shared/consent.js). Keep shared/ identical in every repo.
   Colours follow the page's own tokens (TreeFound: origo/tf5, Luvanne: landing/luvanne); a site can override any --wvc-* in :root. */
:root{
  --wvc-bg:var(--surface,var(--paper2,#fff)); --wvc-ink:var(--ink,#1c1b19); --wvc-muted:var(--muted,#5f5a52); --wvc-line:var(--line,#ddd);
  --wvc-accent:var(--rust,var(--accent,#2f5d50)); --wvc-accent-ink:var(--accent-ink,#fbf3e6);
  --wvc-font:var(--body,var(--sans,system-ui,sans-serif)); --wvc-display:var(--display,var(--serif,Georgia,serif)); --wvc-radius:3px;
}
.wvc{position:fixed;z-index:80;left:16px;bottom:16px;width:min(460px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;
  background:var(--wvc-bg);color:var(--wvc-ink);border:1px solid var(--wvc-line);border-radius:var(--wvc-radius);
  box-shadow:0 24px 60px -20px rgba(0,0,0,.45);font:14px/1.55 var(--wvc-font);text-align:left}
.wvc[hidden]{display:none}
.wvc-in{position:relative;padding:22px 22px 20px}
.wvc-title{font:500 21px/1.2 var(--wvc-display);margin:0 28px 8px 0;letter-spacing:0;text-transform:none}
.wvc-text{margin:0;color:var(--wvc-muted)}
.wvc-text a{color:var(--wvc-ink);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.wvc-x{position:absolute;top:10px;right:10px;width:34px;height:34px;border:0;background:none;color:var(--wvc-muted);font:300 26px/1 var(--wvc-font);cursor:pointer;border-radius:50%}
.wvc-x:hover{color:var(--wvc-ink)}
.wvc-act{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.wvc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 16px;border:1px solid var(--wvc-accent);border-radius:var(--wvc-radius);
  background:var(--wvc-accent);color:var(--wvc-accent-ink);font:600 14px/1.2 var(--wvc-font);letter-spacing:.02em;cursor:pointer;text-transform:none}
.wvc-btn:hover{filter:brightness(1.08)}
.wvc-btn:focus-visible,.wvc-more:focus-visible,.wvc-sw:focus-visible,.wvc-x:focus-visible,.wvc-link:focus-visible{outline:2px solid var(--wvc-ink);outline-offset:2px}
.wvc-save{grid-column:1/-1}
.wvc-more{grid-column:1/-1;justify-self:center;border:0;background:none;color:var(--wvc-ink);font:500 14px var(--wvc-font);text-decoration:underline;text-underline-offset:3px;padding:6px 10px;cursor:pointer}
.wvc-prefs{margin-top:16px;border-top:1px solid var(--wvc-line)}
.wvc-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--wvc-line);cursor:pointer;font-weight:400}
.wvc-rt{display:grid;gap:2px}
.wvc-rt b{font-weight:600;font-size:14.5px}
.wvc-rt small{color:var(--wvc-muted);font-size:13px;line-height:1.45}
.wvc-on{flex:none;font-size:12px;color:var(--wvc-muted);white-space:nowrap}
.wvc-sw{flex:none;appearance:none;-webkit-appearance:none;width:44px;height:26px;margin:0;border-radius:999px;background:var(--wvc-line);position:relative;cursor:pointer;transition:background .2s}
.wvc-sw::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
.wvc-sw:checked{background:var(--wvc-accent)}
.wvc-sw:checked::after{transform:translateX(18px)}

/* footer links */
.wvc-foot{display:inline-flex;flex-wrap:wrap;gap:4px 16px;justify-content:center}
.wvc-foot a,.wvc-link{color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:0;cursor:pointer}

/* cookie notice page */
.wvc-page{padding:56px 0 88px}
.v5 .wvc-page{padding-top:136px} /* TreeFound: the top bar is fixed */
.wvc-policy{max-width:760px;margin:0 auto;font:16px/1.65 var(--wvc-font)}
.wvc-policy h1{font:500 clamp(32px,5vw,48px)/1.1 var(--wvc-display);margin:0 0 8px}
.wvc-policy h2{font:500 24px/1.2 var(--wvc-display);margin:40px 0 10px}
.wvc-policy p{margin:0 0 12px}
.wvc-policy a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.wvc-upd{color:var(--wvc-muted);font-size:14px}
.wvc-tw{overflow-x:auto;margin:6px 0 14px}
.wvc-policy table{width:100%;border-collapse:collapse;font-size:14.5px}
.wvc-policy th,.wvc-policy td{text-align:left;vertical-align:top;padding:10px 12px 10px 0;border-bottom:1px solid var(--wvc-line)}
.wvc-policy th{font-weight:600;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--wvc-muted)}
.wvc-policy code{font:500 13px ui-monospace,monospace;white-space:nowrap}
.wvc-policy .wvc-btn{width:auto}

@media (max-width:640px){
  .wvc{left:0;right:0;bottom:0;width:auto;max-height:88vh;border-radius:14px 14px 0 0;border-bottom:0}
  .wvc-in{padding:18px 16px calc(16px + env(safe-area-inset-bottom))}
  .wvc-title{font-size:19px}
  .wvc-text{font-size:13.5px}
  .wvc-page{padding:36px 0 64px}
  .v5 .wvc-page{padding-top:104px}
}
body[data-page=cookies] .bar .backlink{margin-left:auto;color:inherit;text-decoration:none;font-size:13px;letter-spacing:.04em;white-space:nowrap;padding:10px 4px}
