/* ============================================================
   Flowmotion — Redesign theme (2026)
   Design tokens + base defaults for the new site shell and
   redesigned pages, plus the shared header / footer / kebab
   component styles. Legacy page internals are scoped under
   `.legacy-theme` (see styles.css) so they are unaffected by
   the base rules below.
   ============================================================ */

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  /* ---- Brand palette ---- */
  --fm-purple: #66049e;
  --fm-text: #4c4263;
  --fm-pink: #ff3998;
  --fm-green: #00de67;
  --fm-blue: #00e3da;
  --fm-yellow: #ffb32f;

  /* Back-compat alias used by legacy markup */
  --fm-cyan: #00e3da;
  --fm-grey: rgb(250, 250, 250);

  /* ---- Purple ramp ---- */
  --purple-900: #2c0345;
  --purple-800: #420568;
  --purple-700: #560487;
  --purple-600: #66049e;
  --purple-500: #7e27b0;
  --purple-400: #9a53c3;
  --purple-300: #bc86d8;
  --purple-200: #dbbdec;
  --purple-100: #efe1f6;
  --purple-50: #f8f1fb;

  /* ---- Ink / neutral ramp ---- */
  --ink-900: #2b2538;
  --ink-800: #3a3350;
  --ink-700: #4c4263;
  --ink-600: #635a7b;
  --ink-500: #837b97;
  --ink-400: #a8a1b8;
  --ink-300: #cbc7d6;
  --ink-200: #e4e1ec;
  --ink-100: #f1eff5;
  --ink-50: #f8f7fb;
  --white: #ffffff;
  --black: #1a1622;

  /* ---- Accent ramps ---- */
  --pink-600: #e61f80;
  --pink-500: #ff3998;
  --pink-100: #ffe0ef;
  --green-600: #00b954;
  --green-500: #00de67;
  --green-100: #d6f9e4;
  --blue-600: #00bdb5;
  --blue-500: #00e3da;
  --blue-100: #d2f8f6;
  --yellow-600: #f59e00;
  --yellow-500: #ffb32f;
  --yellow-100: #ffefd2;

  /* ---- Gradients ---- */
  --gradient-brand: linear-gradient(110deg, #00e3da 0%, #00de67 52%, #ffb32f 100%);
  --gradient-brand-soft: linear-gradient(110deg, #00e3da22 0%, #00de6722 52%, #ffb32f22 100%);
  --gradient-violet: linear-gradient(135deg, #66049e 0%, #ff3998 100%);

  /* ---- Semantic aliases ---- */
  --color-brand: var(--fm-purple);
  --color-brand-hover: var(--purple-700);
  --color-brand-press: var(--purple-800);

  --text-strong: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-500);
  --text-on-brand: var(--white);
  --text-link: var(--fm-purple);

  --surface-page: var(--white);
  --surface-subtle: var(--ink-50);
  --surface-card: var(--white);
  --surface-inverse: var(--ink-900);
  --surface-brand: var(--fm-purple);

  --border-subtle: var(--ink-200);
  --border-default: var(--ink-300);
  --border-strong: var(--ink-700);

  --focus-ring: color-mix(in srgb, var(--fm-purple) 45%, transparent);

  /* ---- Typography (mapped to the site's Satoshi webfont) ---- */
  --font-sans: 'Satoshi-Variable', 'Satoshi-Regular', Arial, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Satoshi-Variable', 'Satoshi-Bold', Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --weight-black: 900;

  /* ---- Radius ---- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* ---- Shadows (soft, violet-tinted) ---- */
  --shadow-xs: 0 1px 2px rgba(44, 3, 69, 0.06);
  --shadow-sm: 0 2px 6px rgba(44, 3, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(44, 3, 69, 0.1);
  --shadow-lg: 0 18px 48px rgba(44, 3, 69, 0.14);
  --shadow-xl: 0 32px 72px rgba(44, 3, 69, 0.18);
  --shadow-brand: 0 12px 32px rgba(102, 4, 158, 0.28);
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

/* Site-level overrides: a deeper near-black violet for dark bands,
   plus the pink→purple hero gradient used for gradient headings. */
:root {
  --ink-900: #120426;
  --grad-hero: linear-gradient(118deg, #9b1fe0 0%, #ff3998 100%);
}

/* ============================================================
   Base defaults for the new shell + redesigned pages.
   (Legacy page bodies override these via `.legacy-theme`.)
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.fm-page :where(h1, h2, h3, h4, h5) {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--text-strong);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.fm-page p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.fm-page a {
  color: var(--text-link);
  text-decoration: none;
}
.fm-page a:hover {
  text-decoration: underline;
}
.fm-page strong,
.fm-page b {
  font-weight: var(--weight-bold);
}
/* White anchor text for buttons/links on strong (purple / fuchsia / dark)
   backgrounds. `.fm-page a` (specificity 0,1,1) out-specifies a bare button
   class such as `.fm-btn--pink` (0,1,0) and would otherwise force these
   anchors to the purple link colour, so this rule is scoped under
   `.fm-page a` to win, and also works standalone outside `.fm-page`. */
.fm-on-strong,
.fm-page a.fm-on-strong,
.fm-page a.fm-on-strong:hover {
  color: #fff;
}

::selection {
  background: color-mix(in srgb, var(--fm-purple) 22%, transparent);
}

/* Brand utility: blue→green→yellow gradient text */
.fm-gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  height: 50px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 18px 0 18px 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.fm-btn:hover {
  text-decoration: none;
}
.fm-btn--lg {
  height: 52px;
  font-size: 16px;
}
.fm-btn--sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 12px 0 12px 0;
}
.fm-btn--pink {
  background: var(--fm-pink);
  color: #fff;
  box-shadow: 6px 6px 0 -2px var(--ink-900), 6px 6px 0 0 rgba(255, 255, 255, 0.42);
}
.fm-btn--pink:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 -2px var(--ink-900), 3px 3px 0 0 rgba(255, 255, 255, 0.42);
  color: #fff;
}
.fm-btn--pinkflat {
  background: var(--fm-pink);
  color: #fff;
}
.fm-btn--pinkflat:hover {
  filter: brightness(0.93);
  color: #fff;
}
.fm-btn--purple {
  background: var(--fm-purple);
  color: #fff;
  box-shadow: 6px 6px 0 0 var(--fm-pink);
}
.fm-btn--purple:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--fm-pink);
  color: #fff;
}
.fm-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.fm-btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}
.fm-btn--outline {
  background: #fff;
  color: var(--fm-purple);
  border-color: var(--fm-pink);
  box-shadow: 6px 6px 0 0 var(--fm-pink);
}
.fm-btn--outline:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--fm-pink);
}
.fm-btn--white {
  background: #fff;
  color: var(--fm-purple);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.18);
}
.fm-btn--white:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.18);
}
.fm-btn--flat {
  background: var(--fm-purple);
  color: #fff;
  border-radius: 12px 0 12px 0;
}
.fm-btn--flat:hover {
  filter: brightness(1.08);
  color: #fff;
}
.fm-btn svg {
  width: 18px;
  height: 18px;
}

