/* Bridge: maps WordPress block classes onto the Lake Foundry design system.
   tokens.css and lake-foundry.css are generated/vendored — edit this file
   instead when WordPress needs to speak the design system's language. */

/* ---- Font tokens follow theme.json -------------------------------------- */
/* tokens.css hardcodes the faces on :root. Re-pointing them at the presets on
   body makes the component sheet follow whatever theme.json (or an active
   style variation) says, so a font swap changes everything, not just blocks. */

body {
  --font-display: var(--wp--preset--font-family--display);
  --font-sans: var(--wp--preset--font-family--sans);
  --font-mono: var(--wp--preset--font-family--mono);
  --font-body: var(--wp--preset--font-family--body);
}

/* Running text in Roboto Regular (design round 2, item 7: the condensed face
   tires the eye in longer paragraphs; About design item 7: standard Roboto
   over Light for readability). Body copy is 16px; section intros match it,
   and only hero ledes keep the 20px step, in the same face. Roboto Condensed stays on headings, labels, figures,
   buttons and navigation.

   Only running text is opted in: paragraphs and lists with no component
   class, plus the components that hold body copy. Any other component
   (kickers, spec strips, tags, steps, quote meta) keeps its own face and
   weight, including ones added later. Zero specificity, so anything that
   sets its own font still wins. .is-root-container is the block editor's
   content root, so editors see the same face. */
:where(main, .is-root-container) :where(
  p:not([class*="lf-"]),
  p.lf-card__body, p.lf-card__lede, p.lf-section-head__lede, p.lf-cta-photo__body,
  p.lf-case-band__body, p.lf-callout__body, p.lf-media-text__copy, p.lf-intro,
  .wp-block-list:not([class*="lf-"]) > li,
  :is(.lf-bullets, .lf-industries, .lf-rows) > li
) {
  font-family: var(--font-body);
  font-weight: 400;
}

/* The testimonial quote keeps the condensed face. */
:where(main, .is-root-container) :where(.lf-testimonial p) {
  font-family: inherit;
  font-weight: inherit;
}

/* Strong in light body copy: a clear step up, not the browser's 400. */
:where(main, .is-root-container) :where(p, .wp-block-list > li) :where(strong, b) { font-weight: 600; }

/* The callout body hard-codes 17px in the component sheet. */
.lf-callout__body { font-size: var(--wp--preset--font-size--body); line-height: 1.65; }

/* Large figures set bold, with tabular digits so the count-up holds still. */
.lf-stat__value { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Type roles ---------------------------------------------------------- */
/* Three text sizes and two colours, by role: body copy 17px and intros 20px
   in --ink, small labels 13px in --ink-muted. The component sheet set card
   copy at 15px and section leads in the muted gray; these bring them in line. */
.lf-card__body { font-size: var(--wp--preset--font-size--body); line-height: 1.65; color: var(--ink); }
.lf-industries li { font-size: var(--wp--preset--font-size--body); line-height: 1.65; }
/* Section intros read at body size, matching the copy that follows (E&R 8,
   applied site-wide). Hero ledes keep the larger size. */
.lf-section-head__lede { color: var(--ink); font-size: var(--wp--preset--font-size--body); line-height: 1.65; }
.lf-stat__label,
.lf-quote-band__meta { font-size: var(--wp--preset--font-size--label); }

/* ---- Palette: light pages, dark islands ---------------------------------- */
/* Each template's <main> carries lf-theme-light, so page content takes the
   light palette while the header and footer stay on the dark :root one. Heroes
   and image-backed bands flip back to dark at render (functions.php). The light
   surfaces are lakefoundry.com's white and #f0f0f0 rather than tokens.css's
   warm set, and buttons keep the brand orange with dark text. */
[data-theme="light"] {
  --surface-cast: #ffffff;
  --surface-raised: #f0f0f0;
  --surface-sunken: #e8e8e8;
  --surface-ember: #f0f0f0;
  --line-hairline: #dcdcdc;
  --line-strong: #858585;
  --molten: #d46f18;
  --molten-soft: #f1931b;
  --on-molten: #180a03;
}

/* Orange as text needs more contrast than orange as a fill: #a55613 holds
   4.5:1 on both white and #f0f0f0. On dark it is the brand orange. */
:root, [data-theme="dark"] { --molten-ink: var(--molten); --molten-ink-soft: var(--molten-soft); }
[data-theme="light"] { --molten-ink: #a55613; --molten-ink-soft: #894810; }

/* theme.json presets are fixed hex on :root. Re-pointing them at the tokens on
   every themed subtree lets headings, buttons and editor colour choices follow
   the palette of the island they sit in. */
body, [data-theme] {
  --wp--preset--color--molten: var(--molten);
  --wp--preset--color--molten-soft: var(--molten-soft);
  --wp--preset--color--on-molten: var(--on-molten);
  --wp--preset--color--ink: var(--ink);
  --wp--preset--color--ink-muted: var(--ink-muted);
  --wp--preset--color--ink-disabled: var(--ink-disabled);
  --wp--preset--color--surface-cast: var(--surface-cast);
  --wp--preset--color--surface-raised: var(--surface-raised);
  --wp--preset--color--surface-sunken: var(--surface-sunken);
  --wp--preset--color--surface-ember: var(--surface-ember);
  --wp--preset--color--line-hairline: var(--line-hairline);
  --wp--preset--color--line-strong: var(--line-strong);
  --wp--preset--color--signal-in-spec: var(--signal-in-spec);
  --wp--preset--color--signal-lead: var(--signal-lead);
  --wp--preset--color--signal-alert: var(--signal-alert);
}

[data-theme] { color: var(--ink); }
main[data-theme="light"] { background: var(--surface-cast); }

/* ---- Column width parity with .lf-column ------------------------------- */

/* Sections pad 64px top and bottom at every width (design round 2, item 21:
   with the dividing lines gone, 96px left 192px between sections). Phones
   were already 64px in the mobile layer. */
.lf-section,
.wp-block-group.is-style-section { padding-block: var(--space-8); }

/* ---- Image grades (core/image style variations) ------------------------ */

.wp-block-image.is-style-cool,
.wp-block-image.is-style-warm,
.wp-block-image.is-style-pour { position: relative; isolation: isolate; }

.wp-block-image.is-style-cool img { filter: grayscale(1) contrast(1.08) brightness(0.96); }
.wp-block-image.is-style-cool::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--photo-cool-shadow), var(--photo-cool-highlight));
  mix-blend-mode: color; opacity: 0.55;
}

.wp-block-image.is-style-warm img { filter: grayscale(1) contrast(1.05) brightness(0.94); }
.wp-block-image.is-style-warm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--photo-warm-shadow), var(--photo-warm-highlight));
  mix-blend-mode: color; opacity: 0.6;
}

.wp-block-image.is-style-pour img { filter: contrast(1.06) saturate(1.05); }

.wp-block-image figcaption {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
  margin-block-start: var(--space-3);
}

/* ---- Button variations (core/button) ----------------------------------- */
/* Primary comes from theme.json styles.elements.button. */

.wp-block-button.is-style-secondary .wp-block-button__link {
  background: transparent;
  border: var(--border-control) solid var(--line-strong);
  color: var(--ink);
  transition: border-color 120ms ease-out, color 120ms ease-out;
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover {
  background: transparent;
  border-color: var(--molten);
  color: var(--molten-ink);
}

/* Over a hero photo the outline button's label measured 4.1:1 at 375px; a
   60% sunken fill behind it lifts it past 4.5:1 on every slide. Kept on
   hover too, which the rule above would otherwise clear (design round 2,
   item 6). */
.lf-hero .wp-block-button.is-style-secondary .wp-block-button__link,
.lf-hero .wp-block-button.is-style-secondary .wp-block-button__link:hover {
  background: color-mix(in srgb, var(--surface-sunken) 60%, transparent);
}

.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent;
  border: var(--border-control) solid transparent;
  color: var(--molten-ink);
  padding-inline: 0;
  /* It reads as a text link, so a label that wraps stays flush left. */
  text-align: start;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  background: transparent;
  color: var(--molten-ink-soft);
}

/* ---- Group variations (core/group) ------------------------------------- */

/* A tinted panel, no orange edge: the accent bar read as a generic AI-site
   motif (Contact design item 5). */
.wp-block-group.is-style-callout {
  background: var(--surface-ember);
  padding: var(--space-5);
}

/* The closing call to action: near-black now the ember (maroon) is retired. */
.wp-block-group.is-style-quote-band {
  background: var(--surface-sunken);
  padding-block: var(--space-10);
}
/* The component sheet's quote band carries a top line too; no dividers
   between sections (design round 2, item 22). */
.lf-quote-band { border-block-start: 0; }

/* ---- Table variation (core/table) -------------------------------------- */

/* White table, hairline grid; every title cell (column heads, row heads, the
   empty corner) is charcoal with a white label (E&R design 11). */
.wp-block-table.is-style-spec table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-cast);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink);
}
.wp-block-table.is-style-spec th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-3);
  white-space: nowrap;
}
.wp-block-table.is-style-spec td {
  padding: var(--space-3);
  border: var(--border-hairline) solid var(--line-hairline);
}
/* A value shared by both iron columns is centered across them, so it reads
   as applying to both rather than sitting under the first. Phones stack the
   table (below) and keep it left-aligned. */
@media (min-width: 600px) {
  .wp-block-table.is-style-spec td[colspan] { text-align: center; }
}
/* Core draws a 3px rule under thead; the charcoal row needs none. */
.wp-block-table.is-style-spec thead { border-bottom: 0; }

/* The empty top-left corner of a comparison table is a td, not a th — an empty
   header cell has no name for screen readers to announce — so it takes the
   title-cell fill by hand. */
.wp-block-table.is-style-spec :is(th, thead td) {
  background: #2b2b2b;
  color: #fff;
  border: var(--border-hairline) solid #4a4a4a;
}

/* a11y.js makes a table a focusable region while it scrolls sideways. */
.wp-block-table[role="region"]:focus-visible {
  outline: var(--border-control) solid var(--focus-ring);
  outline-offset: 2px;
}

.wp-block-table.is-style-spec figcaption,
.wp-block-table.is-style-spec caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--label);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-block-end: var(--space-3);
}

/* ---- Eyebrow (core/paragraph style variation) --------------------------- */

p.is-style-eyebrow,
.lf-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--label);
  line-height: 16px;
  font-weight: 600; /* bold, matching the card kickers (design round 2, item 23) */
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  /* Section titles set margin:0, so the gap has to come from the eyebrow —
     same as .lf-eyebrow does in the component sheet. */
  margin-block-end: var(--space-4);
}

/* ---- Hero (core/cover) --------------------------------------------------- */
/* Cover gives the editor a swappable background image and an adjustable
   scrim; these rules give it the .lf-hero proportions. */

.wp-block-cover.is-style-cool .wp-block-cover__image-background { filter: grayscale(1) contrast(1.08); }
.wp-block-cover.is-style-warm .wp-block-cover__image-background { filter: grayscale(1) contrast(1.05) sepia(0.25); }
.wp-block-cover.is-style-pour .wp-block-cover__image-background { filter: contrast(1.06) saturate(1.05); }

/* A molten hairline closes every hero, whatever section follows it.

   Every hero, Home and the compact ones included, sizes to its copy with
   75px above and below it at every width, to cut scroll length (design
   round 2, item 20: under 100px, try 75px first). 75px sits off the 4px
   spacing scale on purpose; adjust --lf-hero-pad to change all heroes.
   The cover blocks carry their own min-height (480-640px) as an inline
   style, hence !important. */
