/* Feeding chart (feeding.js). Ten line colours that stay apart for most eyes, a lighter set on the dark theme. */
:root {
  --fc-0: #D55E00; --fc-1: #0072B2; --fc-2: #009E73; --fc-3: #CC79A7; --fc-4: #6A4C93;
  --fc-5: #B8860B; --fc-6: #1B9AAA; --fc-7: #8C564B; --fc-8: #7A8B00; --fc-9: #2F4B7C;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fc-0: #FF8A3D; --fc-1: #56B4E9; --fc-2: #2FD1A0; --fc-3: #F29BC8; --fc-4: #B79BFF;
    --fc-5: #F0C040; --fc-6: #4FD6E0; --fc-7: #D2A394; --fc-8: #B5D43B; --fc-9: #8FA8FF;
  }
}
:root[data-theme="dark"] {
  --fc-0: #FF8A3D; --fc-1: #56B4E9; --fc-2: #2FD1A0; --fc-3: #F29BC8; --fc-4: #B79BFF;
  --fc-5: #F0C040; --fc-6: #4FD6E0; --fc-7: #D2A394; --fc-8: #B5D43B; --fc-9: #8FA8FF;
}
.fc-c0 { --c: var(--fc-0); } .fc-c1 { --c: var(--fc-1); } .fc-c2 { --c: var(--fc-2); } .fc-c3 { --c: var(--fc-3); } .fc-c4 { --c: var(--fc-4); }
.fc-c5 { --c: var(--fc-5); } .fc-c6 { --c: var(--fc-6); } .fc-c7 { --c: var(--fc-7); } .fc-c8 { --c: var(--fc-8); } .fc-c9 { --c: var(--fc-9); }

.fc-warn { padding: 12px 14px; border-radius: 12px; background: var(--warning-bg); color: var(--warning-ink); font-size: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.fc-warn[hidden] { display: none; }
.fc-warn .muted { color: inherit; opacity: .85; font-size: 13px; }
.fc-warn-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-height: 40px; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.fc-warn-row:hover { background: rgba(0, 0, 0, 0.04); }
.fc-warn-row .fc-face { width: 28px; height: 28px; }
#fcBirdFocus {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--c, var(--primary));
  box-shadow: var(--shadow);
}
#fcBirdFocus[hidden] {
  display: none !important;
}

.fc-face { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sunk); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.fc-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.fc-axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }

/* Camera offline hatch */
.fc-hatch-line { stroke: var(--chart-off, var(--line-strong)); stroke-width: 1.5; opacity: 0.4; }
.fc-nowatch-bg { fill: var(--neutral-bg, var(--sunk)); opacity: 0.6; }
.fc-nowatch { opacity: 0.95; }
.fc-nowatch-label { font-size: 10px; font-weight: 600; fill: var(--muted); }

/* Lines and points */
.fc-line { fill: none; stroke: var(--c, var(--muted)); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.fc-pt { fill: var(--c); stroke: var(--card); stroke-width: 1; }
.fc-ring { fill: none; stroke: var(--danger); stroke-width: 2; }

.fc-area { fill: var(--c); opacity: 0.16; pointer-events: none; }
.fc-usual-line { stroke: var(--chart-usual, var(--muted)); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: 0.85; }
.fc-usual-label { fill: var(--chart-usual, var(--muted)); font-size: 11px; font-weight: 600; font-family: var(--font); }

/* Bird card badge */
.fc-bird-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }
.fc-bird-badge-warn { background: var(--warning-bg); color: var(--warning-ink); border-color: var(--warning); }

/* Bird page sparkline */
.fc-spark-wrap { margin: 8px 0 12px; width: 100%; max-width: 460px; }
.fc-spark { display: block; width: 100%; height: auto; user-select: none; }
.fc-spark .fc-line { stroke-width: 2.25; }
.fc-spark .fc-area { fill: var(--c); opacity: 0.16; }
#birdFeeding h2 { margin-top: 0; }
#birdFeeding .fc-warn { margin: 8px 0 0; }

/* Eating and drinking: the short card on Today and the headings on a bird's page */
.eating h2 { margin: 0 0 8px; }
.eating .fc-warn { margin: 0 0 8px; }
.eating p { margin: 0 0 6px; }
.fc-ok { font-weight: 600; color: var(--ink); }
a.fc-warn-row { text-decoration: none; }
#birdFeeding .fc-sub { margin: 12px 0 0; font-size: 15px; }
#birdFeeding .fc-sub:first-of-type { margin-top: 4px; }
