/* munotes Interviews: the hub (/interviews/) and the published piece
   (/interviews/<slug>/).

   Everything is scoped under .mn-iv, so this sheet is inert on every other page
   sharing the resource-hub style profile. Only pages/interviews.php asks for
   it, through $pageStylesheets.

   Band geometry is NOT redefined here. Both views reuse the shell's own
   .page-hero (assets/css/resource-modern-shell.css), which owns the edge bleed,
   the 1280 column that lines the H1 up with the navbar wordmark, the faint grid
   overlay and the responsive cancels. .mn-iv-hero changes only the type scale
   and the guest strip, the same way .mn-blog-hero does on the blog. */

.mn-iv {
  /* Read from the shell first, so a token change there reaches this page too.
     The literals are fallbacks for the impossible case of this sheet loading
     without resource-modern-shell.css. */
  --mniv-ink: var(--ink, #0d1526);
  --mniv-body: var(--ink-2, #2c3e5c);
  --mniv-muted: var(--ink-3, #5a718c);
  --mniv-faint: var(--ink-4, #9aafc5);
  --mniv-blue: var(--blue-600, #1d50ca);
  --mniv-blue-dark: var(--blue-700, #1740a0);
  --mniv-line: var(--border, #dce6f5);
  --mniv-tint: var(--blue-50, #f0f5ff);
  --mniv-serif: var(--f-display, 'Lora', Georgia, Cambria, serif);
  --mniv-mono: var(--f-mono, 'JetBrains Mono', monospace);

  /* Not in the shell scale: the card cover panel and its hairlines, and the
     two bubble grounds the conversation is built from. */
  --mniv-panel: #e8effa;
  --mniv-panel-line: #cfdef5;
  --mniv-panel-ink: #4a6180;
  --mniv-ask: #f2f6fd;
  --mniv-line-soft: #eef3fb;

  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* ---- hero --------------------------------------------------------------- */

/* The eyebrow is a line of type, not the shell's pill-with-a-dot: this hero
   opens with a count and a scope, which is a sentence about the page rather
   than a label stuck to it. Same treatment as the blog. */
.mn-res-content .mn-iv-hero .hero-left {
  padding-block: 2.4rem 2.6rem;
}

.mn-res-content .mn-iv-hero .hero-eyebrow {
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.7rem;
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300, #93b4f8);
}

.mn-res-content .mn-iv-hero .hero-eyebrow::before {
  content: none;
}

.mn-res-content .mn-iv-hero .hero-title {
  font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.mn-res-content .mn-iv-hero .hero-sub {
  max-width: 62ch;
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.62;
}

/* The published piece's hero carries the guest under the title: photo, name,
   what they do. On the hub that row is absent and nothing here applies. */
.mn-iv-guestline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}

.mn-iv-guestline-ava {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.mn-iv-guestline-ava.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mniv-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.mn-iv-guestline-text {
  min-width: 0;
}

.mn-iv-guestline-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.mn-iv-guestline-role {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--blue-200, #c7d9fc);
}

.mn-iv-guestline-meta {
  margin-left: auto;
  font-family: var(--mniv-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300, #93b4f8);
  white-space: nowrap;
}

/* ---- preview banner ----------------------------------------------------- */

/* Only the guest sees this, on the private ?preview= link, so it is the one
   loud thing on the page: it has to be unmistakable that this is not live. */
.mn-iv-preview {
  border: 1px solid #f0d9a8;
  background: #fdf7e9;
  border-radius: 12px;
  padding: 14px 18px;
  color: #7a5b16;
  font-size: 0.92rem;
  line-height: 1.6;
}

.mn-iv-preview strong {
  color: #5f4610;
}

/* ---- list heading ------------------------------------------------------- */

.mn-iv-listhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mniv-line);
  flex-wrap: wrap;
}

.mn-iv-listhead h2 {
  margin: 0;
  font-family: var(--mniv-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mniv-ink);
}

.mn-iv-listhead p {
  margin: 0;
  font-family: var(--mniv-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mniv-muted);
}

/* ---- the card grid ------------------------------------------------------ */

.mn-iv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.mn-iv-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mniv-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(13, 21, 38, 0.05);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.mn-iv-card:hover,
.mn-iv-card:focus-visible {
  border-color: var(--blue-200, #c7d9fc);
  box-shadow: 0 6px 18px rgba(13, 21, 38, 0.09);
  transform: translateY(-2px);
}

.mn-iv-card-top {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mniv-panel);
  border-bottom: 1px solid var(--mniv-line);
  display: flex;
  align-items: flex-end;
  padding: 13px 15px;
  box-sizing: border-box;
  overflow: hidden;
}

.mn-iv-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* A card with no photo says so with initials rather than an empty blue box. */
.mn-iv-card-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mniv-serif);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mniv-panel-ink);
}

.mn-iv-card-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(13, 21, 38, 0.78);
  color: #fff;
  font-family: var(--mniv-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mn-iv-card-mark {
  position: relative;
  z-index: 1;
  margin-left: auto;
  font-family: var(--mniv-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 3px rgba(13, 21, 38, 0.55);
}

.mn-iv-card-top:not(.has-img) .mn-iv-card-mark {
  color: var(--mniv-panel-ink);
  text-shadow: none;
}

.mn-iv-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 17px 17px;
  flex: 1;
}

.mn-iv-card-title {
  margin: 0;
  font-family: var(--mniv-serif);
  font-size: 1.0625rem;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--mniv-ink);
  text-wrap: pretty;
}

.mn-iv-card-excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mniv-muted);
}

.mn-iv-card-who {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--mniv-line-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mn-iv-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mniv-body);
}

.mn-iv-card-role {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mniv-faint);
}

/* ---- the piece: title block --------------------------------------------- */

.mn-iv-lede {
  font-family: var(--mniv-serif);
  font-size: 1.15rem;
  line-height: 1.68;
  color: var(--mniv-body);
  margin: 0;
  max-width: 68ch;
}

.mn-iv-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

/* Desktop puts the portrait beside the opening, and pins it while the reader
   scrolls the first screen of the conversation. Below 900px it moves above the
   text instead, because a column that narrow makes both halves unreadable. */
@media (min-width: 900px) {
  .mn-iv-body.has-portrait {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 28px;
  }
}

.mn-iv-portrait {
  border: 1px solid var(--mniv-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--mniv-panel);
  box-shadow: 0 1px 2px rgba(13, 21, 38, 0.05);
}

.mn-iv-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .mn-iv-portrait {
    position: sticky;
    top: 90px;
  }
}

.mn-iv-about {
  border: 1px solid var(--mniv-line);
  background: var(--mniv-tint);
  border-radius: 12px;
  padding: 15px 17px;
}

.mn-iv-about h2 {
  margin: 0 0 7px;
  font-family: var(--mniv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mniv-muted);
}

.mn-iv-about p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--mniv-body);
}

