/*
Theme Name: Rite Maps
Theme URI: https://ritemaps.com/
Author: Rite Maps LLC
Description: Custom theme for Rite Maps LLC (land surveys and field support for survey firms). Survey-grade look on light surfaces: white, paper and a pale blue tint, logo blue for headings and structure, orange as the single action colour, pale blue topographic contours, a faint survey grid, crosshair marks and N, E, Z coordinate readouts. The quote form and business details live in the Rite Maps Tools plugin (ritemaps-tools).
Version: 0.3.5
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rite-maps
Update URI: false
*/

/* =============================================================================================
   Tokens (BUILD-CONTRACT.md). Plugin CSS reads these with the same hex values as fallbacks.
   Since v0.2.0 (contract v5) every surface is light: white, --rm-paper or --rm-tint. The dark tokens stay defined
   because the plugin's CSS reads them, but the theme no longer paints any surface with them.
   ============================================================================================= */
:root {
  --rm-black: #040404;
  --rm-ink: #0c0f15;
  --rm-ink-2: #151a23;
  --rm-line-dark: #262d3a;
  --rm-orange: #fa7818;
  --rm-on-orange: #170900;
  --rm-orange-text: #b04a00;      /* 5.49:1 on white, 5.07:1 on paper */
  --rm-blue: #05357e;
  --rm-blue-bright: #4f8ff0;      /* 5.96:1 on ink, 6.37:1 on black */
  --rm-paper: #f4f6f9;
  --rm-white: #ffffff;
  --rm-text: #111827;
  --rm-muted: #4b5563;
  --rm-text-on-dark: #e8edf4;
  --rm-muted-on-dark: #a5afbf;
  --rm-line: #d9dee7;
  --rm-radius: 10px;
  --rm-font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --rm-font-body: "Barlow", system-ui, sans-serif;
  --rm-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Theme-only helpers */
  --rm-tint: #eaf0f8;             /* pale logo-blue band: text 15.47:1, muted 6.59:1, blue 10.08:1, orange text 4.79:1 */
  --rm-tint-line: #cfd9e6;        /* hairlines on the tint */
  --rm-tick: #a9b7cb;             /* survey-scale ticks, ruler and grid marks (pale blue-grey) */
  --rm-tick-minor: #cbd5e2;
  --rm-orange-hover: #ff8a33;
  --rm-field-line: #8b95a7;       /* form field borders: 3.02:1 on white (WCAG 1.4.11) */
  --rm-content: 1160px;
  --rm-gutter: clamp(18px, 4.5vw, 40px);
  /* Side padding that centres a full-width band's content in the content column. % = the band's container width. */
  --rm-pad-x: max(var(--rm-gutter), calc((100% - var(--rm-content)) / 2));
  --rm-section-y: clamp(64px, 9vw, 112px);
  --rm-header-h: 76px;

  /* Surface context: white by default; paper and tint bands redefine some of these below. */
  --c-bg: var(--rm-white);
  --c-text: var(--rm-text);
  --c-muted: var(--rm-muted);
  --c-head: var(--rm-blue);
  --c-link: var(--rm-blue);
  --c-link-hover: var(--rm-orange-text);
  --c-accent: var(--rm-orange-text);
  --c-line: var(--rm-line);
  --c-line-strong: #b9c2d0;
  --c-card: var(--rm-white);
  --c-focus: var(--rm-blue);
  --c-ghost: var(--rm-blue);
  --c-chip: var(--rm-white);
}

/* Pale blue tint bands: .is-tint, plus .is-dark (content written for the first, dark design still carries it; it now
   renders exactly like .is-tint) and the page intro band. Text, headings and links keep their light-surface colours. */
.is-tint, .is-dark, .rm-hero, .editor-styles-wrapper .is-dark {
  --c-bg: var(--rm-tint);
  --c-line: var(--rm-tint-line);
  --c-line-strong: var(--rm-tick);
  --c-card: var(--rm-white);
  --c-chip: var(--rm-white);
  color: var(--c-text);
}
.is-paper, .rm-front-hero, .rm-footer { --c-bg: var(--rm-paper); --c-chip: var(--rm-white); }

/* =============================================================================================
   Base
   ============================================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Jump links clear the sticky header, plus the admin bar when signed in. */
:root { scroll-padding-top: calc(var(--rm-header-h) + 16px + var(--wp-admin--admin-bar--height, 0px)); }
@media screen and (max-width: 600px) { :root { scroll-padding-top: calc(var(--rm-header-h) + 8px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--rm-white);
  color: var(--rm-text);
  font-family: var(--rm-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
::selection { background: rgba(250, 120, 24, .3); }

a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s ease; }
a:hover { color: var(--c-link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rm-font-head);
  color: var(--c-head);
  line-height: 1.08;
  margin: 0 0 .45em;
  text-wrap: balance;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.5rem, 1.55rem + 4.1vw, 4.6rem); font-weight: 700; line-height: .98; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.1rem); font-weight: 700; line-height: 1.02; }
h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); font-weight: 600; line-height: 1.15; }
h4 { font-family: var(--rm-font-body); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
h5, h6 { font-family: var(--rm-font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
p { margin: 0 0 1em; }
p:empty { display: none; }
/* No one-word last lines in running text (browsers without support simply ignore it). */
p, li, dd, figcaption { text-wrap: pretty; }
/* Browsers italicise <address>; the plugin's mailing address sits in body copy and the footer. */
address { font-style: normal; }
strong, b { font-weight: 600; }
small { font-size: .875em; }
code, kbd, pre, samp { font-family: var(--rm-font-mono); font-size: .9em; }
pre { overflow-x: auto; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--rm-paper); color: var(--rm-text); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5em 0; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
input, select, textarea, button { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--rm-orange); color: var(--rm-on-orange); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--rm-on-orange); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* =============================================================================================
   Buttons: theme links (.rm-btn) and core/button (.wp-block-button__link). Orange is the one action colour.
   ============================================================================================= */
.rm-btn, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  background: var(--rm-orange); color: var(--rm-on-orange);
  border: 1.5px solid var(--rm-orange); border-radius: 6px;
  font: 700 1.0625rem/1.15 var(--rm-font-head); letter-spacing: .07em; text-transform: uppercase; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .2s ease, color .15s ease;
}
.rm-btn:hover, .wp-block-button__link:hover {
  background: var(--rm-orange-hover); border-color: var(--rm-orange-hover); color: var(--rm-on-orange);
  box-shadow: 0 8px 24px rgba(250, 120, 24, .28);
}
.rm-btn:focus-visible, .wp-block-button__link:focus-visible { outline-color: var(--c-focus); outline-offset: 3px; }
/* The outline button is filled white, so the grid and contour art behind a band never show through its label. */
.rm-btn.is-ghost,
.wp-block-button.is-ghost .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--rm-white); color: var(--c-head); border-color: var(--c-ghost);
}
.rm-btn.is-ghost:hover,
.wp-block-button.is-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #eef3fa; color: var(--c-head); border-color: var(--c-ghost); box-shadow: inset 0 0 0 1px var(--c-ghost);
}
.rm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* =============================================================================================
   Header
   ============================================================================================= */
.rm-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--rm-white);
  border-bottom: 1px solid var(--rm-line);
}
/* A fine survey scale along the bottom edge in pale blue-grey: minor ticks every 12px, major every 60px. */
.rm-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--rm-tick) 0 1px, transparent 1px 60px) left bottom / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--rm-tick-minor) 0 1px, transparent 1px 12px) left bottom / 100% 4px no-repeat;
}
.admin-bar .rm-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media screen and (max-width: 600px) { .admin-bar .rm-header { top: 0; } }

.rm-header__row {
  display: flex; align-items: center; gap: 12px 28px;
  min-height: var(--rm-header-h);
  padding: 0 var(--rm-pad-x);
}
.rm-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; border-radius: 4px; }
/* logo-transparent.png (826 x 271, made for light surfaces), drawn as is. 54px tall = 165px wide, above the
   160px minimum in BRANDING.md; the file has 2.5x that many pixels, so it stays sharp on 2x screens. */
