/* SQUIRT field station — the guide's world for the working pages.
   Loads after site.css and the page's own sheet, and restates their tokens and chrome. */

:root {
  --sky: #74a3cc;
  --sky-deep: #2c4863;
  --sun: #e3ad45;
  --grass: #9aae78;
  --grass-deep: #56703f;
  --coral: #ad4b28;
  --coral-deep: #933d20;
  --grape: #2c4863;
  --cream: #f5e8d6;
  --foam: #efe3cc;
  --ink: #0f3624;
  --ink-soft: #4a5a4d;
  --white: #fbf6ec;
  --stroke: 1.5px solid rgba(45, 74, 52, 0.4);
  --shadow: 0 3px 10px rgba(40, 30, 15, 0.18);
  --shadow-lg: 0 8px 24px rgba(20, 15, 5, 0.28);
  --radius: 10px;
  --radius-sm: 8px;
  --font-display: "Manuale", Georgia, serif;
  --font-body: "Manuale", Georgia, serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --font-mark: "Fredoka", "Arial Rounded MT Bold", sans-serif;

  --cloth: #2d4a34;
  --cloth-deep: #203626;
  --paper: #f5e8d6;
  --rule: rgba(45, 74, 52, 0.4);
  --slate: #2c4863;
  --mustard-pale: #f8e7c4;
}

html {
  scrollbar-color: #3c5c44 var(--cloth-deep);
}

body,
body.ops {
  background: url("../assets/plates/cloth.webp") repeat var(--cloth);
  background-size: 344px auto;
  color: var(--ink);
  font-weight: 400;
}

