/* ==========================================================================
   RepairAppliance.org — site styles
   Self-contained: system fonts, no @import, no external requests.
   Palette + spacing live in custom properties at the top.
   ========================================================================== */

:root {
  /* palette — blue system (moldcleanups-style) */
  --navy-950: #0A1F44;
  --navy-900: #0F2A5C;
  --navy-800: #12306B;
  --navy-700: #1E3A8A;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #ffffff;
  --ink: #0F172A;
  --body: #334155;
  --muted: #64748B;

  --spruce: #0F2A5C;
  --spruce-deep: #0A1F44;
  --mint: #EFF6FF;
  --accent-ink: #0F2A5C;
  --accent-700: #1D4ED8;
  --accent-600: #2563EB;
  --accent-500: #2563EB;
  --accent-400: #60A5FA;
  --accent-300: #7DD3FC;
  --accent-200: #BFDBFE;
  --accent-100: #DBEAFE;
  --accent-050: #EFF6FF;
  --accent-mid: #60A5FA;
  --accent-bright: #7DD3FC;
  --accent-ring: rgba(37, 99, 235, 0.22);
  --accent-wash: rgba(37, 99, 235, 0.08);

  /* surfaces + lines */
  --page: #F8FAFC;
  --surface: #ffffff;
  --surface-2: #F1F5F9;
  --border: #DBEAFE;
  --border-strong: #BFDBFE;
  --line: #DBEAFE;
  --line-strong: #BFDBFE;
  --control-border: #94A3B8;
  --focus: #2563EB;
  --ring: 0 0 0 4px rgba(37, 99, 235, 0.22);
  --footer-bg: #0A1F44;
  --footer-text: #F8FAFC;
  --footer-muted: #CBD5E1;
  --footer-line: rgba(248, 250, 252, 0.16);

  /* type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* radii + shadows */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 24px -14px rgba(15, 23, 42, 0.26), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 26px 60px -28px rgba(7, 13, 25, 0.45);

  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent-100);
  color: var(--accent-ink);
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* --- typography ----------------------------------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.85vw, 1.6rem);
  letter-spacing: -0.024em;
}

h3 {
  font-size: 1.075rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

h4 {
  font-size: 0.95rem;
}

p {
  margin: 0 0 1rem;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

a {
  color: var(--accent-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

main ul {
  padding-left: 1.2rem;
}

main li {
  margin-bottom: 0.35rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.55rem + 2.4vw, 2rem);
}

main > .container {
  padding-block: 2rem 3.5rem;
}

/* --- skip link ------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --- header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 66px;
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-500), var(--accent-700));
  color: #04150f;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.brand em {
  font-style: normal;
  color: var(--accent-400);
}

.brand .muted {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.92em;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--slate-300);
  font-size: 0.92rem;
  font-weight: 550;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

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

/* nav search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.2rem 0.2rem 0.2rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.nav-search:focus-within {
  border-color: var(--accent-400);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}

.nav-search-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--slate-400);
}

.nav-search-input {
  width: 168px;
  min-width: 0;
  padding: 0.42rem 0.45rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.nav-search-input::placeholder {
  color: #94a3b8;
}

.nav-search-input:focus-visible {
  outline: none;
}

.nav-search-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.16);
  color: var(--accent-300);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-search-btn:hover {
  background: var(--accent-500);
  color: #052e22;
}

/* --- hero ----------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: #cbd5e1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58rem 28rem at 16% -12%, rgba(14, 165, 233, 0.2), transparent 62%),
    radial-gradient(46rem 26rem at 90% -2%, rgba(56, 189, 248, 0.1), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
}

.hero .container {
  position: relative;
  padding-block: clamp(3rem, 5.5vw, 4.6rem) clamp(2.75rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-300);
  font-size: 0.735rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  color: #fff;
}

.hero > .container > p {
  max-width: 62ch;
  margin-bottom: 1.9rem;
  color: #b9c5d6;
  font-size: 1.09rem;
  line-height: 1.62;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 720px;
  padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-search:focus-within {
  border-color: var(--accent-300);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22), var(--shadow-lg);
}

.hero-search-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--slate-400);
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  outline: none;
}

.hero-search-input::placeholder {
  color: #7c8ba1;
}

.hero-search-input:focus-visible {
  outline: none;
}

.hero-search-btn {
  flex: none;
  padding: 0.82rem 1.5rem;
  border: 0;
  border-radius: 11px;
  background: var(--accent-700);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-search-btn:hover {
  background: var(--accent-ink);
}

.hero-search-btn:active {
  transform: translateY(1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 840px;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-stats strong {
  color: #fff;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stats span {
  color: var(--slate-400);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* --- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--accent-700);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--accent-ink);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--white);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
  color: var(--ink);
}

/* --- sections ------------------------------------------------------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.15rem;
}

.section-head h2 {
  margin: 0;
}

.section-head > a {
  color: var(--accent-700);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-head > a:hover {
  text-decoration: underline;
}

/* --- grids ---------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Listing rows read as a list, not a tile wall. */
.grid:has(> .gym-card) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr));
  gap: 0.6rem;
}