.rm-brand img { display: block; width: auto; height: 54px; }
.rm-brand__text { font: 700 1.75rem/1 var(--rm-font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--rm-blue); white-space: nowrap; }
.rm-brand__a { color: var(--rm-blue); }
.rm-brand__b { color: var(--rm-orange-text); }

.rm-nav { display: flex; align-items: center; gap: 8px 22px; flex: 1; justify-content: flex-end; }
.rm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.rm-menu li { margin: 0; }
.rm-menu a {
  position: relative; display: block; padding: 10px 12px;
  font: 600 1.0625rem/1.2 var(--rm-font-head); letter-spacing: .06em; text-transform: uppercase;
  color: var(--rm-text); text-decoration: none; white-space: nowrap;
}
.rm-menu a:hover { color: var(--rm-blue); }
.rm-menu a[aria-current="page"],
.rm-menu .current-menu-ancestor > a,
.rm-menu .current-page-ancestor > a,
.rm-menu .current-menu-parent > a { color: var(--rm-blue); }
.rm-header__phone { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--rm-orange-text); white-space: nowrap; }
.rm-header__phone svg { flex: none; }
.rm-header__phone a { font: 500 .9375rem/1 var(--rm-font-mono); letter-spacing: .02em; color: var(--rm-text); text-decoration: none; padding: 8px 0; }
.rm-header__phone a:hover { color: var(--rm-blue); text-decoration: underline; }
.rm-header__cta { flex: none; min-height: 44px; padding: 10px 20px; }
.rm-header__cta[aria-current="page"] { box-shadow: inset 0 -3px 0 rgba(23, 9, 0, .35); }

