/*
 * Simple Theme — Chrome Stylesheet (v1.13.0)
 *
 * Authoring rules:
 *   - All colors and typography flow through --simple-chrome-* CSS vars.
 *   - var(--simple-chrome-*, fallback) — fallbacks match the neutral defaults
 *     in theme.json settings.custom. theme.json is the source of truth;
 *     fallbacks are belt-and-suspenders for environments where theme.json
 *     hasn't yet resolved (e.g. early SSR, broken theme.json).
 *   - No hardcoded brand colors. Neutral by default, deliberately formatted.
 *   - No !important on chrome paint rules — must remain cleanly overridable
 *     by Site Editor and Launch's Manage>Theme tab via the global styles post.
 *   - No inline styles in template parts that bypass tokens.
 *
 * v1.10.01 changes from v1.10.0 — staging-walk corrections:
 *   - PAGE.HTML + SINGLE.HTML: prose-group wrapper REMOVED from around
 *     core/post-content. Pages compose Launch full-bleed sections; the
 *     65% prose constraint was clipping them. Both templates now ship
 *     <main> full-bleed with core/post-content direct. Authors who want
 *     prose pick the new "Prose" custom template from Page Attributes →
 *     Template (registered in theme.json customTemplates).
 *   - ARCHIVE/SEARCH/404 unchanged — they keep prose-group because their
 *     content is query-loops + small text, not Launch compositions.
 *   - LOGO PICKER SELECTOR FIX: .ssla-chrome-logo-slot:not(:has(...))
 *     was using the wrong predicate. core/site-logo always renders its
 *     wrapper element even when no logo image is uploaded, so
 *     :not(:has(.wp-block-site-logo)) always matched false and the
 *     picker affordance never painted. Flipped to
 *     :not(:has(.wp-block-site-logo img)) — checks for the actual img
 *     descendant. Bug present since v1.7.0 introduced the rule;
 *     diagnosed during v1.10.0 staging walk.
 *
 * v1.10.0 changes from v1.9.01 — full-bleed-default architectural pivot:
 *   - Templates restructured: <main> ships at full bleed (already true in
 *     theme.json since v1.9.01); inner constrained groups removed from
 *     single, page, archive, search, 404 templates. Constraint moves
 *     into a registered block pattern users drop where needed.
 *   - inc/patterns.php registers simple-theme/prose-group block pattern
 *     and a matching block style on core/group, both keyed off
 *     className "is-style-prose-group".
 *   - This stylesheet adds the .is-style-prose-group selector block (at
 *     the bottom of this file). Structural rhythm only — vertical spacing,
 *     list/blockquote treatment, link affordances inside prose. NO
 *     hardcoded colors; NO imposed font ramp. Presets and users override
 *     paint via theme.json + global styles. Theme provides the bones.
 *   - The 5 affected templates apply is-style-prose-group as the
 *     className on their content wrapper, so the same selectors paint
 *     both the dropped pattern and the rendered template. One rule set,
 *     two authoring surfaces.
 *
 * v1.9.01 changes from v1.9.0 — frontend full-bleed + broader template filter:
 *   Two staging-walk findings from v1.9.0:
 *   (A) Frontend pages showed ~50px left/right padding on the
 *       simple-content group. v1.8.04's padding-zero was editor-scoped;
 *       frontend inherited WP-core's .has-global-padding rule with
 *       parent-theme (TT5) padding tokens. Fixed by declaring
 *       theme.json styles.spacing.padding.left/right = 0 site-wide.
 *       --wp--style--root--padding-* now resolves to 0 in frontend
 *       and editor both. Block-level groups that author their own
 *       padding still get it (their padding reads block attrs, not
 *       root vars).
 *   (B) Site Editor's Templates admin screen still showed Launch
 *       combo entries and TT5 inheritance (Index, All Archives,
 *       page-no-title, Blog Home). v1.9.0's theme_templates filter
 *       only catches the post-editor picker. Added get_block_templates
 *       filter that drops any wp_template whose slug isn't in our
 *       templates/*.html file inventory. Catches Launch combos AND
 *       TT5 inheritance regardless of registration source.
 *
 *   Pure additive. No CSS rule changes (the v1.8.04 editor-canvas
 *   padding-zero rule is now redundant but harmless; left in for
 *   defense-in-depth).
 *
 * v1.9.0 changes from v1.8.04 — Template ownership contract v2:
 *   - Substantive scope change. Theme now owns ALL wp_template +
 *     wp_template_part posts. Launch owns patterns + pages only.
 *   - Deleted parts/header-standard.html + parts/footer-minimal.html
 *     (orphaned by Launch deprecating combo template registrations).
 *     Removed corresponding theme.json templateParts entries and
 *     .simple-footer-simple CSS rules.
 *   - Backfilled all 7 templates with corrected pattern: outer <main>
 *     is layout:default (full-bleed) for every template. Page templates
 *     wrap post-content in an explicit constrained inner group at
 *     760/1200 (1200/1400 for single.html with sidebar layout). Default
 *     template stays full-bleed-all-the-way for Launch sections.
 *   - New migration inc/migrations/v1_9_0.php sweeps wp_template +
 *     wp_template_part posts on activation/version-change. Trashes
 *     orphans (no matching file) and diverged db copies (file is source
 *     of truth). Idempotent, registered in loader.
 *   - New theme_templates filter in functions.php hides parent-theme
 *     (TT5) inherited templates from the picker. Picker now shows only
 *     entries from simple_theme_get_template_manifest().
 *   - New admin notice on Site Editor / Themes screens explains the
 *     filesystem-ownership contract. Dismissible per-user.
 *
 * v1.8.04 changes from v1.8.03 — kill .has-global-padding gutters:
 *   - v1.8.03 made the editor canvas full-width, but WP-core applies a
 *     separate set of root-level padding vars to .has-global-padding
 *     (which lands on .is-root-container by default). The result was
 *     ~40-60px left/right gutters on the writing canvas regardless of
 *     max-width values. Direct DevTools trace confirmed (Glenn 2026-05-09):
 *
 *         :where(.editor-styles-wrapper) .has-global-padding {
 *             padding-right: var(--wp--style--root--padding-right);
 *             padding-left:  var(--wp--style--root--padding-left);
 *         }
 *
 *   - Extended the v1.8.03 .editor-styles-wrapper rule to also zero
 *     --wp--style--root--padding-left and --wp--style--root--padding-right.
 *     The :where() selector around WP's rule has zero specificity so the
 *     existing class-level rule wins; just had to declare the vars.
 *   - Block-level groups that authored their own padding still render with
 *     their authored padding because they read from their own block attrs,
 *     not these root vars. Editor canvas is now true edge-to-edge.
 *
 *   No theme.json or template changes. CSS-only. Pure additive.
 *
 * v1.8.03 changes from v1.8.02 — Gutenberg post-editor canvas parity:
 *   - v1.8.02 relaxed theme.json layout root for Site Editor full-bleed.
 *     Gutenberg POST editor (the smaller iframe used when editing pages
 *     and posts) doesn't read theme.json layout cleanly — WP-core hardcodes
 *     a content-size on .editor-styles-wrapper itself that overrides
 *     theme.json values for the writing canvas.
 *   - Added a chrome.css rule scoped to .editor-styles-wrapper that
 *     overrides --wp--style--global--content-size + --wp--style--global--wide-size
 *     CSS vars to 100% and forces max-width: 100% on the wrapper.
 *     Propagates through any block reading those vars.
 *   - Block-level constrained groups (like page.html's inner 760/1200
 *     group) still self-constrain because they read from their own block
 *     attrs, not from these global vars. Editing experience now matches
 *     v1.8.02's frontend full-bleed behavior.
 *
 *   No theme.json or template changes in this band. CSS-only.
 *
 * v1.8.02 changes from v1.8.01 — full-bleed editor canvas:
 *   - theme.json settings.layout root values: contentSize/wideSize
 *     changed from 1200px/1400px to 100%/100%. The 1200px root constraint
 *     was choking full-width page designs in the editor canvas. Default-
 *     aligned Launch sections paint at section width on frontend (via
 *     section CSS) but the editor canvas applied the root constraint
 *     globally, making everything feel narrow.
 *   - templates/page.html: wp:post-content now lives inside an explicit
 *     constrained wp:group (contentSize 760px, wideSize 1200px) per the
 *     v0.8.0 sketch. Prose-style pages still get readable line width;
 *     full-width Launch sections paint align-full and break out of the
 *     constraint cleanly. The constraint moved FROM root (where it
 *     applied to everything) TO the page-level group (where it only
 *     applies to non-aligned content inside that specific group).
 *
 *   No CSS rule changes in this band. Pure layout-contract correction.
 *
 * v1.8.01 changes from v1.8.0 — Templates regression fix + canvas width:
 *   - Restored templates/page.html (was deleted in v1.8.0). Falling through
 *     to TT5 parent's page.html caused the homepage to render a "Home" title
 *     above the hero (TT5's page template includes wp:post-title) and applied
 *     TT5's narrower contentSize constraint to the editor canvas. The
 *     restored page.html follows the v0.8.0 sketch: full-bleed <main>, inner
 *     constrained wp:post-content so paragraph blocks self-constrain to
 *     readable width while align-full/align-wide breaks out cleanly. No
 *     wp:post-title — pages render their own titles via content sections.
 *   - Added theme.json settings.layout = { contentSize: 1200px, wideSize:
 *     1400px } so the editor canvas inherits the same content max as Launch
 *     section paint surface, instead of TT5 parent's tighter 620px default.
 *   - Added parts/header-standard.html (mirrors header-simple, same className
 *     so it inherits all chrome.css rules) so Launch's combo templates that
 *     reference slug "header-standard" resolve correctly. Backward-compat
 *     preserved for templates/compact.html which still uses header-simple.
 *   - Added parts/footer-minimal.html — new single-line-copyright footer
 *     for Launch's "Minimal" combo templates. Uses className
 *     simple-footer-simple with .ssla-chrome-footer-copyright-slot wrapper
 *     so chrome-binder still wires the copyright field for inline edit.
 *   - Added chrome.css rules for .simple-footer-simple (~20 LOC).
 *
 *   Net: Launch's 4 combo templates (Standard+Simple, Standard+Minimal,
 *   Expanded+Simple, Expanded+Minimal) all resolve to existing parts. The
 *   "template part has been deleted or is unavailable" red bars in the
 *   picker disappear.
 *
 *   Out of scope for v1.8.01 (still routed to Mia per v1.8.0 handoff):
 *   - Header bar entire-element hotspot, footer link routing, FE inline-edit
 *     gate (overlay.js band)
 *   - Preset color/font integration (v3.6.4 Manage>Theme tab)
 *   - LearnDash courses + better blog templates (multi-arc, item C from
 *     today's screenshot review — opens as v1.10.x design-mockup-first)
 *
 * v1.8.0 changes from v1.7.0 — UI cleanup band:
 *   - Header brand-group: logo placed to the LEFT of the site title rather
 *     than stacked above. Previously .nav-brand-group rendered as a vertical
 *     flex column (logo top, title middle, tagline bottom). New layout uses
 *     CSS Grid in header-expanded so the tagline stacks under the title only,
 *     not under the logo+title row — keeping the brand silhouette compact.
 *     Header-simple (no tagline) uses a simpler flex-row override. Logo slot
 *     vertically centered against the title baseline. Mobile preserves the
 *     compact 28px logo footprint and inherits the same row layout.
 *   - Template prune: removed templates/{home,index,page,article}.html.
 *     None were declared in functions.php's manifest (which has only default
 *     and compact). home.html and index.html now fall through to the TT5
 *     parent (matching the v0.8.0 thesis "TT5 owns WordPress defaults").
 *     page.html was a byte-identical duplicate of default.html; removed
 *     to keep one source of truth. article.html was an unused stub.
 *
 *   Out of scope for v1.8.0 (routed to Mia's Launch thread — see
 *   ssla-handoff-v1.8.0-ui-cleanup.md):
 *   - Header bar entire-element hotspot triggering menu modal (overlay.js)
 *   - Footer menu link forwards to admin instead of opening menu modal
 *   - Subtitle still editable in viewing mode (FE inline-edit gate)
 *   - Front-end UI treatment for article/search/sidebar + Events / Members /
 *     LearnDash FE templates (multi-arc; sub-arc A first)
 *   - Preset color/font integration + light/dark + font selector
 *     (depends on Manage>Theme tab in Launch v3.6.4)
 *
 * v1.7.0 changes from v1.6.0 — staging-walk fixes:
 *   - Logo placeholder when no logo set: 44×44 (28×28 mobile) dashed-border
 *     box with mild gray fill, painted on .ssla-chrome-logo-slot when its
 *     child .wp-block-site-logo is absent. Conditional break from the v1.3.3
 *     "slots are visually transparent" contract — only paints when there's
 *     no rendered logo to interfere with. Two new tokens:
 *     --simple-chrome--placeholder-fill (#EFEFEF) and
 *     --simple-chrome--placeholder-border (#B0B0B0).
 *   - Footer submenus render as indented sub-bullets, not flyout dropdowns.
 *     Scoped to .simple-footer-expanded .footer-links — header nav submenus
 *     unaffected. Strips dropdown card chrome (background, border, shadow,
 *     absolute positioning), makes submenus render in-flow as a vertical
 *     list with a hairline rail. Submenu toggle chevron hidden.
 *   - Footer link spacing tightened. Explicit gap: 6px on .footer-links
 *     overrides core's default --wp--style--block-gap which was reading as
 *     too spaced-out.
 *
 *   Out of scope for v1.7.0 (routed to Mia's Launch thread):
 *   - Header bar entire-element hotspot triggering menu modal
 *   - FE inline-edit input not inheriting painted style until save+reload
 *   - Dark editor-affordance tones (black bg + white text in chrome edit
 *     mode regardless of preset)
 *
 * v1.6.0 changes from v1.5.0 — mobile responsive (sub-delivery 3):
 *   - Switched core/navigation `overlayMenu` from "never" to "mobile" on both
 *     header parts. Below 768px the inline nav collapses into core's hamburger
 *     overlay (top-down, full-viewport). We get focus-trap, esc-to-close, and
 *     ARIA plumbing free from core — no parallel infrastructure.
 *   - Restyled core's overlay panel to match Simple Theme paint surface:
 *     paper bg, hairline rules between items, Georgia 18px nav typography.
 *   - Hover-bridge from v1.4.0 sub-delivery 1 wrapped in
 *     `@media (hover: hover) and (pointer: fine)` so it doesn't fire on touch.
 *     Touch-side gets simple tap-to-open submenu via core's overlay structure.
 *   - Header brand stack at mobile: tagline hidden (header-expanded only,
 *     where tagline lives), logo + site title remain. Logo slot 28px square
 *     instead of 36px.
 *   - Footer collapse changed from direct 4 → 1 at 768px to three-stage
 *     4 → 2 → 1 (≥768 = 4col, 481–767 = 2col, ≤480 = 1col stacked).
 *   - Existing flex-wrap mobile rules on `.simple-header-*` retained as
 *     fallback for the brief moment before core's overlay JS hydrates.
 *
 * v1.5.0 changes from v1.4.0:
 *   - No CSS changes. Version stamp updated for lockstep with the v1.5.0
 *     ship. Fix is template-part + render_block filter (PHP-side).
 *     See inc/class-simple-theme-chrome-binder.php for the
 *     chrome-field handshake v2 implementation.
 *
 * v1.4.0 changes from v1.3.3:
 *   - Submenu hover-gap bug fix. v1.3.x used `margin-top: 6px` on the
 *     submenu container, which created a transparent hit-corridor that
 *     dropped :hover state and collapsed the menu mid-traverse. Replaced
 *     with a transparent ::before bridge of the same height — visual gap
 *     preserved, hover continuity restored. Also added small vertical
 *     padding on parent (has-child) trigger anchors with negative margin
 *     offset, so a diagonal cursor path off the label stays on a hovered
 *     surface. Baseline alignment unchanged.
 *   - Inter-section margin override. WP-core's
 *     `:where(.is-layout-flow) > * { margin-block-start: 1.2rem }` was
 *     stacking 19.2px between every Launch section on the page, breaking
 *     design consistency for edge-to-edge sections. Zeroed on
 *     `.ssla-section` directly — internal section flow rhythm
 *     (paragraphs, headings inside a section) untouched.
 *
 * v1.3.3 changes from v1.3.2:
 *   - .ssla-chrome-*-slot wrappers introduced in template parts to carry
 *     data-ssla-chrome-field attributes on logo, site-title, tagline, and
 *     footer text fields (per Mia's chrome-field handshake for v3.6.11
 *     inline-edit). Slots must be VISUALLY TRANSPARENT — Launch ships
 *     hover/click affordance via its own .ssla-ov-chrome-hover CSS;
 *     theme-side slots are layout passthrough only.
 *   - Logo slot added to header-simple (was site-title-only); logo block
 *     now appears in compact-template pages too.
 *
 * v1.3.2 changes from v1.3.1:
 *   - Editor-only post title hide rule. Targets the WP 6.5+ wrapper class
 *     (.editor-visual-editor__post-title-wrapper) plus legacy fallbacks.
 *     Editor-only — front-end core/post-title is untouched.
 *   - Chrome-utility custom block styles (login + expandable search).
 *
 * v1.3.1 changes from v1.3.0:
 *   - Sticky now targets header.wp-block-template-part wrapper (not inner group)
 *     — wrapper is what needs to escape document flow; inner group has no room.
 *   - Inter-section gap zeroed (chrome flush against page content).
 *   - Sub-menu padding increased (was smooshed at 6px → now 12px/14px).
 *   - Footer column ratios → 1.4fr 0.8fr 1.6fr 1.2fr (was 1.6fr 1fr 1.6fr 1.2fr).
 *   - Brand column treated as wordmark, not eyebrow-matched heading.
 *   - Header search input styled to match chrome typography.
 *   - Logo swap rule: site-logo present hides wordmark via :has() selector.
 *
 * See README.md for the token contract.
 */

