/* Shared brand layer for StyleDNA pages. Loaded after each page's own styles.
   2 Nov 2026: emerald retired. Every look (DCG and The Agency) wears The Agency palette and type, dark and light.
   The looks differ only by lockup and contact lines, switched with data-b="dcg|agency" (data-brand="agency" set by brand.js).
   The retired emerald values are archived in the DCG Sourcing Platform project doc claude/theme-standard.md. */

/* Show the right pieces for the look */
:root:not([data-brand="agency"]) [data-b="agency"],
:root[data-brand="agency"] [data-b="dcg"] { display: none !important; }

/* DCG mark with the broker name on the same centered axis */
.lockup { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lockup .welcome-lockup, .lockup .contact-lockup, .lockup img.lockup { margin-bottom: 12px; }
.welcome-content > .lockup { margin-bottom: 40px; }
.contact-block > .lockup { margin-bottom: 26px; }
.lockup-broker { margin: 0; line-height: 1.35; color: var(--soft-white); }
.lockup-broker small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--silver); margin-bottom: 3px; }
.lockup-broker b { display: block; font-size: 14px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.legal .franchise { font-size: 11px; opacity: 0.9; }

/* The Agency Dallas logo (secondary, white, for black grounds). Square file with clear space built in.
   Brand Standards Manual: min 70 px digital, clear space = the "A". */
.agency-mark { display: inline-block; line-height: 0; }
.agency-mark img { display: block; width: 210px; height: auto; }
.welcome-content > .agency-mark { margin-bottom: 28px; }
.contact-block > .agency-mark { margin-bottom: 18px; }
.contact-block > .agency-mark img { width: 170px; }
footer .agency-mark img { width: 150px; margin: 0 auto; }
.agency-mark.sm img { width: 84px; }

/* ===== The Agency look: Brand Standards Manual (Mar 2023), dark =====
   Black ground, Plaster text, warm Plaster accent, flat (no glow), square corners.
   Agency Red sits only on the thin top rule and the wordmark rule. */
:root {
  --obsidian: #000000; --deep-ink: #0E0E0E; --emerald-shadow: #0E0E0E; --emerald: #161616; --emerald-lift: #222222;
  --gold: #D8D5CC; --gold-shadow: #3A3A38; --gold-mid: #BDB9AE; --gold-highlight: #F7F8F6;
  --soft-white: #F7F8F6; --silver: #A9AAA7; --surface: #161616;
  --hairline: rgba(216, 213, 204, 0.35);
  --line: rgba(169, 170, 167, 0.18); --line-strong: rgba(169, 170, 167, 0.36);
  --grgb: 216, 213, 204; --brgb: 0, 0, 0;
  --glow: var(--obsidian);
}
:root body::after { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 3px; background: #ED2127; z-index: 9999; pointer-events: none; }
:root body,
:root body * { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
:root h1, :root h2, :root h3 {
  font-family: 'Noto Serif Display', Georgia, serif; font-weight: 400; letter-spacing: 0;
}
:root .welcome-kicker span,
:root .progress-indicator,
:root .social-title,
:root .lockup-broker small {
  font-family: 'Barlow Condensed', 'Roboto', sans-serif; font-weight: 500; letter-spacing: 3px;
}
:root .welcome-cta, :root .pref-continue,
:root .btn-primary, :root .activation-cta,
:root .partner-invite, :root .pill,
:root .btn { border-radius: 0; }

/* ===== Light / dark ===== */
/* Logo files swap with the theme */
:root:not([data-theme="light"]) img.on-light,
:root[data-theme="light"] img.on-dark { display: none !important; }

/* Footer toggle */
.theme-toggle { display: inline-flex; gap: 0; margin: 14px auto 4px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.theme-toggle button { background: none; border: 0; color: var(--silver); font: inherit; font-size: 12px; padding: 7px 14px; cursor: pointer; }
.theme-toggle button + button { border-left: 1px solid var(--line-strong); }
.theme-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--obsidian); }
:root .theme-toggle { border-radius: 0; }

/* Old DCG light (retired 2 Nov 2026; the Agency light block below now wins for every look) */
:root[data-theme="light"] {
  --obsidian: #F5F5F3; --deep-ink: #FFFFFF; --emerald-shadow: #ECEFEC; --emerald: #E7EEEA; --emerald-lift: #D5E2DC;
  --gold: #8A6420; --gold-shadow: #674823; --gold-mid: #A97C30; --gold-highlight: #674823;
  --soft-white: #0E2926; --silver: #56605E; --surface: #FFFFFF;
  --hairline: rgba(138, 100, 32, 0.35);
  --line: rgba(14, 41, 38, 0.12); --line-strong: rgba(14, 41, 38, 0.26);
  --grgb: 138, 100, 32; --wrgb: 14, 41, 38; --err: #A8322A;
  --glow: radial-gradient(ellipse 80% 45% at 0% 0%, #DCE7E1 0%, #E9EFEB 35%, rgba(245, 245, 243, 0) 75%), var(--obsidian);
  color-scheme: light;
}
/* The Agency light: Plaster ground, black ink, Iron buttons, flat; red stays on the top rule and the logo */
:root[data-theme="light"] {
  --obsidian: #F7F8F6; --deep-ink: #FFFFFF; --emerald-shadow: #EFEFEC; --emerald: #EDEDEA; --emerald-lift: #E2E3E0;
  --gold: #1A1A19; --gold-shadow: #3A3A38; --gold-mid: #3A3A38; --gold-highlight: #3A3A38;
  --soft-white: #000000; --silver: #5A5B58; --surface: #FFFFFF;
  --hairline: rgba(0, 0, 0, 0.28);
  --line: rgba(0, 0, 0, 0.12); --line-strong: rgba(0, 0, 0, 0.26);
  --grgb: 0, 0, 0; --wrgb: 0, 0, 0; --err: #A8322A;
  --glow: var(--obsidian);
}

/* Anything drawn over a photo keeps the dark-look colours so it stays readable */
:root[data-theme="light"] .swipe-card, :root[data-theme="light"] .reveal,
:root[data-theme="light"] .swipe-room, :root[data-theme="light"] .swipe-card-miss, :root[data-theme="light"] .swipe-card-near {
  --soft-white: #F5F5F3; --primary-white: #F5F5F3; --silver: #C9CDCC; --muted-taupe: #C9CDCC;
  --gold: #E0B24D; --accent-gold: #E0B24D; --gold-highlight: #F6CE72;
}
:root[data-theme="light"] .swipe-card, :root[data-theme="light"] .reveal,
:root[data-theme="light"] .swipe-room, :root[data-theme="light"] .swipe-card-miss, :root[data-theme="light"] .swipe-card-near {
  --soft-white: #F7F8F6; --primary-white: #F7F8F6; --gold: #D8D5CC; --accent-gold: #D8D5CC; --gold-highlight: #F7F8F6;
}
/* Results header photo: washed to the light ground so the writing sits on light */
:root[data-theme="light"] .hero-bg::after {
  background: linear-gradient(180deg, rgba(245, 245, 243, 0.62) 0%, rgba(245, 245, 243, 0.72) 35%, rgba(245, 245, 243, 0.94) 78%, var(--obsidian) 100%);
}
:root[data-theme="light"] .hero-bg::after {
  background: linear-gradient(180deg, rgba(247, 248, 246, 0.62) 0%, rgba(247, 248, 246, 0.72) 35%, rgba(247, 248, 246, 0.94) 78%, var(--obsidian) 100%);
}
:root[data-theme="light"] .swipe-card { box-shadow: 0 16px 40px rgba(14, 41, 38, 0.18); }
:root[data-theme="light"] .has-hero .archetype-kicker { color: var(--silver); }