.lf-hero {
  --lf-hero-pad: 75px;
  padding-block: var(--lf-hero-pad);
  border-block-end: var(--border-hairline) solid var(--molten);
}
.wp-block-cover.lf-hero { min-height: 0 !important; }
/* One hero size (Gray Iron design items 2-3): every full hero, Home included,
   is at least 600px from tablet up, about Home's own height, with its content
   centred. Taller copy still grows it. Compact heroes and the post header
   keep their own sizes; phones size to content. */
@media (min-width: 782px) {
  .wp-block-cover.lf-hero:not(.lf-hero--compact, .lf-post-hero) { min-height: 600px !important; }
}

/* The mobile layer pads .lf-hero__inner as well; the hero's own padding is
   all the space it needs. */
@media (max-width: 820px) {
  .lf-hero .lf-hero__inner { padding-block: 0; }
}

/* The design nests two boxes: a centred 1200px column, with the 640px copy
   sitting left inside it. Constrained layout has no real column box — it just
   auto-centres each child — so the wrapper takes the content width (and keeps
   the auto margins that centre it) and the copy inside is capped and left. */
.lf-hero .lf-hero__inner {
  max-width: var(--wp--style--global--content-size);
}

.lf-hero .lf-hero__inner > * {
  max-width: 640px;
  margin-inline: 0;
}

/* Unitless so it tracks the fluid font size (64/68 from the canvas).
   Hero h1 line-heights are 15% looser than the canvas (0.94 and 1.02),
   design round 2, item 19. */
.lf-hero h1 {
  font-size: var(--wp--preset--font-size--display-xl);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.lf-hero .lf-hero__inner > * + * { margin-block-start: var(--space-5); }

.lf-hero p.is-style-eyebrow { margin-block-end: 0; }

@media (max-width: 680px) {
  .lf-hero h1 { font-size: var(--wp--preset--font-size--display-lg); line-height: 1.17; }
}

/* ---- Section head ------------------------------------------------------- */

/* No dividing lines between sections (design round 2, item 22): whitespace
   and the gray bands separate them. The class stays on the blocks so the
   banding rules that key off it keep working. */
.lf-section--ruled { border-block-start: 0; }

/* The accent bar under a section title (core/separator variation) is retired
   site-wide. Hidden rather than stripped so the separators already saved in
   page content and patterns go with it. */
.wp-block-separator.is-style-rule { display: none; }

/* Copy under a title was spaced to clear the bar; without it, close up to
   16px. Larger blocks keep their own section spacing. */
.lf-section-head__title + .is-style-rule + :is(p, .lf-media-text__copy) { margin-block-start: var(--space-4); }

/* ---- Cards (core/columns + core/column) --------------------------------- */

.wp-block-columns.lf-cards { gap: var(--space-6); margin-block-start: var(--space-7); }

/* Image-topped card: the picture runs to the card's edges, copy is inset. */
.lf-card--media { padding: 0; overflow: hidden; }
.lf-card--media .wp-block-image { margin: 0; }
/* The pad supplies the inset; block-gap would otherwise add a second gap
   between the photo and the copy. */
.lf-card--media .lf-card__pad { padding: var(--space-5); margin-block-start: 0; }

.lf-card .lf-card__title { margin-block-start: 0; }
.lf-card .lf-card__body a { color: var(--molten-ink); }

/* "Learn more" affordance on linked media cards. */
.lf-card__cta {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--molten-ink);
  margin-block-start: var(--space-3);
}

.lf-media-text__copy { max-width: 60ch; margin-block-start: var(--space-6); }

/* Whole-card links. Gutenberg can't wrap a column in an anchor, so the link
   lives on the title — meaningful link text — and is stretched over the card.
   Mirrors the component sheet's a.lf-card:hover, which can't apply to a div. */
.lf-card:has(.lf-card__title a) { position: relative; }

.lf-card .lf-card__title a {
  color: inherit;
  text-decoration: none;
}

.lf-card .lf-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Hover: a stronger border and an orange title. The hard orange "lift"
   shadow under the card is gone (design round 2, item 26), here, on role
   cards, and on the component sheet's a.lf-card. */
.lf-card:has(.lf-card__title a):hover {
  border-color: var(--line-strong);
}
a.lf-card:hover { box-shadow: none; }

.lf-card:has(.lf-card__title a):hover .lf-card__title { color: var(--molten-ink); }

.lf-card .lf-card__title a:focus-visible { outline: none; }
.lf-card:has(.lf-card__title a:focus-visible) {
  outline: var(--border-control) solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Industries list (core/list) ---------------------------------------- */

.wp-block-columns.lf-industries-split { gap: var(--space-8); align-items: flex-start; }

.lf-industries__figure { margin-block-start: var(--space-6); }

.wp-block-list.lf-industries {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Modifier, not a global override: the industries sections flow the list as two
   text columns, while the same component keeps its grid everywhere else. */
.wp-block-list.lf-industries--cols {
  display: block;
  columns: 2;
  column-gap: var(--space-6);
}

.wp-block-list.lf-industries li { break-inside: avoid; }

/* ---- Quote band --------------------------------------------------------- */

.is-style-quote-band .lf-quote-band__title { margin: 0; }
.is-style-quote-band .lf-quote-band__meta { margin-block-start: var(--space-3); }

/* ---- Figure pair -------------------------------------------------------- */

.wp-block-columns.lf-figures { gap: var(--space-5); align-items: flex-start; }

/* Three photos in a row under a section's copy (About, high-mix band: three
   different castings, About design item 9). Three-up down to 600px; on
   phones the first runs full width and the other two pair below it, so the
   row stays short. */
.wp-block-columns.lf-figures--trio { margin-block: var(--space-7) 0; }
.lf-figures--trio .wp-block-image { margin: 0; }
.lf-figures--trio .wp-block-image img { width: 100%; height: auto; display: block; }
@media (max-width: 781px) {
  .wp-block-columns.lf-figures--trio { flex-wrap: nowrap !important; gap: var(--space-3); }
  .wp-block-columns.lf-figures--trio > .wp-block-column { flex-basis: 0 !important; flex-grow: 1; }
}
@media (max-width: 599px) {
  .wp-block-columns.lf-figures--trio { display: grid; grid-template-columns: 1fr 1fr; }
  .wp-block-columns.lf-figures--trio > .wp-block-column:first-child { grid-column: 1 / -1; }
}

/* ---- Stats and value props (core/columns) ------------------------------- */

.wp-block-columns.lf-stats { gap: var(--space-6); }

.wp-block-columns.lf-props {
  gap: var(--space-6);
  margin-block-start: var(--space-9);
  border-block-start: var(--border-hairline) solid var(--line-hairline);
  padding-block-start: var(--space-7);
}

.lf-props p { font-size: 17px; line-height: 28px; color: var(--ink); margin: 0; }

/* ---- Page hero ---------------------------------------------------------- */

/* Inner-page heroes match the homepage (design round 2, E&R items 3 and 4).
   The H1 now takes .lf-hero h1 (display-xl, set on the block; line-height
   1.08) and the 24px gap under the eyebrow that every hero child gets. The
   old rule here shrank it to display-lg and zeroed that gap. All hero H1s
   get the homepage measure, so the larger size adds no lines at desktop. */
.lf-hero .lf-hero__inner > h1 { max-width: 860px; }

/* Hero eyebrows over the photo: #a8a099 measured 3.1:1 on ten inner pages;
   #d9d3cc is the strategist's fix (E&R accessibility item 1). */
.lf-hero p.is-style-eyebrow { color: #d9d3cc; }

/* The same brighter label in every other dark section: case bands (E&R,
   Pulp & Paper) and the charcoal band's stat labels (E&R design 10).
   Lowest 8.14:1, up from 4.69:1. */
[data-theme="dark"]:not(.lf-hero) :is(p.is-style-eyebrow, .lf-stat__label) { color: #d9d3cc; }

/* ---- Split: copy beside a figure ---------------------------------------- */

.wp-block-columns.lf-split { gap: var(--space-8); align-items: flex-start; }
.lf-split__lede { max-width: 42ch; margin: 0; }
.lf-split .wp-block-list { margin-block-start: var(--space-6); }

.wp-block-columns.lf-media-text { gap: var(--space-8); }

/* Same block with the figure on the right. At mobile the columns stack, and
   column-reverse keeps the copy first rather than leading with the photo. */
.wp-block-columns.lf-media-text--reverse { flex-direction: row-reverse; }

@media (max-width: 781px) {
  .wp-block-columns.lf-media-text--reverse { flex-direction: column-reverse; }
}

/* Fill: copy on the left, the photo in one half (either side) and as tall as the
   whole text block (heading, rule and copy), cropped to fit. Used on the
   homepage's Who We Are (design round 2); the photo stays inside the content
   column rather than bleeding off the page. Below 782px the columns stack
   and the photo keeps its usual crop. Inline flex basis and aspect ratio come
   from the blocks, hence !important.

   The photo is taken out of flow (absolutely filling its column), so the
   row's height comes from the text alone: a portrait photo would otherwise
   set the height and stretch the copy column to match (Quality &
   Consistency, design round 2, item 14). */
@media (min-width: 782px) {
  .wp-block-columns.lf-media-text--fill { align-items: stretch; }
  .lf-media-text--fill > .wp-block-column { align-self: stretch !important; flex-basis: 50% !important; }
  .lf-media-text--fill > .wp-block-column:has(> .wp-block-image) { position: relative; }
  .lf-media-text--fill > .wp-block-column:has(> .wp-block-image) > .wp-block-image {
    position: absolute;
    inset: 0;
    margin: 0;
  }
  .lf-media-text--fill > .wp-block-column:has(> .wp-block-image) > .wp-block-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
    object-fit: cover;
  }
}

/* Headings are uppercase globally; this opts a statement back to sentence case. */
.lf-heading--sentence { text-transform: none; }

/* The statement and the fact cards read as one unit, so the seam between the
   two sections is closed up. */
.lf-statement { padding-block-end: var(--space-8); }
.lf-section--tight { padding-block-start: 0; }

/* Width-capped children of a constrained section get centred by core's
   `margin-inline: auto !important`, which pulls them away from the left edge
   the rest of the section sits on. */
/* Pinned to the left of the 1200px content column, not of the section box:
   in a full-bleed section (a band, or a banded rhythm section) the box spans
   the viewport, and 0 put these flush with the screen edge. */
.lf-statement__title,
.lf-section-head__lede,
.lf-intro {
  margin-inline-start: max(0px, (100% - var(--wp--style--global--content-size, 1200px)) / 2) !important;
  margin-inline-end: auto !important;
}

/* An opening paragraph that starts its section, so no gap above. */
.lf-intro { max-width: 62ch; margin-block-start: 0; }

.lf-statement__title { max-width: 34ch; margin-block: 0; }

/* Plain list, distinct from the bordered .lf-industries component. Plain
   bullets in the text colour, hung in the list's own padding. */
.wp-block-list.lf-bullets {
  margin-block-start: var(--space-4);
  padding-inline-start: 1.25em;
  list-style: disc;
  display: grid;
  gap: var(--space-3);
}

/* A photo that carries its own darkening veil rather than a colour grade. */
.lf-figure-veil { position: relative; isolation: isolate; }
.lf-figure-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 15, 14, 0.1), rgba(16, 15, 14, 0.45));
}

/* ---- Spec panel --------------------------------------------------------- */
/* data-theme="light" is added at render by the lf-theme-light hook, which flips
   the tokens inside — so these stay token references, not literal colours. */

/* No fill or inset: the table sits on the section, 24px under its heading,
   the same step as a section-head lede (E&R design 11). */
