/* Shared add-on blocks of the visual editor (highlights, promo banner, floating contact, testimonials, visit info,
   services). One stylesheet for all three templates: every colour/size comes from the template's own design tokens
   through the --bk-* aliases below, so a style or palette re-skins these blocks like any other. */
:root {
  --bk-accent: var(--ec-accent, var(--rt-accent, var(--ct-accent, #4f6df5)));
  --bk-accent-2: var(--ec-accent-2, var(--rt-accent-2, var(--ct-accent-2, #22c3a6)));
  --bk-bg: var(--ec-bg, var(--rt-bg, var(--ct-bg, #f7f8fa)));
  --bk-surface: var(--ec-surface, var(--rt-surface, var(--ct-surface, #fff)));
  --bk-text: var(--ec-text, var(--rt-text, var(--ct-text, #1c2230)));
  --bk-muted: var(--ec-text-muted, var(--rt-text-muted, var(--ct-text-muted, #6b7280)));
  --bk-border: var(--ec-border, var(--rt-border, var(--ct-border, #e5e7eb)));
  --bk-radius: var(--ec-radius, var(--rt-radius, var(--ct-radius, 14px)));
  --bk-gap: var(--ec-gap, var(--rt-gap, var(--ct-gap, 14px)));
  --bk-shadow: var(--ec-shadow, var(--rt-shadow, var(--ct-shadow, 0 10px 26px -16px rgba(0,0,0,.35))));
}

.bk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.bk-narrow { max-width: 760px; }
.bk-sec { padding: 44px 0; }
.bk-h2 { margin: 0 0 22px; }
.bk-ltr { direction: ltr; unicode-bidi: isolate; }

/* editor placeholder for a block that is on but has nothing to show yet */
.bk-empty { margin: 18px auto; max-width: 1040px; display: grid; place-items: center; min-height: 72px; padding: 14px; border: 2px dashed color-mix(in srgb, var(--bk-accent) 45%, var(--bk-border)); border-radius: var(--bk-radius); color: var(--bk-muted); font-size: .9rem; text-align: center; }
.bk-empty-float { position: fixed; inset-inline-end: 12px; bottom: 12px; max-width: 220px; min-height: 0; margin: 0; padding: 8px 14px; border-radius: 999px; font-size: .78rem; z-index: 40; background: var(--bk-surface); }

/* ---- buttons ---- */
.bk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--bk-accent); color: #fff; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.bk-btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.06); }
.bk-btn-light { background: #fff; color: var(--bk-accent); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.bk-btn-ghost { background: transparent; color: var(--bk-accent); border: 2px solid var(--bk-accent); }
.bk-btn-ico { width: 18px; height: 18px; }
.bk-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 800; color: var(--bk-accent); }
.bk-more:hover { text-decoration: none; gap: 12px; }

/* =========================== highlights =========================== */
.bk-hl-list { list-style: none; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bk-hl-list > li { min-width: 0; }
.bk-hl-list strong { display: block; font-weight: 800; }
.bk-hl-list span { color: var(--bk-muted); font-size: .9rem; line-height: 1.7; }
.bk-hl-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--bk-accent) 12%, var(--bk-surface)); color: var(--bk-accent); margin-bottom: 10px; }
.bk-hl-ico svg { width: 26px; height: 26px; }

.bk-hl-icons .bk-hl-list > li { text-align: center; position: relative; padding-inline: 8px; }
.bk-hl-icons .bk-hl-ico { margin-inline: auto; }
.bk-hl-icons .bk-hl-list > li:not(:last-child)::after { content: ''; position: absolute; inset-inline-end: -9px; top: 12%; bottom: 12%; width: 1px; background: var(--bk-border); }
html[data-o-highlights-dividers="0"] .bk-hl-icons .bk-hl-list > li::after, html[data-o-highlights-dividers="0"] .bk-hl-minimal li::after { display: none; }

.bk-hl-cards .bk-hl-list > li { padding: 20px 18px; background: var(--bk-surface); border: 1px solid var(--bk-border); border-top: 3px solid var(--bk-accent); border-radius: var(--bk-radius); box-shadow: var(--bk-shadow); }

.bk-hl-band { background: linear-gradient(135deg, var(--bk-accent), color-mix(in srgb, var(--bk-accent) 55%, #000)); color: #fff; margin: 28px 0; }
.bk-hl-band .bk-hl-list { padding-block: 22px; gap: 12px; }
.bk-hl-band .bk-hl-list > li { padding-inline: 14px; border-inline-start: 2px solid rgba(255,255,255,.35); }
.bk-hl-band strong { color: #fff; font-size: 1.05rem; }
.bk-hl-band span { color: rgba(255,255,255,.88); }

.bk-hl-minimal { border-block: 1px solid var(--bk-border); background: var(--bk-surface); margin: 20px 0; }
.bk-hl-minimal .bk-hl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-block: 14px; }
.bk-hl-minimal li { display: flex; align-items: center; gap: 8px; position: relative; }
.bk-hl-minimal li strong { display: inline; font-size: .92rem; }
.bk-hl-minimal li span:not(.bk-hl-dot) { display: none; }
.bk-hl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bk-accent); flex: none; }

.bk-hl-numbered .bk-hl-list > li { padding-top: 14px; border-top: 2px solid var(--bk-text); }
.bk-hl-no { display: block; font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--bk-accent); margin-bottom: 10px; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) { .bk-hl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-hl-icons .bk-hl-list > li::after { display: none; } }
@media (max-width: 480px) {
  .bk-sec { padding: 30px 0; }
  .bk-hl-list { gap: 14px; }
  .bk-hl-cards .bk-hl-list > li { padding: 14px 12px; }
  .bk-hl-ico { width: 44px; height: 44px; } .bk-hl-ico svg { width: 22px; height: 22px; }
  .bk-hl-no { font-size: 1.9rem; }
  .bk-hl-band .bk-hl-list > li { padding-inline: 10px; }
}

/* =========================== promo banner =========================== */
.bk-promo-card h2 { margin: 0 0 8px; }
.bk-promo-card p { margin: 0 0 18px; line-height: 1.8; }
.bk-promo-gradient .bk-promo-card { position: relative; overflow: hidden; padding: 48px 28px; border-radius: calc(var(--bk-radius) + 8px); background: linear-gradient(135deg, var(--bk-accent), var(--bk-accent-2)); color: #fff; text-align: center; box-shadow: var(--bk-shadow); }
.bk-promo-gradient h2, .bk-promo-gradient p { color: #fff; }
.bk-promo-gradient p { max-width: 560px; margin-inline: auto; margin-bottom: 20px; opacity: .95; }
.bk-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), rgba(255,255,255,0) 70%); pointer-events: none; }
.bk-orb-a { width: 280px; height: 280px; top: -110px; inset-inline-start: -70px; }
.bk-orb-b { width: 220px; height: 220px; bottom: -90px; inset-inline-end: -40px; }
.bk-promo-body { position: relative; }

.bk-promo-split .bk-promo-card { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px; padding: 34px; background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: calc(var(--bk-radius) + 6px); box-shadow: var(--bk-shadow); overflow: hidden; }
.bk-promo-split h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.bk-promo-split p { color: var(--bk-muted); }
.bk-promo-art { position: relative; align-self: stretch; min-height: 150px; }
.bk-promo-art span { position: absolute; border-radius: 50%; }
.bk-promo-art span:nth-child(1) { width: 150px; height: 150px; inset-inline-end: 0; top: 0; background: var(--bk-accent); opacity: .92; }
.bk-promo-art span:nth-child(2) { width: 90px; height: 90px; inset-inline-end: 110px; bottom: 0; background: var(--bk-accent-2); opacity: .9; }
.bk-promo-art span:nth-child(3) { width: 46px; height: 46px; inset-inline-end: 24px; bottom: 6px; border: 4px solid var(--bk-text); }

.bk-promo-outline .bk-promo-card { text-align: center; padding: 38px 24px; border: 2px dashed var(--bk-accent); border-radius: calc(var(--bk-radius) + 6px); background: color-mix(in srgb, var(--bk-accent) 6%, var(--bk-surface)); }
.bk-promo-outline h2 { color: var(--bk-accent); }
.bk-promo-outline p { color: var(--bk-text); max-width: 540px; margin-inline: auto; margin-bottom: 18px; }

.bk-promo-spot .bk-promo-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 36px 32px; border-radius: calc(var(--bk-radius) + 8px); background: radial-gradient(520px 220px at 90% 0, color-mix(in srgb, var(--bk-accent) 55%, transparent), transparent 70%), var(--bk-text); color: var(--bk-bg); overflow: hidden; }
.bk-promo-spot h2 { color: var(--bk-bg); }
.bk-promo-spot p { color: color-mix(in srgb, var(--bk-bg) 78%, transparent); margin: 0; }
.bk-promo-spot .bk-promo-body { flex: 1 1 320px; }

.bk-promo-ribbon { background: var(--bk-accent); color: #fff; margin: 16px 0; }
.bk-promo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.bk-promo-row p { margin: 0; color: #fff; line-height: 1.7; }
.bk-promo-row strong { margin-inline-end: 8px; }
.bk-promo-ribbon .bk-btn { min-height: 40px; padding: 0 20px; }

@media (max-width: 720px) {
  .bk-promo-gradient .bk-promo-card { padding: 34px 18px; }
  .bk-promo-split .bk-promo-card { grid-template-columns: 1fr; padding: 24px 18px; }
  .bk-promo-art { min-height: 90px; order: -1; }
  .bk-promo-art span:nth-child(1) { width: 90px; height: 90px; }
  .bk-promo-art span:nth-child(2) { width: 56px; height: 56px; inset-inline-end: 70px; }
  .bk-promo-art span:nth-child(3) { width: 30px; height: 30px; }
  .bk-promo-spot .bk-promo-card { padding: 26px 18px; }
  .bk-promo-spot .bk-btn, .bk-promo-gradient .bk-btn, .bk-promo-split .bk-btn { width: 100%; }
  .bk-promo-ribbon .bk-btn { width: 100%; }
}

/* =========================== floating contact =========================== */
.bk-fl { position: fixed; z-index: 56; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); text-decoration: none; }
html[data-o-floating-side="start"] .bk-fl { inset-inline-end: auto; inset-inline-start: 16px; }
@media (min-width: 721px) { html[data-o-floating-mobileonly="1"] .bk-fl { display: none; } }
.bk-fl svg { width: 24px; height: 24px; }
.bk-fl-fab { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--bk-accent); color: #fff; box-shadow: 0 14px 28px -10px rgba(0,0,0,.55); transition: transform .15s ease; }
.bk-fl-fab:hover { transform: scale(1.06); text-decoration: none; }
.bk-fl-fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 color-mix(in srgb, var(--bk-accent) 55%, transparent); animation: bk-ping 2.6s infinite; }
@keyframes bk-ping { 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .bk-fl-fab::before { animation: none; } }

.bk-fl-dial summary { list-style: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--bk-accent); color: #fff; cursor: pointer; box-shadow: 0 14px 28px -10px rgba(0,0,0,.55); }
.bk-fl-dial summary::-webkit-details-marker { display: none; }
.bk-fl-dial .bk-dial-close { display: none; }
.bk-fl-dial[open] .bk-dial-close { display: block; }
.bk-fl-dial[open] .bk-dial-open { display: none; }
.bk-fl-dial ul { position: absolute; bottom: 68px; inset-inline-end: 0; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; justify-items: end; }
.bk-fl-dial li a { display: flex; align-items: center; gap: 10px; color: var(--bk-text); font-weight: 700; font-size: .9rem; }
.bk-fl-dial li a:hover { text-decoration: none; }
.bk-fl-dial li span { padding: 6px 12px; border-radius: 999px; background: var(--bk-surface); border: 1px solid var(--bk-border); box-shadow: var(--bk-shadow); white-space: nowrap; }
.bk-fl-dial li i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--bk-surface); color: var(--bk-accent); border: 1px solid var(--bk-border); box-shadow: var(--bk-shadow); }
.bk-fl-dial li svg { width: 22px; height: 22px; }
html[data-o-floating-side="start"] .bk-fl-dial ul { inset-inline-end: auto; inset-inline-start: 0; justify-items: start; }
html[data-o-floating-side="start"] .bk-fl-dial li a { flex-direction: row-reverse; }

.bk-fl-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--bk-accent); color: #fff; font-weight: 800; box-shadow: 0 14px 28px -10px rgba(0,0,0,.55); }
.bk-fl-pill:hover { text-decoration: none; filter: brightness(1.07); }

.bk-fl-tab { top: 50%; bottom: auto; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; background: var(--bk-accent); color: #fff; font-weight: 800; font-size: .88rem; inset-inline-end: 0; border-start-start-radius: 14px; border-end-start-radius: 14px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
html[data-o-floating-side="start"] .bk-fl-tab { inset-inline-end: auto; inset-inline-start: 0; border-radius: 0; border-start-end-radius: 14px; border-end-end-radius: 14px; }
.bk-fl-tab span { writing-mode: vertical-rl; letter-spacing: .02em; }
.bk-fl-tab:hover { text-decoration: none; padding-inline: 14px; }

.bk-fl-bar { inset-inline: 0; bottom: 0; display: flex; gap: 0; padding: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--bk-surface); border-top: 1px solid var(--bk-border); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.4); }
.bk-fl-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; color: var(--bk-text); font-weight: 800; font-size: .92rem; }
.bk-fl-bar a:first-child { background: var(--bk-accent); color: #fff; }
.bk-fl-bar a:hover { text-decoration: none; }
@media (min-width: 721px) { .bk-fl-bar { inset-inline: auto; inset-inline-end: 16px; bottom: 16px; border: 0; border-radius: 999px; overflow: hidden; box-shadow: 0 14px 28px -10px rgba(0,0,0,.55); } .bk-fl-bar a { padding: 0 22px; } }
body:has(.bk-fl-bar) { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
@media (min-width: 721px) { body:has(.bk-fl-bar) { padding-bottom: 0; } }

/* other fixed bars on phones (app tabs, action bar): float above them */
@media (max-width: 720px) {
  body:has(.ec-tabbar) .bk-fl:not(.bk-fl-bar):not(.bk-fl-tab), body:has(.rt-actionbar) .bk-fl:not(.bk-fl-bar):not(.bk-fl-tab) { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.ec-tabbar) .bk-fl-bar, body:has(.rt-actionbar) .bk-fl-bar { bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* =========================== testimonials =========================== */
.bk-tm figure { margin: 0; }
.bk-tm blockquote { margin: 0; line-height: 1.9; }
.bk-who { display: inline-flex; align-items: center; gap: 10px; }
.bk-who img, .bk-who i, .bk-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--bk-accent) 16%, var(--bk-surface)); color: var(--bk-accent); font-style: normal; font-weight: 900; }
.bk-who strong { display: block; font-size: .95rem; }
.bk-who small { color: var(--bk-muted); }
.bk-tm-mark { display: block; font-size: 4rem; line-height: .6; color: var(--bk-accent); opacity: .5; font-family: Georgia, serif; margin-bottom: 8px; height: 28px; }

.bk-tm-feat-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.bk-tm-hero { padding: 34px 30px; border-radius: calc(var(--bk-radius) + 6px); background: linear-gradient(135deg, var(--bk-accent), color-mix(in srgb, var(--bk-accent) 55%, #000)); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.bk-tm-hero blockquote { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; }
.bk-tm-hero .bk-tm-mark { color: #fff; }
.bk-tm-hero .bk-who small { color: rgba(255,255,255,.8); }
.bk-tm-hero .bk-who img, .bk-tm-hero .bk-who i { background: rgba(255,255,255,.22); color: #fff; }
.bk-tm-side { display: grid; gap: 18px; }
.bk-tm-card { padding: 22px; background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius); box-shadow: var(--bk-shadow); display: flex; flex-direction: column; gap: 16px; }
.bk-tm-card blockquote { font-size: .95rem; color: var(--bk-text); }

.bk-tm-minimal figure { padding: 26px 0; border-bottom: 1px solid var(--bk-border); }
.bk-tm-minimal figure:first-of-type { border-top: 2px solid var(--bk-text); }
.bk-tm-minimal blockquote { font-size: clamp(1.15rem, 2.6vw, 1.55rem); font-weight: 600; }
.bk-tm-minimal figcaption { margin-top: 12px; color: var(--bk-muted); }
.bk-tm-minimal figcaption strong { color: var(--bk-text); }

.bk-tm-bubbles figure { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.bk-tm-bubbles figure.bk-alt { flex-direction: row-reverse; }
.bk-bubble { position: relative; max-width: min(560px, 82%); padding: 16px 20px; border-radius: 22px; border-end-start-radius: 6px; background: var(--bk-surface); border: 1px solid var(--bk-border); box-shadow: var(--bk-shadow); }
.bk-alt .bk-bubble { border-end-start-radius: 22px; border-end-end-radius: 6px; background: color-mix(in srgb, var(--bk-accent) 10%, var(--bk-surface)); }
.bk-bubble figcaption { margin-top: 8px; font-size: .85rem; color: var(--bk-muted); }
.bk-bubble figcaption strong { color: var(--bk-text); }

.bk-tm-carousel .bk-tm-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, calc((100vw - 1080px) / 2)) 22px; scrollbar-width: none; }
.bk-tm-carousel .bk-tm-track::-webkit-scrollbar { display: none; }
.bk-tm-carousel .bk-tm-card { flex: 0 0 min(360px, 82vw); scroll-snap-align: center; }
.bk-tm-carousel .bk-tm-track:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: -2px; }

.bk-tm-cols { columns: 3; column-gap: 16px; }
.bk-tm-cols .bk-tm-card { break-inside: avoid; margin-bottom: 16px; }
.bk-tm-cols .bk-tm-card:nth-child(3n+1) { background: color-mix(in srgb, var(--bk-accent) 7%, var(--bk-surface)); }

@media (max-width: 760px) {
  .bk-tm-feat-grid { grid-template-columns: 1fr; }
  .bk-tm-hero { padding: 24px 20px; }
  .bk-tm-cols { columns: 1; }
  .bk-bubble { max-width: 86%; padding: 12px 14px; }
}

/* =========================== visit info =========================== */
.bk-visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.bk-visit-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--bk-radius); background: var(--bk-surface); border: 1px solid var(--bk-border); color: var(--bk-text); box-shadow: var(--bk-shadow); min-width: 0; overflow-wrap: anywhere; }
a.bk-visit-card:hover { text-decoration: none; border-color: var(--bk-accent); }
.bk-visit-card svg { width: 28px; height: 28px; color: var(--bk-accent); margin-bottom: 6px; }
.bk-visit-card small { color: var(--bk-muted); font-weight: 700; }
.bk-visit-card strong { font-size: 1.05rem; line-height: 1.7; }

.bk-visit-split { display: grid; grid-template-columns: 1.2fr 1fr; margin: 36px 0; }
.bk-visit-a { background: var(--bk-text); color: var(--bk-bg); display: flex; align-items: center; }
.bk-visit-b { background: var(--bk-accent); color: #fff; display: flex; align-items: center; }
.bk-visit-pad { padding: 40px max(20px, calc((100vw - 1080px) / 2)); width: 100%; }
.bk-visit-a .bk-visit-pad { padding-inline-end: 28px; }
.bk-visit-b .bk-visit-pad { padding-inline-start: 28px; }
.bk-visit-a small { display: block; font-weight: 800; opacity: .7; margin-bottom: 8px; }
.bk-visit-a strong { display: block; font-size: clamp(1.5rem, 4.4vw, 2.6rem); line-height: 1.35; }
.bk-visit-b p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; line-height: 1.8; color: #fff; }
.bk-visit-b p svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }

.bk-visit-strip { background: color-mix(in srgb, var(--bk-accent) 9%, var(--bk-surface)); border-block: 1px solid var(--bk-border); margin: 24px 0; }
.bk-strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; padding-block: 16px; }
.bk-strip-row > * { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--bk-text); }
.bk-strip-row svg { width: 20px; height: 20px; color: var(--bk-accent); }
.bk-strip-row a:hover { text-decoration: none; color: var(--bk-accent); }

.bk-poster-frame { position: relative; text-align: center; padding: 46px 24px; border: 2px solid var(--bk-text); outline: 1px solid var(--bk-text); outline-offset: -10px; border-radius: 6px; background: var(--bk-surface); }
.bk-orn { display: block; color: var(--bk-accent); font-size: 1.3rem; margin-bottom: 8px; }
.bk-poster-frame h2 { margin: 0 0 12px; }
.bk-poster-frame p { margin: 0 0 8px; color: var(--bk-muted); }
.bk-poster-hours { font-size: 1.3rem; font-weight: 800; color: var(--bk-text) !important; }
.bk-poster-frame .bk-btn { margin-top: 12px; }

@media (max-width: 720px) {
  .bk-visit-split { grid-template-columns: 1fr; }
  .bk-visit-pad, .bk-visit-a .bk-visit-pad, .bk-visit-b .bk-visit-pad { padding: 26px 20px; }
  .bk-poster-frame { padding: 32px 14px; outline-offset: -7px; }
  .bk-strip-row { justify-content: flex-start; flex-direction: column; gap: 10px; }
}

/* =========================== services =========================== */
.bk-svc h3 { margin: 0 0 6px; font-size: 1.08rem; }
.bk-svc p { margin: 0; color: var(--bk-muted); line-height: 1.8; font-size: .92rem; }
.bk-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.bk-svc-grid article { position: relative; padding: 24px 22px; border-radius: var(--bk-radius); background: var(--bk-surface); border: 1px solid var(--bk-border); box-shadow: var(--bk-shadow); overflow: hidden; transition: transform .2s ease, border-color .2s; }
.bk-svc-grid article:hover { transform: translateY(-4px); border-color: var(--bk-accent); }
.bk-svc-grid b { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; color: color-mix(in srgb, var(--bk-accent) 35%, transparent); margin-bottom: 12px; }
.bk-svc-list ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--bk-text); }
.bk-svc-list li { display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--bk-border); transition: padding .2s, background .2s; }
.bk-svc-list li:hover { padding-inline-start: 14px; background: color-mix(in srgb, var(--bk-accent) 5%, transparent); }
.bk-svc-list li b { font-size: 1.6rem; font-weight: 900; color: var(--bk-accent); min-width: 2.2ch; font-variant-numeric: tabular-nums; }
.bk-svc-list li > div { flex: 1; min-width: 0; }
.bk-svc-arrow { width: 22px; height: 22px; color: var(--bk-muted); flex: none; }
.bk-svc-split-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.bk-svc-head { position: sticky; top: 90px; }
.bk-svc-split ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bk-svc-split li { padding: 18px 20px; border-radius: var(--bk-radius); border-inline-start: 4px solid var(--bk-accent); background: var(--bk-surface); }
.bk-svc-pills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bk-svc-pills li a { display: inline-flex; flex-direction: column; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--bk-border); background: var(--bk-surface); color: var(--bk-text); }
.bk-svc-pills li a:hover { text-decoration: none; border-color: var(--bk-accent); color: var(--bk-accent); }
.bk-svc-pills small { color: var(--bk-muted); font-size: .78rem; }
@media (max-width: 760px) {
  .bk-svc-split-grid { grid-template-columns: 1fr; gap: 20px; }
  .bk-svc-head { position: static; }
  .bk-svc-list li { gap: 12px; }
  .bk-svc-pills li a { padding: 10px 16px; border-radius: 18px; }
}

/* =====================================================================================================
   Shared layouts for header / announcement / footer / hero (templates map their own data into the models in
   BlockModels.cs). Self-contained: they bring their own drawer, so they need nothing from the template's chrome.
   ===================================================================================================== */
:root { --bk-heading-weight: var(--ec-heading-weight, var(--rt-heading-weight, var(--ct-heading-weight, 800))); }

/* options (Raymon.AdminUI.BlockOptionCatalog) that reach into the shared layouts */
html[data-o-header-sticky="0"] .bkh { position: static; }
html[data-o-header-density="compact"] .bkh-bar { padding-block: 4px; }
html[data-o-header-density="airy"] .bkh-bar { padding-block: 22px; }
html[data-o-hero-height="compact"] .bkx { padding-block: 28px; min-height: 0; }
html[data-o-hero-height="tall"] .bkx { padding-block: 120px; }
@media (max-width: 720px) { html[data-o-hero-height="compact"] .bkx { padding-block: 18px; } html[data-o-hero-height="tall"] .bkx { padding-block: 70px; } }
html[data-o-footer-showsocial="0"] .bk-social { display: none; }
html[data-o-announcement-speed="slow"] .bka-dual-line { animation-duration: 60s; }
html[data-o-announcement-speed="fast"] .bka-dual-line { animation-duration: 18s; }

/* ---------------------------------------- headers ---------------------------------------- */
.bkh { position: sticky; top: 0; z-index: 30; }
.bkh-bar { display: flex; align-items: center; gap: 14px; padding-block: 12px; padding-top: max(12px, env(safe-area-inset-top)); }
.bkh-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--bk-heading-weight); font-size: 1.2rem; color: var(--bk-text); white-space: nowrap; min-width: 0; }
.bkh-brand:hover { text-decoration: none; color: var(--bk-accent); }
.bkh-brand > span { overflow: hidden; text-overflow: ellipsis; }
.bkh-logo { height: 32px; width: auto; }
.bkh-status { font-style: normal; font-size: .7rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.bkh-status.is-open { background: color-mix(in srgb, #16a34a 16%, transparent); color: #16a34a; }
.bkh-status.is-closed { background: color-mix(in srgb, #dc2626 14%, transparent); color: #dc2626; }
.bkh-link { position: relative; padding: 9px 13px; border-radius: 999px; color: var(--bk-text); font-weight: 600; white-space: nowrap; }
.bkh-link:hover { text-decoration: none; color: var(--bk-accent); background: color-mix(in srgb, var(--bk-accent) 8%, transparent); }
.bkh-link.is-active { color: var(--bk-accent); }
.bkh-icon { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--bk-text); flex: none; }
.bkh-icon:hover { text-decoration: none; background: color-mix(in srgb, var(--bk-accent) 10%, transparent); color: var(--bk-accent); }
.bkh-icon svg { width: 22px; height: 22px; }
.bkh-badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--bk-accent); color: #fff; font-size: .7rem; font-weight: 800; font-style: normal; }
.bkh-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.bkh-cta { min-height: 40px; padding: 0 20px; }
.bkh-search { position: relative; display: flex; align-items: center; }
.bkh-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--bk-muted); pointer-events: none; }
.bkh-search input { width: 190px; min-height: 40px; padding-block: 0; padding-inline: 38px 14px; text-align: start; border: 1px solid var(--bk-border); border-radius: 999px; background: var(--bk-bg); color: var(--bk-text); font: inherit; font-size: .88rem; transition: width .2s, border-color .2s; }
.bkh-search input:focus { width: 250px; outline: none; border-color: var(--bk-accent); }
.bkh-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--bk-border); border-radius: 12px; background: transparent; cursor: pointer; flex: none; }
.bkh-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--bk-text); transition: transform .2s, opacity .2s; }
.bkh.is-open .bkh-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bkh.is-open .bkh-toggle span:nth-child(2) { opacity: 0; }
.bkh.is-open .bkh-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bkh-panel { display: none; background: var(--bk-surface); border-top: 1px solid var(--bk-border); box-shadow: 0 24px 40px -24px rgba(0,0,0,.4); max-height: calc(100vh - 70px); overflow-y: auto; }
.bkh.is-open .bkh-panel { display: block; }
.bkh-plink { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 6px; border: 0; background: none; color: var(--bk-text); font: inherit; font-weight: 700; border-bottom: 1px solid var(--bk-border); text-align: start; cursor: pointer; }
.bkh-plink:hover { text-decoration: none; color: var(--bk-accent); }
.bkh-plink.is-active { color: var(--bk-accent); }
.bkh-plink svg { width: 22px; height: 22px; color: var(--bk-accent); flex: none; }
.bkh-logout { margin: 0; }
.bkh-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(15,15,20,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.bkh.is-open + .bkh-backdrop { opacity: 1; pointer-events: auto; }
html.bk-lock { overflow: hidden; }

/* glass (centred brand, links on both sides) */
.bkh-glass { background: color-mix(in srgb, var(--bk-surface) 72%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid color-mix(in srgb, var(--bk-border) 70%, transparent); }
.bkh-glass .bkh-bar { display: grid; grid-template-columns: 1fr auto 1fr; }
.bkh-side { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bkh-side-b { justify-content: flex-end; }
.bkh-glass .bkh-brand { justify-self: center; font-size: 1.35rem; }
.bkh-m-actions { display: none; grid-column: 3; justify-self: end; align-items: center; gap: 6px; }

/* editorial drawer */
.bkh-drawer { background: var(--bk-bg); border-bottom: 1px solid var(--bk-border); }
.bkh-menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--bk-text); border-radius: 999px; background: transparent; color: var(--bk-text); font: inherit; font-weight: 800; cursor: pointer; }
.bkh-menu-btn i { display: grid; gap: 5px; width: 20px; }
.bkh-menu-btn i span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.bkh.is-open .bkh-menu-btn i span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.bkh.is-open .bkh-menu-btn i span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.bkh-drawer-panel { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 40; width: min(440px, 92vw); padding: 84px 32px 28px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bk-text); color: var(--bk-bg); transform: translateX(-104%); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; overflow-y: auto; box-shadow: none; visibility: hidden; }
.bkh-drawer.is-open .bkh-drawer-panel { box-shadow: 30px 0 60px -20px rgba(0,0,0,.5); visibility: visible; }
.bkh-drawer.is-open .bkh-drawer-panel { transform: none; }
.bkh-drawer-panel nav { display: grid; }
.bkh-drawer-panel a, .bkh-drawer-panel nav button { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--bk-bg) 18%, transparent); background: none; color: var(--bk-bg); font: inherit; font-size: clamp(1.4rem, 5vw, 2.1rem); font-weight: 800; text-align: start; cursor: pointer; transition: padding .2s, color .2s; }
.bkh-drawer-panel a:hover, .bkh-drawer-panel nav button:hover { text-decoration: none; padding-inline-start: 12px; color: var(--bk-accent-2); }
.bkh-drawer-panel small { font-size: .8rem; font-weight: 700; opacity: .55; min-width: 2ch; }
.bkh-drawer-panel form { margin: 0; }
.bkh-drawer-foot { padding-top: 22px; display: grid; gap: 8px; font-size: .95rem; opacity: .85; }
.bkh-drawer-foot p { margin: 0; color: inherit; }
.bkh-drawer-foot a { font-size: 1.1rem; padding: 0; border: 0; }
.bkh-drawer .bkh-menu-btn { position: relative; z-index: 41; }
.bkh-drawer.is-open .bkh-menu-btn { color: var(--bk-bg); border-color: var(--bk-bg); }