.rm-nav-toggle {
  display: none; align-items: center; gap: 10px; flex: none;
  min-height: 44px; padding: 8px 14px;
  background: var(--rm-white); color: var(--rm-blue); border: 1px solid var(--rm-field-line); border-radius: 6px;
  font: 600 1rem/1 var(--rm-font-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.rm-nav-toggle:hover { border-color: var(--rm-blue); background: var(--rm-paper); }
.rm-nav-toggle__icon { position: relative; display: block; width: 18px; height: 2px; background: currentColor; transition: background-color .15s; }
.rm-nav-toggle__icon::before, .rm-nav-toggle__icon::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .2s ease;
}
.rm-nav-toggle__icon::before { top: -6px; }
.rm-nav-toggle__icon::after { top: 6px; }
.rm-header.is-open .rm-nav-toggle__icon { background: transparent; }
.rm-header.is-open .rm-nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.rm-header.is-open .rm-nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Desktop: underline marker for the current page, and drop-downs for child pages. */
@media (min-width: 1080px) {
  .rm-menu > li { position: relative; }
  .rm-menu > li > a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--rm-orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .rm-menu > li > a:hover::after { transform: scaleX(.4); }
  .rm-menu > li > a[aria-current="page"]::after,
  .rm-menu > .current-menu-ancestor > a::after,
  .rm-menu > .current-page-ancestor > a::after,
  .rm-menu > .current-menu-parent > a::after { transform: scaleX(1); }
  .rm-menu > .menu-item-has-children > a { padding-right: 26px; }
  .rm-menu > .menu-item-has-children > a::before {
    content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  }
  .rm-menu .sub-menu {
    position: absolute; top: 100%; left: 0; z-index: 5; min-width: 270px;
    list-style: none; margin: 0; padding: 8px;
    background: var(--rm-white); border: 1px solid var(--rm-line); border-top: 2px solid var(--rm-orange);
    border-radius: 0 0 8px 8px; box-shadow: 0 18px 40px rgba(17, 24, 39, .12), 0 2px 6px rgba(17, 24, 39, .06);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  }
  .rm-menu li:hover > .sub-menu,
  .rm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .rm-menu li.is-suppressed > .sub-menu { opacity: 0; visibility: hidden; }
  .rm-menu .sub-menu a { padding: 10px 12px; border-radius: 5px; font: 500 1rem/1.3 var(--rm-font-body); letter-spacing: 0; text-transform: none; color: var(--rm-text); }
  .rm-menu .sub-menu a:hover, .rm-menu .sub-menu a[aria-current="page"] { background: var(--rm-tint); color: var(--rm-blue); }
}
/* The phone number shows in the desktop header only when there's room; it's always in the footer. Since v9 the menu has
   Adventure and Store too, so the number needs 1440px. */
@media (min-width: 1080px) and (max-width: 1439px) { .rm-header__phone { display: none; } }
/* Small desktops: tighter menu links, so seven links, the logo and the quote button fit on one row from 1080px. */
@media (min-width: 1080px) and (max-width: 1279px) {
  .rm-header__row { column-gap: 20px; }
  .rm-menu a { padding-left: 8px; padding-right: 8px; letter-spacing: .03em; }
  .rm-menu > li > a::after { left: 8px; right: 8px; }
  .rm-menu > .menu-item-has-children > a { padding-right: 22px; }
  .rm-menu > .menu-item-has-children > a::before { right: 8px; }
  .rm-menu .sub-menu a { padding-left: 12px; padding-right: 12px; }
}

/* Phone and tablet: menu button, and the menu as a full-width panel under the logo row. */
@media (max-width: 1079px) {
  :root { --rm-header-h: 64px; }
  .rm-header__row { flex-wrap: wrap; column-gap: 10px; row-gap: 0; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .rm-brand { margin-right: auto; }
  .rm-brand img { height: 48px; }
  .js .rm-nav-toggle { display: inline-flex; }
  .rm-nav { order: 10; flex: 1 0 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 10px 0 18px; }
  .js .rm-nav { display: none; }
  .js .rm-header.is-open .rm-nav { display: flex; }
  .js .rm-header.is-open {
    max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .rm-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .rm-menu a { padding: 14px 2px; font-size: 1.3rem; color: var(--rm-text); border-bottom: 1px solid var(--rm-line); }
  .rm-menu a[aria-current="page"] { color: var(--rm-orange-text); }
  .rm-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--rm-line); }
  .rm-menu .sub-menu a { font: 500 1.0625rem/1.3 var(--rm-font-body); text-transform: none; letter-spacing: 0; padding: 12px 2px; }
  .rm-header__phone { margin-top: 18px; }
  .rm-header__phone a { font-size: 1.0625rem; }
  /* Without JavaScript the menu is always open, so the header shouldn't follow the page. */
  html:not(.js) .rm-header { position: relative; top: 0; }
}
/* Tablets have room for BRANDING.md's 160px minimum logo width on light: 53px tall = 162px wide. */
@media (min-width: 560px) and (max-width: 1079px) {
  :root { --rm-header-h: 74px; }
  .rm-brand img { height: 53px; }
}
@media (max-width: 479px) {
  .rm-brand img { height: 42px; }
  .rm-brand__text { font-size: 1.4rem; }
  .rm-header__cta { padding: 10px 14px; font-size: 1rem; }
  .rm-header__cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .rm-nav-toggle { padding: 8px 12px; }
}
@media (max-width: 359px) {
  .rm-brand img { height: 38px; }
  .rm-nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
/* Order: logo, menu button, quote button (and the open menu below). On desktop the menu sits between logo and quote. */
@media (max-width: 1079px) {
  .rm-nav-toggle { order: 1; }
  .rm-header__cta { order: 2; }
}

/* =============================================================================================
   Shared decorative pieces
   ============================================================================================= */
/* Eyebrow: small mono label with a crosshair. */
.rm-eyebrow {
  font: 500 .75rem/1.4 var(--rm-font-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-accent); margin: 0 0 16px; text-wrap: balance;
}
.rm-eyebrow::before {
  content: ""; display: inline-block; vertical-align: -1px; width: 11px; height: 11px; margin-right: 10px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.rm-lede {
  font-size: clamp(1.125rem, 1.05rem + .4vw, 1.35rem); line-height: 1.55;
  color: var(--c-muted); max-width: 62ch;
}
.rm-lede:last-child { margin-bottom: 0; }

/* Scale bar (decorative): alternating segments, as on a plan sheet. */
.rm-scalebar {
  display: inline-block; vertical-align: middle; width: 72px; height: 6px; margin-right: 8px;
  border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 0 25%, transparent 25% 50%, currentColor 50% 75%, transparent 75%);
}

/* Coordinate readout (decorative, hidden from screen readers, always labelled as a sample). Survey order: point number,
   then northing, easting and elevation (N, E, Z), as a data collector shows a point. */
.rm-readout {
  position: absolute; right: var(--rm-pad-x); bottom: clamp(20px, 3vw, 36px); z-index: 2;
  display: grid; gap: 7px; padding: 12px 16px;
  font: 500 .72rem/1.3 var(--rm-font-mono); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  color: var(--rm-text); background: rgba(255, 255, 255, .92);
  border: 1px solid var(--rm-line); border-left: 2px solid var(--rm-orange); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(5, 53, 126, .06);
}
.rm-readout__row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.rm-readout__row .rm-scalebar { color: var(--rm-muted); width: 64px; margin-right: 0; }
.rm-readout__key { color: var(--rm-orange-text); }
.rm-readout__axis { color: var(--rm-blue); }
.rm-readout__sep { width: 1px; height: 12px; background: var(--rm-line); }
.rm-readout__note { color: var(--rm-muted); font-size: .66rem; }
@media (max-width: 1099px) { .rm-readout { display: none; } }
/* Front page: top right of the hero, like a sheet's corner block. At the bottom right the fixed chat launcher
   (ritemaps-chat) covered the Z value on a 1280-1440px first screen. */
.rm-front-hero .rm-readout { top: clamp(20px, 2.4vw, 36px); bottom: auto; }

/* =============================================================================================
   Front-page hero (front-page.php)
   ============================================================================================= */
.rm-front-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--rm-paper); color: var(--c-text);
  border-bottom: 1px solid var(--rm-line);
}
/* Faint survey grid, strongest behind the artwork. */
.rm-front-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: url("assets/art/grid-light.svg") 0 0 / 192px 192px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 72% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 90% at 72% 45%, #000 20%, transparent 80%);
}
/* A ruler down the left edge. */
.rm-front-hero::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; z-index: -1; pointer-events: none;
  border-right: 1px solid var(--rm-line); background-color: var(--rm-white);
  background-image:
    repeating-linear-gradient(180deg, var(--rm-tick) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg, var(--rm-tick-minor) 0 1px, transparent 1px 16px);
  background-position: right top, right top; background-size: 12px 100%, 6px 100%; background-repeat: no-repeat;
}
.rm-front-hero__art {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(72%, 1120px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.rm-contours { display: block; width: 100%; height: 100%; }
.rm-contours__lines path { stroke: var(--rm-blue); stroke-opacity: .17; stroke-width: 1; stroke-linejoin: round; }
.rm-contours__lines path.is-index { stroke-opacity: .36; stroke-width: 1.6; }
.rm-contours__label rect { fill: var(--rm-paper); }
.rm-contours__label text { fill: var(--rm-blue); fill-opacity: .75; font: 500 11px var(--rm-font-mono); letter-spacing: .08em; }
.rm-target circle, .rm-target path { fill: none; stroke: var(--rm-orange); stroke-width: 1.6; }
.rm-target__ring.is-inner { stroke-width: 1.4; }
.rm-target__pulse { stroke-opacity: .35; }
.rm-target__dot { fill: var(--rm-orange) !important; stroke: none !important; }

.rm-front-hero__inner {
  position: relative;
  padding: clamp(72px, 10vw, 148px) var(--rm-pad-x) clamp(72px, 9vw, 128px);
}
.rm-front-hero__inner > * { max-width: 700px; }
.rm-front-hero h1 { color: var(--c-head); font-size: clamp(2.65rem, 1.5rem + 4.9vw, 5.1rem); margin-bottom: 22px; }
.rm-front-hero__line { display: block; }
.rm-front-hero .rm-lede { color: var(--rm-text); max-width: 56ch; }
.rm-front-hero__states { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 44px; }
.rm-front-hero__states-label { margin: 0; font: 500 .72rem/1 var(--rm-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--rm-muted); }
.rm-front-hero .rm-state-list { margin: 0; }

@media (max-width: 859px) {
  /* Phones: the contours sit under the copy, faded at the top so the headline stays crisp. */
  .rm-front-hero__art {
    width: 100%; top: auto; height: 78%; opacity: .75;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  }
  .rm-front-hero::after { display: none; }
  /* The grid runs under the copy here too, so it drops its crosshairs, as in the section bands. */
  .rm-front-hero::before { background-image: url("assets/art/grid-plain.svg"); }
}
/* Below 960px the copy runs across the art, and the summit target landed on the sub-line at 375, 430 and 560-900px.
   The contours stay; the orange target only shows where it has room beside the copy. */
@media (max-width: 959px) { .rm-front-hero .rm-target { display: none; } }

/* The contour lines draw themselves in, then drift slowly; the target pulses. Still and fully drawn with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .rm-contours__lines path {
    stroke-dasharray: 1 1; stroke-dashoffset: 1;
    animation: rm-draw 2.6s cubic-bezier(.3, .6, .2, 1) forwards;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
  .rm-contours__lines { transform-box: view-box; transform-origin: 64% 47%; animation: rm-drift 28s ease-in-out 2.6s infinite alternate; }
  .rm-contours__labels { opacity: 0; animation: rm-fade .8s ease 1.9s forwards; }
  .rm-target { opacity: 0; animation: rm-fade .6s ease 1.1s forwards; }
  .rm-target__pulse { transform-box: fill-box; transform-origin: center; animation: rm-pulse 3s ease-out 1.7s infinite; }
  .rm-readout { opacity: 0; animation: rm-fade .6s ease 1.5s forwards; }
}
@keyframes rm-draw { to { stroke-dashoffset: 0; } }
@keyframes rm-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-16px, 10px) scale(1.03); } }
@keyframes rm-fade { to { opacity: 1; } }
@keyframes rm-pulse { 0% { transform: scale(.55); stroke-opacity: .7; } 80%, 100% { transform: scale(1.55); stroke-opacity: 0; } }

/* =============================================================================================
   Page intro band (.rm-hero; page.php prints one with the breadcrumb, title and excerpt)
   ============================================================================================= */
.rm-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) var(--rm-pad-x) clamp(52px, 7vw, 92px);
  /* The wash sits over the grid as well as the contours, so the grid's crosshairs stay out of the title and sub-line. */
  background:
    linear-gradient(90deg, var(--rm-tint) 22%, rgba(234, 240, 248, .6) 60%, rgba(234, 240, 248, .05)),
    url("assets/art/grid-light.svg") 0 0 / 192px 192px,
    url("assets/art/contours-light.svg") right center / cover no-repeat,
    var(--rm-tint);
  border-bottom: 1px solid var(--rm-tint-line);
}
/* Survey target mark, right. */
.rm-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: max(var(--rm-gutter), calc((100% - var(--rm-content)) / 2 + 40px)); top: 50%;
  width: clamp(90px, 12vw, 150px); aspect-ratio: 1; transform: translateY(-50%); opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23fa7818' stroke-width='1.4'%3E%3Ccircle cx='60' cy='60' r='34' stroke-opacity='.55'/%3E%3Ccircle cx='60' cy='60' r='11'/%3E%3Cpath d='M60 4v38M60 78v38M4 60h38M78 60h38'/%3E%3Ccircle cx='60' cy='60' r='2.6' fill='%23fa7818' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rm-hero > * { position: relative; max-width: 820px; }
