/* CTS Design System v0: components.
   Needs tokens/tokens.css loaded first. Plain CSS, no build step, no JavaScript.
   Every class starts with "cts-" so this file can sit beside older stylesheets without collisions.
   Order: base, layout, type, buttons and links, header and nav, promo bar, tiles, chips, forms, FAQ, CTA, footer, utilities. */

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--cts-color-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--cts-color-graphite-600) var(--cts-color-bg);
  scroll-padding-top: calc(var(--cts-layout-header) + var(--cts-space-5));
  accent-color: var(--cts-color-gold);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cts-color-bg);
  color: var(--cts-color-text);
  font-family: var(--cts-font-family-sans);
  font-size: var(--cts-font-size-body);
  line-height: var(--cts-line-height-body);
  letter-spacing: var(--cts-letter-spacing-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a, button, summary, select, input, textarea, label { touch-action: manipulation; }
::selection { background: rgba(242, 191, 101, 0.34); color: var(--cts-color-cream); }

/* One focus ring everywhere, in two rings: a dark gap (box-shadow) inside a gold ring (outline). The gap keeps the gold
   readable on black, on brass buttons and on cream; --cts-focus-gap, -gap-color and -offset come from cts-site.css. */
:focus-visible {
  outline: var(--cts-focus-width) solid var(--cts-color-focus);
  outline-offset: var(--cts-focus-offset);
  box-shadow: 0 0 0 var(--cts-focus-gap, 2px) var(--cts-focus-gap-color, #060504);
  border-radius: var(--cts-radius-xs);
  scroll-margin-top: var(--cts-header-clearance, 5rem);
}
:focus:not(:focus-visible) { outline: none; }

/* ================= Layout ================= */
.cts-wrap {
  width: min(var(--cts-layout-wrap), 100% - 2 * var(--cts-layout-gutter));
  margin-inline: auto;
}
.cts-wrap--narrow { width: min(var(--cts-layout-wrap-narrow), 100% - 2 * var(--cts-layout-gutter)); }

/* A section is vertical rhythm only. A band is a full-width surface a section can sit on. */
.cts-section { padding-block: var(--cts-layout-section); }
.cts-band { position: relative; }
.cts-band--raised {
  background: var(--cts-gradient-band);
  box-shadow: inset 0 1px 0 var(--cts-color-line), inset 0 -1px 0 var(--cts-color-line);
}
.cts-band--sunken { background: var(--cts-color-bg-sunken); box-shadow: inset 0 1px 0 var(--cts-color-line); }

/* Section heading: headline on the left, a short aside on the right. Stacks on small screens. */
.cts-section-head {
  display: grid;
  gap: var(--cts-space-5);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.cts-section-head__aside { color: var(--cts-color-text-secondary); font-size: var(--cts-font-size-body-lg); line-height: var(--cts-line-height-snug); }
@media (min-width: 900px) {
  .cts-section-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--cts-space-8); }
  .cts-section-head__aside { text-align: right; padding-bottom: 0.5rem; }
}

/* ================= Type ================= */
.cts-display, .cts-headline, .cts-title-1, .cts-title-2 {
  font-family: var(--cts-font-family-display);
  font-weight: var(--cts-font-weight-semibold);
  color: var(--cts-color-text);
  text-wrap: balance;
}
.cts-display { font-size: var(--cts-font-size-display); line-height: var(--cts-line-height-display); letter-spacing: var(--cts-letter-spacing-display); }
.cts-headline { font-size: var(--cts-font-size-headline); line-height: var(--cts-line-height-headline); letter-spacing: var(--cts-letter-spacing-headline); }
.cts-title-1 { font-size: var(--cts-font-size-title-1); line-height: var(--cts-line-height-title); letter-spacing: var(--cts-letter-spacing-title); }
.cts-title-2 { font-size: var(--cts-font-size-title-2); line-height: var(--cts-line-height-title); letter-spacing: var(--cts-letter-spacing-title); }

/* Emphasis inside a heading is a change of light, not of slant.
   Display: the one gold phrase on a page. Headline: the second thought steps back into graphite. */
.cts-display em, .cts-headline em { font-style: normal; }
.cts-display em {
  color: var(--cts-color-gold);
  background: var(--cts-gradient-text-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cts-headline em { color: var(--cts-color-text-tertiary); }
.cts-headline em.cts-accent, .cts-accent { color: var(--cts-color-gold); }

.cts-eyebrow {
  font-size: var(--cts-font-size-eyebrow);
  font-weight: var(--cts-font-weight-semibold);
  letter-spacing: var(--cts-letter-spacing-eyebrow);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--cts-color-gold);
}
.cts-eyebrow + .cts-headline, .cts-eyebrow + .cts-display { margin-top: var(--cts-space-4); }
.cts-lead { font-size: var(--cts-font-size-body-lg); line-height: 1.55; color: var(--cts-color-text-secondary); text-wrap: pretty; }
.cts-body { color: var(--cts-color-text-secondary); text-wrap: pretty; }
.cts-caption { font-size: var(--cts-font-size-caption); line-height: var(--cts-line-height-snug); color: var(--cts-color-text-tertiary); }
.cts-measure { max-width: var(--cts-layout-measure); }

/* Inline links inside running text. */
.cts-prose-link, .cts-body a, .cts-caption a, .cts-lead a {
  color: var(--cts-color-text);
  text-decoration: underline;
  text-decoration-color: var(--cts-color-accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard), text-decoration-color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-prose-link:hover, .cts-body a:hover, .cts-caption a:hover, .cts-lead a:hover { color: var(--cts-color-gold); text-decoration-color: var(--cts-color-gold); }

/* ================= Buttons ================= */
.cts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--cts-size-control);
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--cts-radius-pill);
  font: inherit;
  font-size: var(--cts-font-size-body);
  font-weight: var(--cts-font-weight-semibold);
  letter-spacing: -0.012em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--cts-motion-duration-hover) var(--cts-motion-ease-out),
    box-shadow var(--cts-motion-duration-hover) var(--cts-motion-ease-standard),
    background-color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard),
    border-color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard),
    color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-btn:focus-visible { border-radius: var(--cts-radius-pill); }