/* tabs with a scroll progress line */
.bkh-tabs { background: var(--bk-surface); border-bottom: 1px solid var(--bk-border); }
.bkh-progress { position: absolute; top: 0; inset-inline-start: 0; height: 3px; width: calc(var(--bk-p, 0) * 100%); background: linear-gradient(90deg, var(--bk-accent), var(--bk-accent-2)); transition: width .1s linear; }
.bkh-tablist { display: flex; align-items: stretch; gap: 4px; margin-inline: 14px auto; align-self: stretch; }
.bkh-tablist .bkh-link { border-radius: 0; display: flex; align-items: center; background: none; }
.bkh-tablist .bkh-link::after { content: ''; position: absolute; inset-inline: 12px; bottom: -13px; height: 3px; border-radius: 3px 3px 0 0; background: var(--bk-accent); transform: scaleX(0); transition: transform .2s; }
.bkh-tablist .bkh-link:hover::after, .bkh-tablist .bkh-link.is-active::after { transform: scaleX(1); }

/* brand tile */
.bkh-tile { background: var(--bk-surface); border-bottom: 1px solid var(--bk-border); }
.bkh-tile .bkh-bar { padding: 0; gap: 0; min-height: 66px; align-items: stretch; }
.bkh-tile-brand { display: flex; align-items: center; padding: 0 34px 0 44px; background: var(--bk-accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%); margin-inline-end: 8px; }
.bkh-tile-brand .bkh-brand { color: #fff; }
.bkh-tile-brand .bkh-brand:hover { color: #fff; opacity: .9; }
.bkh-tile-brand .bkh-status { background: rgba(255,255,255,.2); color: #fff; }
.bkh-tile-links { display: flex; align-items: center; gap: 2px; padding-inline: 10px; }
.bkh-tile-actions { padding-inline: 16px; }

/* floating dock: slim top bar + a pill dock at the bottom edge on every screen size */
.bkh-dockbar { background: color-mix(in srgb, var(--bk-surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--bk-border); }
.bkh-dock { position: fixed; z-index: 60; bottom: calc(14px + env(safe-area-inset-bottom)); inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100vw - 20px); display: flex; gap: 4px; padding: 8px; border-radius: 28px; background: color-mix(in srgb, var(--bk-surface) 88%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid var(--bk-border); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.bkh-dock a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 62px; min-height: 54px; padding: 4px 10px; border-radius: 20px; color: var(--bk-muted); font-size: .7rem; font-weight: 800; transition: background .2s, color .2s, transform .2s; }
.bkh-dock a:hover { text-decoration: none; color: var(--bk-accent); transform: translateY(-3px); }
.bkh-dock a.is-active { background: var(--bk-accent); color: #fff; }
.bkh-dock svg { width: 22px; height: 22px; }
.bkh-dock i { position: relative; display: inline-grid; font-style: normal; }
body:has(.bkh-dock) { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
body:has(.bkh-dock) :is(.ec-chat-widget, .rt-chat-widget, .ct-chat-widget, [class*="chat-widget"]) { inset-block-end: calc(100px + env(safe-area-inset-bottom)); }

@media (max-width: 860px) {
  .bkh-side, .bkh-tablist, .bkh-tile-links, .bkh-glass .bkh-side-b { display: none; }
  .bkh-glass .bkh-side-a { display: none; }
  .bkh-m-actions { display: flex; }
  .bkh-glass .bkh-bar { display: flex; }
  .bkh-glass .bkh-brand { justify-self: auto; flex: 1; min-width: 0; font-size: 1.1rem; }
  .bkh-toggle { display: flex; }
  .bkh-search { display: none; }
  .bkh-tile-brand { padding: 0 22px 0 32px; }
  .bkh-tile .bkh-bar { min-height: 58px; }
  .bkh-tile-actions { margin-inline-start: auto; padding-inline: 10px; gap: 4px; }
  .bkh-tile-actions .bkh-cta { display: none; }
  .bkh-dockbar .bkh-search { display: flex; }
  .bkh-dockbar .bkh-search input { width: 150px; }
  .bkh-dockbar .bkh-cta { display: none; }
  .bkh-dock { gap: 0; padding: 6px; }
  .bkh-dock a { min-width: 52px; padding: 4px 6px; font-size: .66rem; }
  .bkh-drawer .bkh-cta { display: none; }
  .bkh-brand { font-size: 1.1rem; }
}

/* ---------------------------------------- announcements ---------------------------------------- */
.bka { font-size: .9rem; line-height: 1.6; }
.bka a { color: inherit; }
.bka-pill { padding: 8px 12px; text-align: center; background: var(--bk-bg); }
.bka-pill-in { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 7px 18px; border-radius: 999px; background: color-mix(in srgb, var(--bk-accent) 10%, var(--bk-surface)); border: 1px solid color-mix(in srgb, var(--bk-accent) 35%, var(--bk-border)); color: var(--bk-text); font-weight: 700; }
.bka-live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.bka-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: bk-ping2 1.8s ease-out infinite; }
@keyframes bk-ping2 { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
.bka-split { background: var(--bk-text); color: var(--bk-bg); }
.bka-split-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 8px; }
.bka-split-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--bk-accent); color: #fff !important; font-weight: 800; white-space: nowrap; text-decoration: none !important; flex: none; }
.bka-ico { width: 15px; height: 15px; }
.bka-stripe { padding: 9px 14px; text-align: center; color: #fff; font-weight: 800; background: repeating-linear-gradient(-45deg, var(--bk-accent) 0 16px, color-mix(in srgb, var(--bk-accent) 78%, #000) 16px 32px); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.bka-notice { padding: 12px 0 0; }
.bka-notice-box { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--bk-radius); background: var(--bk-surface); border: 1px solid var(--bk-border); border-inline-start: 4px solid var(--bk-accent); box-shadow: var(--bk-shadow); color: var(--bk-text); }
.bka-notice-ico { width: 22px; height: 22px; color: var(--bk-accent); flex: none; }
.bka-dual { position: relative; overflow: hidden; background: var(--bk-text); color: var(--bk-bg); padding: 0; font-weight: 800; }
.bka-dual-line { display: flex; width: max-content; padding-block: 6px; animation: bk-run 36s linear infinite; }
.bka-dual-line span { padding-inline: 22px; white-space: nowrap; }
.bka-dual-line b { margin-inline-start: 22px; color: var(--bk-accent-2); }
.bka-dual-b { animation-direction: reverse; opacity: .7; font-weight: 600; border-top: 1px solid color-mix(in srgb, var(--bk-bg) 18%, transparent); }
@keyframes bk-run { from { transform: translateX(0); } to { transform: translateX(50%); } }
.bka-dual-link { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .bka-dual-line { animation: none; width: auto; justify-content: center; } .bka-dual-line span:nth-child(n+2), .bka-dual-b { display: none; } .bka-live::after { animation: none; } }
@media (max-width: 560px) { .bka-split-row { padding-block: 6px; } .bka-pill-in { padding: 6px 14px; font-size: .85rem; } }

/* ---------------------------------------- footers ---------------------------------------- */
.bkf { margin-top: 40px; color: var(--bk-text); }
.bkf a { color: inherit; }
.bkf-copy { padding-block: 16px; font-size: .84rem; color: var(--bk-muted); }
.bkf-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bkf-contact li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; overflow-wrap: anywhere; line-height: 1.7; }
.bkf-contact svg { width: 18px; height: 18px; color: var(--bk-accent); flex: none; margin-top: 4px; }
.bkf-contact a:hover { color: var(--bk-accent); text-decoration: none; }
.bkf-social { display: inline-flex; gap: 8px; }
.bkf-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: background .2s, color .2s, transform .2s; }
.bkf-social a:hover { background: var(--bk-accent); color: #fff; border-color: var(--bk-accent); transform: translateY(-2px); text-decoration: none; }
.bkf-social svg { width: 19px; height: 19px; }
.bkf h4 { margin: 0 0 12px; font-size: .9rem; letter-spacing: .02em; color: var(--bk-muted); }

.bkf-aurora { position: relative; overflow: hidden; border-top: 1px solid var(--bk-border); background: var(--bk-bg); }
.bkf-glow { position: absolute; inset-inline: 0; top: -140px; height: 280px; background: radial-gradient(60% 100% at 50% 0, color-mix(in srgb, var(--bk-accent) 38%, transparent), transparent 70%), radial-gradient(40% 80% at 80% 0, color-mix(in srgb, var(--bk-accent-2) 30%, transparent), transparent 70%); filter: blur(10px); pointer-events: none; }
.bkf-aurora-in { position: relative; display: grid; gap: 34px; padding-block: 56px 20px; }
.bkf-aurora-brand { text-align: center; display: grid; justify-items: center; gap: 10px; }
.bkf-aurora-brand strong { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; line-height: 1.2; }
.bkf-aurora-brand p { margin: 0; color: var(--bk-muted); max-width: 52ch; }
.bkf-aurora-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 28px; border-top: 1px solid var(--bk-border); }
.bkf-aurora-cols nav a { display: block; padding: 5px 0; color: var(--bk-text); }
.bkf-aurora-cols nav a:hover { color: var(--bk-accent); text-decoration: none; }

.bkf-bigphone { background: var(--bk-text); color: var(--bk-bg); padding-top: 52px; }
.bkf-bigphone .bkf-kicker { display: block; font-weight: 800; color: var(--bk-accent-2); margin-bottom: 8px; }
.bkf-big { display: block; font-size: clamp(2rem, 9.5vw, 6.2rem); font-weight: 900; line-height: 1.1; color: var(--bk-bg) !important; letter-spacing: -.01em; overflow-wrap: anywhere; text-align: start; transition: color .2s; }
.bkf-big:hover { color: var(--bk-accent-2) !important; text-decoration: none; }
.bkf-bigphone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 30px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--bk-bg) 22%, transparent); opacity: .92; }
.bkf-name { font-weight: 800; }
.bkf-bigphone .bkf-copy { color: color-mix(in srgb, var(--bk-bg) 62%, transparent); padding-top: 22px; }

