/* Articles list and article pages, built on the live Leesje design system in /styles.css. */
.navigation a[aria-current]{background:var(--bg-soft);color:var(--text)}
.site-footer{content-visibility:visible}

/* Tags: one kind per article (guide, news, update, promo) and an optional Dutch level */
.tag-list{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0 0 22px}
.tag{display:inline-flex;align-items:center;min-height:28px;padding:4px 11px;border-radius:99px;font-size:12px;font-weight:650;line-height:1.2;letter-spacing:.2px;color:var(--text);background:var(--bg-soft);text-decoration:none;white-space:nowrap}
a.tag{min-height:32px}
a.tag:hover{box-shadow:inset 0 0 0 1px var(--separator-strong)}
.tag-guide{background:var(--success-soft);color:var(--success)}
.tag-news{background:var(--saved-soft)}
.tag-update{background:var(--highlight-soft)}
.tag-promo{background:var(--orange-soft);color:var(--orange-ink)}
.tag-level{background:transparent;box-shadow:inset 0 0 0 1px var(--separator-strong);color:var(--text-secondary)}

/* List page */
.articles-hero{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 48px;padding:clamp(24px,3vw,48px) 0 clamp(28px,3vw,40px)}
.articles-hero h1{font-size:clamp(44px,4.6vw,72px)}
.articles-intro{max-width:460px;margin:0;font-size:17px;line-height:1.6;color:var(--text-secondary)}
.articles-list{margin:0 0 64px}
.article-filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.filter-chip{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border:1px solid var(--separator-strong);border-radius:14px;background:transparent;color:var(--text-secondary);font:600 14px/1.2 var(--font);cursor:pointer}
.filter-chip:hover{background:var(--bg-soft);color:var(--text)}
.filter-chip[aria-pressed=true]{background:var(--button-bg);border-color:var(--button-bg);color:var(--button-ink)}
.filter-chip:focus-visible,.tag:focus-visible,.article-card h3 a:focus-visible,.quiz-item summary:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.article-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:clamp(28px,3.7vw,48px);border-radius:var(--r-xl);background:var(--bg);transition:transform .15s var(--ease),box-shadow .15s}
.article-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-card)}
.article-card.is-featured{grid-column:1/-1;background:var(--panel-sage)}
.article-card h3{font-size:clamp(26px,2.6vw,40px);line-height:1.1;margin:0 0 18px;max-width:860px}
.article-card h3 a{color:var(--text);text-decoration:none}
/* the whole card is the link */
.article-card h3 a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.article-excerpt{max-width:760px;margin:0 0 26px;font-size:16px;line-height:1.75;color:var(--text-secondary)}
.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;width:100%;margin:auto 0 0;font-size:13px;color:var(--text-secondary)}
.article-more{display:inline-flex;align-items:center;gap:10px;margin-left:auto;font-weight:650;color:var(--text)}
.article-more svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.article-card:hover .article-more{color:var(--orange-text)}
.article-card:hover .article-more svg{transform:translateX(3px)}
/* Word of the day: fills the free cell next to the last card. The orange is see-through, so it reads as
   apricot on the light page and as a warm brown on the dark one. */
.word-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:clamp(28px,3.7vw,48px);border-radius:var(--r-xl);background:rgba(245,130,69,.24);transition:transform .15s var(--ease),box-shadow .15s}
.word-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-card)}
.tag-word{background:var(--bg-page);color:var(--orange-ink)}
.word-card .tag-level{box-shadow:inset 0 0 0 1px rgba(245,130,69,.55);color:var(--orange-ink)}
.word-main{margin:0 0 12px;font:800 clamp(48px,5.4vw,84px)/1 var(--display);letter-spacing:-.05em;color:var(--orange-ink);overflow-wrap:anywhere}
.word-info{margin:0 0 26px;font-size:15px;line-height:1.6;color:var(--text-secondary)}
.word-example{display:flex;flex-direction:column;gap:2px;margin:0 0 26px;padding-left:16px;border-left:3px solid var(--orange);font-size:16px;line-height:1.6;color:var(--text)}
.word-example [lang=nl]{font:700 18px/1.5 var(--display);color:var(--orange-ink)}
.word-card .article-more{color:var(--orange-ink);text-decoration:none}
/* the whole card is the link, like the article cards */
.word-card .article-more::after{content:"";position:absolute;inset:0;border-radius:inherit}
.word-card .article-more:focus-visible{outline:3px solid var(--orange);outline-offset:4px;border-radius:6px}
.word-card:hover .article-more svg{transform:translateX(3px)}
.articles-empty{margin:0;padding:40px;border-radius:var(--r-xl);background:var(--panel);font-size:16px;color:var(--text-secondary);text-align:center}