.cts-btn:active { transform: scale(0.98); transition-duration: var(--cts-motion-duration-press); }

/* Primary: brushed steel face, near-black text (5.2:1 or better in every state). One look for every primary action on every page. */
.cts-btn--primary, .cts-btn--light {
  background: var(--matte-btn-face);
  border-color: var(--matte-btn-edge);
  color: var(--matte-btn-ink);
  box-shadow: var(--matte-btn-shadow);
}
.cts-btn--primary:hover, .cts-btn--light:hover {
  background: var(--matte-btn-face-hover);
  color: var(--matte-btn-ink);
  transform: translateY(-1px);
}
.cts-btn--primary:active, .cts-btn--light:active { background: var(--matte-btn-face); transform: scale(0.98); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35); }

/* Secondary: dark graphite fill, soft steel border, cream text. For the second action next to a primary. */
.cts-btn--secondary {
  background: var(--matte-btn2-fill);
  border-color: var(--matte-btn2-edge);
  color: var(--cts-color-text);
  box-shadow: var(--cts-shadow-sheen);
}
.cts-btn--secondary:hover { background: var(--matte-btn2-fill-hover); border-color: var(--matte-btn-edge); }
.cts-btn--secondary:active { background: var(--matte-btn2-fill); }

.cts-btn--sm { min-height: var(--cts-size-target); padding: 0.45rem 1.15rem; font-size: var(--cts-font-size-small); }
.cts-btn[disabled], .cts-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
/* Two-ring focus on buttons: the dark gap sits first, the button's own lift stays under it. */
.cts-btn:focus-visible, .cts-btn--primary:focus-visible, .cts-btn--secondary:focus-visible, .cts-btn--light:focus-visible {
  box-shadow: 0 0 0 var(--cts-focus-gap, 2px) var(--cts-focus-gap-color, #060504), var(--cts-shadow-1);
}

/* Text link with a chevron that leans forward on hover. Min 44 px tall so it is a fair touch target. */
.cts-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: var(--cts-size-target);
  color: var(--cts-color-text);
  font-weight: var(--cts-font-weight-semibold);
  letter-spacing: -0.012em;
  text-decoration: none;
  transition: color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-link::after {
  content: "";
  flex: none;
  width: 0.46em;
  height: 0.46em;
  border-top: 2px solid var(--cts-color-gold);
  border-right: 2px solid var(--cts-color-gold);
  transform: rotate(45deg);
  transition: transform var(--cts-motion-duration-hover) var(--cts-motion-ease-out);
}
.cts-link:hover { color: var(--cts-color-gold); }
.cts-link:hover::after { transform: translateX(0.22em) rotate(45deg); }
/* External: no chevron. Put the arrow in the markup: <span aria-hidden="true">↗</span>. */
.cts-link--external::after { content: none; }
.cts-link--external span[aria-hidden] { color: var(--cts-color-gold); transition: transform var(--cts-motion-duration-hover) var(--cts-motion-ease-out); }
.cts-link--external:hover span[aria-hidden] { transform: translate(0.12em, -0.12em); }

.cts-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cts-space-4) var(--cts-space-6); }
/* Shared CTA spacing: an action row never sits against the text above it or the small print below it. :where() keeps page-level overrides (heroes, cards) in charge where they set their own gap. */
:where(p, ul, ol, dl, table, figure, .cts-body, .cts-lead, .cts-caption) + .cts-actions { margin-top: var(--cts-cta-gap); }
.cts-actions + :where(p, .cts-caption, .cts-body, ul) { margin-top: var(--cts-cta-gap); }
.cts-cta .cts-actions { margin-top: var(--cts-cta-gap); }
.cts-cta .cts-actions + :where(p, .cts-caption) { margin-top: var(--cts-cta-gap); }