.bkf-sitemap { background: var(--bk-surface); border-top: 1px solid var(--bk-border); }
.bkf-sitemap-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 34px; padding-block: 48px 24px; }
.bkf-sm-brand strong { display: block; font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; }
.bkf-sm-brand p { margin: 0 0 14px; color: var(--bk-muted); line-height: 1.8; }
.bkf-sitemap nav a { display: block; padding: 5px 0; }
.bkf-sitemap nav a:hover { color: var(--bk-accent); text-decoration: none; }
.bkf-sm-cta { padding: 20px; border-radius: var(--bk-radius); background: linear-gradient(135deg, var(--bk-accent), color-mix(in srgb, var(--bk-accent) 55%, #000)); color: #fff; display: grid; gap: 12px; align-content: start; }
.bkf-sm-cta h4 { color: #fff; margin: 0; font-size: 1.05rem; }
.bkf-sm-cta .bk-btn { background: #fff; color: var(--bk-accent); }

.bkf-card { background: color-mix(in srgb, var(--bk-accent) 7%, var(--bk-bg)); padding: 40px 0 0; }
.bkf-card-box { padding: 28px; border-radius: 28px; background: var(--bk-surface); box-shadow: var(--bk-shadow); border: 1px solid var(--bk-border); display: grid; gap: 22px; }
.bkf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bkf-card-head strong { font-size: 1.4rem; font-weight: 900; }
.bkf-card-head p { margin: 4px 0 0; color: var(--bk-muted); }
.bkf-card .bkf-contact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.bkf-card .bkf-contact li { padding: 12px 14px; border-radius: 14px; background: var(--bk-bg); }
.bkf-card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bkf-card-links a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bk-border); font-weight: 600; }
.bkf-card-links a:hover { border-color: var(--bk-accent); color: var(--bk-accent); text-decoration: none; }

.bkf-mega { background: var(--bk-text); color: var(--bk-bg); overflow: hidden; padding-top: 46px; }
.bkf-mega-top { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 28px; align-items: start; }
.bkf-mega .bkf-contact svg { color: var(--bk-accent-2); }
.bkf-mega-links { display: grid; gap: 4px; }
.bkf-mega-links a { padding: 4px 0; font-weight: 700; opacity: .9; }
.bkf-mega-links a:hover { color: var(--bk-accent-2); text-decoration: none; }
.bkf-mega-word { margin-top: 26px; height: clamp(70px, 15vw, 200px); overflow: hidden; text-align: center; }
.bkf-mega-word span { display: block; font-size: clamp(4.5rem, 20vw, 15rem); line-height: 1.05; font-weight: 900; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--bk-bg) 40%, transparent); transform: translateY(8%); }
@media (max-width: 860px) {
  .bkf-sitemap-grid { grid-template-columns: 1fr 1fr; }
  .bkf-mega-top { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bkf-sitemap-grid { grid-template-columns: 1fr; padding-block: 34px 16px; }
  .bkf-card-box { padding: 20px 16px; border-radius: 22px; }
  .bkf-aurora-in { padding-top: 40px; }
}

/* ---------------------------------------- heroes ---------------------------------------- */
.bkx { position: relative; overflow: hidden; }
.bkx h1 { margin: 0 0 12px; line-height: 1.2; }
.bkx-eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bk-accent) 12%, var(--bk-surface)); color: var(--bk-accent); font-size: .82rem; font-weight: 800; margin-bottom: 14px; }
.bkx-sub { color: var(--bk-muted); font-size: 1.1rem; line-height: 1.9; margin: 0 0 1.4em; max-width: 52ch; }
.bkx-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.bkx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bkx-chips a { padding: 7px 16px; border-radius: 999px; background: var(--bk-surface); border: 1px solid var(--bk-border); color: var(--bk-text); font-weight: 600; font-size: .9rem; }
.bkx-chips a:hover { border-color: var(--bk-accent); color: var(--bk-accent); text-decoration: none; }
.bkx-search { display: flex; align-items: center; gap: 8px; max-width: 620px; padding: 8px 10px 8px 8px; border-radius: 999px; background: var(--bk-surface); border: 1px solid var(--bk-border); box-shadow: var(--bk-shadow); }
.bkx-search svg { width: 22px; height: 22px; margin-inline-start: 12px; color: var(--bk-muted); flex: none; }
.bkx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 4px; font: inherit; font-size: 1rem; color: var(--bk-text); }
.bkx-search .bk-btn { flex: none; min-height: 42px; }