/* --- cards ---------------------------------------------------------- */
.card {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

a.card h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.03rem;
}

a.card:hover h3 {
  color: var(--accent-700);
}

/* --- badges + tags -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.68rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 0.815rem;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.badge:hover {
  border-color: var(--slate-300);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.badge-brand {
  border-color: var(--accent-200);
  background: var(--accent-050);
  color: var(--accent-700);
}

a.badge-brand:hover {
  border-color: var(--accent-300);
  background: var(--accent-100);
  color: var(--accent-ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- gym listing cards ---------------------------------------------- */
.gym-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem 1rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius);
}

.gym-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.gym-card h3 {
  flex: 1 1 100%;
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3;
}

.gym-card .gym-meta {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.gym-card > .badge-brand {
  margin: 0;
}

.gym-card .gym-links {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: auto;
}

.gym-card .gym-links .badge {
  padding: 0.3rem 0.55rem;
  border-color: var(--slate-200);
  background: var(--white);
  font-size: 0.775rem;
}

.gym-card .gym-links .badge:hover {
  border-color: var(--accent-200);
  background: var(--accent-050);
  color: var(--accent-ink);
}

/* --- breadcrumbs ---------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.45rem;
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--slate-600);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent-700);
}

.breadcrumb span {
  color: var(--ink);
  font-weight: 600;
}

/* --- tables --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  border-radius: var(--radius-lg);
}

.table-wrap table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap th {
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-wrap td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #eef2f6;
  color: var(--body);
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:hover {
  background: var(--slate-50);
}

.table-wrap th:last-child,
.table-wrap td:last-child {
  text-align: right;
  white-space: nowrap;
}

/* --- pagination ----------------------------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.6rem 0 0;
}

.pager .badge {
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  font-size: 0.85rem;
}

/* --- search page ---------------------------------------------------- */
.search-page {
  padding-top: 1.9rem;
}

.search-intro h1 {
  margin-bottom: 0.6rem;
}

.search-intro p {
  max-width: 64ch;
  margin-bottom: 1.5rem;
}

.search-form {
  max-width: 760px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-field:focus-within {
  border-color: var(--accent-600);
  box-shadow: var(--ring), var(--shadow-sm);
}

.search-field-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--slate-400);
  transition: color 0.16s ease;
}

.search-field:focus-within .search-field-icon {
  color: var(--accent-700);
}

.search-field input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.4rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.08rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-field input::placeholder {
  color: #7d8ba0;
}

.search-field input:focus-visible {
  outline: none;
}

.search-submit {
  flex: none;
  padding: 0.78rem 1.4rem;
  border: 0;
  border-radius: 11px;
  background: var(--accent-700);
  color: #fff;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.search-submit:hover {
  background: var(--accent-ink);
}

.search-submit:active {
  transform: translateY(1px);
}

.search-tip {
  margin: 0.65rem 0 0 0.15rem;
}

.search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.9rem 0 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.search-msg {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.search-results {
  display: grid;
  gap: 0.55rem;
}

.search-result,
a.search-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.95rem;
  color: inherit;
  text-decoration: none;
}

a.search-result:hover {
  border-color: var(--accent-200);
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.35);
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.search-result-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--slate-100);
  color: var(--slate-600);
}

.search-result-icon.is-chain {
  background: var(--accent-050);
  color: var(--accent-700);
}

