/* =========================================================================
   Novemcore · Blog & Papers (/blog-papers)
   Built ON TOP of the shared Ressourcen CMS component system.
   ressourcen.css carries header, footer, buttons, tokens, reveal, mobile
   menu, the resource card/grid/filter primitives, the newsletter + final CTA
   modules — reused 1:1, not redesigned.
   This file adds ONLY the editorial-library specific components:
     · hero editorial knowledge stack
     · featured insight card (large, single, dark-blue guide cover)
     · content-type tab bar
     · topic filter row label
     · editorial card artifact previews (Artikel / Paper / Guide / Framework)
     · compact inline newsletter card
     · article detail template layout
   ========================================================================= */
@import url("ressourcen.css");

/* =========================================================================
   Shared · content-type badge — give all four library types a distinct accent
   so Artikel / Guide / Paper / Framework read apart at a glance and match the
   detail template (artikel cobalt · guide teal · paper copper · framework gold).
   ========================================================================= */
.ctype[data-ct="guide"]     { --ct: var(--nc-teal);      color: #0c6160; }
.ctype[data-ct="paper"]     { --ct: var(--pulse-copper); color: #8c4326; }
.ctype[data-ct="framework"] { --ct: var(--nc-gold);      color: #8a6a25; }

/* read-time / format meta with a leading glyph */
.rmeta--read::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--fg-3); display: inline-block; }

/* =========================================================================
   Editorial card artifact previews  (schematic, reading-oriented, no numbers)
   Sit inside .rcard__viz (16 / 8.4). Short labels only.
   ========================================================================= */
.bviz { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* — Artikel: an article page — heading block + reading column — */
.bviz--artikel { background: linear-gradient(162deg, #F5F1E8 0%, #ECE5D7 100%); padding: 20px 22px; gap: 9px; }
.bviz--artikel .bdoc { background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-sm); box-shadow: var(--shadow-card); padding: 14px 15px; display: flex; flex-direction: column; gap: 7px; height: 100%; }
.bviz--artikel .bdoc__h { height: 9px; width: 62%; border-radius: 3px; background: rgba(30,58,138,0.34); }
.bviz--artikel .bdoc__l { height: 5px; border-radius: 3px; background: rgba(11,15,23,0.13); }
.bviz--artikel .bdoc__l:nth-child(3) { width: 96%; }
.bviz--artikel .bdoc__l:nth-child(4) { width: 88%; }
.bviz--artikel .bdoc__l:nth-child(5) { width: 92%; }
.bviz--artikel .bdoc__l:nth-child(6) { width: 74%; }

/* — Paper: premium dark-navy PDF cover — title block + rule + meta tag — */
.bviz--paper { background: linear-gradient(158deg, #0B1B33 0%, #07090D 100%); padding: 20px 22px; justify-content: space-between; overflow: hidden; }
.bviz--paper::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,245,234,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,245,234,0.05) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(74% 70% at 76% 22%, black 8%, transparent 86%); -webkit-mask-image: radial-gradient(74% 70% at 76% 22%, black 8%, transparent 86%); }
.bviz--paper .bpaper__tag { position: relative; align-self: flex-end; font: 600 8px var(--font-mono); letter-spacing: 0.16em; color: var(--pulse-amber); }
.bviz--paper .bpaper__title { position: relative; display: flex; flex-direction: column; gap: 6px; }
.bviz--paper .bpaper__title span { height: 8px; border-radius: 3px; background: rgba(255,245,234,0.82); }
.bviz--paper .bpaper__title span:nth-child(2) { width: 72%; background: rgba(255,245,234,0.5); }
.bviz--paper .bpaper__tags { position: relative; display: flex; gap: 5px; }
.bviz--paper .bpaper__chip { font: 600 7px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,245,234,0.72); background: rgba(255,245,234,0.07); border: 1px solid rgba(255,245,234,0.18); border-radius: 999px; padding: 3px 7px; }
.bviz--paper .bpaper__foot { position: relative; display: flex; align-items: center; gap: 7px; padding-top: 11px; border-top: 1px solid rgba(255,245,234,0.16); }
.bviz--paper .bpaper__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--pulse-cta-gradient); flex: 0 0 auto; }
.bviz--paper .bpaper__meta { font: 600 8px var(--font-mono); letter-spacing: 0.12em; color: rgba(255,245,234,0.66); }

