/*
Theme Name: Borealis Data Lab
Theme URI: https://borealisdatalab.com/
Author: Borealis Data Lab
Description: Child theme of Twenty Twenty-Five for Borealis Data Lab — aurora visual identity, mobile-first, bilingual-ready (Polylang).
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: borealis
*/

/* ==========================================================================
   Written mobile-first: base rules target a ~360px phone, and every
   min-width query only adds. The previous static site was built desktop-first
   and degraded on phones; this is the fix at the root rather than patches.
   ========================================================================== */

:root {
  --bdl-night: #050d18;
  --bdl-night-2: #0a1626;
  --bdl-navy: #1e3a5f;
  --bdl-teal: #2d9c8f;
  --bdl-green: #57b14b;
  --bdl-glow-green: #8ae07a;
  --bdl-glow-teal: #47d6c0;
  --bdl-ink: #0b1a2e;
  --bdl-body: #3d4f66;
  --bdl-muted: #64778e;
  --bdl-mist: #b9c9da;
  --bdl-line: #e2e8ef;
  --bdl-tint: #f1f7f6;
  --bdl-radius: 18px;
  --bdl-aurora: linear-gradient(120deg, #8ae07a 0%, #47d6c0 50%, #6aa9ff 100%);
  --bdl-cta: linear-gradient(120deg, #57b14b 0%, #2d9c8f 100%);
  --bdl-header-h: 64px;
  --bdl-gutter: clamp(16px, 4vw, 32px);
}

/* A horizontal scrollbar on a phone is the most common "broken on mobile"
   symptom. `clip` (unlike `hidden`) does not break the sticky header. */
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--bdl-header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--bdl-glow-teal);
  outline-offset: 2px;
  border-radius: 6px;
}


/* Gutenberg adds a top margin between root blocks; landing sections butt up. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.bdl-landing > .wp-block-post-content > * { margin-block: 0; }

/* ---------- Layout helpers ---------- */
.bdl-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--bdl-gutter); box-sizing: border-box; }
.bdl-narrow { max-width: 780px; }

.bdl-section { position: relative; padding-block: clamp(56px, 11vw, 112px); }
.bdl-center { text-align: center; }
.bdl-center .bdl-intro { margin-inline: auto; }
.bdl-center .bdl-cards { text-align: left; }

.bdl-tint { background: var(--bdl-tint); }