.search-result-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.search-result-name {
  color: var(--ink);
  font-size: 1.01rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.search-result-name mark {
  padding: 0 0.08em;
  border-radius: 3px;
  background: var(--accent-100);
  color: var(--accent-ink);
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.type-chip-chain {
  border-color: var(--accent-200);
  background: var(--accent-050);
  color: var(--accent-700);
}

.search-result-go {
  display: grid;
  place-items: center;
  color: var(--slate-400);
  transition: transform 0.16s ease, color 0.16s ease;
}

a.search-result:hover .search-result-go {
  color: var(--accent-700);
  transform: translateX(2px);
}

.search-empty {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-xl);
  background: var(--slate-50);
  text-align: center;
}

.search-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--accent-050);
  color: var(--accent-700);
}

.search-empty h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.search-empty p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.search-suggest {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
}

.search-suggest-title {
  margin: 0 0 0.75rem;
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- footer --------------------------------------------------------- */
footer[role="contentinfo"] {
  margin-top: 4rem;
  padding: 3rem 0 2.25rem;
  background: var(--navy-900);
  color: var(--slate-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}

.footer-grid h4 {
  margin: 0 0 0.85rem;
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: #a9b8cc;
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: none;
}

.legal {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b9cb3;
  font-size: 0.8rem;
  line-height: 1.65;
}

.legal p {
  max-width: 100ch;
  margin: 0 0 0.55rem;
}

.legal p:last-child {
  margin-bottom: 0;
}

/* --- utilities ------------------------------------------------------ */
.mt-0 {
  margin-top: 0 !important;
}

.small {
  font-size: 0.85rem;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--ink);
}

/* --- focus ---------------------------------------------------------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-header :where(a, button):focus-visible,
.hero :where(a, button):focus-visible,
footer :where(a, button):focus-visible {
  outline-color: var(--accent-300);
}

/* --- responsive ----------------------------------------------------- */
@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-block: 0.7rem;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .nav-search {
    order: 1;
    width: 100%;
    max-width: none;
    padding: 0.28rem 0.28rem 0.28rem 0.85rem;
  }

  .nav-search-input {
    flex: 1;
    width: 100%;
    padding: 0.5rem 0.45rem;
    font-size: 0.95rem;
  }

  .nav-search-btn {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    order: 2;
    gap: 1.35rem;
  }

  .nav-links a {
    font-size: 0.88rem;
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 1rem;
  }

  main > .container {
    padding-block: 1.4rem 2.5rem;
  }

  .grid,
  .grid-3,
  .grid:has(> .gym-card) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .container {
    padding-block: 2.6rem 2.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero > .container > p {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
  }

  .gym-card .gym-meta {
    flex-basis: 100%;
  }

  .gym-card .gym-links {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-top: 0.3rem;
    margin-left: 0;
    padding-top: 0.55rem;
    border-top: 1px solid var(--slate-100);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer[role="contentinfo"] {
    margin-top: 2.75rem;
    padding-top: 2.4rem;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(1.8rem, 1.3rem + 3.2vw, 2.3rem);
  }

  .hero-search {
    padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  }

  .hero-search-input {
    padding: 0.78rem 0.35rem;
    font-size: 0.97rem;
  }

  .hero-search-btn {
    padding: 0.78rem 1.05rem;
    font-size: 0.92rem;
  }

  .search-field {
    padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  }

  .search-field-icon {
    display: none;
  }

  .search-field input {
    padding: 0.8rem 0.45rem;
    font-size: 1rem;
  }

  .search-submit {
    padding: 0.76rem 1rem;
    font-size: 0.92rem;
  }

  .search-result {
    gap: 0.65rem;
  }

  .search-result-icon {
    display: none;
  }

  .search-empty {
    padding: 2.25rem 1rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .legal {
    margin-top: 1.9rem;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-search-btn,
  .search-submit {
    padding-inline: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------------------------------------------------------------
   Brand pass — RepairAppliance.org (blue system)
   (wrench + housing mark, blue wordmark gradient)
   --------------------------------------------------------------- */
:root {
  --brand-300: #7DD3FC;
  --brand-400: #60A5FA;
  --brand-500: #2563EB;
  --brand-600: #1D4ED8;
  --brand-700: #0F2A5C;
  --brand-grad: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --brand-grad-deep: linear-gradient(135deg, #1D4ED8 0%, #0F2A5C 100%);
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
}

.site-header::after {
  display: none;
}

.hero {
  background-image: none;
}

.hero-search {
  border-color: transparent;
}

.hero-search:focus-within {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22), 0 18px 40px -20px rgba(2, 6, 23, 0.35);
}

.hero-search-btn,
.search-submit {
  background: var(--brand-grad-deep);
  border-color: transparent;
}

.hero-search-btn:hover,
.search-submit:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

.eyebrow {
  color: #1D4ED8;
}

.badge-brand {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #1D4ED8;
}

.badge-brand:hover {
  border-color: #60A5FA;
  background: #DBEAFE;
  color: #0F2A5C;
}

mark {
  background: #DBEAFE;
  color: #0F2A5C;
  border-radius: 3px;
  padding: 0 2px;
}

@media (max-width: 760px) {
  .brand-logo {
    height: 32px;
  }
}

/* --------------------------- review pass --------------------------- */
/* stats hairline should span the full container, not stop at 840px */
.hero-stats {
  max-width: none;
}

/* single, calm focus treatment on the big search field */
.search-field:focus-within {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

/* header search placeholder was too dim on navy */
.nav-search-input::placeholder {
  color: #a8b6cb;
}

/* gym cards: fixed two-column rhythm so action chips never jump rows */
.gym-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.15rem;
  padding: 0.9rem 1.1rem;
}

.gym-card h3,
.gym-card .gym-meta,
.gym-card > .badge-brand {
  grid-column: 1;
}

.gym-card > .badge-brand {
  justify-self: start;
}

.gym-card .gym-links {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-content: flex-end;
  margin-left: 0;
}

@media (max-width: 720px) {
  .gym-card {
    grid-template-columns: 1fr;
  }

  .gym-card .gym-links {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--slate-100);
  }
}

/* tighter mobile header + 44px tap targets */
@media (max-width: 820px) {
  .header-inner {
    gap: 0.45rem;
    padding-block: 0.55rem;
  }

  .brand-logo {
    height: 30px;
  }

  .nav-links {
    gap: 0.25rem;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 0.7rem 0.35rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 560px) {
  .hero-search-input {
    font-size: 0.92rem;
  }

  .hero-search-btn {
    padding-inline: 0.85rem;
  }
}

/* gym detail page */
.gym-sub { margin: .3rem 0 0; color: var(--muted); font-size: 1.02rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.1rem; margin: 0 0 1.15rem; }
.facts dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: .12rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.nearby-list li { display: grid; gap: .1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--slate-200); }
.nearby-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nearby-list a { font-weight: 600; text-decoration: none; }
.nearby-list a:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.detail-main { display: grid; gap: 1rem; align-content: start; }

/* gym map */
.map-card { margin-top: 1rem; }
.map-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 420px; border-radius: 12px; overflow: hidden; background: var(--slate-100); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* ==========================================================================
   RepairAppliance.org — page components
   ========================================================================== */

.lede { font-size: 1.08rem; line-height: 1.65; color: var(--body); max-width: 68ch; }
.prose { max-width: 72ch; }
.prose p { line-height: 1.68; }
.prose h2 { margin-top: 2rem; }
.article { max-width: 74ch; }

/* appliance category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cat-card { display: flex; flex-direction: column; gap: .45rem; text-decoration: none; color: inherit; padding: 1.15rem 1.2rem; }
.cat-card:hover { text-decoration: none; }
.cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-050); color: var(--accent-700); border: 1px solid var(--accent-200); }
.cat-card h3 { margin: .35rem 0 0; font-size: 1.12rem; }
.cat-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.cat-more { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .9rem; color: var(--accent-700); }
.cat-card:hover .cat-more { text-decoration: underline; }

/* brand chips */
.brand-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.brand-chip { display: inline-flex; align-items: center; padding: .5rem .85rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.brand-chip:hover { border-color: var(--accent-400); background: var(--accent-050); color: var(--accent-ink); text-decoration: none; }

/* parts */
.part-card { display: flex; flex-direction: column; gap: .5rem; }
.part-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.part-card .cta-row { margin-top: auto; display: grid; gap: .5rem; }
.part-card .cta-row .btn { width: 100%; text-align: center; }

/* lists, steps, faq */
.check-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; max-width: 72ch; }
.check-list li { position: relative; padding-left: 1.55rem; line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent-500); }
.steps { margin: 0 0 1.4rem; padding: 0; list-style: none; counter-reset: step; display: grid; gap: .7rem; max-width: 72ch; }
.steps li { counter-increment: step; position: relative; padding: .7rem .9rem .7rem 3rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; line-height: 1.55; }
.steps li::before { content: counter(step); position: absolute; left: .7rem; top: .62rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-600); color: #fff; font-size: .8rem; font-weight: 800; }
.faq { display: grid; gap: .5rem; max-width: 72ch; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: .75rem .95rem; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq summary::marker { color: var(--accent-600); }
.faq p { margin: .55rem 0 0; color: var(--muted); line-height: 1.6; }

/* callouts */
.callout { border: 1px solid var(--accent-200); background: var(--accent-050); border-radius: 12px; padding: 1rem 1.15rem; margin: 1.25rem 0; }
.callout h3 { margin: 0 0 .45rem; font-size: 1rem; color: var(--accent-ink); }
.callout p { margin: 0; }
.callout ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.callout-warn { border-color: #fde68a; background: #fffbeb; }
.callout-warn h3 { color: #92400e; }

/* lead form */
.lead-card { margin: 1.5rem 0 0; }
.lead-card h2 { margin-top: 0; }
.lead-form { display: grid; gap: .75rem; margin-top: .9rem; }
.lead-form label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--slate-600); }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; font-size: .98rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; padding: .6rem .7rem; width: 100%; }
.lead-form textarea { resize: vertical; min-height: 84px; }
.lead-form input:focus-visible, .lead-form select:focus-visible, .lead-form textarea:focus-visible { outline: none; border-color: var(--accent-500); box-shadow: var(--ring); }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 560px) { .lead-row { grid-template-columns: 1fr; } }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.lead-actions .btn { padding: .7rem 1.35rem; }

/* detail sidebars */
.detail-side { display: grid; gap: 1rem; align-content: start; }
.detail-side .lead-card { margin: 0; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.side-links a { font-weight: 600; text-decoration: none; }
.side-links a:hover { text-decoration: underline; }

/* search page */
.search-form { display: flex; gap: .6rem; margin: 1rem 0 1.5rem; max-width: 640px; }
.search-form .search-field { flex: 1; }
.search-empty-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }


/* ==========================================================================
   FINAL THEME PASS — blue editorial system
   Derived from the moldcleanups.com visual language (palette, type scale,
   header, hero, cards, footer) without copying its content or imagery.
   Appended last so it wins the cascade over the legacy dark/orange pass.
   ========================================================================== */

:root {
  color-scheme: light;
}

html {
  scroll-padding-top: 6rem;
}

body {
  background: #F8FAFC;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: #0F172A;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 {
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

a {
  color: #1D4ED8;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0F2A5C;
}

::selection {
  background: #EFF6FF;
  color: #0F172A;
}

/* ---- utility bar -------------------------------------------------- */
.utility-bar {
  background: #EFF6FF;
  color: #1E3A8A;
  border-bottom: 1px solid #DBEAFE;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 2.45rem;
}

.utility-inner p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.utility-note {
  color: #1E3A8A;
}

.utility-counts {
  color: #1D4ED8;
  font-variant-numeric: tabular-nums;
}

.utility-counts span {
  padding-inline: 0.2rem;
  opacity: 0.7;
}

/* ---- header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #DBEAFE;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 14px 28px -30px rgba(15, 23, 42, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}

.site-header::after {
  display: none;
}

.header-inner {
  min-height: 66px;
  padding-block: 0.55rem;
}

.brand {
  color: #0F2A5C;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: #1D4ED8;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
}

.nav-links a {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: 9px;
  padding: 0.45rem 0.78rem;
}

.nav-links a::after {
  background: #2563EB;
}

.nav-links a:hover {
  background: #EFF6FF;
  color: #1D4ED8;
  text-decoration: none;
}

.nav-links a:hover::after {
  transform: scaleX(0);
}

.nav-search {
  border: 1px solid #BFDBFE;
  background: #FFFFFF;
}

.nav-search:focus-within {
  border-color: #2563EB;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.nav-search-icon {
  color: #64748B;
}

.nav-search-input {
  color: #0F172A;
}

.nav-search-input::placeholder {
  color: #94A3B8;
}

.nav-search-btn {
  background: #EFF6FF;
  color: #1D4ED8;
}

.nav-search-btn:hover {
  background: #2563EB;
  color: #FFFFFF;
}

.header-call {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0.55rem 1rem;
  border: 1px solid #2563EB;
  border-radius: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 22px -18px rgba(37, 99, 235, 0.75);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.header-call:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- light hero --------------------------------------------------- */
.hero {
  color: #334155;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.12), transparent 46%),
    linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 56%, #E0F2FE 100%);
}

.hero::before {
  z-index: -2;
  background: transparent;
}

.hero::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 38%, #000 100%);
}

.hero h1 {
  max-width: 18ch;
  color: #0F172A;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero > .container > .hero-sub {
  max-width: 62ch;
  margin-bottom: 1.9rem;
  color: #334155;
  font-size: clamp(1.06rem, 1.5vw, 1.19rem);
  line-height: 1.6;
}

.hero > .container > .hero-stats {
  color: #64748B;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.36rem 0.72rem;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1D4ED8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: #2563EB;
}

.hero-search {
  border: 1px solid #BFDBFE;
  background: #FFFFFF;
  box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.3);
}

.hero-search:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22), 0 18px 40px -30px rgba(15, 23, 42, 0.3);
}