/* Article page */
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0 20px;font-size:13px;color:var(--text-secondary)}
.breadcrumbs a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--text);font-weight:600;text-decoration:none}
.breadcrumbs a:hover{color:var(--orange-text)}
.breadcrumbs svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.post-hero{display:grid;grid-template-columns:1.15fr .85fr;gap:12px;align-items:stretch;padding:0 0 clamp(56px,7vw,104px)}
.post-hero>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:36px clamp(20px,4vw,64px) 36px 0}
.post-hero h1{font-size:clamp(56px,7vw,112px);margin:0 0 32px}
.post-lede{max-width:600px;margin:0;font-size:18px;line-height:1.7;color:var(--text-secondary)}
.post-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:24px 0 0;font-size:12px;color:var(--text-secondary)}
.article-pair{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:clamp(24px,3.5vw,48px);border-radius:var(--r-xl);background:var(--panel)}
.pair-card{width:86%;padding:26px 30px;border-radius:var(--r-lg);background:var(--bg)}
.pair-card .card-meta{font-size:10px;margin:0 0 16px}
.pair-het{align-self:flex-end;background:var(--orange);color:#203c38}
.pair-het .card-meta,.pair-het .pair-note,.pair-het .art{color:#203c38}
.pair-word{font:800 clamp(44px,4.6vw,68px)/1 var(--display);letter-spacing:-.05em;margin:0 0 8px;color:var(--text)}
.pair-het .pair-word{color:#203c38}
.pair-note{margin:0 0 14px;font-size:13px;color:var(--text-secondary)}
.pair-card>span{font-size:14px}

/* Pair cards: light entrance (cards drift in from opposite sides, contents follow) + soft hover lift */
.pair-card{animation:pair-in .8s var(--ease) var(--pair-delay) both;transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.pair-de{--pair-delay:.1s;--pair-from:-20px}
.pair-het{--pair-delay:.28s;--pair-from:20px}
.pair-card>*{animation:pair-content-in .6s var(--ease) both}
.pair-card>:nth-child(1){animation-delay:calc(var(--pair-delay) + .18s)}
.pair-card>:nth-child(2){animation-delay:calc(var(--pair-delay) + .26s)}
.pair-card>:nth-child(3){animation-delay:calc(var(--pair-delay) + .34s)}
.pair-card>:nth-child(4){animation-delay:calc(var(--pair-delay) + .42s)}
.pair-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px -18px rgba(32,60,56,.35)}
.pair-het:hover{box-shadow:0 14px 32px -16px rgba(245,130,69,.55)}
@keyframes pair-in{from{opacity:0;translate:var(--pair-from) 14px}}
@keyframes pair-content-in{from{opacity:0;translate:0 8px}}

.post-layout{display:grid;grid-template-columns:264px minmax(0,1fr);gap:clamp(32px,5vw,88px);align-items:start;margin:0 0 64px}

/* Table of contents: sticks below the header and, with JavaScript, shows the chapter being read and the progress.
   Kept quiet on purpose: plain numbered titles, the current one darker. */
.post-toc{position:sticky;top:calc(var(--header-h) + 16px);z-index:5;display:flex;flex-direction:column;max-height:calc(100svh - var(--header-h) - 32px)}
.post-toc .eyebrow{margin:0}
.toc-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.toc-toggle{display:none}
.toc-bar{display:block;flex:none;height:2px;margin:12px 0 14px;border-radius:99px;background:var(--separator);overflow:hidden}
.toc-bar>span{display:block;height:100%;border-radius:inherit;background:var(--orange);transform-origin:left;transform:scaleX(var(--read,0))}
.toc-list{position:relative;display:flex;flex-direction:column;min-height:0;counter-reset:toc;margin-top:14px;overflow-y:auto;overscroll-behavior:contain}
.is-live .toc-list{margin-top:0}
.post-toc a{position:relative;display:block;padding:7px 0 7px 28px;counter-increment:toc;font-size:14px;line-height:1.45;color:var(--text-tertiary);text-decoration:none;transition:color .15s}
.post-toc a:hover{color:var(--text)}
/* the number is a counter, so it stays out of the link text that articles.js copies into the folded bar */
.post-toc a::after{content:counter(toc,decimal-leading-zero);position:absolute;left:0;top:8px;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--text-tertiary)}
.post-toc a[aria-current]{color:var(--text);font-weight:600}
.post-toc a:focus-visible,.toc-toggle:focus-visible{outline:3px solid var(--orange);outline-offset:-3px;border-radius:8px}

/* Article text */
.post-body{max-width:760px}
.post-section{padding:44px 0 48px;border-top:1px solid var(--separator);scroll-margin-top:16px}
.post-section:first-child{padding-top:0;border-top:0}
.post-section:last-child{padding-bottom:0}
.section-num{margin-right:.3em;font-weight:500;font-variant-numeric:tabular-nums;color:var(--text-tertiary)}
.post-section h2{font-size:clamp(24px,2.2vw,32px);line-height:1.12;letter-spacing:-.035em;margin:0 0 18px}
.post-section>p{max-width:680px;margin:0 0 18px;font-size:18px;line-height:1.75;color:var(--text)}
.post-section>p [lang=nl]{font-weight:650}

/* coloured articles: de green, het orange; plural endings the same way: -en green, -s orange */
.art{font-weight:750}
.art-de,.end-en{color:var(--success)}
.art-het,.end-s{color:var(--orange-ink)}
.art-change{font-weight:750;color:var(--text);text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:3px}

/* Examples: one panel split into cells, like the table below */
.example-list,.compound-list{display:grid;list-style:none;padding:0;margin:8px 0 22px;border:1px solid var(--separator);border-radius:var(--r-md);background:var(--bg);overflow:hidden}
.example-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
/* cell dividers; the ones on the outer edge are clipped by the panel */
.example-list li,.compound-list li{box-shadow:1px 0 0 var(--separator),0 1px 0 var(--separator);font:600 17px/1.4 var(--display);color:var(--text)}
.example-list li{padding:16px 20px}
.compound-list li{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:16px 20px}
.compound-list .op{color:var(--text-tertiary);font-weight:500}
.compound-list strong{font-weight:800}
.rule-grid{margin:8px 0 22px;border:1px solid var(--separator);border-radius:var(--r-md);background:var(--bg)}
.rule-card{padding:24px 28px;border-top:1px solid var(--separator)}
.rule-card:first-child{border-top:0}
.rule-card h3{font-size:20px;line-height:1.3;letter-spacing:-.02em;margin:0 0 8px}
.rule-forms{margin-left:.25em;color:var(--orange-ink)}
.rule-de .rule-forms,.rule-en .rule-forms{color:var(--success)}
.rule-card>p{max-width:640px;margin:0 0 12px;font-size:16px;line-height:1.7;color:var(--text-secondary)}
.rule-card>p:last-child{margin-bottom:0}
.rule-card>p [lang=nl]{color:var(--text);font-weight:600}
.rule-card>.rule-examples{max-width:none;font:600 16px/1.6 var(--display);color:var(--text)}
.table-scroll{overflow-x:auto;margin:8px 0 22px;border:1px solid var(--separator);border-radius:var(--r-md);background:var(--bg)}
.agreement-table{width:100%;border-collapse:collapse;font-size:15px}
.agreement-table th,.agreement-table td{padding:14px 20px;text-align:left;vertical-align:top;border-bottom:1px solid var(--separator)}
.agreement-table tr:last-child>*{border-bottom:0}
.agreement-table thead th{font:700 13px/1.3 var(--font);color:var(--text-secondary)}
.agreement-table tbody th{font-weight:550;color:var(--text-secondary);width:34%}
.agreement-table td{font:600 16px/1.4 var(--display);color:var(--text);white-space:nowrap}
.post-section>p.post-note{max-width:none;padding:20px 24px;border-radius:var(--r-md);background:var(--panel-warm);font-size:16px;line-height:1.7}
.tip-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;counter-reset:tip;padding:0;margin:8px 0 0}
.tip-list li{counter-increment:tip;padding:24px;border-radius:var(--r-md);background:var(--bg)}
.tip-list h3::before{content:counter(tip,decimal-leading-zero);margin-right:.4em;font-weight:500;font-variant-numeric:tabular-nums;color:var(--text-tertiary)}
.tip-list h3{font-size:19px;line-height:1.3;letter-spacing:-.02em;margin:0 0 8px}
.tip-list p{margin:0;font-size:15px;line-height:1.7;color:var(--text-secondary)}
.tip-list [lang=nl]{color:var(--text);font-weight:600}
.tip-list .tip-practice{background:var(--panel-warm)}
.quiz{display:grid;gap:8px;margin:8px 0 0}
.quiz-item{border-radius:16px;background:var(--bg)}
.quiz-item summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:12px 18px;cursor:pointer;list-style:none;border-radius:16px;font:700 18px/1.3 var(--display);color:var(--text)}
.quiz-item summary::-webkit-details-marker{display:none}
.quiz-item summary:hover{background:var(--bg-soft)}
.quiz-blank{display:grid;place-items:center;width:44px;height:32px;border-radius:9px;background:var(--panel);font-size:15px;color:var(--text-secondary)}
.quiz-hint{margin-left:auto;font:600 12px/1.2 var(--font);color:var(--text-secondary)}
.quiz-item[open] .quiz-hint{visibility:hidden}
.quiz-item[open] .quiz-blank{background:var(--success-soft);color:var(--success)}
.quiz-item p{margin:0;padding:0 18px 16px;font-size:15px;line-height:1.6;color:var(--text-secondary)}
.quiz-item p strong{color:var(--text)}

