/* Client Resource Center design system. Black dominant, white text, gold as an ACCENT (borders, marks, headings, buttons that carry dark text).
   Every colour is a token from brand.config.json (tools/build.py writes the :root block at :root {
  --bg: #050505;
  --panel: #141414;
  --panel-2: #1B1B1B;
  --line: #2E2A22;
  --line-strong: #8C8573;
  --text: #F5F5F5;
  --muted: #B8B2A5;
  --gold: #C6A35B;
  --gold-hover: #D4AF6E;
  --gold-light: #F9EBB8;
  --gold-deep: #8E6F2E;
  --ink-on-gold: #0B0B0B;
  --good: #6FCF97;
  --warn: #F2C94C;
  --danger: #FF8A80;
  --info: #8EC5FF;
  --glow: #2A2314;
  --font-display: Inter,'Helvetica Neue',Helvetica,Arial,sans-serif;
  --font-body: Inter,'Helvetica Neue',Helvetica,Arial,sans-serif;
  color-scheme: dark;
}
). Never use a literal colour here. */
:root {
  --bg: #050505;
  --panel: #141414;
  --panel-2: #1B1B1B;
  --line: #2E2A22;
  --line-strong: #8C8573;
  --text: #F5F5F5;
  --muted: #B8B2A5;
  --gold: #C6A35B;
  --gold-hover: #D4AF6E;
  --gold-light: #F9EBB8;
  --gold-deep: #8E6F2E;
  --ink-on-gold: #0B0B0B;
  --good: #6FCF97;
  --warn: #F2C94C;
  --danger: #FF8A80;
  --info: #8EC5FF;
  --glow: #2A2314;
  --font-display: Inter,'Helvetica Neue',Helvetica,Arial,sans-serif;
  --font-body: Inter,'Helvetica Neue',Helvetica,Arial,sans-serif;
  color-scheme: dark;
}