/* — Guide: dark navy cover — title block + numbered leitfaden path (heavier weight) — */
.bviz--guide { background: linear-gradient(158deg, #13294A 0%, #0B1B33 52%, #070C16 100%); padding: 20px 22px; justify-content: space-between; overflow: hidden; }
.bviz--guide::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,245,234,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,245,234,0.05) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(74% 70% at 24% 22%, black 8%, transparent 86%); -webkit-mask-image: radial-gradient(74% 70% at 24% 22%, black 8%, transparent 86%); }
.bviz--guide .bguide__tag { position: relative; align-self: flex-end; font: 600 8px var(--font-mono); letter-spacing: 0.16em; color: var(--nc-signal-cyan); }
.bviz--guide .bguide__title { position: relative; display: flex; flex-direction: column; gap: 6px; }
.bviz--guide .bguide__title span { height: 8px; border-radius: 3px; background: rgba(255,245,234,0.82); }
.bviz--guide .bguide__title span:nth-child(2) { width: 64%; background: rgba(255,245,234,0.48); }
.bviz--guide .bguide__steps { position: relative; display: flex; align-items: center; gap: 0; padding-top: 12px; border-top: 1px solid rgba(255,245,234,0.16); }
.bviz--guide .bguide__step { width: 22px; height: 22px; border-radius: 999px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font: 600 9px var(--font-mono); background: rgba(0,194,209,0.14); border: 1px solid rgba(0,194,209,0.42); color: #7fe3ec; }
.bviz--guide .bguide__step--hot { background: rgba(217,119,87,0.2); border-color: rgba(217,119,87,0.55); color: var(--pulse-amber); }
.bviz--guide .bguide__ln { flex: 1; height: 1.5px; background: rgba(255,245,234,0.2); }

/* — Framework: canvas with boxes, arrows + short labels — */
.bviz--framework { background: linear-gradient(162deg, #EAEFF0 0%, #DCE6E9 100%); }
.bviz--framework::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11,15,23,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11,15,23,0.05) 1px, transparent 1px); background-size: 22px 22px; }
.bviz--framework .bflow { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 20px; }
.bviz--framework .bflow__box { position: relative; flex: 1; min-width: 0; max-width: 60px; height: 48px; background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-sm); box-shadow: var(--shadow-card); display: flex; align-items: flex-end; padding: 7px 8px; }
.bviz--framework .bflow__box::before { content: ""; position: absolute; top: 7px; left: 8px; width: 6px; height: 6px; border-radius: 2px; background: rgba(14,124,123,0.42); }
.bviz--framework .bflow__box--hot { border-color: rgba(184,87,48,0.4); }
.bviz--framework .bflow__box--hot::before { background: var(--pulse-copper); }
.bviz--framework .bflow__lbl { font: 600 7.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.bviz--framework .bflow__box--hot .bflow__lbl { color: #8c4326; }
.bviz--framework .bflow__arr { position: relative; width: 16px; height: 14px; flex: 0 0 auto; }
.bviz--framework .bflow__arr::before { content: ""; position: absolute; left: 1px; right: 4px; top: 50%; transform: translateY(-50%); height: 1.5px; background: rgba(14,124,123,0.5); }
.bviz--framework .bflow__arr::after { content: ""; position: absolute; right: 3px; top: 50%; width: 5px; height: 5px; border-top: 1.5px solid rgba(14,124,123,0.5); border-right: 1.5px solid rgba(14,124,123,0.5); transform: translate(0,-50%) rotate(45deg); }

.rcard__viz .bviz { transition: filter var(--dur-slow) var(--ease-standard); }
.rcard:hover .rcard__viz .bviz, .rcard:focus-visible .rcard__viz .bviz { filter: brightness(1.04); }

/* =========================================================================
   1 · HERO  (editorial knowledge stack)
   ========================================================================= */
.bhero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; padding-top: 72px; padding-bottom: 78px; align-items: center; }
.bhero__eyebrow { display: inline-block; margin-bottom: 18px; }
.bhero__h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.004em; margin: 0 0 22px; color: var(--nc-ink); text-wrap: balance; }
.bhero__sub { font-size: 19px; line-height: 1.62; color: var(--fg-2); max-width: 600px; margin-bottom: 30px; }
.bhero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* knowledge stack */
.kstack { position: relative; height: 410px; }
.kstack__plate { position: absolute; inset: 8px -6px -10px 24px; border-radius: var(--r-xl); background: linear-gradient(165deg, #0B1B33 0%, #07090D 100%); box-shadow: var(--shadow-pop); overflow: hidden; }
.kstack__plate::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,245,234,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,245,234,0.05) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(78% 70% at 70% 26%, black 10%, transparent 86%); -webkit-mask-image: radial-gradient(78% 70% at 70% 26%, black 10%, transparent 86%); }
.kstack__platelbl { position: absolute; right: 18px; bottom: 16px; font: 500 9.5px var(--font-mono); letter-spacing: 0.16em; color: rgba(255,245,234,0.5); }

