/* GW Murphy Wholesale — site styles
   Layout concept: a supply-yard line card. Charcoal header + utility rail, red used like
   pallet tags (labels, CTAs, rules), product data set in mono like a spec sheet. */
:root {
  --red: #EC252D;          /* brand red (logo) */
  --red-deep: #BF232C;     /* logo shadow fold */
  --oxblood: #620C0F;      /* logo inner fold */
  --ink: #1E1B1C;          /* charcoal from wordmark */
  --steel: #5B5F63;        /* galvalume-ish secondary text */
  --bg: #F6F5F3;           /* warm concrete */
  --surface: #FFFFFF;
  --line: #DEDBD7;
  --fg: #1E1B1C;
  --muted: #5B5F63;
  --rail: #1E1B1C;         /* header / footer ground */
  --rail-fg: #F2F0EE;
  --rail-muted: #A9A6A3;
  --tag-bg: #FCE9EA;
  --tag-fg: #9E1A21;
  --focus: #0B63CE;

  --display: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141213; --surface: #1D1B1C; --line: #34302F; --fg: #EFEDEB; --muted: #B0ACA8;
    --rail: #0D0C0C; --rail-fg: #F2F0EE; --rail-muted: #9C9894;
    --tag-bg: #3A1416; --tag-fg: #FF9A9E; --red: #F0353C; --focus: #6CA8FF; --steel: #A8ACB0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141213; --surface: #1D1B1C; --line: #34302F; --fg: #EFEDEB; --muted: #B0ACA8;
  --rail: #0D0C0C; --rail-fg: #F2F0EE; --rail-muted: #9C9894;
  --tag-bg: #3A1416; --tag-fg: #FF9A9E; --red: #F0353C; --focus: #6CA8FF; --steel: #A8ACB0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--step-0)/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--fg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- labels / tags ---------- */
.eyebrow { font: 600 var(--step--1)/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--red); }
.on-dark .eyebrow { color: #FF5A60; }
.on-dark .eyebrow::before { background: #FF5A60; }
.chip { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); white-space: nowrap; }
.chip--red { background: var(--tag-bg); color: var(--tag-fg); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 0.9375rem/1 var(--display); letter-spacing: 0.02em; text-decoration: none; padding: 15px 22px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.on-dark .btn--ghost:hover { background: #fff; color: #1E1B1C; border-color: #fff; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.util { background: var(--oxblood); color: #F7DCDD; font: 500 0.8125rem/1 var(--body); }
.util .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 9px; }
.util a { text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; }
.util-group { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.util strong { font-weight: 600; color: #fff; }
.site-head { background: var(--rail); color: var(--rail-fg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 3px solid var(--red); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--rail-fg); flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 800 1.25rem/1 var(--display); letter-spacing: 0.01em; }
.brand-word span { font: 500 0.6875rem/1 var(--display); letter-spacing: 0.42em; margin-top: 5px; color: var(--rail-muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 12px 12px; font: 600 0.9375rem/1 var(--display); color: var(--rail-fg); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--radius); }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.nav-link .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 8px; list-style: none; margin: 0; display: none; }
.menu.open { display: grid; }
.menu--wide { min-width: 560px; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.menu a { display: grid; gap: 2px; padding: 10px 12px; text-decoration: none; border-radius: var(--radius); }
.menu a:hover { background: var(--bg); }
.menu a b { font: 600 0.9375rem/1.3 var(--display); }
.menu a span { font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }
.nav-cta { margin-left: 10px; padding: 13px 18px; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.3); color: var(--rail-fg); border-radius: var(--radius); padding: 10px 12px; font: 700 0.875rem/1 var(--display); cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rail); border-top: 1px solid rgba(255,255,255,.1); padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch; max-height: calc(100vh - 120px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 6px; font-size: 1.0625rem; }
  .menu, .menu--wide { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; color: var(--rail-fg); grid-template-columns: 1fr; padding: 0 0 8px 8px; }
  .menu a:hover { background: rgba(255,255,255,.06); }
  .menu a span { color: var(--rail-muted); }
  .nav-cta { margin: 12px 0 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: #1E1B1C; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,17,.92) 0%, rgba(20,16,17,.78) 45%, rgba(20,16,17,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 120px); display: grid; gap: 22px; }
.hero h1 { max-width: 15ch; font-size: clamp(2.125rem, 1.3rem + 4.2vw, 4.5rem); text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: #FF4148; }
.hero p.lede { max-width: 52ch; font-size: var(--step-1); color: #E7E3E0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.18); max-width: 760px; }
.hero-facts div { padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.18); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts b { display: block; font: 800 1.75rem/1 var(--display); }
.hero-facts span { font: 500 0.75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #CFCAC6; }
@media (max-width: 560px) { .hero-facts { flex-wrap: nowrap; } .hero-facts div { padding-right: 12px; margin-right: 12px; } .hero-facts b { font-size: 1.375rem; } .hero-facts span { font-size: .625rem; } }

.page-hero { background: var(--rail); color: var(--rail-fg); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(44px, 6vw, 76px); display: grid; gap: 14px; position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-4); text-transform: uppercase; max-width: 22ch; line-height: 1; }
.page-hero p { max-width: 62ch; color: var(--rail-muted); font-size: var(--step-1); }
.page-hero--img .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.crumbs { font: 500 0.8125rem/1 var(--mono); color: var(--rail-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--rail-muted); }
.crumbs a:hover { color: #fff; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--rail); color: var(--rail-fg); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.sec-head p { color: var(--muted); font-size: var(--step-1); }
.section--dark .sec-head p { color: var(--rail-muted); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; max-width: 66ch; }
.prose p { color: var(--fg); }
.prose .muted { color: var(--muted); }
.photo { border-radius: var(--radius); overflow: hidden; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--rail); color: var(--rail-fg); font: 500 0.75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px; }

/* ---------- 2-step diagram ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.flow li { list-style: none; padding: 22px 22px 24px; border-top: 4px solid var(--line); position: relative; display: grid; gap: 8px; align-content: start; }
.flow li.us { border-top-color: var(--red); background: var(--surface); }
.flow li b { font: 800 var(--step-1)/1.15 var(--display); }
.flow li span.k { font: 600 0.75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow li.us span.k { color: var(--red); }
.flow li p { color: var(--muted); font-size: 0.9375rem; }
.flow { padding: 0; margin: 0; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- product category grid ---------- */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }
.cat { background: var(--surface); padding: 24px 22px 22px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; text-decoration: none; color: inherit; transition: background .15s; position: relative; }
.cat:hover { background: var(--bg); }
.cat .code { font: 600 0.75rem/1 var(--mono); color: var(--red); letter-spacing: .1em; }
.cat h3 { font-size: 1.1875rem; }
.cat p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.cat .go { font: 700 0.8125rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }
.cat:hover .go { color: var(--red); }
.cat--feature { background: var(--rail); color: var(--rail-fg); }
.cat--feature:hover { background: #2a2627; }
.cat--feature p { color: var(--rail-muted); }

/* ---------- product list (line card rows) ---------- */
.lines { display: grid; gap: 0; border-top: 2px solid var(--fg); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 18px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line h3 { font-size: 1.25rem; }
.line .alt { font: 500 0.8125rem/1.4 var(--mono); color: var(--muted); margin-top: 6px; }
.line .desc { display: grid; gap: 12px; }
.line .desc p { color: var(--fg); }
.line .act { align-self: center; }
.line .act .btn { padding: 12px 16px; font-size: 0.8125rem; }
@media (max-width: 860px) { .line { grid-template-columns: 1fr; } .line .act { align-self: start; } }

.regions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.regions .lbl { font: 500 0.75rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }

.specs { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs thead th { font: 600 0.75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--rail); color: var(--rail-fg); }
.specs tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.specs td { font-variant-numeric: tabular-nums; }

.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.swatch { display: grid; gap: 8px; }
.swatch i { display: block; aspect-ratio: 5/3; border-radius: 2px; border: 1px solid var(--line); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 18px, rgba(0,0,0,.14) 18px 20px, rgba(255,255,255,.08) 20px 22px); }
.swatch b { font: 600 0.875rem/1.2 var(--display); }
.note { font-size: 0.875rem; color: var(--muted); }

/* ---------- callouts ---------- */
.band { background: var(--red); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 34px; }
.band h2 { font-size: var(--step-2); text-transform: uppercase; }
.band p { color: #FFE3E4; margin-top: 6px; }
.band .btn--ghost:hover { background: #fff; color: var(--red-deep); border-color: #fff; }
.band .btn--white { background: #fff; color: var(--red-deep); }
.band .btn--white:hover { background: #1E1B1C; color: #fff; }

.quote { display: grid; gap: 22px; border-left: 4px solid var(--red); padding-left: clamp(18px, 3vw, 34px); }
.quote blockquote { margin: 0; font: 600 clamp(1.125rem, 1rem + .5vw, 1.375rem)/1.45 var(--display); letter-spacing: -0.01em; }
.quote cite { font: 500 0.875rem/1.3 var(--mono); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.section--dark .quote cite { color: var(--rail-muted); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards3 > * { min-width: 0; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.why { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--fg); }
.section--dark .why { border-top-color: var(--red); }
.why p { color: var(--muted); }
.section--dark .why p { color: var(--rail-muted); }

/* values */
.gritty { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.gritty > div { background: var(--surface); padding: 22px 18px; display: grid; gap: 10px; align-content: start; }
.gritty .L { font: 900 3rem/0.9 var(--display); color: var(--red); }
.gritty h3 { font-size: 1.0625rem; }
.gritty p { font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 1000px) { .gritty { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gritty { grid-template-columns: 1fr 1fr; } }

/* timeline */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.tl { position: relative; padding: 0 0 36px 32px; display: grid; gap: 8px; max-width: 72ch; }
.tl::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; background: var(--red); border: 3px solid var(--bg); border-radius: 50%; }
.tl .yr { font: 700 0.8125rem/1 var(--mono); color: var(--red); letter-spacing: .08em; }
.tl h3 { font-size: 1.25rem; }
.tl p { color: var(--fg); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.team-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .team-grid, .team-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .team-grid, .team-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 420px) { .team-grid, .team-grid--5 { grid-template-columns: 1fr; } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.person .ph { aspect-ratio: 4/5; background: #E9E6E3; overflow: hidden; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .ph.initials { display: grid; place-items: center; background: var(--rail); color: var(--rail-fg); font: 800 3rem/1 var(--display); }
.person .bd { padding: 16px 18px 18px; display: grid; gap: 4px; align-content: start; }
.person h3 { font-size: 1.125rem; }
.person .role { font: 500 0.8125rem/1.35 var(--mono); color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.person ul { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 0.875rem; }
.person ul a { text-decoration: none; overflow-wrap: anywhere; }
.person ul a:hover { color: var(--red); text-decoration: underline; }
.person ul .k { color: var(--muted); font: 500 0.75rem/1 var(--mono); text-transform: uppercase; display: inline-block; width: 52px; }

/* contact / offices */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.office { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 22px; display: grid; gap: 10px; align-content: start; border-radius: var(--radius); }
.office address { font-style: normal; }
.office .rows { display: grid; gap: 6px; font-size: 0.9375rem; }
.office .rows a { text-decoration: none; }
.office .rows a:hover { color: var(--red); text-decoration: underline; }
.office .k { font: 500 0.75rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* forms */
.form-shell { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); min-width: 0; }
.form-shell .hs-target { min-height: 120px; }
.form-fallback { display: grid; gap: 10px; padding: 18px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); }
.form-fallback b { font-family: var(--display); }
.doc-list { display: grid; gap: 0; border-top: 2px solid var(--fg); }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc .ic { width: 44px; height: 54px; border: 2px solid var(--fg); border-radius: 2px; position: relative; display: grid; place-items: end center; padding-bottom: 6px; font: 700 0.625rem/1 var(--mono); }
.doc .ic::after { content: ""; position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; background: var(--bg); border-left: 2px solid var(--fg); border-bottom: 2px solid var(--fg); }
.doc h3 { font-size: 1.125rem; }
.doc p { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
.doc .btn { padding: 12px 16px; font-size: 0.8125rem; white-space: nowrap; }
@media (max-width: 640px) { .doc { grid-template-columns: auto minmax(0,1fr); } .doc .btn { grid-column: 2; justify-self: start; } }

.legal { max-width: 74ch; display: grid; gap: 14px; }
.legal h2 { font-size: var(--step-2); margin-top: 22px; }
.legal h3 { font-size: 1.0625rem; margin-top: 10px; text-transform: uppercase; letter-spacing: .02em; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

.giving { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.giving > div { display: grid; gap: 8px; padding-top: 16px; border-top: 2px solid var(--line); }
.giving p { color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { background: var(--rail); color: var(--rail-fg); border-top: 4px solid var(--red); }
.site-foot .wrap { padding-block: 56px 28px; display: grid; gap: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font: 600 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--rail-muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.foot-grid a { text-decoration: none; color: var(--rail-fg); }
.foot-grid a:hover { color: #FF5A60; text-decoration: underline; }
.foot-grid address { overflow-wrap: anywhere; font-style: normal; font-size: 0.9375rem; color: var(--rail-muted); display: grid; gap: 4px; }
.foot-grid address a { color: var(--rail-fg); }
.foot-grid address b { color: var(--rail-fg); font-family: var(--display); }
.foot-logo { width: 150px; }
.foot-member { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.foot-member img { width: 130px; background: #fff; padding: 8px 10px; border-radius: 3px; }
.foot-member span { font-size: 0.8125rem; color: var(--rail-muted); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.8125rem; color: var(--rail-muted); }
.foot-base a { color: var(--rail-muted); }
.foot-base nav { display: flex; gap: 18px; flex-wrap: wrap; }

.ref-strip { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.ref-strip img { height: 54px; width: auto; }
