/* =====================================================================
   taxonomy.css — styles for the taxonomy archive design, scoped for the
   GeneratePress child theme taxonomy archives.

   NOTE (theme integration): the original bundle's global element reset
   (`*`, `html`, `body`, `img`, `ul`, `a`) has been REMOVED so this file
   does not override GeneratePress's nav/footer/sidebar on archive pages.
   The few base styles the design actually needs are re-applied below,
   scoped to the taxonomy-archive components only.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --navy:        #0f172a;
  --ink:         #0f172a;
  --gray-700:    #334155;
  --gray-500:    #64748b;
  --gray-400:    #94a3b8;
  --gray-200:    #e2e8f0;
  --gray-100:    #f1f5f9;
  --bg-soft:     #f8fafc;
  --white:       #ffffff;

  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg:   0 24px 60px rgba(15, 23, 42, 0.18);
  --container:   1120px;
  --ease:        0.2s ease;
}

/* ---------- Scoped base (replaces the removed global reset) ---------- */
.s3-hero, .s3-sessions, .s3-cta {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.ses-meta, .ses-checklist { margin: 0; padding: 0; list-style: none; }
.btn { text-decoration: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* ---------- Typography ---------- */
.h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
}
.h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.lead { font-size: 1.125rem; margin: 16px 0 0; }
.muted { color: var(--gray-500); }
.small { font-size: 0.85rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue);
  margin: 0 0 10px;
}
.on-dark { color: var(--white); }
.on-dark-muted { color: #cbd5e1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--gray-400); background: var(--gray-100); }

/* ---------- Dark section + pill ---------- */
.section-dark { background: var(--navy); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--blue);
  font-weight: 600; font-size: 0.875rem;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pill__icon { color: var(--blue); }

/* =====================================================================
   ss-1-hero — left-aligned hero
   ===================================================================== */
.s3-hero { background: var(--white); padding: 0px 0 68px; }
.s3-hero .pill { margin-bottom: 24px; }
.s3-hero__title {
  margin: 0 0 20px;
  max-width: 14ch;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.1;
}
.s3-hero__sub { margin: 0 0 30px; max-width: 600px; }
.s3-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =====================================================================
   ss-2-event-card — featured session card
   ===================================================================== */
.s3-sessions { background: transparent; }
/* Remove the .section vertical padding for this band (compound selector
   so it also wins inside the responsive .section overrides). */
.section.s3-sessions { padding: 0; }

.ses-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Each card carries the top gap; the first is zeroed. (A JSON-LD <script>
   sits between cards in the DOM, so the `+` adjacent-sibling selector
   can't be used here.) */
.ses-card { margin-top: 48px; }
.s3-sessions .ses-card:first-of-type { margin-top: 0; }

/* Left panel */
.ses-card__aside { padding: 30px 28px; border-right: 1px solid var(--gray-200); }
.ses-speaker__photo {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.02em;
  margin-bottom: 16px;
}
/* When speaker_image (ACF) is set, the tile is an <img> — crop to fill. */
img.ses-speaker__photo { object-fit: cover; display: block; }
.ses-speaker__name { margin: 0; font-size: 1.05rem; font-weight: 700; }
.ses-speaker__role { margin: 2px 0 0; font-size: 0.9rem; }
.ses-meta { margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.ses-meta li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--gray-700); }
.ses-meta svg { color: var(--blue); flex-shrink: 0; }

/* Right panel */
.ses-card__main { padding: 30px 34px; }
.ses-card__tagrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.s3-tag {
  display: inline-block;
  background: #eaf1ff; color: var(--blue);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.ses-card__title { margin: 0 0 14px; font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.ses-card__desc { margin: 0 0 26px; max-width: 70ch; line-height: 1.7; }

.ses-card__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 24px; }
/* muted gray eyebrows (vs the brand-blue default) */
.ses-eyebrow { color: var(--gray-400); margin-bottom: 12px; }

.ses-checklist { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ses-checklist li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.92rem; color: var(--gray-700);
}
.ses-checklist svg { color: #16a34a; flex-shrink: 0; margin-top: 2px; }

.ses-audience {
  display: flex; gap: 10px; margin: 0;
  font-size: 0.92rem; color: var(--gray-700); line-height: 1.55;
}
.ses-audience svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }

.ses-divider { border: none; border-top: 1px solid var(--gray-200); margin: 0 0 22px; }
.ses-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   ss-cta — dark band, text left / button right
   ===================================================================== */
.s3-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; z-index: 1; }
.s3-cta .h2 { margin: 0; }
.s3-cta__sub { margin: 8px 0 0; }
.s3-cta .btn { flex-shrink: 0; }