.bkx-aurora { padding: 100px 0 76px; text-align: center; background: var(--bk-bg); border-bottom: 1px solid var(--bk-border); }
.bkx-aurora-in { position: relative; z-index: 1; display: grid; justify-items: center; }
.bkx-aurora h1 { font-size: clamp(2.2rem, 6.4vw, 4.2rem); background: linear-gradient(120deg, var(--bk-text) 10%, var(--bk-accent) 55%, var(--bk-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bkx-aurora .bkx-sub { margin-inline: auto; }
.bkx-aurora .bkx-cta { justify-content: center; }
.bkx-aurora .bkx-chips { justify-content: center; margin-top: 22px; }
.bkx-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: bk-drift 14s ease-in-out infinite alternate; }
.bkx-blob-a { width: 380px; height: 380px; background: var(--bk-accent); top: -140px; inset-inline-start: 6%; }
.bkx-blob-b { width: 320px; height: 320px; background: var(--bk-accent-2); bottom: -150px; inset-inline-end: 8%; animation-delay: -4s; }
.bkx-blob-c { width: 220px; height: 220px; background: color-mix(in srgb, var(--bk-accent) 50%, var(--bk-accent-2)); top: 30%; inset-inline-end: 38%; animation-delay: -8s; opacity: .35; }
@keyframes bk-drift { to { transform: translate(60px, 40px) scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .bkx-blob { animation: none; } }

.bkx-diag { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 480px; background: var(--bk-bg); border-bottom: 1px solid var(--bk-border); }
.bkx-diag-text { align-self: center; padding: 56px 24px 56px max(20px, calc((100vw - 1080px) / 2)); }
.bkx-diag h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.bkx-diag-visual { position: relative; background: linear-gradient(135deg, var(--bk-accent), var(--bk-accent-2)); clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%); min-height: 320px; overflow: hidden; }
.bkx-diag-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bkx-diag-shape { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.16); top: -20%; inset-inline-end: -10%; }
.bkx-float { position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--bk-surface); color: var(--bk-text); box-shadow: 0 18px 34px -14px rgba(0,0,0,.5); max-width: 220px; }
.bkx-float:hover { text-decoration: none; }
.bkx-float strong { font-size: 1.05rem; }
.bkx-float span { color: var(--bk-muted); font-size: .85rem; }
.bkx-float-a { bottom: 28px; inset-inline-start: 22%; }
.bkx-float-b { top: 30px; inset-inline-end: 8%; }
.bkx-float-b strong { font-size: 1.7rem; color: var(--bk-accent); line-height: 1.1; }