.lf-spec-panel {
  margin-block-start: var(--space-5);
}

.lf-spec-panel .wp-block-table { margin: 0; overflow-x: auto; }

.lf-section-head__lede { margin-block-start: var(--space-5); }
/* A note under a full-width table or data pair runs to 80 characters, the
   readable-line limit, instead of the 62ch intro cap (Gray Iron design
   item 6: the established-part note on three lines, not four). */
:is(.lf-spec-panel, .lf-data-pair) + .lf-section-head__lede { max-width: 80ch; }

/* ---- Form --------------------------------------------------------------- */
/* .lf-field, .lf-field__label/__input/__req/__help come from the component
   sheet. These add the layout plus the controls it doesn't cover: choices,
   file inputs and the fieldset grouping. */

.lf-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.lf-form__section + .lf-form__section {
  margin-block-start: var(--space-6);
  border-block-start: var(--border-hairline) solid var(--line-hairline);
  padding-block-start: var(--space-5);
}

/* The component sheet's 24px under every field adds up fast on a long form. */
.lf-form .lf-field { margin-block-end: var(--space-4); }

.lf-form__legend {
  display: block;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--label);
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-block-end: var(--space-4);
  padding: 0;
}

.lf-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 var(--space-5);
}

.lf-form__grid--wide { grid-template-columns: minmax(0, 1fr); }

textarea.lf-field__input { resize: vertical; min-height: 104px; }

.lf-field__input:focus-visible { border-color: var(--molten); }

/* Choices — .lf-choices is itself a fieldset, so this has to out-specify the
   `.lf-form fieldset { margin: 0 }` reset above or the group collapses onto
   whatever field follows it. */
.lf-form .lf-choices { margin-block-end: var(--space-5); }

.lf-choices__options { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }

.lf-choice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  color: var(--ink);
  cursor: pointer;
}

.lf-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--molten);
  flex: none;
  cursor: pointer;
}

/* File input — the button half is the browser's, so it gets the control
   treatment and the field keeps the same frame as every other input. */
.lf-field__input[type="file"] {
  padding: var(--space-3);
  font-size: 15px;
  cursor: pointer;
}

.lf-field__input[type="file"]::file-selector-button {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: var(--border-control) solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  margin-inline-end: var(--space-4);
  cursor: pointer;
}

.lf-field__input[type="file"]::file-selector-button:hover {
  border-color: var(--molten);
  color: var(--molten-ink);
}

.lf-form__actions { margin-block-start: var(--space-6); }

/* Follow-up fields appear only once the answer that needs them is chosen.
   CSS-only via :has; browsers without it never hide anything, so no field is
   ever unreachable. Hidden fields drop out of the tab order with display. */
@supports selector(:has(*)) {
  .lf-form [data-show-when] { display: none; }
  .lf-form:has(#lf-q-multiple:checked) [data-show-when="multiple"],
  .lf-form:has(#lf-q-tooling-yes:checked, #lf-q-tooling-unsure:checked) [data-show-when="tooling"],
  .lf-form:has(#lf-q-critical-yes:checked) [data-show-when="timing"] { display: block; }
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.lf-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sending and error line under the submit button (hubspot-form.js). */
.lf-form__status { margin: var(--space-4) 0 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.lf-form__status[data-kind="error"] { color: var(--signal-alert); }

/* The confirmation that replaces a sent form. */
.lf-form__done {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--lede);
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
}
.lf-form__done:focus { outline: none; }

/* A sidebar card that stays in view beside a long form. */
.lf-sticky { position: sticky; top: var(--space-6); }
@media (max-width: 781px) {
  .lf-sticky { position: static; }
}

.lf-form button.lf-btn { font-family: var(--font-sans); }

@media (max-width: 520px) {
  .lf-form__actions .lf-btn { width: 100%; justify-content: center; min-height: 48px; box-sizing: border-box; }
}

/* ---- Careers: intro, role cards, dialog --------------------------------- */

.wp-block-columns.lf-careers-intro { gap: var(--space-6); align-items: flex-start; }
.lf-careers-intro__title { max-width: 34ch; margin: 0; }
.lf-careers-intro__body { margin: 0; }

/* Five across at the content width leaves each card ~220px, so they wrap to
   thirds — three then two. The column has to be a flex container itself or the
   flex:1 on the title below has nothing to grow inside, and the "learn more"
   buttons sit at whatever height each title happens to end at. */
.wp-block-columns.lf-roles {
  margin-block-start: var(--space-7);
  flex-wrap: wrap;
}

.lf-roles > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

/* Core sets nowrap !important and a (0,3,0) flex-basis from 782px, so the
   thirds need !important back — and border-box, or each card's border pushes
   three past 100%. */
@media (min-width: 782px) {
  .wp-block-columns.lf-roles { flex-wrap: wrap !important; }
  .wp-block-columns.lf-roles > .wp-block-column {
    box-sizing: border-box;
    flex-basis: calc((100% - (2 * var(--space-6))) / 3) !important;
    flex-grow: 0 !important;
  }
}

/* The pad is a constrained group turned flex column, so core's auto inline
   margins would centre every child. */
.lf-roles .lf-card__pad > * { margin-inline: 0 !important; }

/* Full colour, using the design system's "pour" grade — the same treatment the
   heroes get — rather than the cool grade the handoff specified. The fade is
   kept but lightened, so the photo still settles into the card without the
   colour being deadened. */
.lf-role-figure { position: relative; isolation: isolate; }
.lf-role-figure img { filter: contrast(1.06) saturate(1.05); }

.lf-role-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 15, 14, 0), rgba(16, 15, 14, 0.35));
}

.lf-roles .lf-card__pad { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.lf-roles .lf-card__title { flex: 1; }

/* With a description, the description takes the slack instead, so the title
   stays tight against it and the links still line up along the bottom. The
   flex gap supplies the spacing, so the title's own margin goes. */
.lf-roles .lf-card__pad:has(.lf-card__body) .lf-card__title { flex: none; margin-block-end: 0; }
.lf-roles .lf-card__pad .lf-card__body { flex: 1; }
.lf-roles .wp-block-buttons { margin-block-start: 0; }

/* Whole-card link, same treatment as the homepage service cards — here the
   anchor is the ghost button rather than the title, but the stretched hit
   area and hover lift work the same way. */
.lf-card:has(a[href^="#lf-role-"]) { position: relative; }

.lf-roles a[href^="#lf-role-"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lf-card:has(a[href^="#lf-role-"]):hover {
  border-color: var(--line-strong);
}

.lf-card:has(a[href^="#lf-role-"]):hover .lf-card__title { color: var(--molten-ink); }

.lf-roles a[href^="#lf-role-"]:focus-visible { outline: none; }
.lf-card:has(a[href^="#lf-role-"]:focus-visible) {
  outline: var(--border-control) solid var(--focus-ring);
  outline-offset: 2px;
}

/* Role dialog source content. Authored as ordinary blocks so it stays
   editable; hidden on the front end by render_block and moved into a <dialog>
   by dialog.js. In the editor it shows as a labelled stack below the cards. */
.lf-role-details { margin-block-start: var(--space-7); }
.lf-role-detail + .lf-role-detail { margin-block-start: var(--space-6); }

/* Dialog — native <dialog>, so ::backdrop is the scrim and showModal() handles
   Escape, the focus trap and focus restore. */
/* The design system sets box-sizing per component rather than globally, so
   these have to opt in — otherwise the panel's padding is added to its 100%
   width and the dialog scrolls sideways. */
.lf-dialog {
  box-sizing: border-box;
  background: transparent;
  border: 0;
  padding: var(--space-5);
  max-width: 100%;
  max-height: 100%;
  color: var(--ink);
  overflow: visible;
}

.lf-dialog::backdrop { background: var(--scrim, rgba(10, 9, 8, 0.74)); }

.lf-dialog__panel {
  box-sizing: border-box;
  background: var(--surface-raised);
  border: var(--border-hairline) solid var(--line-strong);
  box-shadow: var(--shadow-menu);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-6);
  margin-inline: auto;
}

.lf-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); }

.lf-dialog__title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

/* 44px is the minimum hit target — keep it. */
.lf-dialog__close {
  flex: none;
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-muted);
  background: transparent;
  border: var(--border-hairline) solid var(--line-hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}
.lf-dialog__close:hover { color: var(--ink); border-color: var(--line-strong); }

.lf-dialog__rule {
  width: 64px;
  height: var(--border-accent);
  background: var(--molten);
  margin-block-start: var(--space-4);
}

.lf-dialog__duties {
  display: block;
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
}

.lf-dialog__foot { margin-block-start: var(--space-6); }

/* ---- Form additions ----------------------------------------------------- */

.lf-form-panel { background: var(--lf-panel-bg, var(--surface-raised)); padding: var(--space-6); margin-block-start: var(--space-7); }

select.lf-field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right var(--space-4) center, calc(100% - var(--space-4) + 5px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: var(--space-7);
}

/* The real input stays focusable — 1x1 and transparent, never display:none. */
.lf-file { position: relative; display: inline-flex; cursor: pointer; }
.lf-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lf-file:focus-within { outline: var(--border-control) solid var(--focus-ring); outline-offset: 2px; }

/* ---- Map embed ---------------------------------------------------------- */

.lf-map {
  margin-block-start: var(--space-7);
  border: var(--border-hairline) solid var(--line-hairline);
  line-height: 0;
}

.lf-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 0;
  /* The embed ships light; grade it toward the page like the photography. */
  filter: grayscale(0.7) contrast(1.05) brightness(0.9);
}

@media (max-width: 820px) {
  .lf-map iframe { aspect-ratio: 4 / 3; }
}

/* ---- CTA band over a photo ---------------------------------------------- */

.lf-cta-photo .lf-quote-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* The title takes the copy column's width, so "Have a Casting to Review?"
   sits on one line where there's room (design round 2, item 35). */
.lf-cta-photo .lf-quote-band__title { margin: 0; max-width: none; }
.lf-cta-photo .lf-quote-band__meta { margin-block-start: var(--space-3); }

/* The two calls to action stack, primary on top, at one width (item 34). */
.lf-cta-photo .wp-block-buttons { flex-direction: column; align-items: stretch; }
.lf-cta-photo .wp-block-button .wp-block-button__link { display: flex; justify-content: center; box-sizing: border-box; width: 100%; }

@media (max-width: 820px) {
  .lf-cta-photo .lf-quote-band__inner { flex-direction: column; align-items: flex-start; }
  .lf-cta-photo .wp-block-buttons,
  .lf-cta-photo .wp-block-button { width: 100%; }
  .lf-cta-photo .wp-block-button__link {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 48px;
  }
}

/* Closing band with a paragraph of copy, not just a title and a location. The
   copy column takes the room and the buttons wrap beneath it when it runs out. */
.lf-cta-photo__copy { flex: 1 1 480px; max-width: 720px; }
.lf-cta-photo__body { color: var(--ink); max-width: 60ch; margin-block-start: var(--space-4); }

/* The copy group is wider than its 22ch title, so constrained layout's auto
   margins would centre the title inside it. */
.lf-cta-photo__copy > * {
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
}

/* Stacked, the band is a flex column and that 480px basis becomes a height. */
@media (max-width: 820px) {
  .lf-cta-photo .lf-cta-photo__copy { flex: none; }
}

/* ---- Arrow links -------------------------------------------------------- */
/* The "→" on secondary calls to action. Drawn here rather than typed into the
   label so it can nudge on hover, and given empty alt text so screen readers
   don't announce "right arrow" after every link. */

