/* v4 theme step owns this file: office hours daylight theme.
   Day = html.theme-day. Tokens first, then section-by-section fixes.
   Demo mini-sites, before/after mock-ups and the Red Pen CRT stay as they are. */

/* ---------- caption chip (hidden in night; space reserved in both themes) ---------- */
.hero { padding-bottom: calc(var(--s-7) + 44px); }
.day-caption-wrap { display: none; position: absolute; left: 0; right: 0; bottom: 14px; pointer-events: none; z-index: 2; }
.day-caption {
  width: min(var(--container), calc(100% - 2 * var(--s-4))); margin: 0 auto;
  font-size: 0.82rem; line-height: 1.35; color: #1d2a2c;
}
.day-caption::before {
  content: "☀"; margin-right: 8px;
}
html.theme-day .day-caption-wrap { display: block; }
html.theme-day .day-caption {
  width: fit-content; max-width: min(var(--container), calc(100% - 2 * var(--s-4)));
  margin-left: max(var(--s-4), calc((100% - var(--container)) / 2));
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 252, 245, 0.92); border: 1px solid rgba(29, 42, 44, 0.18);
  box-shadow: 0 4px 14px rgba(60, 40, 10, 0.12);
}
@media (min-width: 700px) {
  html.theme-day .day-caption { margin-left: max(var(--s-6), calc((100% - var(--container)) / 2)); }
}

/* ---------- colour transition on toggle (fx on only) ---------- */
html.theme-anim body, html.theme-anim .glass, html.theme-anim .header-inner, html.theme-anim .btn,
html.theme-anim section, html.theme-anim footer, html.theme-anim .chip {
  transition: background-color 420ms ease, color 420ms ease, border-color 420ms ease;
}