/* ================= Header and navigation =================
   One glass bar, pinned. Wide screens: brand, links, actions in a single row.
   Small screens: the links live in a sheet opened by the Menu button. The sheet uses the HTML popover
   attribute, so it opens, closes on Escape and light-dismisses with no JavaScript.
   Where popover is not supported the links fall back to a row that scrolls sideways. */
.cts-header {
  position: sticky;
  top: 0;
  z-index: var(--cts-layer-header);
  background: var(--cts-material-glass);
  -webkit-backdrop-filter: var(--cts-material-blur);
  backdrop-filter: var(--cts-material-blur);
  box-shadow: inset 0 -1px 0 var(--cts-color-line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cts-header { background: var(--cts-material-glass-solid); }
}
/* The bar is exactly --cts-layout-header tall, so anything placed under it can rely on that number. */
.cts-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--cts-space-4);
  min-height: var(--cts-layout-header);
}
.cts-brand { display: inline-flex; align-items: center; flex: none; min-height: var(--cts-size-target); border-radius: var(--cts-radius-sm); }
/* The logo is a <picture>: a right-sized WebP with the original PNG as the fallback. The <picture> itself makes no box. */
.cts-brand picture { display: contents; }
.cts-brand img { width: auto; height: 2.5rem; }
.cts-header__actions { display: flex; align-items: center; gap: var(--cts-space-2); }
.cts-header__phone {
  display: inline-flex;
  align-items: center;
  min-height: var(--cts-size-target);
  padding-inline: var(--cts-space-3);
  border-radius: var(--cts-radius-pill);
  color: var(--cts-color-text);
  font-size: var(--cts-font-size-small);
  font-weight: var(--cts-font-weight-medium);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-header__phone:hover { color: var(--cts-color-gold); }
/* Phones show "Call"; wider screens show the number. Both are always in the link's accessible name. */
@media (max-width: 559px) {
  .cts-brand img { height: 2.25rem; }
  .cts-header__phone-number { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359px) {
  .cts-header__phone { display: none; }
}
@media (min-width: 560px) {
  .cts-header__phone-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.cts-nav-toggle, .cts-nav__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--cts-size-target);
  height: var(--cts-size-target);
  padding: 0;
  border: 1px solid var(--cts-color-border-control);
  border-radius: 50%;
  background: rgba(255, 244, 223, 0.06);
  color: var(--cts-color-text);
  cursor: pointer;
}
.cts-nav-toggle:focus-visible, .cts-nav__close:focus-visible { border-radius: 50%; }
.cts-nav-toggle svg, .cts-nav__close svg { width: 1.125rem; height: 1.125rem; }

.cts-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cts-size-target);
  color: var(--cts-color-text-secondary);
  font-size: var(--cts-font-size-small);
  font-weight: var(--cts-font-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-nav a:hover, .cts-nav a:is([aria-current="page"], [aria-current="true"]) { color: var(--cts-color-text); }
/* aria-current is "page" on a link to the page being shown and "true" on the link to the current section (an Insights article or category). Same look. */
.cts-nav a:is([aria-current="page"], [aria-current="true"]) { box-shadow: inset 0 -2px 0 var(--cts-color-gold); }

/* Small screens, fallback (no popover support): a second row that scrolls sideways. */
.cts-nav {
  display: flex;
  order: 3;
  flex: 1 0 100%;
  gap: var(--cts-space-5);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  box-shadow: inset 0 1px 0 var(--cts-color-line);
}
.cts-nav::-webkit-scrollbar { display: none; }

/* Small screens with popover support: the sheet. */
@supports selector(:popover-open) {
  @media (max-width: 1199px) {
    .cts-nav-toggle { display: inline-flex; }
    .cts-nav__close { display: inline-flex; position: absolute; top: 0.625rem; right: var(--cts-layout-gutter); }
    .cts-nav[popover] {
      display: none;
      position: fixed;
      inset: 0 0 auto 0;
      width: 100%;
      max-width: none;
      max-height: 100dvh;
      flex-direction: column;
      gap: 0;
      padding: calc(var(--cts-layout-header) + var(--cts-space-2)) var(--cts-layout-gutter) var(--cts-space-6);
      background: var(--cts-material-glass-sheet);
      -webkit-backdrop-filter: var(--cts-material-blur);
      backdrop-filter: var(--cts-material-blur);
      border-radius: 0 0 var(--cts-radius-xl) var(--cts-radius-xl);
      box-shadow: inset 0 -1px 0 var(--cts-material-border), var(--cts-shadow-3);
      overflow-y: auto;
    }
    .cts-nav[popover]:popover-open { display: flex; }
    .cts-nav[popover]::backdrop { background: rgba(0, 0, 0, 0.6); }
    .cts-nav[popover] a {
      min-height: 3.5rem;
      color: var(--cts-color-text);
      font-family: var(--cts-font-family-display);
      font-size: var(--cts-font-size-title-2);
      font-weight: var(--cts-font-weight-semibold);
      letter-spacing: var(--cts-letter-spacing-title);
      box-shadow: inset 0 -1px 0 var(--cts-color-line);
    }
    .cts-nav[popover] a:last-of-type { box-shadow: none; }
    .cts-nav[popover] a:is([aria-current="page"], [aria-current="true"]) { color: var(--cts-color-gold); }
    @media (prefers-reduced-motion: no-preference) {
      .cts-nav[popover]:popover-open { animation: cts-sheet-in var(--cts-motion-duration-enter) var(--cts-motion-ease-out); }
    }
  }
}
@keyframes cts-sheet-in {
  from { opacity: 0; transform: translateY(-1rem); }
  to { opacity: 1; transform: none; }
}

/* Wide screens: everything in one row; the popover attribute is ignored on purpose. */
@media (min-width: 1200px) {
  .cts-header__bar { flex-wrap: nowrap; }
  .cts-brand img { height: 2.875rem; }
  .cts-nav, .cts-nav[popover] {
    display: flex;
    position: static;
    order: 0;
    flex: 0 1 auto;
    width: auto;
    height: auto;
    inset: auto;
    gap: clamp(0.625rem, -2.875rem + 5vw, 2rem); /* leave room for the brand and actions at the desktop breakpoint */
    overflow: visible;
    box-shadow: none;
  }
  .cts-nav a { min-height: var(--cts-layout-header); }
  .cts-nav-toggle, .cts-nav__close { display: none; }
}

/* ================= Promo bar =================
   A slim ribbon above the header for a time-limited offer. Solid gold: the loudest thing the system allows, so use one. */
.cts-promo {
  background: var(--cts-color-gold);
  background-image: var(--cts-gradient-gold);
  color: var(--cts-color-text-on-gold);
  box-shadow: inset 0 -1px 0 var(--cts-color-red);
  font-size: var(--cts-font-size-small);
  line-height: 1.4;
  text-align: center;
}
.cts-promo p { width: min(var(--cts-layout-wrap), 100% - 2 * var(--cts-layout-gutter)); margin-inline: auto; padding-block: 0.6rem; }
.cts-promo strong { font-weight: var(--cts-font-weight-bold); }
.cts-promo a { color: inherit; font-weight: var(--cts-font-weight-semibold); text-underline-offset: 0.18em; white-space: nowrap; display: inline-block; padding-block: 0.3rem; }
.cts-promo a:focus-visible { outline-color: var(--cts-color-text-on-gold); }

/* ================= Tiles =================
   The raised surface. A tile is lit from above: gradient fill, hairline edge, sheen on the top edge, soft shadow below. */
.cts-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  border: 1px solid var(--cts-color-line);
  border-radius: var(--cts-radius-xl);
  background: var(--cts-color-surface);
  background-image: var(--cts-gradient-surface);
  box-shadow: var(--cts-shadow-sheen), var(--cts-shadow-2);
  overflow: hidden;
}
.cts-tile--quiet { background: none; box-shadow: none; border-color: var(--cts-color-line-strong); }
.cts-tile--feature { background-image: var(--cts-gradient-surface-raised); }
/* The brand keyline: red into gold along the top edge. One per view, on the thing that matters most. */
.cts-tile--keyline::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--cts-gradient-keyline);
  z-index: 1;
}
.cts-tile__eyebrow { margin-bottom: var(--cts-space-3); }
.cts-tile__title + .cts-tile__text { margin-top: var(--cts-space-3); }
.cts-tile__text { color: var(--cts-color-text-secondary); text-wrap: pretty; }
.cts-tile__foot { margin-top: auto; padding-top: var(--cts-space-5); }