.hero-search-icon {
  color: #64748B;
}

.hero-search-input {
  color: #0F172A;
}

.hero-search-input::placeholder {
  color: #94A3B8;
}

.hero-search-btn {
  min-height: 44px;
  border: 1px solid #2563EB;
  border-radius: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 750;
}

.hero-search-btn:hover {
  background: #1D4ED8;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  max-width: none;
  margin-top: 2rem;
  margin-bottom: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  color: #64748B;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ---- buttons ------------------------------------------------------ */
.btn {
  min-height: 48px;
  padding: 0.76rem 1.25rem;
  border: 1px solid #2563EB;
  border-radius: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 750;
  box-shadow: 0 14px 24px -18px rgba(37, 99, 235, 0.8);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  border-color: #1D4ED8;
  background: #1D4ED8;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  border: 1px solid #94A3B8;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: #1D4ED8;
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ---- sections + cards --------------------------------------------- */
.container.section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  letter-spacing: -0.035em;
}

.section-head > p {
  max-width: 68ch;
  margin: 0;
  color: #334155;
}

.card {
  position: relative;
  border: 1px solid #DBEAFE;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #2563EB 0%, #60A5FA 58%, #7DD3FC 100%);
  pointer-events: none;
}

a.card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover {
  border-color: #60A5FA;
  box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.22);
  transform: translateY(-4px);
}