.kart {
  position: absolute; background: #fff; border: 1px solid var(--border-1);
  border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  padding: 15px 16px; display: flex; flex-direction: column; gap: 10px;
}
.kart__lbl { font: 600 9.5px var(--font-mono); letter-spacing: 0.15em; display: inline-flex; align-items: center; gap: 7px; }
.kart__lbl::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.kart__title { font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 1.18; color: var(--nc-ink); text-wrap: pretty; }

/* artifact 1 · PAPER — premium dark cover, top of the calm cascade */
.kart--paper { top: 22px; left: 32px; width: 232px; z-index: 9; background: linear-gradient(158deg, #0B1B33 0%, #07090D 100%); border-color: rgba(217,119,87,0.26); box-shadow: 0 28px 56px -20px rgba(11,15,23,0.5), 0 0 0 1px rgba(184,87,48,0.10); padding: 17px 17px 16px; }
.kart--paper .kart__lbl { color: var(--pulse-amber); }
.kart--paper .kart__title { color: var(--pulse-cream); font-size: 16px; }
.kpaper__lines { display: flex; flex-direction: column; gap: 6px; }
.kpaper__lines span { height: 5px; border-radius: 3px; background: rgba(255,245,234,0.20); }
.kpaper__lines span:nth-child(1) { width: 100%; } .kpaper__lines span:nth-child(2) { width: 84%; } .kpaper__lines span:nth-child(3) { width: 92%; }
.kpaper__foot { display: flex; align-items: center; gap: 7px; padding-top: 11px; border-top: 1px solid rgba(255,245,234,0.16); font: 600 8.5px var(--font-mono); letter-spacing: 0.12em; color: rgba(255,245,234,0.66); }
.kpaper__foot::before { content: ""; width: 13px; height: 13px; border-radius: 999px; background: var(--pulse-cta-gradient); flex: 0 0 auto; box-shadow: inset 0 1px 0 rgba(255,245,234,0.5); }

/* artifact 2 · ARTIKEL — article page, reading column (middle of cascade) */
.kart--artikel { top: 108px; left: 300px; width: 218px; z-index: 8; }
.kart--artikel .kart__lbl { color: var(--nc-cobalt); }
.kdoc { display: flex; flex-direction: column; gap: 6px; }
.kdoc span { height: 5px; border-radius: 3px; background: rgba(11,15,23,0.12); }
.kdoc span:nth-child(1) { width: 96%; } .kdoc span:nth-child(2) { width: 88%; } .kdoc span:nth-child(3) { width: 94%; } .kdoc span:nth-child(4) { width: 70%; }

/* artifact 3 · FRAMEWORK — canvas grid (foot of cascade, smallest) */
.kart--framework { top: 265px; left: 62px; width: 218px; z-index: 7; }
.kart--framework .kart__lbl { color: #0c6160; }
.kfw { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 5px; }
.kfw span { height: 18px; border-radius: 4px; background: rgba(11,15,23,0.05); border: 1px solid var(--border-2); }
.kfw span.on { background: rgba(14,124,123,0.2); border-color: rgba(14,124,123,0.46); }
.kfw span.hot { background: rgba(184,87,48,0.18); border-color: rgba(184,87,48,0.46); }

/* artifact 4 · EVIDENCE — a captured finding: short statement + source line */
.kart--evidence { bottom: 0; right: 22px; width: 222px; z-index: 8; border-color: rgba(184,87,48,0.22); }
.kart--evidence .kart__lbl { color: var(--pulse-copper); }
.kev2__quote { font-family: var(--font-display); font-weight: 500; font-size: 13.5px; line-height: 1.34; color: var(--nc-ink); margin: 0; position: relative; padding-left: 11px; text-wrap: pretty; }
.kev2__quote::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: var(--pulse-cta-gradient); }
.kev2__src { display: flex; align-items: center; gap: 7px; padding-top: 9px; border-top: 1px solid var(--border-2); font: 600 8.5px var(--font-mono); letter-spacing: 0.06em; color: var(--fg-3); }
.kev2__src::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--nc-progress-green); flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(112,201,119,0.18); }