.bkx-bento { padding: 40px 0; background: var(--bk-bg); border-bottom: 1px solid var(--bk-border); }
.bkx-bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 12px; }
.bkx-tile { position: relative; overflow: hidden; border-radius: calc(var(--bk-radius) + 4px); padding: 20px; background: var(--bk-surface); border: 1px solid var(--bk-border); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.bkx-tile-main { grid-column: span 2; grid-row: span 2; padding: 34px 30px; background: linear-gradient(145deg, color-mix(in srgb, var(--bk-accent) 10%, var(--bk-surface)), var(--bk-surface)); align-items: flex-start; }
.bkx-bento h1 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.bkx-tile-item { padding: 0; justify-content: flex-end; color: #fff; background: linear-gradient(160deg, var(--bk-accent), color-mix(in srgb, var(--bk-accent) 50%, #000)); }
.bkx-tile-item-1 { background: linear-gradient(160deg, var(--bk-accent-2), color-mix(in srgb, var(--bk-accent-2) 50%, #000)); }
.bkx-tile-item:hover { text-decoration: none; }
.bkx-tile-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bkx-tile-cap { position: relative; display: grid; gap: 2px; padding: 34px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }
.bkx-tile-cap strong { font-size: .98rem; color: #fff; }
.bkx-tile-cap small { opacity: .88; }
.bkx-tile-stat { background: var(--bk-text); color: var(--bk-bg); align-items: flex-start; }
.bkx-tile-stat strong { font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--bk-accent-2); }
.bkx-tile-chips, .bkx-tile-info { grid-column: span 1; }
.bkx-tile-info { gap: 8px; color: var(--bk-text); font-weight: 700; }
.bkx-tile-info svg { width: 26px; height: 26px; color: var(--bk-accent); }
.bkx-tile-chips .bkx-chips a { padding: 5px 12px; font-size: .82rem; }

.bkx-stack { padding: 56px 0; background: var(--bk-bg); border-bottom: 1px solid var(--bk-border); }
.bkx-stack-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.bkx-stack h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.bkx-stack-list { display: grid; gap: 10px; }
.bkx-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--bk-radius); background: var(--bk-surface); border: 1px solid var(--bk-border); color: var(--bk-text); box-shadow: var(--bk-shadow); transition: transform .2s, border-color .2s; min-width: 0; }
.bkx-row:hover { text-decoration: none; border-color: var(--bk-accent); transform: translateX(-4px); }
.bkx-row-img { width: 62px; height: 62px; border-radius: 14px; overflow: hidden; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--bk-accent), var(--bk-accent-2)); color: rgba(255,255,255,.8); font-style: normal; font-weight: 900; font-size: 1.5rem; }
.bkx-row-img i { font-style: normal; }
.bkx-row-img img { width: 100%; height: 100%; object-fit: cover; }
.bkx-row-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bkx-row-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkx-row-body small { color: var(--bk-muted); }
.bkx-row-badge { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bk-accent) 14%, transparent); color: var(--bk-accent); font-size: .78rem; }
.bkx-row-arrow { width: 20px; height: 20px; color: var(--bk-muted); flex: none; }
.bkx-row-stat { justify-content: space-between; }
.bkx-row-stat strong { font-size: 1.8rem; color: var(--bk-accent); }

