/* ─────────────────────────────────────────────────────────────────────────
   LanternScout — shared CSS base

   Design tokens + genuinely-shared components, loaded BEFORE each page's own
   stylesheet. This is the single source of truth for the palette, so a brand
   colour changes in ONE place and both pages follow. Page-specific styling and
   each page's accent emphasis (amber for Scout, navy for the planner) live in
   styles.css / planner.css.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --cream:         #fdf8f0;
  --cream-dark:    #f5ede0;
  --navy:          #1d3a5e;
  --navy-mid:      #2d527f;
  --navy-light:    #e8eef5;
  --amber:         #f59e0b;
  --amber-strong:  #b45309;
  --amber-soft:    #fef3c7;
  --teal:          #0d9488;
  --teal-soft:     #ccfbf1;
  --ink:           #12243a;
  --muted:         #5a6a7e;
  --border:        rgba(29, 58, 94, 0.14);
  --border-strong: rgba(29, 58, 94, 0.28);
  --card-bg:       rgba(255, 255, 255, 0.97);
  --shadow-card:   0 8px 32px -8px rgba(29, 58, 94, 0.18);
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

/* Star rating widget — identical on both pages (built by LS.buildStarRating). */
.rating-widget { display: flex; justify-content: center; gap: 0.25rem; }
.rating-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #aab0bb;
  transition: color 150ms ease, transform 150ms ease;
  padding: 0;
}
.rating-btn svg { width: 32px; height: 32px; }
.rating-btn:hover { color: var(--amber); transform: scale(1.12); }
.rating-btn:active { transform: scale(1.02); }
.rating-btn.rating-btn--active { color: var(--amber); }

/* Brand logo — shared treatment so every page's header logo matches (same
   image, size and left alignment across Scout, the planner form and results). */
.brand-logo {
  height: 120px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(29, 58, 94, 0.15));
}
@media (max-width: 600px) {
  .brand-logo { height: 72px; }
}

/* Loading "shimmer" text — navy with a warm amber highlight sweeping across.
   Shared so the Scout and planner loading screens animate identically. Applied
   as a second class on the loading text (the element keeps its own size/weight;
   this class owns the colour + animation). */
.ls-loading-shimmer {
  background: linear-gradient(100deg,
    var(--navy) 0%, var(--navy) 38%, var(--amber) 50%, var(--navy) 62%, var(--navy) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: loading-shimmer 2.6s linear infinite;
}
@keyframes loading-shimmer {
  0%   { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-loading-shimmer {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--navy);
    color: var(--navy);
  }
}

/* Footer links — shared across all pages. */
.footer-link { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.footer-link:hover { color: var(--navy); }
.footer-sep { color: var(--border-strong); font-size: 0.75rem; user-select: none; }

/* Text inputs — shared STRUCTURE (both pages' class names map here). Each page
   keeps its own :focus accent (Scout amber, planner navy) and variants. */
.ls-input, .form-input {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease;
}
.ls-input::placeholder, .form-input::placeholder { color: #94a3b8; }
