/* Core neutraliser — DECLARED differences from core, so the pages render on the
 * baseline willstrustsandprobateattorney.com was built on: browser defaults + the Twenty Twelve theme and its plugins
 * (10-wp.css). Copied from corleypipes (same mechanism as Andrea Bertoli / SAPient).
 *
 * 1. Tailwind preflight lives in @layer base; this rolls every property back past
 *    it with `revert-layer` (box-sizing back to content-box, img back to inline…).
 *    Unlayered CSS (10-wp.css) still wins.
 * 2. Core's unlayered body/html/::selection rules and the `antialiased` utility,
 *    which the source never had (macOS renders visibly lighter text with it).
 * `data-rowe-chrome` is on the Corley header, so none of this reaches /admin.
 */
@layer base {
  :root:has([data-rowe-chrome]),
  :root:has([data-rowe-chrome]) *,
  :root:has([data-rowe-chrome]) ::before,
  :root:has([data-rowe-chrome]) ::after,
  :root:has([data-rowe-chrome]) ::marker,
  :root:has([data-rowe-chrome]) ::placeholder,
  :root:has([data-rowe-chrome]) ::backdrop,
  :root:has([data-rowe-chrome]) ::file-selector-button {
    all: revert-layer;
  }
}

html:has([data-rowe-chrome]) {
  --grain-opacity: 0;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
html:has([data-rowe-chrome]) .grain::after { content: none; }
html:has([data-rowe-chrome]) body {
  min-height: 0;
}
:where(html:has([data-rowe-chrome])) ::selection {
  background: revert-layer;
  color: revert-layer;
}

/* Core names the header for view transitions (globals.css: .site-header { view-transition-name: site-header }), and a
 * named element is its own stacking context. Twenty Twelve's header is also .site-header, so the wordmark (hgroup,
 * z-index 9) was trapped under the banner's angled panel (.page-banner .container::after, z-index -1 in a z-index 1
 * container) and printed at 62% white. Live has no such context. */
:where(html:has([data-rowe-chrome])) .site-header,
:where(html:has([data-rowe-chrome])) .site-logo {
  view-transition-name: none;
}

/* Core opts every page into cross-document view transitions (a cross-fade on navigation); live had none. Only pages
 * that load this file (the Rowe frame) opt out; both pages must opt in for a transition to run. */
@view-transition {
  navigation: none;
}