@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
svg:not([width]) { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.row > svg:not([width]), .xs > svg, .small > svg { display: inline-block; vertical-align: -0.2em; }
a { color: var(--gold-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.005em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--ink-on-gold); padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-hover); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(40px, 6vw, 84px) 0; }
.section.tight { padding: clamp(24px, 4vw, 48px) 0; }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); margin: 0; }
.gold-text { color: var(--gold); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.nav a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--panel-2); color: var(--gold-hover); }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.hdr-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--gold-deep); color: var(--gold-hover); }
.icon-btn svg { width: 20px; height: 20px; }
.dot { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--ink-on-gold); font: 700 .7rem/18px var(--font-body); text-align: center; }
.menu-btn { display: none; }
.menu-btn .mi-close, .menu-btn[aria-expanded="true"] .mi-open { display: none; }
.menu-btn[aria-expanded="true"] .mi-close { display: grid; }
.menu-btn > span { display: grid; place-items: center; }
.m-only { display: none !important; }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 22px; cursor: pointer; font: 500 .9rem var(--font-body); }
.acct-btn:hover { border-color: var(--gold-deep); }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); flex: 0 0 auto; }
.avatar.lg { width: 56px; height: 56px; }
.avatar.xl { width: 88px; height: 88px; }
.initials { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--gold-deep); color: var(--gold); font: 600 .78rem var(--font-body); flex: 0 0 auto; }
.initials.lg { width: 56px; height: 56px; font-size: 1.05rem; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--panel); border: 1px solid var(--gold-deep); border-radius: 12px; padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.6); z-index: 70; }
.pop a, .pop button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--text); background: transparent; border: 0; font: 500 .92rem var(--font-body); text-decoration: none; cursor: pointer; }
.pop a:hover, .pop button:hover { background: var(--panel-2); color: var(--gold-hover); }
.pop hr { border: 0; height: 1px; background: var(--line); margin: 6px 0; }
.pop .who { padding: 8px 12px 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font: 600 .98rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink-on-gold); background-image: linear-gradient(135deg, var(--gold-light) -40%, var(--gold) 45%, var(--gold-deep) 160%); border-color: var(--gold-deep); }
.btn-gold:hover { background-image: linear-gradient(135deg, var(--gold-light) -20%, var(--gold-hover) 50%, var(--gold) 140%); color: var(--ink-on-gold); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--gold-deep); }
.btn-ghost:hover { background: var(--panel-2); color: var(--gold-hover); border-color: var(--gold); }
.btn-quiet { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--gold-deep); color: var(--gold-hover); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--panel-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .86rem; border-radius: 8px; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- cards, chips, badges ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card.gold { border-color: var(--gold-deep); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.card h3 { margin-bottom: .35em; }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--gold); transform: translateY(-2px); color: inherit; }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font: 600 .74rem/1.4 var(--font-body); letter-spacing: .03em; }
.chip.gold { border-color: var(--gold-deep); color: var(--gold-hover); }
.chip svg { width: 13px; height: 13px; flex: 0 0 auto; }
button.chip { cursor: pointer; font-family: inherit; }
button.chip[aria-pressed="true"], button.chip.on { background: var(--gold); color: var(--ink-on-gold); border-color: var(--gold-deep); }
/* statuses always carry an icon AND a label, never colour alone */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 700 .74rem/1.4 var(--font-body); border: 1px solid; background: var(--panel-2); }
.status svg { width: 13px; height: 13px; }
.status.ok { color: var(--good); border-color: var(--good); }
.status.warn { color: var(--warn); border-color: var(--warn); }
.status.bad { color: var(--danger); border-color: var(--danger); }
.status.info { color: var(--info); border-color: var(--info); }
.status.neutral { color: var(--muted); border-color: var(--line); }
/* the label every sample record carries wherever it is shown */
.sample-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; border: 1px dashed var(--gold); color: var(--gold-hover); background: var(--panel-2); font: 700 .7rem/1.5 var(--font-body); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.reviewed { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.reviewed b { color: var(--text); font-weight: 600; }
.reviewed svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }
.notice { border: 1px solid var(--gold-deep); background: var(--panel); border-radius: 12px; padding: 14px 16px; font-size: .9rem; color: var(--muted); display: flex; gap: 12px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.notice b { color: var(--text); }
.notice.warn { border-color: var(--warn); }
.notice.warn svg { color: var(--warn); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); overflow: hidden; background: radial-gradient(900px 420px at 85% -10%, var(--glow), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-bottom: 1.4em; }
.hero-card { position: relative; border: 1px solid var(--gold-deep); border-radius: 18px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.hero-card + .hero-card { margin-top: 14px; }
.hero-card .tag { position: absolute; top: -12px; left: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-top: 38px; }
.stat-row > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.stat-row > div:first-child { border-left: 0; }
.stat-row b { display: block; font: 600 1.7rem/1.2 var(--font-display); color: var(--gold); }
.stat-row span { font-size: .86rem; color: var(--muted); }

/* ---------- guides and events ---------- */
.guide-card { display: flex; flex-direction: column; height: 100%; }
.guide-card .meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.guide-card h3 { font-size: 1.15rem; }
.guide-card p { color: var(--muted); font-size: .94rem; }
.search { display: flex; gap: 10px; }
.search input { flex: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ev { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; }
.ev-date { text-align: center; border: 1px solid var(--gold-deep); border-radius: 12px; padding: 8px 4px; background: var(--panel-2); }
.ev-date b { display: block; font: 600 1.7rem/1.1 var(--font-display); color: var(--gold); }
.ev-date span { font: 600 .8rem/1.3 var(--font-body); color: var(--muted); }
.ev h3 { margin-bottom: .2em; font-size: 1.12rem; }
.ev p { margin: 0; color: var(--muted); font-size: .92rem; }
.ev .row { margin-top: 8px; }
.ev-act { text-align: right; display: grid; gap: 6px; justify-items: end; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.guide-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 92px; border-left: 1px solid var(--line); padding-left: 16px; font-size: .9rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--gold-hover); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; scroll-margin-top: 96px; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.75; }
.prose ul { margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
label, .label { font-weight: 600; font-size: .9rem; color: var(--text); }
.hint { font-size: .82rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: 1rem var(--font-body); }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold-hover); outline-offset: 1px; border-color: var(--gold); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); margin-bottom: 12px; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); }
.check b { color: var(--text); }
.err { color: var(--danger); font-size: .9rem; margin: 4px 0 0; }
.ok-msg { color: var(--good); font-size: .9rem; }
.form-card { max-width: 520px; margin-inline: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- member shell, admin ---------- */
.page-head { padding: 34px 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .2em; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-decoration: none; font: 500 .9rem var(--font-body); cursor: pointer; }
.tabs a:hover, .tabs button:hover { border-color: var(--gold-deep); color: var(--gold-hover); }
.tabs [aria-current="true"], .tabs [aria-selected="true"], .tabs [aria-pressed="true"] { background: var(--gold); color: var(--ink-on-gold); border-color: var(--gold-deep); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi b { display: block; font: 600 2rem/1.1 var(--font-display); color: var(--text); }
.kpi span { font-size: .84rem; color: var(--muted); }
.kpi small { display: block; margin-top: 4px; font-size: .74rem; color: var(--muted); }
.kpi.gold b { color: var(--gold); }
.adm { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 24px; padding: 28px 0 60px; align-items: start; }
.side { position: sticky; top: 92px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.side button, .side a { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--text); text-align: left; font: 500 .92rem var(--font-body); text-decoration: none; cursor: pointer; }
.side button:hover, .side a:hover { background: var(--panel-2); color: var(--gold-hover); }
.side [aria-current="true"] { background: var(--panel-2); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.side .n { background: var(--gold); color: var(--ink-on-gold); border-radius: 999px; padding: 0 7px; font: 700 .72rem/18px var(--font-body); min-width: 22px; text-align: center; }
.side .sep { height: 1px; background: var(--line); margin: 8px 4px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; padding: 10px 14px; font: 700 .74rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 8px 4px 0; }
.bars i { flex: 1; min-width: 4px; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius: 3px 3px 0 0; }
.radio-card { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); cursor: pointer; margin-bottom: 10px; font-weight: 400; }
.radio-card input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); }
.radio-card:has(input:checked) { border-color: var(--gold); background: var(--panel); }
.radio-card b { display: block; color: var(--text); }
.radio-card span { color: var(--muted); font-size: .88rem; }
.thread { display: grid; gap: 6px; padding: 18px; }
.thread h3 { margin: 0; font-size: 1.1rem; }
.reply { border-left: 2px solid var(--gold-deep); padding: 10px 0 10px 16px; margin: 12px 0 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.person .nm { display: flex; align-items: center; gap: 12px; }
.person b { display: block; }
.timeline { counter-reset: s; display: grid; gap: 0; border-left: 1px solid var(--gold-deep); margin-left: 14px; }
.timeline li { list-style: none; position: relative; padding: 0 0 22px 28px; counter-increment: s; }
.timeline li::before { content: counter(s); position: absolute; left: -15px; top: -2px; width: 29px; height: 29px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--gold); color: var(--gold); font: 700 .8rem/27px var(--font-body); text-align: center; }
.empty-fill { padding: 22px; text-align: center; color: var(--muted); }