body::before {
  display: none;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

a {
  color: var(--coral-deep);
  font-weight: 600;
}

a:hover {
  color: var(--ink);
}

/* ── the masthead, as on the guide ────────────────────── */

.site-nav,
.ops-top {
  background: url("../assets/plates/cloth.webp") repeat var(--cloth);
  background-size: 344px auto;
  border-bottom: 0;
  backdrop-filter: none;
  color: var(--cream);
}

.brand,
.ops-top .brand {
  position: relative;
  gap: 0;
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
  color: #f6f1e2;
  line-height: 1;
}

.brand::after {
  /* the splash over the I */
  content: "";
  position: absolute;
  left: 3.35rem;
  top: -1rem;
  width: 1.5rem;
  height: 1.1rem;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 44'%3E%3Cg fill='%233aa3dc'%3E%3Cpath d='M31 2c3.6 6 6.6 10.4 6.6 15a6.6 6.6 0 0 1-13.2 0c0-4.6 3-9 6.6-15z'/%3E%3Cpath d='M11 8c5 3 9.4 5.6 11.6 9.4a5.8 5.8 0 0 1-10 5.8C10.4 19.4 10.8 14.4 11 8z'/%3E%3Cpath d='M53 11c-1.4 5.6-2 10.4-4.6 13.8a5.8 5.8 0 0 1-9.2-7c2.4-3.4 7.4-5 13.8-6.8z'/%3E%3Cpath d='M7 30c3.8 1 7 2.2 8.4 4.6a4.2 4.2 0 0 1-7.2 4.2C6.8 36.4 6.8 33.6 7 30z'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.85'%3E%3Cellipse cx='28.6' cy='15.6' rx='1.5' ry='3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

.brand-mark {
  display: none;
}

.ops-sub,
.brand .ops-sub {
  margin-left: 0.9rem;
  padding: 0 0 0 0.9rem;
  border: 0;
  border-left: 1px solid rgba(246, 241, 226, 0.5);
  border-radius: 0;
  background: none;
  color: #f6f1e2;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.nav-links {
  font-family: var(--font-display);
  font-size: 1rem;
  gap: 0.2rem 1.2rem;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #f6f1e2;
  font-weight: 500;
  box-shadow: none;
}

.nav-links a:hover {
  background: none;
  color: #f6f1e2;
  transform: none;
}

.nav-links a[aria-current="page"] {
  background: none;
  color: #f6f1e2;
  box-shadow: inset 0 -3px 0 var(--sun);
}

.ops-chips {
  gap: 0.5rem 0.7rem;
}

.ops-chips .pill,
.ops-chips a.pill {
  background: transparent;
  border: 1px solid rgba(246, 241, 226, 0.35);
  color: #f6f1e2 !important;
}

.ops-chips a.pill:hover {
  border-color: var(--sun);
}

#clock {
  color: #f6f1e2;
  font-family: var(--font-display) !important;
  font-variant-numeric: tabular-nums;
}

/* ── pills, badges, buttons ───────────────────────────── */

.pill {
  border: var(--stroke);
  background: rgba(251, 246, 236, 0.7);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: none;
}

.pill .dot {
  background: #56703f;
  box-shadow: none;
}

.mode-badge {
  border: 2.5px solid #e07f55;
  border-radius: 6px;
  background: transparent;
  color: #f3c3a8;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: rotate(-3deg);
  box-shadow: none;
}

.mode-badge.wet {
  border-color: #74a3cc;
  color: #cfe2f2;
}

.btn {
  border: 1.5px solid rgba(44, 72, 99, 0.5);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-primary {
  background: var(--coral);
  border-color: var(--coral);
  color: #f6f1e2;
}

.btn-primary:hover {
  background: var(--coral-deep);
  color: #f6f1e2;
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
}

.btn-ghost:hover {
  background: rgba(248, 231, 196, 0.6);
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
  background: none;
  border: 0;
  padding: 0;
}

/* ── paper panels ─────────────────────────────────────── */

.card,
.feed-panel,
.side-panel,
.mw-hero,
.mw-toolbar,
.mw-dialog-inner {
  background: url("../assets/plates/paper.webp") repeat var(--paper);
  background-size: 460px auto;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(10, 20, 12, 0.35), inset 0 0 0 1px rgba(92, 70, 40, 0.12);
}

.panel-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.stat,
.mw-stat {
  border: var(--stroke);
  border-radius: var(--radius-sm);
  background: rgba(251, 246, 236, 0.6);
  box-shadow: none;
}

.stat .n,
.mw-stat .n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat .l,
.mw-stat .l {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
}

/* clubhouse feed */

.feed-bezel {
  border: 0;
  border-radius: var(--radius-sm);
  background: #1b2a1f;
  box-shadow: inset 0 0 0 1px rgba(92, 70, 40, 0.3);
}

.roi {
  border-color: #e07f55;
}

.roi span {
  background: #e07f55;
  color: #1b2a1f;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 600;
}

.event-list li {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: rgba(251, 246, 236, 0.65);
  box-shadow: none;
}

.event-list li.kind-squirrel {
  border-color: rgba(173, 75, 40, 0.55);
  background: rgba(243, 217, 201, 0.55);
}

.event-list li.kind-bird {
  border-color: rgba(44, 72, 99, 0.35);
  background: rgba(217, 227, 238, 0.45);
}

.event-body strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.conf {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.ops-bottom {
  color: rgba(246, 241, 226, 0.8);
  font-family: var(--font-display);
}

.ops-bottom a {
  color: #f6f1e2;
}

/* most wanted */

.mw-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
}

.mw-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
}

.mw-poster-deco,
.mw-mascot-deco {
  border: 0;
  box-shadow: 0 3px 10px rgba(60, 40, 20, 0.2);
}

.mw-stamp,
.mw-card-stamp,
.mw-wanted-banner {
  border-color: var(--coral);
  color: var(--coral);
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: none;
  mix-blend-mode: multiply;
}

.mw-toolbar {
  color: var(--ink);
}

.mw-filter select,
select {
  border: var(--stroke);
  border-radius: var(--radius-sm);
  background-color: rgba(251, 246, 236, 0.8);
  color: var(--ink);
  font-family: var(--font-display);
}

.mw-card {
  border: 0;
  border-radius: 4px;
  background: #fbf6ec;
  box-shadow: 0 3px 10px rgba(10, 20, 12, 0.35);
}

.mw-card:hover {
  box-shadow: 0 8px 20px rgba(10, 20, 12, 0.4);
}

.mw-card-pin {
  background: rgba(227, 173, 69, 0.75);
  border: 0;
  border-radius: 2px;
  box-shadow: none;
}

.mw-card-body strong {
  font-family: var(--font-display);
  font-weight: 700;
}

.mw-card-when,
.mw-card-zone {
  font-family: var(--font-display);
  color: var(--ink-soft);
}

.mw-card-score {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
}

.score-hot { background: #f3d9c9; color: #7a3017; }
.score-warm { background: var(--mustard-pale); color: #6b4b10; }
.score-cool { background: #d9e3ee; color: var(--slate); }

.mw-hint {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--slate);
}

.mw-dialog::backdrop {
  background: rgba(20, 30, 22, 0.7);
}

/* labeling and zones share the same desk */

.label-page .wrap,
.batch-page .wrap {
  color: var(--ink);
}

.site-footer {
  background: var(--cloth-deep);
  border-top: 0;
  color: rgba(246, 241, 226, 0.8);
}

.site-footer a {
  color: #f6f1e2;
}

.fine {
  color: inherit;
}

kbd,
.kbd {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--mustard-pale);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(45, 74, 52, 0.4);
  font-family: var(--font-display);
}

/* the clubhouse set shows the guide's own feeder plate until the live camera takes over */
.feed-bezel .bg-art {
  object-fit: contain;
  padding: 4% 0;
  opacity: 1;
  filter: none;
  background: url("../assets/plates/paper.webp") repeat var(--paper);
  background-size: 460px auto;
}

.feed-meta {
  color: var(--slate);
  text-shadow: none;
  font-weight: 500;
}

.float-mascot {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 3px 5px rgba(40, 30, 15, 0.25));
}

.float-mascot.hose {
  width: 120px;
  height: 120px;
  opacity: 0.35;
}

.mw-mascot-deco {
  background: none;
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 3px 5px rgba(40, 30, 15, 0.25));
}

