/* HE wireframe.css — Tailwind + semantic tokens
   ────────────────────────────────────────────────────────────────────
   Convention: ~/Projects/www-projects/sprpwr/docs/sprpwr-tailwind-conventions.md
   Canonical full library: ~/Projects/www-projects/sprpwr/design-system/styles/wireframe.css

   This is the WIRE-PHASE skin (graybox baseline). At prototype phase,
   swap to the full canonical wireframe.css + add a kit-healthy-enabler
   block for HE's actual brand tokens.

   Tailwind utilities (via CDN, configured inline in each wire HTML) handle
   ALL structure. Tokens below + primitives handle the skin. Same DOM,
   swap stylesheet/kit → reskinned.
   ──────────────────────────────────────────────────────────────────── */

/* ─── Tokens (shadcn naming, graybox baseline) ────────────────── */
:root {
  --background: #fafafa;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --popover: #ffffff;
  --popover-foreground: #1a1a1a;
  --primary: #1a1a1a;
  --primary-foreground: #ffffff;
  --secondary: #71717a;
  --secondary-foreground: #ffffff;
  --muted: #ececec;
  --muted-foreground: #555555;
  --accent: #f4f4f5;
  --accent-foreground: #1a1a1a;
  --destructive: #b0271e;
  --destructive-foreground: #ffffff;
  --border: rgba(10, 10, 11, 0.12);
  --input: rgba(10, 10, 11, 0.20);
  --ring: #1a1a1a;
  --radius: 2px;
  --radius-sm: 1px;
  --radius-lg: 6px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─── Base ─────────────────────────────────────────────────────── */
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.55;
  margin: 0;
}
h1, h2, h3, h4, p { margin: 0; }

/* ─── Primitives ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  transition: opacity 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { opacity: 0.88; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ─── Mobile menu · fullpage overtake (state pattern hard in pure Tailwind) ─── */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--background);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  display: flex; flex-direction: column;
}
.mobile-backdrop {
  /* unused in fullpage style — kept for backwards-compat with existing markup */
  display: none;
}
body[data-menu-open="true"] .mobile-drawer {
  opacity: 1; pointer-events: auto;
}
body[data-menu-open="true"] { overflow: hidden; }
/* fullpage nav typography — bigger than the wire-default for prominence */
.mobile-drawer nav ul > li > a { font-size: 1.25rem; }
.mobile-drawer nav .pl-4 a { font-size: 1rem; }

/* ─── Nav dropdown (state pattern hard in pure Tailwind) ──────── */
.has-submenu { position: relative; }
.has-submenu > a::after { content: " \25BE"; font-size: 10px; color: var(--muted-foreground); margin-left: 2px; }
.submenu {
  position: absolute; top: 100%; left: -16px;
  background: var(--popover); border: 1px solid var(--border);
  padding: 8px 0; min-width: 260px;
  list-style: none; margin: 0;
  display: none; flex-direction: column;
  z-index: 50; box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu { display: flex; }
.submenu a {
  display: block; padding: 10px 18px; font-size: 13px;
  color: var(--muted-foreground); text-decoration: none;
}
.submenu a:hover { background: var(--muted); color: var(--foreground); }

/* ─── Wire-only utilities (stripped at prototype phase) ───────── */
.section-label {
  /* hidden by default for client-facing wire view (2026-05-19) — flip to inline-block to bring back as wire-internal IA markers */
  display: none;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted-foreground); text-transform: uppercase; margin-bottom: 24px;
}

.breadcrumb { font-size: 13px; color: var(--muted-foreground); margin-bottom: 20px; }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--foreground); }

.img-slot {
  background: var(--muted); border: 1px dashed rgba(0,0,0,0.18);
  color: transparent; /* label hidden by default for clean review — flip to var(--muted-foreground) to bring back */
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 13px;
}