/* Diagonal slashed hero edge with fuchsia accent line */
.fm-edge {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 96px;
  z-index: 4;
  pointer-events: none;
  display: block;
}
.fm-edge line {
  stroke: var(--fm-pink);
  stroke-width: 3;
}

/* Hero pseudo-code syntax colours */
.fm-kw {
  color: var(--fm-pink);
}
.fm-gn {
  color: var(--fm-green);
}
.fm-cm {
  color: rgba(255, 255, 255, 0.4);
}

/* Interactive card lift on hover */
.fm-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fm-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Shared header
   ============================================================ */
.fm-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.fm-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.fm-header__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.fm-header__logo img {
  height: 30px;
  display: block;
}
.fm-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.fm-navlink {
  font-family: var(--font-sans);
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  color: var(--ink-700);
}
.fm-navlink:hover {
  color: var(--fm-purple);
  text-decoration: none;
}
.fm-navlink.active {
  font-weight: 700;
  color: var(--fm-purple);
}
.fm-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  white-space: nowrap;
}

/* Kebab (overflow) menu */
.fm-kebab {
  position: relative;
  display: flex;
}
.fm-kebab__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px 0 12px 0;
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.fm-kebab__btn:hover {
  color: var(--fm-purple);
  border-color: var(--fm-purple);
}
.fm-kebab__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 232px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px 0 16px 0;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 210;
}
.fm-kebab.open .fm-kebab__menu {
  display: flex;
}
.fm-kebab__menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 10px 0 10px 0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.fm-kebab__menu a:hover {
  background: var(--surface-subtle);
  color: var(--fm-purple);
  text-decoration: none;
}
.fm-kebab__menu a.active {
  color: var(--fm-purple);
  font-weight: 700;
}
.fm-kebab__label {
  padding: 8px 14px 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Mobile menu toggle (hidden on desktop) */
.fm-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px 0 12px 0;
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
}