/* Line art that bleeds off a corner of the tile. Strokes use currentColor; mark the one accent shape with .cts-art-accent. */
.cts-tile__art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(62%, 17rem);
  height: auto;
  color: rgba(255, 244, 223, 0.2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-mask-image: linear-gradient(215deg, #000 18%, transparent 72%);
  mask-image: linear-gradient(215deg, #000 18%, transparent 72%);
  pointer-events: none;
  transition: color var(--cts-motion-duration-enter) var(--cts-motion-ease-standard);
}
.cts-tile__art * { vector-effect: non-scaling-stroke; }
.cts-art-accent { stroke: var(--cts-color-gold); }
.cts-art-accent-fill { fill: var(--cts-color-gold); stroke: none; }

/* A tile that is one link: the link inside covers the whole tile, so there is one tab stop and one name. */
.cts-tile--link { transition: transform var(--cts-motion-duration-hover) var(--cts-motion-ease-out), border-color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard), box-shadow var(--cts-motion-duration-hover) var(--cts-motion-ease-standard); }
.cts-tile--link .cts-link::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.cts-tile--link .cts-link:focus-visible { outline: none; box-shadow: none; }
.cts-tile--link:focus-within { outline: var(--cts-focus-width) solid var(--cts-color-focus); outline-offset: var(--cts-focus-offset); box-shadow: 0 0 0 var(--cts-focus-gap, 2px) var(--cts-focus-gap-color, #060504); }
@media (hover: hover) {
  .cts-tile--link:hover { transform: translateY(-3px); border-color: var(--cts-color-line-strong); box-shadow: var(--cts-shadow-sheen), var(--cts-shadow-3); }
  .cts-tile--link:hover .cts-tile__art { color: rgba(255, 255, 255, 0.34); }
  .cts-tile--link:hover .cts-link { color: var(--cts-color-gold); }
  .cts-tile--link:hover .cts-link::after { transform: translateX(0.22em) rotate(45deg); }
}

/* ================= Chips ================= */
.cts-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--cts-color-line-strong);
  border-radius: var(--cts-radius-pill);
  background: rgba(255, 244, 223, 0.05);
  color: var(--cts-color-text);
  font-size: var(--cts-font-size-caption);
  font-weight: var(--cts-font-weight-medium);
  white-space: nowrap;
}

/* ================= Forms ================= */
.cts-field { display: grid; gap: var(--cts-space-2); }
.cts-label { font-size: var(--cts-font-size-small); font-weight: var(--cts-font-weight-semibold); color: var(--cts-color-text); }
.cts-input, .cts-select, .cts-textarea {
  width: 100%;
  min-height: var(--cts-size-control);
  padding: 0.75rem 1rem;
  border: 1px solid var(--cts-color-border-control);
  border-radius: var(--cts-radius-md);
  background-color: var(--cts-color-surface-well);
  color: var(--cts-color-text);
  font: inherit;
  letter-spacing: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: border-color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard), box-shadow var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-textarea { min-height: 8rem; resize: vertical; line-height: var(--cts-line-height-body); }
.cts-input::placeholder, .cts-textarea::placeholder { color: var(--cts-color-text-tertiary); opacity: 1; }
/* A hint or value longer than its field ends in "…" instead of being cut mid-letter (the select already does this). */
.cts-input { text-overflow: ellipsis; }
.cts-input:hover, .cts-select:hover, .cts-textarea:hover { border-color: var(--cts-color-text-secondary); }
.cts-input:focus-visible, .cts-select:focus-visible, .cts-textarea:focus-visible {
  outline: var(--cts-focus-width) solid var(--cts-color-focus);
  outline-offset: var(--cts-focus-gap, 2px);
  box-shadow: 0 0 0 var(--cts-focus-gap, 2px) var(--cts-focus-gap-color, #060504), inset 0 1px 2px rgba(0, 0, 0, 0.4);
  border-color: var(--cts-color-gold);
  border-radius: var(--cts-radius-md);
}
/* The select keeps the native menu (dark, thanks to color-scheme) and gets a drawn chevron: no image, no data URI. */
.cts-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--cts-color-gold) 50%), linear-gradient(135deg, var(--cts-color-gold) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 50%, calc(100% - 0.95rem) 50%;
  background-size: 0.36rem 0.36rem;
  background-repeat: no-repeat;
  cursor: pointer;
  text-overflow: ellipsis;
}
.cts-select option { background: var(--cts-color-graphite-800); color: var(--cts-color-text); }
.cts-hint { font-size: var(--cts-font-size-small); line-height: var(--cts-line-height-snug); color: var(--cts-color-text-secondary); }
.cts-error { font-size: var(--cts-font-size-small); line-height: var(--cts-line-height-snug); color: var(--cts-color-danger); }
.cts-input[aria-invalid="true"], .cts-select[aria-invalid="true"], .cts-textarea[aria-invalid="true"] { border-color: var(--cts-color-danger); background-color: var(--cts-color-danger-soft); }
.cts-check { display: flex; align-items: flex-start; gap: var(--cts-space-3); min-height: var(--cts-size-target); padding-block: 0.6rem; cursor: pointer; }
.cts-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; }