/* ---------- Dark "aurora" surfaces ---------- */
.bdl-dark {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--bdl-night);
  background-image:
    radial-gradient(720px circle at 0% 0%, rgba(87, 177, 75, 0.38), transparent 60%),
    radial-gradient(760px circle at 100% 100%, rgba(45, 156, 143, 0.45), transparent 60%),
    radial-gradient(520px circle at 75% 5%, rgba(106, 169, 255, 0.16), transparent 60%);
  color: var(--bdl-mist);
}
/* Faint technical grid, faded out towards the edges — the "futuristic" layer. */
.bdl-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .bdl-dark { background-size: 140% 140%; animation: bdl-drift 22s ease-in-out infinite alternate; }
}
@keyframes bdl-drift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}
.bdl-dark :where(h1, h2, h3, h4, strong) { color: #fff; }
.bdl-dark a:not(.wp-block-button__link) { color: var(--bdl-glow-teal); }

.bdl-gradient-text {
  background: var(--bdl-aurora);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Typography bits ---------- */
.bdl-kicker {
  font-family: var(--wp--preset--font-family--heading);
  color: var(--bdl-teal); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.75rem;
}
.bdl-dark .bdl-kicker { color: var(--bdl-glow-teal); }
.bdl-intro { font-size: 1.0625rem; max-width: 38em; margin: 0 0 2.25rem; }
.bdl-dark .bdl-intro { color: var(--bdl-mist); }
.wp-block-heading.bdl-display { font-size: clamp(2.15rem, 8.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
.wp-block-heading.bdl-h2 { font-size: clamp(1.75rem, 5.6vw, 2.75rem); margin: 0 0 1rem; }

/* ---------- Header (rendered by [borealis_header]) ---------- */
/* Sticky goes on the template-part <header> WordPress wraps us in: a sticky
   element only sticks within its parent, so making the inner bar sticky would
   pin it inside a box exactly its own height, i.e. not at all. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
@media (min-width: 783px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }

.bdl-header-wrap {
  background: rgba(5, 13, 24, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
          backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bdl-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--bdl-header-h); }
.bdl-brand-box { display: flex; min-width: 0; }
.bdl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.bdl-brand img { width: 34px; height: 34px; flex: none; }
.bdl-brand-name { line-height: 1; font-family: var(--wp--preset--font-family--heading); }
.bdl-brand-name b { display: block; color: #fff; font-size: 15px; letter-spacing: 0.02em; }
.bdl-brand-name span { display: none; color: var(--bdl-mist); font-size: 9.5px; font-weight: 500; letter-spacing: 0.24em; margin-top: 4px; }
.bdl-nav { display: flex; align-items: center; gap: 10px; }
.bdl-nav-links { display: none; }
.bdl-nav-actions { display: flex; align-items: center; gap: 14px; }
.bdl-nav-actions > p { display: contents; }
.bdl-nav-links a { color: var(--bdl-mist); text-decoration: none; font-size: 14px; font-weight: 500; }
.bdl-nav-links a:hover { color: #fff; }

.bdl-flag {
  display: inline-flex; flex: none; line-height: 0; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bdl-flag svg { width: 26px; height: auto; display: block; }
.bdl-flag:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }

.bdl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--wp--preset--font-family--heading); font-weight: 600; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  border-radius: 12px; padding: 0.95rem 1.4rem; font-size: 1rem;
  background: var(--bdl-cta); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(71, 214, 192, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.bdl-btn:hover { transform: translateY(-1px); color: #fff; filter: brightness(1.06); box-shadow: 0 14px 34px -12px rgba(71, 214, 192, 0.95); }
.bdl-btn-sm { padding: 0.62rem 0.9rem; font-size: 0.875rem; border-radius: 10px; box-shadow: none; }
.bdl-cta-long { display: none; }

@media (min-width: 420px) {
  .bdl-brand-name span { display: block; }
}
@media (min-width: 560px) {
  .bdl-cta-long { display: inline; }
  .bdl-cta-short { display: none; }
}
@media (min-width: 960px) {
  :root { --bdl-header-h: 72px; }
  .bdl-nav { gap: 24px; }
  .bdl-nav-links { display: flex; gap: 24px; }
}

/* ---------- Buttons from the block editor ---------- */
.wp-block-button__link { transition: transform 0.15s ease, filter 0.15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); filter: brightness(1.06); }
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
}
.bdl-actions { gap: 12px; }
.bdl-actions .wp-block-button { width: 100%; }
.bdl-actions .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
@media (min-width: 560px) {
  .bdl-actions .wp-block-button { width: auto; }
  .bdl-actions .wp-block-button__link { width: auto; }
}

/* ---------- Hero ---------- */
.bdl-hero { padding-block: clamp(48px, 10vw, 104px) clamp(56px, 10vw, 112px); }
.bdl-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 1000px) { .bdl-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 60px; } }

.bdl-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 1.25rem;
  border: 1px solid rgba(138, 224, 122, 0.35); background: rgba(87, 177, 75, 0.12);
  color: var(--bdl-glow-green); border-radius: 999px; padding: 6px 14px;
  font-size: 0.8rem; font-weight: 600; font-family: var(--wp--preset--font-family--heading);
}
.bdl-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bdl-glow-green);
  box-shadow: 0 0 0 4px rgba(138, 224, 122, 0.2);
}
@media (prefers-reduced-motion: no-preference) { .bdl-badge::before { animation: bdl-pulse 2.4s ease-in-out infinite; } }
@keyframes bdl-pulse { 50% { box-shadow: 0 0 0 7px rgba(138, 224, 122, 0.05); } }

.bdl-lede { font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: var(--bdl-mist); margin: 1.25rem 0 1.75rem; max-width: 34em; }