.mn-iv-about p + p {
  margin-top: 8px;
}

/* ---- the guest's links -------------------------------------------------- */

.mn-iv-links {
  border: 1px solid var(--mniv-line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  text-align: center;
}

.mn-iv-links-h {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mniv-ink);
}

.mn-iv-links-sub {
  margin: 3px 0 12px;
  font-size: 0.82rem;
  color: var(--mniv-muted);
}

.mn-iv-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mn-res-content .mn-iv-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--mniv-line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--mniv-body);
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mn-res-content .mn-iv-link:hover,
.mn-res-content .mn-iv-link:focus-visible {
  border-color: var(--mniv-blue);
  color: var(--mniv-blue);
  background: var(--mniv-tint);
}

.mn-iv-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---- the conversation --------------------------------------------------- */

.mn-iv-convo {
  border: 1px solid var(--mniv-line);
  border-radius: 14px;
  background: #fff;
  padding: 20px 18px 24px;
}

.mn-iv-convo-head {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--mniv-line-soft);
}

.mn-iv-convo-head h2 {
  margin: 0;
  font-family: var(--mniv-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--mniv-ink);
}

.mn-iv-convo-head p {
  margin: 5px 0 0;
  font-family: var(--mniv-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mniv-muted);
}

.mn-iv-turns {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mn-iv-turn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* The guest's answer mirrors the row, so the two voices sit on opposite sides
   and the reader never has to check the name to know who is speaking. */
.mn-iv-turn.is-answer {
  flex-direction: row-reverse;
}

.mn-iv-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--mniv-line);
  background: #fff;
}

.mn-iv-ava-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mniv-blue);
  color: #fff;
  font-family: var(--mniv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mn-iv-ask-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mniv-ink);
  color: #fff;
  font-family: var(--mniv-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mn-iv-bubble {
  flex: 1;
  max-width: 88%;
  border: 1px solid var(--mniv-line);
  border-radius: 16px;
  padding: 13px 16px;
  min-width: 0;
}

.mn-iv-turn.is-question .mn-iv-bubble {
  background: var(--mniv-ask);
  border-top-left-radius: 5px;
}

.mn-iv-turn.is-answer .mn-iv-bubble {
  background: #fff;
  border-top-right-radius: 5px;
  box-shadow: 0 1px 2px rgba(13, 21, 38, 0.04);
}

.mn-iv-speaker {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mniv-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mniv-muted);
}