/* ================= FAQ =================
   Native details/summary: works without JavaScript, announces its state, and searches with find-in-page. */
.cts-faq { border-top: 1px solid var(--cts-color-line-strong); }
.cts-faq details { border-bottom: 1px solid var(--cts-color-line-strong); }
.cts-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cts-space-5);
  min-height: 4.5rem;
  padding-block: var(--cts-space-4);
  font-family: var(--cts-font-family-display);
  font-size: var(--cts-font-size-title-2);
  font-weight: var(--cts-font-weight-semibold);
  letter-spacing: var(--cts-letter-spacing-title);
  line-height: var(--cts-line-height-title);
  cursor: pointer;
  list-style: none;
  transition: color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-faq summary::-webkit-details-marker { display: none; }
.cts-faq summary:hover { color: var(--cts-color-gold); }
/* The plus sign is drawn, and turns into a cross when the answer is open. */
.cts-faq__icon {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--cts-color-line-strong);
  border-radius: 50%;
  transition: transform var(--cts-motion-duration-enter) var(--cts-motion-ease-out), border-color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard), background-color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-faq__icon::before, .cts-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 1.5px;
  margin: -0.75px 0 0 -0.375rem;
  background: var(--cts-color-gold);
}
.cts-faq__icon::after { transform: rotate(90deg); }
.cts-faq details[open] .cts-faq__icon { transform: rotate(45deg); border-color: var(--cts-brass-border); background-color: var(--cts-color-accent-soft); }
.cts-faq__answer { max-width: var(--cts-layout-measure); padding-bottom: var(--cts-space-5); color: var(--cts-color-text-secondary); text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  .cts-faq details[open] .cts-faq__answer { animation: cts-rise var(--cts-motion-duration-enter) var(--cts-motion-ease-out); }
}
@keyframes cts-rise {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: none; }
}