.scope-list { list-style: none; padding: 0; margin: 0; }
.scope-list li {
  position: relative; padding-left: 20px; margin-bottom: 14px;
  color: var(--muted-foreground); line-height: 1.55;
}
.scope-list li::before { content: "—"; position: absolute; left: 0; color: var(--muted-foreground); }
.scope-list li strong { color: var(--foreground); }

.intake-form label { font-size: 13px; color: var(--muted-foreground); display: flex; flex-direction: column; gap: 4px; }
.intake-form input,
.intake-form textarea,
.intake-form select {
  font-family: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--input); background: var(--card);
  border-radius: var(--radius); width: 100%;
  color: var(--foreground);
}
.intake-form textarea { resize: vertical; }
.optional { font-style: italic; color: var(--muted-foreground); font-weight: normal; }

/* ─── Annotations (wire-only, hidden via .notes-hidden) ──────────
   Two flavors:
   .note-internal — DW/Co. team task (copy pass, design decision, build)
   .note-client   — owed from the client (real story, bio, photo, rights, contact info)
   .todo          — legacy/uncategorized (deprecate; convert to note-internal or note-client)
   ────────────────────────────────────────────────────────────── */
.todo,
.note-internal,
.note-client {
  padding: 2px 8px 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  font-weight: 500;
  line-height: 1.5;
}
.todo {
  background: #fff8c4; color: #6b5a00;
}
.note-internal {
  background: #dbeafe; color: #1e3a8a;
}
.note-internal::before {
  content: "Internal · ";
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85em;
  opacity: 0.85;
}
.note-client {
  background: #fde4cc; color: #9a3412;
}
.note-client::before {
  content: "Client · ";
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85em;
  opacity: 0.85;
}
.src {
  /* hidden by default for clean client review (2026-05-19) — flip to display: block to bring back as wire-internal source notes */
  display: none;
  font-size: 11px; color: var(--muted-foreground);
  margin-top: 16px; font-style: italic;
}

/* annotation pills (.note-internal / .note-client) hidden by default for clean review */
.note-internal,
.note-client {
  display: none;
}

.notes-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 52px; height: 52px;
  background: #ec4899; color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}
.notes-toggle:hover { background: #db2777; transform: translateY(-1px); }
.notes-toggle .icon-hidden { display: none; }
body.notes-hidden .notes-toggle .icon-visible { display: none; }
body.notes-hidden .notes-toggle .icon-hidden { display: block; }
body.notes-hidden .src,
body.notes-hidden .todo,
body.notes-hidden .note-internal,
body.notes-hidden .note-client { display: none; }

/* ─── Sitemap diagram (wire-only) ─────────────────────────────── */
.sitemap-card {
  border: 2px solid var(--foreground); background: var(--card);
  padding: 16px 20px; border-radius: var(--radius);
}
.sitemap-card--master { background: var(--foreground); color: var(--background); }
.sitemap-type {
  display: block; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.7; margin-bottom: 6px;
}
.sitemap-card h3 { font-size: 18px; margin: 0 0 4px; }
.sitemap-card .path { font-family: var(--font-mono); font-size: 12px; opacity: 0.7; }
.sitemap-children { list-style: none; padding-left: 20px; border-left: 2px solid var(--border); margin: 16px 0 0 24px; }
.sitemap-children li { position: relative; padding: 10px 0 10px 16px; }
.sitemap-children li::before {
  content: ""; position: absolute; left: -2px; top: 22px;
  width: 14px; border-top: 2px solid var(--border);
}
.sitemap-children a { text-decoration: none; color: var(--muted-foreground); display: flex; flex-direction: column; gap: 2px; }
.sitemap-children strong { color: var(--foreground); font-weight: 600; font-size: 14px; }
.sitemap-children .path { font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.sitemap-children a:hover strong { text-decoration: underline; }
.sitemap-legend .swatch {
  display: inline-block; width: 14px; height: 14px;
  vertical-align: middle; margin-right: 8px; border: 2px solid var(--foreground);
}
.sitemap-legend .swatch--master { background: var(--foreground); }
