/* Brightpage site chrome: the header and its phone menu, the footer's extras, and editor helpers.
   Works with sites.css (Heedlight's site styles) and the theme variables on .bp-site. */
.bp-site { font-family: var(--site-font, ui-sans-serif, system-ui, sans-serif); min-height: 100vh; display: flex; flex-direction: column; }
.bp-site h1, .bp-site h2, .bp-site h3 { font-family: var(--site-heading-font, inherit); }
.bp-site main { flex: 1; }
.bp-site img { max-width: 100%; height: auto; }

.bp-header { position: relative; z-index: 20; background: var(--site-bg, #fff); border-bottom: 1px solid color-mix(in srgb, var(--site-primary, #16324f) 10%, transparent); }
.bp-header--sticky { position: sticky; top: 0; backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--site-bg, #fff) 86%, transparent); }
.bp-header__inner { max-width: var(--d-content-width, 1200px); margin: 0 auto; padding: 0 var(--d-gutter-fluid, 20px); min-height: var(--d-header-height, 72px); display: flex; align-items: center; gap: 24px; }
.bp-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--site-primary, #16324f); margin-right: auto; min-height: 44px; }
.bp-header__logo { height: var(--d-logo-height, 40px); width: auto; }
.bp-header__wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.bp-header__wordmark strong { font-family: var(--site-heading-font, inherit); font-size: 1.2rem; }
.bp-header__wordmark small { font-size: 0.8rem; opacity: 0.75; }
.bp-header--centered .bp-header__inner { flex-direction: column; justify-content: center; padding-top: 14px; padding-bottom: 14px; gap: 10px; }
.bp-header--centered .bp-header__brand { margin: 0; }

.bp-nav > summary { display: none; list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.bp-nav > summary::-webkit-details-marker { display: none; }
.bp-nav > summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--site-primary, #16324f); }
.bp-nav > nav { display: flex; align-items: center; gap: var(--d-menu-gap, 24px); }
.bp-menu { display: flex; flex-wrap: wrap; gap: var(--d-menu-gap, 22px); list-style: none; margin: 0; padding: 0; }
.bp-menu a { color: var(--site-primary, #16324f); text-decoration: none; font-size: var(--d-menu-size, 0.98rem); font-weight: var(--d-menu-weight, 500); padding: 10px 0; display: inline-block; }
.bp-menu a:hover, .bp-menu a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--site-accent, #86653a); }
/* Without JS the menu is always open on wide screens; details is forced open by sites.js there. */
@media (min-width: 821px) { .bp-nav:not([open]) > nav { display: flex; } }
@media (max-width: 820px) {
  .bp-nav > summary { display: flex; }
  .bp-nav > nav { display: none; }
  .bp-nav[open] > nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--d-gutter-fluid, 20px) 20px; background: var(--site-bg, #fff); border-bottom: 1px solid color-mix(in srgb, var(--site-primary, #16324f) 12%, transparent); box-shadow: 0 18px 30px -24px rgb(0 0 0 / 0.35); }
  .bp-nav[open] .bp-menu { flex-direction: column; gap: 0; }
  .bp-nav[open] .bp-menu a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .bp-nav[open] .bp-header__button { text-align: center; margin-top: 8px; }
  .bp-header--centered .bp-header__inner { flex-direction: row; }
}

.bp-footer__socials { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.bp-footer__socials a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; color: inherit; }
.bp-footer__socials a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.bp-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.bp-badge, .bp-report { color: inherit; opacity: 0.75; font-size: 0.85em; }
.bp-badge:hover, .bp-report:hover { opacity: 1; }

.bp-preview { position: sticky; top: 0; z-index: 50; background: #17181C; color: #fff; text-align: center; padding: 8px 16px; font: 600 14px/1.4 ui-sans-serif, system-ui, sans-serif; }
.bp-sample { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: #17181C; color: #fff; padding: 8px 16px; font: 600 14px/1.4 ui-sans-serif, system-ui, sans-serif; }
.bp-sample a { color: #fff; text-decoration: none; }
.bp-sample a:hover { text-decoration: underline; }
.bp-sample span { color: #B8BAC2; font-weight: 500; }
.bp-sample .bp-sample__use { background: #F2C14E; color: #17181C; padding: 6px 14px; border-radius: 8px; }
.bp-sample .bp-sample__use:hover { text-decoration: none; filter: brightness(1.05); }
@media (max-width: 560px) { .bp-sample span { display: none; } }
.bp-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bp-placeholder { display: grid; place-items: center; min-height: 180px; border: 2px dashed color-mix(in srgb, currentColor 25%, transparent); border-radius: var(--site-box-radius, 8px); color: color-mix(in srgb, currentColor 60%, transparent); font-weight: 600; }
.bp-form__thanks[hidden] { display: none; }
.bp-form__error { color: #A3360A; font-weight: 600; }
.cf-turnstile { margin: 8px 0; }

/* The editor: a click on a block selects it. */
[data-editor] .bp-block { cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color 0.15s; }
[data-editor] .bp-block:hover { outline-color: color-mix(in srgb, #2450D8 45%, transparent); }
[data-editor] .bp-block.is-selected { outline-color: #2450D8; }

.bp-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #17181C; color: #fff; border-radius: 14px; padding: 14px 16px; font: 15px/1.45 ui-sans-serif, system-ui, sans-serif; box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.5); }
.bp-cookie p { margin: 0; flex: 1 1 240px; }
.bp-cookie button { font: inherit; font-weight: 700; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; cursor: pointer; background: #FFC83D; color: #17181C; }
.bp-cookie button + button { background: transparent; color: #fff; border: 1px solid #4A4B52; }

/* Two-language sites: the switch to the other language, next to the menu (always in view on phones). */
.bp-lang { color: var(--site-primary, #16324f); font-size: var(--d-menu-size, 0.98rem); font-weight: 600; text-decoration: none; padding: 10px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--site-primary, #16324f) 22%, transparent); white-space: nowrap; line-height: 1; }
.bp-lang:hover { background: color-mix(in srgb, var(--site-primary, #16324f) 8%, transparent); }
@media (max-width: 820px) { .bp-header__inner:has(.bp-lang) { gap: 10px; } .bp-lang { padding: 9px 10px; font-size: 0.9rem; } }