/* The in-menu voice launcher only appears in the mobile menu */
.fm-nav__ada {
  display: none;
}

@media (max-width: 860px) {
  .fm-header__inner {
    /* The nav is a dropdown panel on mobile (see below) and is taken out of
       the flex flow, so the top bar is a single row and the base
       align-items:center vertically centres the logo + burger in the bar. */
    position: relative;
    padding: 0 18px;
  }
  .fm-burger {
    display: inline-flex;
    order: 3;
  }
  .fm-header__actions {
    order: 2;
  }
  /* On mobile the top bar is just logo + burger; the "Speak to Ada"
     button moves into the dropdown menu instead. */
  .fm-header__ada {
    display: none;
  }
  /* Nav becomes a full-width dropdown panel below the bar */
  .fm-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .fm-header.menu-open .fm-nav {
    max-height: calc(100vh - 74px);
    padding: 14px 18px 20px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }
  /* Full-width, finger-friendly Ada button at the top of the menu */
  .fm-nav__ada {
    display: inline-flex;
    order: -1;
    flex: none;
    align-self: stretch;
    height: 48px;
    font-size: 15px;
    margin: 2px 0 14px;
  }
  .fm-navlink {
    flex: none;
    font-size: 17px;
    padding: 10px 2px;
  }
  /* On mobile the kebab pages are folded into the main menu instead */
  .fm-kebab {
    display: none;
  }
  .fm-nav .fm-nav__more {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
    padding-top: 8px;
  }
}

/* The mobile "more" links live inside the nav but are hidden on desktop */
.fm-nav__more {
  display: none;
}

/* ============================================================
   Shared footer
   ============================================================ */
