/* Color templates. The page sets <html data-theme="...">; "navy" is the original look. */
html[data-theme="forest"]   { --navy:#1f5a3d; --navy-deep:#123526; --sky:#8cc7a1; --steel:#4f8a68; --mist:#eef6f1; --text:#132a1f; --muted:#4b6656; --line:rgba(31,90,61,.16); }
html[data-theme="burgundy"] { --navy:#7a1f35; --navy-deep:#45111e; --sky:#e3a3b2; --steel:#a35266; --mist:#f9eef1; --text:#2b1218; --muted:#6e4d55; --line:rgba(122,31,53,.15); }
html[data-theme="teal"]     { --navy:#0f5c63; --navy-deep:#0a363b; --sky:#7fd0cf; --steel:#3d8c91; --mist:#ecf7f7; --text:#0f2a2d; --muted:#4a6769; --line:rgba(15,92,99,.16); }
html[data-theme="royal"]    { --navy:#4b2a85; --navy-deep:#2a174d; --sky:#b9a3e6; --steel:#7457b0; --mist:#f3effa; --text:#1f1433; --muted:#5c4f74; --line:rgba(75,42,133,.15); }
html[data-theme="charcoal"] { --navy:#2b2f36; --navy-deep:#16181c; --sky:#e0b354; --steel:#6b7280; --mist:#f4f4f2; --text:#1a1c20; --muted:#565b64; --line:rgba(43,47,54,.16); }
html[data-theme="sunset"]   { --navy:#b4461f; --navy-deep:#5e2210; --sky:#f5b98a; --steel:#c9714b; --mist:#fdf2ec; --text:#2e160c; --muted:#6f5145; --line:rgba(180,70,31,.15); }

/* Spots in style.css that use fixed colors instead of variables. */
html[data-theme] .hero::after { background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 97%, transparent) 35%, color-mix(in srgb, var(--navy) 60%, transparent)); }
html[data-theme] .cov-img .tag { background: color-mix(in srgb, var(--navy) 88%, transparent); }
html[data-theme] input, html[data-theme] select, html[data-theme] textarea { border-color: color-mix(in srgb, var(--navy) 20%, transparent); }
html[data-theme] input:focus, html[data-theme] select:focus, html[data-theme] textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 40%, transparent); }
html[data-theme] .promo-pick { background: var(--mist); border-color: color-mix(in srgb, var(--sky) 60%, transparent); }

/* The picker */
.theme-launch { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text);
  font: 600 .88rem var(--sans, system-ui, sans-serif); box-shadow: 0 8px 22px rgba(0,0,0,.15); cursor: pointer; }
.theme-launch:hover { transform: translateY(-1px); }
.theme-panel { position: fixed; left: 18px; bottom: 70px; z-index: 61; width: 280px; max-width: calc(100vw - 36px); background: #fff;
  color: #1a1c20; border: 1px solid rgba(0,0,0,.12); border-radius: 14px; padding: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.22);
  font: .9rem/1.4 var(--sans, system-ui, sans-serif); }
.theme-panel[hidden] { display: none; }
.theme-panel h3 { margin: 0 0 4px; font: 700 1rem var(--sans, system-ui, sans-serif); }
.theme-panel p { margin: 0 0 12px; color: #5b6170; font-size: .82rem; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-opt { display: flex; align-items: center; gap: 8px; padding: 8px; border: 2px solid transparent; border-radius: 10px;
  background: #f6f7f9; cursor: pointer; font: 600 .82rem var(--sans, system-ui, sans-serif); color: #1a1c20; text-align: left; }
.theme-opt:hover { background: #eef0f4; }
.theme-opt[aria-pressed="true"] { border-color: #1a1c20; background: #fff; }
.theme-sw { display: inline-flex; flex: none; width: 34px; height: 22px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.theme-sw i { flex: 1; }
@media (max-width: 640px) { .theme-launch span { display: none; } .theme-launch { padding: 10px 12px; } }
@media print { .theme-launch, .theme-panel { display: none !important; } }

/* Uploaded agency logo */
.brand img.brand-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; border-radius: 8px; background: #fff; }
