/* ==========================================================================
   Agent Water Cooler — shared styles
   "Same drama. New silicon." — presented by D8TAOPS
   ========================================================================== */

:root {
  --navy: #0D1B2A;
  --navy-soft: #16283d;
  --blue: #1E3A8A;
  --light-blue: #2563EB;
  --yellow: #FFD43B;
  --green: #22C55E;
  --purple: #8B5CF6;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --text: #1A202C;
  --text-soft: #5A6472;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 8px 28px rgba(13, 27, 42, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--light-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }
/* injected agent portraits always fill whatever box wraps them (data-robot slot) */
img.robot-figure { width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { box-shadow: 0 4px 14px rgba(255, 212, 59, 0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--bg); color: var(--navy); border: 1px solid var(--border); }

/* ---------- Top nav ---------- */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}
.brand .brand-logo { width: 34px; height: auto; flex-shrink: 0; }
.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand .brand-title {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand .brand-title span { color: var(--light-blue); }
.brand .brand-tag {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #9fb0c3;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: #c3cedb;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--yellow);
}
.nav-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: var(--navy-soft);
    padding: 16px 24px;
    gap: 14px;
  }
  nav.main-nav.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero banner ----------
   The banner artwork is a wide masthead with open wall on the left, so the
   headline sits over that space and the cast stays visible on the right. */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero .hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(13,27,42,0.97) 0%,
      rgba(13,27,42,0.95) 32%,
      rgba(13,27,42,0.72) 52%,
      rgba(13,27,42,0.30) 70%,
      rgba(13,27,42,0.16) 100%);
}
.hero-copy {
  position: relative;
  max-width: var(--max);
  padding: 66px 24px 60px;
}
.hero-copy > * { max-width: 620px; }
.hero h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 900;
}
.hero h1 .hl { color: var(--light-blue); }
.hero p.lede {
  color: #cbd5e1;
  font-size: 16px;
  max-width: 480px;
  margin: 0 0 22px;
}
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero h1 { text-shadow: 0 2px 14px rgba(0,0,0,0.35); }

/* Narrower screens: the cast can't share space with the copy, so darken
   the art right down and let it read as texture behind the headline. */
@media (max-width: 900px) {
  .hero .hero-art { object-position: 72% center; }
  .hero::before {
    background: linear-gradient(100deg,
      rgba(13,27,42,0.97) 0%,
      rgba(13,27,42,0.94) 55%,
      rgba(13,27,42,0.86) 100%);
  }
  .hero-copy { padding: 46px 24px 42px; }
}

/* ---------- Section shell ---------- */
section { padding: 44px 0; }
.section-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 4px;
}
.section-sub {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Comic panel (real illustrated art, cropped from the brand style guide) ---------- */
.comic-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a2634;
  border: 1px solid var(--border);
  display: block;
}
/* contain, not cover: a comic panel should never be cropped, whatever
   aspect ratio the uploaded artwork happens to be. */