.lf-more .wp-block-button__link::after,
.lf-card__cta.lf-more::after {
  content: "\2192";
  content: "\2192" / "";
  display: inline-block;
  margin-inline-start: var(--space-2);
  transition: transform 120ms ease-out;
}

.lf-more .wp-block-button__link:hover::after,
.lf-card:hover .lf-card__cta.lf-more::after { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .lf-more .wp-block-button__link::after,
  .lf-card__cta.lf-more::after { transition: none; }
}

/* ---- Homepage ----------------------------------------------------------- */

/* Keep the copy side shaded while letting the pour read through on the right.
   Override Cover's flat dim layer only for the homepage; the image and copy
   remain ordinary editable blocks. */
.wp-block-cover.lf-hero--home > .wp-block-cover__background.has-background-dim {
  opacity: 1;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--surface-sunken) 94%, transparent) 0%,
    color-mix(in srgb, var(--surface-sunken) 84%, transparent) 32%,
    color-mix(in srgb, var(--surface-sunken) 52%, transparent) 62%,
    color-mix(in srgb, var(--surface-sunken) 12%, transparent) 100%
  ) !important; /* Core's preset background-color utility is !important. */
}

.lf-hero--home > .wp-block-cover__image-background {
  object-position: 58% 54%;
}

/* ---- Home hero photo carousel (design round 2, items 3 and 4) ----------- */
/* functions.php renders the extra slides in one layer straight after the
   cover's own image (slide 1), so the gradient overlay and the copy paint on
   top of every slide; hero-carousel.js fades them. Slides take the Pour
   treatment like the cover image. */
.lf-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.lf-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--lf-slide-position, 50% 50%);
  filter: contrast(1.06) saturate(1.05);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.lf-hero__slide.is-active { opacity: 1; z-index: 2; }
.lf-hero__slide.is-leaving { z-index: 1; }

/* Controls: one dark bar at the bottom right of the content column, clear of
   the capacity line. Square controls and bar-shaped dots, since the system
   keeps rounded shapes for badges. */
.lf-carousel {
  position: absolute;
  z-index: 2;
  inset-block-end: var(--space-5);
  inset-inline-end: max(var(--wp--style--root--padding-right, 24px), calc((100% - var(--wp--style--global--content-size)) / 2));
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  background: color-mix(in srgb, var(--surface-sunken) 78%, transparent);
  border: var(--border-hairline) solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: var(--radius-sm);
}
.lf-carousel[hidden] { display: none; }
.lf-carousel__btn,
.lf-carousel__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: none;
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}
.lf-carousel__btn { width: 36px; height: 36px; }
.lf-carousel__btn:hover { color: var(--molten-ink); border-color: var(--molten); }
.lf-carousel__btn:focus-visible,
.lf-carousel__dot:focus-visible { outline: var(--border-control) solid var(--molten); outline-offset: 1px; }
.lf-carousel__btn svg { display: block; }
.lf-carousel.is-paused .lf-carousel__icon-pause,
.lf-carousel:not(.is-paused) .lf-carousel__icon-play { display: none; }

.lf-carousel__dots { display: flex; align-items: center; }
.lf-carousel__dot { width: 24px; height: 36px; }
.lf-carousel__dot::before {
  content: "";
  width: 16px;
  height: 3px;
  background: color-mix(in srgb, var(--ink) 50%, transparent);
  transition: background-color 120ms ease-out;
}
.lf-carousel__dot:hover::before { background: var(--ink); }
.lf-carousel__dot[aria-current="true"]::before { background: var(--molten); }

@media (max-width: 599px) {
  .lf-carousel { inset-block-end: var(--space-3); }
  .lf-carousel__btn { width: 44px; height: 44px; }
  .lf-carousel__dot { width: 28px; height: 44px; }
}

/* hero-carousel.js never starts under reduced motion; this keeps slide 1
   alone even if the preference changes after it has run. */
@media (prefers-reduced-motion: reduce) {
  .lf-hero__slides,
  .lf-carousel { display: none !important; }
}

/* The homepage headline runs long, so it gets more measure than the 640px
   copy column; the pour-capacity line sits under the buttons as a spec strip. */
.lf-hero--home .lf-hero__inner > h1,
.lf-hero--home .lf-hero__inner > .lf-hero__specs { max-width: 860px; }

.lf-hero .lf-hero__inner > .lf-hero__specs {
  margin-block-start: var(--space-7);
  border-block-start: var(--border-hairline) solid var(--line-strong);
  padding-block-start: var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}
.lf-hero__specs strong { font-weight: 500; color: var(--ink); }

.lf-hero--home .lf-hero__inner > .lf-hero__specs {
  line-height: 2;
  text-wrap: pretty;
  color: var(--ink);
  border-block-start-color: color-mix(in srgb, var(--ink) 35%, transparent);
}

.lf-hero--home .lf-hero__specs strong {
  display: inline-block;
  font-size: var(--wp--preset--font-size--lede);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 820px) {
  /* The narrower crop follows the ladle. Shade the lower copy area rather
     than carrying the desktop's left-to-right gradient onto a phone. */
  .lf-hero--home > .wp-block-cover__image-background { object-position: 61% 45%; }
  /* The top is darker than it was (18% / 65%) so the eyebrow passes 4.5:1
     over every carousel photo; the ladle and pour shots measured 2.1:1
     (E&R accessibility item 1 follow-up). */
  .wp-block-cover.lf-hero--home > .wp-block-cover__background.has-background-dim {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--surface-sunken) 55%, transparent) 0%,
      color-mix(in srgb, var(--surface-sunken) 78%, transparent) 28%,
      color-mix(in srgb, var(--surface-sunken) 88%, transparent) 64%,
      color-mix(in srgb, var(--surface-sunken) 94%, transparent) 100%
    ) !important;
  }
}

/* A small line above a card or feature title: the eyebrow treatment,
   uppercase and bold, so every eyebrow on the site reads the same (design
   round 2, item 23). */
.lf-kicker {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--label);
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--space-3);
}
.lf-kicker + .wp-block-heading { margin-block-start: 0; }

/* Card copy in two weights: a lede in ink, the detail in muted body. The
   component sheet zeroes .lf-card__body's margins, so stacked bodies need
   their gap back. */
.lf-card__lede { font-size: 17px; line-height: 28px; color: var(--ink); margin: 0 0 var(--space-3); }
.lf-card__body + .lf-card__body { margin-block-start: var(--space-3); }

/* Feature card: a photo beside the copy, the photo running to the card's edges. */
.wp-block-columns.lf-feature {
  gap: 0;
  margin-block-start: var(--space-7);
  background: var(--surface-raised);
  border: var(--border-hairline) solid var(--line-hairline);
}

/* Cards straight after a feature card sit the same distance below it as
   they sit apart from each other (design round 2, item 24). */
.wp-block-columns.lf-feature + .wp-block-columns.lf-cards { margin-block-start: var(--space-6); }

/* Card icons at 36px rather than 24, so they register (design round 2,
   item 30). Stroke widths scale with the icon. */
.lf-card__icon { width: 36px; height: 36px; }
.lf-feature .wp-block-image { margin: 0; }
.lf-feature__copy { padding: var(--space-7); }
.lf-feature__copy > * { max-width: 56ch; }
/* 56ch of 13px tracked caps is too short for the kicker, which wrapped. */
.lf-feature__copy > .lf-kicker { max-width: none; }

/* Two-by-two card grid. Core lays columns out in one row from 782px with a
   (0,3,0) flex-basis rule, so wrapping to halves needs !important back. The
   cards are content-box, so without border-box their borders push two halves
   past 100% and every card wraps to its own row. */
@media (min-width: 782px) {
  .wp-block-columns.lf-cards--grid2 { flex-wrap: wrap !important; row-gap: var(--space-6); }
  .wp-block-columns.lf-cards--grid2 > .wp-block-column {
    box-sizing: border-box;
    flex-basis: calc(50% - (var(--space-6) / 2)) !important;
    flex-grow: 0;
  }
}

/* Linked media cards with a "learn more" line pin that line to the bottom, so
   cards in a row end level however long their copy runs. The pad is a
   constrained group, and core's auto inline margins would centre every child
   once it becomes a flex column. */
.lf-cards--grid2 .lf-card--media { display: flex; flex-direction: column; }
.lf-cards--grid2 .lf-card__pad { flex: 1; display: flex; flex-direction: column; }
.lf-cards--grid2 .lf-card__pad > * { margin-inline: 0 !important; }
.lf-cards--grid2 .lf-card__cta { margin-block-start: auto; padding-block-start: var(--space-4); }

/* Figure cards: a stat figure and label in a card, molten rule on top. Static
   on purpose — count-up.js keys off .lf-stat__value, so these never animate.
   The row opens its section, so it drops the gap .lf-cards keeps for a head;
   --flush does the same for any other card row with no head above it. */
.wp-block-columns.lf-cards--figures,
.wp-block-columns.lf-cards--flush { margin-block-start: 0; }
.lf-card--figure { border-block-start: var(--border-control) solid var(--molten); }

.lf-card__figure {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--metric);
  line-height: 1.05;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
}

/* Process steps: an ordered list read across, numbered by a counter so the
   numbers stay right when an editor reorders or adds a step. Each step takes
   the stat block's top rule. */
.wp-block-list.lf-steps {
  list-style: none;
  padding: 0;
  margin-block: var(--space-7) 0;
  counter-reset: lf-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-5);
}

.wp-block-list.lf-steps li {
  counter-increment: lf-step;
  border-block-start: var(--border-control) solid var(--line-strong);
  padding-block-start: var(--space-4);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
}

.wp-block-list.lf-steps li::before {
  content: counter(lf-step, decimal-leading-zero);
  display: block;
  margin-block-end: var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--molten-ink);
}

/* Text cards: grid2 cards without a photo. The link row sits at the foot so
   cards in a row end level. A badge would stretch across a flex column, so it
   keeps its own width. */
.lf-card--text { display: flex; flex-direction: column; }
.lf-card--text > .wp-block-buttons { margin-block-start: auto; padding-block-start: var(--space-5); }
.lf-card--text > .lf-badge { align-self: flex-start; }

/* Spec list: label-and-value pairs on a grid, each under the stat block's top
   rule. The label is the item's <strong>, so it stays editable inline. */
.wp-block-list.lf-specs {
  list-style: none;
  padding: 0;
  margin-block: var(--space-7) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5) var(--space-6);
}

.wp-block-list.lf-specs li {
  border-block-start: var(--border-control) solid var(--line-strong);
  padding-block-start: var(--space-4);
  font-size: var(--wp--preset--font-size--lede);
  line-height: 1.4;
  color: var(--ink);
}

.wp-block-list.lf-specs li strong {
  display: block;
  margin-block-end: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--label);
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* A callout closing a photo-and-copy section. */
.lf-media-text + .wp-block-group.is-style-callout { margin-block-start: var(--space-8); }
.lf-map + .wp-block-group.is-style-callout { margin-block-start: var(--space-7); }
.wp-block-group.is-style-callout > :last-child { margin-block-end: 0; }

/* Full-width callout band, headline right and copy left (Resource Center
   design item 7). The heading stays first in the markup, so it is still
   read first; the grid only places it. Stacked, heading on top. */
.wp-block-group.is-style-callout.lf-callout-band {
  padding: var(--space-8) var(--wp--style--root--padding-right) var(--space-8) var(--wp--style--root--padding-left);
  margin-block: 0;
}
.lf-callout-band__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--space-8);
  align-items: center;
}
.lf-callout-band__split > * { margin: 0 !important; }
.lf-callout-band__split > .lf-callout__title { grid-column: 2; grid-row: 1; }
.lf-callout-band__split > .lf-callout__body { grid-column: 1; grid-row: 1; }
@media (max-width: 781px) {
  .lf-callout-band__split { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); }
  .lf-callout-band__split > .lf-callout__title,
  .lf-callout-band__split > .lf-callout__body { grid-column: 1; grid-row: auto; }
}
.wp-block-post-content > .lf-callout-band + * { margin-block-start: 0 !important; }

