/* The look: leaf-green and the four colours of the peas in the logo. Loaded last, so it only re-skins what the other files draw.
   Every colour is a variable from /theme.css (set in config.yaml, ui.theme). */

:root {
  --kind-spreadsheet: #2f9e44; --kind-document: #2b4ae0; --kind-pdf: #e5383b; --kind-image: #e0a100;
  --kind-video: #6a4fd6;       --kind-audio: #f06fa8;     --kind-text: #6b7a6e;
  --shadow-1: 0 1px 2px rgba(27, 42, 28, 0.06), 0 8px 22px -14px rgba(27, 42, 28, 0.28);
  --shadow-2: 0 2px 4px rgba(27, 42, 28, 0.08), 0 18px 40px -18px rgba(27, 42, 28, 0.38);
}
body { background: var(--bg); font-weight: 450; }
h1, h2, h3, h4 { letter-spacing: -0.012em; }
::selection { background: var(--sun); color: var(--sun-ink); }
:focus-visible { outline: 3px solid var(--pea-blue, var(--primary)); outline-offset: 2px; }

/* icons */
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.17em; flex: none; }
.ic-text { line-height: 1; }

/* the four peas along the top */
.stripe { height: 7px; }
.stripe i:first-child { border-bottom-right-radius: 6px; }
.stripe i:last-child { border-bottom-left-radius: 6px; }

/* header: the logo, the name, who is signed in */
.top { background: var(--surface); }
.top-in { padding-top: 0.7rem; padding-bottom: 0.7rem; gap: 1.1rem; }
.brand h1 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem); color: var(--primary-deep); }
.brand p { font-weight: 500; }
.logo-slot.has-logo { border-radius: 0; }
.logo-slot.has-logo img { max-height: var(--logo-h); }
.logo-slot.has-logo:not(.fixed):hover img { filter: saturate(1.15); }
.student-chip { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.student-chip .caret { color: var(--ink-faint); }

/* menu: pills with an icon in the colour of the pod */
.navbar { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -14px rgba(27, 42, 28, 0.5); }
.navbar nav { padding-top: 0.55rem; padding-bottom: 0.6rem; gap: 0.3rem; }
.nav-item { color: var(--ink-soft); font-weight: 650; border-width: 0; padding: 0.5rem 1rem; gap: 0.5rem; transition: background 0.15s, color 0.15s; }
.nav-item .ic { display: inline-grid; place-items: center; font-size: 1rem; color: var(--primary); }
.nav-item:hover { background: var(--primary-soft); color: var(--primary-deep); }
.nav-item.active { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 14px -8px var(--primary-deep); }
.nav-item.active .ic { color: var(--sun); }

/* buttons */
.btn { font-weight: 650; border-width: 1.5px; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s; }
.btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); }
.btn:active { transform: translateY(1px); }
.btn.primary { box-shadow: 0 8px 16px -10px var(--primary-deep); }
.btn.primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: var(--primary-ink); }
.btn.quiet:hover { background: var(--primary-soft); }
.btn.danger:hover { background: var(--bad-ink); }
.btn .icon { margin-right: -0.05rem; }
.chip, .tabs button, .segmented button, .option-grid label { font-weight: 650; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--primary); color: var(--primary-deep); }
.segmented button[aria-pressed="true"], .chip[aria-pressed="true"], .chip.on { background: var(--primary-deep); }
.option-grid label:has(input:checked) { background: var(--primary-deep); border-color: var(--primary-deep); }

/* cards and pages */
.page-head h2 { color: var(--ink); }
.page-head .intro { font-size: var(--step-0); }
.panel { box-shadow: var(--shadow-1); border-color: var(--line); }
.notice { border-radius: 4px var(--radius-small) var(--radius-small) 4px; }
.notice.good { background: var(--primary-soft); border-left-color: var(--good); }
.notice.bad { background: #fdebe9; }
.data-table thead th { background: var(--bg); }
dialog { box-shadow: var(--shadow-2); border-radius: var(--radius); }
dialog::backdrop { background: rgba(27, 42, 28, 0.5); backdrop-filter: blur(2px); }
.dlg header { background: var(--surface-soft); border-radius: var(--radius) var(--radius) 0 0; }
.foot { background: var(--surface); border-top-color: var(--line); }
.foot p::before { content: ""; display: inline-block; width: 1.2rem; height: 0.55rem; margin-right: 0.6rem; vertical-align: middle; border-radius: 99px;
  background: linear-gradient(90deg, var(--pea-blue) 0 25%, var(--pea-yellow) 25% 50%, var(--pea-lime) 50% 75%, var(--pea-red) 75% 100%); }
.empty-icon .icon { width: 3rem; height: 3rem; color: var(--primary); }
.spic { font-weight: 700; }

/* file kind icons: round, in the colour of the kind */
.kind-ic { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--bg-deep); color: var(--ink-soft); font-size: 0.95rem; flex: none; }

@media (max-width: 40rem) {
  .nav-item { padding: 0.45rem 0.8rem; }
  .brand p { display: none; }
}
@media print { .stripe, .navbar { display: none; } }