.comic-panel .ep-comic-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  aspect-ratio: 16 / 9;
  background: #12202f;
}
.comic-panel .ep-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.comic-panel.compact .ep-comic-img { aspect-ratio: 16 / 9; }
.comic-panel.hero-panel .ep-comic-img { aspect-ratio: 16 / 9; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card, .card.linkable { display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .card-body { padding: 16px 18px 18px; }
.card h3 { margin: 4px 0 6px; font-size: 16px; color: var(--navy); font-weight: 800; }
.card .card-meta { font-size: 11.5px; color: var(--text-soft); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.card p.card-desc { font-size: 13.5px; color: var(--text-soft); margin: 6px 0 10px; }
.card .cast-row { display: flex; gap: 4px; margin-top: 8px; }
.card .cast-row .mini-bot .robot-figure { width: 24px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.grid-2 { display: grid; gap: 28px; grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Pills / filters ---------- */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 22px; }
.pill {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
}
.pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill:hover { border-color: var(--navy); }

.search-row { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.search-input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  width: 220px;
  background: #fff;
}
.search-input:focus { outline: 2px solid var(--light-blue); }

/* ---------- Quote strip ---------- */
.quote-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .quote-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .quote-strip { grid-template-columns: 1fr; } }
.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.quote-card .robot-figure { width: 52px; margin: 0 auto 10px; }
.quote-card p { font-weight: 700; font-size: 13px; color: var(--navy); margin: 0 0 6px; font-style: italic; }
.quote-card span { font-size: 11px; color: var(--text-soft); font-weight: 800; letter-spacing: 0.04em; }

/* ---------- Agent roster ---------- */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.agent-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.agent-card .robot-figure { width: 70px; margin: 0 auto 10px; }
.agent-card h3 { margin: 0; font-size: 14px; letter-spacing: 0.02em; }
.agent-card .role { font-size: 11px; color: var(--light-blue); font-weight: 800; text-transform: uppercase; margin: 3px 0 8px; }
.agent-card .bio { font-size: 12.5px; color: var(--text-soft); }
.agent-card .quote { font-size: 11.5px; font-style: italic; color: var(--navy); margin-top: 8px; }

/* ---------- Episode detail ---------- */
.ep-header { margin-bottom: 18px; }
.ep-header .back-link { font-size: 12.5px; font-weight: 800; color: var(--text-soft); }
.ep-header h1 { font-size: 26px; margin: 10px 0 4px; color: var(--navy); }
.ep-header .ep-num { color: var(--light-blue); font-weight: 900; font-size: 13px; letter-spacing: 0.04em; }
.lesson-box {
  background: #eef4ff;
  border: 1px solid #c8dcfb;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}
.lesson-box h4 { margin: 0 0 8px; font-size: 12.5px; letter-spacing: 0.05em; color: var(--blue); text-transform: uppercase; }
.lesson-box p { margin: 0; font-size: 14px; color: var(--text); }
.lesson-box .takeaway { font-weight: 800; color: var(--navy); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  text-transform: uppercase;
}
.share-row { display: flex; gap: 10px; margin-top: 16px; }
.share-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--navy);
  font-size: 13px;
}
.ep-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.ep-nav a { font-weight: 800; font-size: 13px; }
aside.ep-side h4 { font-size: 11.5px; letter-spacing: 0.05em; color: var(--text-soft); text-transform: uppercase; margin: 0 0 10px; }
.ep-side .featured-cast { display: flex; gap: 8px; margin-bottom: 22px; }
.ep-side .featured-cast .robot-figure { width: 40px; }

/* ---------- Doc pages (incident reports / hr memo / performance reviews) ---------- */
.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--light-blue);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.doc-card.severity-high { border-left-color: #ef4444; }
.doc-card.severity-med { border-left-color: var(--yellow); }
.doc-card.severity-low { border-left-color: var(--green); }
.doc-card .doc-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.doc-card .doc-id { font-size: 11px; font-weight: 800; color: var(--text-soft); letter-spacing: 0.04em; }
.doc-card h3 { margin: 2px 0 8px; color: var(--navy); font-size: 16px; }
.doc-card p { font-size: 13.5px; color: var(--text); margin: 0 0 6px; }
.doc-card .doc-meta { font-size: 11.5px; color: var(--text-soft); font-weight: 700; }
.status-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-soft);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter h3 { margin: 0 0 6px; font-size: 20px; }
.newsletter p { margin: 0; color: #b9c6d6; font-size: 13.5px; max-width: 420px; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type=email] {
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  min-width: 220px;
  font-size: 13.5px;
}
.newsletter .thanks { color: var(--yellow); font-weight: 800; font-size: 13.5px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #b9c6d6;
  padding: 40px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer .brand-title { color: #fff; font-weight: 900; font-size: 16px; }
footer .brand-title span { color: var(--light-blue); }
footer p { font-size: 13px; color: #93a3b5; }
footer h5 { color: #fff; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer a { color: #b9c6d6; font-size: 13px; }
footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #7f90a3;
}

/* ---------- Page hero (simple) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: 28px; }
.page-hero p { margin: 0; color: #b9c6d6; max-width: 640px; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 40px 0; color: var(--text-soft); }

.draft-banner {
  background: #fff8e1;
  border: 1px solid var(--yellow);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #7a5b00;
}

.card.is-draft { opacity: 0.72; }

.upcoming-card {
  border-left: 4px solid var(--yellow);
  box-shadow: none;
}
.upcoming-card .card-body { padding: 18px 20px; }
.upcoming-card .tag-row { margin-top: 12px; }
