/* LeadTara 15: site-wide dual theme, transparent seal and restrained motion.
   This layer follows page adapters so light mode stays identical to release 14. */

/* A tiny, repeatable control for the public site and both presentation cabinets. */
.lt-theme-slot { display: inline-flex; align-items: center; flex: 0 0 auto; }
.lt-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 9px 11px;
  border: 1px solid rgba(var(--lt-gold-rgb),.34); border-radius: 5px;
  background: rgba(255,255,255,.035); color: var(--lt-gold-light);
  font: 500 12px/1.2 var(--lt-body); letter-spacing: .015em;
  box-shadow: inset 0 1px 0 rgba(255,238,196,.06);
  cursor: pointer; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.lt-theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.lt-theme-toggle .theme-icon-sun { display: none; }
html[data-theme="dark"] .lt-theme-toggle .theme-icon-sun { display: initial; }
html[data-theme="dark"] .lt-theme-toggle .theme-icon-moon { display: none; }
.lt-theme-toggle:hover { color: #ffdf9f; background: rgba(var(--lt-gold-rgb),.10); border-color: rgba(var(--lt-gold-rgb),.65); }
.lt-theme-toggle:active { transform: scale(.965); }
.lt-theme-toggle:focus-visible { outline: 2px solid var(--lt-gold); outline-offset: 3px; }
.topbar .lt-theme-toggle { color: #365341; border-color: var(--lt-line); background: rgba(255,255,255,.18); }
.topbar .lt-theme-toggle:hover { color: #17392b; background: rgba(232,191,104,.20); border-color: #b49b60; }
.lt-theme-toggle [data-theme-state] { font-size: 11px; }
@media (max-width: 620px) { .lt-theme-toggle [data-theme-state] { display: none; } }
@media (max-width: 380px) { .lt-landing .lt-theme-toggle { min-width: 40px; min-height: 44px; padding: 9px; } }

/* Button feedback: a soft lift and arrow travel, with keyboard focus intact. */
@media (prefers-reduced-motion: no-preference) {
  :is(.button,.lt-button,.header-cta,.primary,.secondary,a.secondary,a.primary):not(:disabled):not([aria-disabled="true"]) {
    transition: background-color .22s ease, border-color .22s ease, color .22s ease,
                box-shadow .25s ease, transform .22s cubic-bezier(.21,.7,.23,1);
  }
  :is(.button,.lt-button,.header-cta,.primary,.secondary,a.secondary,a.primary):not(:disabled):not([aria-disabled="true"]):hover { transform: translateY(-2px); }
  :is(.button,.lt-button,.header-cta,.primary,.secondary,a.secondary,a.primary):not(:disabled):active { transform: translateY(0) scale(.985); }
  :is(.button,.lt-button,.header-cta,.primary,.secondary,a.secondary,a.primary) :is(.icon,.lt-icon) { transition: transform .22s ease; }
  :is(.button,.lt-button,.header-cta,.primary,.secondary,a.secondary,a.primary):hover :is(.icon,.lt-icon) { transform: translateX(3px); }
  .field-tab .icon { transition: transform .22s ease; }
  .field-tab:hover .icon { transform: translateX(3px); }
  ::view-transition-old(root) { animation-duration: .20s; }
  ::view-transition-new(root) { animation-duration: .28s; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.button,.lt-button,.header-cta,.primary,.secondary,a.secondary,a.primary,.lt-theme-toggle),
  :is(.button,.lt-button,.header-cta,.primary,.secondary,a.secondary,a.primary) :is(.icon,.lt-icon),
  .field-tab .icon { transition: none !important; animation: none !important; }
}

/* Dark palette: keep Prata/Golos readable and gold above AAA contrast on green. */
html[data-theme="dark"] {
  --lt-green: #05251c;
  --lt-green-deep: #021912;
  --lt-green-raised: #154333;
  --lt-paper: #09261d;
  --lt-card: #123729;
  --lt-paper-soft: #174535;
  --lt-error-surface: #422a28;
  --lt-ink: #f6f1e6;
  --lt-muted: #c5d3c6;
  --lt-on-dark: #f7f2e7;
  --lt-muted-dark: #cbd8cc;
  --lt-gold-ink: #edc878;
  --lt-line: rgba(232,191,104,.28);
  --lt-line-dark: rgba(232,191,104,.30);
  --lt-shadow: 0 12px 30px rgba(0,9,6,.25),0 1px 3px rgba(0,10,7,.18);
  --lt-shadow-raised: 0 25px 52px -16px rgba(0,9,6,.47),0 2px 8px rgba(0,10,7,.25);
}
html[data-theme="dark"] body { background: radial-gradient(ellipse at 80% 0%,#133d2e,transparent 47%),#061e17; color: var(--lt-ink); }
html[data-theme="dark"] :is(input,textarea,select,.lt-input) {
  color: var(--lt-ink); background: #103328; border-color: rgba(var(--lt-gold-rgb),.38);
  box-shadow: inset 0 1px 4px rgba(0,9,6,.20);
}
html[data-theme="dark"] :is(input,textarea)::placeholder { color: #b3c5b5; opacity: 1; }
html[data-theme="dark"] :is(input,textarea,select,.lt-input):hover { border-color: rgba(var(--lt-gold-rgb),.65); }
html[data-theme="dark"] :is(input,textarea,select,.lt-input):focus-visible { outline-color: var(--lt-gold); }
html[data-theme="dark"] :is(.lt-button,button.secondary,a.secondary) { color: var(--lt-ink); border-color: var(--lt-line); background-color: var(--lt-card); }
html[data-theme="dark"] :is(.lt-button.is-primary,button.primary,a.primary) { color: #fff4e8; background: var(--lt-action-fill); }
html[data-theme="dark"] :is(.lt-button,button.secondary,a.secondary):hover { border-color: rgba(var(--lt-gold-rgb),.66); background-color: #1b4936; }
html[data-theme="dark"] :is(.lt-button,button.secondary,a.secondary):disabled { background: #20382e; color: #a9b9ac; border-color: #46644f; }
html[data-theme="dark"] .lt-card { background: linear-gradient(140deg,rgba(29,78,55,.92),rgba(9,35,26,.98)); border-color: var(--lt-line); box-shadow: var(--lt-shadow); }
html[data-theme="dark"] .lt-card[data-surface="dark"] { background: radial-gradient(circle at 85% 0%,#285f46,transparent 48%),linear-gradient(125deg,#154333,#031e17); }
html[data-theme="dark"] .lt-eyebrow { color: var(--lt-gold-ink); }
html[data-theme="dark"] .lt-badge { color: var(--lt-muted-dark); background: rgba(var(--lt-gold-rgb),.055); border-color: var(--lt-line); }
html[data-theme="dark"] .lt-badge.is-success { color: #d5edcf; background: #254b39; border-color: #537c5b; }
html[data-theme="dark"] .lt-badge.is-warning { color: #f2d9a6; background: #58452b; border-color: #937345; }
html[data-theme="dark"] .lt-badge.is-error { color: #ffd6c9; background: #613831; border-color: #a66454; }
html[data-theme="dark"] .lt-input[aria-invalid="true"] { border-color: #d18c78; }
html[data-theme="dark"] .lt-error { color: #ffd3bc; }
html[data-theme="dark"] .lt-note { background: #173b2e; border-color: var(--lt-line); }

/* Public glossy spreads: light paper becomes layered emerald and bronze. */
html[data-theme="dark"] .request-section {
  color: var(--lt-ink);
  background: radial-gradient(ellipse at 12% 8%,#21513d,transparent 57%),linear-gradient(127deg,#0d3427,#071d16 64%,#123b2b);
  border-color: rgba(var(--lt-gold-rgb),.31); box-shadow: inset 0 1px 0 rgba(255,245,202,.10),0 16px 48px rgba(0,9,6,.28);
}
html[data-theme="dark"] .roles-section {
  color: var(--lt-ink);
  background: radial-gradient(ellipse at 10% 0%,#174331,transparent 53%),linear-gradient(125deg,#061d17,#0b3024 62%,#051b15);
  border-color: rgba(var(--lt-gold-rgb),.24); box-shadow: inset 0 1px 0 rgba(255,245,202,.06);
}
html[data-theme="dark"] :is(.request-section,.roles-section) :is(h2,h3) { color: var(--lt-ink); }
html[data-theme="dark"] :is(.request-section,.roles-section) :is(.eyebrow,.type-accent) { color: var(--lt-gold-light); }
html[data-theme="dark"] :is(.request-section,.roles-section) :is(.section-head>p,.section-note,.request-copy>p,.field-panel p,.chapter-next>span) { color: var(--lt-muted-dark); }
html[data-theme="dark"] .field-tab { color: var(--lt-ink); }
html[data-theme="dark"] .field-tab>span { color: var(--lt-gold-ink); }
html[data-theme="dark"] .field-tab[aria-selected="true"] { background: linear-gradient(90deg,rgba(var(--lt-gold-rgb),.23),rgba(20,67,48,.52)); box-shadow: inset 2px 0 var(--lt-gold),0 3px 16px rgba(0,9,6,.12); }
html[data-theme="dark"] .field-tab:hover { background: rgba(var(--lt-gold-rgb),.11); }
html[data-theme="dark"] .lot-card { color: var(--lt-ink); background: linear-gradient(145deg,#22513b,#0f3428 58%,#08241c); border-color: rgba(var(--lt-gold-rgb),.44); box-shadow: 0 24px 46px rgba(0,9,6,.36),inset 0 1px 0 rgba(255,240,197,.12); }
html[data-theme="dark"] .lot-card h3 { color: var(--lt-gold-light); }
html[data-theme="dark"] .lot-card-top { color: var(--lt-gold-light); }
html[data-theme="dark"] .demo-badge { color: var(--lt-gold-light); background: #2c4935; border-color: rgba(var(--lt-gold-rgb),.37); }
html[data-theme="dark"] .lot-fields>.is-selected { background: rgba(var(--lt-gold-rgb),.13); border-left-color: var(--lt-gold); }
html[data-theme="dark"] .lot-fields :is(dt,dd) { color: var(--lt-muted-dark); }
html[data-theme="dark"] :is(.lot-card-bottom,.lot-action-note,.visual-caption) { color: var(--lt-muted-dark); }
html[data-theme="dark"] .roles-section .role-card { color: var(--lt-ink); background: linear-gradient(155deg,#1a4a36,#0b2d23 73%,#09251e); border-color: rgba(var(--lt-gold-rgb),.31); box-shadow: 0 17px 39px rgba(0,9,6,.29); }
html[data-theme="dark"] .roles-section .role-card h3 { color: var(--lt-gold-light); }
html[data-theme="dark"] .roles-section .role-card :is(.fine-label,.icon) { color: var(--lt-gold-ink); }
html[data-theme="dark"] .roles-section .role-card :is(p:not(.fine-label),ul) { color: var(--lt-muted-dark); }
html[data-theme="dark"] .roles-section .role-card .button-outline { color: var(--lt-on-dark); border-color: rgba(var(--lt-gold-rgb),.52); background: rgba(255,255,255,.025); }
html[data-theme="dark"] .roles-section .scout-card { background: radial-gradient(circle at 85% 0%,#1e5c42,transparent 48%),linear-gradient(150deg,#0c3829,#031a14); border-color: rgba(var(--lt-gold-rgb),.52); }
html[data-theme="dark"] .roles-section .scout-card .button-outline:hover { background: rgba(var(--lt-gold-rgb),.13); }
html[data-theme="dark"] .faq-list details { background: linear-gradient(110deg,#194634,#09291f); }
html[data-theme="dark"] .contact-section { background: linear-gradient(120deg,#0d3728,#08281f 65%,#041a14); }

/* Office: every formerly cream panel, input, card and message gets a dark surface. */
html[data-theme="dark"] .lt-office-preview .lt-office-previewbar { background: #09291e; color: var(--lt-muted-dark); border-color: var(--lt-line); }
html[data-theme="dark"] .lt-office-preview .lt-office-previewbar a { color: var(--lt-gold-ink); }
html[data-theme="dark"] .lt-office-preview .topbar { color: var(--lt-muted-dark); background: linear-gradient(100deg,#0a2b20,#123a2b); border-color: var(--lt-line); }
html[data-theme="dark"] .topbar .lt-theme-toggle { color: var(--lt-gold-light); border-color: var(--lt-line); background: rgba(var(--lt-gold-rgb),.06); }
html[data-theme="dark"] .topbar .lt-theme-toggle:hover { color: #ffdf9f; background: rgba(var(--lt-gold-rgb),.14); }
html[data-theme="dark"] .lt-office-preview :is(.panel,.task-card,.documents details,.material-card) {
  color: var(--lt-ink); background: linear-gradient(150deg,#1b4735,#103528 68%,#0b2a21);
  border-color: var(--lt-line); box-shadow: 0 10px 24px rgba(0,9,6,.23);
}
html[data-theme="dark"] .lt-office-preview .modules-panel>.module-actions>.secondary { color: var(--lt-ink); background: linear-gradient(145deg,#23503a,#113729); border-color: rgba(var(--lt-gold-rgb),.34); box-shadow: inset 0 1px 0 rgba(255,242,202,.08); }
html[data-theme="dark"] .lt-office-preview :is(.stats,.workday-summary) { background: linear-gradient(90deg,rgba(35,77,53,.52),rgba(13,49,35,.60)); border-color: var(--lt-line); }
html[data-theme="dark"] .lt-office-preview :is(.workday-stat,.column-title>span,.pill,.bubble,.quick-actions button) { background: #204333; color: var(--lt-ink); border-color: var(--lt-line); }
html[data-theme="dark"] .lt-office-preview .bubble.user { background: #2a4c39; }
html[data-theme="dark"] .lt-office-preview .task-card { background: linear-gradient(150deg,#194633,#0d2f24); }
html[data-theme="dark"] .lt-office-preview .agent-card { background: radial-gradient(circle at 80% 0%,#265e43,transparent 52%),linear-gradient(140deg,#144432,#031e17); }
html[data-theme="dark"] .lt-office-preview :is(#notice,.warning) { color: #f4dab0; background: #394a2a; border-color: #9d854b; }
html[data-theme="dark"] .lt-office-preview :is(#document-source,.planning-forecast,.application-details p) { color: var(--lt-ink); background: #183d2e; border-color: var(--lt-line); }
html[data-theme="dark"] .lt-office-preview :is(button,.secondary,a.secondary):not(.primary):not(.lt-theme-toggle):hover { background-color: #26523e; border-color: rgba(var(--lt-gold-rgb),.53); }
html[data-theme="dark"] .lt-office-preview #overview .page-head>.primary { color: var(--lt-gold-light); background: transparent; }
html[data-theme="dark"] .lt-office-preview .text-button { color: var(--lt-gold-ink); background: transparent; }
html[data-theme="dark"] .lt-office-preview .text-button:hover { background: rgba(var(--lt-gold-rgb),.09); }
html[data-theme="dark"] .lt-office-preview :is(input,select,textarea) { background: #0b2e23; border-color: rgba(var(--lt-gold-rgb),.41); color: var(--lt-ink); }
html[data-theme="dark"] .lt-office-preview input::placeholder,html[data-theme="dark"] .lt-office-preview textarea::placeholder { color: #b7c8ba; }
html[data-theme="dark"] .lt-office-preview :is(button,input,select,textarea):disabled { color: #a7b8a8; background: #203a2e; border-color: #47634f; }

/* Moderator/Business: dark cards without losing form and status readability. */
html[data-theme="dark"] .lt-business { background: #08251b; }
html[data-theme="dark"] .lt-business .business-context { color: var(--lt-muted-dark); }
html[data-theme="dark"] .lt-business .request-status-tabs button { color: var(--lt-muted-dark); }
html[data-theme="dark"] .lt-business .request-status-tabs button[aria-pressed="true"] { color: var(--lt-gold-light); background: #184532; border-color: rgba(var(--lt-gold-rgb),.60); }
html[data-theme="dark"] .lt-business .request-status-tabs button:hover:not([aria-pressed="true"]) { background: rgba(var(--lt-gold-rgb),.13); color: var(--lt-on-dark); }
html[data-theme="dark"] .lt-business .application-monogram { color: var(--lt-gold-light); background: #214a36; border-color: var(--lt-line); }
html[data-theme="dark"] .lt-business .application-details p { color: var(--lt-muted-dark); background: #1e4433; }
html[data-theme="dark"] .lt-business .application-result { color: #d7efcf; background: #244f35; border-color: #5f8260; }
html[data-theme="dark"] .lt-business .application-result.is-rejected { color: #f7d3bf; background: #563c30; border-color: #a57a57; }
html[data-theme="dark"] .lt-business .business-empty { border-color: var(--lt-line); }
html[data-theme="dark"] .lt-business .lt-button.is-quiet:hover { color: var(--lt-gold-light); background: rgba(var(--lt-gold-rgb),.09); }

/* The design-system swatch labelled paper remains a readable dark-paper sample. */
html[data-theme="dark"] .system-swatch[data-tone="paper"] { color: var(--lt-ink); border-color: var(--lt-line); }
html[data-theme="dark"] .system-panel { color: var(--lt-ink); }