/* knowledge stack entrance */
.has-js .kstack .kart { opacity: 0; transform: translate(18px, 22px); }
.has-js .kstack .kstack__plate { opacity: 0; transform: translateY(14px); }
.has-js .kstack.is-in .kstack__plate { opacity: 1; transform: none; transition: opacity 760ms var(--ease-emphasized), transform 760ms var(--ease-emphasized); }
.has-js .kstack.is-in .kart { opacity: 1; transform: none; transition: opacity 820ms var(--ease-emphasized), transform 820ms var(--ease-emphasized); }
.has-js .kstack.is-in .kart--paper { transition-delay: 180ms; }
.has-js .kstack.is-in .kart--artikel { transition-delay: 300ms; }
.has-js .kstack.is-in .kart--framework { transition-delay: 420ms; }
.has-js .kstack.is-in .kart--evidence { transition-delay: 540ms; }
@media (prefers-reduced-motion: reduce) {
  .has-js .kstack .kart, .has-js .kstack .kstack__plate { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================================
   2 · FEATURED INSIGHT  (large single editorial card)
   ========================================================================= */
.finsight {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); align-items: stretch;
  background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-xl);
  box-shadow: var(--shadow-card); overflow: hidden; text-decoration: none;
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.finsight:hover, .finsight:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--border-strong); }
.finsight__body { padding: 44px 46px; display: flex; flex-direction: column; }
.finsight__type { margin-bottom: 16px; }
.finsight__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -0.003em; color: var(--nc-ink); margin: 0 0 16px; text-wrap: balance; }
.finsight__desc { font-size: 17px; line-height: 1.62; color: var(--fg-2); max-width: 50ch; margin-bottom: 22px; text-wrap: pretty; }
.finsight__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.finsight__cta { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--pulse-copper); margin-top: auto; }
.finsight:hover .finsight__cta .arrow, .finsight:focus-visible .finsight__cta .arrow { transform: translateX(4px); }

/* dark-blue guide cover · process-reality line + four-step evidence path */
.fcover { position: relative; background: linear-gradient(158deg, #0B1B33 0%, #07090D 100%); overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px 36px; }
.fcover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,245,234,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,245,234,0.045) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(76% 72% at 72% 24%, black 8%, transparent 86%); -webkit-mask-image: radial-gradient(76% 72% at 72% 24%, black 8%, transparent 86%); }
.fcover__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fcover__kicker { font: 600 10px var(--font-mono); letter-spacing: 0.16em; color: var(--pulse-amber); }
.fcover__mark { display: inline-flex; align-items: center; gap: 8px; font: 600 10px var(--font-mono); letter-spacing: 0.1em; color: rgba(255,245,234,0.72); }
.fcover__mark::before { content: ""; width: 16px; height: 16px; border-radius: 999px; background: var(--pulse-cta-gradient); box-shadow: inset 0 1px 0 rgba(255,245,234,0.5), 0 0 0 3px rgba(184,87,48,0.14); }
.fcover__title { position: relative; font-family: var(--font-display); font-weight: 500; font-size: 25px; line-height: 1.14; color: var(--pulse-cream); max-width: 18ch; text-wrap: balance; }

/* process reality line */
.fcover__pr { position: relative; display: flex; flex-direction: column; gap: 8px; }
.fcover__prlbl { font: 600 9px var(--font-mono); letter-spacing: 0.14em; color: rgba(255,245,234,0.55); }
.fcover__prline { display: flex; align-items: center; gap: 5px; }
.fcover__prline .nd { width: 16px; height: 16px; border-radius: 5px; background: rgba(14,124,123,0.22); border: 1px solid rgba(112,201,119,0.45); flex: 0 0 auto; }
.fcover__prline .nd.hot { background: rgba(184,87,48,0.28); border-color: rgba(217,119,87,0.6); }
.fcover__prline .ed { flex: 1; height: 1px; background: rgba(255,245,234,0.22); }

/* four-step evidence path */
.fcover__path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fcover__pstep { display: flex; flex-direction: column; gap: 7px; }
.fcover__pn { width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 600 10px var(--font-mono); background: rgba(217,119,87,0.16); border: 1px solid rgba(217,119,87,0.42); color: var(--pulse-amber); }
.fcover__pbar { height: 5px; border-radius: 3px; background: rgba(255,245,234,0.14); overflow: hidden; }
.fcover__pbar i { display: block; height: 100%; background: var(--pulse-cta-gradient); border-radius: 3px; }
.fcover__pstep:nth-child(1) .fcover__pbar i { width: 100%; }
.fcover__pstep:nth-child(2) .fcover__pbar i { width: 78%; }
.fcover__pstep:nth-child(3) .fcover__pbar i { width: 64%; }
.fcover__pstep:nth-child(4) .fcover__pbar i { width: 88%; }

@media (max-width: 880px) {
  .finsight { grid-template-columns: 1fr; }
  .finsight__body { padding: 32px 28px; order: 2; }
  .fcover { order: 1; min-height: 280px; }
}

/* =========================================================================
   3 · CONTENT-TYPE TABS  (single-select, underlined, keyboard-accessible)
   ========================================================================= */
.ctabs-wrap { position: relative; border-bottom: 1px solid var(--border-1); margin-bottom: 30px; }
.ctabs { display: flex; gap: 4px; flex-wrap: wrap; }
.ctab {
  position: relative; font: 500 15px var(--font-body); color: var(--fg-2);
  background: transparent; border: 0; padding: 12px 16px 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.ctab::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--pulse-copper); border-radius: 2px 2px 0 0; opacity: 0; transform: scaleX(0.4); transform-origin: center; transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.ctab:hover { color: var(--nc-ink); }