/* ================= CTA band =================
   The closing ask. One headline, one sentence, one primary action. */
.cts-cta {
  display: grid;
  gap: var(--cts-space-6);
  align-items: center;
  padding: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  border: 1px solid var(--cts-color-line);
  border-radius: var(--cts-radius-2xl);
  background: var(--cts-color-surface);
  background-image: var(--cts-gradient-surface-raised);
  box-shadow: var(--cts-shadow-sheen), var(--cts-shadow-3);
}
@media (min-width: 900px) {
  .cts-cta { grid-template-columns: minmax(0, 1fr) auto; gap: var(--cts-space-8); }
}

/* ================= Footer ================= */
.cts-footer { background: var(--cts-color-bg-sunken); box-shadow: inset 0 1px 0 var(--cts-color-line); color: var(--cts-color-text-secondary); font-size: var(--cts-font-size-small); }
.cts-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cts-space-7) var(--cts-space-5); padding-block: var(--cts-space-8) var(--cts-space-7); }
.cts-footer__brand { grid-column: 1 / -1; }
.cts-footer__brand img { width: auto; height: 3.5rem; }
.cts-footer__brand p { max-width: 22rem; margin-top: var(--cts-space-4); }
.cts-footer__heading { margin-bottom: var(--cts-space-2); color: var(--cts-color-text-tertiary); font-size: var(--cts-font-size-eyebrow); font-weight: var(--cts-font-weight-semibold); letter-spacing: var(--cts-letter-spacing-eyebrow); text-transform: uppercase; }
.cts-footer__list { display: grid; list-style: none; }
.cts-footer__list a, .cts-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cts-size-target);
  color: var(--cts-color-text-secondary);
  text-decoration: none;
  transition: color var(--cts-motion-duration-hover) var(--cts-motion-ease-standard);
}
.cts-footer__list a:hover, .cts-footer__links a:hover, .cts-footer__list a:is([aria-current="page"], [aria-current="true"]) { color: var(--cts-color-text); }
.cts-footer__contact { grid-column: 1 / -1; }
.cts-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--cts-space-2) var(--cts-space-6); padding-block: var(--cts-space-5) var(--cts-space-7); border-top: 1px solid var(--cts-color-line); color: var(--cts-color-text-tertiary); font-size: var(--cts-font-size-caption); }
@media (min-width: 900px) {
  .cts-footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .cts-footer__brand, .cts-footer__contact { grid-column: auto; }
}