/* In a panel table the first column holds short row labels, so it takes less
   than the even share fixed layout would give it; the values share the rest. */
.lf-spec-panel .wp-block-table thead th:first-child { width: 30%; }

/* Tables of three or more columns scroll rather than squeeze, as the mobile
   layer does for .lf-spec: below this width a fixed-layout table crushes its
   columns until the nowrap row labels run into the values. A label-and-prose
   table fits a phone as is, and scrolling would split its sentences. The
   panel's figure already scrolls horizontally. */
@media (max-width: 781px) {
  /* The desktop inset squeezes every field on a phone. */
  .lf-form-panel { padding: var(--space-5); }
  .lf-spec-panel .wp-block-table table:has(thead th:nth-child(3)) { min-width: 560px; }
}

/* On phones a comparison table stops scrolling and stacks: one card per row,
   the row heading on top, then each value under its column heading. The
   headings come from data-label, added at render (functions.php), so the
   header row itself is only kept for screen readers. */
@media (max-width: 599px) {
  .wp-block-table.is-style-spec.lf-spec-stack { overflow: visible; }
  .wp-block-table.is-style-spec.lf-spec-stack :is(table, tbody, tr, th, td) { display: block; }
  .lf-spec-panel .wp-block-table.lf-spec-stack table:has(thead th:nth-child(3)) { min-width: 0; }
  .wp-block-table.is-style-spec.lf-spec-stack table { background: none; }
  .wp-block-table.is-style-spec.lf-spec-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .wp-block-table.is-style-spec.lf-spec-stack tbody tr {
    background: var(--surface-cast);
    border: var(--border-hairline) solid var(--line-hairline);
    padding: 0 0 var(--space-4);
  }
  .wp-block-table.is-style-spec.lf-spec-stack tbody tr + tr { margin-block-start: var(--space-3); }
  /* The row head becomes a charcoal bar across the top of its card. */
  .wp-block-table.is-style-spec.lf-spec-stack tbody th {
    padding: var(--space-3) var(--space-4);
    white-space: normal;
    border: 0;
  }
  .wp-block-table.is-style-spec.lf-spec-stack td {
    display: grid;
    grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr);
    column-gap: var(--space-3);
    padding: var(--space-3) var(--space-4) 0;
    border: 0;
  }
  .wp-block-table.is-style-spec.lf-spec-stack td::before {
    content: attr(data-label);
    font-family: var(--font-sans);
    font-size: var(--wp--preset--font-size--label);
    line-height: 24px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  /* A value shared by both columns (colspan) has no label. */
  .wp-block-table.is-style-spec.lf-spec-stack td:not([data-label]) { grid-template-columns: minmax(0, 1fr); }
  .wp-block-table.is-style-spec.lf-spec-stack td:not([data-label])::before { content: none; }
}

/* ---- Inline SVG figures (wp:html) --------------------------------------- */
/* Charts and illustrations drawn as inline SVG take every colour from tokens,
   so they follow the palette and the light island like everything else. Text
   sizes are viewBox units: the SVG scales with its column. */