/* ---------- day tokens ---------- */
html.theme-day {
  --bg-0: #fbf4e6;
  --bg-1: #f3e9d4;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --line: rgba(29, 42, 44, 0.2);
  --cream: #1d2a2c;
  --text-dim: #44555a;
  --cyan: #0a6f78;
  --orange: #a84a05;
  --ok: #17703f;
  --bad: #b3261e;
  --glow-cyan: 0 0 0 1px rgba(10, 111, 120, 0.35), 0 6px 20px rgba(10, 111, 120, 0.16);
  --glow-orange: 0 0 0 1px rgba(168, 74, 5, 0.4), 0 6px 20px rgba(168, 74, 5, 0.16);
  --teal-deep: #0a6f78;
  --ink: #1d2a2c;
  --muted: #566569;
  color-scheme: light;
  background: var(--bg-0);
}
html.theme-day body::before {
  background:
    radial-gradient(60vmax 50vmax at 12% -8%, rgba(255, 214, 150, 0.45), transparent 60%),
    radial-gradient(55vmax 45vmax at 100% 18%, rgba(120, 200, 205, 0.28), transparent 62%),
    linear-gradient(180deg, #fbf4e6, #f6ecd8 60%, #fbf4e6);
}
html.theme-day body::after { background-image: linear-gradient(rgba(29, 42, 44, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 42, 44, 0.04) 1px, transparent 1px); }
html.theme-day ::selection { background: rgba(10, 111, 120, 0.25); color: #1d2a2c; }
html.theme-day canvas.mission-sky { opacity: 0.1 !important; }
html.theme-day .cursor-glow { display: none; }
html.theme-day a:hover { color: #064c53; }
html.theme-day :focus-visible { outline-color: #0a6f78; box-shadow: 0 0 0 6px rgba(10, 111, 120, 0.2); }

/* ---------- base / glass / buttons / header ---------- */
html.theme-day .glass {
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(10, 111, 120, calc(var(--glow-a) * 0.5)), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 245, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 32px rgba(70, 50, 20, 0.12);
}
html.theme-day .glass:hover, html.theme-day .glass.is-glow {
  border-color: rgba(10, 111, 120, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 36px rgba(70, 50, 20, 0.16);
}
html.theme-day .glass-strong { background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 245, 0.8)); }
html.theme-day .btn-primary {
  color: #fff; background: linear-gradient(135deg, #0f8a94, #0a6f78 60%, #07585f);
  box-shadow: 0 6px 18px rgba(10, 111, 120, 0.3);
}
html.theme-day .btn-primary:hover { color: #fff; box-shadow: 0 8px 24px rgba(10, 111, 120, 0.42); }
html.theme-day .btn-ghost, html.theme-day .btn-secondary { background: rgba(255, 255, 255, 0.7); color: #1d2a2c; }
html.theme-day .header-inner {
  background: rgba(255, 251, 242, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 26px rgba(70, 50, 20, 0.14);
}
html.theme-day .brand-mark { box-shadow: 0 0 0 1px rgba(10, 111, 120, 0.4); }
html.theme-day .site-nav a { opacity: 1; }
@media (max-width: 899.98px) {
  html.theme-day .site-nav { background: rgba(255, 251, 242, 0.97); box-shadow: 0 16px 40px rgba(70, 50, 20, 0.2); }
}
html.theme-day .theme-btn { background: rgba(255, 255, 255, 0.85); color: #1d2a2c; border-color: rgba(29, 42, 44, 0.25); }
html.theme-day .eyebrow::before { box-shadow: none; }
html.theme-day .divider-beam { box-shadow: none; opacity: 0.55; }
html.theme-day .divider-beam::after { display: none; }
html.theme-day .chip::before, html.theme-day .status-chip .dot { box-shadow: none; }
html.theme-day input[type="text"], html.theme-day input[type="email"], html.theme-day input[type="url"], html.theme-day textarea {
  background: #fff; color: #1d2a2c; border-color: rgba(29, 42, 44, 0.3);
}
html.theme-day input::placeholder, html.theme-day textarea::placeholder { color: #5d6c70; }
html.theme-day .field-error { color: #b3261e; }

/* ---------- hero ---------- */
html.theme-day .hero {
  background-color: var(--bg-0);
  background-image:
    linear-gradient(90deg, rgba(251, 244, 230, 0.93) 0%, rgba(251, 244, 230, 0.8) 55%, rgba(251, 244, 230, 0.55) 100%),
    url("../assets/v4/office-hours-800.jpg");
  background-size: cover; background-position: center;
}
@media (min-width: 900px) {
  html.theme-day .hero {
    background-image:
      linear-gradient(90deg, rgba(251, 244, 230, 0.93) 0%, rgba(251, 244, 230, 0.8) 55%, rgba(251, 244, 230, 0.55) 100%),
      url("../assets/v4/office-hours-1600.jpg");
  }
}
html.theme-day .hero::before { background: radial-gradient(40% 40% at 75% 40%, rgba(255, 214, 150, 0.3), transparent 70%); }
html.theme-day .hero-canvas { opacity: 0.35; }
html.theme-day .holo-frame { background: #fff; box-shadow: 0 0 0 1px rgba(10, 111, 120, 0.4), 0 12px 30px rgba(70, 50, 20, 0.2); }
html.theme-day .holo-scan, html.theme-day .holo-lines, html.theme-day .hud { display: none; }
html.theme-day .status-chip { background: rgba(255, 252, 245, 0.92); color: #1d2a2c; }
html.theme-day .hero-grad .w { background: linear-gradient(90deg, #0a6f78, #a84a05); -webkit-background-clip: text; background-clip: text; }
html.theme-day .hero-title .w { text-shadow: none; }

/* ---------- solid fallbacks under gradient buttons / skip link ---------- */
html.theme-day .btn-primary { background-color: #0a6f78; }
html.theme-day .skip-link { background: #0a6f78; color: #fff; }

/* ---------- translucent dark panels -> light panels ---------- */
html.theme-day .demo-field input { background: #fff; }
html.theme-day .demo-console { background: rgba(255, 252, 245, 0.85); }
html.theme-day .demo-stamp-word, html.theme-day .demo-stamp-reason { background: rgba(255, 252, 245, 0.96); box-shadow: 0 8px 22px rgba(70, 50, 20, 0.2); }
html.theme-day .tm-trait { background: rgba(255, 255, 255, 0.7); border-color: rgba(168, 74, 5, 0.5); }
html.theme-day .tm-stamp, html.theme-day [class*="stamp"] { background-color: rgba(255, 252, 245, 0.95); }
html.theme-day .cmp-tag, html.theme-day .cmp-chip { background: rgba(255, 252, 245, 0.94); color: #1d2a2c; }
html.theme-day .cmp-tag-after { color: #0a6f78; }
html.theme-day .cmp-line { box-shadow: none; }
html.theme-day .cmp-grip { background: #fff; box-shadow: 0 4px 14px rgba(70, 50, 20, 0.25); }
html.theme-day .soon-label { background: rgba(255, 252, 245, 0.94); }
html.theme-day .mh-card { background: rgba(255, 251, 242, 0.92); box-shadow: 0 8px 22px rgba(70, 50, 20, 0.16); }
html.theme-day .fx-switch { background: rgba(255, 255, 255, 0.8); border-color: rgba(29, 42, 44, 0.3); color: #1d2a2c; }
html.theme-day .fx-switch-label { color: #1d2a2c; }
html.theme-day .fx-switch-track { background: rgba(10, 111, 120, 0.25); box-shadow: none; }
html.theme-day .fx-switch-knob { background: #0a6f78; box-shadow: none; }
html.theme-day .fx-switch[aria-checked="false"] .fx-switch-knob { background: #5d6c70; }
html.theme-day .fx-switch[aria-checked="false"] .fx-switch-track { background: rgba(29, 42, 44, 0.18); }
html.theme-day .fx-switch:focus-visible { outline-color: #0a6f78; }

/* ---------- makeover console ---------- */
html.theme-day .makeover-form.console { background: rgba(255, 252, 245, 0.85); }
html.theme-day .console-dot:nth-child(3) { background: #1d2a2c; }
html.theme-day .console .field label { color: #0a6f78; }
html.theme-day .console input, html.theme-day .console textarea { background: #fff; color: #1d2a2c; }
html.theme-day .how-shade { background: linear-gradient(180deg, transparent 60%, rgba(251, 244, 230, 0.6)); }
html.theme-day .site-footer { background: transparent; }
html.theme-day .launch-flame i:nth-child(2) { background: radial-gradient(ellipse at 50% 10%, #fff, rgba(255,255,255,0) 70%); }
html.theme-day .quiet { background: var(--bg-0); }
