/* ── Drawer Splash ─────────────────────────────────────────────────────────
   Shared "what is this tool" intro shown once inside each drawer, sized to
   the drawer panel (not the full viewport — the sidebar stays visible
   behind it). Navy hero, matches scc.html's brand colours, sits inset with
   a light border. Added 2026-08-05. */

.drawer-splash {
  position: absolute;
  inset: 0;
  margin: 14px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background: var(--brand, #10243a);
  overflow-y: auto;
  display: flex;
  align-items: center;
  z-index: 40;
  scrollbar-width: none;
}
.drawer-splash[hidden] { display: none; }
.drawer-splash::-webkit-scrollbar { display: none; }

.ds-deco {
  position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(38,169,216,.07);
  pointer-events: none;
}
.ds-deco2 {
  position: absolute; left: -60px; bottom: -100px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(38,169,216,.05);
  pointer-events: none;
}

.ds-inner {
  display: flex; align-items: center; gap: 36px;
  padding: 32px 44px; width: 100%; max-width: 980px;
  margin: 0 auto; position: relative; z-index: 1;
  flex-wrap: wrap;
}

.ds-txt { flex: 1.15; min-width: 260px; }
.ds-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent, #26a9d8); margin-bottom: 8px;
}
.ds-eyebrow-ico { font-size: .95rem; }
.ds-txt h1 {
  margin: 0 0 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.05rem; font-weight: 800; color: #fff; line-height: 1.08;
}
.ds-txt p {
  margin: 0 0 16px; font-size: .92rem; color: rgba(255,255,255,.68);
  line-height: 1.5; max-width: 460px;
}

.ds-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ds-checklist div { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: #dcecf9; }
.ds-tick {
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(38,169,216,.18); color: var(--accent, #26a9d8);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; flex-shrink: 0;
}

.ds-cta {
  border: none; background: var(--accent, #26a9d8); color: var(--brand, #10243a);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 8px; padding: 11px 22px; font-size: .84rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s;
}
.ds-cta:hover { background: #1a86b0; }

.ds-img { flex: 1; min-width: 180px; display: flex; align-items: center; justify-content: center; }
.ds-art {
  background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  width: 100%; max-width: 220px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.ds-art-emoji { font-size: 5.5rem; line-height: 1; }

.ds-info-btn {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 1rem; cursor: pointer; padding: 2px 7px; border-radius: 4px;
  transition: .15s;
}
.ds-info-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Plant Explorer has no topbar wrapper — its close button floats directly
   in the panel (see .pe-drawer-close in plant-explorer.css) — so the info
   button needs the same floating treatment, positioned just to its left. */
.pe-drawer-panel > .ds-info-btn {
  position: absolute; top: 11px; right: 56px; z-index: 250;
  width: 32px; height: 32px; border-radius: 6px;
  background: rgba(20,33,50,.75); color: #fff; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.pe-drawer-panel > .ds-info-btn:hover { background: rgba(20,33,50,.9); }

/* Plant Explorer's own stylesheet has a blanket reset —
   #plant-explorer-drawer *{margin:0;padding:0;box-sizing:border-box;} —
   for its map/toolbar layout (plant-explorer.css line 24). That's an ID
   selector, so it wins over our plain class rules above regardless of
   stylesheet load order, and was stripping every margin/padding out of the
   splash (2026-08-05 bug — content rendered flush to the edges, no inset,
   no spacing). Re-declared here scoped to the same ID so specificity wins. */
#plant-explorer-drawer .drawer-splash   { margin: 14px; }
#plant-explorer-drawer .ds-inner        { padding: 32px 44px; }
#plant-explorer-drawer .ds-eyebrow      { margin-bottom: 8px; }
#plant-explorer-drawer .ds-txt h1       { margin-bottom: 10px; }
#plant-explorer-drawer .ds-txt p        { margin-bottom: 16px; }
#plant-explorer-drawer .ds-checklist    { margin-bottom: 18px; }
#plant-explorer-drawer .ds-cta          { padding: 11px 22px; }
#plant-explorer-drawer .ds-art          { padding: 20px; }
#plant-explorer-drawer .ds-info-btn     { padding: 2px 7px; }

@media (max-width: 760px) {
  .ds-inner { padding: 24px 20px; gap: 24px; }
  .ds-txt h1 { font-size: 1.7rem; }
}