.bdl-trust { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--bdl-mist); }
.bdl-trust li { display: flex; align-items: center; gap: 8px; margin: 0; }
.bdl-trust li::before {
  content: ""; flex: none; width: 16px; height: 16px;
  background: var(--bdl-glow-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 560px) { .bdl-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; } }

/* ---------- App mockup (hero) ---------- */
.bdl-mock-shell {
  margin: 0;
  position: relative; border-radius: 22px; padding: 1px;
  background: linear-gradient(140deg, rgba(138, 224, 122, 0.7), rgba(71, 214, 192, 0.35) 40%, rgba(106, 169, 255, 0.5));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 60px -20px rgba(71, 214, 192, 0.45);
}
.bdl-mock { background: #fff; color: var(--bdl-body); border-radius: 21px; overflow: hidden; }
.bdl-mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f4f6f9; border-bottom: 1px solid var(--bdl-line); }
.bdl-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dce5; }
.bdl-mock-bar span { margin-left: 8px; font-size: 11px; color: var(--bdl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdl-mock-body { padding: 16px; }
.bdl-mock-title { font: 600 1.15rem/1.2 var(--wp--preset--font-family--heading); color: var(--bdl-ink); margin: 0; letter-spacing: -0.02em; }
.bdl-mock-sub { font-size: 11px; color: var(--bdl-muted); margin: 3px 0 12px; }
.bdl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
@media (min-width: 440px) { .bdl-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bdl-tile { border: 1px solid var(--bdl-line); border-radius: 10px; padding: 7px 9px; min-width: 0; }
.bdl-tile small { display: block; font-size: 10px; color: var(--bdl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdl-tile b { font: 700 1.25rem/1.2 var(--wp--preset--font-family--heading); }
.bdl-tile.c b { color: #d92d20; } .bdl-tile.w b { color: #dc6803; } .bdl-tile.o b { color: #2f8a3a; } .bdl-tile.h b { color: var(--bdl-ink); }
.bdl-finding { border: 1px solid var(--bdl-line); border-radius: 12px; padding: 10px 12px; margin-top: 7px; }
.bdl-finding-top { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--bdl-muted); flex-wrap: wrap; }
.bdl-sev { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; }
.bdl-sev::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.bdl-sev.c { background: #fef3f2; color: #d92d20; }
.bdl-sev.w { background: #fffaeb; color: #b54708; }
.bdl-sev.o { background: #ecfbe9; color: #2f8a3a; }
.bdl-finding b { display: block; color: var(--bdl-ink); font: 600 0.95rem/1.3 var(--wp--preset--font-family--heading); margin-top: 5px; }
.bdl-finding p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.45; }
.bdl-mock-note { font-size: 10px; color: var(--bdl-muted); margin: 10px 0 0; text-align: right; }

/* ---------- Cards ---------- */
.bdl-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .bdl-cards.bdl-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 900px) { .bdl-cards.bdl-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.bdl-cards > * { margin: 0 !important; }

.bdl-card {
  background: #fff; border: 1px solid var(--bdl-line); border-radius: var(--bdl-radius);
  padding: clamp(22px, 4vw, 30px);
}
.bdl-card h3 { margin: 0 0 0.5rem; }
.bdl-card p { margin: 0; }

/* Glass cards on dark sections, with a gradient hairline border. */
.bdl-glass {
  position: relative; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--bdl-radius);
  padding: clamp(22px, 4vw, 30px);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.bdl-glass:hover { transform: translateY(-3px); border-color: rgba(71, 214, 192, 0.45); background: rgba(255, 255, 255, 0.06); }
.bdl-glass h3 { margin: 0 0 0.5rem; }
.bdl-glass p { margin: 0; color: var(--bdl-mist); }

.bdl-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; margin-bottom: 18px; background: var(--bdl-cta);
  box-shadow: 0 8px 24px -10px rgba(71, 214, 192, 0.9);
}
.bdl-icon.navy { background: linear-gradient(135deg, #3b6aa6, #1e3a5f); }
.bdl-icon.teal { background: linear-gradient(135deg, #47d6c0, #2d9c8f); }
.bdl-icon.green { background: linear-gradient(135deg, #8ae07a, #57b14b); }

.bdl-big {
  display: block; font: 700 clamp(1.6rem, 6vw, 2rem)/1.1 var(--wp--preset--font-family--heading);
  letter-spacing: -0.03em; margin: 0 0 0.5rem;
  background: var(--bdl-aurora); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: saturate(1.3) brightness(0.72);
}

/* ---------- Steps ---------- */
.bdl-steps { counter-reset: bdl-step; }
.bdl-step { position: relative; }
.bdl-step::before {
  counter-increment: bdl-step; content: counter(bdl-step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bdl-cta); color: #fff; margin-bottom: 16px;
  font: 700 1.05rem/1 var(--wp--preset--font-family--heading);
  box-shadow: 0 8px 22px -8px rgba(45, 156, 143, 0.9);
}

/* ---------- Before / after ---------- */
.bdl-side { border-radius: var(--bdl-radius); padding: clamp(24px, 5vw, 34px); margin: 0 !important; }
.bdl-side h3 { margin: 0 0 1rem; }
.bdl-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bdl-side li { position: relative; padding-left: 30px; margin: 0; }
.bdl-side li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px;
  -webkit-mask: var(--bdl-mark) center / contain no-repeat; mask: var(--bdl-mark) center / contain no-repeat;
}
.bdl-before { background: #f4f6f9; border: 1px solid var(--bdl-line); }
.bdl-before li::before {
  background: #98a2b3;
  --bdl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}
.bdl-after {
  color: var(--bdl-mist); position: relative; overflow: hidden;
  background: radial-gradient(420px circle at 100% 0%, rgba(45, 156, 143, 0.5), transparent 65%), var(--bdl-night-2);
  box-shadow: 0 0 0 1px rgba(71, 214, 192, 0.25), 0 24px 60px -30px rgba(45, 156, 143, 0.8);
}
.bdl-after h3 { color: #fff; }
.bdl-after li::before {
  background: var(--bdl-glow-green);
  --bdl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Trust list ---------- */
.bdl-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.bdl-checks li { position: relative; padding-left: 40px; margin: 0; }
.bdl-checks li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px;
  background: #ecfbe9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8a3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.bdl-checks strong { color: var(--bdl-ink); }
.bdl-shield {
  display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 160px;
  border-radius: 28px; background: var(--bdl-cta); color: #fff;
  box-shadow: 0 30px 70px -30px rgba(45, 156, 143, 0.9);
}

/* Icons live in CSS, not in page content: WordPress strips inline SVG
   from pages saved by users without the unfiltered_html capability. */
.bdl-icon::before, .bdl-shield::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--bdl-mark) center / contain no-repeat; mask: var(--bdl-mark) center / contain no-repeat;
}
.bdl-shield::before { width: 44%; height: 44%; }
.i-pulse { --bdl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E"); }
.i-search { --bdl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.i-target { --bdl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.i-bell { --bdl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
.i-shield { --bdl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.bdl-trust-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .bdl-trust-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 60px; }
  .bdl-shield { max-width: 320px; border-radius: 36px; }
}

/* ---------- FAQ (core/details) ---------- */
.bdl-faq { max-width: 800px; margin-inline: auto !important; display: grid; gap: 12px; }
.bdl-faq > * { margin: 0 !important; }
.bdl-faq .wp-block-details {
  background: #fff; border: 1px solid var(--bdl-line); border-radius: 14px; padding: 0 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.bdl-faq .wp-block-details[open] { border-color: rgba(45, 156, 143, 0.45); box-shadow: 0 18px 40px -24px rgba(11, 26, 46, 0.35); }
.bdl-faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--bdl-ink);
  font-family: var(--wp--preset--font-family--heading);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.bdl-faq summary::-webkit-details-marker { display: none; }
.bdl-faq summary::after { content: "+"; color: var(--bdl-teal); font-size: 1.4rem; line-height: 1; flex: none; }
.bdl-faq details[open] summary::after { content: "−"; }
.bdl-faq details > p { margin: 0 0 18px; }

/* ---------- Closing CTA + lead form ---------- */
.bdl-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) { .bdl-cta-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 60px; } }

/* ---------- Legal pages ---------- */
.bdl-legal-hero { padding-block: clamp(48px, 9vw, 88px); }
.bdl-legal-hero p { color: var(--bdl-mist); margin: 0.75rem 0 0; }
.bdl-legal { padding-block: clamp(40px, 7vw, 72px) clamp(56px, 9vw, 96px); }
.bdl-legal h2 { font-size: clamp(1.2rem, 3.4vw, 1.4rem); margin: 2.4rem 0 0.6rem; }
.bdl-legal h2:first-child { margin-top: 0; }
.bdl-legal code { font-size: 0.85em; background: var(--bdl-tint); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; color: var(--bdl-ink); }
.bdl-legal table { width: 100%; border-collapse: collapse; font-size: 0.925rem; display: block; overflow-x: auto; }
.bdl-legal th, .bdl-legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bdl-line); vertical-align: top; }
.bdl-legal th { color: var(--bdl-ink); font-family: var(--wp--preset--font-family--heading); }

/* ---------- Blog (index, archive, single) ---------- */
.bdl-blog-hero { padding-block: clamp(44px, 8vw, 80px); }
.bdl-post-grid .wp-block-post-template { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; list-style: none; padding: 0; }
@media (min-width: 720px) { .bdl-post-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .bdl-post-grid .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bdl-post-grid .wp-block-post-template > li { margin: 0; }
.bdl-post-card {
  height: 100%; box-sizing: border-box; background: #fff; border: 1px solid var(--bdl-line);
  border-radius: var(--bdl-radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bdl-post-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(11, 26, 46, 0.45); }
.bdl-post-card .wp-block-post-featured-image { margin: 0; }
.bdl-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.bdl-post-card-body { padding: 20px 22px 24px; }
.bdl-post-card .wp-block-post-title { font-size: 1.2rem; margin: 0.4rem 0 0.5rem; }
.bdl-post-card .wp-block-post-title a { color: var(--bdl-ink); text-decoration: none; }
.bdl-post-card .wp-block-post-date { font-size: 0.8rem; color: var(--bdl-muted); }
.bdl-post-card .wp-block-post-excerpt__excerpt { margin: 0; font-size: 0.95rem; }

.bdl-article { padding-block: clamp(40px, 7vw, 72px) clamp(56px, 9vw, 96px); }
.bdl-article .wp-block-post-content { font-size: 1.0625rem; line-height: 1.75; }
.bdl-article .wp-block-post-content :where(h2) { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-top: 2.5rem; }
.bdl-article .wp-block-post-content :where(h3) { margin-top: 2rem; }
.bdl-article .wp-block-post-content :where(img) { border-radius: 14px; }
.bdl-article .wp-block-post-content :where(blockquote) {
  border-left: 3px solid var(--bdl-teal); margin-inline: 0; padding: 4px 0 4px 20px; color: var(--bdl-ink);
}
.wp-block-query-pagination { margin-top: 2.5rem; gap: 12px; }

/* ---------- Footer (rendered by [borealis_footer]) ---------- */
.bdl-footer-wrap { background: var(--bdl-night); color: var(--bdl-mist); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.bdl-footer { display: grid; gap: 22px; padding-block: 36px; font-size: 0.9rem; }
.bdl-footer-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.bdl-footer a, .bdl-footer button.bdl-link {
  color: var(--bdl-mist); text-decoration: none; background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer;
}
.bdl-footer a:hover, .bdl-footer button.bdl-link:hover { color: #fff; }
.bdl-footer small { color: #7f93aa; }
@media (min-width: 900px) {
  .bdl-footer { grid-template-columns: auto 1fr auto; align-items: center; }
  .bdl-footer-nav { justify-content: center; }
}