.lf-chart { margin: 0; }
.lf-chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.lf-chart__bar { fill: var(--molten); transition: fill 120ms ease-out; }
.lf-chart__bar:hover { fill: var(--molten-soft); }
.lf-chart__grid { stroke: var(--line-hairline); stroke-width: 1; }
.lf-chart__tick { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; }
.lf-chart__value { fill: var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.lf-chart__title { fill: var(--ink-muted); font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; }

.lf-chart__caption {
  margin-block-start: var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

.lf-micro__matrix { fill: var(--surface-raised); stroke: var(--line-strong); stroke-width: 1; }
.lf-micro__flake { fill: none; stroke: var(--ink-muted); stroke-width: 1.8; stroke-linecap: round; }
.lf-micro__nodule { fill: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  .lf-chart__bar { transition: none; }
}

/* Tiles: an icon card with a short label, for a row of five or so options.
   The label stands in for a card title, so it takes the display face. */
.lf-tile__label {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

/* An icon and a two-word label fit two-up on a phone, where the --pair rule
   would otherwise give each tile a near-empty full-width row. */
@media (max-width: 520px) {
  .wp-block-columns.lf-cards--pair:has(.lf-tile__label) > .wp-block-column {
    flex-basis: calc(50% - (var(--space-6) / 2)) !important;
  }
}

/* Stacked items: titled paragraphs, each under the stat block's top rule. */
.lf-stack > .wp-block-group {
  border-block-start: var(--border-control) solid var(--line-strong);
  padding-block-start: var(--space-4);
}
.lf-stack > .wp-block-group + .wp-block-group { margin-block-start: var(--space-6); }
.lf-stack h3 { margin: 0 0 var(--space-2); }
.lf-stack p { margin: 0; }

/* Post cards: a core/query loop of articles, each card an image-topped
   .lf-card--media. The title link stretches over the card (see .lf-card
   whole-card links), so the category link is lifted above it to stay
   clickable. The pad is a default-layout group, so the flex column below has
   no auto margins to fight, and the date sits at the foot. */
.wp-block-query.lf-posts { margin-block-start: var(--space-7); }
.lf-posts .wp-block-post-template { gap: var(--space-6); }

.lf-post-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.lf-post-card .wp-block-post-featured-image { margin: 0; }
.lf-post-card .wp-block-post-featured-image img { display: block; width: 100%; filter: grayscale(1) contrast(1.08) brightness(0.96); }
.lf-post-card .lf-card__pad { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.lf-post-card .lf-card__pad > * { margin: 0; }

.lf-post-card__tag { font-family: var(--font-mono); font-size: 13px; line-height: 20px; }
.lf-post-card__tag a { position: relative; z-index: 2; color: var(--molten-ink); text-decoration: none; }
.lf-post-card__tag a:hover { color: var(--molten-ink-soft); }

.lf-post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.lf-post-card .wp-block-post-excerpt__more-text { display: none; }

.lf-post-card__date {
  margin-block-start: auto !important;
  padding-block-start: var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

.lf-posts .wp-block-query-pagination { margin-block-start: var(--space-7); }
.wp-block-query.lf-posts + .wp-block-group.is-style-callout { margin-block-start: var(--space-8); }

/* Data beside its chart: the table panel and the figure share a row, the
   panel dropping the top margin it takes when it follows a lede. */
.wp-block-columns.lf-data-pair { gap: var(--space-8); margin-block-start: var(--space-7); }
.lf-data-pair .lf-spec-panel,
.lf-data-pair .lf-form-panel { margin-block-start: 0; }

/* Spec list in one column, for a narrow column or values too long to pair. */
.wp-block-list.lf-specs--stack { grid-template-columns: minmax(0, 1fr); margin-block-start: 0; }
.lf-specs a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.lf-specs a:hover { color: var(--molten-ink); }

/* Tags: a short list of values set as mono chips, for grades or codes where a
   one-column table would be mostly empty. */
.wp-block-list.lf-tags {
  list-style: none;
  padding: 0;
  margin-block: var(--space-4) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.wp-block-list.lf-tags li {
  font-family: var(--font-mono);
  font-size: var(--wp--preset--font-size--label);
  line-height: 24px;
  color: var(--ink-muted);
  border: var(--border-hairline) solid var(--line-strong);
  padding: var(--space-1) var(--space-3);
}

/* Background photos, narrower below the desktop breakpoint (copies in
   img/sizes/). Declared and used in this file, so the relative URLs resolve
   the same either way. */
:root {
  --lf-concrete: url("../img/concrete-light.jpg");
  --lf-ghost: url("../img/sizes/castings-stacked-1200w.jpg");
}
@media (max-width: 781px) {
  :root {
    --lf-concrete: url("../img/sizes/concrete-light-800w.jpg");
    --lf-ghost: url("../img/sizes/castings-stacked-800w.jpg");
  }
}

/* Full-bleed band for a section that should read as a change of pace: every
   .lf-band is charcoal, one strong colour break per page (strategist, About
   design item 3). functions.php marks each band data-theme="dark". No edge
   lines (design round 2, item 22). The light concrete texture stays only on
   the alternating plain sections below. */
.lf-band {
  background: #2b2b2b;
}

/* Charcoal band: the one dark band style (design round 2, strategist's
   section 2). Flat #2b2b2b, cards #363636. The block also carries
   lf-theme-dark, so functions.php gives it data-theme="dark" and the text
   tokens flip to the dark theme's light ink and muted ink. Links and other
   orange text use molten-soft: the brand orange (molten-ink on dark) measures
   about 3.9:1 on charcoal, short of 4.5:1. Values derived from the design
   system's dark theme and measured; check against her section 2 token set.
   Scoped under [data-theme] so it outranks the light-page band rule
   ([data-theme="light"] :is(.lf-band, …)), which would otherwise set the
   orange to the light theme's #894810 (1.7:1 here). */
[data-theme] .lf-band,
.lf-band[data-theme] {
  --lf-charcoal: #2b2b2b;
  --lf-charcoal-card: #363636;
  background: var(--lf-charcoal);
  --surface-raised: var(--lf-charcoal-card);
  --lf-panel-bg: var(--lf-charcoal-card);
  --molten-ink: var(--molten-soft);
  /* Hover colour too, or the light-page band rule's #773e0d (1.4:1) wins. */
  --molten-ink-soft: var(--molten-soft);
  --line-strong: #5e5e5e;
  --line-hairline: #474747;
}
/* Text over the texture or a ghosted photo can land on a darker patch than
   #f0f0f0, so orange text there takes one step deeper to keep 4.5:1. */
[data-theme="light"] .lf-keyfacts,
.lf-keyfacts[data-theme="light"] { --molten-ink: #894810; --molten-ink-soft: #773e0d; }

/* Alternating bands. No page runs more than two plain white sections:
   counting from the last hero, band, key-facts strip or photo band, every
   third plain section takes the band too. Written out to nine, past the
   longest page. Two exceptions in the first run: where a band follows the
   third section anyway, the second takes it instead; and a --tight third
   section, which continues the second, shares its band.
   A plain section sits in the 1200px column, so this also does what alignfull
   does: drop the cap, pull out past the root padding and put it back inside. */
.wp-block-post-content > :is(
  :is(.lf-hero, .lf-band, .lf-keyfacts, .lf-photo-band)
    + .lf-section:not(.lf-band) + .lf-section:not(.lf-band) + .lf-section,
  :is(.lf-hero, .lf-band, .lf-keyfacts, .lf-photo-band)
    + .lf-section:not(.lf-band) + .lf-section:not(.lf-band) + .lf-section:not(.lf-band)
    + .lf-section:not(.lf-band) + .lf-section:not(.lf-band) + .lf-section,
  :is(.lf-hero, .lf-band, .lf-keyfacts, .lf-photo-band)
    + .lf-section:not(.lf-band) + .lf-section:not(.lf-band) + .lf-section:not(.lf-band)
    + .lf-section:not(.lf-band) + .lf-section:not(.lf-band) + .lf-section:not(.lf-band)
    + .lf-section:not(.lf-band) + .lf-section:not(.lf-band) + .lf-section
):not(.lf-band, .lf-section--tight):not(:has(+ :is(.lf-band, .lf-keyfacts, .lf-photo-band))),
.wp-block-post-content > :is(.lf-hero, .lf-band, .lf-keyfacts, .lf-photo-band)
  + .lf-section:not(.lf-band) + .lf-section:not(.lf-band, .lf-section--tight):is(
    :has(+ .lf-section:not(.lf-band) + :is(.lf-band, .lf-keyfacts, .lf-photo-band)),
    :has(+ .lf-section--tight)
  ),
.wp-block-post-content > :is(.lf-hero, .lf-band, .lf-keyfacts, .lf-photo-band)
  + .lf-section:not(.lf-band) + .lf-section:not(.lf-band) + .lf-section--tight {
  max-width: none;
  margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
  margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
  background: var(--surface-ember) var(--lf-concrete) center / cover;
  border-block: 0;
  --surface-raised: var(--surface-cast);
  --lf-panel-bg: var(--surface-cast);
  --molten-ink: #894810;
  --molten-ink-soft: #773e0d;
}
/* A banded --tight section and the one it continues read as one band. */
.wp-block-post-content > :is(.lf-hero, .lf-band, .lf-keyfacts, .lf-photo-band)
  + .lf-section:not(.lf-band) + .lf-section:not(.lf-band):has(+ .lf-section--tight) { border-block-end: 0; }
.wp-block-post-content > :is(.lf-hero, .lf-band, .lf-keyfacts, .lf-photo-band)
  + .lf-section:not(.lf-band) + .lf-section:not(.lf-band) + .lf-section--tight { margin-block-start: 0; border-block-start: 0; }

.wp-block-columns.lf-band__split { gap: var(--space-8); align-items: flex-start; }

/* Running copy set in two columns under one heading, to keep long sections
   short. Core stacks them below 782px. */
.wp-block-columns.lf-text-cols { gap: var(--space-7); align-items: flex-start; margin-block: var(--space-5) 0; }
.lf-text-cols > .wp-block-column > :first-child { margin-block-start: 0; }
.lf-text-cols > .wp-block-column > :last-child { margin-block-end: 0; }

/* A paragraph broken into its points: one short statement per ruled row
   (What Happens Next on the quote page). */
.wp-block-list.lf-rows { list-style: none; padding: 0; margin-block: var(--space-4) 0; }
.wp-block-list.lf-rows li { padding-block: var(--space-3); border-block-start: var(--border-hairline) solid var(--line-hairline); }
.wp-block-list.lf-rows li:first-child { padding-block-start: 0; border-block-start: 0; }
.wp-block-list.lf-rows li:last-child { padding-block-end: 0; }

/* A full-width text card, its copy in .lf-text-cols. */
.lf-card--wide + .lf-card--wide { margin-block-start: var(--space-6); }
.lf-card--wide .lf-text-cols { margin-block-start: 0; }
.lf-card--wide .wp-block-buttons { margin-block-start: var(--space-5); }

/* Case study card: a title, two figures and the story behind them. */
.lf-case .lf-card__title { margin-block-end: var(--space-5); }
.lf-case .wp-block-columns:is(.lf-stats, .lf-keyfacts__row) { margin-block: 0 var(--space-5); }
.lf-case .wp-block-buttons { margin-block-start: var(--space-5); }

/* A full-width case card under a band's section head, lede and button
   (Home, Emergency Castings). */
.lf-band > .wp-block-columns.lf-case--media { margin-block-start: var(--space-7); }

/* Case card with a photo: the photo fills the left of the card edge to edge
   and crops to the height of the copy; the copy keeps the card inset. */
.wp-block-columns.lf-case--media { padding: 0; gap: 0; align-items: stretch; overflow: hidden; }
/* The photo is pinned inside its column so it never sets the card height. */
.lf-case--media > .lf-case__media { position: relative; min-height: 320px; }
.lf-case--media > .lf-case__media .wp-block-image { position: absolute; inset: 0; margin: 0; }
.lf-case--media > .lf-case__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.lf-case--media > .lf-case__copy { padding: var(--space-6); }
@media (max-width: 781px) {
  .lf-case--media > .lf-case__media { min-height: 0; aspect-ratio: 4 / 3; }
  .lf-case--media > .lf-case__copy { padding: var(--space-5); }
}

/* Application rows: alternating photo-and-copy pairs under one section head. */
.lf-applications .wp-block-columns.lf-media-text { margin-block-start: var(--space-8); }
.lf-applications .lf-media-text h3 { margin-block: 0; }

.wp-block-list.lf-bullets--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }

@media (max-width: 520px) {
  .wp-block-list.lf-bullets--cols { grid-template-columns: minmax(0, 1fr); }
}

/* Quality: certification beside the testimonials. */
.wp-block-columns.lf-quality { gap: var(--space-8); align-items: flex-start; margin-block-start: var(--space-7); }
.lf-quality h3 { margin-block: 0 var(--space-5); }
/* Certifications and the testimonials stack in one column beside the photo
   (design round 2, item 14): a clear break before the second heading. */
.lf-quality .lf-badge + .wp-block-heading { margin-block-start: var(--space-7); }

p.lf-badge { display: inline-flex; margin-block: var(--space-5) 0; }
/* Brand gray with an orange dot: the signal teal read as green. */
/* White fill so the pill reads on the concrete band and the gray cards
   (design round 2, item 29). */
.lf-badge--in-spec { color: var(--ink-muted); border-color: var(--line-strong); background: var(--surface-cast); }
.lf-badge--in-spec::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--molten);
  flex: none;
}

/* No accent border: the testimonials sit flush with the copy around them. */
.wp-block-quote.lf-testimonial { margin: 0; border: 0; padding: 0; }
.wp-block-quote.lf-testimonial + .wp-block-quote.lf-testimonial { margin-block-start: var(--space-6); }
.lf-testimonial p { margin: 0; }

/* FAQ: core/details as an accordion. The marker is redrawn as a molten plus
   that turns to a minus when the answer is open. */
.wp-block-columns.lf-faq { gap: var(--space-8); align-items: flex-start; }

.lf-faq .wp-block-details {
  border-block-end: var(--border-hairline) solid var(--line-hairline);
  padding-block: var(--space-5);
  margin: 0;
}
.lf-faq .wp-block-details:first-child { border-block-start: var(--border-hairline) solid var(--line-hairline); }

.lf-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--lede);
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 120ms ease-out;
}
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq summary:hover { color: var(--molten-ink); }

.lf-faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
  color: var(--molten-ink);
}
.lf-faq .wp-block-details[open] summary::after { content: "\2212"; content: "\2212" / ""; }

.lf-faq .wp-block-details p { margin: 0; max-width: 64ch; }
.lf-faq .wp-block-details summary + p { margin-block-start: var(--space-4); }
.lf-faq .wp-block-details p + p { margin-block-start: var(--space-3); }

/* ---- Sales-sheet sections ----------------------------------------------- */
/* The page versions of the printed sales sheets (first: Emergency &
   Replacement). Strips of key facts, side cards, a numbered flow and photo
   bands, in the site palette rather than the print one. */

/* Bands of a different surface sit flush: the root block gap would otherwise
   show as a strip of page colour above and below them. */
.wp-block-post-content > :is(.lf-keyfacts, .lf-photo-band),
.wp-block-post-content > :is(.lf-keyfacts, .lf-photo-band) + * { margin-block-start: 0; }
/* Back-to-back bands meet with no white strip between them. */
.wp-block-post-content > .lf-band + .lf-band { margin-block-start: 0; }

/* Quality & Consistency always sits on the light concrete (strategist, Home
   14), wherever the alternating-band count lands. Same full-bleed treatment
   as the rhythm rule. */
.wp-block-post-content > .lf-section:not(.lf-band):has(> .wp-block-columns.lf-quality) {
  max-width: none;
  margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
  margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
  background: var(--surface-ember) var(--lf-concrete) center / cover;
  --surface-raised: var(--surface-cast);
  --lf-panel-bg: var(--surface-cast);
  --molten-ink: #894810;
  --molten-ink-soft: #773e0d;
}
/* Straight after a band (Home: Industrial Applications) the concrete meets
   it with no white strip, as band meets band above. */
.wp-block-post-content > .lf-band + .lf-section:not(.lf-band):has(> .wp-block-columns.lf-quality) { margin-block-start: 0; }

/* Key facts: a strip of four icon-led figures, or short claims with --titles.
   Under a hero the hero's own molten hairline stands in for the top border. */
.lf-keyfacts {
  position: relative;
  isolation: isolate;
  background: var(--surface-raised);
  padding-block: var(--space-7);
}
/* A ghosted shop photo behind the gray panel, as on lakefoundry.com. */
.lf-keyfacts::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lf-ghost) center / cover;
  filter: grayscale(1);
  opacity: 0.1;
  pointer-events: none;
}
.lf-hero + .lf-keyfacts { border-block-start: 0; }

/* Key-facts items are the one stat treatment site-wide: in the band, in a
   section row, in a case card and beside a case story. */
.wp-block-columns.lf-keyfacts__row { gap: var(--space-6); }
.lf-keyfacts > .wp-block-columns.lf-keyfacts__row { margin: 0; }

.lf-keyfact {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: var(--space-4);
  align-content: center;
  align-items: center;
}
:is(.wp-block-column, .wp-block-group).lf-keyfact > * { margin: 0; }

.lf-keyfact__icon {
  grid-row: span 2;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: var(--molten);
  color: var(--on-molten);
}
.lf-keyfacts--titles .lf-keyfact__icon { grid-row: auto; }

.lf-keyfact__value {
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}
:is(.wp-block-column, .wp-block-group).lf-keyfact > .lf-stat__label { margin-block-start: var(--space-1); }

@media (max-width: 781px) {
  .wp-block-columns.lf-keyfacts__row { flex-wrap: wrap !important; row-gap: var(--space-5); }
  .wp-block-columns.lf-keyfacts__row > .wp-block-column {
    box-sizing: border-box;
    flex-basis: calc(50% - (var(--space-6) / 2)) !important;
    flex-grow: 0;
  }
}

@media (max-width: 520px) {
  .wp-block-columns.lf-keyfacts__row > .wp-block-column { flex-basis: 100% !important; }
}

/* Side cards: a graded photo beside a title and one line. The photo fills its
   half of the card whatever the copy's height. */
.lf-card.lf-card--side {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  padding: 0;
  overflow: hidden;
}
.lf-cards .lf-card--side > * { margin: 0; }
.lf-card--side .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.lf-card--side .lf-card__pad { align-self: center; padding: var(--space-5); }
.lf-card--side .lf-card__pad > * { margin: 0; }
.lf-card--side .lf-card__pad .lf-card__title { margin-block-end: var(--space-2); }
.lf-card--side .lf-card__pad .lf-card__cta { margin-block-start: var(--space-3); }

@media (max-width: 520px) {
  .lf-card.lf-card--side { grid-template-columns: minmax(0, 1fr); }
  .lf-card--side .wp-block-image img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Photo bands: full-bleed covers sized by padding, not core's 430px. */
.wp-block-cover.lf-photo-band { min-height: 0; padding-block: var(--space-9); }

@media (max-width: 820px) {
  .wp-block-cover.lf-photo-band { padding-block: var(--space-8); }
}

/* Pull statement: a sentence or two beside a molten icon, on the page surface
   between hairline rules, so it reads as a pause rather than another band. */
.lf-section.lf-pull { padding-block: var(--space-8); }

.lf-pull__inner {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}
.lf-pull .lf-pull__inner > * { margin: 0; }

.lf-pull__icon { display: block; width: 56px; height: 56px; color: var(--molten); }

.lf-pull__text {
  max-width: 52ch;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--display-md);
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 520px) {
  .lf-pull__inner { grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
  .lf-pull__icon { width: 40px; height: 40px; }
  .lf-pull__text { font-size: var(--wp--preset--font-size--display-sm); line-height: 1.35; }
}

/* Process flow: numbered steps, each an icon disc over a title and a line,
   joined by molten arrows. Numbered by a counter, like .lf-steps, so steps
   can be reordered. The arrow is one pseudo-element: a line and a head drawn
   as two mask layers over the molten fill, so it stays a token colour. */
.wp-block-group.lf-flow {
  --lf-flow-disc: 80px;
  --lf-flow-gap: var(--space-7);
  --lf-flow-row-gap: var(--space-8);
  position: relative;
  counter-reset: lf-flow;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--lf-flow-row-gap) var(--lf-flow-gap);
  margin-block-start: var(--space-7);
}
.lf-flow > .lf-flow__step { margin: 0; }