.ctab__count { font: 500 12px var(--font-mono); letter-spacing: 0.02em; color: var(--fg-3); transition: color var(--dur-fast); }
.ctab.is-active { color: var(--nc-ink); font-weight: 600; }
.ctab.is-active::after { opacity: 1; transform: scaleX(1); }
.ctab.is-active .ctab__count { color: var(--pulse-copper); }
.ctab:focus-visible { outline: 2px solid var(--nc-cobalt); outline-offset: -2px; border-radius: 6px; }

/* mobile: compact select + horizontal scroll fallback */
.ctabs-select { display: none; width: 100%; height: 46px; border-radius: var(--r-md); border: 1px solid var(--border-1); background: #fff; padding: 0 14px; font: 500 15px var(--font-body); color: var(--nc-ink); -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* =========================================================================
   4 · TOPIC FILTERS  (secondary to the type tabs — quieter, text-led chips)
   ========================================================================= */
.themen { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.themen__lbl { font: 600 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); flex: 0 0 auto; }
.bfilters { margin-bottom: 8px; }

/* topic chips read as a secondary, lighter filter under the primary tabs */
.bfilters .qchip { display: inline-flex; align-items: center; gap: 7px; font: 500 13px var(--font-body); color: var(--fg-2); background: transparent; border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 13px; }
.bfilters .qchip::before { content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: currentColor; opacity: 0; transform: scale(0.4); transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.bfilters .qchip:hover { color: var(--nc-ink); background: rgba(11,15,23,0.04); border-color: var(--border-strong); transform: none; box-shadow: none; }
.bfilters .qchip.is-active { font-weight: 600; color: #fff; background: var(--nc-cobalt); border-color: var(--nc-cobalt); box-shadow: 0 8px 20px -12px rgba(30,58,138,0.6); }
.bfilters .qchip[data-pulse].is-active { background: var(--pulse-copper); border-color: var(--pulse-copper); box-shadow: 0 8px 20px -12px rgba(184,87,48,0.6); }
.bfilters .qchip.is-active::before { opacity: 1; transform: none; }

/* =========================================================================
   5 · ARTICLE GRID  (reuses .rgrid + .rcard from ressourcen.css)
   ========================================================================= */
/* airy editorial cards — 2-line teaser, CTA pinned to the bottom edge */
.rcard__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__foot { margin-top: auto; }
.gridcount { font: 500 13px var(--font-mono); letter-spacing: 0.02em; color: var(--fg-3); }

/* active-filter state, expressed in words (not colour alone) */
.gridfilterstate { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; text-align: right; }
.gridfilterstate__lbl { font: 600 10px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.gridfilterstate__val { font: 500 13px var(--font-mono); letter-spacing: 0.01em; color: var(--fg-2); max-width: 42ch; }
.gridfilterstate__val b { font-weight: 600; color: var(--nc-ink); }
@media (max-width: 680px) {
  .gridfilterstate { align-items: flex-start; text-align: left; margin-top: 14px; }
}

/* card foot metadata — date · reading time, mono, secondary */
.rcard__foot .rmeta { color: var(--fg-3); }

/* =========================================================================
   6 · RELATED RESOURCES  (3-up, reuses .rcard)
   ========================================================================= */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1024px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .related { grid-template-columns: 1fr; } }

/* =========================================================================
   7 · COMPACT INLINE NEWSLETTER CARD
   ========================================================================= */
.nlinline {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: center; padding: 30px 34px;
  background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.nlinline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pulse-cta-gradient); }
.nlinline__copy { display: flex; flex-direction: column; gap: 8px; }
.nlinline__title { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.16; color: var(--nc-ink); text-wrap: balance; }
.nlinline__text { font-size: 14.5px; line-height: 1.56; color: var(--fg-2); max-width: 46ch; text-wrap: pretty; }
.nlinline__form { display: flex; flex-direction: column; gap: 9px; }
.nlinline__row { display: flex; gap: 10px; flex-wrap: wrap; }
.nlinline__input { flex: 1; min-width: 180px; height: 46px; border-radius: var(--r-md); border: 1px solid var(--border-1); background: #fff; padding: 0 15px; font: 400 15px var(--font-body); color: var(--nc-ink); }
.nlinline__input::placeholder { color: var(--fg-3); }
.nlinline__input:focus { outline: 2px solid var(--nc-cobalt); outline-offset: 1px; }
.nlinline__note { font: 500 11px var(--font-mono); letter-spacing: 0.02em; color: var(--fg-3); }
.nlinline__note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 820px) { .nlinline { grid-template-columns: 1fr; gap: 22px; padding: 28px; } }

/* =========================================================================
   ARTICLE DETAIL TEMPLATE  (/blog-papers/[slug])
   Reuses .finalcta, .nlinline, .related, .rcard. Adds article primitives.
   ========================================================================= */
/* 1 · article hero — light editorial, centred reading column */
.ahero { background: var(--nc-paper); border-bottom: 1px solid var(--border-1); }
.ahero__inner { max-width: 820px; margin: 0 auto; padding: 48px 0 40px; }
.ahero__bread { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); letter-spacing: 0.06em; color: var(--fg-2); text-decoration: none; margin-bottom: 22px; }
.ahero__bread:hover { color: var(--pulse-copper); }
.ahero__type { display: block; margin-bottom: 16px; }
.ahero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.004em; color: var(--nc-ink); margin: 0 0 18px; text-wrap: balance; }
.ahero__sub { font-size: 19px; line-height: 1.6; color: var(--fg-2); max-width: 60ch; margin-bottom: 22px; text-wrap: pretty; }
.ahero__tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* 2 · metadata row */
.ameta { max-width: 820px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px 0; }
.ameta__item { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font-mono); letter-spacing: 0.02em; color: var(--fg-2); }
.ameta__item svg { color: var(--fg-3); flex: 0 0 auto; }
.ameta__sep { width: 3px; height: 3px; border-radius: 999px; background: var(--fg-3); opacity: 0.6; }
.ameta__share { margin-left: auto; display: flex; gap: 8px; }
.ameta__sbtn { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--border-1); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-2); cursor: pointer; transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast); }
.ameta__sbtn:hover { color: var(--pulse-copper); border-color: var(--border-strong); }

