/* ============================================================
   Blog index + article styles
   ============================================================ */

/* ---- Blog hero ---- */
.blog-hero { padding: 72px 0 40px; }
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.chip { border: 1px solid var(--line-2); background: #fff; color: var(--tx-2); font-family: var(--mono); font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 999px; transition: all .18s; }
.chip:hover { border-color: var(--ink); color: var(--tx); }
.chip.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ---- Featured ---- */
.featured { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; margin-bottom: 16px; }
.featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-art { position: relative; background: linear-gradient(135deg, var(--lime-soft), #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px; min-height: 320px; border-right: 1px solid var(--line); }
.fa-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); }
.fa-src, .fa-dst { font-size: 14px; font-weight: 500; }
.fa-arrow { width: 30px; height: 30px; border-radius: 8px; background: var(--lime); display: grid; place-items: center; }
.fa-arrow svg { width: 18px; height: 18px; }
.fa-codes { display: flex; align-items: center; gap: 12px; }
.fa-vs { font-family: var(--mono); font-size: 13px; color: var(--tx-3); }
.featured-body { padding: 48px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.featured-body p { color: var(--tx-2); font-size: 16px; margin: 0; }
.featured-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.featured-meta strong { display: block; font-size: 14.5px; }
.featured-meta span.mono { font-size: 12.5px; color: var(--tx-3); }
@media (max-width: 820px){ .featured { grid-template-columns: 1fr; } .featured-art { min-height: 220px; border-right: none; border-bottom: 1px solid var(--line); padding: 36px; } .featured-body { padding: 32px; } }

/* ---- Blog grid ---- */
.blog-section-title { margin: 0 0 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.bpost { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.bpost:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.bpost-art { height: 130px; display: grid; place-items: center; font-size: 14px; color: var(--tx); border-bottom: 1px solid var(--line); }
.bpost-art .mono { background: rgba(255,255,255,.7); padding: 7px 13px; border-radius: 8px; box-shadow: var(--shadow-sm); font-weight: 500; }
.art-migratie { background: linear-gradient(135deg, var(--lime-soft), #fbfdf2); }
.art-mask { background: linear-gradient(135deg, var(--violet-soft), #fbfaff); }
.art-308 { background: linear-gradient(135deg, #e9f6ee, #fbfefb); }
.art-camp { background: linear-gradient(135deg, #fbf3df, #fefcf6); }
.art-dns { background: linear-gradient(135deg, #e6f7f4, #fafefd); }
.art-bulk { background: linear-gradient(135deg, #eef0fb, #fbfbfe); }
.bpost-body { padding: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bpost-body h3 { font-size: 20px; }
.bpost-body p { color: var(--tx-2); font-size: 14.5px; margin: 0; flex: 1; }
.bpost .post-cat { align-self: flex-start; }
.bpost .post-meta { margin-top: 4px; }
@media (max-width: 900px){ .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .blog-grid { grid-template-columns: 1fr; } }

/* ---- Newsletter ---- */
.news-card { background: var(--ink); border-radius: var(--r-xl); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.news-card .beta-form { margin-top: 0; }
@media (max-width: 820px){ .news-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 26px; } }

/* ============================================================
   Article
   ============================================================ */
.art-wrap { max-width: 740px; margin: 0 auto; padding: 0 28px; }
.art-head { padding: 56px 0 12px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--tx-3); margin-bottom: 26px; }
.breadcrumb a { color: var(--tx-3); }
.breadcrumb a:hover { color: var(--tx); }
.art-cat { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); padding: 5px 11px; border-radius: 7px; margin-bottom: 20px; }
.art-title { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.03em; line-height: 1.02; }
.art-standfirst { font-size: 20px; color: var(--tx-2); line-height: 1.55; margin: 22px 0 0; text-wrap: pretty; }
.art-byline { display: flex; align-items: center; gap: 13px; margin: 30px 0 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.art-byline .founder-avatar { width: 44px; height: 44px; font-size: 14px; }
.art-byline strong { display: block; font-size: 15px; }
.art-byline span.mono { font-size: 13px; color: var(--tx-3); }
.art-share { margin-left: auto; display: flex; gap: 8px; }
.art-share a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .18s; }
.art-share a:hover { background: var(--ink); border-color: var(--ink); }
.art-share a:hover svg path { stroke: var(--lime); }
.art-share svg { width: 18px; height: 18px; }

.art-hero-img { height: 300px; border-radius: var(--r-lg); margin: 32px auto 0; max-width: 920px; display: flex; align-items: center; justify-content: center; gap: 28px; background: linear-gradient(135deg, var(--lime-soft), #fff); border: 1px solid var(--line); }
.aih-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 26px; box-shadow: var(--shadow); }
.aih-card .mono { font-size: 16px; font-weight: 500; }
.aih-arrow { width: 36px; height: 36px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; }
.aih-arrow svg { width: 20px; height: 20px; }

/* article body */
.art-body { padding: 48px 0 24px; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.art-body > * { margin-left: auto; margin-right: auto; }
.art-body h2 { font-size: 30px; letter-spacing: -.025em; margin: 48px 0 16px; color: var(--tx); }
.art-body h3 { font-size: 22px; margin: 36px 0 12px; color: var(--tx); }
.art-body p { margin: 0 0 22px; }
.art-body a.inline { color: var(--lime-deep); font-weight: 600; border-bottom: 2px solid var(--lime); }
.art-body ul, .art-body ol { margin: 0 0 22px; padding-left: 24px; }
.art-body li { margin-bottom: 10px; }
.art-body strong { color: var(--tx); font-weight: 700; }
.art-body code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: var(--ink); }

.callout { background: var(--lime-soft); border: 1px solid #dcecb4; border-radius: var(--r); padding: 22px 24px; margin: 32px 0; display: flex; gap: 15px; align-items: flex-start; }
.callout-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; }
.callout-ic svg { width: 20px; height: 20px; }
.callout p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.callout strong { color: var(--tx); }

.art-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15.5px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.art-table th { background: var(--ink); color: var(--on-ink); text-align: left; padding: 14px 18px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.art-table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.art-table tr:nth-child(even) td { background: var(--paper-2); }
.art-table .mono { color: var(--violet); font-weight: 600; }

.pullquote { font-family: var(--display); font-size: 27px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--tx); border-left: 4px solid var(--lime); padding: 6px 0 6px 24px; margin: 36px 0; text-wrap: pretty; }

/* FAQ */
.art-faq { padding: 8px 0 40px; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--tx); display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; }
.faq-q::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 26px; color: var(--lime-deep); transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--tx-2); font-size: 16px; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { margin: 14px 0 0; }

/* article CTA + related */
.art-cta { background: var(--ink); border-radius: var(--r-xl); padding: 44px; text-align: center; margin: 40px auto; max-width: 920px; }
.art-cta h3 { color: var(--on-ink); font-size: 28px; margin-bottom: 10px; }
.art-cta p { color: var(--on-ink-2); margin: 0 auto 22px; max-width: 44ch; }

.related { padding: 8px 0 56px; }
.related h3 { margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
@media (max-width: 680px){ .related-grid { grid-template-columns: 1fr; } }

.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--lime); width: 0; z-index: 70; transition: width .1s linear; }
