/* wp-adapt.css: restores the static v0.5.0 look where WordPress's block markup differs. Printed after assets/site.css.
   Each rule names the static selector it restores. The global-styles CSS is dequeued (inc/assets.php), so there are no
   `.is-layout-flow > *` margin rules, no blockGap and no Frost typography to undo; only the cases below remain. */

/* 1. Wrappers WordPress adds around header, footer and the page content.
   Static: header.site-head is a child of body (position: sticky), .callbar a child of main (sticky, bottom).
   WP wraps the header in div.wp-block-template-part (the sticky box would shrink to the header's own height) and the
   content in div.wp-block-post-content. display: contents drops both boxes. This is enough for every selector in site.css:
   none uses a child or sibling combinator on body or main, and all `>` / `+` rules sit inside a section or group
   that the content keeps as-is. */
.wp-block-template-part,
.wp-block-post-content {
  display: contents;
}

/* 2. Buttons. Static: <a class="btn btn--primary">. WP: <div class="wp-block-button btn btn--primary"><a class="wp-block-button__link wp-element-button">.
   The wrapper keeps the .btn box (min-height, border, background from .btn--*); the padding moves to the link so the whole
   button is the tap target, and core's pill, grey fill, 1.125em font and white text are reset. */
.wp-block-button.btn {
  display: inline-flex; /* core: .wp-block-buttons > .wp-block-button { display: inline-block }, same specificity, loses by order */
  padding: 0;
  align-items: stretch;
}
/* A button block always sits in a buttons block (div.wp-block-buttons). Static: the .btn is a direct child of its grid or flex
   parent (.weekly-row, .hero .wrap, .contact__body), so the extra box goes away. */
.wp-block-buttons {
  display: contents;
}
.wp-block-button.btn > .wp-block-button__link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0 var(--s-6);
  border: 0;
  border-radius: inherit;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: center;
  text-decoration: none;
  height: auto;
  min-width: 0;
}
/* Static: :focus-visible draws the ring on the .btn itself; here the focused element is the inner link. */
.wp-block-button.btn > .wp-block-button__link:focus-visible {
  outline: none;
}
.wp-block-button.btn:has(> .wp-block-button__link:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.band-dark .wp-block-button.btn:has(> .wp-block-button__link:focus-visible) {
  outline-color: var(--on-dark);
}

/* 3. Logged-in editors see the admin bar. Static: .site-head { top: 0 }. */
.admin-bar .site-head {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-head {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .site-head {
    top: 0;
  }
}

/* 4. Decorative icons that were <svg class="ico"><use href="#i-..."/></svg> inside a paragraph. A native paragraph cannot
   hold the svg, so the two with a stable class come back as a mask over a per-icon file that sync-assets.mjs cuts from the
   sprite (assets/icons/*.svg; same-origin, so no CSP img-src data: is needed). If the content still carries the inline svg,
   the :has() rules hide the mask so nothing shows twice.
   Static: .eyebrow .ico (i-pin, 1rem via .ico--sm, margin-top .2em); .weekly-row p .ico (i-mail, 1.25rem, accent). */
.eyebrow::before,
.weekly-row > p::before {
  content: "";
  flex: none;
  margin-top: 0.2em;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.eyebrow::before {
  width: 1rem;
  height: 1rem;
  -webkit-mask-image: url("assets/icons/i-pin.svg");
  mask-image: url("assets/icons/i-pin.svg");
}
.weekly-row > p::before {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent-ink);
  -webkit-mask-image: url("assets/icons/i-mail.svg");
  mask-image: url("assets/icons/i-mail.svg");
}
.eyebrow:has(> .ico)::before,
.weekly-row > p:has(> .ico)::before {
  display: none;
}

/* 5. Not restored here (no static class to hang it on): the icons before text in .badge-clock, .trust > span, .chip, .kicker
   and .steps small. Keep those as raw HTML blocks. Lists (ul/ol.wp-block-list), headings (h1-h6.wp-block-heading) and
   details (details.wp-block-details) need nothing: WP adds no margin to them and every static rule matches by class or tag. */