/* Full-bleed background: the navy band spans the full viewport width on all
   devices, while the text/button stay aligned with the rest of the page
   (the section stays in normal flow; a ::before paints the navy edge-to-edge). */
.s3-cta { position: relative; margin-top: 48px; }
.s3-cta::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--navy);
  z-index: 0;
}

/* Focus visibility */
.s3-hero :focus-visible,
.s3-sessions :focus-visible,
.s3-cta :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 860px) {
  .ses-card { grid-template-columns: 1fr; }
  .ses-card__aside { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .ses-card__cols { grid-template-columns: 1fr; gap: 22px; }
  .s3-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .s3-hero { padding: 48px 0 44px; }
  .ses-card__aside { padding: 24px 22px; }
  .ses-card__main { padding: 24px 22px; }

  /* Full-width, easy-to-tap CTAs */
  .s3-hero__actions .btn,
  .ses-card__actions .btn,
  .s3-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .s3-hero, .s3-sessions, .s3-cta,
  .s3-hero *, .s3-sessions *, .s3-cta * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Theme-hardening overrides
   The .ses-card title is a link, so GeneratePress's global
   `a { color: var(--accent) }` (a blue) would override the reference's
   dark "plain text" heading. Force the intended look back.
   ===================================================================== */
.ses-card__title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--ease);
}
.ses-card__title a:hover,
.ses-card__title a:focus {
  color: var(--blue);
  text-decoration: none;
}

/* =====================================================================
   THE REST — compact, muted list rows for non-promoted webinars
   (ported from landers-v2 styles3.css "ADDED: 5 · THE REST")
   Renders the $ic_regular webinar events as clickable list rows.
   ===================================================================== */
.section-rest { background: var(--white); }
.eyebrow--muted { color: var(--gray-400); }

.rest-list {
  margin-top: 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

/* Rows are <a> links to the single event page — reset link styling */
.rest-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  text-decoration: none; color: inherit;
  transition: background var(--ease);
}
.rest-row:last-child { border-bottom: none; }
.rest-row:hover,
.rest-row:focus-visible { background: #f8fafc; outline: none; text-decoration: none; }
.rest-row:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }

.rest-row__thumb {
  width: 54px; height: 38px; flex-shrink: 0;
  border-radius: 7px;
  /* muted vs the vivid recommended thumbnails */
  filter: grayscale(0.55) brightness(1.04);
  opacity: 0.82;
}
.rest-row__main { flex: 1; min-width: 0; }
.rest-row__title {
  margin: 0 0 2px;
  font-size: 0.94rem; font-weight: 600; color: var(--gray-700);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rest-row__meta {
  margin: 0;
  font-size: 0.8rem; color: var(--gray-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rest-row__arrow { color: var(--gray-400); flex-shrink: 0; transition: transform var(--ease), color var(--ease); }
.rest-row:hover .rest-row__arrow { color: var(--blue); transform: translateX(3px); }

/* Small inline status pill for rows (muted) */
.badge-inline {
  flex-shrink: 0;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 3px 9px; border-radius: 999px;
}
.badge-inline.is-upcoming { background: #eef2f8; color: var(--gray-500); }
.badge-inline.is-live {
  background: #fee2e2; color: #b91c1c;
  padding-left: 18px; position: relative;
}
.badge-inline.is-live::before {
  content: ""; position: absolute; left: 8px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  background: #dc2626; border-radius: 50%;
}
.badge-inline.is-ondemand { background: #f1f5f9; color: var(--gray-500); }

/* Rotating gradient thumbnail placeholders (no real images yet).
   Referenced as thumb-grad-0..5 in the row markup, cycled per row. */
.thumb-grad-0 { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.thumb-grad-1 { background: linear-gradient(135deg, #5b21b6, #6366f1); }
.thumb-grad-2 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.thumb-grad-3 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.thumb-grad-4 { background: linear-gradient(135deg, #115e59, #4ade80); }
.thumb-grad-5 { background: linear-gradient(135deg, #1e40af, #38bdf8); }

@media (max-width: 640px) {
  .rest-row__meta { white-space: normal; }
}
/* ===== END THE REST ===== */