.fm-footer {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  border-top: 3px solid var(--fm-pink);
}
.fm-footer__glyph {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 520px;
  line-height: 0.8;
  color: rgba(255, 57, 152, 0.07);
  pointer-events: none;
  right: -60px;
  bottom: -180px;
  user-select: none;
}
.fm-footer__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.fm-footer__logo {
  height: 30px;
  display: block;
  /* brand SVG is purple/pink — force it white for the dark footer */
  filter: brightness(0) invert(1);
}
.fm-footer__blurb {
  margin-top: 18px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.6;
}
.fm-footer__blurb strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}
.fm-footer__contact {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fm-pink);
}
.fm-footer__contact span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}
.fm-footer h4 {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  margin: 0 0 16px;
}
.fm-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.fm-footer__list a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.fm-footer__list a:hover {
  color: #fff;
  text-decoration: none;
}
.fm-footer__bar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fm-footer__bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.fm-footer__bar-inner,
.fm-footer__bar-inner a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.fm-footer__bar-inner a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 780px) {
  .fm-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fm-footer__glyph {
    font-size: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
  .fm-btn,
  .fm-lift,
  .fm-nav {
    transition: none;
  }
}

/* ============================================================
   Global responsive layer for the redesigned (.fm-page) shell
   ------------------------------------------------------------
   The redesigned pages lay their columns out with *inline*
   `display:grid; grid-template-columns:…` styles. A normal
   stylesheet media query can't override an inline style, so these
   rules use attribute selectors together with `!important` — the
   one case where a stylesheet wins over an inline declaration — to
   make every inline grid collapse gracefully on tablet and phone
   instead of squashing its columns to fit.

   These are the baseline for every new-theme page; where an
   individual page's own <style> block already handles a specific
   grid (e.g. servicenow.ejs, contact.ejs) that rule still applies,
   and the two converge on the same single-column result on phones.

   Breakpoints:
     ≤ 900px  tablet portrait / phone landscape — dense card grids
              drop to two columns; 2-column and asymmetric hero /
              feature splits stack.
     ≤ 600px  phones — everything is a single column.
   ============================================================ */

/* Keep decorative absolutely-positioned glyphs and wide code
   blocks from forcing a horizontal scrollbar on small screens. */
.fm-page {
  overflow-x: hidden;
}
.fm-page img {
  max-width: 100%;
  /* height: 266px; */
  object-position: top
}
.fm-page pre {
  max-width: 100%;
  overflow-x: auto;
}

/* ---- Tablet portrait / phone landscape ---- */
@media (max-width: 900px) {
  /* Dense equal-column card grids → two columns */
  .fm-page [style*="grid-template-columns:repeat(3,1fr)"],
  .fm-page [style*="grid-template-columns:repeat(4,1fr)"],
  .fm-page [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Two-column and asymmetric feature / hero splits → stack */
  .fm-page [style*="grid-template-columns:repeat(2,1fr)"],
  .fm-page [style*="grid-template-columns:1fr 1fr"],
  .fm-page [style*="grid-template-columns:minmax(0,1fr) minmax(0,1fr)"],
  .fm-page [style*="grid-template-columns:1.1fr 0.9fr"],
  .fm-page [style*="grid-template-columns:1.05fr 0.95fr"],
  .fm-page [style*="grid-template-columns:0.95fr 1.05fr"],
  .fm-page [style*="grid-template-columns:1.15fr 0.85fr"],
  .fm-page [style*="grid-template-columns:1.12fr 0.88fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Even, slightly tighter side gutters on full-width bands
     (every band shares the 32px horizontal gutter). */
  .fm-page [style*=" 32px"] {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }
  /* Trim the tall top padding on hero bands (padding: NNpx 32px 104px) so
     the first element doesn't sit under a big band of whitespace. The large
     bottom padding is kept for the diagonal edge graphic. */
  .fm-page [style*="32px 104px"] {
    padding-top: 60px !important;
  }
}

/* ---- Phones: single column throughout ---- */
@media (max-width: 600px) {
  .fm-page [style*="grid-template-columns:repeat(2,1fr)"],
  .fm-page [style*="grid-template-columns:repeat(3,1fr)"],
  .fm-page [style*="grid-template-columns:repeat(4,1fr)"],
  .fm-page [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .fm-page [style*=" 32px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  /* Roomy inner CTA / closing cards shed their large side padding */
  .fm-page [style*=" 48px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  /* Tighten the tall, symmetric standard section bands (88px top/bottom)
     into a calmer, still-even vertical rhythm on phones. The hero / OTM /
     closing bands use a 3-value padding for their diagonal edge graphic
     and are intentionally left untouched. */
  .fm-page [style*="padding:88px 32px;"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  /* Hero bands: pull the top padding in further on phones */
  .fm-page [style*="32px 104px"] {
    padding-top: 44px !important;
  }
}

/* ============================================================
   Legal / long-form prose pages (privacy policy, modern slavery)
   Styled purely off the existing `.layout-panel` markup so the
   templates themselves are left untouched.
   ============================================================ */
.fm-page .layout-panel {
  background: var(--surface-page);
  padding: 56px 20px 96px;
}
.fm-page .layout-panel .container-fluid {
  padding: 0;
}
.fm-page .layout-panel .container {
  max-width: 820px;
}
.fm-page .layout-panel .col {
  padding: 0;
}

/* Page title: sits above the prose with a fuchsia accent rule */
.fm-page .layout-panel h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-transform: none;
  margin: 0 0 18px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--fm-pink);
}
.fm-page .layout-panel h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 44px 0 14px;
}
.fm-page .layout-panel h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 34px 0 10px;
}
.fm-page .layout-panel h5 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.fm-page .layout-panel p {
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  margin: 0 0 1.05em;
}
.fm-page .layout-panel ul,
.fm-page .layout-panel ol {
  color: var(--text-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  padding-left: 1.35em;
  margin: 0 0 1.2em;
}
.fm-page .layout-panel li {
  margin-bottom: 0.45em;
}
.fm-page .layout-panel li::marker {
  color: var(--fm-purple);
}
.fm-page .layout-panel li p {
  margin: 0 0 0.4em;
}
.fm-page .layout-panel a {
  color: var(--fm-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.fm-page .layout-panel strong,
.fm-page .layout-panel b {
  color: var(--text-strong);
  font-weight: 700;
}
.fm-page .layout-panel hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 26px 0;
  opacity: 1;
}
/* The "Last updated" line that immediately follows the title */
.fm-page .layout-panel h1 + p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: -6px;
}