.post-closing{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:clamp(28px,4vw,64px);margin:0 0 64px;border-radius:var(--r-xl);background:var(--panel-warm)}
.post-closing h2{font-size:clamp(36px,4.4vw,64px);margin:0 0 24px}
.post-closing p:last-child{margin:0;max-width:560px;color:var(--text-secondary);font-size:16px}
.closing-actions{display:flex;flex-wrap:wrap;gap:10px;flex:none}

@media(max-width:1080px){
  .post-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  /* Without JavaScript: the chapters as a row of links above the text */
  .post-toc{position:static;max-height:none}
  .post-toc .eyebrow{margin:0 0 12px}
  .toc-list{flex-direction:row;flex-wrap:wrap;gap:6px 18px;margin:0;overflow:visible}
  .post-toc a{padding:4px 0 4px 26px;font-size:14px;color:var(--text-secondary)}
  .post-toc a::after{left:0;top:5px}
  /* With JavaScript: a bar under the header with the current chapter; it opens the full list */
  .post-toc.is-live{position:sticky;top:calc(var(--header-h) + 6px);z-index:20;padding:0;margin-inline:-6px;border-radius:18px;background:var(--bg);box-shadow:var(--shadow-card)}
  .is-live .eyebrow{display:none}
  .is-live .toc-toggle{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:52px;padding:8px 6px 8px 14px;border:0;border-radius:18px;background:transparent;text-align:left;font:650 14px/1.3 var(--font);color:var(--text)}
  .toc-toggle-title{margin-right:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .toc-chevron{flex:none;width:8px;height:8px;margin:-4px 2px 0 2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s}
  .is-open .toc-chevron{margin-top:4px;transform:rotate(225deg)}
  .is-live .toc-bar{margin:0 14px}
  .is-live.is-open .toc-bar{margin-bottom:8px}
  .is-live .toc-list{display:none;flex-direction:column;flex-wrap:nowrap;gap:0;max-height:min(60svh,420px);margin:0 14px 12px;overflow-y:auto}
  .is-live.is-open .toc-list{display:flex}
  .is-live a{padding:9px 0 9px 28px;font-size:14px;color:var(--text-tertiary)}
  .is-live a::after{left:0;top:10px}
  .post-section{scroll-margin-top:76px}
}
@media(max-width:900px){
  .post-hero>div{padding:38px 20px 38px 0}
  .articles-intro,.post-lede{font-size:15px}
  .tip-list{grid-template-columns:1fr}
  .post-closing{flex-direction:column;align-items:flex-start}
}
@media(max-width:600px){
  .articles-hero{padding:12px 0 24px}
  .post-hero{grid-template-columns:1fr;gap:20px;padding-bottom:48px}
  .post-hero>div{padding:24px 8px 8px}
  .post-hero h1{font-size:clamp(52px,13vw,76px);margin-bottom:24px}
  .articles-intro,.post-lede{font-size:16px}
  .article-filter{flex-wrap:nowrap;overflow-x:auto;margin-inline:calc(var(--gutter)*-1);padding:2px var(--gutter);scrollbar-width:none}
  .filter-chip{flex:none}
  .article-grid{grid-template-columns:1fr}
  .article-card,.word-card{padding:28px 24px}
  .article-card h3{font-size:28px}
  .article-more{margin-left:0;width:100%}
  .articles-list{margin-bottom:32px}
  .article-pair{padding:24px 20px}
  .pair-card{width:92%;padding:22px 22px}
  .post-layout{margin-bottom:32px}
  .post-section{padding:36px 0 40px}
  .post-section h2{font-size:24px}
  .post-section>p{font-size:17px;line-height:1.7}
  .rule-card,.tip-list li{padding:22px 20px}
  .rule-forms{display:block;margin:2px 0 0}
  .example-list li,.compound-list li{font-size:16px;padding:14px 16px}
  .agreement-table th,.agreement-table td{padding:12px 14px}
  .agreement-table td{font-size:15px}
  .post-closing{padding:30px 26px;margin-bottom:32px}
  .closing-actions{width:100%}
  .closing-actions .button{flex:1 1 100%}
}