/* 3 · key takeaways */
.takeaways { max-width: 820px; margin: 0 auto; background: var(--nc-offwhite); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 28px 30px; }
.takeaways__lbl { font: 600 10px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pulse-copper); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.takeaways__lbl::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--pulse-copper); }
.takeaways__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.takeaways__list li { display: grid; grid-template-columns: 24px 1fr; gap: 13px; align-items: start; font-size: 16.5px; line-height: 1.5; color: var(--fg-1); }
.takeaways__m { width: 24px; height: 24px; border-radius: 999px; background: rgba(184,87,48,0.08); border: 1px solid rgba(184,87,48,0.24); display: flex; align-items: center; justify-content: center; color: var(--pulse-copper); flex: 0 0 auto; }

/* 4 · body content (prose) */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.16; color: var(--nc-ink); margin: 0 0 16px; }
.prose h2:not(:first-child) { margin-top: 44px; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--nc-ink); margin: 32px 0 12px; }
.prose p { font-size: 17.5px; line-height: 1.72; color: var(--fg-2); margin: 0 0 18px; text-wrap: pretty; }
.prose p strong { color: var(--nc-ink); font-weight: 600; }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.prose ul li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.6; color: var(--fg-2); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--nc-cobalt); }
.prose blockquote { margin: 28px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--pulse-copper); font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.4; color: var(--nc-ink); text-wrap: pretty; }
.prose blockquote cite { display: block; margin-top: 12px; font: 500 12px var(--font-mono); letter-spacing: 0.04em; font-style: normal; color: var(--fg-3); }
.prose figure { margin: 30px 0; }
.prose .pfig { border-radius: var(--r-lg); border: 1px solid var(--border-1); overflow: hidden; box-shadow: var(--shadow-card); }
.prose figcaption { font: 500 12px var(--font-mono); letter-spacing: 0.02em; color: var(--fg-3); margin-top: 10px; text-align: center; }

/* inline evidence callout inside prose */
.callout { margin: 28px 0; display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-lg); background: rgba(30,58,138,0.04); border: 1px solid rgba(30,58,138,0.16); }
.callout__ic { width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(30,58,138,0.08); border: 1px solid rgba(30,58,138,0.2); display: flex; align-items: center; justify-content: center; color: var(--nc-cobalt); flex: 0 0 auto; }
.callout__t { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--nc-ink); margin-bottom: 4px; }
.callout__d { font-size: 14.5px; line-height: 1.58; color: var(--fg-2); }