.bkx-ribbon { padding: 68px 0 0; background: var(--bk-bg); border-bottom: 1px solid var(--bk-border); }
.bkx-ribbon h1 { font-size: clamp(2.6rem, 8.4vw, 6rem); line-height: 1.08; letter-spacing: -.01em; max-width: 14ch; margin-bottom: 30px; }
.bkx-ribbon-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; padding-block: 20px; border-top: 2px solid var(--bk-text); }
.bkx-ribbon-bar .bkx-sub { margin: 0; flex: 1 1 320px; }
.bkx-ribbon-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; border-top: 1px solid var(--bk-border); }
.bkx-ribbon-stats div { padding: 18px 16px 22px; border-inline-start: 1px solid var(--bk-border); }
.bkx-ribbon-stats div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.bkx-ribbon-stats dt { color: var(--bk-muted); font-size: .85rem; font-weight: 700; }
.bkx-ribbon-stats dd { margin: 4px 0 0; font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 900; color: var(--bk-accent); line-height: 1.2; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .bkx-diag { grid-template-columns: 1fr; min-height: 0; }
  .bkx-diag-text { padding: 36px 20px 28px; }
  .bkx-diag-visual { clip-path: none; min-height: 250px; margin: 0 20px 28px; border-radius: 22px; }
  .bkx-float-a { inset-inline-start: 14px; bottom: 14px; }
  .bkx-float-b { top: 14px; inset-inline-end: 14px; }
  .bkx-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bkx-tile-main { grid-column: span 2; grid-row: auto; padding: 26px 20px; }
  .bkx-tile-chips, .bkx-tile-info { grid-column: span 2; }
  .bkx-stack-grid { grid-template-columns: 1fr; gap: 26px; }
  .bkx-aurora { padding: 56px 0 44px; }
  .bkx-ribbon { padding-top: 40px; }
  .bkx-ribbon-stats div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 520px) {
  .bkx-search .bk-btn { padding: 0 16px; }
  .bkx-search svg { display: none; }
  .bkx-cta .bk-btn { flex: 1 1 100%; }
}

/* =========================== sample notes (editor only) =========================== */
.bk-sample-note { max-width: 1040px; margin: -10px auto 16px; padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bk-accent) 10%, var(--bk-surface)); color: var(--bk-muted); font-size: .8rem; text-align: center; border: 1px dashed color-mix(in srgb, var(--bk-accent) 40%, var(--bk-border)); }

/* =========================== blog (home block + the blog's own pages) =========================== */
.bk-bl-head, .bk-sl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.bk-bl-head .bk-h2, .bk-sl-head .bk-h2 { margin: 0; }
.bk-bl-sub, .bk-sl-sub { margin: 4px 0 0; color: var(--bk-muted); font-size: .92rem; }
.bk-bl-more, .bk-sl-more { margin-top: 0; white-space: nowrap; }
.bk-bl a:not(.bk-btn):not(.bk-more), .bk-sl a:not(.bk-btn):not(.bk-more) { text-decoration: none; color: inherit; }
.bk-bl a, .bk-sl a { text-decoration: none; }
.bk-bl-img { display: block; width: 100%; height: 100%; object-fit: cover; background: color-mix(in srgb, var(--bk-accent) 10%, var(--bk-surface)); }
.bk-bl-ph { display: grid; place-items: center; color: color-mix(in srgb, var(--bk-accent) 70%, var(--bk-muted)); background: linear-gradient(135deg, color-mix(in srgb, var(--bk-accent) 14%, var(--bk-surface)), color-mix(in srgb, var(--bk-accent-2) 14%, var(--bk-surface))); }
.bk-bl-ph svg { width: 34px; height: 34px; }
.bk-bl-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bk-bl-body > strong { font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.bk-bl-sum { color: var(--bk-muted); font-size: .88rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-bl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--bk-muted); font-size: .78rem; }
.bk-bl-meta span + span::before { content: '·'; margin-inline-end: 12px; }