.rm-hero > .wp-block-group__inner-container > * { max-width: 820px; }
.rm-hero h1 { color: var(--c-head); margin-bottom: 0; }
.rm-hero h1 + .rm-lede, .rm-hero h1 + p { margin-top: 20px; }
.rm-hero .rm-lede { color: var(--c-muted); }
.rm-hero .rm-readout { position: absolute; max-width: none; }
@media (max-width: 859px) {
  .rm-hero { background-position: 0 0, 0 0, 70% center, 0 0; }
  .rm-hero::after { top: 28px; transform: none; width: 72px; opacity: .55; }
}
@media (max-width: 599px) { .rm-hero::after { display: none; } }

/* Breadcrumb */
.rm-breadcrumb ol {
  list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0;
  font: 500 .72rem/1.5 var(--rm-font-mono); letter-spacing: .16em; text-transform: uppercase;
}
.rm-breadcrumb li { margin: 0; }
.rm-breadcrumb li + li::before { content: "/"; color: var(--rm-orange-text); margin: 0 10px; }
.rm-breadcrumb a { color: var(--c-muted); text-decoration: none; }
.rm-breadcrumb a:hover { color: var(--rm-blue); text-decoration: underline; }
.rm-breadcrumb [aria-current] { color: var(--rm-orange-text); }

/* Sibling nav on service pages */
.rm-subnav { background: var(--rm-white); border-bottom: 1px solid var(--rm-line); padding: 0 var(--rm-pad-x); }
.rm-subnav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.rm-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.rm-subnav li { margin: 0; }
.rm-subnav a {
  display: flex; align-items: center; min-height: 44px; padding: 15px 10px 13px; border-bottom: 2px solid transparent;
  font: 600 1rem/1.2 var(--rm-font-head); letter-spacing: .06em; text-transform: uppercase;
  color: var(--rm-muted); text-decoration: none;
}
.rm-subnav a:hover { color: var(--rm-blue); }
.rm-subnav a[aria-current="page"] { color: var(--rm-blue); border-bottom-color: var(--rm-orange); }
.rm-subnav .rm-subnav__all { padding-left: 0; font: 500 .72rem/1.2 var(--rm-font-mono); letter-spacing: .16em; color: var(--rm-blue); padding-top: 17px; padding-bottom: 15px; }
.rm-subnav .rm-subnav__all::before { content: "\2190\00a0"; }
@media (max-width: 600px) { .rm-subnav__inner { flex-direction: column; align-items: flex-start; } .rm-subnav a { padding: 12px 10px 10px; } .rm-subnav .rm-subnav__all { padding: 14px 0 4px; } .rm-subnav ul { margin-left: -10px; } }

/* =============================================================================================
   Page content: full-width bands (.rm-section, .rm-cta, .rm-hero) and a centred column for everything else
   ============================================================================================= */
.rm-content { display: flow-root; padding: clamp(44px, 6vw, 80px) 0; }
.rm-content:has(> :is(.rm-section, .rm-cta, .rm-hero, .alignfull):first-child) { padding-top: 0; }
.rm-content:has(> :is(.rm-section, .rm-cta, .rm-hero, .alignfull):last-child) { padding-bottom: 0; }
.rm-content > :not(.rm-section, .rm-cta, .rm-hero, .alignfull) { margin-left: var(--rm-pad-x); margin-right: var(--rm-pad-x); }
/* --rm-pad-x is resolved where it's declared, so a narrower column redeclares it too. */
.rm-content.is-prose { --rm-content: 760px; --rm-pad-x: max(var(--rm-gutter), calc((100% - var(--rm-content)) / 2)); }
.rm-content > :first-child { margin-top: 0; }

/* Readable measure for running text, wherever it sits. */
.rm-content :is(p, ul, ol, h2, h3, h4, blockquote, details):not(.rm-cards *, .rm-card *, .wp-block-column *, [class*="rm-"]) { max-width: 72ch; }
.rm-content :is(p, h2, h3, h4).has-text-align-center { margin-left: auto; margin-right: auto; }
.rm-content > :is(p, h2, h3, h4).has-text-align-center { margin-left: var(--rm-pad-x); margin-right: var(--rm-pad-x); max-width: none; }

/* Sections */
.rm-section {
  position: relative;
  padding: var(--rm-section-y) var(--rm-pad-x);
  background-color: var(--c-bg);
  color: var(--c-text);
}
/* Lines-only grid: these bands hold body text, where the crosshairs of grid-light.svg read as stray marks. */
.rm-section:is(.is-tint, .is-dark) { background: url("assets/art/grid-plain.svg") 0 0 / 192px 192px, var(--rm-tint); }
.rm-section.is-paper { background: url("assets/art/grid-plain.svg") 0 0 / 192px 192px, var(--rm-paper); }
.rm-section:not(.is-dark, .is-tint, .is-paper) + .rm-section:not(.is-dark, .is-tint, .is-paper) { border-top: 1px solid var(--rm-line); }
.rm-section:is(.is-tint, .is-dark) + .rm-section:is(.is-tint, .is-dark),
.rm-section.is-paper + .rm-section.is-paper { border-top: 1px solid var(--c-line); }
/* Paper and tint are close (1.04:1), so where one meets the other a hairline makes the edge deliberate. */
.rm-section.is-paper + .rm-section:is(.is-tint, .is-dark),
.rm-section:is(.is-tint, .is-dark) + .rm-section.is-paper { border-top: 1px solid var(--rm-tint-line); }
:is(.rm-section, .rm-card, .rm-cta, .rm-hero, .wp-block-column) > :first-child,
:is(.rm-section, .rm-card, .rm-cta, .rm-hero) > .wp-block-group__inner-container > :first-child { margin-top: 0; }
:is(.rm-section, .rm-card, .rm-cta, .rm-hero, .wp-block-column) > :last-child,
:is(.rm-section, .rm-card, .rm-cta, .rm-hero) > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.rm-section h2 { max-width: 30ch; }
.rm-section h2.has-text-align-center, .rm-section .rm-lede.has-text-align-center { margin-left: auto; margin-right: auto; }
.rm-section .rm-eyebrow.has-text-align-center { text-align: center; }
:where(.rm-section, .rm-content) * + h2 { margin-top: 1.5em; }
:where(.rm-section, .rm-content) * + h3 { margin-top: 1.4em; }
:where(.rm-section, .rm-content) .rm-eyebrow + :is(h2, h3) { margin-top: 0; }
.rm-section > :is(.rm-cards, .rm-steps, .wp-block-columns, .rm-coverage-map),
.rm-section > .wp-block-group__inner-container > :is(.rm-cards, .rm-steps, .wp-block-columns, .rm-coverage-map) { margin-top: clamp(28px, 4vw, 48px); }

/* Cards */
.rm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0 0 1.5em; }
.wp-block-columns.rm-cards { display: grid; flex-wrap: initial; }
.rm-cards > .wp-block-group__inner-container,
.rm-card > .wp-block-group__inner-container { display: contents; }
.rm-card,
.rm-cards > :is(.wp-block-column, .wp-block-group),
.rm-cards > .wp-block-group__inner-container > :is(.wp-block-column, .wp-block-group) {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  margin: 0; padding: clamp(22px, 2.6vw, 32px);
  background: var(--c-card); color: var(--c-text);
  border: 1px solid var(--c-line); border-radius: var(--rm-radius);
}
/* Registration marks: orange corner top left, a fine one bottom right. */
.rm-card::before,
.rm-cards > :is(.wp-block-column, .wp-block-group)::before,
.rm-cards > .wp-block-group__inner-container > :is(.wp-block-column, .wp-block-group)::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; pointer-events: none;
  border-top: 2px solid var(--rm-orange); border-left: 2px solid var(--rm-orange); border-top-left-radius: var(--rm-radius);
}
.rm-card::after,
.rm-cards > :is(.wp-block-column, .wp-block-group)::after,
.rm-cards > .wp-block-group__inner-container > :is(.wp-block-column, .wp-block-group)::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 9px; height: 9px; pointer-events: none;
  background:
    linear-gradient(var(--c-line-strong), var(--c-line-strong)) center / 100% 1px no-repeat,
    linear-gradient(var(--c-line-strong), var(--c-line-strong)) center / 1px 100% no-repeat;
}
:is(.rm-card, .rm-cards > *) h3 { margin: 0 0 .5em; }
:is(.rm-card, .rm-cards > *) p:not([class*="rm-"]) { color: var(--c-muted); font-size: 1rem; }
:is(.rm-card, .rm-cards > *) .rm-eyebrow { margin-bottom: 12px; }
/* A closing "link" line sits at the bottom of the card, so links line up across a row. .is-link-only is set by
   rm_mark_link_only_paragraph() (functions.php) on a paragraph that is nothing but one link: CSS :only-child can't see the text
   around a link, so "Text. More on <a>…</a>." used to be pushed down like a link line. */