.lf-flow__step { counter-increment: lf-flow; position: relative; }
.lf-flow .lf-flow__step > * { margin: 0; }
.lf-flow .lf-flow__step > * + * { margin-block-start: var(--space-3); }
.lf-flow .lf-flow__step > .lf-flow__icon + * { margin-block-start: var(--space-5); }

.lf-flow__icon {
  display: block;
  box-sizing: border-box;
  width: var(--lf-flow-disc);
  height: var(--lf-flow-disc);
  padding: 22px;
  border: var(--border-hairline) solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--molten);
}

.lf-flow__step::before {
  content: counter(lf-flow);
  position: absolute;
  top: -4px;
  left: -4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  /* Charcoal disc, white numeral (E&R design 9): 14.2:1, and the orange
     stays on the icons and arrows. #2b2b2b is the charcoal band tone. */
  background: #2b2b2b;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.lf-flow__step::after {
  content: "";
  position: absolute;
  top: calc(var(--lf-flow-disc) / 2 - 6px);
  left: calc(var(--lf-flow-disc) + var(--space-4));
  right: calc(var(--space-4) - var(--lf-flow-gap));
  height: 12px;
  background: var(--molten);
  --lf-flow-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M1 1l7 5-7 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask:
    var(--lf-flow-arrow) right center / 10px 12px no-repeat,
    linear-gradient(#000, #000) left center / calc(100% - 2px) 2px no-repeat;
  mask:
    var(--lf-flow-arrow) right center / 10px 12px no-repeat,
    linear-gradient(#000, #000) left center / calc(100% - 2px) 2px no-repeat;
}
.lf-flow__step:nth-child(3n)::after,
.lf-flow__step:last-child::after { display: none; }

/* The turn from the end of the first row to the start of the second, as the
   sheet draws it: right out of step 3, down past the row, back along the row
   gap and down into step 4. Step 3's arrow becomes the outward bend; the
   flow's own pseudo-elements, placed on the second grid row, draw the return
   and the arrowhead, so the line follows the row height whatever the copy. */
@media (min-width: 782px) {
  .lf-flow__step:nth-child(3):not(:last-child)::after {
    display: block;
    top: calc(var(--lf-flow-disc) / 2 - 1px);
    right: calc(-1 * var(--space-3));
    bottom: calc(-1 * var(--lf-flow-row-gap) / 2 - 1px);
    height: auto;
    background: none;
    border: var(--border-control) solid var(--molten);
    border-inline-start: 0;
    border-radius: 0 var(--space-3) var(--space-3) 0;
    -webkit-mask: none;
    mask: none;
  }

  .lf-flow:has(> .lf-flow__step:nth-child(4))::before,
  .lf-flow:has(> .lf-flow__step:nth-child(4))::after {
    content: "";
    position: absolute;
    grid-row: 2;
  }

  .lf-flow:has(> .lf-flow__step:nth-child(4))::before {
    grid-column: 1 / -1;
    top: calc(-1 * var(--lf-flow-row-gap) / 2 - 1px);
    left: calc(var(--lf-flow-disc) / 2 - 1px);
    right: 0;
    height: calc(var(--lf-flow-row-gap) / 2 - 8px);
    border-block-start: var(--border-control) solid var(--molten);
    border-inline-start: var(--border-control) solid var(--molten);
    border-start-start-radius: var(--space-3);
  }

  .lf-flow:has(> .lf-flow__step:nth-child(4))::after {
    grid-column: 1;
    top: -12px;
    left: calc(var(--lf-flow-disc) / 2 - 6px);
    width: 12px;
    height: 10px;
    background: var(--molten);
    --lf-flow-head: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 1l5 7 5-7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask: var(--lf-flow-head) center / 12px 10px no-repeat;
    mask: var(--lf-flow-head) center / 12px 10px no-repeat;
  }
}

/* Stacked, each step sets its disc beside the copy, and a plain rule runs
   down from one disc to the next. */
@media (max-width: 781px) {
  .wp-block-group.lf-flow {
    --lf-flow-disc: 64px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-6);
  }
  .lf-flow__step {
    display: grid;
    grid-template-columns: var(--lf-flow-disc) minmax(0, 1fr);
    column-gap: var(--space-5);
    align-content: start;
  }
  .lf-flow__icon { grid-row: span 2; padding: 17px; }
  .lf-flow .lf-flow__step > .lf-flow__icon + * { margin-block-start: 0; }
  .lf-flow__step:not(:last-child)::after {
    display: block;
    top: calc(var(--lf-flow-disc) + var(--space-2));
    bottom: calc(var(--space-2) - var(--space-6));
    left: calc(var(--lf-flow-disc) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
    -webkit-mask: none;
    mask: none;
  }
}

/* Case study over a photo: the story beside two static figures. */
.lf-case-band__body { color: var(--ink); max-width: 60ch; margin-block-start: var(--space-5); }

.lf-case-figures .wp-block-group > * { margin: 0; }
.lf-case-figures > .wp-block-group:not(.lf-keyfact) {
  border-block-start: var(--border-control) solid var(--molten);
  padding-block-start: var(--space-4);
}
.lf-case-figures > .wp-block-group + .wp-block-group { margin-block-start: var(--space-6); }
.lf-case-figures .lf-card__figure { font-size: var(--wp--preset--font-size--display-lg); }
.lf-case-figures .wp-block-group:not(.lf-keyfact) .lf-stat__label { margin-block-start: var(--space-2); }

/* Testimonial: one quote at display size. A plain section, so it can sit
   between two bands without making a third. The quote text carries its own
   curly quotation marks (change list: every quote in quotation marks), so no
   decorative mark is drawn here; the top padding keeps the space the old
   128px mark took. */
.wp-block-quote.lf-voice__quote {
  border: 0;
  margin: 0;
  padding: 64px 0 0;
}
.lf-voice__quote p {
  max-width: 36ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--display-lg);
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
}
.wp-block-quote.lf-voice__quote cite {
  margin-block-start: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--label);
  line-height: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 520px) {
  .wp-block-quote.lf-voice__quote { padding-block-start: 48px; }
}

/* Underlined: the meta line is muted text, and colour alone isn't enough to
   mark the phone number as a link (WCAG 1.4.1). */
.lf-quote-band__meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.lf-quote-band__meta a:hover { color: var(--molten-ink); }

/* ---- Header / navigation ------------------------------------------------ */
/* core/navigation renders its own markup; these rules give it the .lf-nav look. */

.lf-header { padding-block: 0; }

/* Its own layer above the page, or the hero's dark overlay (a positioned
   cover) paints over the open dropdown. */
.lf-header { position: relative; z-index: 10; }

/* The header sticks to the top on scroll. It has to be the template-part
   wrapper that sticks: .lf-header fills that wrapper, so it has no room to
   move. The admin bar offset is 0 for visitors. Anchors scroll to clear it. */
.wp-site-blocks > .wp-block-template-part:has(> .lf-header) {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  background: var(--surface-cast);
}
/* 104px for the nav row plus 36px for the utility bar above it. */
html { scroll-padding-top: 140px; }

/* Utility bar: the main phone line and email above the nav row, on every
   page, so urgent buyers can call from anywhere. Sticks with the header. On
   phones only the number shows, centred, with a full-size tap target. */
.lf-utility {
  justify-content: flex-end;
  padding-block: var(--space-2);
  border-block-end: var(--border-hairline) solid var(--line-hairline);
}
.lf-utility__links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.2;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.lf-utility__links a { color: var(--ink); text-decoration: none; transition: color 120ms ease-out; }
.lf-utility__links a:hover,
.lf-utility__links a:focus-visible { color: var(--molten-ink); }
.lf-utility__phone { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.lf-utility__phone::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--molten);
  --lf-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  -webkit-mask: var(--lf-icon-phone) center / contain no-repeat;
  mask: var(--lf-icon-phone) center / contain no-repeat;
}

@media (max-width: 599px) {
  .lf-utility { justify-content: center; padding-block: 0; }
  .lf-utility__sep,
  .lf-utility__email { display: none; }
  .lf-utility__phone { min-height: 44px; }
}

.lf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
  border-block-end: var(--border-hairline) solid var(--line-hairline);
}

.lf-nav .wp-block-site-logo img { height: 56px; width: auto; }

.lf-nav__end { display: flex; align-items: center; gap: var(--space-6); }

.lf-header .wp-block-navigation__container { gap: var(--space-5); }

/* Capabilities' chevron is the one icon-only submenu toggle (Industries opens
   from its label). Core draws it about 10x10px; 24x24 meets WCAG 2.2's
   minimum target size (design round 2, accessibility item 1). The vertical
   overhang is cancelled so the header keeps its height. Desktop menu only;
   the burger overlay lays its toggles out itself. */
@media (min-width: 1180px) {
  .lf-header .wp-block-navigation__responsive-container:not(.is-menu-open) button.wp-block-navigation__submenu-icon {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    margin-block: -7px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* The full menu (seven items, two dropdowns) plus the logo and the quote
   button needs about 1,150px. Below 1,180px it would wrap under the logo, so
   the menu collapses to the burger there, well above the design's 820px. */
@media (max-width: 1179px) {
  .lf-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .lf-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

.lf-header .wp-block-navigation-item__content {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-decoration: none;
  padding-block: var(--space-2);
  transition: color 120ms ease-out;
}
.lf-header .wp-block-navigation-item__content:hover { color: var(--ink); }

/* Current page: core marks the item when it links to a page by ID. In the
   bar, a dropdown whose page is open is marked too, so Gray Iron lights up
   Capabilities. The burger overlay just colours the current item. */
.lf-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
.lf-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child:has(.current-menu-item) > .wp-block-navigation-item__content {
  color: var(--ink);
  position: relative;
}
.lf-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after,
.lf-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child:has(.current-menu-item) > .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: var(--border-control);
  background: var(--molten);
}
.lf-header .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content,
.lf-header .wp-block-navigation .is-menu-open .wp-block-navigation__container .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content { color: var(--molten-ink); }

/* A dropdown with no page of its own (Industries) has its label rendered as
   the toggle button (functions.php). Core resets that button to inherit; this
   puts the bar's nav type back on it; its colour is inherited, as core does
   for the links beside it. The overlay styles it with the rest. */
.lf-header .wp-block-navigation__responsive-container:not(.is-menu-open) button.wp-block-navigation-item__content {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: none;
  border: 0;
  padding-inline: 0;
  cursor: pointer;
}
.lf-header .is-menu-open button.wp-block-navigation-item__content { background: none; border: 0; cursor: pointer; }

/* Submenu — the dropdown the canvas mocked with sc-if. Core paints it white
   with black text through `.wp-block-navigation:not(.has-background) …`
   (0,3,0), so these need the extra .lf-header to win. */
.lf-header .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container,
.lf-header .wp-block-navigation__submenu-container {
  background-color: var(--surface-raised);
  color: var(--ink);
  border: var(--border-hairline) solid var(--line-hairline);
  border-radius: var(--radius-flat);
  box-shadow: var(--shadow-menu);
  padding-block: var(--space-3);
  min-width: 220px;
}
.lf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: var(--space-2) var(--space-4);
}
.lf-header .wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--ink); }
.lf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--molten-ink); }