a.card:hover h3 {
  color: #1D4ED8;
}

/* ---- category cards ----------------------------------------------- */
.cat-icon {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.cat-card h3 {
  color: #0F172A;
}

.cat-card p {
  color: #64748B;
}

.cat-more {
  color: #1D4ED8;
}

/* ---- brand chips -------------------------------------------------- */
.brand-chip {
  border: 1px solid #BFDBFE;
  background: #FFFFFF;
  color: #0F172A;
}

.brand-chip:hover {
  border-color: #60A5FA;
  background: #EFF6FF;
  color: #1D4ED8;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- callouts + lists --------------------------------------------- */
.callout {
  border: 1px solid #BFDBFE;
  background: #EFF6FF;
  border-radius: 14px;
}

.callout h3 {
  color: #0F2A5C;
}

.callout a {
  color: #1D4ED8;
}

.check-list li::before {
  background: #2563EB;
}

.steps li {
  background: #F8FAFC;
  border: 1px solid #DBEAFE;
}

.steps li::before {
  background: #2563EB;
}

.faq details {
  border: 1px solid #DBEAFE;
  background: #FFFFFF;
}

.faq summary::marker {
  color: #2563EB;
}

.faq summary:hover {
  color: #1D4ED8;
}

/* ---- tables ------------------------------------------------------- */
.table-wrap th {
  border-bottom: 1px solid #DBEAFE;
  background: #EFF6FF;
  color: #1E3A8A;
}

.table-wrap td {
  border-bottom: 1px solid #EFF6FF;
  color: #334155;
}

.table-wrap tbody tr:hover {
  background: #F8FAFC;
}

/* ---- forms -------------------------------------------------------- */
.lead-form label {
  color: #334155;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  border: 1px solid #94A3B8;
  background: #FFFFFF;
  color: #0F172A;
}

.lead-form input:hover,
.lead-form select:hover,
.lead-form textarea:hover {
  border-color: #60A5FA;
}

.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible {
  border-color: #2563EB;
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 1px;
  box-shadow: none;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #94A3B8;
}

.search-field {
  border: 1.5px solid #BFDBFE;
  background: #FFFFFF;
}

.search-field:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
}

.search-field-icon {
  color: #64748B;
}

.search-field:focus-within .search-field-icon {
  color: #1D4ED8;
}

.search-submit {
  min-height: 44px;
  border: 1px solid #2563EB;
  border-radius: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 750;
}

.search-submit:hover {
  background: #1D4ED8;
}

/* ---- generic surfaces + links ------------------------------------- */
.badge {
  border-color: #DBEAFE;
  background: #F8FAFC;
  color: #334155;
}

a.badge:hover {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #1D4ED8;
}

.badge-brand {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #1D4ED8;
}

.breadcrumb a {
  color: #475569;
}

.breadcrumb a:hover {
  color: #1D4ED8;
}

.breadcrumb span {
  color: #0F172A;
}

/* Breadcrumb list resets: the markup is nav > ol > li. */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  color: #94A3B8;
  font-weight: 400;
}