:is(.rm-card, .rm-cards > *) > p.is-link-only:last-child,
:is(.rm-card, .rm-cards > *) > .wp-block-group__inner-container > p.is-link-only:last-child { margin-top: auto; padding-top: 6px; }
:is(.rm-card, .rm-cards > *) > .wp-block-buttons:last-child,
:is(.rm-card, .rm-cards > *) > .wp-block-group__inner-container > .wp-block-buttons:last-child { margin-top: auto; padding-top: 14px; }
.rm-cards > * > p.is-link-only:last-child > a { font-weight: 600; }
:is(.is-paper, .is-tint, .is-dark) :is(.rm-card, .rm-cards > *) { box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }

/* Core values (BUILD-CONTRACT.md v9): four cards whose big initials spell RITE. The letter is hidden from screen readers,
   so the heading reads as the word alone. */
.rm-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: clamp(28px, 4vw, 48px) 0 0; }
.rm-values > .wp-block-group__inner-container { display: contents; }
@media (max-width: 999px) { .rm-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .rm-values { grid-template-columns: minmax(0, 1fr); } }
.rm-values .rm-card h3 { display: flex; flex-direction: column; gap: 14px; }
.rm-values__letter { font: 700 clamp(3.4rem, 2.6rem + 2.6vw, 4.6rem)/.8 var(--rm-font-head); letter-spacing: 0; color: var(--rm-blue); }
@media (max-width: 519px) {
  .rm-values .rm-card h3 { flex-direction: row; align-items: baseline; gap: 12px; }
  .rm-values__letter { font-size: 2.6rem; }
}

/* Store (v9): a product panel with the theme's drawing beside the text. */
.rm-product {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  margin: clamp(28px, 4vw, 48px) 0 0; padding: clamp(22px, 3vw, 36px);
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--rm-radius);
}
.rm-product > .wp-block-group__inner-container { display: contents; }
.rm-product__text > :first-child { margin-top: 0; }
.rm-product__text > :last-child { margin-bottom: 0; }
.rm-art svg { display: block; width: 100%; height: auto; }
.rm-art--vest { width: 100%; max-width: 320px; }
.rm-art__caption { font: 500 .72rem/1.4 var(--rm-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rm-muted); }
@media (max-width: 719px) {
  .rm-product { grid-template-columns: minmax(0, 1fr); }
  .rm-art--vest { max-width: 240px; margin: 0 auto; }
}

/* Meet the Team (v13: first on the About page): each card is the photo, name and role, and the whole card links to that person's
   profile page. The link is on the name; its ::after stretches over the card (which is position: relative), so the card is one
   click target and screen readers hear one link per person. */
.rm-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; margin: clamp(28px, 4vw, 48px) 0 0; }
.rm-team > .wp-block-group__inner-container { display: contents; }
.rm-team__photo {
  display: grid; place-items: center; aspect-ratio: 4 / 5; margin: 0 0 18px; overflow: hidden;
  border-radius: calc(var(--rm-radius) - 4px); background: var(--rm-tint);
  font: 500 .72rem/1 var(--rm-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rm-muted);
}
.rm-team__photo p { margin: 0; }
.rm-team :is(.rm-team__photo, .wp-block-image) img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A real photo (core/image block) fills the 4:5 frame on the cards and the profile page; square headshots lose a little at the
   sides. */
