/* =====================================================================
   Adviescentrum hub (archive-advies) — Qlimatix
   Self-contained (like overons.css / tekstpagina.css): own @font-face +
   tokens + base, so the hub ships only adviescentrum.css + chrome + Onest.
   Markup mirrors the prototype "Adviescentrum.html" (.advh-* classes) and
   reuses the article tokens (.adv / .adv-wrap, --wrap:1180) so the hub width
   matches the single article. Lifted verbatim from the prototype <style>.
   ===================================================================== */

/* ===== Self-hosted Onest (shared; woff2 in assets/fonts/) ===== */
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:local('Onest'),url('fonts/Onest-Regular.woff2') format('woff2');}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:local('Onest Medium'),url('fonts/Onest-Medium.woff2') format('woff2');}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:local('Onest SemiBold'),url('fonts/Onest-SemiBold.woff2') format('woff2');}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:local('Onest Bold'),url('fonts/Onest-Bold.woff2') format('woff2');}

/* ===== Tokens (shared with Adviescentrum artikel) ===== */
.adv{
  --navy:#10293d; --navy-soft:#1c4a6b; --ink:#16242f; --muted:#6f7a83;
  --blue:#1c9bd7; --blue-tint:#eaf6fb;
  --orange:#e77935; --orange-deep:#d2641f; --orange-tint:#fdf1e8;
  --green:#1f8a4d; --green-tint:#eaf6ef;
  --line:#e7e3dd; --gray:#eeece7; --gray-soft:#f5f3ef;
  /* The hub is a grid/overview page (like the homepage/category), so it tracks
     the site container system from layout.css: 1280px, widening to 1440px at
     >=1680px. This keeps the hero/filter/featured/grid/CTA aligned with the
     header/footer. (The single article keeps its own narrow reading column.) */
  --wrap:var(--container,1280px);
}
.adv{font-family:'Onest',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);}
.adv *{box-sizing:border-box;}
.adv a{color:inherit;text-decoration:none;}
.adv img{max-width:100%;display:block;}
.adv-wrap{max-width:var(--wrap);margin:0 auto;padding:0 40px;}