/* in-body framework figure (light canvas with axis + quadrant) */
.fwfig { background: linear-gradient(162deg, #EEF1F6 0%, #E3E8F1 100%); padding: 30px; }
.fwfig__grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; max-width: 460px; margin: 0 auto; aspect-ratio: 16 / 9; }
.fwfig__q { background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow-card); }
.fwfig__qlbl { font: 600 9px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.fwfig__line { height: 5px; border-radius: 3px; background: rgba(11,15,23,0.1); }
.fwfig__line:nth-child(3) { width: 72%; }
.fwfig__q--hot { border-color: rgba(184,87,48,0.34); }
.fwfig__q--hot .fwfig__qlbl { color: #8c4326; }
.fwfig__q--hot .fwfig__line { background: rgba(184,87,48,0.22); }

/* 5 · small inline commercial CTA — calm, in the reading column, never a dark band */
.inlinecta { max-width: 820px; margin: 40px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 26px; border: 1px solid var(--border-1); border-left: 3px solid var(--pulse-copper); border-radius: var(--r-md); background: var(--nc-offwhite); }
.inlinecta__copy { flex: 1 1 360px; }
.inlinecta__title { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.2; color: var(--nc-ink); margin-bottom: 6px; }
.inlinecta__text { font-size: 14.5px; line-height: 1.56; color: var(--fg-2); max-width: 56ch; text-wrap: pretty; }
.inlinecta__action { flex: 0 0 auto; }
@media (max-width: 560px) { .inlinecta__action, .inlinecta__action .btn { width: 100%; justify-content: center; } }

/* related · compact 2-up, aligned to the reading column */
.related--two { max-width: 820px; margin-left: auto; margin-right: auto; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .related--two { grid-template-columns: 1fr; } }

/* section rhythm helper for narrow detail blocks */
.bnarrow { max-width: 820px; margin: 0 auto; }
.beyebrow { display: inline-block; margin-bottom: 14px; }

/* =========================================================================
   Filter row · tablet wrap-safe, mobile horizontal scroll chips
   ========================================================================= */
.qfilter { row-gap: 10px; }
@media (max-width: 760px) {
  .ctabs { display: none; }
  .ctabs-wrap { border-bottom: 0; margin-bottom: 22px; }
  .ctabs-select { display: block; }
}

/* =========================================================================
   Responsive · hero
   ========================================================================= */
@media (max-width: 940px) {
  .bhero { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; padding-bottom: 60px; }
  .bhero__visual { order: 2; }
  .kstack { height: 430px; max-width: 470px; }
}
@media (max-width: 680px) {
  .bhero__h1 { font-size: clamp(32px, 9vw, 44px); }
  .kstack { height: 420px; }
  .kart--paper { width: 220px; }
  .kart--artikel { width: 190px; }
  .kart--framework { width: 196px; }
}

/* =========================================================================
   FINALIZED LISTING · single optional service chip on a card
   (one per card max — never a long tag row)
   ========================================================================= */
.rcard__svc {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font: 600 10px var(--font-mono); letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--fg-3);
}
.rcard__svc::before { content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: var(--nc-cobalt); flex: 0 0 auto; }

/* =========================================================================
   INTERNAL HANDOFF ANNOTATION  (detail-template reference only)
   Marks the file as a CMS template, names the Sanity type, and lists the
   conditional/optional fields. Strip the entire .hnote block in production.
   ========================================================================= */
.hnote {
  max-width: 820px; margin: 0 auto 6px; display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: start; background: rgba(184,144,72,0.06); border: 1px dashed rgba(184,144,72,0.4);
  border-radius: var(--r-md); padding: 16px 20px;
}
.hnote__eye { font: 600 9px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--nc-gold); padding-top: 3px; white-space: nowrap; }
.hnote__body { font-size: 13px; line-height: 1.6; color: var(--fg-2); }
.hnote__body strong { color: var(--nc-ink); font-weight: 600; }
.hnote__body code { font: 500 12px var(--font-mono); color: #8a6a25; background: rgba(184,144,72,0.1); border-radius: 4px; padding: 1px 5px; }
.hnote__body ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hnote__body li { position: relative; padding-left: 16px; }
.hnote__body li::before { content: "·"; position: absolute; left: 4px; color: var(--nc-gold); font-weight: 700; }
.hnotewrap { padding-top: 34px; padding-bottom: 0; }

/* small inline "optional field" marker for handoff-reference sections */
.optflag {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 10px;
  font: 600 9px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--nc-gold); background: rgba(184,144,72,0.08); border: 1px solid rgba(184,144,72,0.26);
  border-radius: 999px; padding: 3px 9px; line-height: 1;
}
.optflag::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--nc-gold); }

/* =========================================================================
   PAPER DETAIL TEMPLATE  (/…/blog-papers/[slug] · resourcePost type=paper)
   Reuses .ahero / .prose / .related--two / .nlinline. Adds paper primitives:
   executive summary, optional cover figure, optional open-paper CTA,
   key-questions / framework block.
   ========================================================================= */
/* executive summary — sits directly under the paper hero, reading column */
.execsum { max-width: 820px; margin: 0 auto; background: var(--nc-offwhite); border: 1px solid var(--border-1); border-left: 3px solid var(--pulse-copper); border-radius: var(--r-lg); padding: 26px 30px; }
.execsum__lbl { font: 600 10px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pulse-copper); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.execsum__lbl::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--pulse-copper); }
.execsum__text { font-size: 18px; line-height: 1.62; color: var(--fg-1); text-wrap: pretty; margin: 0; }