/* Pinned to the frame's edges: the frame's height comes from aspect-ratio, which a child's height: 100% can't resolve in a grid. */
.rm-team__photo { position: relative; }
.rm-team__photo > .wp-block-image,
.rm-team__photo > .wp-block-group__inner-container > .wp-block-image { position: absolute; inset: 0; margin: 0; }
.rm-team__photo .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.rm-team__role { margin: -4px 0 10px; font: 500 .75rem/1.4 var(--rm-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); }
.rm-team__member { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.rm-team__member h3 { margin: 0 0 .4em; }
.rm-team__member h3 > a { color: inherit; text-decoration: none; }
.rm-team__member h3 > a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--rm-radius); }
.rm-team__member .rm-team__role:last-child { margin-bottom: 0; }
.rm-team__member:has(h3 > a:hover) { border-color: var(--c-head); box-shadow: 0 10px 28px rgba(5, 53, 126, .12); transform: translateY(-2px); }
.rm-team__member:has(h3 > a:hover) h3 > a { text-decoration: underline; text-underline-offset: .15em; }
.rm-team__member h3 > a:focus-visible { outline: none; }
.rm-team__member:has(h3 > a:focus-visible) { outline: 2px solid var(--c-focus, var(--rm-blue)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rm-team__member { transition: none; } .rm-team__member:has(h3 > a:hover) { transform: none; } }

/* A team member's profile page (/about/<name>/): the photo beside the role, bio and a link back to the team. */
.rm-profile { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rm-profile > .wp-block-group__inner-container { display: contents; }
.rm-profile .rm-team__photo { margin: 0; }
.rm-profile .rm-team__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rm-profile__text > p:not([class*="rm-"]) { font-size: 1.125rem; line-height: 1.6; max-width: 62ch; }
.rm-profile__text .rm-team__role { margin: 0 0 14px; }
@media (max-width: 719px) {
  .rm-profile { grid-template-columns: minmax(0, 1fr); }
  .rm-profile .rm-team__photo { max-width: 280px; }
}

/* Steps: an ordered list as a traverse of numbered stations. */
.rm-steps {
  list-style: none; margin: 0 0 1.5em; padding: 0; counter-reset: rm-step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 32px 28px;
}
/* Six steps read better as two rows of three than as five and one. */
@media (min-width: 900px) { .rm-steps:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rm-steps > li { counter-increment: rm-step; position: relative; margin: 0; padding-top: 58px; color: var(--c-muted); font-size: 1rem; }
.rm-steps > li::before {
  content: counter(rm-step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px;
  font: 500 .85rem/1 var(--rm-font-mono); letter-spacing: .04em;
  color: var(--c-accent); background: var(--c-bg); border: 1.5px solid currentColor; border-radius: 50%;
}
.rm-steps > li::after { content: ""; position: absolute; top: 20px; left: 48px; right: -20px; border-top: 1px dashed var(--c-line-strong); }
.rm-steps > li:last-child::after { display: none; }
.rm-steps > li > strong:first-child, .rm-steps > li > b:first-child {
  display: block; margin-bottom: 6px; color: var(--c-head);
  font: 600 1.3rem/1.2 var(--rm-font-head); letter-spacing: .01em;
}
@media (max-width: 599px) {
  .rm-steps { gap: 26px; }
  .rm-steps > li { padding: 6px 0 0 60px; min-height: 40px; }
  .rm-steps > li::after { top: 48px; bottom: -22px; left: 20px; right: auto; border-top: 0; border-left: 1px dashed var(--c-line-strong); }
}

/* Checklist: orange check marks. */
.rm-checklist { list-style: none; margin: 0 0 1.5em; padding: 0; }
.rm-checklist > li { position: relative; margin: 0 0 .7em; padding-left: 36px; }
.rm-checklist > li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23fa7818'/%3E%3Cpath d='M6.4 11.4l3.1 3.1 6.1-6.7' fill='none' stroke='%23170900' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rm-checklist > li > strong:first-child { color: var(--c-head); }
/* Same reading measure as paragraphs (plus the check-mark indent); long items ran 150+ characters a line on desktop. */
.rm-content .rm-checklist:not(.rm-cards *, .rm-card *, .wp-block-column *) { max-width: calc(72ch + 36px); }

/* State list: chips. */
.rm-state-list { list-style: none; margin: 0 0 1.5em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rm-state-list > li {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  padding: 8px 14px 8px 12px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: var(--c-chip);
  font: 500 .875rem/1.2 var(--rm-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-head);
}
.rm-state-list > li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rm-orange); box-shadow: 0 0 0 3px rgba(250, 120, 24, .22); }
.rm-state-list > li a { color: inherit; text-decoration: none; }
.rm-state-list > li a:hover { color: var(--c-link-hover); text-decoration: underline; }
.rm-state-list.is-compact { gap: 8px; }
.rm-state-list.is-compact > li { padding: 5px 11px 5px 9px; font-size: .8rem; gap: 7px; }
.rm-state-list.is-compact > li::before { width: 6px; height: 6px; box-shadow: 0 0 0 2px rgba(250, 120, 24, .22); }
/* A chip that is a link (the theme links a state once its /service-area/<state>/ page is published): the whole pill
   is the target, with the dot moved onto the link. */
.rm-state-list > li:has(> a:only-child) { padding: 0; }
.rm-state-list > li:has(> a:only-child)::before { display: none; }
.rm-state-list > li > a:only-child { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: inherit; }
.rm-state-list > li > a:only-child::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rm-orange); box-shadow: 0 0 0 3px rgba(250, 120, 24, .22); }
.rm-state-list.is-compact > li > a:only-child { gap: 7px; padding: 5px 11px 5px 9px; }
.rm-state-list.is-compact > li > a:only-child::before { width: 6px; height: 6px; box-shadow: 0 0 0 2px rgba(250, 120, 24, .22); }
.rm-state-list > li:has(> a:only-child:hover) { border-color: var(--c-head); }

/* =============================================================================================
   Touch-size targets (44px) for the theme's small links on phones and tablets. Invisible hit areas or padding with
   matching negative margins, so the layout and the drawn sizes stay as they are.
   ============================================================================================= */
@media (max-width: 1079px) {
  .rm-brand { min-height: 44px; }
  /* State chips that link to a state page: the hit area reaches 7px above and below the pill (31-33px drawn). */
  .rm-state-list > li > a:only-child { position: relative; }
  .rm-state-list > li > a:only-child::after { content: ""; position: absolute; inset: -7px -2px; }
  .rm-state-list:has(> li > a:only-child) { row-gap: 14px; }
  .rm-state-list.is-compact > li > a:only-child { padding: 8px 12px 8px 10px; }
  .rm-breadcrumb a { display: inline-block; padding: 14px 6px; margin: -14px -6px; }
  /* A card's closing link and a linked card title. */
  :is(.rm-card, .rm-cards > *) > p.is-link-only:last-child > a,
  :is(.rm-card, .rm-cards > *) > .wp-block-group__inner-container > p.is-link-only:last-child > a,
  :is(.rm-card, .rm-cards > *) :is(h2, h3, h4) > a:only-child { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .rm-header__phone a { display: inline-block; padding: 13px 0; }
}

/* Note: a small bordered aside (for the licensing note). */
.rm-note {
  position: relative; max-width: 72ch;
  margin: 1.5em 0; padding: 16px 20px 16px 50px;
  font-size: .9375rem; line-height: 1.55; color: var(--c-muted);
  background: var(--c-card); border: 1px solid var(--c-line); border-left: 3px solid var(--c-head); border-radius: 0 8px 8px 0;
}
.rm-note::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; background: var(--c-head);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='10' cy='10' r='5.5'/%3E%3Cpath d='M10 0v6M10 14v6M0 10h6M14 10h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='10' cy='10' r='5.5'/%3E%3Cpath d='M10 0v6M10 14v6M0 10h6M14 10h6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rm-note > .wp-block-group__inner-container > :last-child, .rm-note > :last-child { margin-bottom: 0; }
.rm-note strong { color: var(--c-text); }

/* Call-to-action band */
.rm-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(60px, 8vw, 104px) var(--rm-pad-x);
  background:
    url("assets/art/grid-plain.svg") 0 0 / 192px 192px,
    linear-gradient(90deg, var(--rm-white) 35%, rgba(255, 255, 255, .55) 72%, rgba(255, 255, 255, .15)),
    url("assets/art/contours-light.svg") right center / cover no-repeat,
    var(--rm-white);
  color: var(--rm-text);
  border-top: 1px solid var(--rm-line);
}
.rm-cta::before {
  content: ""; position: absolute; top: 0; left: var(--rm-pad-x); width: 72px; height: 3px; background: var(--rm-orange);
}
.rm-cta > .wp-block-group__inner-container { display: contents; }
.rm-cta > *, .rm-cta > .wp-block-group__inner-container > * { grid-column: 1; }
.rm-cta > .wp-block-buttons, .rm-cta > .wp-block-group__inner-container > .wp-block-buttons,
.rm-cta > .rm-actions, .rm-cta > .wp-block-group__inner-container > .rm-actions {
  grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0;
}
.rm-cta h2 { color: var(--rm-blue); max-width: 22ch; margin-bottom: .35em; }
.rm-cta p:not(.rm-eyebrow) { color: var(--rm-text); max-width: 60ch; font-size: 1.125rem; }
@media (max-width: 819px) {
  .rm-cta { grid-template-columns: minmax(0, 1fr); }
  .rm-cta > .wp-block-buttons, .rm-cta > .wp-block-group__inner-container > .wp-block-buttons,
  .rm-cta > .rm-actions, .rm-cta > .wp-block-group__inner-container > .rm-actions { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
/* Inside a section the band becomes a framed panel. */
.rm-section .rm-cta { padding: clamp(28px, 4vw, 52px); border: 1px solid var(--c-line); border-radius: var(--rm-radius); margin: clamp(28px, 4vw, 48px) 0 0; box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
.rm-section .rm-cta::before { left: clamp(28px, 4vw, 52px); }

/* Link grid (404 page) */
.rm-link-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.rm-link-grid li { margin: 0; }
.rm-link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--c-line); border-radius: var(--rm-radius); background: var(--c-card);
  font: 600 1.15rem/1.2 var(--rm-font-head); letter-spacing: .03em; text-transform: uppercase; color: var(--c-head); text-decoration: none;
}
.rm-link-grid a::after { content: "\2192"; color: var(--c-accent); font-family: var(--rm-font-body); }
.rm-link-grid a:hover { border-color: var(--c-head); color: var(--c-head); }

/* Coverage map ([rm_coverage_map]; the SVG carries its own colours). Shown as a white map sheet with registration
   marks, so the pale land reads the same on white, paper and tint bands. */
div.rm-coverage-map {
  position: relative; margin: 0 0 1.5em; padding: clamp(10px, 3vw, 36px);
  background: var(--rm-white); border: 1px solid var(--c-line); border-radius: var(--rm-radius);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
div.rm-coverage-map::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; pointer-events: none;
  border-top: 2px solid var(--rm-orange); border-left: 2px solid var(--rm-orange); border-top-left-radius: var(--rm-radius);
}
div.rm-coverage-map::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 9px; height: 9px; pointer-events: none;
  background:
    linear-gradient(var(--c-line-strong), var(--c-line-strong)) center / 100% 1px no-repeat,
    linear-gradient(var(--c-line-strong), var(--c-line-strong)) center / 1px 100% no-repeat;
}
div.rm-coverage-map svg { display: block; width: 100%; height: auto; max-height: 80vh; margin: 0 auto; }

/* Listings (index.php) */
.rm-listing + .rm-listing { margin-top: 2em; padding-top: 2em; border-top: 1px solid var(--c-line); }
.rm-listing h2 { font-size: 1.75rem; }
.rm-listing h2 a { color: inherit; text-decoration: none; }

/* =============================================================================================
   Core blocks (core's block CSS is not loaded on the front end, so the basics live here)
   ============================================================================================= */
/* Layout support classes */
.is-layout-flex { display: flex; flex-wrap: wrap; align-items: center; gap: .75em; }
.is-layout-flex > * { margin: 0; }
.is-layout-flex.is-vertical { flex-direction: column; align-items: flex-start; }
.is-layout-flex.is-nowrap { flex-wrap: nowrap; }
.is-layout-grid { display: grid; gap: 1.25em; }
.is-layout-grid > * { margin: 0; }
.is-content-justification-left { justify-content: flex-start; }
.is-content-justification-center { justify-content: center; }
.is-content-justification-right { justify-content: flex-end; }
.is-content-justification-space-between { justify-content: space-between; }
.is-layout-flex.is-vertical.is-content-justification-center { align-items: center; }
.is-layout-flex.is-vertical.is-content-justification-right { align-items: flex-end; }

/* Columns */
.wp-block-columns { display: flex; flex-wrap: wrap; align-items: normal; gap: clamp(24px, 4vw, 56px); margin: 0 0 1.5em; }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-columns.are-vertically-aligned-top { align-items: flex-start; }
.wp-block-columns.are-vertically-aligned-bottom { align-items: flex-end; }
.wp-block-column { flex: 1 1 0; min-width: 0; overflow-wrap: break-word; }
.wp-block-column.is-vertically-aligned-center { align-self: center; }
.wp-block-column.is-vertically-aligned-top { align-self: flex-start; }
.wp-block-column.is-vertically-aligned-bottom { align-self: flex-end; }
/* Core's layout support prints flex-wrap: nowrap on each columns block, so stacking needs !important (as in core's own CSS). */
@media (min-width: 782px) {
  .wp-block-columns:not(.rm-cards) { flex-wrap: nowrap !important; }
  .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
}
@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile):not(.rm-cards) { flex-wrap: wrap !important; }
  .wp-block-columns:not(.is-not-stacked-on-mobile):not(.rm-cards) > .wp-block-column { flex-basis: 100% !important; }
}
.wp-block-columns.is-not-stacked-on-mobile { flex-wrap: nowrap; }