.bk-bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--bk-gap); }
.bk-bl-card { display: flex; flex-direction: column; background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius); overflow: hidden; box-shadow: var(--bk-shadow); transition: transform .18s ease; }
.bk-bl-card:hover { transform: translateY(-3px); }
.bk-bl-card > .bk-bl-img { aspect-ratio: 16 / 10; height: auto; }
.bk-bl-card .bk-bl-body { padding: 14px 16px 16px; }

.bk-bl-feat { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--bk-gap); }
.bk-bl-big { position: relative; display: block; min-height: 340px; border-radius: var(--bk-radius); overflow: hidden; isolation: isolate; }
.bk-bl-big > .bk-bl-img { position: absolute; inset: 0; z-index: -2; }
.bk-bl-big::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.05) 65%); }
.bk-bl-over { position: absolute; inset-inline: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.bk-bl-over > strong { font-size: 1.25rem; line-height: 1.6; }
.bk-bl-over .bk-bl-sum, .bk-bl-over .bk-bl-meta { color: rgba(255,255,255,.85); }
.bk-bl-side { display: flex; flex-direction: column; gap: var(--bk-gap); }
.bk-bl-side > .bk-bl-row { flex: 1; }
.bk-bl-row { display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius); }
.bk-bl-row > .bk-bl-img { flex: none; width: 104px; height: 84px; border-radius: calc(var(--bk-radius) - 4px); }
.bk-bl-rows { display: flex; flex-direction: column; gap: 12px; }
.bk-bl-list .bk-bl-row { align-items: flex-start; }
.bk-bl-list .bk-bl-row > .bk-bl-img { width: 132px; height: 100px; }

.bk-bl-lines { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.bk-bl-lines li { border-top: 1px solid var(--bk-border); }
.bk-bl-lines li:last-child { border-bottom: 1px solid var(--bk-border); }
.bk-bl-lines a { display: flex; align-items: baseline; gap: 16px; padding: 18px 4px; transition: padding .18s ease, color .18s ease; }
.bk-bl-lines a:hover { color: var(--bk-accent); padding-inline-start: 12px; }
.bk-bl-no { flex: none; font-size: 1.6rem; font-weight: 900; color: var(--bk-accent); min-width: 2ch; font-variant-numeric: tabular-nums; }
.bk-bl-lines .bk-bl-body { flex: 1; }
.bk-bl-date { flex: none; color: var(--bk-muted); font-size: .8rem; }

.bk-bl-track { display: flex; gap: var(--bk-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, calc((100% - 1040px) / 2)) 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.bk-bl-track .bk-bl-card { flex: 0 0 min(78vw, 290px); scroll-snap-align: center; }

@media (max-width: 760px) {
  .bk-bl-feat { grid-template-columns: 1fr; }
  .bk-bl-big { min-height: 260px; }
  .bk-bl-list .bk-bl-row > .bk-bl-img, .bk-bl-row > .bk-bl-img { width: 96px; height: 80px; }
  .bk-bl-no { font-size: 1.25rem; }
  .bk-bl-lines a { flex-wrap: wrap; gap: 4px 12px; }
  .bk-bl-date { width: 100%; padding-inline-start: calc(2ch + 12px); }
}

/* the blog's own pages (Blog/Index, Blog/Details) — shared by the three templates */
.bk-bp { padding: 36px 0 56px; }
.bk-bp-head { margin-bottom: 26px; }
.bk-bp-head h1 { margin: 0 0 6px; }
.bk-bp-head p { margin: 0; color: var(--bk-muted); }
.bk-bp-empty { text-align: center; color: var(--bk-muted); padding: 48px 0; }
.bk-bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--bk-gap); }
html[data-o-blog-pagelayout="magazine"] .bk-bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-o-blog-pagelayout="magazine"] .bk-bp-grid > :first-child { grid-column: 1 / -1; }
html[data-o-blog-pagelayout="magazine"] .bk-bp-grid > :first-child .bk-bl-img { aspect-ratio: 21 / 9; }
html[data-o-blog-pagelayout="list"] .bk-bp-grid { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
html[data-o-blog-pagelayout="list"] .bk-bp-grid .bk-bl-card { flex-direction: row; align-items: stretch; }
html[data-o-blog-pagelayout="list"] .bk-bp-grid .bk-bl-card > .bk-bl-img { flex: none; width: 240px; aspect-ratio: auto; min-height: 150px; }
@media (max-width: 640px) {
  html[data-o-blog-pagelayout="magazine"] .bk-bp-grid { grid-template-columns: 1fr; }
  html[data-o-blog-pagelayout="list"] .bk-bp-grid .bk-bl-card > .bk-bl-img { width: 110px; min-height: 110px; }
}
.bk-bp-pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.bk-bp-pager a, .bk-bp-pager span { min-width: 40px; min-height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--bk-border); background: var(--bk-surface); text-decoration: none; color: inherit; }
.bk-bp-pager .on { background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; }

.bk-post { padding: 28px 0 56px; }
.bk-post-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.bk-post-back { display: inline-flex; margin-bottom: 14px; color: var(--bk-accent); font-weight: 700; text-decoration: none; }
.bk-post h1 { margin: 0 0 10px; line-height: 1.5; }
.bk-post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--bk-muted); font-size: .85rem; margin-bottom: 20px; }
.bk-post-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bk-radius); margin-bottom: 24px; background: color-mix(in srgb, var(--bk-accent) 8%, var(--bk-surface)); }
.bk-post-body { line-height: 2.1; font-size: 1.02rem; white-space: pre-line; overflow-wrap: anywhere; }
html[data-o-blog-postlayout="hero"] .bk-post-heroimg { margin: 0 0 28px; position: relative; }
html[data-o-blog-postlayout="hero"] .bk-post-heroimg .bk-post-cover { aspect-ratio: 21 / 9; border-radius: 0; margin: 0; max-height: 46vh; }
html[data-o-blog-postlayout="hero"] .bk-post-heroimg + .bk-post-wrap h1 { font-size: 1.9rem; }
html[data-o-blog-postlayout="narrow"] .bk-post-wrap { max-width: 640px; }
html[data-o-blog-postlayout="narrow"] .bk-post h1 { font-size: 2rem; text-align: center; }
html[data-o-blog-postlayout="narrow"] .bk-post-meta { justify-content: center; }
html[data-o-blog-postlayout="narrow"] .bk-post-body { font-size: 1.1rem; }
.bk-post-related { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--bk-border); }
.bk-post-related h2 { font-size: 1.1rem; margin: 0 0 14px; }