/* optional open-paper CTA row — rendered ONLY when a real asset exists */
.paperopen { max-width: 820px; margin: 26px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.paperopen__meta { display: inline-flex; align-items: center; gap: 9px; font: 600 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.paperopen__meta svg { color: var(--pulse-copper); }

/* optional paper cover figure — premium dark navy/copper artifact */
.pcover { max-width: 820px; margin: 36px auto; position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(217,119,87,0.22); box-shadow: var(--shadow-pop); background: linear-gradient(158deg, #0B1B33 0%, #07090D 100%); padding: 40px 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.pcover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,245,234,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,245,234,0.045) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(76% 80% at 78% 26%, black 8%, transparent 86%); -webkit-mask-image: radial-gradient(76% 80% at 78% 26%, black 8%, transparent 86%); }
.pcover__copy { position: relative; }
.pcover__kicker { font: 600 10px var(--font-mono); letter-spacing: 0.16em; color: var(--pulse-amber); margin-bottom: 14px; }
.pcover__title { font-family: var(--font-display); font-weight: 500; font-size: 27px; line-height: 1.14; color: var(--pulse-cream); max-width: 20ch; text-wrap: balance; margin: 0 0 14px; }
.pcover__lines { display: flex; flex-direction: column; gap: 7px; max-width: 260px; }
.pcover__lines span { height: 5px; border-radius: 3px; background: rgba(255,245,234,0.2); }
.pcover__lines span:nth-child(2) { width: 86%; } .pcover__lines span:nth-child(3) { width: 72%; }
.pcover__disc { position: relative; width: 60px; height: 60px; border-radius: 999px; background: var(--pulse-cta-gradient); box-shadow: inset 0 1px 0 rgba(255,245,234,0.45), 0 0 0 6px rgba(184,87,48,0.14); display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
@media (max-width: 600px) { .pcover { grid-template-columns: 1fr; padding: 30px 26px; } .pcover__disc { display: none; } }

/* key questions / framework block */
.kqblock { max-width: 820px; margin: 40px auto 0; }
.kqblock__lbl { font: 600 10px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--nc-cobalt); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.kqblock__lbl::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--nc-cobalt); }
.kqlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kqlist li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.kqlist__n { width: 30px; height: 30px; border-radius: var(--r-sm); background: rgba(30,58,138,0.07); border: 1px solid rgba(30,58,138,0.2); display: flex; align-items: center; justify-content: center; font: 600 12px var(--font-mono); color: var(--nc-cobalt); flex: 0 0 auto; }
.kqlist__q { font-size: 15.5px; line-height: 1.5; color: var(--fg-1); text-wrap: pretty; }
@media (max-width: 640px) { .kqlist { grid-template-columns: 1fr; } }

/* article optional hero visual — light navy editorial panel, reading column */
.ahvisual { max-width: 820px; margin: 32px auto 0; position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-1); box-shadow: var(--shadow-card); background: linear-gradient(162deg, #EEF1F6 0%, #E3E8F1 100%); aspect-ratio: 16 / 7; }
.ahvisual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11,15,23,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11,15,23,0.05) 1px, transparent 1px); background-size: 30px 30px; }
.ahvisual__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 32px; }
.ahvisual__box { flex: 1; min-width: 0; max-width: 120px; height: 64px; background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-sm); box-shadow: var(--shadow-card); display: flex; align-items: flex-end; padding: 10px 12px; position: relative; }
.ahvisual__box::before { content: ""; position: absolute; top: 10px; left: 12px; width: 8px; height: 8px; border-radius: 2px; background: rgba(30,58,138,0.4); }
.ahvisual__box--hot::before { background: var(--pulse-copper); }
.ahvisual__box .l { width: 70%; height: 5px; border-radius: 3px; background: rgba(11,15,23,0.12); }
.ahvisual__arr { width: 22px; height: 14px; flex: 0 0 auto; position: relative; }
.ahvisual__arr::before { content: ""; position: absolute; left: 2px; right: 5px; top: 50%; transform: translateY(-50%); height: 1.5px; background: rgba(30,58,138,0.42); }
.ahvisual__arr::after { content: ""; position: absolute; right: 4px; top: 50%; width: 5px; height: 5px; border-top: 1.5px solid rgba(30,58,138,0.42); border-right: 1.5px solid rgba(30,58,138,0.42); transform: translate(0,-50%) rotate(45deg); }
.ahvisual__cap { max-width: 820px; margin: 10px auto 0; font: 500 12px var(--font-mono); letter-spacing: 0.02em; color: var(--fg-3); text-align: center; }