/* Groups with a background colour get some room. */
.wp-block-group.has-background:not(.rm-section, .rm-cta, .rm-hero, .rm-card) { padding: clamp(20px, 3vw, 36px); border-radius: var(--rm-radius); }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 1.75em 0 0; }
.wp-block-buttons.is-vertical { flex-direction: column; align-items: flex-start; }
.wp-block-buttons > .wp-block-button { margin: 0; }
.wp-block-button.aligncenter { text-align: center; }
.wp-block-button.has-custom-width .wp-block-button__link { width: 100%; }
.wp-block-button.wp-block-button__width-25 { flex-basis: calc(25% - 12px); }
.wp-block-button.wp-block-button__width-50 { flex-basis: calc(50% - 12px); }
.wp-block-button.wp-block-button__width-75 { flex-basis: calc(75% - 12px); }
.wp-block-button.wp-block-button__width-100 { flex-basis: 100%; }
.wp-block-button__link.has-background:hover { filter: brightness(1.08); }

/* Lists */
.rm-content :is(ul, ol):not([class*="rm-"]):not(.wp-block-social-links) { padding-left: 1.3em; margin: 0 0 1.25em; }
.rm-content :is(ul, ol):not([class*="rm-"]) li { margin: .35em 0; }
.rm-content :is(ul, ol):not([class*="rm-"]) li::marker { color: var(--c-accent); }
.rm-content ol:not([class*="rm-"]) li::marker { font-family: var(--rm-font-mono); font-size: .9em; }

/* Separator: a fine rule that starts with an orange stroke, like the logo's swoosh. */
.wp-block-separator {
  border: 0; height: 1px; margin: clamp(32px, 5vw, 56px) 0;
  background: linear-gradient(90deg, var(--rm-orange) 0 64px, var(--c-line) 64px);
  color: var(--c-line); opacity: 1;
}
.wp-block-separator.is-style-dots { height: auto; background: none; text-align: center; line-height: 1; }
.wp-block-separator.is-style-dots::before { content: "\00b7\00b7\00b7"; color: var(--rm-orange); font-size: 1.75rem; letter-spacing: 1em; padding-left: 1em; }
.wp-block-separator.has-background:not(.is-style-dots) { background-image: none; }
.wp-block-separator.has-text-color.is-style-dots::before { color: currentColor; }

/* Details: FAQ items */
.wp-block-details { margin: 0; border-bottom: 1px solid var(--c-line); max-width: 860px; }
.wp-block-details:not(.wp-block-details + .wp-block-details) { border-top: 1px solid var(--c-line); }
.wp-block-details > summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 20px 56px 20px 0;
  font: 600 1.25rem/1.3 var(--rm-font-head); letter-spacing: .01em; color: var(--c-head);
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px;
  border: 1px solid var(--c-line-strong); border-radius: 50%;
  background:
    linear-gradient(var(--c-accent), var(--c-accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--c-accent), var(--c-accent)) center / 2px 12px no-repeat;
  transition: background-size .2s ease, border-color .2s ease;
}
.wp-block-details > summary:hover::after { border-color: var(--c-accent); }
.wp-block-details[open] > summary::after { background-size: 12px 2px, 2px 0; border-color: var(--c-accent); }
.wp-block-details > summary:focus-visible { outline-offset: 2px; }
.wp-block-details > :not(summary) { color: var(--c-muted); margin: 0 0 1em; max-width: 68ch; }
.wp-block-details > :last-child:not(summary) { margin-bottom: 22px; }

/* Images and figures */
.wp-block-image { margin: 0 0 1.5em; }
.wp-block-image img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.wp-block-image.aligncenter, .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-block-image.aligncenter img { margin: 0 auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
@media (max-width: 599px) { .alignleft, .alignright { float: none; margin: 0 0 1.5em; } }
.wp-element-caption, figcaption { margin-top: 10px; font: 400 .8rem/1.5 var(--rm-font-mono); color: var(--c-muted); letter-spacing: .02em; }
.wp-block-embed { margin: 0 0 1.5em; }
.wp-block-embed iframe { max-width: 100%; }
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper { aspect-ratio: 4 / 3; }
.wp-block-embed.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Quote */
.wp-block-quote { margin: 1.75em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--rm-orange); font-size: 1.2rem; line-height: 1.5; color: var(--c-text); }
.wp-block-quote p:last-of-type { margin-bottom: 0; }
.wp-block-quote cite { display: block; margin-top: 12px; font: 500 .75rem/1.4 var(--rm-font-mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--c-muted); }

/* Tables */
.wp-block-table { margin: 0 0 1.75em; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .975rem; }
.wp-block-table th, .wp-block-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.wp-block-table thead th { font: 500 .72rem/1.4 var(--rm-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); border-bottom: 1.5px solid var(--c-head); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: rgba(5, 53, 126, .04); }
:is(.is-tint, .is-dark) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .6); }

.wp-block-spacer { clear: both; }