/* ===================================================================
 * STICKY CASCADE FIX
 * position: sticky requires every ancestor to NOT have overflow:hidden|clip.
 * TT5-derivative themes set overflow on .wp-site-blocks and friends, which
 * silently breaks sticky. We override on the documented set of ancestors.
 * If a future TT5 update adds a new wrapper, add it here.
 * =================================================================== */

.wp-site-blocks,
body > .wp-site-blocks > main,
body > .wp-site-blocks > .wp-block-group,
body.wp-singular,
body.home {
	overflow: visible;
}

/* ===================================================================
 * BODY + HEADING FONT BINDING (v1.18.0)
 *
 * The runtime paint emitter outputs --wp--custom--simple-chrome--font-family
 * driven by the chrome admin Typography setting. These rules bind that
 * variable to body text and headings so the user's font choice paints
 * site-wide, not just inside chrome rules.
 *
 * Fallback stack mirrors the system-sans authored default so a missing
 * variable does not crash typography. Per-block paint via Global Styles
 * still takes precedence over these rules (no !important).
 * =================================================================== */

body {
	font-family: var(--wp--custom--simple-chrome--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--custom--simple-chrome--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

/* ===================================================================
 * INTER-SECTION GAP — FLUSH CHROME
 * WP-core block-gap defaults add space between top-level template parts.
 * We zero it so chrome sits flush against page content. (Per Glenn,
 * v1.3.1 punch-list item 1.) Page content can still set its own internal
 * spacing; this only zeros the gap BETWEEN top-level sections.
 * =================================================================== */

body > .wp-site-blocks {
	gap: 0;
}

body > .wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ===================================================================
 * STICKY HEADER — APPLIED TO WRAPPER
 *
 * v1.3.0 BUG: sticky was applied to .simple-header-* (inner group). The
 * outer <header class="wp-block-template-part"> wrapper is the same height
 * as the inner group, so sticky had no room to travel — element pinned to
 * top of an 82px box that scrolls away with the page.
 *
 * v1.3.1 FIX: sticky on the wrapper. :has() scopes it to Simple Theme's
 * headers only, so other themes/parts using core/template-part aren't
 * affected. :has() supported in Safari 15.4+, Chrome 105+, Firefox 121+.
 *
 * Background lives on the wrapper too so the sticky zone is visually
 * complete (not transparent over scrolled content).
 * =================================================================== */

header.wp-block-template-part:has(.simple-header-simple),
header.wp-block-template-part:has(.simple-header-expanded) {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--custom--simple-chrome--chrome-bg, #FAFAFA);
	box-shadow:
		0 1px 0 var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5),
		0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Editor parity: disable sticky inside Site Editor iframe so the editor
 * canvas behaves like a static document. Otherwise editor scroll feels
 * broken when the header refuses to move. */
.editor-styles-wrapper header.wp-block-template-part:has(.simple-header-simple),
.editor-styles-wrapper header.wp-block-template-part:has(.simple-header-expanded) {
	position: relative;
	box-shadow: 0 1px 0 var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
}

/* Editor-only: hide the post title surface from Gutenberg.
 *
 * Glenn's preference: the editor title input gets in the way when the
 * page itself contains a hero/H1 rendered by a section block. Hiding it
 * in the editor surface only — front-end core/post-title remains usable
 * by templates that want it (e.g. single.html, archive.html).
 *
 * Targets all known WP-core selectors. Class names have shifted across
 * versions (5.x → 6.x → 6.5+). Listing both wrapper and legacy classes
 * keeps the rule resilient to version drift without needing a per-version
 * branch.
 *
 * Scoped to .editor-styles-wrapper so it only applies inside Gutenberg
 * iframes (post editor, site editor) and never leaks to front-end render.
 *
 * post_type_support for 'title' is intentionally NOT removed — that
 * would break REST writes and migration imports that set post_title.
 * This is a surface-only hide.
 */
/* ===================================================================
 * EDITOR CANVAS — FULL-BLEED LAYOUT (v1.8.03)
 *
 * The Gutenberg post editor (and to a lesser extent the Site Editor)
 * applies a writing-area constraint to .editor-styles-wrapper that
 * doesn't always read theme.json's settings.layout values cleanly. With
 * theme.json layout root at 100%/100% (v1.8.02), the frontend renders
 * full-bleed correctly but the editor canvas still felt narrow because
 * WP-core hardcodes a content-size on the wrapper.
 *
 * Override the global CSS custom properties WP-core reads for layout
 * computations, plus enforce max-width: 100% on the wrapper itself.
 * Block-level constrained groups (e.g. page.html's inner 760/1200 group)
 * still self-constrain because they read from their own block attrs.
 *
 * Editor canvas now matches frontend: full-bleed default, with explicit
 * constrained groups inside content for prose-readable line widths.
 * =================================================================== */
.editor-styles-wrapper {
	--wp--style--global--content-size: 100%;
	--wp--style--global--wide-size: 100%;
	max-width: 100%;

	/* v1.8.04: WP applies .has-global-padding to .is-root-container which
	 * pulls these vars to paint left/right gutters on the writing canvas.
	 * Zero them here so editor canvas is true edge-to-edge. Block-level
	 * groups that DO want padding still get it via their own block attrs. */
	--wp--style--root--padding-left: 0;
	--wp--style--root--padding-right: 0;
}

/* Inside the editor, .wp-site-blocks (the WP root content wrapper) also
 * sometimes carries an inline max-width that doesn't honor the var. Pin
 * it to 100% so default-aligned blocks fill the canvas. */
.editor-styles-wrapper .wp-site-blocks {
	max-width: 100%;
}

.editor-styles-wrapper .editor-visual-editor__post-title-wrapper,
.editor-styles-wrapper .wp-block-post-title.editor-post-title,
.editor-styles-wrapper .editor-post-title,
.editor-styles-wrapper .editor-post-title__input {
	display: none;
}

/* ===================================================================
 * EDITOR CANVAS GUTTER (prose-family templates only)
 *
 * v1.19.04 — Glenn report: post.php editor canvas renders flush to viewport
 * edge for posts on the Prose template because the .simple-main-prose
 * wrapper only exists in the rendered template, not in the post-content
 * edit canvas.
 *
 * functions.php :: simple_theme_admin_body_class_for_template() appends
 * the .simple-editor-prose-gutter class to <body> on post.php / post-new.php
 * when the assigned template is one of: prose, single, single-with-sidebar,
 * single-with-topbar. Default + Compact templates are excluded — those are
 * layout-canvases meant to host full-bleed blocks.
 *
 * We pad the iframe body when the class is present, and the editor wrapper
 * inside the iframe (WP propagates body classes into the editor iframe).
 * Vertical rhythm + inline gutter both — Glenn's note included "no padding
 * at all" not just left/right.
 * =================================================================== */

/* ===================================================================
 * EDITOR CANVAS PARITY (v1.19.09 — comprehensive rebuild)
 *
 * Glenn report: "shouldn't back end look pretty close to the fe?"
 *
 * Root cause of v1.19.07's editor-gutter failure: the body class
 * .simple-editor-prose-gutter was being added to wp-admin <body> by
 * admin_body_class filter, but the editor canvas is an IFRAME with its
 * OWN <body>. WP does not propagate admin body classes into iframe
 * bodies. So every rule scoped `body.simple-editor-prose-gutter ...`
 * never matched anything inside the editor.
 *
 * Fix: drop body-class scoping for in-iframe rules. chrome.css is
 * enqueued inside the iframe via add_editor_style(), so any rule
 * targeting `.editor-styles-wrapper` (the canvas root inside the
 * iframe) will fire. Apply gutter + typography rhythm unconditionally
 * to the canvas so the editor previews chrome-accurate body content.
 *
 * Scope: this block intentionally mirrors what frontend templates
 * apply via .is-style-prose-group + .simple-main-prose, but targets
 * the editor canvas instead. Frontend rules remain authoritative for
 * shipped pages; this block aligns the editor preview to them.
 *
 * Three pieces:
 *   1. Canvas gutter — padding-block + padding-inline on the wrapper
 *      so content doesn't run flush to the iframe edges.
 *   2. Canvas typography — bind the wrapper's font-family explicitly
 *      so the editor doesn't fall back to the iframe's browser default
 *      (Times-class serif on most browsers). Match the chrome --font-family
 *      so the editor shows what the frontend will show.
 *   3. Canvas type rhythm — H1/H2/H3/p/ul/ol margins match prose-group.
 *      Without this, all blocks render with WP-core default rhythm
 *      (tight, undifferentiated), and authors can't see hierarchy
 *      as they edit.
 *
 * Note: this is NOT a substitute for the frontend's .simple-main +
 * .simple-article-body styling. The editor canvas approximates;
 * frontend renders the structural template wrappers that the editor
 * cannot show (header chrome, hero split, footer). Preview button
 * remains the source of truth for full-page accuracy.
 * =================================================================== */

/* (1) Canvas gutter — replaces the v1.19.07 body-class-scoped rules. */
.editor-styles-wrapper {
	padding-block: clamp(32px, 6vw, 80px);
	padding-inline: clamp(24px, 4vw, 48px);
}

@media (max-width: 600px) {
	.editor-styles-wrapper {
		padding-inline: 20px;
	}
}

/* (2) Canvas typography — force chrome --font-family so the iframe
 * doesn't render Times-class browser default. */
.editor-styles-wrapper,
.editor-styles-wrapper p,
.editor-styles-wrapper li,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.editor-styles-wrapper {
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
}

.editor-styles-wrapper p {
	line-height: 1.65;
}

/* (3) Canvas type rhythm — mirror prose-group margins so headings
 * render with visible hierarchy. */
.editor-styles-wrapper h1 {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin-block: 0 var(--wp--preset--spacing--40, 1.5rem);
}

.editor-styles-wrapper h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin-block: var(--wp--preset--spacing--60, 2rem) var(--wp--preset--spacing--30, 0.75rem);
}

.editor-styles-wrapper h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin-block: var(--wp--preset--spacing--50, 1.5rem) var(--wp--preset--spacing--20, 0.5rem);
}

.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
	font-weight: 600;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin-block: var(--wp--preset--spacing--40, 1.25rem) var(--wp--preset--spacing--20, 0.5rem);
}

.editor-styles-wrapper ul,
.editor-styles-wrapper ol,
.editor-styles-wrapper .wp-block-list {
	padding-inline-start: var(--wp--preset--spacing--50, 1.5rem);
}

.editor-styles-wrapper li + li {
	margin-block-start: var(--wp--preset--spacing--20, 0.5rem);
}

.editor-styles-wrapper li > ul,
.editor-styles-wrapper li > ol {
	margin-block-start: var(--wp--preset--spacing--20, 0.5rem);
}

/* v1.20.0 — Editor canvas previews journalistic wrap.
 *
 * When a single template renders in the editor (post.php or site-editor.php),
 * the .simple-article-body-wrap container shows the featured image as
 * the first child, intended to float left into the lede. The editor
 * needs to preview that float so authors see what readers will see.
 *
 * Same float rules as frontend, scoped to .editor-styles-wrapper so the
 * iframe canvas renders the pattern. Mobile breakpoint matches frontend
 * — at ≤600px iframe width, image becomes full-width above body.
 */
.editor-styles-wrapper .simple-article-body-wrap .simple-article-featured-wrap,
.editor-styles-wrapper .simple-article-body-wrap .wp-block-post-featured-image.simple-article-featured-wrap {
	float: left;
	width: 42%;
	margin: 6px var(--wp--preset--spacing--50, 2rem) var(--wp--preset--spacing--40, 1rem) 0;
}

.editor-styles-wrapper .simple-article-body-wrap .simple-article-featured-wrap img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.editor-styles-wrapper .simple-article-body-wrap h2,
.editor-styles-wrapper .simple-article-body-wrap h3,
.editor-styles-wrapper .simple-article-body-wrap .wp-block-heading {
	clear: both;
}

@media (max-width: 600px) {
	.editor-styles-wrapper .simple-article-body-wrap .simple-article-featured-wrap {
		float: none;
		width: 100%;
		margin: 0 0 var(--wp--preset--spacing--40, 1.25rem) 0;
	}
}

/* Editor drop cap — first paragraph of the post-content block in the
 * editor canvas previews the same drop cap the frontend will render.
 * Targets .wp-block-post-content (when content is wrapped) AND the
 * raw .block-editor-block-list__layout (when editing a standalone post
 * where no wrapper is rendered in the editor). */