.mn-iv-turn.is-answer .mn-iv-speaker {
  text-align: right;
}

.mn-iv-qtext {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--mniv-ink);
}

.mn-iv-atext {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--mniv-body);
}

.mn-iv-atext p {
  margin: 0;
}

.mn-iv-atext p + p {
  margin-top: 0.85em;
}

.mn-iv-afigure {
  margin: 12px 0 0;
}

.mn-iv-afigure img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--mniv-line);
}

/* ---- nominate band ------------------------------------------------------ */

.mn-iv-nominate {
  background: var(--mniv-ink);
  color: #fff;
  border-radius: 14px;
  padding: 26px 22px;
  text-align: center;
}

.mn-iv-nominate h2 {
  margin: 0 0 8px;
  font-family: var(--mniv-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.mn-iv-nominate p {
  margin: 0 auto 16px;
  max-width: 60ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #c7d9fc;
}

.mn-res-content .mn-iv-nominate-btn {
  display: inline-block;
  background: #fff;
  color: var(--mniv-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.mn-res-content .mn-iv-nominate-btn:hover,
.mn-res-content .mn-iv-nominate-btn:focus-visible {
  background: var(--blue-100, #dce8ff);
  color: var(--mniv-blue-dark);
}

/* ---- more interviews / empty state -------------------------------------- */

.mn-iv-more h2 {
  margin: 0 0 14px;
  font-family: var(--mniv-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mniv-ink);
}

.mn-iv-empty {
  border: 1px dashed var(--mniv-line);
  border-radius: 12px;
  background: #fff;
  padding: 34px 22px;
  text-align: center;
}

.mn-iv-empty-h {
  margin: 0 0 6px;
  font-family: var(--mniv-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mniv-ink);
}

.mn-iv-empty p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mniv-muted);
}

/* ---- feed row ----------------------------------------------------------- */

.mn-iv-feed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid var(--mniv-line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
}

.mn-iv-feed p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mniv-muted);
}

.mn-iv-feed-h {
  font-family: var(--mniv-serif);
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--mniv-ink) !important;
  margin-bottom: 3px !important;
}

.mn-res-content .mn-iv-feed-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--mniv-line);
  border-radius: 999px;
  font-family: var(--mniv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mniv-body);
  text-decoration: none;
}

.mn-res-content .mn-iv-feed-link:hover,
.mn-res-content .mn-iv-feed-link:focus-visible {
  border-color: var(--mniv-blue);
  color: var(--mniv-blue);
  background: var(--mniv-tint);
}

/* ---- pager -------------------------------------------------------------- */

.mn-iv-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mn-iv-pager-state {
  margin: 0;
  font-family: var(--mniv-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mniv-muted);
}

.mn-iv-pager-links {
  display: flex;
  gap: 8px;
}

.mn-res-content .mn-iv-pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--mniv-line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mniv-body);
  text-decoration: none;
}

.mn-res-content .mn-iv-pg:hover,
.mn-res-content .mn-iv-pg:focus-visible {
  border-color: var(--mniv-blue);
  color: var(--mniv-blue);
}

.mn-res-content .mn-iv-pg-off {
  color: #a8b8cd;
  border-color: #e8eef8;
  cursor: default;
}

.mn-res-content .mn-iv-pg-off:hover {
  border-color: #e8eef8;
  color: #a8b8cd;
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  .mn-iv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .mn-iv-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mn-iv-convo {
    padding: 16px 12px 20px;
  }

  .mn-iv-bubble {
    max-width: 100%;
    padding: 11px 13px;
  }

  .mn-iv-qtext,
  .mn-iv-atext {
    font-size: 0.95rem;
  }

  .mn-iv-guestline-meta {
    margin-left: 0;
    width: 100%;
  }

  .mn-iv-pager-links {
    width: 100%;
  }

  .mn-iv-feed {
    flex-direction: column;
    align-items: stretch;
  }

  .mn-res-content .mn-iv-feed-link {
    justify-content: center;
    height: 44px;
  }

  /* 44px tall and each half of the row, so both are thumb targets rather than
     two small pills in one corner. */
  .mn-res-content .mn-iv-pg {
    flex: 1;
    height: 44px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mn-iv-card {
    transition: none;
  }

  .mn-iv-card:hover {
    transform: none;
  }
}