/* =========================== sale (روز فروش / تخفیف / شگفت‌انگیز) =========================== */
.bk-sl-title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bk-sl-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bk-sl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px; background: color-mix(in srgb, #ef4444 14%, var(--bk-surface)); color: #dc2626; font-weight: 800; font-size: .78rem; }
.bk-sl-badge svg { width: 14px; height: 14px; }
.bk-cd { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; direction: ltr; }
.bk-cd b { min-width: 2.3ch; padding: 6px 7px; border-radius: 9px; background: var(--bk-text); color: var(--bk-bg); text-align: center; font-size: .95rem; line-height: 1; }
.bk-cd i { font-style: normal; font-weight: 900; color: var(--bk-muted); }
.bk-sl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--bk-gap); }
.bk-sl-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius); transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.bk-sl-card:hover { transform: translateY(-3px); box-shadow: var(--bk-shadow); }
.bk-sl-pic { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: calc(var(--bk-radius) - 4px); overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--bk-accent) 12%, var(--bk-surface)), color-mix(in srgb, var(--bk-accent-2) 12%, var(--bk-surface))); }
.bk-sl-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-sl-ph { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--bk-accent) 65%, var(--bk-muted)); }
.bk-sl-ph svg { width: 40px; height: 40px; }
.bk-sl-off { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; padding: 3px 9px; border-radius: 999px; background: #ef4444; color: #fff; font-weight: 800; font-size: .78rem; }
.bk-sl-name { font-weight: 700; line-height: 1.6; font-size: .92rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-sl-price { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.bk-sl-price s { color: var(--bk-muted); font-size: .78rem; }
.bk-sl-price b { color: var(--bk-text); font-size: .95rem; }

.bk-sl-strip .bk-sl-panel { padding: 22px; border-radius: calc(var(--bk-radius) + 6px); background: linear-gradient(135deg, color-mix(in srgb, #ef4444 9%, var(--bk-surface)), var(--bk-surface)); border: 1px solid color-mix(in srgb, #ef4444 22%, var(--bk-border)); }
.bk-sl-track { display: flex; gap: var(--bk-gap); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.bk-sl-track .bk-sl-card { flex: 0 0 min(44vw, 190px); scroll-snap-align: start; }

.bk-sl-split { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: var(--bk-gap); align-items: stretch; }
.bk-sl-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 26px 22px; border-radius: calc(var(--bk-radius) + 6px); background: linear-gradient(150deg, #ef4444, color-mix(in srgb, #ef4444 45%, var(--bk-accent))); color: #fff; }
.bk-sl-hero h2 { margin: 0; color: #fff; }
.bk-sl-hero p { margin: 0; color: rgba(255,255,255,.9); }
.bk-sl-hero .bk-sl-badge { background: rgba(255,255,255,.2); color: #fff; }
.bk-sl-hero .bk-cd b { background: #fff; color: #b91c1c; }
.bk-sl-hero .bk-cd i { color: rgba(255,255,255,.8); }
.bk-sl-banner .bk-sl-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }

.bk-sl-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bk-sl-rows a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bk-surface); border: 1px solid var(--bk-border); border-radius: var(--bk-radius); }
.bk-sl-rows .bk-sl-name { flex: 1; min-width: 0; -webkit-line-clamp: 1; }
.bk-sl-rows .bk-sl-price { margin: 0; align-items: flex-end; text-align: end; }
.bk-sl-pct { flex: none; min-width: 52px; text-align: center; padding: 6px 8px; border-radius: 10px; background: #ef4444; color: #fff; font-weight: 800; font-size: .85rem; }

.bk-sl-spot .bk-spot-bg { padding: 34px 0; background: radial-gradient(120% 140% at 85% -10%, color-mix(in srgb, #ef4444 38%, #0b0f1a), #0b0f1a 62%); color: #fff; }
.bk-sl-spot .bk-sl-sub { color: rgba(255,255,255,.75); }
.bk-sl-spot .bk-sl-badge { background: rgba(255,255,255,.14); color: #fff; }
.bk-sl-spot .bk-cd b { background: #fff; color: #111827; }
.bk-sl-spot .bk-cd i { color: rgba(255,255,255,.7); }
.bk-sl-spot .bk-more { color: #fff; }
.bk-sl-spot .bk-sl-card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; }
.bk-sl-spot .bk-sl-price s { color: rgba(255,255,255,.6); } .bk-sl-spot .bk-sl-price b { color: #fff; }

@media (max-width: 760px) {
  .bk-sl-split { grid-template-columns: 1fr; }
  .bk-sl-strip .bk-sl-panel { padding: 16px 14px; }
  .bk-sl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-sl-head { align-items: flex-start; }
  .bk-sl-tools { width: 100%; justify-content: space-between; }
}
.bk-post-heroimg { max-width: 760px; margin: 0 auto 20px; padding: 0 20px; }
html[data-o-blog-postlayout="hero"] .bk-post-heroimg { max-width: none; padding: 0; }
html[data-o-blog-postlayout="narrow"] .bk-post-heroimg { max-width: 640px; }
.bk-sl-spot .bk-h2, .bk-sl-spot h2 { color: #fff; }
@media (max-width: 640px) { .bk-bl-card > .bk-bl-img { aspect-ratio: 16 / 9; } }

/* =========================== the bottom stack ===========================
   Everything the page pins to the bottom edge — an app tab bar / floating dock (header designs), the floating contact bar, the
   live-chat bar, round buttons — is stacked by these variables instead of each piece guessing where the others are. They
   decide the offset of every pinned piece AND the padding under the page, so the last line of text is never under a bar. */
body { --bk-safe: env(safe-area-inset-bottom, 0px); --bk-tab: 0px; --bk-flbar: 0px; --bk-chatbar: 0px; --bk-same: 0px; --bk-fab: 0px; }
/* a round / pill button floating over the page needs the last lines of the page to be able to scroll clear of it */
body:has(.bk-fl:not(.bk-fl-bar):not(.bk-fl-tab), .ec-chat-widget:not([data-chat-style="bar"]):not([data-chat-style="tab"]):not([data-chat-preview])) { --bk-fab: 76px; }
body:has(.bkh-dock) { --bk-tab: calc(88px + var(--bk-safe)); }
body:has(.bk-fl-bar) { --bk-flbar: calc(54px + var(--bk-safe)); }
body:has(.bk-fl-bar):has(.bkh-dock) { --bk-flbar: 54px; }
body:has(.ec-chat-widget[data-chat-style="bar"]:not([data-chat-preview])) { --bk-chatbar: 64px; }
@media (max-width: 720px) {
  body:has(.ec-tabbar), body:has(.rt-actionbar) { --bk-tab: calc(60px + var(--bk-safe)); }
  body:has(.bk-fl-bar):has(.ec-tabbar), body:has(.bk-fl-bar):has(.rt-actionbar) { --bk-flbar: 54px; }
}
@media (min-width: 721px) { body:has(.bk-fl-bar) { --bk-flbar: 0px; } }   /* on a desktop the contact bar is a small pill in the corner */

/* page padding = everything pinned full-width at the bottom */
body:not(.bk-never):has(.bkh-dock, .bk-fl, .bk-fl-bar, .ec-chat-widget:not([data-chat-preview]), .ec-tabbar, .rt-actionbar) { padding-bottom: calc(var(--bk-tab) + var(--bk-flbar) + var(--bk-chatbar) + var(--bk-fab)); }

/* floating contact: bar / round buttons sit above the tab bar and the chat bar */
body:not(.bk-never) .bk-fl-bar { bottom: var(--bk-tab); }
body:not(.bk-never) .bk-fl:not(.bk-fl-bar):not(.bk-fl-tab) { bottom: calc(16px + var(--bk-safe) * 0 + var(--bk-tab) + var(--bk-chatbar) + var(--bk-same)); }
@media (min-width: 721px) { body:not(.bk-never) .bk-fl-bar { bottom: calc(16px + var(--bk-tab)); } }
@media (max-width: 720px) { body:not(.bk-never):not(:has(.ec-tabbar, .rt-actionbar, .bkh-dock)) .bk-fl:not(.bk-fl-bar):not(.bk-fl-tab) { bottom: calc(16px + var(--bk-safe) + var(--bk-chatbar) + var(--bk-same)); } }

/* a round / pill launcher of the live chat on the SAME side as the round floating button: float it above */
body:has(.ec-chat-widget:not([data-chat-style="bar"]):not([data-chat-style="tab"])):not(.bk-never) { --bk-same: 0px; }
html[data-o-floating-side="start"] body:has(.ec-chat-widget:not([data-chat-style="bar"]):not([data-chat-style="tab"])) { --bk-same: 76px; }
html[data-o-chat-side="end"]:not([data-o-floating-side="start"]) body:has(.ec-chat-widget:not([data-chat-style="bar"]):not([data-chat-style="tab"])) { --bk-same: 76px; }
html[data-o-chat-side="end"][data-o-floating-side="start"] body, html[data-o-floating-side="start"][data-o-chat-side="end"] body { --bk-same: 0px; }
.bk-fl-tab { bottom: auto; }

/* chat widget: above the tab bar and the contact bar */
body:not(.bk-never) .ec-chat-widget[data-chat-style="bar"] { bottom: calc(var(--bk-tab) + var(--bk-flbar)); inset-block-end: calc(var(--bk-tab) + var(--bk-flbar)); }
body:not(.bk-never) .ec-chat-widget:not([data-chat-style="bar"]):not([data-chat-style="tab"]) { inset-block-end: calc(20px + var(--bk-tab) + var(--bk-flbar)); }
@media (max-width: 640px) { body:not(.bk-never) .ec-chat-widget:not([data-chat-style="bar"]):not([data-chat-style="tab"]) { inset-block-end: calc(14px + var(--bk-safe) * (1 - 1) + var(--bk-tab) + var(--bk-flbar)); } body:not(.bk-never):not(:has(.ec-tabbar, .bkh-dock, .bk-fl-bar)) .ec-chat-widget:not([data-chat-style="bar"]):not([data-chat-style="tab"]) { inset-block-end: calc(14px + var(--bk-safe)); } }
body:has(.ec-chat-widget[data-chat-style="bar"]):has(.ec-tabbar, .rt-actionbar, .bkh-dock) .ec-chat-widget[data-chat-style="bar"] .ec-chat-toggle { padding-bottom: 12px; border-radius: 16px 16px 0 0; }

/* back-to-top: above everything else that is pinned */
body:not(.bk-never) .ec-totop { bottom: calc(18px + var(--bk-safe) + var(--bk-tab) + var(--bk-flbar) + var(--bk-chatbar)); }
body:has(.bk-fl:not(.bk-fl-bar):not(.bk-fl-tab)):not(.bk-never) .ec-totop { bottom: calc(86px + var(--bk-safe) + var(--bk-tab) + var(--bk-chatbar)); }
/* the template's global input rule is very specific (five :not()s); the header search needs its own padding for the icon */
.bkh-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]) { padding-block: 0; padding-inline: 38px 14px; min-height: 40px; }
