/* Monthly Quran — brand layer for the app. Load AFTER core/css/components.css.
   Adds: station colours (gold-to-seal-green progression), the seal accent,
   tinted duotone icons, full-perimeter borders, and AA contrast in sepia. */

:root {
  --brand-seal: 142.1 76.2% 36.3%;
  --station-1: 32.1 94.6% 43.7%;
  --station-2: 37.5 100.0% 39.8%;
  --station-3: 44.3 100.0% 36.1%;
  --station-4: 54.4 100.0% 31.4%;
  --station-5: 69.0 100.0% 30.0%;
  --station-6: 91.9 65.6% 37.6%;
  --station-7: 142.1 76.2% 36.3%;
}

[data-theme="dark"] {
  --brand-seal: 141.9 69.2% 58.0%;
  --station-1: 43.3 96.4% 56.3%;
  --station-2: 49.8 82.7% 50.0%;
  --station-3: 57.7 73.7% 47.6%;
  --station-4: 69.2 63.4% 51.8%;
  --station-5: 85.6 63.0% 57.6%;
  --station-6: 110.2 61.7% 63.1%;
  --station-7: 141.9 69.2% 58.0%;
}

[data-theme="sepia"] {
  --brand-seal: 142.4 71.8% 29.2%;
  --station-1: 26.0 90.5% 37.1%;
  --station-2: 32.9 100.0% 32.9%;
  --station-3: 39.9 100.0% 29.8%;
  --station-4: 50.5 100.0% 25.9%;
  --station-5: 66.1 100.0% 23.1%;
  --station-6: 90.0 67.6% 29.0%;
  --station-7: 142.4 71.8% 29.2%;
  /* «دافئ»: muted text one step darker so it passes AA (was 4.26:1) */
  --muted-foreground: 28 16% 40%;
}

/* Inline «وردة السبع» brand mark (adapts to Light, Dark, and Warm themes) */
.brand-mark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark-svg {
  width: 48px;
  height: 48px;
  color: var(--fg);
  display: block;
}

.brand-mark-svg .brand-seal-petal {
  fill: hsl(var(--brand-seal));
}

/* 7-dot indicator on task rows: each finished station keeps its own colour */
.station-dots .station-dot:nth-child(1).done, .station-dots .station-dot:nth-child(1).current { background-color: hsl(var(--station-1)); }
.station-dots .station-dot:nth-child(2).done, .station-dots .station-dot:nth-child(2).current { background-color: hsl(var(--station-2)); }
.station-dots .station-dot:nth-child(3).done, .station-dots .station-dot:nth-child(3).current { background-color: hsl(var(--station-3)); }
.station-dots .station-dot:nth-child(4).done, .station-dots .station-dot:nth-child(4).current { background-color: hsl(var(--station-4)); }
.station-dots .station-dot:nth-child(5).done, .station-dots .station-dot:nth-child(5).current { background-color: hsl(var(--station-5)); }
.station-dots .station-dot:nth-child(6).done, .station-dots .station-dot:nth-child(6).current { background-color: hsl(var(--station-6)); }
.station-dots .station-dot:nth-child(7).done, .station-dots .station-dot:nth-child(7).current { background-color: hsl(var(--station-7)); }
.station-dots .station-dot.current { box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 3.5px currentColor !important; color: inherit; }
.station-dots .station-dot:nth-child(1).current { color: hsl(var(--station-1) / .45); }
.station-dots .station-dot:nth-child(2).current { color: hsl(var(--station-2) / .45); }
.station-dots .station-dot:nth-child(3).current { color: hsl(var(--station-3) / .45); }
.station-dots .station-dot:nth-child(4).current { color: hsl(var(--station-4) / .45); }
.station-dots .station-dot:nth-child(5).current { color: hsl(var(--station-5) / .45); }
.station-dots .station-dot:nth-child(6).current { color: hsl(var(--station-6) / .45); }
.station-dots .station-dot:nth-child(7).current { color: hsl(var(--station-7) / .45); }

/* Progress timeline 1–7: indicators are the odd children (lines sit between them) */
.timeline-item-stations > :nth-child(1) { --st: var(--station-1); }
.timeline-item-stations > :nth-child(3) { --st: var(--station-2); }
.timeline-item-stations > :nth-child(5) { --st: var(--station-3); }
.timeline-item-stations > :nth-child(7) { --st: var(--station-4); }
.timeline-item-stations > :nth-child(9) { --st: var(--station-5); }
.timeline-item-stations > :nth-child(11) { --st: var(--station-6); }
.timeline-item-stations > :nth-child(13) { --st: var(--station-7); }
.timeline-item-stations > .station-indicator.completed { background-color: hsl(var(--st)); border-color: hsl(var(--st)); color: #fff; }
[data-theme="dark"] .timeline-item-stations > .station-indicator.completed { color: hsl(var(--background)); }
.timeline-item-stations > .station-indicator.current { border-color: hsl(var(--st)); background-color: hsl(var(--st) / .12); color: hsl(var(--st)); }
.timeline-item-stations > .station-progress-line.completed { background-color: hsl(var(--border)); }

/* Full-perimeter borders only: replace the side accents */
.hero-task-card { border-inline-start: 1px solid var(--border-color); }
.backlog-banner { border-inline-start: 1px solid hsl(38, 90%, 70%); }
[data-theme="dark"] .backlog-banner { border-inline-start-color: hsl(38, 60%, 35%); }

/* Phosphor duotone: the soft layer carries the seal colour */
.nav-tab svg [opacity], .btn-icon svg [opacity] { fill: hsl(var(--brand-seal)); opacity: .32; }
.nav-tab.active svg [opacity] { opacity: .5; }
