/* Theme kit: "Bridge Moderne" (Nurmi Isles). Late-1940s Florida Moderne, after the Nurmi Isles bridges (Moderne
   pedestals, urns and lettering) and the white-stucco, glass-and-circular-window houses of the period: white stucco
   paper, aubergine-charcoal ink, bougainvillea plum, flamingo pink and cobalt. Streamline "speed lines" (three thin
   parallel rules) under the header, on H2s and above the footer; a light stucco hero with a centered, wide-tracked
   uppercase headline over a stepped "bridge pedestal" plate; cards with one sweeping Moderne corner; a stats strip
   divided by speed lines. Josefin Sans headings and labels, Lora body.
   Loaded only on sites whose config sets themeKit.name = 'bridge-moderne' (Base.astro); every rule is scoped to
   html[data-theme="bridge-moderne"], so other sites are unaffected even if this file were loaded.
   Fonts: SIL Open Font License 1.1 (see fonts/OFL-*.txt), self-hosted from @fontsource. */
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/josefin-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/josefin-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/josefin-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/lora-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/lora-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/lora-latin-600-normal.woff2) format('woff2'); }

html[data-theme="bridge-moderne"] {
  /* Headings use the geometric sans; body copy the serif (the reverse of the other kits). */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Josefin Sans', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --display: 'Josefin Sans', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --radius: 2px; --radius-sm: 2px; --sweep: 28px;
  --surface: #fffdfa;
  --cobalt: #2b4a8c;
  --speed: linear-gradient(var(--coral), var(--coral)) 0 0 / 100% 2px no-repeat,
           linear-gradient(var(--coral), var(--coral)) 0 6px / 100% 2px no-repeat,
           linear-gradient(var(--coral), var(--coral)) 0 12px / 100% 2px no-repeat;
  --shadow: 0 1px 0 var(--line), 0 16px 26px -24px rgba(35, 31, 38, .45);
}
html[data-theme="bridge-moderne"] body { background: var(--paper); font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; }
html[data-theme="bridge-moderne"] h1, html[data-theme="bridge-moderne"] h2, html[data-theme="bridge-moderne"] h3 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; line-height: 1.15; }
html[data-theme="bridge-moderne"] h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
html[data-theme="bridge-moderne"] .main h2 { position: relative; padding-top: 1.35rem; }
html[data-theme="bridge-moderne"] .main h2::before { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 14px; background: var(--speed); }
html[data-theme="bridge-moderne"] h3 { font-weight: 700; }
html[data-theme="bridge-moderne"] .eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--coral-deep); }
html[data-theme="bridge-moderne"] .answer { font: italic 400 1.14rem/1.7 var(--serif); }
html[data-theme="bridge-moderne"] a { text-underline-offset: .18em; }
html[data-theme="bridge-moderne"] a:hover { text-decoration-color: var(--sun); }