/* ===== Hero (gray band, signature rounded bottom) ===== */
.advh-hero{background:var(--gray);border-bottom-left-radius:42px;border-bottom-right-radius:42px;padding:30px 0 54px;position:relative;overflow:hidden;}
.advh-crumb{display:flex;align-items:center;gap:9px;font-size:14.5px;color:var(--muted);flex-wrap:wrap;margin-bottom:34px;}
.advh-crumb a{color:var(--muted);transition:color .15s;}
.advh-crumb a:hover{color:var(--navy);}
.advh-crumb .sep{color:#b6bcc0;}
.advh-crumb .cur{color:var(--navy);font-weight:500;}
.advh-hero-inner{text-align:center;max-width:760px;margin:0 auto;position:relative;z-index:1;}
.advh-eyebrow{
  display:inline-flex;align-items:center;gap:9px;font-size:12.5px;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;color:var(--orange-deep);
  background:#fff;border:1px solid #ecd9c8;padding:7px 15px 7px 12px;border-radius:999px;margin-bottom:22px;
}
.advh-eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 4px rgba(231,121,53,.18);}
.advh-title{font-size:56px;line-height:1.05;font-weight:600;color:var(--navy);letter-spacing:-.028em;margin:0 0 18px;text-wrap:balance;}
.advh-lead{font-size:19px;line-height:1.6;color:#46535c;margin:0 auto 30px;max-width:620px;}

/* ===== Search ===== */
.advh-search{position:relative;max-width:520px;margin:0 auto;}
.advh-search svg{position:absolute;left:20px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none;}
.advh-search input{
  width:100%;height:58px;border:1px solid var(--line);border-radius:999px;background:#fff;
  padding:0 22px 0 52px;font-family:inherit;font-size:16px;color:var(--ink);
  box-shadow:0 10px 30px -20px rgba(16,41,61,.45);transition:border-color .15s,box-shadow .15s;
}
.advh-search input::placeholder{color:#9aa1a6;}
.advh-search input:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 4px rgba(231,121,53,.14);}

/* ===== Category filter bar ===== */
.advh-filter{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);}
.advh-filter-inner{max-width:var(--wrap);margin:0 auto;padding:14px 40px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.advh-chip{
  font-family:inherit;font-size:14.5px;font-weight:500;color:var(--navy);background:var(--gray-soft);
  border:1px solid var(--line);padding:9px 18px;border-radius:999px;cursor:pointer;transition:all .15s;white-space:nowrap;
}
.advh-chip:hover{border-color:#cdc7bd;background:#efece6;}
.advh-chip.is-active{background:var(--navy);border-color:var(--navy);color:#fff;}
.advh-count{margin-left:auto;font-size:14px;color:var(--muted);}
.advh-count b{color:var(--navy);font-weight:600;}

/* scroll affordances (arrow + dots) — hidden on desktop, shown on scroll breakpoints */
.advh-filter-row{position:relative;}
.advh-scroll-arrow{display:none;position:absolute;top:50%;right:14px;transform:translateY(-50%);
  width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--navy);
  align-items:center;justify-content:center;cursor:pointer;z-index:22;
  box-shadow:0 6px 16px -8px rgba(16,41,61,.45);transition:background .15s,color .15s,opacity .2s;}
.advh-scroll-arrow:hover{background:var(--navy);color:#fff;border-color:var(--navy);}
.advh-scroll-arrow svg{width:17px;height:17px;display:block;transition:transform .2s;}
.advh-filter.is-end .advh-scroll-arrow svg{transform:rotate(180deg);}
.advh-filter.no-scroll .advh-scroll-arrow{display:none;}
.advh-scrolldots{display:none;justify-content:center;gap:7px;padding:2px 0 10px;}
.advh-dot{width:7px;height:7px;border-radius:999px;background:#d7d2c9;border:0;padding:0;cursor:pointer;
  transition:width .2s,background .2s;}
.advh-dot.is-active{background:var(--navy);width:20px;}

/* ===== Featured article ===== */
.advh-section{padding:54px 0 0;}
.advh-featured{
  display:grid;grid-template-columns:1.05fr 1fr;gap:0;border:1px solid var(--line);border-radius:24px;overflow:hidden;
  background:#fff;box-shadow:0 24px 60px -42px rgba(16,41,61,.42);transition:box-shadow .18s,transform .18s;
}
.advh-featured:hover{transform:translateY(-3px);box-shadow:0 30px 70px -40px rgba(16,41,61,.5);}
.advh-featured .media{position:relative;min-height:380px;background:var(--gray-soft);overflow:hidden;}
.advh-featured .media img{width:100%;height:100%;object-fit:cover;}
.advh-featured .media .pin{
  position:absolute;top:20px;left:20px;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:#fff;background:var(--orange);padding:7px 14px;border-radius:999px;
}
.advh-featured .body{padding:46px 48px;display:flex;flex-direction:column;justify-content:center;}
.advh-featured .cat{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--orange-deep);}
.advh-featured h2{font-size:36px;line-height:1.12;font-weight:600;color:var(--navy);letter-spacing:-.022em;margin:12px 0 14px;text-wrap:balance;}
.advh-featured p{font-size:16.5px;line-height:1.65;color:#46535c;margin:0 0 24px;}
.advh-featured .meta{display:flex;align-items:center;gap:18px;color:var(--muted);font-size:14px;margin-bottom:26px;}
.advh-featured .meta .m{display:inline-flex;align-items:center;gap:7px;}
.advh-featured .meta .m svg{color:var(--orange);flex:none;}
.advh-featured .meta .dot{width:4px;height:4px;border-radius:50%;background:#c4c0b8;}
.advh-featured .btn{
  align-self:flex-start;display:inline-flex;align-items:center;gap:10px;background:linear-gradient(90deg,#f0974a,#e87f1e);
  color:#fff;font-weight:600;font-size:15.5px;padding:14px 26px;border-radius:999px;transition:filter .15s;
}
.advh-featured .btn:hover{filter:brightness(1.05);}
.advh-featured .btn svg{transition:transform .15s;}
.advh-featured:hover .btn svg{transform:translateX(3px);}

/* ===== Section heading ===== */
.advh-shead{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:56px 0 26px;}
.advh-shead h3{font-size:28px;font-weight:600;color:var(--navy);letter-spacing:-.02em;margin:0;}
.advh-shead p{margin:6px 0 0;color:var(--muted);font-size:15.5px;}

/* ===== Article grid (reuses rel-card styling) ===== */
.advh-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.advh-card{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;transition:transform .15s,box-shadow .15s,border-color .15s;display:flex;flex-direction:column;}
.advh-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px -24px rgba(16,41,61,.4);border-color:#d8d3cb;}
.advh-card .thumb{height:184px;background:var(--gray-soft);overflow:hidden;}
.advh-card .thumb img{width:100%;height:100%;object-fit:cover;}
.advh-card .c{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1;}
.advh-card .cat{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--orange-deep);}
.advh-card h4{margin:9px 0 8px;font-size:20px;line-height:1.22;font-weight:600;color:var(--navy);letter-spacing:-.015em;}
.advh-card p{margin:0 0 16px;font-size:14.5px;line-height:1.58;color:var(--muted);}
.advh-card .foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;}
.advh-card .read{font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:6px;}
.advh-card .read svg{color:#b6bcc0;}
.advh-card .more{display:inline-flex;align-items:center;gap:7px;font-size:14.5px;font-weight:600;color:var(--orange-deep);}
.advh-card:hover .more svg{transform:translateX(3px);}
.advh-card .more svg{transition:transform .15s;}

/* ===== Empty state ===== */
.advh-empty{display:none;text-align:center;padding:64px 0 20px;color:var(--muted);font-size:16px;}
.advh-empty.show{display:block;}

/* ===== Help / Rekenhulp CTA ===== */
.advh-cta{margin:70px 0 0;background:var(--navy);border-radius:28px;padding:52px 56px;display:flex;align-items:center;gap:40px;position:relative;overflow:hidden;}
.advh-cta .deco{position:absolute;right:-60px;top:-60px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle at 35% 35%,rgba(231,121,53,.32),transparent 60%);pointer-events:none;}
.advh-cta .txt{position:relative;z-index:1;flex:1;}
.advh-cta .eb{font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#f0974a;}
.advh-cta h3{font-size:32px;font-weight:600;color:#fff;letter-spacing:-.02em;margin:10px 0 12px;line-height:1.12;}
.advh-cta p{font-size:16.5px;line-height:1.6;color:#aebecb;margin:0;max-width:520px;}
.advh-cta .acts{position:relative;z-index:1;display:flex;flex-direction:column;gap:12px;flex:none;}
.advh-cta .btn-primary{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(90deg,#f0974a,#e87f1e);
  color:#fff;font-weight:600;font-size:16px;padding:16px 30px;border-radius:999px;transition:filter .15s;white-space:nowrap;
}
.advh-cta .btn-primary:hover{filter:brightness(1.06);}
.advh-cta .btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;color:#dbe5ec;font-weight:500;font-size:15px;
  padding:14px 28px;border-radius:999px;border:1px solid rgba(255,255,255,.22);transition:border-color .15s,color .15s;
}
.advh-cta .btn-ghost:hover{border-color:rgba(255,255,255,.5);color:#fff;}

.advh-foot-space{height:88px;}

/* This page ends on a dark CTA (not a gray band), so disable the footer
   newsletter band's overlap pull-up — it would otherwise crash into the CTA. */
#lofoot-root .lof-news-band--top{transform:none !important;margin-bottom:0 !important;}

/* ===== Responsive ===== */

/* ---- Tablet (≤1024px) ---- */
@media (max-width:1024px){
  .adv-wrap{padding:0 32px;}
  .advh-hero{padding:26px 0 48px;}
  .advh-title{font-size:46px;}
  .advh-lead{font-size:18px;}
  .advh-filter-inner{padding:13px 32px;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .advh-filter-inner::-webkit-scrollbar{display:none;}
  .advh-count{display:none;}
  .advh-filter-inner{padding-right:58px;}
  /* fade + arrow + dots: signal there are more categories to scroll to */
  .advh-filter-row::after{content:"";position:absolute;top:0;right:0;bottom:0;width:64px;pointer-events:none;z-index:21;
    background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.96) 60%);transition:opacity .2s;}
  .advh-filter.is-end .advh-filter-row::after,.advh-filter.no-scroll .advh-filter-row::after{opacity:0;}
  .advh-scroll-arrow{display:flex;}
  .advh-scrolldots{display:flex;}
  .advh-featured h2{font-size:32px;}
  .advh-featured .body{padding:40px 40px;}
  .advh-grid{grid-template-columns:repeat(2,1fr);gap:22px;}
  .advh-shead{margin:46px 0 22px;}
}

/* ---- Small tablet / large phone (≤820px) ---- */
@media (max-width:820px){
  .advh-featured{grid-template-columns:1fr;}
  .advh-featured .media{min-height:240px;}
  .advh-featured .body{padding:34px 34px 38px;}
  .advh-cta{flex-direction:column;align-items:flex-start;gap:26px;padding:44px 40px;}
  .advh-cta .acts{flex-direction:row;flex-wrap:wrap;}
}

/* ---- Phone (≤640px) ---- */
@media (max-width:640px){
  .adv-wrap{padding:0 20px;}
  .advh-hero{padding:22px 0 40px;border-bottom-left-radius:30px;border-bottom-right-radius:30px;}
  .advh-crumb{margin-bottom:24px;font-size:13.5px;}
  .advh-eyebrow{margin-bottom:18px;}
  .advh-title{font-size:33px;letter-spacing:-.022em;}
  .advh-lead{font-size:16px;margin-bottom:24px;}
  .advh-search input{height:54px;font-size:15px;}

  /* filter: horizontal scroll strip, no wrap */
  .advh-filter-inner{padding:12px 56px 12px 20px;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .advh-filter-inner::-webkit-scrollbar{display:none;}
  .advh-count{display:none;}
  .advh-chip{font-size:14px;padding:8px 16px;}

  .advh-section{padding:40px 0 0;}
  .advh-featured .media{min-height:200px;}
  .advh-featured .body{padding:28px 24px 30px;}
  .advh-featured h2{font-size:26px;}
  .advh-featured p{font-size:15.5px;}
  .advh-featured .meta{flex-wrap:wrap;gap:10px 14px;margin-bottom:22px;}
  .advh-featured .btn{width:100%;justify-content:center;}

  .advh-shead{margin:40px 0 20px;}
  .advh-shead h3{font-size:24px;}
  .advh-grid{grid-template-columns:1fr;gap:18px;}
  .advh-card .thumb{height:200px;}

  .advh-cta{margin:54px 0 0;padding:34px 26px;border-radius:24px;}
  .advh-cta h3{font-size:25px;}
  .advh-cta p{font-size:15.5px;}
  .advh-cta .acts{width:100%;flex-direction:column;}
  .advh-cta .btn-primary,.advh-cta .btn-ghost{width:100%;}

  .advh-foot-space{height:64px;}
}

/* ---- Small phone (≤380px) ---- */
@media (max-width:380px){
  .advh-title{font-size:29px;}
  .advh-featured h2{font-size:23px;}
}