/* the clubhouse fits one screen: the event list scrolls inside its panel */
@media (min-width: 961px) {
  body.ops:not(.mw) .ops-shell {
    height: 100vh;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  body.ops:not(.mw) .ops-main {
    min-height: 0;
  }

  body.ops:not(.mw) .side-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.ops:not(.mw) .event-list {
    overflow-y: auto;
    min-height: 0;
  }
}

.stats-row {
  border-top: 1px solid var(--rule);
}

.stat,
.stat:nth-child(1),
.stat:nth-child(2),
.stat:nth-child(3),
.stat:nth-child(4) {
  background: rgba(251, 246, 236, 0.55);
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--rule);
}

.stat:nth-child(1) .n { color: var(--coral); }
.stat:nth-child(3) .n { color: var(--slate); }

.ops-bottom {
  background: none;
  border: 0;
  box-shadow: none;
  color: rgba(246, 241, 226, 0.78);
}

.ops-bottom a,
.ops-bottom a:hover {
  background: none;
  border: 0;
  padding: 0;
  color: #f6f1e2;
  text-decoration: underline;
  text-decoration-color: rgba(246, 241, 226, 0.4);
  text-underline-offset: 0.2em;
  box-shadow: none;
}

.ops-bottom a:hover {
  text-decoration-color: var(--sun);
}

.roi span {
  white-space: nowrap;
  padding: 0 6px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the board and its toolbar sit in one main region */
.mw-main {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

/* phones: the clubhouse panels stay inside the screen */
@media (max-width: 960px) {
  .ops-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-panel,
  .side-panel {
    min-width: 0;
  }

  .panel-label {
    flex-wrap: wrap;
  }

  .feed-stage {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}

.event-list:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: -2px;
}

/* labeling desks: the empty state sits on the dark photo well */
.label-empty p {
  color: #ece5d6;
}

.label-empty .fine {
  color: #d6ccb8;
}

.label-empty code {
  color: #f6f1e2;
  background: rgba(255, 255, 255, 0.1);
}

/* camera captions on the clubhouse screen, written like field notes */
.feed-meta {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
}

.feed-meta > div {
  display: inline-block;
  width: fit-content;
  padding: 0 0.4rem;
  border-radius: 4px;
  background: rgba(245, 232, 214, 0.88);
}

.feed-meta[style*="flex-end"] > div {
  margin-left: auto;
}

/* the Most Wanted board's poster art: the guide's own painted plate on paper */
.mw-hero-art {
  border: 0;
  background: url("../assets/plates/paper.webp") repeat var(--paper);
  background-size: 460px auto;
  box-shadow: inset 0 0 0 1px rgba(92, 70, 40, 0.14);
}

.mw-poster-deco {
  object-fit: contain;
  padding: 6% 4% 2%;
  opacity: 1;
}

.mw-mascot-deco {
  display: none;
}