/* Header: stucco bar over three flamingo speed lines */
html[data-theme="bridge-moderne"] .site-header { background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: 0; box-shadow: none; }
html[data-theme="bridge-moderne"] .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: var(--speed); opacity: .9; pointer-events: none; }
html[data-theme="bridge-moderne"] .site-header__title { font: 700 1.12rem/1.1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
html[data-theme="bridge-moderne"] .primary-nav a { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; font-size: .86rem; }
@media (min-width: 1280px) { html[data-theme="bridge-moderne"] .primary-nav a { font-size: .78rem; letter-spacing: 0; } html[data-theme="bridge-moderne"] .site-header__title { letter-spacing: .08em; } }
@media (min-width: 1280px) and (max-width: 1339px) { html[data-theme="bridge-moderne"] .primary-nav ul { gap: .55rem; } html[data-theme="bridge-moderne"] .primary-nav a { font-size: .74rem; } html[data-theme="bridge-moderne"] .site-header__title { font-size: 1rem; letter-spacing: .05em; } }
html[data-theme="bridge-moderne"] .primary-nav a:hover { border-bottom-color: var(--coral); }
html[data-theme="bridge-moderne"] .primary-nav a[aria-current="page"] { border-bottom-color: var(--sun); color: var(--ink); }

/* Buttons: plum with an inset stucco hairline (Moderne double border); hover charcoal */
html[data-theme="bridge-moderne"] .btn { color: #fff; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .14em; font: 700 .84rem/1 var(--sans); padding: 1rem 1.5rem .9rem; box-shadow: inset 0 0 0 3px var(--sun), inset 0 0 0 4px rgba(255, 253, 250, .7); }
html[data-theme="bridge-moderne"] .btn:hover { color: #fff; transform: none; box-shadow: inset 0 0 0 3px var(--sun-hover), inset 0 0 0 4px rgba(255, 253, 250, .7); }
html[data-theme="bridge-moderne"] .btn--small { color: #fff !important; border-radius: var(--radius-sm); }
html[data-theme="bridge-moderne"] .btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
html[data-theme="bridge-moderne"] .btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }

/* Tables: stucco with a double plum rule on top */
html[data-theme="bridge-moderne"] .table-wrap, html[data-theme="bridge-moderne"] table { background: var(--surface); }
html[data-theme="bridge-moderne"] .table-wrap { border: 1px solid var(--line); border-top: 4px double var(--sun); }
html[data-theme="bridge-moderne"] .prose table { border: 1px solid var(--line); border-top: 4px double var(--sun); }
html[data-theme="bridge-moderne"] th { background: var(--paper-alt); color: var(--ink); font: 700 .78rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; }

/* Cards: one sweeping Moderne corner (top right), speed lines along the top */
html[data-theme="bridge-moderne"] .card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--sweep) var(--radius) var(--radius); padding: 1.9rem 1.35rem 1.35rem; box-shadow: var(--shadow); }
html[data-theme="bridge-moderne"] .card::before { content: ""; display: block; position: absolute; top: .7rem; left: 1.35rem; width: 46px; height: 14px; background: var(--speed); border-radius: 0; }
html[data-theme="bridge-moderne"] .card h3, html[data-theme="bridge-moderne"] .card h2 { margin-top: .5rem; }
html[data-theme="bridge-moderne"] a.card:hover { border-color: var(--sun); transform: translateY(-2px); }
html[data-theme="bridge-moderne"] .note { border-left: 0; border-top: 4px double var(--sun); background: var(--paper-alt); border-radius: 0 var(--sweep) 0 0; }
html[data-theme="bridge-moderne"] .from-blog, html[data-theme="bridge-moderne"] .related-guides { border-left: 0; border-top: 4px double var(--coral); background: var(--paper-alt); border-radius: 0 var(--sweep) 0 0; }
html[data-theme="bridge-moderne"] .faq details { background: var(--surface); border-radius: var(--radius) var(--sweep) var(--radius) var(--radius); border: 1px solid var(--line); }
html[data-theme="bridge-moderne"] .faq summary { font: 600 1.08rem/1.4 var(--display); letter-spacing: .01em; }
html[data-theme="bridge-moderne"] .faq summary::marker { color: var(--sun); }
html[data-theme="bridge-moderne"] .lead, html[data-theme="bridge-moderne"] .listing, html[data-theme="bridge-moderne"] .post-list__item { background: var(--surface); border-radius: var(--radius) var(--sweep) var(--radius) var(--radius); }
html[data-theme="bridge-moderne"] .lead input, html[data-theme="bridge-moderne"] .lead select, html[data-theme="bridge-moderne"] .lead textarea, html[data-theme="bridge-moderne"] .sort select { border-color: #77707b; border-radius: var(--radius-sm); }
html[data-theme="bridge-moderne"] .listing__price { font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
html[data-theme="bridge-moderne"] .seg { border-radius: var(--radius-sm); }
html[data-theme="bridge-moderne"] .seg button[aria-selected="true"] { background: var(--sun); color: #fff; }
html[data-theme="bridge-moderne"] .listing-dialog::backdrop { background: rgba(35, 31, 38, .72); }

/* CTA + footer: aubergine, with speed lines on top */
html[data-theme="bridge-moderne"] .wave { display: none; }
html[data-theme="bridge-moderne"] .cta { background: var(--deep); border-radius: var(--radius) var(--sweep) var(--radius) var(--radius); box-shadow: none; }
html[data-theme="bridge-moderne"] .site-footer { position: relative; margin-top: 3.4rem; background: var(--deep); border-top: 0; padding-top: 3.4rem; }
html[data-theme="bridge-moderne"] .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 14px; background: var(--speed); }
html[data-theme="bridge-moderne"] .site-footer .bmls-logo { background: #fff; padding: 3px 6px; border-radius: 2px; box-sizing: content-box; }
html[data-theme="bridge-moderne"] .footer-h { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Editorial hero (home.heroVariant = 'editorial'): light stucco, centered headline, pedestal plate ---------- */
.hx { background: var(--paper); color: var(--ink); position: relative; padding-top: 1.6rem; }
.hx__grid { display: grid; gap: 0; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 960px) { .hx__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: end; min-height: 560px; } }
.hx__copy { padding: 2.2rem 0 1.6rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 960px) { .hx__copy { padding: 3.2rem 0 3.4rem; } }
.hx__kicker { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font: 700 .78rem/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--coral-deep); margin: 0 0 1.3rem; }
.hx__kicker span + span::before { content: ""; display: inline-block; width: 22px; height: 8px; margin-right: 1rem; vertical-align: 1px; background: linear-gradient(var(--coral), var(--coral)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--coral), var(--coral)) 0 6px / 100% 2px no-repeat; }
.hx__title { font-family: var(--display) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .08em !important; font-size: clamp(2.7rem, 7vw, 5.2rem) !important; margin: 0 0 1.3rem !important; line-height: .95 !important; color: var(--ink) !important; }
.hx__title span { display: block; color: var(--sun); letter-spacing: .2em; }
.hx .answer { max-width: 52ch; color: var(--ink); }
.hx__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .9rem; }
/* Stepped "bridge pedestal" plate: stepped Moderne top, plum field, flamingo base band */
.hx__plate { position: relative; margin: 0 auto 2.4rem; width: min(88vw, 440px); aspect-ratio: 1; background: var(--deep); color: var(--on-deep); overflow: hidden;
  clip-path: polygon(0 12%, 8% 12%, 8% 6%, 18% 6%, 18% 0, 82% 0, 82% 6%, 92% 6%, 92% 12%, 100% 12%, 100% 100%, 0 100%); }
.hx__plate::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--coral); }
@media (min-width: 960px) { .hx__plate { margin: 2.4rem 0 0; width: 100%; max-width: 460px; justify-self: end; } }
.hx__plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx__plate figcaption { position: absolute; left: 10%; right: 10%; bottom: 5%; text-align: center; font: 600 .72rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep); margin: 0; }
.hx__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem 2.6rem; border-top: 4px double var(--sun); }
@media (min-width: 760px) { .hx__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hx__stat { margin: 0; padding: 1.3rem 1.1rem 1.1rem 1.5rem; position: relative; }
.hx__stat::before { content: ""; position: absolute; left: 0; top: 1.3rem; bottom: 1.1rem; width: 8px; background: linear-gradient(90deg, var(--coral) 0 2px, transparent 2px 3px, var(--coral) 3px 5px, transparent 5px 6px, var(--coral) 6px 8px); }
.hx__stat dt { font: 700 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.hx__stat dd { margin: .5rem 0 0; font: italic 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--serif); color: var(--ink); }
.hx__stat dd small { display: block; font: 400 .8rem/1.35 var(--serif); font-style: normal; color: var(--ink-soft); margin-top: .45rem; }
/* Prose tables fill the column on wider screens (global CSS keeps them display:block for mobile scrolling). */
@media (min-width: 720px) {
  html[data-theme="bridge-moderne"] .prose table { display: table; width: 100%; border-collapse: separate; border-spacing: 0; }
}

/* Preview-only [VERIFY] marks: let long ones wrap so they never widen the page on phones. */
html[data-theme="bridge-moderne"] mark.verify { white-space: normal; display: inline; line-height: 1.5; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* About Glen: bridge-moderne = stucco panel with one sweeping corner and speed lines; pedestal-stepped photo base. */
html[data-theme="bridge-moderne"] .about-glen { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--sweep) var(--radius) var(--radius); box-shadow: inset 0 3px 0 var(--deep), inset 0 6px 0 var(--surface), inset 0 7px 0 var(--deep); }
html[data-theme="bridge-moderne"] .about-glen .about-glen__photo img { border-radius: var(--radius) var(--sweep) var(--radius) var(--radius); border: 0; box-shadow: 0 10px 0 -2px var(--deep), 0 14px 0 -2px var(--coral); }
html[data-theme="bridge-moderne"] .about-glen__line { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; }
html[data-theme="bridge-moderne"] .about-glen__media .about-glen__line { border-left: 0; padding: 1.1rem 0 0; background: var(--speed); background-size: 72px 2px; }
html[data-theme="bridge-moderne"] .about-glen-contact__card { border-radius: var(--radius) var(--sweep) var(--radius) var(--radius); }