/* Palette and font-size classes (core's global styles aren't loaded, so the editor's choices need these). */
.has-rm-black-color { color: var(--rm-black) !important; }
.has-rm-ink-color { color: var(--rm-ink) !important; }
.has-rm-ink-2-color { color: var(--rm-ink-2) !important; }
.has-rm-orange-color { color: var(--rm-orange) !important; }
.has-rm-orange-text-color { color: var(--rm-orange-text) !important; }
.has-rm-blue-color { color: var(--rm-blue) !important; }
.has-rm-blue-bright-color { color: var(--rm-blue-bright) !important; }
.has-rm-paper-color { color: var(--rm-paper) !important; }
.has-rm-tint-color { color: var(--rm-tint) !important; }
.has-rm-white-color { color: var(--rm-white) !important; }
.has-rm-text-color { color: var(--rm-text) !important; }
.has-rm-muted-color { color: var(--rm-muted) !important; }
.has-rm-text-on-dark-color { color: var(--rm-text-on-dark) !important; }
.has-rm-muted-on-dark-color { color: var(--rm-muted-on-dark) !important; }
.has-rm-line-color { color: var(--rm-line) !important; }
.has-rm-black-background-color { background-color: var(--rm-black) !important; }
.has-rm-ink-background-color { background-color: var(--rm-ink) !important; }
.has-rm-ink-2-background-color { background-color: var(--rm-ink-2) !important; }
.has-rm-orange-background-color { background-color: var(--rm-orange) !important; }
.has-rm-orange-text-background-color { background-color: var(--rm-orange-text) !important; }
.has-rm-blue-background-color { background-color: var(--rm-blue) !important; }
.has-rm-blue-bright-background-color { background-color: var(--rm-blue-bright) !important; }
.has-rm-paper-background-color { background-color: var(--rm-paper) !important; }
.has-rm-tint-background-color { background-color: var(--rm-tint) !important; }
.has-rm-white-background-color { background-color: var(--rm-white) !important; }
.has-rm-text-background-color { background-color: var(--rm-text) !important; }
.has-rm-muted-background-color { background-color: var(--rm-muted) !important; }
.has-rm-text-on-dark-background-color { background-color: var(--rm-text-on-dark) !important; }
.has-rm-muted-on-dark-background-color { background-color: var(--rm-muted-on-dark) !important; }
.has-rm-line-background-color { background-color: var(--rm-line) !important; }
.has-small-font-size { font-size: .9375rem !important; }
.has-normal-font-size { font-size: 1.0625rem !important; }
.has-medium-font-size { font-size: 1.25rem !important; }
.has-large-font-size { font-size: 1.75rem !important; }
.has-x-large-font-size { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem) !important; }
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Block editor only (.wp-block marks the editor's block wrappers): core's constrained layout centres blocks there
   with auto margins, which would centre headings and card text that sit left on the site. */
:is(.rm-section, .rm-card, .rm-cards > *, .rm-cta, .rm-hero, .rm-note, .wp-block-column) > .wp-block:not(.has-text-align-center, .aligncenter, .alignfull, .alignwide),
:is(.rm-section, .rm-card, .rm-cards > *, .rm-cta, .rm-hero, .rm-note) > .wp-block-group__inner-container > .wp-block:not(.has-text-align-center, .aligncenter, .alignfull, .alignwide) {
  margin-left: 0 !important; margin-right: 0 !important;
}

/* =============================================================================================
   Footer
   ============================================================================================= */
/* Paper, with the transparent logo, a survey scale along the top edge and faint contours on the right on wide screens. */
.rm-footer {
  position: relative;
  background: var(--rm-paper);
  color: var(--rm-muted); font-size: .975rem;
  padding: clamp(56px, 7vw, 88px) var(--rm-pad-x) 28px;
  border-top: 1px solid var(--rm-line);
}
.rm-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--rm-tick) 0 1px, transparent 1px 60px) left top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--rm-tick-minor) 0 1px, transparent 1px 12px) left top / 100% 4px no-repeat;
}
@media (min-width: 960px) {
  .rm-footer {
    background:
      linear-gradient(90deg, var(--rm-paper) 35%, rgba(244, 246, 249, .7) 65%, rgba(244, 246, 249, .3)),
      url("assets/art/contours-light.svg") right bottom / auto 100% no-repeat,
      var(--rm-paper);
  }
}
.rm-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 959px) { .rm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rm-footer__brand { grid-column: 1 / -1; } }
/* Tablets: the site menu (15 links) spans the width in columns, then Contact and Service area sit side by side.
   As one tall column it pushed Service area onto a third row under the menu, leaving a hole beside it. */
@media (min-width: 560px) and (max-width: 959px) {
  .rm-footer__grid > nav.rm-footer__col { grid-column: 1 / -1; }
  .rm-footer__grid > nav.rm-footer__col .rm-footer__menu { columns: 3; column-gap: 24px; }
}
@media (min-width: 560px) and (max-width: 719px) { .rm-footer__grid > nav.rm-footer__col .rm-footer__menu { columns: 2; } }
@media (max-width: 559px) {
  .rm-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rm-footer__menu { columns: 2; column-gap: 24px; }
}
@media (max-width: 959px) { .rm-footer__menu li { break-inside: avoid; } }
.rm-footer .rm-brand img { height: 56px; }
.rm-footer__brand p { margin: 18px 0 0; max-width: 38ch; }
.rm-footer h2 { font: 500 .75rem/1.4 var(--rm-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--rm-blue); margin: 0 0 16px; }
.rm-footer h2::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--rm-orange); }
.rm-footer ul { list-style: none; margin: 0; padding: 0; }
.rm-footer__menu li { margin: 0 0 8px; }
.rm-footer a { color: var(--rm-blue); text-decoration: none; }
.rm-footer a:hover { color: var(--rm-orange-text); text-decoration: underline; }
.rm-footer a[aria-current="page"] { color: var(--rm-orange-text); }
.rm-footer__contact { margin: 0; line-height: 1.6; }
.rm-footer__contact p { margin: 0 0 8px; }
.rm-footer__contact address { font-style: normal; }
.rm-footer__quote { margin: 20px 0 0; }
.rm-footer .rm-footer__quote .rm-btn { color: var(--rm-on-orange); text-decoration: none; min-height: 44px; padding: 10px 18px; }
.rm-footer .rm-state-list { margin: 0; }
.rm-footer__more { margin: 14px 0 0; }
.rm-footer__note { margin: 0 0 12px; }
/* "Follow us on LinkedIn" ([rm_linkedin]): the outline button with LinkedIn's own logo. */
.rm-linkedin-wrap { margin: 20px 0 0; }
.rm-linkedin__icon { flex: none; width: 20px; height: 20px; }
.rm-footer .rm-linkedin-wrap { margin-top: 22px; }
.rm-footer .rm-linkedin { min-height: 44px; padding: 10px 18px; text-decoration: none; }
.rm-footer .rm-linkedin:hover { text-decoration: none; }
.rm-footer__brand .rm-footer__values { margin-top: 14px; font: 500 .72rem/1.6 var(--rm-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rm-blue); }
.rm-footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--rm-line);
  font: 500 .72rem/1.5 var(--rm-font-mono); letter-spacing: .14em; text-transform: uppercase;
}
.rm-footer__legal a { color: var(--rm-muted); text-decoration: underline; text-decoration-color: var(--rm-tick); }
.rm-footer__legal a:hover { color: var(--rm-blue); text-decoration-color: currentColor; }
/* [rm_cookie_settings] prints a button instead of a link while no cookie policy page is published. */
.rm-footer__legal button.rm-cookie-settings {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--rm-muted); text-decoration: underline; text-decoration-color: var(--rm-tick);
}
.rm-footer__legal button.rm-cookie-settings:hover { color: var(--rm-blue); text-decoration-color: currentColor; }
.rm-footer__scale { margin-left: auto; display: inline-flex; align-items: center; color: var(--rm-muted); }
@media (max-width: 559px) { .rm-footer__scale { margin-left: 0; } }
/* Phones and tablets: 44px touch targets. The menu's spacing moves into the links; elsewhere padding with negative
   margins keeps the layout as drawn. */
@media (max-width: 959px) {
  .rm-footer__menu li { margin: 0; }
  .rm-footer__menu a, .rm-footer__more a { display: inline-block; min-width: 44px; padding: 10px 0; }
  .rm-footer__more { margin-top: 4px; }
  .rm-footer__contact a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .rm-footer__legal a { display: inline-block; padding: 14px 0; margin: -4px 0; }
}

/* =============================================================================================
   Motion and print
   ============================================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .rm-header, .rm-footer, .rm-front-hero__art, .rm-readout, .rm-subnav, .rm-cta .wp-block-buttons { display: none !important; }
  .rm-hero, .rm-front-hero, .rm-cta, .rm-section.is-dark, .rm-section.is-tint, .rm-section.is-paper { background: none !important; color: #000 !important; --c-head: #000; --c-text: #000; --c-muted: #333; }
}
