/* ============================================================================
 * FBB migration build — shared additions on top of the design system
 * Loaded after tokens.css + page css on every page.
 * ========================================================================== */

/* ---------- header search results (progressive enhancement for /api/search) */
.head-search-results{position:absolute;top:calc(100% + 10px);left:0;right:0;min-width:300px;background:#fff;
  border:1px solid var(--line);border-radius:var(--r-sm);box-shadow:var(--sh-2);padding:6px;z-index:320;
  max-height:360px;overflow:auto}
.head-search-results a{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:var(--r-xs);
  font-size:13.5px;color:var(--text);line-height:1.4}
.head-search-results a:hover{background:var(--mist);color:var(--blue)}
.head-search-results .hs-meta{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.06em;color:var(--text-3)}
.head-search-results .hs-note{padding:10px 11px;font-size:12.5px;color:var(--text-3)}

/* ---------- rich text from data (about paragraphs, product/news bodyHtml) --- */
.prose{color:var(--text-2);line-height:1.8}
.prose > h2,.prose h2{font-family:var(--f-sans);font-weight:800;font-size:clamp(21px,2.2vw,27px);line-height:1.25;
  color:var(--ink);margin:40px 0 14px;letter-spacing:-.01em}
.prose > h3,.prose h3{font-weight:700;font-size:18px;line-height:1.35;color:var(--ink);margin:30px 0 10px}
.prose > h4,.prose h4{font-weight:700;font-size:16px;color:var(--ink);margin:24px 0 8px}
.prose p{margin:0 0 16px}
.prose ul,.prose ol{margin:0 0 20px;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose li{line-height:1.7}
.prose li::marker{color:var(--blue)}
.prose a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:var(--blue-2)}
.prose strong,.prose b{color:var(--ink);font-weight:700}
.prose em,.prose i{font-style:italic}
.prose img{max-height:440px;width:auto;max-width:100%;margin:20px auto;padding:14px;background:var(--mist);
  border-radius:var(--r-md)}
.prose figure{margin:24px 0}
.prose table{width:100%;margin:22px 0;border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden}
.prose th,.prose td{border:1px solid var(--line);padding:10px 13px;font-size:13.5px;text-align:left;vertical-align:top}
.prose th{background:var(--mist);font-weight:600;color:var(--ink)}
.prose blockquote{border-left:3px solid var(--orange);background:var(--mist);border-radius:var(--r-sm);
  padding:16px 20px;margin:22px 0;color:var(--text-2)}
.prose br{line-height:1.8}
.ar-body.prose > p:first-of-type{font-size:19px;line-height:1.72;color:var(--text);margin-bottom:30px;
  padding-left:20px;border-left:3px solid var(--orange);font-weight:500}

/* ---------- empty states ---------- */
.empty-state{border:1px dashed var(--line-2);border-radius:var(--r-md);padding:clamp(30px,4.4vw,56px);
  text-align:center;color:var(--text-2);background:var(--mist)}
.empty-state-dark{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.14);color:var(--text-inv-2)}
.empty-state-dark .h3{color:#fff}
.empty-state .btn{margin-top:22px}

/* ---------- inquiry form status ---------- */
.form-note{margin-top:14px;font-size:13.5px;line-height:1.6;color:var(--text-2)}
.form-note.is-ok{color:var(--green);font-weight:600}
.form-note.is-err{color:var(--red);font-weight:600}
.dl-form .form-note{color:var(--text-inv-2)}
.dl-form .form-note.is-ok{color:var(--green)}
.dl-form .form-note.is-err{color:var(--red)}

/* ---------- product image placeholder ---------- */
.pd-ph{width:100%;height:100%;display:grid;place-items:center;background:var(--mist);border-radius:var(--r-sm)}
.pd-ph img{max-height:120px;width:auto;opacity:.5}

/* ---------- misc ---------- */
a.badge:hover{filter:brightness(.97)}
.nw-topics a:hover{color:var(--blue)}
.drawer-tel{color:var(--blue);font-weight:600}
.dl-feature .badge{margin-bottom:2px}
.brand-list .on{color:var(--blue);font-weight:600}
.ct-form .form-note{grid-column:1/-1}

@media (max-width:1080px){
  .ar-meta{display:none}
}

/* ---------- prose inside dark bands (download catalogue card) ---------- */
.dl-feature .prose,.dl-req .prose,.on-dark .prose,.dark-band .prose,.dark-band-2 .prose{color:var(--text-inv-2)}
.dl-feature .prose h2,.dl-feature .prose h3,.dl-feature .prose h4,
.dl-req .prose h2,.dl-req .prose h3,.dl-req .prose h4,
.on-dark .prose h2,.on-dark .prose h3,.on-dark .prose h4{color:#fff}
.dl-feature .prose a,.dl-req .prose a{color:var(--yellow)}
.dl-feature .prose strong,.dl-feature .prose b{color:#fff}

/* ---------- product gallery thumbs: no overflow with few images ---------- */
.pd-thumbs{grid-template-columns:repeat(auto-fit,minmax(64px,110px));justify-content:start}
.pd-thumbs button{overflow:hidden}
.pd-thumbs button img{max-height:100%;width:auto}

/* ---------- mobile hero visual: stack the floating cards ---------- */
@media (max-width:720px){
  .hero-visual{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:0;padding-bottom:6px}
  .hero-visual > img{order:-1;width:min(86%,380px)}
  .hero-visual .hero-card{position:static;width:min(100%,420px);margin:0;text-align:left}
  .hero-visual .hero-card-2{margin:0;left:0;bottom:auto}
}

/* ---------- neutral catalogue badge (download feature card, no file type implied) ---------- */
.dl-filetype-cat{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.26);font-size:15px;letter-spacing:.12em}

/* ---------- Turnstile (forms + header search) ---------- */
.turnstile-slot{margin-top:16px;min-height:0;display:flex;justify-content:flex-start}
.turnstile-slot:empty{display:none}
.turnstile-status{margin-top:6px}
.head-turnstile{position:absolute;top:calc(100% + 8px);right:0;z-index:330;transform:scale(.92);transform-origin:top right}
.head-turnstile:empty{display:none}
.fb-form .turnstile-slot,.dl-form .turnstile-slot{margin-top:18px}