/* Mobile overlay */
.lf-header .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--surface-cast);
  color: var(--ink);
  padding: var(--space-6);
}
.lf-header .wp-block-navigation__responsive-container-open,
.lf-header .wp-block-navigation__responsive-container-close { color: var(--ink); }

/* ---- Footer ------------------------------------------------------------- */

/* The footer butts against whatever precedes it — in the canvas the quote band
   runs straight into it. Its own padding supplies the breathing room, and the
   block gap between site-level blocks is cleared here. */
/* The same molten hairline that closes each hero opens the footer, so the
   page content sits between two of them. */
.lf-footer {
  background: var(--surface-sunken);
  border-block-start: var(--border-hairline) solid var(--molten);
  padding-block: var(--space-8);
  margin-block-start: 0;
}

.wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }

/* The logo keeps its proportions (578x149, about 3.9:1) at every width. A
   fixed 72px height against the block's fixed width squashed it to 3.1:1 at
   desktop and 1.9:1 at tablet (design round 2, item 15). */
.lf-footer .wp-block-site-logo img { height: auto; width: 100%; max-width: 180px; object-fit: contain; }

/* At full column width the logo ran to within 24px of the Explore column.
   A 180px logo and a 40px gap give it room (round 2 footer follow-up). */
.wp-block-columns.lf-footer__cols { column-gap: calc(var(--space-6) + var(--space-2)); }

/* Address, phone and email on every page (design round 2, item 16). */
.lf-footer__contact {
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-muted);
  margin-block-start: var(--space-5);
}
.lf-footer__contact a { color: var(--ink); text-decoration: none; }
.lf-footer__contact a:hover,
.lf-footer__contact a:focus-visible { color: var(--molten-ink); text-decoration: underline; }

.lf-footer__copy {
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-muted);
  margin-block-start: var(--space-5);
}
/* "Cookie settings" reopens the consent banner (consent.js listens for
   #cookie-settings links); styled like the contact links above. */
.lf-footer__copy a { color: var(--ink); text-decoration: none; }
.lf-footer__copy a:hover,
.lf-footer__copy a:focus-visible { color: var(--molten-ink); text-decoration: underline; }

.lf-footer .wp-block-navigation__container { gap: var(--space-2); }
.lf-footer .wp-block-navigation-item__content {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-muted);
  text-decoration: none;
}
.lf-footer .wp-block-navigation-item__content:hover { color: var(--ink); }

.lf-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-3); }
.lf-chips a {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
  text-decoration: none;
  border: var(--border-hairline) solid var(--line-hairline);
  padding: 2px var(--space-2);
}
.lf-chips a:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---- Mobile ------------------------------------------------------------- */
/* lake-foundry-mobile.css covers everything keyed to .lf-* classes. These rules
   cover the parts that only exist in WordPress markup: the root padding that
   stands in for .lf-column, core/navigation's own overlay, buttons, and the
   column grids that replace the canvas's data-m hooks. */

/* The burger and its overlay, everywhere the menu collapses (below 1,180px,
   above). Kept apart from the 820px phone rules below, which only tighten
   the gutters, logo and buttons. */
@media (max-width: 1179px) {
  .lf-header .wp-block-navigation__responsive-container-open,
  .lf-header .wp-block-navigation__responsive-container-close {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: var(--space-2);
    border: var(--border-hairline) solid var(--line-strong);
    color: var(--ink);
    background: var(--surface-cast);
  }
  .lf-header .wp-block-navigation__responsive-container-close { display: flex; }
  .lf-header .wp-block-navigation__responsive-container-open:hover,
  .lf-header .wp-block-navigation__responsive-container-close:hover {
    border-color: var(--molten);
    color: var(--molten-ink-soft);
  }

  /* Outrank core's default light overlay and desktop dropdown styles while
     retaining its modal, keyboard navigation and focus restoration. */
  .lf-header .lf-nav .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
    background-color: var(--surface-cast);
    color: var(--ink);
    padding: max(var(--space-4), env(safe-area-inset-top))
      max(var(--space-5), env(safe-area-inset-right))
      max(var(--space-6), env(safe-area-inset-bottom))
      max(var(--space-5), env(safe-area-inset-left));
  }
  .lf-header .is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: stretch;
    padding-block-start: var(--space-8);
    gap: 0;
  }
  .lf-header .is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    gap: 0;
  }
  .lf-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
    align-items: stretch;
    width: 100%;
    border-block-end: var(--border-hairline) solid var(--line-hairline);
  }
  .lf-header .is-menu-open .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 52px;
    padding: var(--space-3) 0;
    font-size: var(--wp--preset--font-size--lede);
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
  .lf-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .has-child > .wp-block-navigation__submenu-container {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-block: 0 var(--space-4);
    padding: 0 0 0 var(--space-4);
    background: transparent;
    border: 0;
    border-inline-start: var(--border-control) solid var(--molten);
    box-shadow: none;
    gap: 0;
  }
  .lf-header .wp-block-navigation .is-menu-open .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    min-height: 44px;
    padding: var(--space-2) 0;
    font-size: var(--wp--preset--font-size--body);
    color: var(--ink-muted);
  }
  .lf-header .is-menu-open .wp-block-navigation-item__content:hover { color: var(--molten-ink-soft); }
  .lf-header .wp-block-navigation :is(a, button):focus-visible {
    outline: var(--border-control) solid var(--focus-ring);
    outline-offset: 3px;
  }
}

@media (max-width: 820px) {
  /* Our equivalent of .lf-column's tighter gutter. */
  body {
    --wp--style--root--padding-left: var(--space-4);
    --wp--style--root--padding-right: var(--space-4);
  }


  /* Keep the logo, menu control and existing quote link on one compact row. */
  .lf-header .lf-nav {
    flex-wrap: nowrap;
    gap: var(--space-2);
    padding-block: var(--space-3);
  }
  .lf-header .wp-block-site-logo { flex-shrink: 0; }
  .lf-header .wp-block-site-logo img {
    width: clamp(100px, 28vw, 160px);
    height: auto;
  }
  .lf-header .lf-nav__end { flex-wrap: nowrap; gap: var(--space-2); }
  .lf-header .lf-nav__end > .wp-block-buttons { flex-shrink: 0; }
  .lf-header .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  /* Sizes come from theme.json's fluid scale now; only the tighter
     small-screen line-heights are set here. */
  .lf-hero h1 { line-height: 1.17; }
  .lf-hero .has-lede-font-size { line-height: 28px; }

  /* Full-bleed tap targets, per the mobile layer's treatment of .lf-btn. */
  .lf-hero .wp-block-buttons,
  .is-style-quote-band .wp-block-buttons { width: 100%; }
  .lf-hero .wp-block-button,
  .is-style-quote-band .wp-block-button { width: 100%; }
  .lf-hero .wp-block-button__link,
  .is-style-quote-band .wp-block-button__link {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
    min-height: 48px;
    align-items: center;
  }

  .is-style-quote-band .lf-quote-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }
  .is-style-quote-band .lf-quote-band__title { font-size: 34px; line-height: 36px; }
  .is-style-quote-band .lf-quote-band__inner > * { max-width: 100%; }
}

/* Core forces every column to 100% below 782px. Stats and the services cards
   stay two-up until the narrowest sizes, matching data-m="pair". */
@media (max-width: 781px) {
  .wp-block-columns.lf-stats,
  .wp-block-columns.lf-cards--pair { flex-wrap: wrap !important; }

  /* border-box, or a card's own padding and border push two halves past
     100% and each one wraps to a row of its own. */
  .wp-block-columns.lf-stats > .wp-block-column,
  .wp-block-columns.lf-cards--pair > .wp-block-column {
    box-sizing: border-box;
    flex-basis: calc(50% - (var(--space-6) / 2)) !important;
    flex-grow: 0;
  }

  /* Wide and square figures both read as 4:3 once stacked. */
  .lf-figures img { aspect-ratio: 4 / 3 !important; }
}

@media (max-width: 520px) {
  .wp-block-columns.lf-stats > .wp-block-column,
  .wp-block-columns.lf-cards--pair > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ---- Separator, list, quote -------------------------------------------- */

.wp-block-separator { border: 0; border-block-start: var(--border-hairline) solid var(--line-hairline); }

.wp-block-quote {
  border-inline-start: var(--border-accent) solid var(--molten);
  padding-inline-start: var(--space-5);
  font-size: 20px;
  line-height: 31px;
  color: var(--ink);
}
.wp-block-quote cite {
  display: block;
  margin-block-start: var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  color: var(--ink-muted);
}

/* ---- Posts (templates/single.html) ------------------------------------- */
/* Built from the page hero, the eyebrow, the section rule and the quote band;
   the design system has no article layout of its own. Hero copy and body
   share one 760px reading column, and wide images break out to 1200px. */

.lf-post-hero .lf-hero__inner { max-width: 760px; }
.lf-post-hero .lf-hero__inner > * { max-width: none; }

/* Category and date, set as one eyebrow line. */
.lf-post-meta { gap: var(--space-3); }
.lf-post-meta,
.lf-post-meta a {
  font-family: var(--font-display);
  font-size: var(--wp--preset--font-size--label);
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
}
.lf-post-meta a:hover { color: var(--ink); }
.lf-post-meta > * + *::before { content: "\00b7"; margin-inline-end: var(--space-3); }

.lf-post-hero__lede p { margin: 0; }

/* Article headings step down a size: the page-level scale is for sections,
   and 34px uppercase every few paragraphs shouts. */
.lf-post__content > h2 { font-size: var(--wp--preset--font-size--display-sm); margin-block-start: var(--space-8); }
.lf-post__content > h3 { font-size: var(--wp--preset--font-size--lede); margin-block-start: var(--space-7); }
.lf-post__content > :first-child { margin-block-start: 0; }

.lf-post__content a:not(.wp-element-button) { text-decoration: underline; text-underline-offset: 0.2em; }

.lf-post__content > .wp-block-image,
.lf-post__content > .wp-block-columns,
.lf-post__content > .wp-block-quote,
.lf-post__content > .wp-block-table { margin-block: var(--space-7); }

/* Plain lists get the .lf-bullets spacing and plain bullets. */
.lf-post__content ul.wp-block-list:not([class*="lf-"]) { padding-inline-start: 1.25em; list-style: disc; display: grid; gap: var(--space-3); }

.lf-post__footer {
  margin-block-start: var(--space-8);
  border-block-start: var(--border-hairline) solid var(--line-hairline);
  padding-block-start: var(--space-6);
}

.lf-post__tags { margin-block-start: 0; }
.lf-post__tags .wp-block-post-terms__separator { display: none; }

.lf-post-nav { gap: var(--space-5); margin-block-start: var(--space-6); }
.lf-post-nav:empty { display: none; }
.lf-post-nav .wp-block-post-navigation-link { flex: 1 1 280px; }
.lf-post-nav .post-navigation-link-next { text-align: end; }
.lf-post-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 120ms ease-out;
}
.lf-post-nav a:hover { color: var(--molten-ink); }
.lf-post-nav .wp-block-post-navigation-link__label {
  display: block;
  font-size: var(--wp--preset--font-size--label);
  line-height: 16px;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  margin-block-end: var(--space-2);
}