.editor-styles-wrapper .wp-block-post-content > p:first-of-type::first-letter,
.editor-styles-wrapper .block-editor-block-list__layout > .wp-block-paragraph:first-of-type p::first-letter {
	float: left;
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: 4.5em;
	line-height: 0.85;
	padding: 6px 12px 0 0;
	color: var(--wp--custom--simple-chrome--accent, #666666);
	font-weight: 700;
}

/* ===================================================================
 * SHARED CHROME TYPOGRAPHY
 * =================================================================== */

.simple-header-simple,
.simple-header-expanded,
.simple-footer-expanded {
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* ===================================================================
 * HEADER — SIMPLE VARIANT
 * Brand left, nav right, single-row layout.
 * =================================================================== */

.simple-header-simple {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px clamp(24px, 5vw, 64px);
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	background: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
}

.simple-header-simple .nav-brand {
	color: var(--wp--custom--simple-chrome--chrome-text, #0F0F0F);
	font-size: 16px;
	font-weight: var(--wp--custom--simple-chrome--heading-weight, 700);
	letter-spacing: var(--wp--custom--simple-chrome--heading-letter-spacing, 0.5px);
	text-decoration: none;
}

.simple-header-simple .nav-links {
	display: flex;
	gap: 32px;
}

.simple-header-simple .nav-links a {
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	font-size: 12px;
	font-weight: var(--wp--custom--simple-chrome--link-weight, 500);
	letter-spacing: var(--wp--custom--simple-chrome--link-letter-spacing, 1px);
	text-transform: var(--wp--custom--simple-chrome--link-text-transform, uppercase);
	text-decoration: none;
	/* v1.19.03 — parity with .simple-header-expanded: animated underline
	 * + accent-flip on hover. Prior rule painted hover color to chrome-text
	 * (same as rest), which read as no hover affordance at all. */
	position: relative;
	transition: color 0.2s ease;
}

.simple-header-simple .nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1.5px;
	background: var(--wp--custom--simple-chrome--accent, #D4740E);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}

.simple-header-simple .nav-links a:hover {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

.simple-header-simple .nav-links a:hover::after {
	transform: scaleX(1);
}

.simple-header-simple .nav-links .current-menu-item a::after {
	transform: scaleX(1);
}

/* Submenu chevron — small breathing room between label and arrow. */
.simple-header-simple .nav-links .wp-block-navigation-item__label {
	margin-right: 4px;
}

@media (max-width: 768px) {
	.simple-header-simple {
		padding: 14px 24px;
		flex-wrap: wrap;
		gap: 12px;
	background: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
	}
	.simple-header-simple .nav-links {
		gap: 16px;
		flex-wrap: wrap;
	}
}

/* ===================================================================
 * HEADER — EXPANDED VARIANT
 * Brand + tagline grouped left, nav right, search trailing.
 * =================================================================== */

.simple-header-expanded {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px clamp(24px, 5vw, 64px);
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	gap: 32px;
	background: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
}

.simple-header-expanded .nav-brand-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.simple-header-expanded .nav-brand {
	color: var(--wp--custom--simple-chrome--chrome-text, #0F0F0F);
	font-size: 18px;
	font-weight: var(--wp--custom--simple-chrome--heading-weight, 700);
	letter-spacing: var(--wp--custom--simple-chrome--heading-letter-spacing, 0.5px);
	text-decoration: none;
}

.simple-header-expanded .nav-tagline {
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1px;
}

/* Right-side cluster: nav + search */
.simple-header-expanded .nav-cluster {
	display: flex;
	align-items: center;
	gap: 24px;
}

.simple-header-expanded .nav-links {
	display: flex;
	gap: 32px;
	align-items: center;
}

.simple-header-expanded .nav-links a {
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	font-size: 12px;
	font-weight: var(--wp--custom--simple-chrome--link-weight, 500);
	letter-spacing: var(--wp--custom--simple-chrome--link-letter-spacing, 1px);
	text-transform: var(--wp--custom--simple-chrome--link-text-transform, uppercase);
	text-decoration: none;
	/* v1.19.01 — Animated underline. ::after pseudo-element scales from
	 * 0 to 100% width on hover, accent-colored, centered. Color of the
	 * link label also flips to accent so the affordance reads clearly. */
	position: relative;
	transition: color 0.2s ease;
}

.simple-header-expanded .nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1.5px;
	background: var(--wp--custom--simple-chrome--accent, #D4740E);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}

.simple-header-expanded .nav-links a:hover {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

.simple-header-expanded .nav-links a:hover::after {
	transform: scaleX(1);
}

/* Active-page underline state — persists for the current page's nav item.
 * WP core navigation block adds .current-menu-item class to the active link. */
.simple-header-expanded .nav-links .current-menu-item a::after {
	transform: scaleX(1);
}

/* Submenu chevron — small breathing room between label and arrow. */
.simple-header-expanded .nav-links .wp-block-navigation-item__label {
	margin-right: 4px;
}

/* Site logo — when present, replaces wordmark AND tagline as the
 * primary brand identity. A strong logo is the title; tagline is
 * supporting copy that becomes redundant against a real brand mark.
 *
 * v1.10.03 — Extended from v1.7.0's title-only hide rule. Original
 * intent shipped `.nav-brand` (the inner site-title <p>/<a>) hidden
 * when logo present, but left the tagline rendering. Result: site
 * with logo had logo + tagline visible together (no title), which
 * read awkwardly. Updated rule: logo present → BOTH title-slot AND
 * tagline-slot hidden. Logo absent → both visible.
 *
 * Applies to both header variants (simple + expanded). Logic via
 * :has() on .nav-brand-group catching the rendered logo img child.
 *
 * Logic: if site-logo block has rendered an image, hide title + tagline
 * slots entirely. If no logo set, site-logo block renders nothing (or
 * admin placeholder), and title + tagline remain visible.
 *
 * v1.10.04 — Trimmed inert selectors. header-simple has no tagline slot
 * (only header-expanded does), so the tagline-slot selector is scoped to
 * expanded only. Title-slot rule applies to both header variants. */
.simple-header-expanded .nav-brand-group:has(.wp-block-site-logo img) .ssla-chrome-site-title-slot,
.simple-header-expanded .nav-brand-group:has(.wp-block-site-logo img) .ssla-chrome-tagline-slot,
.simple-header-simple .nav-brand-group:has(.wp-block-site-logo img) .ssla-chrome-site-title-slot {
	display: none;
}

.simple-header-expanded .nav-brand-group .wp-block-site-logo img {
	max-height: 40px;
	width: auto;
}

/* v1.8.0: brand-group layout — logo LEFT of title (was column-stacked).
 *
 * The template part wraps three slots inside .nav-brand-group:
 *   .ssla-chrome-logo-slot
 *   .ssla-chrome-site-title-slot
 *   .ssla-chrome-tagline-slot         (header-expanded only)
 *
 * Goal: logo and title sit in a single row; tagline (when present) stacks
 * under the title only, NOT under the logo+title pair — so the tagline's
 * left edge aligns with the title's, and the logo doesn't get a band of
 * empty space below it.
 *
 * Approach: CSS Grid with named areas in header-expanded. Logo occupies
 * column 1 spanning both rows; title and tagline stack in column 2.
 * Header-simple has no tagline, so a simpler flex-row override suffices.
 *
 * The template-part JSON declares orientation:vertical on .nav-brand-group;
 * we override at the CSS layer rather than touching the template part,
 * keeping the v1.5.0 "saved markup is minimal" contract intact. */
.simple-header-expanded .nav-brand-group {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"logo title"
		"logo tagline";
	align-items: center;
	column-gap: 12px;
	row-gap: 0;
}

.simple-header-expanded .nav-brand-group > .ssla-chrome-logo-slot {
	grid-area: logo;
	align-self: center;
}

.simple-header-expanded .nav-brand-group > .ssla-chrome-site-title-slot {
	grid-area: title;
	align-self: end;
}

.simple-header-expanded .nav-brand-group > .ssla-chrome-tagline-slot {
	grid-area: tagline;
	align-self: start;
}

/* Header-simple: no tagline, so a simple flex-row override is enough.
 * Template part declares flex/orientation:vertical on .nav-brand-group;
 * we flip orientation here without touching the part. */
.simple-header-simple .nav-brand-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

/* ===================================================================
 * CHROME UTILITY BLOCK (login + expandable search)
 *
 * Lives in .nav-cluster, replaces the previous standalone core/search.
 * Two icon buttons sitting side-by-side; clicking the search icon
 * expands an input inline (data-state attribute on .chrome-utility-search
 * drives the visual state). Login icon is always visible, always points
 * at /login (Identity-scripted entry point).
 *
 * State machine:
 *   data-state="collapsed" → only search icon visible, login visible to
 *                             its right, no input
 *   data-state="expanded"  → input visible (animated in), close icon
 *                             replaces search icon, login pushed aside
 *                             via the order:1 trick on the form
 *
 * No !important. Cascade-only. JS toggles data-state, CSS reads it.
 * =================================================================== */
.simple-header-expanded .simple-chrome-utility {
	display: flex;
	align-items: center;
	gap: 8px;
}

.simple-chrome-utility .chrome-utility-search {
	display: flex;
	align-items: center;
	position: relative;
}

.simple-chrome-utility .chrome-utility-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.simple-chrome-utility .chrome-utility-search-toggle:hover {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
	border-color: var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
}

/* Show search icon by default, swap to close on expand. */
.simple-chrome-utility .chrome-utility-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.simple-chrome-utility .chrome-utility-search[data-state="collapsed"] .chrome-utility-icon-close {
	display: none;
}

.simple-chrome-utility .chrome-utility-search[data-state="expanded"] .chrome-utility-icon-search {
	display: none;
}

/* Form is collapsed-by-default — width 0, opacity 0, not interactive.
 * On expand, transitions to natural width with a small delay so the
 * icon-swap reads first. */
.simple-chrome-utility .chrome-utility-search-form {
	display: flex;
	align-items: center;
	overflow: hidden;
	width: 0;
	max-width: 0;
	opacity: 0;
	margin: 0;
	transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}

.simple-chrome-utility .chrome-utility-search[data-state="expanded"] .chrome-utility-search-form {
	width: auto;
	max-width: 200px;
	opacity: 1;
	margin-left: 8px;
}

.simple-chrome-utility .chrome-utility-search-input {
	border: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	border-radius: 4px;
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	padding: 6px 10px;
	width: 100%;
	min-width: 140px;
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
}

.simple-chrome-utility .chrome-utility-search-input:focus {
	outline: 1px solid var(--wp--custom--simple-chrome--accent, #666666);
	outline-offset: 1px;
	border-color: var(--wp--custom--simple-chrome--accent, #666666);
}

.simple-chrome-utility .chrome-utility-login {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	text-decoration: none;
	transition: color 0.2s, background 0.2s, border-color 0.2s;
	border: 1px solid transparent;
}

.simple-chrome-utility .chrome-utility-login:hover,
.simple-chrome-utility .chrome-utility-login:focus {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
	border-color: var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
}

/* Editor preview — static layout, no expand/collapse interaction. Just
 * shows the two icons sitting next to each other. */
.simple-chrome-utility .chrome-utility-editor-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
}

@media (max-width: 768px) {
	.simple-header-expanded {
		padding: 16px 24px;
		flex-wrap: wrap;
		gap: 12px;
	background: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
	}
	.simple-header-expanded .nav-cluster {
		gap: 12px;
		flex-wrap: wrap;
	}
	.simple-header-expanded .nav-links {
		gap: 16px;
		flex-wrap: wrap;
	}
	.simple-chrome-utility .chrome-utility-search[data-state="expanded"] .chrome-utility-search-form {
		max-width: 140px;
	}
	.simple-chrome-utility .chrome-utility-search-input {
		min-width: 100px;
	}
}

/* ===================================================================
 * CHROME-FIELD SLOTS (v1.3.3)
 *
 * Wrapper groups in header/footer template parts carrying
 * data-ssla-chrome-field attributes (logo, site_title, tagline, and
 * the seven footer text fields). Per Mia's chrome-field handshake
 * for Launch v3.6.11, these wrappers exist solely to host the data
 * attribute on the rendered HTML element — they must NOT introduce
 * visual change.
 *
 * Strategy: width/margin/padding zeroed; layout properties inherited
 * from parent flex context. The wrapper effectively becomes a
 * transparent passthrough.
 *
 * NOT using `display: contents` because:
 *   - Some screen readers drop the wrapper's role/landmark when contents
 *     is set; we don't want to hide the wrapper from a11y trees.
 *   - Launch's overlay binder uses getBoundingClientRect() on the slot
 *     element to position hover affordance and click hit zones. With
 *     `display: contents` the wrapper has no box, so rect is zero.
 *   - Inline-block-style behavior is what we actually want: a real box
 *     around each editable element so Launch can paint affordance on it.
 *
 * Result: visually identical to v1.3.2 (where these blocks rendered
 * unwrapped); structurally Launch sees a real DOM element per field.
 * =================================================================== */
.ssla-chrome-logo-slot,
.ssla-chrome-site-title-slot,
.ssla-chrome-tagline-slot,
.ssla-chrome-footer-brand-heading-slot,
.ssla-chrome-footer-brand-description-slot,
.ssla-chrome-footer-about-heading-slot,
.ssla-chrome-footer-about-description-slot,
.ssla-chrome-footer-connect-heading-slot,
.ssla-chrome-footer-connect-description-slot,
.ssla-chrome-footer-copyright-slot {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

/* In the brand-group's vertical flex, slots stack naturally — preserve
 * the brand-group's parent gap by not adding our own. */
.nav-brand-group > .ssla-chrome-logo-slot,
.nav-brand-group > .ssla-chrome-site-title-slot,
.nav-brand-group > .ssla-chrome-tagline-slot {
	width: auto;
}

/* Inside footer columns, slots become block siblings of one another;
 * the existing footer-column rules handle the spacing between heading/
 * description blocks via line-height + paragraph margins. Slots add
 * nothing on top. */
.footer-column > .ssla-chrome-footer-brand-heading-slot,
.footer-column > .ssla-chrome-footer-brand-description-slot,
.footer-column > .ssla-chrome-footer-about-heading-slot,
.footer-column > .ssla-chrome-footer-about-description-slot,
.footer-column > .ssla-chrome-footer-connect-heading-slot,
.footer-column > .ssla-chrome-footer-connect-description-slot {
	width: auto;
}

.footer-copyright > .ssla-chrome-footer-copyright-slot {
	width: auto;
}

/* v1.7.0: logo slot placeholder when no logo is set.
 *
 * Problem: when site-logo is unset, core/site-logo renders nothing on the
 * front-end. The .ssla-chrome-logo-slot wrapper has no visual extent, and
 * Launch's overlay binder has nothing to attach a hit zone to — leaving
 * the user no obvious target to upload a logo from the FE editor.
 *
 * Fix: paint a dashed-border placeholder with mild gray fill on the slot
 * ONLY when its child .wp-block-site-logo is absent. This is a deliberate,
 * conditional break from the v1.3.3 "slots are visually transparent" rule
 * — the contract said slots don't interfere with *rendered* content; here
 * there IS no rendered content, so by definition there's nothing to
 * interfere with. When the user uploads a logo, the placeholder
 * disappears automatically (the :not(:has(...)) match flips false).
 *
 * Sized to match the mobile-cap (28×28 at ≤768) and a comfortable desktop
 * footprint (44×44) so Launch's hover affordance has a real box to land on.
 * Aspect ratio square; the painted logo will replace this entirely on upload
 * so the box doesn't constrain final logo proportions. */
/* v1.10.01 selector fix: was :not(:has(.wp-block-site-logo)) which never
 * matched because core/site-logo always renders the wrapper element even
 * when no logo image is uploaded. The actual signal "no logo present" is
 * "no <img> child inside the wp-block-site-logo wrapper." Flip the
 * predicate to check for the img descendant. v1.7.0 introduced this
 * rule with the wrong predicate; the picker affordance has been
 * silently absent since v1.7.0 ship. */
/* v1.10.02 — Empty-state affordances are scoped to editing mode only.
 * In viewing mode, an empty logo slot OR an unconfigured site title would
 * otherwise show dashed-border placeholders to a public visitor — that's
 * a publishing defect. The .ssla-ov-editing body class is set by Launch's
 * overlay JS only in editing mode, so these rules engage only when an
 * admin is actively editing. */
body.ssla-ov-editing .ssla-chrome-logo-slot:not(:has(.wp-block-site-logo img)) {
	display: inline-block;
	width: 44px;
	height: 44px;
	background: var(--wp--custom--simple-chrome--placeholder-fill, #EFEFEF);
	border: 1px dashed var(--wp--custom--simple-chrome--placeholder-border, #B0B0B0);
	border-radius: 2px;
	position: relative;
}

body.ssla-ov-editing .ssla-chrome-logo-slot:not(:has(.wp-block-site-logo img))::after {
	content: '+ Logo';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--wp--custom--simple-chrome--placeholder-border, #B0B0B0);
	pointer-events: none;
}

@media (max-width: 768px) {
	body.ssla-ov-editing .ssla-chrome-logo-slot:not(:has(.wp-block-site-logo img)) {
		width: 28px;
		height: 28px;
	}
	body.ssla-ov-editing .ssla-chrome-logo-slot:not(:has(.wp-block-site-logo img))::after {
		font-size: 7px;
	}
}

/* v1.10.02 — Parallel empty-state for site title. Triggers when blogname
 * is empty (which happens when admin clears it via WP Settings or the
 * inline editor blurs an empty string). Without this affordance the slot
 * would render zero-width and leave the admin no target to click for
 * editing the title. Same dashed pattern as the logo affordance.
 *
 * Predicate: site-title block renders <a><BLOGNAME></a> or <p><BLOGNAME></p>
 * depending on whether the page is the home page. Empty blogname renders
 * an empty inner element, so the slot's text content is whitespace-only.
 * :has() with a text-empty inner element is awkward in CSS, so we use
 * a class hook (ssla-chrome-site-title-empty) that Launch adds at boot
 * when it detects empty title text. Style applies regardless of which
 * inner element type is present. */
body.ssla-ov-editing .ssla-chrome-site-title-slot.ssla-chrome-site-title-empty {
	min-width: 120px;
	min-height: 24px;
	background: var(--wp--custom--simple-chrome--placeholder-fill, #EFEFEF);
	border: 1px dashed var(--wp--custom--simple-chrome--placeholder-border, #B0B0B0);
	border-radius: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	position: relative;
}

body.ssla-ov-editing .ssla-chrome-site-title-slot.ssla-chrome-site-title-empty::after {
	content: '+ Site title';
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--wp--custom--simple-chrome--placeholder-border, #B0B0B0);
	pointer-events: none;
}

/* When the empty class is active, hide the inner block's empty rendering
 * (the bare <a> with no text) so only the placeholder shows. */
body.ssla-ov-editing .ssla-chrome-site-title-slot.ssla-chrome-site-title-empty .wp-block-site-title {
	display: none;
}

/* v1.10.03 — Populated-state boundary affordance.
 *
 * Even when populated, the logo slot and site-title slot need a visible
 * click-target boundary in editing mode so the admin can find them.
 * Pre-v1.10.03 the populated state was visually flush — admin had to
 * guess the click location, especially for logo slots that hadn't been
 * sized yet. Same dashed-border idiom as the empty-state rules, but
 * lighter (subtle outline only, no background fill — populated content
 * is the visual focus, the outline is a quiet hint).
 *
 * Editing-mode only (body.ssla-ov-editing scope). The slots become
 * flush again the moment the admin exits editing mode, so public
 * visitors never see boundary outlines.
 *
 * Logo: outlined when populated (img child present). The empty-state
 * rule above keeps the fill+placeholder when no img.
 *
 * Site title: outlined when NOT carrying the empty class (i.e. populated
 * with real text). The empty-state rule above paints fill+placeholder
 * when class is present.
 *
 * Tagline: outlined when present (no empty-state branch — the tagline
 * block ships placeholder copy "Subtitle" by default that visually
 * suffices). Outline only.
 *
 * Hover gives a slightly stronger outline so the affordance feels
 * interactive. No layout shift on hover (outline doesn't push content). */
body.ssla-ov-editing .ssla-chrome-logo-slot:has(.wp-block-site-logo img),
body.ssla-ov-editing .ssla-chrome-site-title-slot:not(.ssla-chrome-site-title-empty),
body.ssla-ov-editing .ssla-chrome-tagline-slot {
	outline: 1px dashed var(--wp--custom--simple-chrome--placeholder-border, #B0B0B0);
	outline-offset: 2px;
	transition: outline-color 0.15s ease;
}

body.ssla-ov-editing .ssla-chrome-logo-slot:has(.wp-block-site-logo img):hover,
body.ssla-ov-editing .ssla-chrome-site-title-slot:not(.ssla-chrome-site-title-empty):hover,
body.ssla-ov-editing .ssla-chrome-tagline-slot:hover {
	outline-color: #1A1D21;
}

/* ===================================================================
 * NAVIGATION SUBMENUS — DROPDOWN BREATHING ROOM
 *
 * v1.3.0 had submenu items with WP-core default ~6px vertical padding,
 * which read as "smooshed". Bump to 12px vertical / 14px horizontal,
 * with 6px gap from trigger.
 *
 * Targets all chrome-level navigations (header simple + expanded), not
 * footer nav (footer-links uses different layout).
 *
 * v1.4.0: hover-gap bug fix.
 *   v1.3.x used `margin-top: 6px` to create the visual gap between the
 *   trigger and the dropdown card. That margin is a transparent corridor
 *   the cursor must cross — and crossing it drops both `:hover` states
 *   (parent <li> and submenu container), so WP-core's hover-open logic
 *   collapses the submenu before the cursor reaches a child item.
 *
 *   Fix: keep the 6px visual gap, replace the margin with a transparent
 *   `::before` bridge of the same height. The bridge is part of the
 *   submenu container's box, so :hover stays sticky as the cursor
 *   traverses it. Visual paint is unchanged from v1.3.2 — the card edge
 *   still starts 6px below the trigger baseline.
 *
 *   Also added: small vertical padding on the trigger anchor itself
 *   (header-expanded + header-simple). The trigger's previous hover hit
 *   area was the text height alone; a diagonal cursor path could exit
 *   the trigger before reaching the bridge. Padding extends the trigger
 *   hit zone vertically without changing baseline alignment.
 * =================================================================== */

.simple-header-simple .wp-block-navigation__submenu-container,
.simple-header-expanded .wp-block-navigation__submenu-container {
	background: var(--wp--custom--simple-chrome--chrome-bg, #FAFAFA);
	border: 1px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	padding: 8px 0;
	min-width: 200px;
	/* v1.4.0: margin-top removed — see ::before bridge below. */
}

/* Hover-bridge — 6px transparent extension above the submenu card so the
 * cursor never traverses an unhovered surface between trigger and items.
 * Width matches the submenu container; height matches the prior 6px gap.
 *
 * v1.6.0: wrapped in `@media (hover: hover) and (pointer: fine)` so the
 * bridge only paints on devices with cursor hover. On touch devices core's
 * mobile overlay (overlayMenu="mobile") replaces the dropdown entirely,
 * so the bridge is moot — and at intermediate widths above the overlay
 * threshold the bridge is genuinely useful. The hit-zone padding below
 * is wrapped in the same guard for the same reason: tap targets don't
 * need a hover-corridor preserve. */
@media (hover: hover) and (pointer: fine) {
	.simple-header-simple .wp-block-navigation__submenu-container::before,
	.simple-header-expanded .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		top: -6px;
		left: 0;
		right: 0;
		height: 6px;
		background: transparent;
	}

	/* Trigger hit-zone padding — small vertical pad on parent anchors so a
	 * diagonal cursor path off the label still lands on a hovered surface
	 * before reaching the bridge. Negative margin offsets the layout shift
	 * so brand/title baseline stays where it was in v1.3.x. */
	.simple-header-simple .nav-links .wp-block-navigation-item.has-child > a,
	.simple-header-expanded .nav-links .wp-block-navigation-item.has-child > a {
		padding-block: 6px;
		margin-block: -6px;
	}
}

.simple-header-simple .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.simple-header-expanded .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 12px 14px;
	display: block;
}

.simple-header-simple .wp-block-navigation__submenu-container .wp-block-navigation-item:hover,
.simple-header-expanded .wp-block-navigation__submenu-container .wp-block-navigation-item:hover {
	background: rgba(0, 0, 0, 0.02);
}

/* ===================================================================
 * INTER-SECTION FLOW (v1.4.0)
 *
 * WP-core emits `:root :where(.is-layout-flow) > * { margin-block-start:
 * 1.2rem }` from theme.json defaults — applied to every direct child of
 * any `.is-layout-flow` container. On Simple Theme pages, Launch sections
 * sit at `<main>.is-layout-flow > <div>.entry-content.is-layout-flow >
 * <section>.ssla-section`, which means every section between the first
 * and last picks up an unrequested 19.2px gap above it. That stacks
 * against each section's own internal vertical rhythm and breaks
 * design consistency for full-bleed / edge-to-edge sections.
 *
 * Fix: zero the top margin on `.ssla-section` itself. The rule targets
 * the section element, not its descendants — so internal flow rhythm
 * (paragraphs, headings, lists inside a section) is untouched and still
 * inherits the 1.2rem default. This is a between-section concern only.
 *
 * Specificity: `.ssla-section` (0,1,0) beats `:where(.is-layout-flow) > *`
 * (0,0,1) cleanly. No `!important` required.
 *
 * Note: with this rule, two same-tone sections sit edge-to-edge with no
 * separator. That's intentional — sections own their own vertical edges
 * via internal padding. If a future band wants a hairline between
 * same-tone sections, that's a design decision, not a bug.
 * =================================================================== */

.ssla-section {
	margin-block-start: 0;
}

/* ===================================================================
 * FOOTER — SIMPLE VARIANT (Four Column)
 * Structural shape from ASK reference, neutral colors.
 * Four columns + copyright bar below.
 *
 * v1.3.1 changes:
 *   - Column ratios 1.4fr 0.8fr 1.6fr 1.2fr — narrows EXPLORE (only 2-3
 *     nav items typically), tightens BRAND, leaves ABOUT/CONNECT room.
 *   - Brand column gets WORDMARK sizing (was matched to eyebrow weight in
 *     v1.3.0 — wrong call). Body text below aligns to where eyebrows START
 *     in other columns, not to the wordmark itself.
 * =================================================================== */

.simple-footer-expanded {
	background: var(--wp--custom--simple-chrome--chrome-bg, #FAFAFA);
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	border-top: 1px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	padding: 88px clamp(24px, 5vw, 64px) 0;
}

.simple-footer-expanded .footer-columns {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 1.6fr 1.2fr;
	gap: 64px;
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: 64px;
	align-items: start;
}

/* Brand column: wordmark, NOT eyebrow-styled. Sized between body and h2. */
.simple-footer-expanded .footer-column-brand .footer-column-heading {
	color: var(--wp--custom--simple-chrome--chrome-text, #0F0F0F);
	font-size: 18px;
	font-weight: var(--wp--custom--simple-chrome--heading-weight, 700);
	letter-spacing: var(--wp--custom--simple-chrome--heading-letter-spacing, 0.5px);
	text-transform: none;
	margin: 0 0 12px;
}

/* Other column eyebrows: small caps, tracked, accent-colored.
 *
 * v1.19.07 — Color flipped from --chrome-text to --accent. Reverses the
 * v1.19.01 lock ("stay simple with white or off-white"). Glenn: "now
 * that I have lived with the look — update to accent." Brand consistency:
 * the in-article eyebrow (HUMAN SKILLS, etc.) is already accent-colored;
 * footer column eyebrows now match. Brand column heading stays
 * chrome-text — it's wordmark behavior, not eyebrow behavior. */
.simple-footer-expanded .footer-column-explore .footer-column-heading,
.simple-footer-expanded .footer-column-about .footer-column-heading,
.simple-footer-expanded .footer-column-connect .footer-column-heading {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 16px;
	/* Pad-top equivalent to brand wordmark's optical baseline so column
	 * tops feel aligned even though brand is larger. */
	padding-top: 4px;
}

.simple-footer-expanded .footer-column-text {
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.simple-footer-expanded .footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	/* v1.7.0: explicit small gap. Default core flex layout was rendering
	 * with --wp--style--block-gap (~16px+) between items, reading as
	 * "spaced out". 6px reads as a tight link list while still meeting
	 * tap-target spacing on touch via the 14px font + line-height combo. */
	gap: 6px;
}

.simple-footer-expanded .footer-links li {
	margin-bottom: 8px;
}

.simple-footer-expanded .footer-links a {
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s;
}

.simple-footer-expanded .footer-links a:hover {
	color: var(--wp--custom--simple-chrome--chrome-text, #000000);
}

/* v1.7.0: footer submenus render as indented sub-bullets, not flyout
 * dropdowns.
 *
 * Footer is a link list, not a chrome menu. When parent links have
 * children (e.g., "Services > Strategy / Build / Retainer"), the
 * children should appear as indented sub-items beneath the parent —
 * the visual idiom of a footer sitemap, not a header navigation menu.
 *
 * Core/navigation defaults to flyout dropdown for any submenu container,
 * regardless of context. Override scoped to .simple-footer-expanded so
 * header navigation submenus (which DO want flyouts) are unaffected.
 *
 * Strategy: strip the dropdown card chrome (background, border, shadow,
 * absolute positioning), make the submenu render in flow as a vertical
 * list, indent it under its parent, and shrink type one step. The
 * parent stays clickable as its own link. */
.simple-footer-expanded .footer-links .wp-block-navigation__submenu-container {
	position: static;
	display: flex;
	flex-direction: column;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 4px 0 4px 16px;
	min-width: 0;
	border-left: 1px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	margin-left: 4px;
	gap: 4px;
	opacity: 1;
	visibility: visible;
}

.simple-footer-expanded .footer-links .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 13px;
	padding: 2px 0;
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
}

.simple-footer-expanded .footer-links .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: var(--wp--custom--simple-chrome--chrome-text, #000000);
}

/* Hide the submenu toggle chevron — these are always-expanded sub-bullets,
 * not collapsible dropdowns, so the toggle button has no purpose. */
.simple-footer-expanded .footer-links .wp-block-navigation-submenu__toggle {
	display: none;
}

.simple-footer-expanded .footer-social {
	display: flex;
	gap: 16px;
	margin-top: 16px;
}

/* v1.19.0 — Social icon color overrides for chrome footer.
 *
 * WP core social-links default style applies per-service brand colors
 * (#0077B5 LinkedIn, #FF0000 YouTube, etc.) via background-color, and
 * the is-style-logos-only variation sets each .wp-social-link-{service}
 * to its brand color as `color` instead. Neither default plays well
 * with tone-aware chrome — a #FF0000 YouTube icon on a #1E4D6B navy
 * chrome looks fine, but a LinkedIn blue against navy disappears, and
 * brand colors mixed against a clean editorial chrome look loud.
 *
 * We override the per-service colors so all icons follow chrome-text
 * (white on dark chrome, dark text on light chrome). Hover bumps to
 * the accent color for affordance. Selectors match WP core's specificity
 * (using :where() pattern from WP 6.6+) so theme.json overrides still win.
 *
 * Applied only inside .simple-footer-expanded so the social-links block
 * keeps its default per-service colors when used elsewhere on the site.
 */
.simple-footer-expanded .footer-social.wp-block-social-links .wp-social-link,
.simple-footer-expanded .footer-social.wp-block-social-links.is-style-logos-only .wp-social-link {
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	background: transparent;
	transition: color 0.2s, opacity 0.2s;
}

.simple-footer-expanded .footer-social .wp-social-link a {
	color: inherit;
}

.simple-footer-expanded .footer-social .wp-social-link:hover {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

/* SVG icons paint via currentColor. WP core sets fill: currentColor on
 * the inner SVG, so the rule above propagates automatically — these
 * rules are belt-and-suspenders for browsers / WP versions that hardcoded
 * `fill` on the path. */
.simple-footer-expanded .footer-social .wp-social-link svg {
	fill: currentColor;
}

.simple-footer-expanded .footer-copyright {
	border-top: 1px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	padding: 24px 0;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	font-size: 12px;
}

/* v1.6.0: footer collapse changed from direct 4 → 1 at 768px to three-stage
 * 4 → 2 → 1. Tablet width (481–767) gets a 2-col layout that uses the real
 * estate; phone (≤480) stacks fully. The two-column intermediate preserves
 * column reading order via grid auto-flow row.
 *
 * Existing 768px rules (heading top-padding zero, copyright padding) apply
 * at any sub-768 width; only the column count changes between 2 and 1. */
@media (max-width: 768px) {
	.simple-footer-expanded {
		padding: 48px 24px 0;
	}
	.simple-footer-expanded .footer-columns {
		/* 2-col intermediate at 481–767. Drops to 1-col at ≤480
		 * via the override below. */
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
		padding-bottom: 32px;
	}
	.simple-footer-expanded .footer-column-explore .footer-column-heading,
	.simple-footer-expanded .footer-column-about .footer-column-heading,
	.simple-footer-expanded .footer-column-connect .footer-column-heading {
		padding-top: 0;
	}
	.simple-footer-expanded .footer-copyright {
		padding: 16px 0;
	}
}

@media (max-width: 480px) {
	.simple-footer-expanded .footer-columns {
		grid-template-columns: 1fr;
	}
}

/* ===================================================================
 * SIDEBAR
 * Used in single template. Minimal, conventional.
 * =================================================================== */

.simple-sidebar {
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
}

.simple-sidebar .widget-heading {
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
}

.simple-sidebar .widget {
	margin-bottom: 32px;
}

.simple-sidebar a {
	color: var(--wp--custom--simple-chrome--link-rest, #1A1A1A);
	text-decoration: none;
}

.simple-sidebar a:hover {
	color: var(--wp--custom--simple-chrome--link-hover, #000000);
}

/* ===================================================================
 * SINGLE-LAYOUT FLEX TUNING (v1.10.04)
 *
 * single.html ships a flex-wrap layout pairing .single-content (article)
 * with the sidebar template-part (.simple-sidebar). Pre-v1.10.04 the
 * layout had no theme CSS — Gutenberg's auto-generated flex rules drove
 * everything, with no width control on either child and no mobile escape.
 *
 * Desktop (≥769): article is the dominant column, sidebar trails right.
 * Article width allows the prose-group clamp to govern reading measure.
 * Sidebar takes a fixed-minimum column.
 *
 * Mobile (≤768): sidebar HIDES per UX standard v1.10.04. Categories and
 * Recent Posts are nav-adjacent content that belongs in the mobile menu
 * or footer, not crowding a 375px viewport beside an article. Article
 * takes full width.
 *
 * Future: collapsible "more from this site" drawer below article (P3
 * roadmap item, deferred). Doesn't fit MVP and the current hide-default
 * is a clean fallback. */
.single-layout {
	gap: 48px;
}

.single-layout .single-content {
	flex: 1 1 auto;
	min-width: 0;
}

.single-layout .simple-sidebar {
	flex: 0 0 260px;
}

@media (max-width: 768px) {
	.single-layout {
		gap: 24px;
	}
	.single-layout .simple-sidebar {
		display: none;
	}
}

/* ===================================================================
 * ARTICLE TEMPLATE GUTTER (single + variants)
 *
 * v1.19.04 — Article templates (single, single-with-sidebar,
 * single-with-topbar) wrap content in <main class="simple-main
 * simple-main-article"> with no inline padding. Frontend and Site Editor
 * canvas both showed content flush to viewport edge. Banner region gets
 * a negative-margin override so it can break out edge-to-edge.
 *
 * For post.php (post editor), the body class .simple-editor-prose-gutter
 * (added by simple_theme_admin_body_class_for_template in functions.php)
 * pads the editor canvas directly — see rule above.
 * =================================================================== */

.simple-main-article {
	padding-block: clamp(32px, 6vw, 80px);
	padding-inline: clamp(24px, 4vw, 48px);
}

@media (max-width: 600px) {
	.simple-main-article {
		padding-inline: 20px;
	}
}

/* Banner exception — featured-image hero region must break out to viewport
 * edges. Inside a padded .simple-main-article, the banner needs negative
 * margin to claw back the parent gutter. Uses calc(-1 * padding) so it
 * always matches whatever the responsive clamp resolved to. */
.simple-main-article .simple-article-banner {
	margin-inline: calc(-1 * clamp(24px, 4vw, 48px));
	margin-block-start: calc(-1 * clamp(32px, 6vw, 80px));
}

@media (max-width: 600px) {
	.simple-main-article .simple-article-banner {
		margin-inline: -20px;
	}
}

/* ===================================================================
 * PROSE TEMPLATE — explicit gutter + vertical rhythm
 *
 * v1.19.03 — Glenn report: "no padding even when using the Prose theme
 * page. The front end result is smooshed text and just a not gracious
 * design page." Root cause: <main class="simple-main simple-main-prose">
 * uses default layout (no padding/constraint), and the inner
 * is-style-prose-group's `padding-inline: clamp(16px, 4vw, 32px)` only
 * fires once a viewport is wide enough that 4vw exceeds 16. Below ~400px
 * that floor is 16px which reads as smooshed against a colored chrome.
 *
 * v1.19.04 — keep the prose-specific generous vertical rhythm; inline
 * gutter handled by .simple-main-prose padding-inline.
 * =================================================================== */

.simple-main-prose {
	padding-block: clamp(48px, 8vw, 120px);
	padding-inline: clamp(24px, 4vw, 48px);
}

@media (max-width: 600px) {
	.simple-main-prose {
		padding-inline: 20px;
	}
}

/* ===================================================================
 * PER-POST TITLE VISIBILITY TOGGLE
 *
 * v1.19.03 — Glenn ask: per-post checkbox to hide the page title without
 * forking a no-title template. body class .simple-hide-post-title is
 * added by simple_theme_title_toggle_body_class() (functions.php) when
 * post meta `_simple_hide_title` is truthy.
 *
 * Targets every render path the post-title block uses in the shipped
 * templates: bare H1 (Prose, Default, Compact), and the
 * .simple-article-title decorated variant (Single + variants).
 * =================================================================== */

body.simple-hide-post-title .wp-block-post-title,
body.simple-hide-post-title .simple-article-title {
	display: none;
}

/* Eyebrow + meta cluster above the title (single-article header region)
 * collapse their bottom rhythm when the title isn't there to anchor.
 * Without this the eyebrow floats with too much air below it. */
body.simple-hide-post-title .simple-article-header .simple-article-eyebrow {
	margin-block-end: 0;
}

/* ===================================================================
 * 404 PAGE
 * ASK-pattern: eyebrow + large headline + body + two CTAs + search section.
 * Generous vertical rhythm, centered alignment, neutral palette.
 * =================================================================== */

.simple-main-404 {
	padding: 80px 24px;
}

.simple-main-404 .not-found-message {
	max-width: 640px;
	margin: 0 auto;
	padding-bottom: 64px;
}

.simple-main-404 .not-found-eyebrow {
	color: var(--wp--custom--simple-chrome--accent, #666666);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 24px;
}

.simple-main-404 .not-found-headline {
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	font-size: clamp(36px, 6vw, 56px);
	font-weight: var(--wp--custom--simple-chrome--heading-weight, 700);
	letter-spacing: var(--wp--custom--simple-chrome--heading-letter-spacing, 0.5px);
	line-height: 1.15;
	margin: 0 0 24px;
}

.simple-main-404 .not-found-body {
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	font-size: 16px;
	line-height: 1.6;
	max-width: 520px;
	margin: 0 auto 40px;
}

.simple-main-404 .wp-block-buttons {
	gap: 16px;
}

.simple-main-404 .not-found-search {
	max-width: 480px;
	margin: 0 auto;
	padding-top: 48px;
	border-top: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
}

.simple-main-404 .not-found-search-label {
	color: var(--wp--custom--simple-chrome--muted, #666666);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 16px;
}

@media (max-width: 768px) {
	.simple-main-404 {
		padding: 48px 16px;
	}
	.simple-main-404 .not-found-message {
		padding-bottom: 40px;
	}
	.simple-main-404 .not-found-search {
		padding-top: 32px;
	}
}


/* ===================================================================
 * MOBILE RESPONSIVE — HEADER + CORE NAVIGATION OVERLAY (v1.6.0)
 *
 * Below 768px, the inline nav cluster collapses into core/navigation's
 * built-in mobile overlay (overlayMenu="mobile" set in template parts).
 * Core handles hamburger button injection, overlay open/close state,
 * focus trap, esc-to-close, and ARIA. We restyle the overlay panel and
 * the open/close buttons to match Simple Theme's paint surface.
 *
 * Architectural note: switching overlayMenu to "mobile" was the lean
 * over building a custom drawer (ref: wireframe v1, defaults A–D,
 * approved 2026-05-05). Same principle as the v1.5.0 chrome-binder —
 * use the surface that should own it instead of building parallel
 * infrastructure. Tradeoff: overlay is full-viewport top-down rather
 * than the wireframe's slide-in-right. Documented divergence.
 *
 * Core overlay default breakpoint is ~600px. Core doesn't expose the
 * overlay breakpoint as a CSS custom property — the threshold is
 * hardcoded in the block's stylesheet via media queries. To engage the
 * overlay at our chosen 768px instead, we mirror core's open/closed
 * display rules at our breakpoint, scoped to our header containers.
 * Above 768 the existing flex-wrap layout runs unchanged; below 768
 * the inline nav hides and the hamburger button (rendered by core when
 * overlayMenu="mobile") becomes the only visible nav surface.
 *
 * Hover-bridge from v1.4.0 sub-delivery 1 is wrapped in a hover-capable
 * media guard above (search the file for "hover: hover"); below the
 * mobile threshold submenus paint as expanded items inside the overlay,
 * not as flyout cards, so the bridge is correctly inert there.
 * =================================================================== */

/* Hide tagline at mobile — header-expanded only, where tagline lives.
 * Saves vertical real estate; brand identity preserved via logo + title. */
@media (max-width: 768px) {
	.simple-header-expanded .ssla-chrome-tagline-slot {
		display: none;
	}

	/* Logo image: scale down from desktop's 40px to a 32px mobile footprint.
	 * Constraint sits on the img (intrinsic-aspect preserved) rather than
	 * the slot wrapper (which would also squeeze the empty-state placeholder).
	 *
	 * v1.10.04 — Was max-width: 28px on the slot wrapper, which (a) was too
	 * small to read a real brand mark, and (b) wrong target — the slot also
	 * hosts the 44×44 empty-state placeholder, which would have been crushed
	 * by a slot-level 28px constraint in editing mode. Moved to the img and
	 * sized for legibility. */
	.simple-header-expanded .nav-brand-group .wp-block-site-logo img,
	.simple-header-simple .nav-brand-group .wp-block-site-logo img {
		max-height: 32px;
	}
}

/* Force core's mobile overlay to engage at ≤768px instead of core's
 * default ~600px. Core's overlay applies these display rules at its own
 * breakpoint; we re-apply them at ours. This is necessary because core
 * doesn't expose the overlay breakpoint as a CSS custom property — the
 * threshold is hardcoded in the block's stylesheet via media queries.
 *
 * The rules below mirror what core does at its own breakpoint, scoped
 * to our header containers. Above 768px, our flex-wrap layout from
 * earlier sections runs unchanged. Below 768px, the inline nav
 * collapses and the hamburger button (rendered by core when
 * overlayMenu="mobile") becomes the only visible nav surface. */
@media (max-width: 768px) {
	/* Show core's hamburger toggle (rendered when overlayMenu is mobile).
	 * Core hides this above its own breakpoint; we explicitly re-show in
	 * our 600–768 range where core would otherwise have hidden it. */
	.simple-header-simple .wp-block-navigation__responsive-container-open,
	.simple-header-expanded .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	/* Hide the inline nav-links container in the closed state. Core's own
	 * overlay rules handle the open state (full-viewport panel). */
	.simple-header-simple .wp-block-navigation__responsive-container:not(.is-menu-open),
	.simple-header-expanded .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}
}

/* Core overlay panel — restyle to match Simple Theme paint surface.
 * Core renders the panel with class `.wp-block-navigation__responsive-container`
 * and applies `.is-menu-open` while open. Style only the open state; the
 * closed-state rules above handle hide. */
.simple-header-simple .wp-block-navigation__responsive-container.is-menu-open,
.simple-header-expanded .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--custom--simple-chrome--chrome-bg, #FAFAFA);
	color: var(--wp--custom--simple-chrome--ink, #1A1A1A);
	padding: 24px;
}

/* Overlay close button — top-right, padded for 44×44 tap target. */
.simple-header-simple .wp-block-navigation__responsive-container-close,
.simple-header-expanded .wp-block-navigation__responsive-container-close {
	color: var(--wp--custom--simple-chrome--ink, #1A1A1A);
	padding: 12px;
	min-width: 44px;
	min-height: 44px;
}

/* Hamburger toggle — match the close button's tap target and ink color.
 * Core's default styling is fine size-wise; we only normalize color and
 * ensure the 44×44 minimum. */
.simple-header-simple .wp-block-navigation__responsive-container-open,
.simple-header-expanded .wp-block-navigation__responsive-container-open {
	color: var(--wp--custom--simple-chrome--ink, #1A1A1A);
	padding: 12px;
	min-width: 44px;
	min-height: 44px;
	background: transparent;
	border: 1px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	border-radius: 3px;
}

/* Overlay nav items — Georgia 18px, hairline rule between items, 44px min
 * height for tap targets. Matches the wireframe's drawer typography. */
.simple-header-simple .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.simple-header-expanded .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	max-width: 480px;
	margin: 24px auto 0;
}

.simple-header-simple .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.simple-header-expanded .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	width: 100%;
}

.simple-header-simple .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.simple-header-expanded .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--custom--simple-chrome--serif, Georgia, serif);
	font-size: 18px;
	font-weight: 400;
	color: var(--wp--custom--simple-chrome--ink, #1A1A1A);
	padding: 14px 4px;
	min-height: 44px;
	display: flex;
	align-items: center;
}

/* Submenus inside overlay — render as indented expanded items, not flyout
 * cards. Core handles the toggle via its built-in submenu controller. */
.simple-header-simple .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container,
.simple-header-expanded .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0 0 0 16px;
	border-left: 1px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	margin: 0 0 0 4px;
	min-width: 0;
}

.simple-header-simple .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.simple-header-expanded .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 14px;
	padding: 12px 4px;
}


/* ===================================================================
 * NAV LINK SPECIFICITY NOTE
 *
 * The .simple-header-* .nav-links a selectors target core/navigation block
 * descendants. WP's default core/navigation styling typically lands at
 * specificity 0,1,1 via global-styles. Our 0,2,1 wins cleanly.
 *
 * If a future Site Editor change to global-styles increases core/navigation's
 * link specificity, the fix is moving the rule structure into theme.json
 * styles.blocks["core/navigation"] rather than adding !important here.
 * =================================================================== */


/* =====================================================================
 * v1.10.0 — Prose Group
 * =====================================================================
 *
 * Selectors target the className applied by:
 *   (1) the simple-theme/prose-group BLOCK PATTERN (inserter affordance),
 *   (2) the "Prose group" BLOCK STYLE on core/group (inspector affordance),
 *   (3) the five page templates (single, page, archive, search, 404)
 *       which apply this className to their content wrapper.
 *
 * One className, three authoring surfaces, one rule set. That's the
 * architectural anchor.
 *
 * What these rules do:
 *   - Vertical rhythm via --wp--preset--spacing--* (theme.json scale).
 *   - Sensible spacing between block-level descendants.
 *   - Blockquote, list, code-block treatment matched to chrome tokens.
 *   - Link styling inside prose distinct from chrome navigation links —
 *     prose links keep underlines and read at body weight (no uppercase).
 *
 * What these rules deliberately DON'T do:
 *   - Impose a serif font ramp. Theme is neutral sans by default.
 *     Editorial-tone presets layer their own ramp via theme.json
 *     styles.elements / styles.blocks overrides.
 *   - Hardcode any color. All paint resolves through chrome tokens.
 *   - Touch the first-paragraph drop cap, pull quotes, or other
 *     editorial-magazine flourishes. Those are preset-tier paint.
 *
 * Specificity strategy: bare class selector (0,1,0) so theme.json /
 * Site Editor styles can override cleanly. No !important.
 * =================================================================== */

.is-style-prose-group > * + * {
	margin-block-start: var(--wp--preset--spacing--40, 1.25rem);
}

/* v1.10.04 — Viewport-aware reading width.
 *
 * Pre-v1.10.04, templates set contentSize: 65% inline on the prose-group
 * wrapper. That percentage works on desktop (65% of ~1200px viewport
 * = ~780px, comfortable measure) but degrades on mobile (65% of 375px
 * = 243px, cramped) and on ultra-wide (65% of 2560px = 1664px, too long).
 *
 * Fix: override the constrained-layout content-size variable directly on
 * the prose-group wrapper. Children of the constrained group read from
 * --wp--style--global--content-size; we redefine it as a clamp with sane
 * bounds. Padding-inline ensures content never hits the viewport edge on
 * narrow screens (where the percentage formerly provided that breathing
 * room).
 *
 * The clamp:
 *   - Min 16ch ≈ ~12rem  — never below readable measure on small phones
 *   - Pref 65vw          — scales with viewport, matches the prior intent
 *   - Max 72ch ≈ ~46rem  — caps reading width on wide desktops where
 *                          long line length hurts comprehension (Bringhurst
 *                          rule of thumb: 45–75 characters per line)
 *
 * Padding-inline uses clamp for the same viewport-aware behavior on the
 * outer gutter. */
.is-style-prose-group {
	--wp--style--global--content-size: clamp(16ch, 65vw, 72ch);
	padding-inline: clamp(16px, 4vw, 32px);
}

.is-style-prose-group p {
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, sans-serif);
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	line-height: 1.65;
}

.is-style-prose-group li,
.is-style-prose-group .wp-block-list,
.is-style-prose-group ul,
.is-style-prose-group ol {
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, sans-serif);
}

.is-style-prose-group h2 {
	margin-block-start: var(--wp--preset--spacing--60, 2rem);
	margin-block-end: var(--wp--preset--spacing--30, 0.75rem);
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	line-height: 1.2;
}

.is-style-prose-group h3 {
	margin-block-start: var(--wp--preset--spacing--50, 1.5rem);
	margin-block-end: var(--wp--preset--spacing--20, 0.5rem);
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	line-height: 1.25;
}

.is-style-prose-group h4,
.is-style-prose-group h5,
.is-style-prose-group h6 {
	margin-block-start: var(--wp--preset--spacing--40, 1.25rem);
	margin-block-end: var(--wp--preset--spacing--20, 0.5rem);
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
}

/* Lists — readable indent + list-marker spacing.
 * .wp-block-list selector wins over core/list's tighter default. */
.is-style-prose-group ul,
.is-style-prose-group ol,
.is-style-prose-group .wp-block-list {
	padding-inline-start: var(--wp--preset--spacing--50, 1.5rem);
}

.is-style-prose-group li + li {
	margin-block-start: var(--wp--preset--spacing--20, 0.5rem);
}

.is-style-prose-group li > ul,
.is-style-prose-group li > ol {
	margin-block-start: var(--wp--preset--spacing--20, 0.5rem);
}

/* Blockquote — left rule using token color, italic body.
 * Quote content sits in the prose column without secondary indent. */
.is-style-prose-group blockquote,
.is-style-prose-group .wp-block-quote {
	margin-block-start: var(--wp--preset--spacing--60, 2rem);
	margin-block-end: var(--wp--preset--spacing--60, 2rem);
	padding-inline-start: var(--wp--preset--spacing--40, 1.25rem);
	border-inline-start: 3px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	font-style: italic;
}

.is-style-prose-group blockquote cite,
.is-style-prose-group .wp-block-quote cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--20, 0.5rem);
	font-style: normal;
	font-size: 0.875em;
	color: var(--wp--custom--simple-chrome--muted, #666666);
}

/* Inline code + code blocks — neutral fill, no hard borders. */
.is-style-prose-group code {
	padding: 0.1em 0.35em;
	background: var(--wp--custom--simple-chrome--placeholder-fill, #EFEFEF);
	font-size: 0.9em;
}

.is-style-prose-group pre,
.is-style-prose-group .wp-block-code {
	margin-block-start: var(--wp--preset--spacing--50, 1.5rem);
	margin-block-end: var(--wp--preset--spacing--50, 1.5rem);
	padding: var(--wp--preset--spacing--40, 1.25rem);
	background: var(--wp--custom--simple-chrome--placeholder-fill, #EFEFEF);
	overflow-x: auto;
}

.is-style-prose-group pre code,
.is-style-prose-group .wp-block-code code {
	padding: 0;
	background: transparent;
}

/* Prose links — DELIBERATELY distinct from chrome navigation.
 *
 * Chrome links (header nav, footer nav) ship uppercase, weighted, no
 * underline. Prose links are body-text affordances: lowercase (inherit),
 * normal weight (inherit), with a subtle underline that thickens on hover.
 *
 * Higher-specificity selector required because chrome.css already has
 * a (.simple-header-* a, .simple-footer-* a) rule applying the chrome
 * link aesthetic. Prose-group sits in main content, not chrome — it
 * needs its own affordance.
 */
.is-style-prose-group a,
.is-style-prose-group p a,
.is-style-prose-group li a {
	color: var(--wp--custom--simple-chrome--link-rest, #1A1A1A);
	font-weight: inherit;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.is-style-prose-group a:hover,
.is-style-prose-group p a:hover,
.is-style-prose-group li a:hover {
	color: var(--wp--custom--simple-chrome--link-hover, #000000);
	text-decoration-thickness: 2px;
}

/* Horizontal rule — token color, vertical breathing room. */
.is-style-prose-group hr,
.is-style-prose-group .wp-block-separator {
	margin-block-start: var(--wp--preset--spacing--60, 2rem);
	margin-block-end: var(--wp--preset--spacing--60, 2rem);
	border: 0;
	border-top: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
}

/* Image inside prose — full-width within the prose column, slight
 * vertical breathing. wide/full-aligned images handled by core layout
 * (constrained groups respect block-level alignwide / alignfull). */
.is-style-prose-group .wp-block-image {
	margin-block-start: var(--wp--preset--spacing--50, 1.5rem);
	margin-block-end: var(--wp--preset--spacing--50, 1.5rem);
}

.is-style-prose-group .wp-block-image figcaption {
	margin-block-start: var(--wp--preset--spacing--20, 0.5rem);
	color: var(--wp--custom--simple-chrome--muted, #666666);
	font-size: 0.875em;
}

/* Editor-iframe scoping: when prose-group is rendered inside the
 * Site Editor or post editor, the same selectors apply naturally
 * via add_editor_style + enqueue_block_editor_assets — chrome.css
 * is already wired to both surfaces. No extra rules needed. */

/* =====================================================================
 * v1.11.0 — SINGLE-POST ARTICLE REGIONS
 * =====================================================================
 *
 * Eight composable regions for the single-post template, each a
 * core/group block in templates/single.html (and single-with-sidebar)
 * with its own layout.contentSize. The template stays full-bleed at
 * <main>; regions choose their own width.
 *
 * The regions:
 *   .simple-article-banner       — full bleed, optional featured image
 *   .simple-article-header       — 65%/1200px, eyebrow + title + meta
 *   .simple-article-body         — 65%/1200px, prose (uses .is-style-prose-group)
 *   .simple-article-footer       — 65%/1200px, tags
 *   .simple-article-pagination   — 65%/1200px, 2-col prev/next
 *   .simple-article-related      — 1200px, 3-col query grid
 *   .simple-article-sidebar-feature — 1200px, sidebar-as-region (variant only)
 *
 * Architectural anchor: each region uses a className hook that doubles
 * as a block pattern slot. Users dropping the same pattern into other
 * templates (or rebuilding regions from scratch via Site Editor) get
 * the same paint because they get the same className.
 *
 * Agnostic color contract: every paint reference goes through chrome
 * tokens. Theme ships neutral defaults; presets paint via theme.json
 * settings.custom.simple-chrome overrides OR via Launch's globalStyles
 * surface. No hardcoded brand colors anywhere in this section.
 *
 * Specificity strategy: bare className selectors (0,1,0) — same as
 * prose-group. theme.json / Site Editor styles override cleanly. No
 * !important. Block-element-modifier sub-rules at (0,2,0).
 * ===================================================================== */

/* --- Region 1: Hero (v1.20.0 — journalistic wrap pattern) ----------
 *
 * Glenn report on v1.19.x ship cycle: the split-column hero
 * (image 1/3, masthead 2/3) reads as two stacked sections, not one
 * editorial unit. The image and the lede are spatially disconnected;
 * a "shelf" sits between hero and first paragraph.
 *
 * Replacement pattern (newspaper / magazine convention): the masthead
 * (eyebrow + title + meta) spans full content column above. Below, the
 * featured image floats LEFT into the body and the first 2-3 paragraphs
 * wrap around it. After the wrap clears, body returns to full column.
 *
 * Markup contract (single.html, single-with-sidebar.html, single-with-topbar.html):
 *
 *   .simple-article-hero.simple-article-hero-masthead   (constrained 820px)
 *     > .simple-article-eyebrow      (post-terms — accent)
 *     > .simple-article-title        (post-title h1)
 *     > .simple-article-meta         (byline / date / read-time, with rules)
 *
 *   .simple-article-body.simple-article-body-wrap.is-style-prose-group   (constrained 820px)
 *     > .simple-article-featured-wrap   (post-featured-image, floats left)
 *     > [post-content rendered here]    (first <p> wraps around image)
 *
 * The featured image MUST be the first child of the body block so it
 * floats into paragraph 1. Mobile (≤600px): image becomes full-width
 * above the body, no float. No-image case: figure with no <img> child
 * collapses via :has() detection, body reads as title-dominant flow.
 *
 * The .simple-article-hero-split selector and its rules are retained
 * below as deprecated — any in-flight templates referencing them will
 * still paint, but new shipped templates use -masthead + -body-wrap.
 * ---------------------------------------------------------------------- */

/* Hero masthead — eyebrow + title + meta, full 820px column */
.simple-article-hero {
	margin-block-end: var(--wp--preset--spacing--60, 2rem);
}

.simple-article-hero-masthead {
	display: flex;
	flex-direction: column;
}

.simple-article-hero-masthead .simple-article-eyebrow,
.simple-article-hero-masthead .simple-article-eyebrow a {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--simple-chrome--eyebrow-tracking, 0.15em);
	color: var(--wp--custom--simple-chrome--accent, #666666);
	margin: 0 0 var(--wp--preset--spacing--30, 1rem);
	text-decoration: none;
}

.simple-article-hero-masthead .simple-article-title {
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin: 0 0 var(--wp--preset--spacing--40, 1.5rem);
}

.simple-article-hero-masthead .simple-article-meta {
	display: flex;
	gap: var(--wp--preset--spacing--40, 1.25rem);
	align-items: center;
	flex-wrap: wrap;
	padding-block: var(--wp--preset--spacing--30, 0.85rem);
	border-block-start: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	border-block-end: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	font-size: 13px;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	margin: 0;
}

.simple-article-hero-masthead .simple-article-byline {
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	font-weight: 500;
}

/* Body wrap — featured image floats into first paragraphs */
.simple-article-body-wrap {
	margin-block-end: var(--wp--preset--spacing--70, 3rem);
}

.simple-article-body-wrap .simple-article-featured-wrap,
.simple-article-body-wrap .wp-block-post-featured-image.simple-article-featured-wrap {
	float: left;
	width: 42%;
	margin: 6px var(--wp--preset--spacing--50, 2rem) var(--wp--preset--spacing--40, 1rem) 0;
}

.simple-article-body-wrap .simple-article-featured-wrap img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Subheads inside the body force clear so they break out of the wrap
 * rather than getting trapped inside the floated image's column. */
.simple-article-body-wrap h2,
.simple-article-body-wrap h3,
.simple-article-body-wrap .wp-block-heading {
	clear: both;
}

/* Mobile: image becomes full-width above the body. No float. */
@media (max-width: 600px) {
	.simple-article-body-wrap .simple-article-featured-wrap,
	.simple-article-body-wrap .wp-block-post-featured-image.simple-article-featured-wrap {
		float: none;
		width: 100%;
		margin: 0 0 var(--wp--preset--spacing--40, 1.25rem) 0;
	}
	.simple-article-body-wrap .simple-article-featured-wrap img {
		aspect-ratio: 16 / 9;
	}
}

/* --- No-featured-image fallback (v1.20.0) --------------------------
 *
 * When the post has no featured image, WP renders an empty <figure>
 * with no <img>. The float reserves no space (auto width on empty
 * figure is 0), but the figure still takes a line. Collapse it
 * entirely via :has() so the body reads as title-dominant flow.
 *
 * :has() support: Chrome 105+, Safari 15.4+, Firefox 121+. Browsers
 * without :has() get the empty figure with zero visible footprint —
 * still acceptable degradation. */

.simple-article-body-wrap:not(:has(.simple-article-featured-wrap img)) .simple-article-featured-wrap {
	display: none;
}

/* --- Legacy: .simple-article-hero-split (v1.19.06 — deprecated) -----
 *
 * Retained so any in-flight builds or third-party templates referencing
 * the split markup still paint. New templates use -masthead + -body-wrap
 * above. Remove this block when no consumers remain. */

.simple-article-hero-split .simple-article-hero__columns {
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	margin-block: 0;
}

.simple-article-hero-split .simple-article-hero__media .wp-block-post-featured-image {
	width: 100%;
	margin: 0;
}

.simple-article-hero-split .simple-article-hero__media .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.simple-article-hero-split .simple-article-hero__copy {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30, 1rem);
}

.simple-article-hero-split .simple-article-hero__copy .simple-article-eyebrow,
.simple-article-hero-split .simple-article-hero__copy .simple-article-eyebrow a {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--simple-chrome--eyebrow-tracking, 0.12em);
	color: var(--wp--custom--simple-chrome--accent, #666666);
	margin: 0;
	text-decoration: none;
}

.simple-article-hero-split .simple-article-hero__copy .simple-article-title {
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin: 0;
}

.simple-article-hero-split .simple-article-hero__copy .simple-article-meta {
	gap: var(--wp--preset--spacing--40, 1.25rem);
	padding-block-start: var(--wp--preset--spacing--30, 1rem);
	border-block-start: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	font-size: 13px;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	margin: 0;
}

@media (max-width: 768px) {
	.simple-article-hero-split .simple-article-hero__columns {
		flex-direction: column;
		gap: var(--wp--preset--spacing--40, 1.25rem);
	}
	.simple-article-hero-split .simple-article-hero__media,
	.simple-article-hero-split .simple-article-hero__copy {
		flex-basis: 100% !important;
		width: 100%;
	}
	.simple-article-hero-split .simple-article-hero__media .wp-block-post-featured-image img {
		aspect-ratio: 16 / 9;
	}
}

.simple-article-hero-split:not(:has(.simple-article-hero__media .wp-block-post-featured-image img)) .simple-article-hero__media {
	display: none;
}

.simple-article-hero-split:not(:has(.simple-article-hero__media .wp-block-post-featured-image img)) .simple-article-hero__copy {
	flex-basis: 100% !important;
	width: 100%;
	max-width: 800px;
	margin-inline: auto;
	text-align: left;
}

.simple-article-hero-split:not(:has(.simple-article-hero__media .wp-block-post-featured-image img)) .simple-article-hero__copy .simple-article-title {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.simple-article-hero-split:not(:has(.simple-article-hero__media .wp-block-post-featured-image img)) {
	padding-block: clamp(32px, 6vw, 80px) 0;
}

/* --- Region 1 (legacy): Banner ------------------------------------ */
/* Full-bleed featured image. The region wrapper is intrinsic-block; the
 * featured-image block inside fills it with declared aspect ratio.
 *
 * v1.19.06 — Banner kept for backward compat but no longer used by the
 * shipped single templates. .simple-article-hero (above) is the new
 * default. Authors who want the old full-bleed look can still use
 * .simple-article-banner in custom templates. */
.simple-article-banner {
	margin-block-end: var(--wp--preset--spacing--70, 3rem);
}

.simple-article-banner .wp-block-post-featured-image {
	width: 100%;
	max-width: none;
	aspect-ratio: var(--wp--custom--simple-chrome--article-banner-aspect, 16 / 7);
	overflow: hidden;
}

/* v1.19.04 — Glenn report: banner still rendering half-width on frontend
 * after v1.19.03's align:full added to the template markup. Root cause:
 * WP emits a <figure class="wp-block-post-featured-image alignfull">
 * with the intrinsic image dimensions controlling the figure's natural
 * width when no explicit width/height is set. The width:100% rule was
 * being shadowed by an inline max-width from the layout system.
 *
 * Force the figure to span its container regardless of WP's layout
 * machinery. The alignfull class is also explicitly handled here for
 * parity. */
.simple-article-banner figure.wp-block-post-featured-image,
.simple-article-banner figure.wp-block-post-featured-image.alignfull {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.simple-article-banner .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --- Region 2: Header ----------------------------------------------- */
.simple-article-header {
	margin-block-end: var(--wp--preset--spacing--70, 3rem);
}

.simple-article-header .simple-article-eyebrow,
.simple-article-header .simple-article-eyebrow a {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--simple-chrome--eyebrow-tracking, 0.12em);
	color: var(--wp--custom--simple-chrome--accent, #666666);
	margin-block-end: var(--wp--preset--spacing--30, 1rem);
	text-decoration: none;
}

.simple-article-header .simple-article-title {
	/* v1.19.08 — Reverses v1.19.07 Georgia !important. Chrome sans by
	 * default; tracks the chrome font axis. Weight bumped 400 → 600 since
	 * sans-serif at heading sizes needs more weight to read as headline. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin: 0 0 var(--wp--preset--spacing--40, 1.5rem);
	max-width: 900px;
}

.simple-article-meta {
	gap: var(--wp--preset--spacing--40, 1.25rem);
	padding-block-start: var(--wp--preset--spacing--30, 1rem);
	border-block-start: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	font-size: 13px;
	color: var(--wp--custom--simple-chrome--muted, #666666);
}

.simple-article-byline {
	gap: var(--wp--preset--spacing--20, 0.5rem);
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
}

.simple-article-byline .wp-block-avatar img {
	border-radius: 50%;
	display: block;
}

.simple-article-byline .wp-block-post-author-name,
.simple-article-byline .wp-block-post-author-name a {
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.simple-article-meta .simple-article-date,
.simple-article-meta .wp-block-shortcode {
	color: var(--wp--custom--simple-chrome--muted, #666666);
}

/* --- Region 3: Body (composes with .is-style-prose-group rules above) --- */
.simple-article-body {
	margin-block-end: var(--wp--preset--spacing--70, 3rem);
	/* v1.19.06 — Force chrome sans on article body content. Glenn report:
	 * "fonts are not adopting fully" — body paragraphs rendered in a serif
	 * (or fallback) face despite body { font-family: sans } on the root.
	 * Likely cause: post-content block inherits from WP-core's elements
	 * config or the post-content wrapper picks up a default font. Explicit
	 * binding here makes the article body authoritative on its own font. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.simple-article-body .wp-block-post-content,
.simple-article-body .wp-block-post-content p,
.simple-article-body .wp-block-post-content li {
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

/* Drop cap on first paragraph of the article body specifically.
 * Scoped to .simple-article-body (not all prose-groups) so it only
 * lands on actual articles, not on prose-group instances dropped
 * elsewhere in the build.
 *
 * v1.19.08 — Reverses v1.19.07's Georgia !important lock. Glenn: "this
 * site is sans not serif and you just forced a serif." The drop cap is
 * a size/color treatment, not a typeface treatment. Bind explicitly to
 * --font-family (chrome sans) so it tracks whatever the site is using.
 * No !important — inheritance is the desired path.
 *
 * The serif-family token is still defined in theme.json for any preset
 * that wants to mix sans body + serif drop cap intentionally; those
 * presets can override at .has-drop-cap-serif scope. Default is sans. */
.simple-article-body > p:first-of-type::first-letter,
.simple-article-body .wp-block-post-content > p:first-of-type::first-letter {
	float: left;
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: 4.5em;
	line-height: 0.85;
	padding: 6px 12px 0 0;
	color: var(--wp--custom--simple-chrome--accent, #666666);
	font-weight: 400;
}

/* Inline <mark> highlight — uses prose-mark token so presets can recolor
 * without touching the rule. Default is neutral grey for agnostic ship. */
.simple-article-body mark,
.simple-article-body .wp-block-post-content mark {
	background: var(--wp--custom--simple-chrome--prose-mark, rgba(0,0,0,0.10));
	padding: 0 2px;
}

/* --- Region 4: Footer (tags row) ------------------------------------ */
/* v1.19.05 — Border removed. Stacked hairlines (tags + pagination + related)
 * read as messy. Only `.simple-article-related` keeps its top hairline as
 * the single intentional rhythm break before the secondary content. */
.simple-article-footer {
	margin-block-end: var(--wp--preset--spacing--60, 2rem);
	padding-block-start: var(--wp--preset--spacing--40, 1.25rem);
}

.simple-article-footer .simple-article-tags a {
	display: inline-block;
	padding: 4px 12px;
	margin-inline-end: 8px;
	margin-block-end: 8px;
	background: var(--wp--custom--simple-chrome--accent-soft, rgba(0,0,0,0.06));
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	font-size: 12px;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.simple-article-footer .simple-article-tags a:hover {
	background: var(--wp--custom--simple-chrome--hairline, #E5E5E5);
}

/* --- Region 5: Pagination ------------------------------------------- */
/* --- Region 5: Pagination -----------------------------------------
 * v1.19.04 — Glenn report v2: "Pagination on any article page. It still
 * looks wrong and broken." Issues with v1.19.03 attempt:
 *   1. Eyebrow rule targeted .wp-block-post-navigation-link__arrow-*,
 *      but that class is on the arrow character only, not the
 *      "Previous article" / "Next article" label. So the eyebrow
 *      styling never fired.
 *   2. :empty hide didn't fire because the outer .wp-block-column
 *      wraps the empty .wp-block-post-navigation-link — column isn't
 *      :empty, it has a child.
 *   3. WP's default markup for post-navigation-link emits the label
 *      and the linked title in the same flat <a> with the arrow as a
 *      separate inline. No structural class to target for the label.
 *
 * v1.19.04 rebuild:
 *   - Use :has() selector to hide column wrapping empty nav-link.
 *   - Add ::before generated content for "Previous" / "Next" eyebrow
 *     (replaces WP's bundled "Previous article" / "Next article" labels
 *     by overriding via the showTitle:true rendering). Templates strip
 *     the WP label by passing label="" and rely on our generated content.
 *
 * Templates updated to pass label="" so generated content takes over.
 */
.simple-article-pagination {
	margin-block-end: var(--wp--preset--spacing--80, 4rem);
	padding-block-start: var(--wp--preset--spacing--60, 2rem);
	/* v1.19.05 — Top border removed. Was stacking with related-section top
	 * border to make the article tail read messy. Pagination now floats in
	 * its own white space rhythm. */
}

.simple-article-pagination .wp-block-columns {
	gap: var(--wp--preset--spacing--50, 1.5rem);
	align-items: flex-start;
}

/* Hide a column whose only child is an empty (first/last post) navigation
 * link. :has() lands on the column wrapper so the surviving sibling
 * column gets all the row width via flex. */
.simple-article-pagination .wp-block-column:has(> .wp-block-post-navigation-link:empty) {
	display: none;
}

/* Also handle the case where the nav-link block is itself empty without
 * a column wrapper. */
.simple-article-pagination .wp-block-post-navigation-link:empty {
	display: none;
}

.simple-article-pagination .wp-block-post-navigation-link {
	display: block;
	padding: 0;
	border: 0;
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	text-decoration: none;
	transition: color 0.15s ease;
	position: relative;
}

/* v1.19.05 — Pagination UX pass. Glenn: "prev/next just need a good ui pass."
 *
 * Eyebrow + serif title + arrow affordance. Eyebrow stays accent-colored
 * uppercase tracker (already there from v1.19.04). Title now uses the serif
 * family at a larger size for editorial weight matching the article title
 * itself. Arrow ('←' / '→') prepended to prev, appended to next via
 * generated content on the link element itself (separate from the
 * eyebrow `::before` which sits on the wrapper).
 */
.simple-article-pagination-prev::before {
	content: "Previous article";
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--simple-chrome--eyebrow-tracking, 0.12em);
	text-transform: uppercase;
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
	margin-block-end: 8px;
}

.simple-article-pagination-next::before {
	content: "Next article";
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--simple-chrome--eyebrow-tracking, 0.12em);
	text-transform: uppercase;
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
	margin-block-end: 8px;
	text-align: end;
}

.simple-article-pagination .wp-block-post-navigation-link a {
	color: inherit;
	text-decoration: none;
	/* v1.19.08 — Sans default (was serif-family). Site is sans; this
	 * follows the global axis. Weight bumped 400 → 500 for headline read. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	line-height: 1.3;
	font-weight: 500;
	letter-spacing: -0.01em;
	transition: color 0.15s ease;
	display: inline-block;
}

/* Arrow affordance — separate from the eyebrow. Sits inline with the
 * linked title so it tracks hover with the link, not the wrapper. */
.simple-article-pagination-prev .wp-block-post-navigation-link a::before {
	content: "← ";
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
	margin-inline-end: 4px;
	transition: transform 0.2s ease;
	display: inline-block;
}

.simple-article-pagination-next .wp-block-post-navigation-link a::after {
	content: " →";
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
	margin-inline-start: 4px;
	transition: transform 0.2s ease;
	display: inline-block;
}

.simple-article-pagination-prev .wp-block-post-navigation-link a:hover::before {
	transform: translateX(-4px);
}

.simple-article-pagination-next .wp-block-post-navigation-link a:hover::after {
	transform: translateX(4px);
}

.simple-article-pagination .wp-block-post-navigation-link a:hover {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

.simple-article-pagination-next .wp-block-post-navigation-link {
	text-align: end;
}

/* --- Region 6: Related ----------------------------------------------
 * v1.19.03 — bumped block-end margin from 70 (3rem) → 80 (4rem) and
 * added padding-block-end so cards never run flush into the footer top.
 */
.simple-article-related {
	margin-block-start: var(--wp--preset--spacing--80, 4rem);
	margin-block-end: var(--wp--preset--spacing--80, 4rem);
	padding-block-start: var(--wp--preset--spacing--60, 2rem);
	padding-block-end: var(--wp--preset--spacing--50, 1.5rem);
	/* v1.19.06 — Top border removed. Glenn report: "the border lines on
	 * the bottom of the article do not look intentional but messy."
	 * Heading typography + white space are sufficient rhythm break;
	 * the hairline added visual noise instead of structural clarity. */
}

.simple-article-related-heading,
.simple-article-related h2.simple-article-related-heading,
.simple-article-related h2.wp-block-heading.simple-article-related-heading {
	/* v1.19.04 — flipped from serif-family to chrome font-family. Glenn:
	 * "fonts are serif when the rest of the website is sans, so it's not
	 * adopting the default theme." Reserve serif for the primary article
	 * title (post-title in single templates); related-section heading
	 * should follow chrome typography for hierarchy contrast.
	 * v1.19.05 — Specificity belt (see related-title rule below). */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, sans-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin: 0 0 var(--wp--preset--spacing--50, 1.5rem);
}

.simple-article-related .wp-block-post-template {
	gap: var(--wp--preset--spacing--50, 1.5rem);
}

.simple-article-related .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20, 0.5rem);
}

.simple-article-related .simple-article-related-eyebrow,
.simple-article-related .simple-article-related-eyebrow a {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--simple-chrome--eyebrow-tracking, 0.12em);
	color: var(--wp--custom--simple-chrome--accent, #666666);
	text-decoration: none;
}

.simple-article-related .simple-article-related-title,
.simple-article-related .simple-article-related-title a,
.simple-article-related h3.simple-article-related-title,
.simple-article-related h3.wp-block-post-title.simple-article-related-title,
.simple-article-related h3.wp-block-post-title.simple-article-related-title a {
	/* v1.19.04 — flipped from serif to chrome sans. Same rationale as
	 * .simple-article-related-heading above.
	 * v1.19.05 — Specificity belt: explicit h3.wp-block-post-title compound
	 * selectors so the rule beats any future parent-theme override. Glenn
	 * reported the v1.19.04 ship still rendered serif; likely cause was
	 * browser cache, but the extra specificity protects against the
	 * theme.json elements-config path WP core can use for per-block
	 * typography. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, sans-serif);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	text-decoration: none;
	margin: 0;
}

.simple-article-related .simple-article-related-excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	margin: 0;
}

.simple-article-related .simple-article-related-date {
	font-size: 12px;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	margin-block-start: auto;
}

.simple-article-related .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* --- Region 7: Sidebar feature (variant template only) ------------- */
.simple-article-sidebar-feature {
	margin-block-start: var(--wp--preset--spacing--70, 3rem);
	padding-block: var(--wp--preset--spacing--60, 2rem);
	border-block-start: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	border-block-end: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
}

/* When sidebar lives as a bottom feature region, it gets a 3-column
 * grid layout instead of the vertical stack it uses in flex-pair mode. */
.simple-article-sidebar-feature .simple-sidebar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--60, 2rem);
}

@media (max-width: 768px) {
	.simple-article-sidebar-feature .simple-sidebar {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40, 1.25rem);
	}
}

/* --- Mobile cascade for all article regions ------------------------- */
@media (max-width: 768px) {
	/* Specificity 0,2,0 beats Gutenberg's 0,1,0 .is-layout-grid rule without
	 * needing !important. Same approach used elsewhere in this section. */
	.simple-article-related .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
	.simple-article-pagination .wp-block-columns {
		flex-wrap: wrap;
	}
	.simple-article-pagination .wp-block-column {
		flex-basis: 100%;
	}
}

/* ==================================================================
 * v1.11.01 — PULL QUOTE BLOCK STYLE
 * ==================================================================
 *
 * Authoring: drop a core/pullquote or core/quote block, pick "Simple
 * pullquote" from the Styles panel. Same className on both blocks; this
 * rule set paints both via specific selectors.
 *
 * Visual contract:
 *   - Serif-italic break-out, larger scale than body
 *   - Accent left-rule via --simple-chrome-accent token
 *   - cite renders muted, normal-style, below quote body
 *   - Inside .is-style-prose-group on viewports >=768px: spills outside
 *     the prose column via negative margin-inline (mockup-faithful)
 *   - At <=768px: in-flow, no spillover (clean mobile cascade)
 *   - Free-standing in any region: paints in-flow at all viewports
 *
 * Specificity: 0,2,0 (className + element). Higher-specificity selectors
 * win the cascade. All paint via tokens. No hardcoded brand colors.
 * ------------------------------------------------------------------ */

.is-style-simple-pullquote.wp-block-pullquote,
.is-style-simple-pullquote.wp-block-quote {
	margin-block-start: var(--wp--preset--spacing--70, 2.5rem);
	margin-block-end: var(--wp--preset--spacing--70, 2.5rem);
	padding-inline-start: var(--wp--preset--spacing--50, 1.5rem);
	border-inline-start: 4px solid var(--wp--custom--simple-chrome--accent, #666666);
	border-inline-end: none;
	border-block: none;
	background: transparent;
	text-align: start;
}

.is-style-simple-pullquote.wp-block-pullquote blockquote,
.is-style-simple-pullquote.wp-block-pullquote p,
.is-style-simple-pullquote.wp-block-quote p {
	font-family: var(--wp--custom--simple-chrome--serif-family, Georgia, serif);
	font-style: italic;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	line-height: 1.4;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin: 0;
}

.is-style-simple-pullquote.wp-block-pullquote cite,
.is-style-simple-pullquote.wp-block-quote cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--30, 0.75rem);
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, sans-serif);
	font-style: normal;
	font-size: 0.875rem;
	color: var(--wp--custom--simple-chrome--muted, #666666);
}

/* Break-out behavior: pull quote inside prose-group spills outside the
 * prose column on viewports >=768px. Negative margin-inline pulls the
 * quote ~10% beyond the prose column each side, capped by region wideSize.
 * Specificity 0,2,0 keeps this from leaking to non-prose contexts. */
@media (min-width: 768px) {
	.is-style-prose-group .is-style-simple-pullquote.wp-block-pullquote,
	.is-style-prose-group .is-style-simple-pullquote.wp-block-quote {
		margin-inline-start: -10%;
		margin-inline-end: -10%;
		max-inline-size: calc(100% + 20%);
	}
}

/* ==================================================================
 * v1.12.0 — ARCHIVE TEMPLATE REGIONS
 * ==================================================================
 *
 * Four composable regions for templates/archive.html, same architectural
 * contract as v1.11.0 single-post regions: each region is a core/group
 * with its own layout.contentSize, each registered as a block pattern,
 * className -> chrome.css rule set is the single source of paint truth.
 *
 *   .simple-archive-header     65%/1200px — eyebrow + serif title + deck
 *   .simple-archive-hero       65%/1200px — featured post, 1.4fr/1fr split
 *   .simple-archive-grid       65%/1200px — 2-up query loop, 16:9 cards
 *   .simple-archive-pagination 65%/1200px — prev/next + numbered pages
 *
 * Paint is agnostic: theme ships neutral defaults from theme.json tokens;
 * presets override via globalStyles or token redefinitions. No hardcoded
 * brand colors. No cascade-override flags. Specificity 0,2,0 maximum.
 * ------------------------------------------------------------------ */

/* --- Archive header ------------------------------------------------ */
.simple-archive-header {
	margin-block-start: var(--wp--preset--spacing--80, 4rem);
	margin-block-end: var(--wp--preset--spacing--70, 2.5rem);
}

.simple-archive-header__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--simple-chrome--eyebrow-tracking, 0.12em);
	color: var(--wp--custom--simple-chrome--accent, #666666);
	margin-block-end: var(--wp--preset--spacing--30, 0.75rem);
}

.simple-archive-header__title {
	/* v1.19.08 — Sans default. Site axis. Weight 400 → 600 for headline read. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(2.25rem, 4.5vw, 3rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-block: 0 var(--wp--preset--spacing--40, 1rem);
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
}

.simple-archive-header__deck {
	font-size: 1.0625rem;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	max-inline-size: 40rem;
	margin: 0;
	line-height: 1.55;
}

/* --- Archive hero (featured post, magazine split) ------------------ */
.simple-archive-hero {
	margin-block: 0 var(--wp--preset--spacing--80, 4rem);
}

.simple-archive-hero__card {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 0;
	border: 0.5px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	transition: border-color 0.15s ease;
}

.simple-archive-hero__card:hover {
	border-color: var(--wp--custom--simple-chrome--text, #1A1A1A);
}

/* v1.13.03 — Ensure the figure wrapper fills its grid column, and force
 * the body column to honor its track allocation rather than expand from
 * intrinsic content. Without min-inline-size: 0, long unbreakable words
 * in the title push the column wider than 1fr and shove the image into
 * a narrow strip. */
.simple-archive-hero__image {
	inline-size: 100%;
	margin: 0;
}

.simple-archive-hero__image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	inline-size: 100%;
	block-size: auto;
}

.simple-archive-hero__body {
	padding: var(--wp--preset--spacing--70, 2.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-inline-start: 0.5px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	min-inline-size: 0;
}

.simple-archive-hero__eyebrow {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--simple-chrome--eyebrow-tracking, 0.12em);
	color: var(--wp--custom--simple-chrome--accent, #666666);
	margin-block-end: var(--wp--preset--spacing--30, 0.75rem);
}

.simple-archive-hero__title {
	/* v1.19.08 — Sans default. Weight 400 → 600 for headline read. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.5rem, 2.8vw, 2.25rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin-block: 0 var(--wp--preset--spacing--30, 0.75rem);
	transition: color 0.15s ease;
	overflow-wrap: break-word;
	hyphens: auto;
}

.simple-archive-hero__title a {
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	text-decoration: none;
}

.simple-archive-hero__card:hover .simple-archive-hero__title a {
	color: var(--wp--custom--simple-chrome--accent, #666666);
}

.simple-archive-hero__excerpt {
	/* v1.19.08 — Sans default. Body-weight inherits. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: 1.0625rem;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	line-height: 1.55;
	margin-block: 0 var(--wp--preset--spacing--50, 1.5rem);
}

.simple-archive-hero__meta {
	font-size: 0.75rem;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	gap: var(--wp--preset--spacing--30, 0.75rem);
}

/* --- Archive grid (2-up cards) ------------------------------------- */
.simple-archive-grid .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--70, 2.5rem) var(--wp--preset--spacing--60, 2rem);
	list-style: none;
	padding: 0;
	margin: 0;
}

.simple-archive-card {
	display: flex;
	flex-direction: column;
}

.simple-archive-card__image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	inline-size: 100%;
	block-size: auto;
	margin-block-end: var(--wp--preset--spacing--40, 1rem);
}

.simple-archive-card__eyebrow {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--custom--simple-chrome--accent, #666666);
	margin-block-end: var(--wp--preset--spacing--20, 0.5rem);
}

.simple-archive-card__title {
	/* v1.19.08 — Sans default. Weight 400 → 600. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-block: 0 var(--wp--preset--spacing--30, 0.75rem);
	transition: color 0.15s ease;
}

.simple-archive-card__title a {
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	text-decoration: none;
}

.simple-archive-card:hover .simple-archive-card__title a {
	color: var(--wp--custom--simple-chrome--accent, #666666);
}

.simple-archive-card__excerpt {
	/* v1.19.08 — Sans default. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: 0.9375rem;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	line-height: 1.55;
	margin-block: 0 var(--wp--preset--spacing--40, 1rem);
}

.simple-archive-card__meta {
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--30, 0.75rem);
	border-block-start: 0.5px solid var(--wp--custom--simple-chrome--accent-soft, rgba(0,0,0,0.06));
	font-size: 0.75rem;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	gap: var(--wp--preset--spacing--30, 0.75rem);
}

/* --- Archive pagination -------------------------------------------- */
.simple-archive-pagination {
	margin-block: var(--wp--preset--spacing--90, 6rem);
	padding-block-start: var(--wp--preset--spacing--60, 2rem);
	border-block-start: 0.5px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
}

.simple-archive-pagination .wp-block-query-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40, 1rem);
}

.simple-archive-pagination .wp-block-query-pagination-previous,
.simple-archive-pagination .wp-block-query-pagination-next {
	padding: var(--wp--preset--spacing--30, 0.75rem) var(--wp--preset--spacing--50, 1.5rem);
	border: 0.5px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	text-decoration: none;
	font-size: 0.8125rem;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.simple-archive-pagination .wp-block-query-pagination-previous:hover,
.simple-archive-pagination .wp-block-query-pagination-next:hover {
	border-color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	color: var(--wp--custom--simple-chrome--accent, #666666);
}

.simple-archive-pagination .wp-block-query-pagination-numbers {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20, 0.5rem);
	font-size: 0.8125rem;
	color: var(--wp--custom--simple-chrome--muted, #666666);
}

.simple-archive-pagination .page-numbers {
	min-inline-size: 2rem;
	min-block-size: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 var(--wp--preset--spacing--20, 0.5rem);
	color: var(--wp--custom--simple-chrome--muted, #666666);
	text-decoration: none;
	border: 0.5px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.simple-archive-pagination .page-numbers:hover {
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	border-color: var(--wp--custom--simple-chrome--hairline, #E5E5E5);
}

.simple-archive-pagination .page-numbers.current {
	color: var(--wp--custom--simple-chrome--bg, #FAFAFA);
	background: var(--wp--custom--simple-chrome--text, #1A1A1A);
	border-color: var(--wp--custom--simple-chrome--text, #1A1A1A);
}

/* --- Mobile cascade for archive regions ---------------------------- */
@media (max-width: 768px) {
	.simple-archive-hero__card {
		grid-template-columns: 1fr;
	}
	.simple-archive-hero__body {
		border-inline-start: none;
		border-block-start: 0.5px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
		padding: var(--wp--preset--spacing--50, 1.5rem);
	}
	/* Specificity 0,2,0 beats Gutenberg's 0,1,0 .is-layout-grid rule. */
	.simple-archive-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
	.simple-archive-header__title {
		font-size: 2.25rem;
	}
	.simple-archive-pagination .wp-block-query-pagination {
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--40, 1rem);
	}
}

/* =====================================================================
 * v1.13.03 — Search results template
 *
 * search.html reuses archive's card grid (.simple-archive-grid +
 * .simple-archive-card) so the visual rhythm matches. Add only the
 * search-specific bits: refined search form on the header, no-results
 * empty state.
 * ===================================================================== */

.simple-search-form-wrap {
	margin-block-start: var(--wp--preset--spacing--40, 1rem);
	max-inline-size: 480px;
}

/* WP's core/search renders as .wp-block-search with nested input+button.
 * Paint flat, no border-radius, hairline border, focus state in accent. */
.wp-block-search.simple-search-form .wp-block-search__inside-wrapper {
	border: 0.5px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	background: var(--wp--custom--simple-chrome--bg, #FFFFFF);
	transition: border-color 0.15s ease;
}

.wp-block-search.simple-search-form .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
}

.wp-block-search.simple-search-form .wp-block-search__input {
	background: transparent;
	border: none;
	padding: var(--wp--preset--spacing--30, 0.75rem) var(--wp--preset--spacing--40, 1rem);
	font: inherit;
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
}

.wp-block-search.simple-search-form .wp-block-search__input:focus {
	outline: none;
}

.wp-block-search.simple-search-form .wp-block-search__button {
	background: transparent;
	border: none;
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	padding-inline: var(--wp--preset--spacing--40, 1rem);
	cursor: pointer;
}

.wp-block-search.simple-search-form .wp-block-search__button:hover {
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
}

/* --- Empty-state when no results -------------------------------------- */
.simple-search-empty {
	padding-block: var(--wp--preset--spacing--80, 4rem);
	text-align: center;
}

.simple-search-empty__title {
	/* v1.19.08 — Sans default. Weight 400 → 600. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 600;
	color: var(--wp--custom--simple-chrome--heading, #0F0F0F);
	margin-block: 0 var(--wp--preset--spacing--30, 0.75rem);
}

.simple-search-empty__body {
	font-size: 1rem;
	color: var(--wp--custom--simple-chrome--muted, #666666);
	margin: 0;
}

/* =====================================================================
 * v1.14.0 — Additional chrome variants.
 *
 * Three new template parts join the registry:
 *   - parts/header-split.html    →  .simple-header-split
 *   - parts/footer-simple.html   →  .simple-footer-simple   (was footer-minimal in v1.15.x)
 *   - parts/footer-expanded.html →  .simple-footer-expanded (was footer-simple in v1.15.x)
 *   - parts/footer-mega.html     →  .simple-footer-mega
 *
 * All paint flows through the existing --simple-chrome--* token surface.
 * No new tokens introduced — that's Band 2 (v1.15.0) when the Launch-side
 * paint contract gets prepared for Mia.
 *
 * Each variant follows the same architectural rules as the originals:
 *   - Zero border-radius
 *   - 0.5px hairline borders via --simple-chrome--hairline
 *   - CSS variables exclusively
 *   - System font stack inherited from theme.json
 *   - Sentence case throughout
 * ===================================================================== */

/* === Header (Split — logo / nav / utility) ============================
 *
 * Three-column flex layout: brand cluster left, primary nav center,
 * utility cluster right. Reads as a more editorial/professional posture
 * than expanded — nav has its own dedicated lane rather than being
 * crowded next to utility.
 *
 * Inherits the same outer chrome paint as header-simple/expanded.
 * .nav-brand, .nav-tagline, .nav-links text styles inherit from earlier
 * rules in this file (shared with expanded). Only structural diffs need
 * declaring here.
 * =================================================================== */

.simple-header-split {
	padding-block: var(--wp--preset--spacing--40, 1rem);
	padding-inline: var(--wp--preset--spacing--50, 1.5rem);
	background: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
	border-block-end: 0.5px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	max-inline-size: 1200px;
	margin-inline: auto;
}

.simple-header-split .nav-brand-group {
	gap: var(--wp--preset--spacing--30, 0.75rem);
}

/* Primary nav lane: centered within its track, generous horizontal gap
 * between items so the row reads as a single grouped element. */
.simple-header-split .nav-primary {
	flex: 1 1 auto;
	gap: var(--wp--preset--spacing--50, 1.5rem);
}

.simple-header-split .nav-primary .wp-block-navigation {
	gap: var(--wp--preset--spacing--50, 1.5rem);
}

.simple-header-split .nav-primary a {
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	text-decoration: none;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	transition: color 0.15s ease;
}

.simple-header-split .nav-primary a:hover {
	color: var(--wp--custom--simple-chrome--accent, #666666);
}

/* Utility cluster: same chrome-utility block as expanded, right-aligned. */
.simple-header-split .nav-utility {
	flex: 0 0 auto;
}

/* Editor canvas: same sticky disable rule as the other header variants. */
.editor-styles-wrapper header.wp-block-template-part:has(.simple-header-split) {
	position: relative;
}

/* Mobile cascade: collapse the three lanes vertically. Nav cluster
 * becomes its own row beneath brand, utility tucks under nav. */
@media (max-width: 768px) {
	.simple-header-split {
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--30, 0.75rem);
	}
	.simple-header-split .nav-primary {
		order: 3;
		flex: 1 0 100%;
		justify-content: flex-start;
	}
}

/* === Footer (Minimal — single row) ====================================
 *
 * Compact one-line footer for funnel pages, checkout, or any context
 * where the four-column footer would feel heavy. Logo + copyright +
 * social, flexed across a single row at desktop, stacked at mobile.
 * =================================================================== */

.simple-footer-simple {
	padding-block: var(--wp--preset--spacing--50, 1.5rem);
	padding-inline: var(--wp--preset--spacing--50, 1.5rem);
	background: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
	border-block-start: 0.5px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
}

.footer-minimal__row {
	max-inline-size: 1200px;
	margin-inline: auto;
	gap: var(--wp--preset--spacing--40, 1rem);
}

.footer-minimal__brand {
	gap: var(--wp--preset--spacing--30, 0.75rem);
}

.footer-minimal__brand .wp-block-site-logo img {
	block-size: 28px;
	inline-size: auto;
}

.footer-minimal__title {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	margin: 0;
}

.footer-minimal__copyright-text {
	font-size: 0.75rem;
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	letter-spacing: 0.02em;
	margin: 0;
}

.footer-minimal__social .wp-social-link {
	background: transparent;
}

@media (max-width: 768px) {
	.footer-minimal__row {
		flex-direction: column;
		text-align: center;
	}
}

/* === Footer (Mega — newsletter + columns) =============================
 *
 * Three vertical sections stacked:
 *   1. Newsletter band (heading + copy left, form right)
 *   2. Four-column link grid (brand+address / explore / about / connect)
 *   3. Bottom row (copyright left, legal nav right)
 *
 * The newsletter band sits on --simple-chrome--surface to provide
 * one-tone separation from the columns below (same pattern as the
 * v1.13.01 topbar treatment). Form input + button paint flat, zero
 * border-radius, hairline borders.
 * =================================================================== */

.simple-footer-mega {
	background: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
	border-block-start: 0.5px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
}

/* --- Newsletter band ----------------------------------------------- */
.footer-mega__newsletter {
	background: var(--wp--custom--simple-chrome--surface, #FAFAFA);
	border-block-end: 0.5px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	padding-block: var(--wp--preset--spacing--70, 2.5rem);
	padding-inline: var(--wp--preset--spacing--50, 1.5rem);
}

.footer-mega__newsletter-inner {
	max-inline-size: 1200px;
	margin-inline: auto;
	gap: var(--wp--preset--spacing--60, 2rem);
}

.footer-mega__newsletter-copy {
	flex: 1 1 280px;
}

.footer-mega__newsletter-heading {
	/* v1.19.08 — Sans default. Weight 400 → 600. */
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: clamp(1.5rem, 2.5vw, 1.875rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wp--custom--simple-chrome--chrome-text, #0F0F0F);
	margin-block: 0 var(--wp--preset--spacing--20, 0.5rem);
}

.footer-mega__newsletter-text {
	font-size: 0.9375rem;
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	line-height: 1.5;
	margin: 0;
}

.footer-mega__newsletter-form {
	flex: 0 1 360px;
}

.footer-mega__newsletter-form-inner {
	display: flex;
	gap: 0;
	border: 0.5px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	background: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
	transition: border-color 0.15s ease;
}

.footer-mega__newsletter-form-inner:focus-within {
	border-color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
}

.footer-mega__newsletter-form-inner input[type="email"] {
	flex: 1;
	background: transparent;
	border: none;
	padding: var(--wp--preset--spacing--30, 0.75rem) var(--wp--preset--spacing--40, 1rem);
	font: inherit;
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
}

.footer-mega__newsletter-form-inner input[type="email"]:focus {
	outline: none;
}

.footer-mega__newsletter-form-inner button[type="submit"] {
	background: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
	color: var(--wp--custom--simple-chrome--chrome-bg, #FFFFFF);
	border: none;
	padding-inline: var(--wp--preset--spacing--50, 1.5rem);
	padding-block: 0;
	font: inherit;
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.footer-mega__newsletter-form-inner button[type="submit"]:hover {
	background: var(--wp--custom--simple-chrome--accent, #666666);
}

/* --- Column grid --------------------------------------------------- */
.footer-mega__columns {
	max-inline-size: 1200px;
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--70, 2.5rem);
	padding-inline: var(--wp--preset--spacing--50, 1.5rem);
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: var(--wp--preset--spacing--70, 2.5rem) var(--wp--preset--spacing--60, 2rem);
}

.simple-footer-mega .footer-column {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30, 0.75rem);
}

.footer-mega__address {
	margin-block-start: var(--wp--preset--spacing--30, 0.75rem);
}

.footer-mega__address-text {
	font-size: 0.8125rem;
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	line-height: 1.5;
}

.footer-mega__social {
	margin-block-start: var(--wp--preset--spacing--30, 0.75rem);
}

.footer-mega__social .wp-social-link {
	background: transparent;
}

/* --- Bottom row ---------------------------------------------------- */
.footer-mega__bottom {
	max-inline-size: 1200px;
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--40, 1rem);
	padding-inline: var(--wp--preset--spacing--50, 1.5rem);
	border-block-start: 0.5px solid var(--wp--custom--simple-chrome--chrome-hairline, #E5E5E5);
	gap: var(--wp--preset--spacing--40, 1rem);
}

.footer-mega__copyright {
	font-size: 0.75rem;
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	letter-spacing: 0.02em;
	margin: 0;
}

.footer-mega__legal a {
	color: var(--wp--custom--simple-chrome--chrome-muted, #666666);
	text-decoration: none;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	transition: color 0.15s ease;
}

.footer-mega__legal a:hover {
	color: var(--wp--custom--simple-chrome--chrome-text, #1A1A1A);
}

/* --- Mobile cascade for mega -------------------------------------- */
@media (max-width: 1024px) {
	.footer-mega__columns {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.footer-mega__newsletter-inner {
		flex-direction: column;
		align-items: stretch;
	}
	.footer-mega__newsletter-form {
		flex: 1 1 100%;
	}
	.footer-mega__columns {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--60, 2rem);
	}
	.footer-mega__bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* =====================================================================
 * v1.15.0 — Nav block styles
 *
 * Three styles registered on core/navigation via register_block_style:
 *   - is-style-nav-simple    (default; matches prior behavior)
 *   - is-style-nav-pills     (square pill hover/active, no radius)
 *   - is-style-nav-underline (persistent underline, editorial)
 *
 * Active style is applied site-wide by a render_block filter that
 * injects the className based on the chrome config's nav_style axis.
 * Authors can override per-block by setting is-style-nav-* manually.
 * ===================================================================== */

/* === Simple — default state ============================================
 * Matches the existing .nav-links hover behavior (subtle underline,
 * accent color shift on hover). Declared explicitly so authors who
 * apply the style without inheriting from the default still get it.
 * ===================================================================== */
.is-style-nav-simple .wp-block-navigation-item__content,
.is-style-nav-simple a {
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	text-decoration: none;
	transition: color 0.15s ease;
}

.is-style-nav-simple .wp-block-navigation-item__content:hover,
.is-style-nav-simple a:hover {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

/* === Pills =============================================================
 * Square pill hover/active with hairline border. Zero radius per locked
 * SS UI standard. Faint surface fill on hover, slightly stronger fill
 * on active/current-page state. Padding tightens the click target.
 * ===================================================================== */
.is-style-nav-pills .wp-block-navigation-item__content,
.is-style-nav-pills a {
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	text-decoration: none;
	padding: 0.25rem 0.625rem;
	border: 0.5px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.is-style-nav-pills .wp-block-navigation-item__content:hover,
.is-style-nav-pills a:hover {
	background: var(--wp--custom--simple-chrome--accent-soft, rgba(212, 116, 14, 0.08));
	border-color: var(--wp--custom--simple-chrome--hairline, #E5E5E5);
}

.is-style-nav-pills .current-menu-item > .wp-block-navigation-item__content,
.is-style-nav-pills .current-menu-item > a,
.is-style-nav-pills [aria-current="page"] {
	background: var(--wp--custom--simple-chrome--accent-soft, rgba(212, 116, 14, 0.08));
	border-color: var(--wp--custom--simple-chrome--accent, #D4740E);
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

/* === Underline =========================================================
 * Persistent thin underline beneath every nav item. Thicker on hover
 * and active. Editorial / magazine feel. Underline drawn with
 * border-bottom rather than text-decoration so the line color and
 * thickness are independent of text color.
 * ===================================================================== */
.is-style-nav-underline .wp-block-navigation-item__content,
.is-style-nav-underline a {
	color: var(--wp--custom--simple-chrome--text, #1A1A1A);
	text-decoration: none;
	padding-block-end: 0.25rem;
	border-block-end: 1px solid var(--wp--custom--simple-chrome--hairline, #E5E5E5);
	transition: border-color 0.15s ease, color 0.15s ease;
}

.is-style-nav-underline .wp-block-navigation-item__content:hover,
.is-style-nav-underline a:hover {
	border-block-end-color: var(--wp--custom--simple-chrome--accent, #D4740E);
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

.is-style-nav-underline .current-menu-item > .wp-block-navigation-item__content,
.is-style-nav-underline .current-menu-item > a,
.is-style-nav-underline [aria-current="page"] {
	border-block-end-width: 2px;
	border-block-end-color: var(--wp--custom--simple-chrome--accent, #D4740E);
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

/* ═══════════════════════════════════════════════════════════════════
 * Mega menu (v1.22.0)
 *
 * Rendered when a core/navigation-submenu block carries the
 * `is-style-mega` style AND the global toggle is enabled. The submenu's
 * default <ul> dropdown content is replaced by the mega-menu template
 * part wrapped in .simple-mega-menu-panel.
 *
 * Behavior model: click-toggle on desktop, accordion on mobile.
 * Visibility controlled by [aria-expanded="true"] on the parent
 * submenu's <button>. JS in assets/js/mega-menu.js handles the toggle
 * + ESC-to-close + focus management.
 *
 * Token surface (extends v1.15.0 nav-dropdown stubs):
 *   --simple-chrome--nav-dropdown-bg
 *   --simple-chrome--nav-dropdown-text
 *   --simple-chrome--nav-dropdown-shadow
 *   --simple-chrome--nav-dropdown-hairline    (column dividers)
 *   --simple-chrome--nav-dropdown-eyebrow     (tag colors)
 *   --simple-chrome--nav-dropdown-footer-bg   (footer band)
 * ═══════════════════════════════════════════════════════════════════ */

/* Submenu container needs relative positioning so the absolute panel
 * anchors to it. We target the wp-block-navigation-item containing the
 * mega-style submenu so the panel knows where to drop from. */
.wp-block-navigation .wp-block-navigation-submenu.is-style-mega {
	position: static; /* let the panel break out of the submenu and span the header */
}

/* The panel itself — full-width, anchored under the header. */
.simple-mega-menu-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	width: 100%;
	z-index: 1000;
	background: var(--wp--custom--simple-chrome--nav-dropdown-bg, #FFFFFF);
	color: var(--wp--custom--simple-chrome--nav-dropdown-text, #1A1A1A);
	box-shadow: var(--wp--custom--simple-chrome--nav-dropdown-shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
	border-block-start: 1px solid var(--wp--custom--simple-chrome--nav-dropdown-hairline, #E5E5E5);
	border-block-end: 1px solid var(--wp--custom--simple-chrome--nav-dropdown-hairline, #E5E5E5);
	padding: 32px 0 0;
	font-family: var(--wp--custom--simple-chrome--font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	/* Hidden by default. Visibility flips via the parent submenu's
	 * [aria-expanded] state — see toggle rules below. */
	visibility: hidden;
	opacity: 0;
	transform: translateY(-4px);
	transition: visibility 0s linear 0.15s, opacity 0.15s ease, transform 0.15s ease;
	pointer-events: none;
}

/* Show the panel when the parent submenu's button is expanded.
 * core/navigation-submenu renders the toggle as a <button> sibling of
 * the panel's ancestor; we use :has() to target ancestors that contain
 * an aria-expanded=true button. */
.wp-block-navigation-submenu.is-style-mega[aria-expanded="true"] .simple-mega-menu-panel,
.wp-block-navigation-submenu.is-style-mega.is-open .simple-mega-menu-panel {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0s;
	pointer-events: auto;
}

/* Inner content container — constrains width inside the full-width panel. */
.simple-mega-menu-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Eyebrow row (small section label at top). */
.simple-mega-menu-eyebrow {
	margin: 0 0 24px;
}
.simple-mega-menu-eyebrow-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--custom--simple-chrome--muted, #6B6B6B);
	margin: 0;
}

/* Two-column grid for the items. */
.simple-mega-menu-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-bottom: 32px;
}
.simple-mega-menu-grid .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Individual mega menu item (product card). */
.simple-mega-menu-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.simple-mega-menu-item-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--custom--simple-chrome--nav-dropdown-text, #1A1A1A);
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.simple-mega-menu-item-title strong {
	font-weight: 600;
}
.simple-mega-menu-item-tag {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--custom--simple-chrome--nav-dropdown-eyebrow, #D4740E);
}
.simple-mega-menu-item-desc {
	font-size: 13px;
	line-height: 1.5;
	color: var(--wp--custom--simple-chrome--muted, #6B6B6B);
	margin: 0;
	max-width: 38ch;
}

/* Footer band — Documentation left, CTA right. */
.simple-mega-menu-footer {
	border-block-start: 1px solid var(--wp--custom--simple-chrome--nav-dropdown-hairline, #E5E5E5);
	background: var(--wp--custom--simple-chrome--nav-dropdown-footer-bg, transparent);
	padding: 16px 0;
	margin: 0 -32px;
	padding-inline: 32px;
}
.simple-mega-menu-footer p {
	margin: 0;
	font-size: 13px;
}
.simple-mega-menu-footer a {
	color: var(--wp--custom--simple-chrome--muted, #6B6B6B);
	text-decoration: none;
	font-weight: 500;
}
.simple-mega-menu-footer a:hover {
	color: var(--wp--custom--simple-chrome--accent, #D4740E);
}

/* Mobile: accordion (no full-width panel, drops in flow). */
@media (max-width: 768px) {
	.simple-mega-menu-panel {
		position: static;
		width: auto;
		box-shadow: none;
		border: none;
		padding: 16px 0;
		background: var(--wp--custom--simple-chrome--surface, #FAFAFA);
		transform: none;
		/* Accordion show/hide via display, not opacity, so the panel
		 * doesn't take up space when closed. */
	}
	.wp-block-navigation-submenu.is-style-mega:not([aria-expanded="true"]):not(.is-open) .simple-mega-menu-panel {
		display: none;
	}
	.simple-mega-menu-inner {
		padding: 0 16px;
	}
	.simple-mega-menu-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.simple-mega-menu-footer {
		margin: 0 -16px;
		padding-inline: 16px;
	}
}