.side-links a,
.nearby-list a,
.prose a,
.section-head > a {
  color: #1D4ED8;
}

.search-result-icon {
  background: #F1F5F9;
  color: #475569;
}

.search-result-icon.is-chain {
  background: #EFF6FF;
  color: #1D4ED8;
}

.search-result-name mark {
  background: #DBEAFE;
  color: #0F2A5C;
}

.type-chip-chain {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #1D4ED8;
}

.search-empty {
  border-color: #BFDBFE;
  background: #F8FAFC;
}

.search-empty-icon {
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ---- footer ------------------------------------------------------- */
footer[role="contentinfo"] {
  background: #0A1F44;
  color: #CBD5E1;
  border-top: 1px solid rgba(248, 250, 252, 0.16);
}

.footer-grid h4 {
  color: #F8FAFC;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-grid a {
  color: #F8FAFC;
}

.footer-grid a:hover {
  color: #7DD3FC;
  text-decoration: underline;
}

.legal {
  border-top: 1px solid rgba(248, 250, 252, 0.16);
  color: #CBD5E1;
}

.legal .footer-disclaimer {
  max-width: 64ch;
  margin: 0 0 0.9rem;
  color: #CBD5E1;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- focus -------------------------------------------------------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

.site-header :where(a, button):focus-visible,
.hero :where(a, button):focus-visible {
  outline-color: #2563EB;
}

footer :where(a, button):focus-visible {
  outline-color: #7DD3FC;
}

.skip-link {
  border: 1px solid #DBEAFE;
  background: #FFFFFF;
  color: #0F2A5C;
}

/* ---- responsive header + utility ---------------------------------- */
@media (max-width: 1040px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-block: 0.6rem;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .nav-search {
    order: 1;
    width: 100%;
    max-width: none;
  }

  .nav-search-input {
    flex: 1;
    width: 100%;
  }

  .nav-links {
    order: 2;
  }

  .header-call {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 8rem;
  }

  .utility-inner {
    justify-content: center;
    gap: 0.1rem 0.9rem;
    padding-block: 0.2rem;
  }

  .utility-inner p {
    font-size: 0.72rem;
  }

  .header-inner {
    gap: 0.5rem;
    min-height: 60px;
  }

  .brand-logo {
    height: 34px;
  }

  .header-call {
    min-height: 44px;
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  .nav-links {
    gap: 0.25rem;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 0.7rem 0.4rem;
    font-size: 0.86rem;
  }

  .hero h1 {
    max-width: 16ch;
  }

  .hero-search-input {
    font-size: 0.95rem;
  }

  .hero-search-btn {
    padding-inline: 1rem;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 30px;
  }

  .header-call {
    padding-inline: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-call:hover,
  .btn:hover,
  a.card:hover,
  .brand-chip:hover {
    transform: none;
  }
}