/* ================= Utilities ================= */
.cts-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cts-skip {
  position: absolute;
  top: var(--cts-space-3);
  left: var(--cts-space-3);
  z-index: var(--cts-layer-overlay);
  padding: 0.75rem 1.25rem;
  border-radius: var(--cts-radius-pill);
  background: var(--matte-btn-face);
  border: 1px solid var(--matte-btn-edge);
  color: var(--matte-btn-ink);
  font-weight: var(--cts-font-weight-semibold);
  text-decoration: none;
  transform: translateY(-300%);
}
.cts-skip:focus { transform: none; }

/* ================= Reduced motion, forced colours, print ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .cts-btn:hover, .cts-btn:active, .cts-tile--link:hover { transform: none; }
}
@media (forced-colors: active) {
  .cts-btn, .cts-tile, .cts-chip, .cts-cta { border: 1px solid ButtonText; }
  .cts-display em { -webkit-text-fill-color: currentColor; background: none; }
  .cts-link::after { border-color: currentColor; }
  .cts-faq__icon::before, .cts-faq__icon::after { background: ButtonText; }
}
@media print {
  html, body { background: #fff; color: #000; }
  .cts-header { position: static; }
  .cts-promo, .cts-nav-toggle { display: none; }
  .cts-tile, .cts-cta { box-shadow: none; background: none; border-color: #999; }
  .cts-display em { -webkit-text-fill-color: currentColor; background: none; }
}

/* Touch targets on phones: standalone links (not links inside running prose, which WCAG 2.5.8 exempts). */
@media (max-width: 760px) {
  .or-call a, .contact__note a, .note > a:only-child, .cts-footer__list a { display: inline-flex; align-items: center; min-height: var(--cts-size-target); }
  .ins-source-item a { display: inline-block; padding-block: 0.6rem; }
}