/* ---------- toast, tour, dialogs ---------- */
.toast-box { position: fixed; z-index: 120; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, 100% - 24px); }
.toast { background: var(--panel); border: 1px solid var(--gold); color: var(--text); border-radius: 10px; padding: 12px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.6); font-size: .93rem; }
.toast.bad { border-color: var(--danger); }
.tour { position: fixed; z-index: 130; right: 20px; bottom: 20px; width: min(380px, 100% - 24px); background: var(--panel); border: 1px solid var(--gold); border-radius: 16px; padding: 18px 20px; box-shadow: 0 24px 70px rgba(0,0,0,.7); }
.tour h4 { margin-bottom: .3em; }
.tour p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.tour-hl { outline: 3px solid var(--gold) !important; outline-offset: 4px; border-radius: 10px; position: relative; z-index: 3; }
.modal-back { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--gold-deep); border-radius: 16px; padding: 22px; }

/* footer: see the premium footer block at the end of this file */
.la-portfolio-note { margin: 6px 0 0; font-size: 11px; line-height: 1.4; letter-spacing: .02em; opacity: .8; }
.la-copy { margin: 16px 0 0; padding: 0 0 4px; text-align: center; font-size: 9px; line-height: 1.3; letter-spacing: .04em; opacity: .5; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card + .hero-card { margin-left: 0; }
  .adm { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .side button, .side a { width: auto; white-space: nowrap; }
  .side .sep { display: none; }
  .guide-wrap { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .d-only { display: none !important; }
  .m-only { display: flex !important; }
  .m-only[hidden] { display: none !important; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--gold-deep); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; background: var(--panel-2); }
  .hdr-in { gap: 8px; }
  .brand img { height: 40px; }
  .acct-btn .nm { display: none; }
  .acct-btn { padding: 0 6px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat-row > div:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 62px minmax(0, 1fr); }
  .ev-act { grid-column: 1 / -1; text-align: left; justify-items: start; }
  .search { flex-direction: column; }
  .tour { right: 10px; bottom: 10px; left: 10px; width: auto; }
  .section { padding: 36px 0; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card-link { transition: none; } }
@media print { .hdr, .ftr, .toc, .tour, .no-print { display: none !important; } body { background: #fff; color: #000; } .prose p, .prose li { color: #000; } a { color: #000; } }

/* alignment polish found in the screenshots */
.person .sample-badge, .person .chip { justify-self: start; }
.grid.c2 > .field, .grid.c3 > .field { align-self: start; }

@media (max-width: 640px) { .ev { align-items: start; } }
@media (max-width: 480px) { .hdr-right .icon-btn[data-nav="search"] { display: none; } .brand img { height: 36px; } .hdr-in { gap: 6px; } }
/* Refined resource center, all identity remains in brand.config.json. */
h1,h2,h3{letter-spacing:-.035em}h1{font-weight:500}h2{font-size:clamp(1.6rem,3vw,2.1rem)}.hero h1 em{color:var(--text);font-style:normal}.hero{background:radial-gradient(ellipse at 80% 10%,var(--glow),transparent 65%),var(--bg)}.hero-grid{gap:44px}.lead{font-size:1rem;line-height:1.75}.card,.hero-card{border-radius:12px;background:linear-gradient(150deg,var(--panel-2),var(--panel));box-shadow:inset 0 1px color-mix(in srgb,var(--text) 3%,transparent)}.card{padding:24px}.card-link{transition:border-color .2s,box-shadow .2s}.card-link:hover{transform:none;border-color:var(--gold-deep);box-shadow:0 8px 28px color-mix(in srgb,var(--glow) 55%,transparent)}.resource-photo{width:100%;height:230px;object-fit:cover;object-position:center 40%;border:1px solid var(--gold-deep);border-radius:12px;margin-bottom:14px}.card-photo{width:calc(100% + 48px);max-width:none;height:160px;object-fit:cover;margin:-24px -24px 22px;border-radius:12px 12px 0 0}.hero-card{padding:18px;margin-bottom:12px}.hero-card h3{font-size:1.05rem}.stat-row{border-color:var(--line);border-radius:12px}.stat-row b{font-family:var(--font-body);font-size:1.8rem;font-weight:500}.btn{border-radius:8px;font-size:.9rem;min-height:44px}.hdr-in{min-height:70px}.brand img{height:40px}.nav a{font-size:.85rem}.section{padding:64px 0}.kpis{gap:8px}.kpi{border-radius:9px;padding:16px}.kpi b{font-size:1.8rem;font-weight:500}.bars{height:160px;gap:4px;border-bottom:1px solid var(--line);padding:12px 0}.bars i{background:linear-gradient(180deg,var(--gold-hover),var(--gold-deep));border-radius:3px 3px 0 0;position:relative;min-width:3px}.bars i:hover,.bars i:focus-visible{background:var(--gold-light)}.bars i:hover::after,.bars i:focus-visible::after{content:attr(data-value);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:var(--panel-2);color:var(--text);border:1px solid var(--gold-deep);padding:6px 10px;border-radius:6px;white-space:nowrap;font:500 .75rem var(--font-body);z-index:5}.chart-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:.75rem;margin-top:12px}.chart-values{margin-top:12px}.chart-values summary{cursor:pointer;color:var(--text);font-size:.8rem}.chart-empty{padding:36px 12px;text-align:center;color:var(--muted)}
@media(max-width:700px){.hero-grid{gap:24px}.resource-photo{height:210px}.section{padding:42px 0}.card{padding:20px}.card-photo{width:calc(100% + 40px);margin:-20px -20px 18px}.hero h1{font-size:2.15rem}.lead{font-size:.95rem}.hero-card{padding:16px}.stat-row b{font-size:1.5rem}.hdr-in{gap:10px}.brand img{height:32px;max-width:210px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:700px){.hdr-in{min-height:62px}.hero{padding-top:34px}.hero .lead{font-size:.9rem}.hero .btn-row{gap:8px}.hero .btn-row .btn{min-height:40px;padding-inline:16px}}

.dt-row { padding: 8px 12px 10px; display: grid; gap: 6px; }
.dt-row select { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: 500 .9rem var(--font-body); }

.kpi b, [data-count] { font-variant-numeric: tabular-nums lining-nums; }

/* Approved electrical core and first-frame/context-loss artwork. */
.ask-head { display:flex;align-items:center;gap:24px; }
.rx-slot { flex:none;width:128px;height:128px; }
.rx { position:relative;width:100%;height:100%;overflow:hidden; }
.rx canvas { position:absolute;inset:0;display:block;width:100%;height:100%; }
.rx .atlas-approved-art { position:absolute;left:11%;top:11%;width:78%;height:78%;object-fit:contain;clip-path:circle(49%);filter:sepia(1) saturate(3); }
.rx[data-rendered=electrical] .atlas-approved-art { visibility:hidden; }
.rx[data-state=disconnected] .atlas-approved-art { filter:grayscale(1);opacity:.6; }
.rx[data-state=error] .atlas-approved-art { filter:sepia(1) saturate(5) hue-rotate(320deg); }
@media (max-width:560px) { .ask-head { flex-direction:column;align-items:flex-start;gap:10px; }.rx-slot { width:96px;height:96px; } }

/* ---------- the icon set: one sprite (tools/icons.html), 20px grid, 1.5px rounded stroke, currentColor, always decorative ---------- */
svg.ico { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav .ico { width: 18px; height: 18px; color: var(--muted); transition: color .15s; }
.nav a:hover .ico, .nav a:focus-visible .ico, .nav a[aria-current="page"] .ico { color: var(--gold); }
.nav a:focus-visible { background: var(--panel-2); }
.btn .ico { width: 18px; height: 18px; }
.btn-gold .ico { color: inherit; }
.btn-ghost .ico, .btn-quiet .ico { color: var(--gold); }
.icon-btn:focus-visible { border-color: var(--gold); }
.pop .ico { color: var(--muted); transition: color .15s; }
.pop a:hover .ico, .pop button:hover .ico, .pop a:focus-visible .ico, .pop button:focus-visible .ico { color: var(--gold); }
.tabs .ico { width: 18px; height: 18px; color: var(--muted); }
.tabs a:hover .ico, .tabs button:hover .ico { color: var(--gold-hover); }
.tabs [aria-current="true"] .ico, .tabs [aria-selected="true"] .ico, .tabs [aria-pressed="true"] .ico { color: inherit; }
.side .si { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.side .ico { color: var(--muted); transition: color .15s; }
.side button:hover .ico, .side a:hover .ico, .side [aria-current="true"] .ico { color: var(--gold); }
.side button:focus-visible, .side a:focus-visible { background: var(--panel-2); }
.nav-call span { font-variant-numeric: tabular-nums; }
/* icon-only controls get a tooltip on hover and keyboard focus (right-aligned so it can never widen the page) */
@media (hover: hover) {
  .icon-btn[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; background: var(--panel-2); color: var(--text); border: 1px solid var(--gold-deep); border-radius: 6px; padding: 4px 9px; font: 500 .75rem/1.3 var(--font-body); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 80; }
  .icon-btn[data-tip]:hover::after, .icon-btn[data-tip]:focus-visible::after { opacity: 1; }
}

/* ---------- contact: one look everywhere (footer, /ask, /join, /privacy, 404). Data comes from brand.config.json firm.* ---------- */
.ctc { font-style: normal; }
.ctc-firm { margin: 0 0 14px; font: 600 .95rem/1.35 var(--font-body); color: var(--text); }
.ctc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ctc-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; }
.ctc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--gold-light);
  border: 1px solid color-mix(in srgb, var(--gold-deep) 75%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 20%, var(--bg)), var(--bg) 72%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--metal-hi) 30%, transparent), 0 1px 0 color-mix(in srgb, var(--metal-3) 18%, transparent); }
.ctc-ic .ico { width: 18px; height: 18px; }
.ctc-tx { font-size: .92rem; line-height: 1.45; color: var(--muted); overflow-wrap: break-word; min-width: 0; }
.ctc-link { color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid color-mix(in srgb, var(--gold-deep) 70%, transparent); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.ctc-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.ctc-link[href^="tel:"] { font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.ctc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ctc-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hover); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ctc-inline:hover { color: var(--gold-light); text-decoration: underline; }
.ctc-inline .ico { width: 18px; height: 18px; }
.ctc-sep { display: inline-block; width: 1px; height: 14px; background: var(--line-strong); margin: 0 14px; vertical-align: middle; }
.contact-card { margin-top: 18px; }
.contact-card h3 { margin-bottom: 14px; }
.contact-card .ctc-actions { margin-top: 18px; }
.contact-line { margin: 16px 0 0; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }

/* ---------- the premium footer: true black, metallic gold hairlines, white text. Gold is an accent here, never body text. ---------- */
.ftr { position: relative; margin-top: 56px; background: radial-gradient(900px 240px at 50% 0, color-mix(in srgb, var(--gold) 7%, transparent), transparent 72%), var(--bg); color: var(--text); }
.ftr-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep) 14%, var(--metal-hi) 50%, var(--gold-deep) 86%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--metal-3) 22%, transparent); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .9fr)) minmax(270px, 1.5fr); gap: clamp(24px, 3vw, 44px); padding: 56px 0 40px; align-items: start; }
.ftr-logo { display: inline-block; }
.ftr-logo img { height: 48px; width: auto; margin: 0 0 18px; }
.ftr-desc { margin: 0; max-width: 34ch; font-size: .92rem; line-height: 1.65; color: var(--muted); }
.ftr h3 { font: 600 1rem/1.3 var(--font-body); letter-spacing: 0; color: var(--text); margin: 0; }
.ftr h3::after { content: ""; display: block; width: 32px; height: 1px; margin-top: 11px; background: linear-gradient(90deg, var(--metal-hi), var(--gold-deep) 70%, transparent); }
.ftr-col summary, .ftr-contact > h3 { margin-bottom: 18px; }
.ftr-col summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: default; }
.ftr-col summary::-webkit-details-marker { display: none; }
.ftr-col summary .ico { display: none; color: var(--gold); transition: transform .2s; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; }
.ftr-col li { margin: 0; }
.ftr-col li a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text); font-size: .92rem; text-decoration: none; transition: color .15s; }
.ftr-col li a .ico { width: 16px; height: 16px; color: var(--gold); opacity: .85; transition: color .15s, opacity .15s; }
.ftr-col li a:hover, .ftr-col li a:focus-visible { color: var(--gold-light); }
.ftr-col li a:hover .ico, .ftr-col li a:focus-visible .ico { color: var(--gold-light); opacity: 1; }
.ftr-contact .ctc-actions { flex-direction: column; align-items: stretch; }
.ftr-contact .btn { width: 100%; }
.ftr-legal { border-top: 1px solid var(--line); padding: 24px 0 18px; display: grid; gap: 10px; }
.ftr-legal p { margin: 0; max-width: 96ch; font-size: .8rem; line-height: 1.65; color: var(--muted); }
.ftr-legal b { color: var(--text); font-weight: 600; }
.ftr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; border-top: 1px solid var(--line); padding: 16px 0 8px; }
.ftr-bar p { margin: 0; font-size: .8rem; color: var(--muted); }
.ftr-bar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ftr-bar a { color: var(--muted); font-size: .8rem; text-decoration: none; padding: 4px 0; transition: color .15s; }
.ftr-bar a:hover, .ftr-bar a:focus-visible { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.ftr .la-copy { padding-bottom: 28px; }
.ftr .la-portfolio-note { padding-bottom: 28px; color: var(--muted); }
.ftr :focus-visible { outline-color: var(--gold-light); }
@media (max-width: 1020px) {
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 44px 0 32px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-desc { max-width: 56ch; }
}
@media (max-width: 640px) {
  .ftr { margin-top: 40px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 0; padding: 36px 0 20px; }
  .ftr-brand { order: 0; margin-bottom: 26px; }
  .ftr-contact { order: 1; margin-bottom: 26px; }
  .ftr-col { order: 2; border-top: 1px solid var(--line); }
  .ftr-col:last-of-type { border-bottom: 1px solid var(--line); }
  .ftr-col summary { cursor: pointer; margin: 0; min-height: 52px; }
  .ftr-col summary .ico { display: block; }
  .ftr-col[open] summary .ico { transform: rotate(180deg); }
  .ftr-col summary h3::after { display: none; }
  .ftr-col ul { padding-bottom: 12px; }
  .ftr-col li a { padding: 10px 0; }
  .ftr-contact .ctc-actions { flex-direction: row; }
  .ftr-contact .btn { width: auto; flex: 1 1 120px; white-space: nowrap; }
  .ftr-contact .btn-gold { flex: 2 1 220px; }
  .ftr-bar { flex-direction: column; align-items: flex-start; }
}
.nav-call .ico { color: var(--gold); }
@media (min-width: 861px) { .nav { gap: 0; margin-left: 4px; } .nav a { padding: 10px 8px; gap: 6px; } }
@media (min-width: 861px) and (max-width: 1240px) { .nav .ico { display: none; } }
@media (min-width: 861px) and (max-width: 1010px) { .acct-btn .nm { display: none; } .acct-btn { padding: 0 6px; } .hdr-in { gap: 8px; } }
.side button, .side a { font-size: .9rem; padding: 10px; }
.side .si { gap: 9px; }
@media (min-width: 861px) and (max-width: 960px) { .nav a { padding: 10px 5px; font-size: .8rem; } .brand img { height: 34px; } .hdr-in { gap: 6px; } }

/* Stable resource-center masthead: authentication never changes its row height. */
.hdr-in { height: 72px; min-height: 72px; flex-wrap: nowrap; }
.brand { min-width: 0; width: 184px; flex: 0 0 184px; }
.brand img { width: 100%; height: 40px; object-fit: contain; object-position: left center; }
.hdr-right { flex: 0 0 auto; flex-wrap: nowrap; }
.hdr .icon-btn, .hdr .acct-btn, .hdr .btn { height: 44px; min-height: 44px; border-radius: 10px; flex-shrink: 0; }
.hdr .acct-btn { width: 44px; padding: 5px; justify-content: center; }
.hdr .acct-btn .nm { display: none; }
.hdr .pop { width: 272px; min-width: 0; max-width: calc(100vw - 32px); max-height: calc(100dvh - 96px); overflow-y: auto; overflow-wrap: anywhere; }
.hdr .pop .who b { display: block; overflow-wrap: anywhere; }
.hdr :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.resource-photo { aspect-ratio: 3 / 2; height: auto; box-shadow: 0 16px 44px var(--glow); }
@media (max-width: 1280px) {
 .menu-btn { display: inline-grid; }
 .d-only { display: none !important; }
 .m-only { display: flex !important; }
 .m-only[hidden] { display: none !important; }
 .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--gold-deep); max-height: calc(100dvh - 73px); overflow-y: auto; }
 .nav.open { display: flex; }
 .nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 8px; }
 .nav .ico { display: inline-block; }
}
@media (max-width: 480px) {
 .brand { width: 150px; flex-basis: 150px; }
 .brand img { height: 34px; }
 .hdr-right { gap: 4px; }
 .hdr-in { gap: 4px; }
 .hdr .pop { position: fixed; top: 80px; right: 16px; }
 .tour { max-height: calc(100dvh - 100px); overflow-y: auto; }
}

.community-photo { width: 100%; height: clamp(180px, 30vw, 340px); object-fit: cover; object-position: center 52%; border: 1px solid var(--line); border-radius: 12px; margin: 24px 0; }

.hdr:not(.hdr-ready) .hdr-right { visibility: hidden; }
.hdr:not(.hdr-ready)::after { content: ""; position: absolute; right: 16px; top: 23px; width: 112px; height: 26px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
