/* The Real Talk: styles.
   Search for the "----------" headings to jump between sections. */

:root {
  --avatar-photo-bg: #ECE6DC;
  --paper: #F3F6F5;
  --paper-raised: #FFFFFF;
  --ink: #103C3A;
  --ink-soft: #3E5C58;
  --coral: #E8543E;
  --coral-dark: #C7402C;
  --gold: #E3A72B;
  --line: #DCE5E2;
  --radius: 18px;

  /* Chat bubbles keep a light, readable background with dark text in
     both themes - only the surrounding chrome (page bg, headers, panels)
     switches for dark mode. */
  --bubble-ink: #103C3A;
  --bubble-plain-bg: #FFFFFF;

  --link-internal: #C9660A;
  --link-internal-hover: #A8530A;
  --link-external: #2568A8;
  --link-external-hover: #1B4E80;

  --c-dee: #103C3A; --c-dee-bubble: #E7F3F1; --c-dee-border: #C9E1DC;
  --c-mo: #E9A23F; --c-mo-bubble: #FAF3E8; --c-mo-border: #F3DEC1;
  --c-priya: #B9762F; --c-priya-bubble: #FBF1E3; --c-priya-border: #EAD4B3;
  --c-theo: #7D5B95; --c-theo-bubble: #F1EEF4; --c-theo-border: #DBD2E2;
  --c-sam: #953E98; --c-sam-bubble: #F6ECF6; --c-sam-border: #E6CDE7;
  --c-riley: #9939AC; --c-riley-bubble: #F5EBF7; --c-riley-border: #E5CAEA;
  --c-jordan: #B58E4A; --c-jordan-bubble: #F6F2EC; --c-jordan-border: #E7DECD;
  --c-chris: #8B664B; --c-chris-bubble: #F5F0ED; --c-chris-border: #E3D8D1;
  --c-ava: #8A733D; --c-ava-bubble: #F6F3EC; --c-ava-border: #E6DFCE;
  --c-nadia: #9D8434; --c-nadia-bubble: #F7F4EB; --c-nadia-border: #EAE2CA;
  --c-zora: #84428A; --c-zora-bubble: #F4EDF5; --c-zora-border: #E3CFE5;
  --c-imani: #993399; --c-imani-bubble: #F5EBF5; --c-imani-border: #EBD6EB;
  --c-kai: #C68439; --c-kai-bubble: #F8F1EA; --c-kai-border: #EBDBC9;
  --c-kellen: #673181; --c-kellen-bubble: #F3ECF6; --c-kellen-border: #DFCCE8;
  --c-malik: #78573A; --c-malik-bubble: #F5F1ED; --c-malik-border: #E5D9CF;
  --c-leah: #8E7329; --c-leah-bubble: #F8F4EA; --c-leah-border: #EBE2C9;
  --c-grace: #7B5A8C; --c-grace-bubble: #F2EEF4; --c-grace-border: #DCD3E1;
  --c-harper: #C4901F; --c-harper-bubble: #FBF2DE; --c-harper-border: #EAD6A0;
  --c-noah: #B8812E; --c-noah-bubble: #F8F2EA; --c-noah-border: #EDDEC7;
  --c-maya: #C4901F; --c-maya-bubble: #FBF2DE; --c-maya-border: #EAD6A0;
  --c-nia: #5F574E; --c-nia-bubble: #F2F1F0; --c-nia-border: #DDDAD7;
  --c-devon: #A75DC0; --c-devon-bubble: #F4ECF6; --c-devon-border: #E1CCE8;
  --c-simone: #5E2F8E; --c-simone-bubble: #F1EBF7; --c-simone-border: #DACAEA;
  --c-reese: #A67F30; --c-reese-bubble: #F8F3EA; --c-reese-border: #EBE0C9;
  --c-camille: #C653BC; --c-camille-bubble: #F7EBF6; --c-camille-border: #EACAE7;
  --c-jamal: #683088; --c-jamal-bubble: #F0E2F8; --c-jamal-border: #DBC4E9;
  --c-elijah: #6A583E; --c-elijah-bubble: #F4F1EE; --c-elijah-border: #E2DBD2;
  --c-sabrina: #9C6B2E; --c-sabrina-bubble: #F7EFE2; --c-sabrina-border: #E9D6B4;
  --c-owen: #943888; --c-owen-bubble: #F6ECF5; --c-owen-border: #E8CCE4;
  --c-terrence: #8F3274; --c-terrence-bubble: #F7EBF3; --c-terrence-border: #E9CBE0;
  --c-darius: #4E6E8E; --c-darius-bubble: #EDF1F5; --c-darius-border: #D3DEE8;
  --c-wendell: #4E6E8E; --c-wendell-bubble: #EDF1F5; --c-wendell-border: #D3DEE8;
  --c-marcus: #3F6E52; --c-marcus-bubble: #E9F2EC; --c-marcus-border: #C9DED0;
  --c-yvonne: #A5445C; --c-yvonne-bubble: #F8ECEF; --c-yvonne-border: #EAD0D6;
}

/* ---------- DARK MODE ---------- */
/* Only the chrome (page background, panels, headers, dividers, plain
   text) switches here. Per-person bubble colors, avatar colors/photos,
   and --bubble-* stay put
   on purpose, so message bubbles keep reading like light chat bubbles
   against a dark backdrop instead of being redyed. */
html[data-theme="dark"] {
  --paper: #12181A;
  --paper-raised: #1B2422;
  --ink: #E9EFEC;
  --ink-soft: #94A6A2;
  --line: #2A3735;

  --link-internal: #E2A25E;
  --link-internal-hover: #EDBC85;
  --link-external: #6FB1E8;
  --link-external-hover: #98C8EF;
}
html[data-theme="dark"] body { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Karla', sans-serif; line-height: 1.5; transition: background 0.2s ease, color 0.2s ease; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; color: var(--ink); margin: 0; }
a { color: var(--coral-dark); }

/* ---------- HERO ---------- */

.hero { max-width: 960px; margin: 0 auto; padding: 64px 24px 40px; }
.hero-eyebrow { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 14px; max-width: 46ch; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; max-width: 16ch; }
.hero p.sub { margin-top: 20px; font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }

.checkin-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--coral-dark); color: #fff; text-decoration: none; text-transform: none; letter-spacing: normal;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 0.9rem; line-height: 1.2;
  box-shadow: 0 4px 12px rgba(199,64,44,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.checkin-btn:hover { background: #A93624; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(199,64,44,0.28); }
.checkin-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.checkin-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .checkin-btn { transition: none; } .checkin-btn:hover { transform: none; } }
.crew-label .ab-visited-badge { margin-right: 8px; }
@media (max-width: 420px) {
  .checkin-btn { padding: 6px 12px; font-size: 0.82rem; gap: 6px; }
  .checkin-btn svg { width: 14px; height: 14px; }
}

/* ---------- CHECK-IN MODAL ---------- */
html.modal-open { overflow: hidden; }
dialog.checkin-dialog {
  padding: 0; margin: auto; border: 1px solid var(--line); border-radius: 20px;
  background: var(--paper-raised); color: var(--ink); font-family: 'Karla', sans-serif;
  width: min(760px, calc(100vw - 32px)); height: min(90vh, 940px); max-width: none; max-height: none;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
dialog.checkin-dialog[open] { display: flex; flex-direction: column; animation: checkinIn 0.22s ease both; }
dialog.checkin-dialog::backdrop { background: rgba(10,20,20,0.6); backdrop-filter: blur(3px); }
@keyframes checkinIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.checkin-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 22px; border-bottom: 1px solid var(--line); background: var(--paper-raised); }
.checkin-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0; }
.checkin-close {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.checkin-close:hover { background: var(--paper-raised); border-color: var(--coral); color: var(--coral-dark); }
.checkin-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.checkin-close svg { width: 18px; height: 18px; }
.checkin-frame { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: transparent; display: block; }
@media (max-width: 600px) {
  dialog.checkin-dialog { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { dialog.checkin-dialog[open] { animation: none; } }

.crew-label { margin-top: 44px; max-width: 640px; display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.ab-visited-badge {
  display: inline-block; margin-left: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: normal;
  text-transform: none; color: var(--ink-soft); background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; vertical-align: middle;
}
.ab-visited-badge:empty { display: none; }
.ab-toast-container {
  position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 999;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: 100%; padding: 0 16px;
}
.ab-toast {
  pointer-events: auto; max-width: 380px; background: var(--ink); color: var(--paper);
  font-size: 0.85rem; font-weight: 600; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18); opacity: 0; transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease; text-align: center;
}
.ab-toast.show { opacity: 1; transform: translateY(0); }

/* ---------- ADDRESS BOOK (the regulars) ---------- */

.address-book {
  margin-top: 14px; max-width: 640px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16,60,58,0.07); overflow: hidden;
}
.ab-search { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.ab-search-input {
  flex: 1; min-width: 0; box-sizing: border-box; font-family: 'Karla', sans-serif; font-size: 0.92rem;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ab-search-input:focus { border-color: var(--c-dee-border); box-shadow: 0 0 0 3px rgba(16,60,58,0.1); }
.ab-search-input::placeholder { color: var(--ink-soft); }

/* ---------- NOTIFICATIONS / INBOX ---------- */

.ab-notif-btn {
  position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; padding: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.ab-notif-btn:hover { background: var(--paper-raised); border-color: var(--c-dee-border); }

/* Bell shakes to draw the eye whenever there's an unread notification -
   a quick ring every couple seconds, then a pause, rather than a
   constant wiggle that would be annoying to look at. */
.ab-bell-icon { display: inline-block; transform-origin: 50% 0%; }
.ab-bell-icon .theme-icon { display: block; }
.ab-notif-btn.has-unread .ab-bell-icon { animation: bellShake 4.5s ease-in-out infinite; }
@keyframes bellShake {
  0%, 78%, 100% { transform: rotate(0deg); }
  81% { transform: rotate(-9deg); }
  84% { transform: rotate(8deg); }
  87% { transform: rotate(-6deg); }
  90% { transform: rotate(5deg); }
  93% { transform: rotate(-3deg); }
  96% { transform: rotate(2deg); }
  99% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-notif-btn.has-unread .ab-bell-icon { animation: none; }
}
.theme-icon { width: 18px; height: 18px; }
.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
.ab-reset-btn {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; padding: 0;
  cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.ab-reset-btn:hover { background: var(--paper-raised); border-color: var(--coral); color: var(--coral-dark); }
.ab-reset-btn svg { width: 17px; height: 17px; }

/* Small custom hover tooltip, used instead of the plain browser title
   bubble so it matches the rest of the UI - a soft dark pill above
   whichever icon button is being hovered or focused. */
.ab-tooltip { position: relative; }
.ab-tooltip::after {
  content: attr(data-tooltip); position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px); background: var(--ink); color: var(--paper-raised);
  font-size: 0.72rem; font-weight: 600; white-space: nowrap; padding: 5px 9px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; z-index: 20;
}
.ab-tooltip::before {
  content: ""; position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease; z-index: 20;
}
.ab-tooltip:hover::after, .ab-tooltip:focus-visible::after,
.ab-tooltip:hover::before, .ab-tooltip:focus-visible::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.ab-notif-badge {
  display: none; position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #1B6E5C; color: white; font-size: 0.65rem; font-weight: 700;
  align-items: center; justify-content: center; line-height: 1; border: 2px solid var(--paper-raised);
}
/* A quick, one-off pop on the bell + badge the moment a new
   notification lands (including an idle ping), separate from the
   slower repeating bellShake above that just keeps drawing the eye
   while something's unread. */
.ab-notif-btn.bump { animation: notifBtnBump 0.5s ease; }
.ab-notif-badge.bump { animation: notifBadgeBump 0.5s ease; }
@keyframes notifBtnBump {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  55% { transform: scale(0.94); }
  100% { transform: scale(1); }
}
@keyframes notifBadgeBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.5); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-notif-btn.bump, .ab-notif-badge.bump { animation: none; }
}
.ab-inbox { display: none; border-bottom: 1px solid var(--line); background: var(--paper-raised); }
.ab-inbox-label { padding: 10px 18px 2px; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.05em; text-transform: uppercase; }
.ab-inbox-list .ab-row:last-child { border-bottom: none; }
.ab-inbox-empty { display: none; padding: 10px 18px 14px; font-size: 0.85rem; color: var(--ink-soft); }
.ab-row .unread-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #1B6E5C; flex-shrink: 0; margin-left: auto;
}

/* follow-up banner shown at the top of a chat, above the original conversation */
.followup-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #1B6E5C; background: #E1F3EC; border: 1px solid #BFE3D3;
  border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
}
/* Hidden until the chat has been visited once before - see the
   notifications script. Wrapping it lets the whole banner + its
   "earlier" divider disappear together when not yet ready. */
.followup-block { display: none; flex-direction: column; gap: 4px; }
.thread.followup-ready .followup-block { display: flex; }

.ab-recents { border-bottom: 1px solid var(--line); background: var(--paper); }
.ab-recents-list .ab-row .avatar { filter: grayscale(1); opacity: 0.8; }
.ab-recents-list .ab-row .nm { color: var(--ink-soft); }
.ab-recents-list .ab-row:hover .avatar { opacity: 1; }
.ab-recents-list .ab-row:hover .nm { color: var(--ink); }
.ab-recents-label {
  padding: 10px 18px 2px; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.ab-recents-list {
  display: grid; grid-template-columns: 1fr 1fr;
}
.ab-recents-list .ab-row {
  padding: 8px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.ab-recents-list .ab-row .avatar { width: 32px; height: 32px; font-size: 0.8rem; }
.ab-recents-list .ab-row:nth-child(2n) { border-right: none; }
.ab-recents-list .ab-row:last-child { border-right: none; }
.ab-recents-list.count-1 .ab-row,
.ab-recents-list.count-2 .ab-row { border-bottom: none; }
.ab-recents-list.count-3 .ab-row:last-child { border-bottom: none; }
.ab-recents-list.count-4 .ab-row:nth-child(3),
.ab-recents-list.count-4 .ab-row:nth-child(4) { border-bottom: none; }
.ab-recents-empty { display: block; padding: 10px 18px 14px; font-size: 0.85rem; color: var(--ink-soft); }
.ab-panel { position: relative; display: flex; }
.ab-list { flex: 1; min-width: 0; max-height: 320px; overflow-y: auto; padding: 4px 0 8px; scroll-behavior: smooth; }

.ab-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 18px;
  cursor: pointer; text-decoration: none; border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}
.ab-group:last-child .ab-row:last-child { border-bottom: none; }
.ab-row:hover { background: var(--paper); }

.ab-row .avatar { width: 30px; height: 30px; font-size: 0.78rem; }
.ab-row .who { line-height: 1.2; min-width: 0; }
.ab-row .who .nm { font-weight: 700; font-size: 0.92rem; display: block; color: var(--ink); }
.ab-row .who .rl { font-size: 0.76rem; color: var(--ink-soft); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ab-letter {
  position: sticky; top: 0; z-index: 1; background: var(--paper-raised);
  padding: 3px 18px; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft);
  letter-spacing: 0.05em; border-bottom: 1px solid var(--line);
}

.ab-index {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 4px 7px; border-left: 1px solid var(--line);
}
.ab-index a {
  font-size: 0.66rem; font-weight: 700; color: var(--ink-soft); text-decoration: none;
  padding: 1px 3px; border-radius: 4px; line-height: 1.3;
}
.ab-index a:hover { color: var(--coral-dark); background: var(--paper); }
.ab-index a.ab-index-empty { opacity: 0.3; pointer-events: none; }

.ab-no-results { display: none; padding: 24px 18px; text-align: center; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- CHAT-OVER-ADDRESS-BOOK ---------- */
/* Closed by default: only the list is visible below search + recents.
   Opening a chat hides the list and reveals the header + thread in its
   place, so the card grows to fit the conversation instead of scrolling
   it in a cramped box - search and recents stay visible above either way. */

.address-book .ab-chat-header,
.address-book .thread-wrap,
.address-book .ab-back-bottom { display: none; }

.address-book.chat-open .ab-panel { display: none; }
.address-book.chat-open .ab-chat-header { display: flex; }
.address-book.chat-open .thread-wrap { display: block; }
.address-book.chat-open .ab-back-bottom { display: block; }

/* overflow:hidden (set above, for rounding the closed card's corners)
   would also confine position:sticky to the card itself instead of the
   real page - so it's lifted only while a chat is open. */
.address-book.chat-open { overflow: visible; }

.ab-chat-header {
  align-items: center; gap: 10px; padding: 10px 18px;
  border-bottom: 1px solid var(--line); animation: fadeInUp 0.25s ease both;
  background: var(--paper-raised); border-radius: 20px 20px 0 0;
  position: sticky; top: 0; z-index: 15; box-shadow: 0 6px 14px rgba(16,60,58,0.06);
}
.ab-chat-header .avatar { width: 34px; height: 34px; font-size: 0.85rem; flex-shrink: 0; }
.ab-chat-header .who { flex: 1; min-width: 0; line-height: 1.2; }
.ab-chat-header .nm { font-weight: 700; font-size: 0.9rem; display: block; color: var(--ink); }
.ab-chat-header .rl { font-size: 0.76rem; color: var(--ink-soft); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ab-back {
  font-family: 'Karla', sans-serif; font-weight: 700; color: var(--ink-soft);
  background: none; border: none; cursor: pointer; padding: 0;
}
.ab-back:hover { color: var(--coral-dark); }
.ab-back-top { font-size: 0.78rem; flex-shrink: 0; padding: 6px 4px; }
.ab-back-bottom {
  width: calc(100% - 36px); margin: 4px 18px 18px; text-align: center;
  font-size: 0.85rem; padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper); animation: fadeInUp 0.3s ease both;
}
.ab-back-bottom:hover { background: var(--paper-raised); border-color: var(--c-dee-border); }

.address-book .thread-wrap {
  max-width: 100%; margin: 0; padding: 20px 18px 8px;
  animation: fadeInUp 0.3s ease both;
}
@media (max-width: 640px) {
  .ab-back-bottom { width: calc(100% - 28px); margin: 4px 14px 14px; }
}

@media (max-width: 640px) {
  .address-book { max-width: 100%; border-radius: 16px; }
  .ab-list { max-height: 50vh; }
  .ab-row { padding: 6px 14px; gap: 8px; }
  .ab-index { padding: 4px 4px; }
  .ab-index a { font-size: 0.62rem; padding: 1px 2px; }
}

.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.3rem; color: white;
  transition: transform 0.2s ease;
  overflow: hidden; position: relative;
}
.avatar.avatar-photo { background: var(--avatar-photo-bg) !important; color: transparent; }
.avatar.avatar-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-size: 240%; background-position: 50% 12%;
  mix-blend-mode: multiply;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: 50% 20%;
}
/* Hover: pop the crop out into a larger preview so more of the
   photo (hair, pattern, etc.) is visible without changing layout. */
.avatar.avatar-photo:hover {
  overflow: visible; z-index: 30;
}
.avatar.avatar-photo:hover::before {
  transform: scale(3.2);
  box-shadow: 0 10px 28px rgba(16,60,58,0.35);
}
.avatar.yvonne.avatar-photo::before { background-image: url(images/avatar-yvonne.png); }
.avatar.marcus.avatar-photo::before { background-image: url(images/avatar-marcus.png); }
.avatar.harper.avatar-photo::before { background-image: url(images/avatar-harper.png); }
.avatar.terrence.avatar-photo::before { background-image: url(images/avatar-terrence.png); }
.avatar.owen.avatar-photo::before { background-image: url(images/avatar-owen.png); }
.avatar.kai.avatar-photo::before { background-image: url(images/avatar-kai.png); }
.avatar.kellen.avatar-photo::before { background-image: url(images/avatar-kellen.png); }
.avatar.leah.avatar-photo::before { background-image: url(images/avatar-leah.png); }
.avatar.malik.avatar-photo::before { background-image: url(images/avatar-malik.png); }
.avatar.maya.avatar-photo::before { background-image: url(images/avatar-maya.png); }
.avatar.nia.avatar-photo::before { background-image: url(images/avatar-nia.png); }
.avatar.reese.avatar-photo::before { background-image: url(images/avatar-reese.png); }
.avatar.simone.avatar-photo::before { background-image: url(images/avatar-simone.png); }
.avatar.dee.avatar-photo::before { background-image: url(images/avatar-dee.png); }
.avatar.mo.avatar-photo::before { background-image: url(images/avatar-mo.png); }
.avatar.priya.avatar-photo::before { background-image: url(images/avatar-priya.png); }
.avatar.theo.avatar-photo::before { background-image: url(images/avatar-theo.png); }
.avatar.darius.avatar-photo::before { background-image: url(images/avatar-darius.png); }
.avatar.wendell.avatar-photo::before { background-image: url(images/avatar-wendell.png); }
.avatar.sam.avatar-photo::before { background-image: url(images/avatar-sam.png); }
.avatar.riley.avatar-photo::before { background-image: url(images/avatar-riley.png); }
.avatar.jordan.avatar-photo::before { background-image: url(images/avatar-jordan.png); }
.avatar.ava.avatar-photo::before { background-image: url(images/avatar-ava.png); }
.avatar.nadia.avatar-photo::before { background-image: url(images/avatar-nadia.png); }
.avatar.chris.avatar-photo::before { background-image: url(images/avatar-chris.png); }
.avatar.noah.avatar-photo::before { background-image: url(images/avatar-noah.png); }
.avatar.zora.avatar-photo::before { background-image: url(images/avatar-zora.png); }
.avatar.grace.avatar-photo::before { background-image: url(images/avatar-grace.png); }
.avatar.devon.avatar-photo::before { background-image: url(images/avatar-devon.png); }
.avatar.imani.avatar-photo::before { background-image: url(images/avatar-imani.png); }
.avatar.camille.avatar-photo::before { background-image: url(images/avatar-camille.png); }
.avatar.jamal.avatar-photo::before { background-image: url(images/avatar-jamal.png); }
.avatar.elijah.avatar-photo::before { background-image: url(images/avatar-elijah.png); }
.avatar.sabrina.avatar-photo::before { background-image: url(images/avatar-sabrina.png); }
.avatar.dee { background: var(--c-dee); }
.avatar.mo { background: var(--c-mo); }
.avatar.priya { background: var(--c-priya); }
.avatar.theo { background: var(--c-theo); }
.avatar.sam { background: var(--c-sam); }
.avatar.riley { background: var(--c-riley); }
.avatar.jordan { background: var(--c-jordan); }
.avatar.chris { background: var(--c-chris); }
.avatar.ava { background: var(--c-ava); }
.avatar.nadia { background: var(--c-nadia); }
.avatar.zora { background: var(--c-zora); }
.avatar.imani { background: var(--c-imani); }
.avatar.kai { background: var(--c-kai); }
.avatar.kellen { background: var(--c-kellen); }
.avatar.malik { background: var(--c-malik); }
.avatar.leah { background: var(--c-leah); }
.avatar.grace { background: var(--c-grace); }
.avatar.harper { background: var(--c-harper); }
.avatar.anon { background: #8C9490; }
.avatar.noah { background: var(--c-noah); }
.avatar.maya { background: var(--c-maya); }
.avatar.nia { background: var(--c-nia); }
.avatar.devon { background: var(--c-devon); }
.avatar.simone { background: var(--c-simone); }
.avatar.reese { background: var(--c-reese); }
.avatar.camille { background: var(--c-camille); }
.avatar.jamal { background: var(--c-jamal); }
.avatar.elijah { background: var(--c-elijah); }
.avatar.sabrina { background: var(--c-sabrina); }
.avatar.owen { background: var(--c-owen); }
.avatar.terrence { background: var(--c-terrence); }
.avatar.darius { background: var(--c-darius); }
.avatar.wendell { background: var(--c-wendell); }
.avatar.marcus { background: var(--c-marcus); }
.avatar.yvonne { background: var(--c-yvonne); }

/* ---------- CSS-ONLY TABS ---------- */

.tab-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- CHAT THREAD ---------- */

.thread-wrap { max-width: 680px; margin: 0 auto; padding: 32px 24px 80px; }
.thread { display: none; flex-direction: column; gap: 4px; }

#tab-chlamydia:checked ~ .thread-wrap #chlamydia,
#tab-syphilis:checked ~ .thread-wrap #syphilis,
#tab-hiv:checked ~ .thread-wrap #hiv,
#tab-hpv:checked ~ .thread-wrap #hpv,
#tab-herpes:checked ~ .thread-wrap #herpes,
#tab-trichomonas:checked ~ .thread-wrap #trichomonas,
#tab-pid:checked ~ .thread-wrap #pid,
#tab-hepatitis:checked ~ .thread-wrap #hepatitis,
#tab-mgen:checked ~ .thread-wrap #mgen,
#tab-bv:checked ~ .thread-wrap #bv,
#tab-afterhiv:checked ~ .thread-wrap #afterhiv,
#tab-adherence:checked ~ .thread-wrap #adherence,
#tab-pep:checked ~ .thread-wrap #pep,
#tab-panel:checked ~ .thread-wrap #panel,
#tab-excuses:checked ~ .thread-wrap #excuses,
#tab-fears:checked ~ .thread-wrap #fears,
#tab-moralism:checked ~ .thread-wrap #moralism,
#tab-abstinence:checked ~ .thread-wrap #abstinence,
#tab-history:checked ~ .thread-wrap #history,
#tab-friendhiv:checked ~ .thread-wrap #friendhiv,
#tab-newpartner:checked ~ .thread-wrap #newpartner,
#tab-oldpartner:checked ~ .thread-wrap #oldpartner,
#tab-uncomfortable:checked ~ .thread-wrap #uncomfortable,
#tab-dlmyth:checked ~ .thread-wrap #dlmyth,
#tab-biphobia:checked ~ .thread-wrap #biphobia,
#tab-terrence:checked ~ .thread-wrap #terrence,
#tab-magicjohnson:checked ~ .thread-wrap #magicjohnson,
#tab-drsebi:checked ~ .thread-wrap #drsebi,
#tab-marriedmoms:checked ~ .thread-wrap #marriedmoms,
#tab-pioneers:checked ~ .thread-wrap #pioneers,
#tab-whypp:checked ~ .thread-wrap #whypp,
#tab-pregnancyhiv:checked ~ .thread-wrap #pregnancyhiv,
#tab-stigma:checked ~ .thread-wrap #stigma,
#tab-stigmaquiz:checked ~ .thread-wrap #stigmaquiz,
#tab-darius:checked ~ .thread-wrap #darius,
#tab-resources:checked ~ .thread-wrap #resources,
#tab-campaign:checked ~ .thread-wrap #campaign { display: flex; }

.thread-intro { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }

.row { display: flex; gap: 10px; max-width: 88%; margin: 10px 0; align-items: flex-end; }
.row.left { align-self: flex-start; }
.row.right { align-self: flex-end; flex-direction: row-reverse; }
.row .avatar { width: 34px; height: 34px; font-size: 0.85rem; flex-shrink: 0; }

.bubble { position: relative; padding: 13px 16px; border-radius: var(--radius); font-size: 1rem; color: var(--bubble-ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.bubble:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(16,60,58,0.08); }

/* ---------- DOUBLE-TAP REACTIONS ---------- */
/* A tapback-style chip pinned to the corner of a bubble, added by
   double-clicking/double-tapping it. It always represents that
   bubble's own sender reacting to their own message. */
.bubble-reaction {
  position: absolute; top: -13px; right: -8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper-raised); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.92rem; line-height: 1; pointer-events: none;
  box-shadow: 0 3px 8px rgba(16,60,58,0.18);
  animation: reactionPop 0.2s cubic-bezier(.34,1.56,.64,1) both;
}
.row.right .bubble-reaction { right: auto; left: -8px; }

/* ---------- FAKE TIMESTAMPS & READ RECEIPTS ---------- */
.msg-time {
  display: block; margin-top: 5px; font-size: 0.68rem;
  color: var(--ink-soft); opacity: 0.6; letter-spacing: 0.01em;
}
.row.right .msg-time { text-align: right; }
.row.left .msg-time { text-align: left; }
.seen-status {
  font-size: 0.68rem; color: var(--ink-soft); opacity: 0.6;
  text-align: right; margin: -6px 4px 12px; animation: fadeInUp 0.3s ease both;
}
@keyframes reactionPop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.msg-reaction-picker {
  position: absolute; z-index: 500; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2px; max-width: min(240px, calc(100vw - 24px));
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; box-shadow: 0 10px 26px rgba(16,60,58,0.2);
  animation: reactionPickerIn 0.15s ease both;
}
@keyframes reactionPickerIn { from { transform: translateY(4px) scale(0.92); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.msg-reaction-opt {
  border: none; background: none; font-size: 1.35rem; line-height: 1; cursor: pointer;
  padding: 5px 6px; border-radius: 50%; transition: transform 0.12s ease, background 0.12s ease;
}
.msg-reaction-opt:hover, .msg-reaction-opt:focus-visible { transform: scale(1.25); background: var(--paper); outline: none; }

.row.right .bubble { background: var(--c-dee-bubble); border: 1px solid var(--c-dee-border); border-bottom-right-radius: 4px; }
.row.mo .bubble { background: var(--c-mo-bubble); border: 1px solid var(--c-mo-border); border-bottom-left-radius: 4px; }
.row.priya .bubble { background: var(--c-priya-bubble); border: 1px solid var(--c-priya-border); border-bottom-left-radius: 4px; }
.row.theo .bubble { background: var(--c-theo-bubble); border: 1px solid var(--c-theo-border); border-bottom-left-radius: 4px; }
.row.sam .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-sam-border); border-bottom-left-radius: 4px; }
.row.riley .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-riley-border); border-bottom-left-radius: 4px; }
.row.jordan .bubble { background: var(--c-jordan-bubble); border: 1px solid var(--c-jordan-border); border-bottom-left-radius: 4px; }
.row.chris .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-chris-border); border-bottom-left-radius: 4px; }
.row.ava .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-ava-border); border-bottom-left-radius: 4px; }
.row.nadia .bubble { background: var(--c-nadia-bubble); border: 1px solid var(--c-nadia-border); border-bottom-left-radius: 4px; }
.row.zora .bubble { background: var(--c-zora-bubble); border: 1px solid var(--c-zora-border); border-bottom-left-radius: 4px; }
.row.imani .bubble { background: var(--c-imani-bubble); border: 1px solid var(--c-imani-border); border-bottom-left-radius: 4px; }
.row.kai .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-kai-border); border-bottom-left-radius: 4px; }
.row.kellen .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-kellen-border); border-bottom-left-radius: 4px; }
.row.malik .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-malik-border); border-bottom-left-radius: 4px; }
.row.leah .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-leah-border); border-bottom-left-radius: 4px; }
.row.grace .bubble { background: var(--c-grace-bubble); border: 1px solid var(--c-grace-border); border-bottom-left-radius: 4px; }
.row.harper .bubble { background: var(--c-harper-bubble); border: 1px solid var(--c-harper-border); border-bottom-left-radius: 4px; }
.row.noah .bubble { background: var(--c-noah-bubble); border: 1px solid var(--c-noah-border); border-bottom-left-radius: 4px; }
.row.maya .bubble { background: var(--c-maya-bubble); border: 1px solid var(--c-maya-border); border-bottom-left-radius: 4px; }
.row.nia .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-nia-border); border-bottom-left-radius: 4px; }
.row.devon .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-devon-border); border-bottom-left-radius: 4px; }
.row.simone .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-simone-border); border-bottom-left-radius: 4px; }
.row.reese .bubble { background: var(--c-reese-bubble); border: 1px solid var(--c-reese-border); border-bottom-left-radius: 4px; }
.row.camille .bubble { background: var(--c-camille-bubble); border: 1px solid var(--c-camille-border); border-bottom-left-radius: 4px; }
.row.jamal .bubble { background: var(--c-jamal-bubble); border: 1px solid var(--c-jamal-border); border-bottom-left-radius: 4px; }
.row.elijah .bubble { background: var(--c-elijah-bubble); border: 1px solid var(--c-elijah-border); border-bottom-left-radius: 4px; }
.row.sabrina .bubble { background: var(--c-sabrina-bubble); border: 1px solid var(--c-sabrina-border); border-bottom-left-radius: 4px; }
.row.owen .bubble { background: var(--bubble-plain-bg); border: 1px solid var(--c-owen-border); border-bottom-left-radius: 4px; }
.row.terrence .bubble { background: var(--c-terrence-bubble); border: 1px solid var(--c-terrence-border); border-bottom-left-radius: 4px; }
.row.darius .bubble { background: var(--c-darius-bubble); border: 1px solid var(--c-darius-border); border-bottom-left-radius: 4px; }
.row.wendell .bubble { background: var(--c-wendell-bubble); border: 1px solid var(--c-wendell-border); border-bottom-left-radius: 4px; }
.row.marcus .bubble { background: var(--c-marcus-bubble); border: 1px solid var(--c-marcus-border); border-bottom-left-radius: 4px; }

.bubble strong { color: var(--coral-dark); }

.inline-link { color: var(--link-internal); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; cursor: pointer; font-weight: 700; }
.inline-link:hover { color: var(--link-internal-hover); }

/* all real, off-page links inside a chat thread: sources, citations, resources */
.thread a:not(.video-link):not(.res-card), .fact-link { color: var(--link-external); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; font-weight: 700; }
.thread a:not(.video-link):not(.res-card):hover, .fact-link:hover { color: var(--link-external-hover); }
.thread a:not(.video-link):not(.res-card)::after, .fact-link::after { content: " ↗"; font-size: 0.75em; }

.pp-foot {
  margin-top: 10px; font-size: 0.82rem; color: var(--ink-soft);
}
.pp-foot a { font-weight: 700; }

.sources-foot {
  margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 0.78rem; color: var(--ink-soft);
}
.sources-foot a { color: var(--ink-soft); font-weight: 700; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.sources-foot a:hover { color: var(--coral-dark); }

.next-chat {
  display: block; margin-top: 22px; background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.next-chat:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,60,58,0.08); border-color: var(--c-dee-border); }
.next-chat-label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.next-chat-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; }

.chat-nav { display: flex; gap: 10px; margin-top: 22px; }
.chat-nav .next-chat, .chat-nav .prev-chat { margin-top: 0; flex: 1 1 0; min-width: 0; }
.prev-chat {
  display: block; background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.prev-chat:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,60,58,0.08); border-color: var(--c-dee-border); }
.prev-chat-label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.prev-chat-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
@media (max-width: 480px) {
  .chat-nav { flex-direction: column; }
}

.divider { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin: 28px 0 12px; position: relative; }
.divider span { background: var(--paper); padding: 0 12px; position: relative; z-index: 1; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }

.thread > *:nth-child(1)  { animation-delay: 0.02s; }
.thread > *:nth-child(2)  { animation-delay: 0.08s; }
.thread > *:nth-child(3)  { animation-delay: 0.14s; }
.thread > *:nth-child(4)  { animation-delay: 0.20s; }
.thread > *:nth-child(5)  { animation-delay: 0.26s; }
.thread > *:nth-child(6)  { animation-delay: 0.32s; }
.thread > *:nth-child(7)  { animation-delay: 0.38s; }
.thread > *:nth-child(8)  { animation-delay: 0.44s; }
.thread > *:nth-child(9)  { animation-delay: 0.50s; }
.thread > *:nth-child(10) { animation-delay: 0.56s; }
.thread > *:nth-child(11) { animation-delay: 0.62s; }
.thread > *:nth-child(12) { animation-delay: 0.68s; }
.thread > *:nth-child(13) { animation-delay: 0.74s; }
.thread > *:nth-child(14) { animation-delay: 0.80s; }
.thread > *:nth-child(15) { animation-delay: 0.86s; }
.thread > *:nth-child(16) { animation-delay: 0.92s; }
.thread > *:nth-child(17) { animation-delay: 0.98s; }
.thread > *:nth-child(18) { animation-delay: 1.04s; }
.thread > *:nth-child(19) { animation-delay: 1.10s; }
.thread > *:nth-child(20) { animation-delay: 1.16s; }
.thread > *:nth-child(n+21) { animation-delay: 1.2s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Stagger the reveal of each thread's content (messages, dividers,
   cards) as it scrolls into view, instead of it all rendering at
   once. The class is added by JS (see "SCROLL-TRIGGERED REVEAL"
   below), which also assigns a small per-item delay so a cluster
   of items - like the first screenful when a thread opens - cascades
   in rather than popping in together. */
.js-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- "STARTS TYPING, THINKS, GIVES UP" BEAT ----------
   Used at the end of Adarius's thread: the typing dots (same look as
   the other typing indicator on the page) appear, stop, come back,
   stop again, and then a short "nm" lands instead. Pure CSS. The
   timeline starts when the block scrolls into view (the reveal JS adds
   .in-view), and both rows share one grid cell so nothing below them
   jumps while it plays. Without JS the "nm" simply shows. */
.hesitate-seq { display: grid; }
.hesitate-seq > .row { grid-area: 1 / 1; justify-self: start; align-self: end; }
.hesitate-typing { display: none; }
.hesitate-seq.js-reveal .hesitate-typing { display: flex; opacity: 0; }
.hesitate-seq.js-reveal .hesitate-nm { opacity: 0; }
.hesitate-typing .typing-bubble {
  background: var(--c-darius-bubble); border-color: var(--c-darius-border);
  border-bottom-right-radius: var(--radius); border-bottom-left-radius: 4px;
}
/* types, stops to think, starts again, then gives up (7s total) */
@keyframes hesitateTyping {
  0%       { opacity: 0; }
  6%, 40%  { opacity: 1; }
  46%, 58% { opacity: 0; }
  64%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}
@keyframes hesitateNm { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.hesitate-seq.in-view .hesitate-typing { animation: hesitateTyping 7s ease both; animation-delay: 0.8s; }
.hesitate-seq.in-view .hesitate-nm { animation: hesitateNm 0.4s ease both; animation-delay: 7.8s; }
@media (prefers-reduced-motion: reduce) {
  .hesitate-seq .hesitate-typing { display: none !important; }
  .hesitate-seq.js-reveal .hesitate-nm, .hesitate-seq.in-view .hesitate-nm { opacity: 1; animation: none; }
}

  /* ---------- TAP-TO-COMPARE ---------- */

details.compare-card { margin: 14px 0; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; }
details.compare-card summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
details.compare-card summary::-webkit-details-marker { display: none; }
details.compare-card summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); transition: transform 0.2s ease; line-height: 1; }
details.compare-card[open] summary::after { transform: rotate(45deg); }
details.compare-card summary:hover { color: var(--coral-dark); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; animation: fadeInUp 0.3s ease both; }
.compare.compare-3 { grid-template-columns: 1fr 1fr 1fr; }
.compare-col { border-radius: 14px; padding: 14px 16px; font-size: 0.92rem; color: var(--bubble-ink); }
.compare-col.good { background: var(--c-dee-bubble); border: 1px solid var(--c-dee-border); }
.compare-col.mid { background: #FFF6E5; border: 1px solid #F0DBA8; }
.compare-col.bad { background: #FBEAE7; border: 1px solid #F1C7BF; }
.compare-col .head { font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; display: block; }
.compare-col.good .head { color: #1B6E5C; }
.compare-col.mid .head { color: #8A6D1D; }
.compare-col.bad .head { color: var(--coral-dark); }

@media (max-width: 560px) {
  .compare { grid-template-columns: 1fr; }
  .row { max-width: 96%; }
}

/* ---------- SCRIPT CARD (for "how to ask") ---------- */

.script-card { background: var(--paper-raised); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 12px; padding: 14px 18px; margin: 10px 0; font-size: 0.95rem; }
.script-card .script-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.script-card .script-label { font-size: 0.72rem; font-weight: 700; color: var(--coral-dark); display: block; margin: 0; }
.script-copy {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Karla', sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 8px;
  cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.script-copy:hover { background: var(--paper-raised); border-color: var(--c-dee-border); color: var(--ink); }
.script-copy.copied { background: #E1F3EC; border-color: #BFE3D3; color: #1B6E5C; }
.script-copy svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- SELF-CHECK QUIZ (checkbox-driven, e.g. Harper's stigma quiz) ---------- */

.quiz-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px; margin: 12px 0; animation: fadeInUp 0.4s ease both; }
.quiz-card .quiz-intro { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 14px; }
.quiz-list { display: flex; flex-direction: column; gap: 2px; }
.quiz-item { display: block; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background 0.15s ease; }
.quiz-item:hover { background: var(--paper); }
.quiz-item .quiz-box { accent-color: var(--coral); width: 17px; height: 17px; vertical-align: middle; margin-right: 10px; cursor: pointer; }
.quiz-item .quiz-text { font-size: 0.95rem; font-weight: 600; vertical-align: middle; }
.quiz-item .quiz-box:checked ~ .quiz-text { color: var(--coral-dark); }
.quiz-submit {
  margin-top: 14px; background: var(--coral); color: #fff; border: none; border-radius: 999px;
  padding: 10px 22px; font-family: 'Karla', sans-serif; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.quiz-submit:hover { background: var(--coral-dark); transform: translateY(-1px); }
.quiz-result { display: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.quiz-result.shown { display: block; animation: fadeInUp 0.3s ease both; }
.quiz-result-count { font-weight: 700; margin-bottom: 6px; }
.quiz-result-text { font-size: 0.92rem; color: var(--ink-soft); }
.quiz-reframe-heading {
  font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase;
  letter-spacing: 0.03em; margin: 16px 0 10px;
}
.quiz-reframe-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.quiz-reframe-card:last-child { margin-bottom: 0; }
.quiz-reframe-said { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 6px; }
.quiz-reframe-said b { color: var(--ink); font-weight: 700; }
.quiz-reframe-instead { font-size: 0.9rem; margin: 0; padding-left: 12px; border-left: 3px solid var(--coral); color: var(--ink); }
.quiz-reframe-instead .src-link {
  display: inline-block; margin-top: 8px; font-size: 0.78rem; font-weight: 700;
  color: var(--link-external); text-decoration: none; border-bottom: 1px solid currentColor;
}
.quiz-reframe-instead .src-link:hover { color: var(--link-external-hover); }
.quiz-none-checked { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- VIDEO LINK CARD ---------- */

.video-card { margin: 10px 0; max-width: 360px; }
.video-card .video-link {
  display: flex; flex-direction: column; align-items: stretch; background: var(--paper-raised);
  border: 1px solid var(--line); border-left: 4px solid #FF0000; border-radius: 12px;
  overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-card .video-link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16,60,58,0.08); }
.video-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--paper); flex-shrink: 0; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb-wrap .video-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.65);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.video-body { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.video-text { min-width: 0; }
.video-label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.video-title { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }

/* ---------- I'M HIM POSTER CARDS (scoped, from the campaign kit) ---------- */
.imhim-poster {
  --i-ink:#171009; --i-ink-soft:#241a10; --i-paper:#e9e1d1; --i-paper-dim:#d9cfba;
  --i-gold:#c19a44; --i-gold-dim:#9d7c34;
  margin: 10px 0; max-width: 240px; font-family: 'Space Grotesk', sans-serif;
}
.imhim-poster .poster {
  width: 240px; height: 300px; position: relative; overflow: hidden;
  border-radius: 8px; box-shadow: 0 14px 30px rgba(16,60,58,0.18);
}
.imhim-poster .poster img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) contrast(1.05) brightness(0.85) sepia(12%);
}
.imhim-poster .poster .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,16,9,0.05) 0%, rgba(23,16,9,0.15) 45%, rgba(23,16,9,0.94) 88%);
}
.imhim-poster .poster .content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
}
.imhim-poster .poster .top { display: flex; justify-content: space-between; align-items: flex-start; }
.imhim-poster .poster .mark { font-family: 'Fraunces', serif; font-style: italic; font-size: 11px; color: var(--i-paper-dim); }
.imhim-poster .seal { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--i-gold); display: flex; align-items: center; justify-content: center; color: var(--i-gold); flex-shrink: 0; }
.imhim-poster .seal svg { width: 9px; height: 9px; }
.imhim-poster .poster h2 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; line-height: 1.16; margin: 0 0 6px; color: var(--i-paper);
}
.imhim-poster .poster .sub { font-size: 10px; color: var(--i-paper-dim); line-height: 1.4; margin-bottom: 10px; }
.imhim-poster .poster .foot {
  display: flex; justify-content: space-between; font-size: 9px; color: var(--i-gold-dim);
  border-top: 1px solid rgba(193,154,68,0.3); padding-top: 8px;
}
.imhim-poster .poster.checklist { height: auto; display: flex; flex-direction: column; }
.imhim-poster .poster.checklist ul { list-style: none; margin: 0; padding: 0; }
.imhim-poster .poster.checklist li { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--i-paper-dim); padding: 4px 0; border-bottom: 1px solid rgba(233,225,209,0.08); }
.imhim-poster .poster.checklist li:last-child { border-bottom: none; }
.imhim-poster .poster.checklist li .box { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; border-radius: 3px; background: var(--i-gold); display: flex; align-items: center; justify-content: center; }
.imhim-poster .poster.checklist li .box svg { width: 8px; height: 8px; stroke: var(--i-ink); stroke-width: 3; }
.imhim-poster .poster.checklist li span.label { color: var(--i-paper); font-weight: 500; }
.imhim-poster .card-note { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; padding: 0 2px; }
.flat-poster { margin: 10px 0; max-width: 200px; }
.flat-poster img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 14px 30px rgba(16,60,58,0.18); }
.flat-poster .card-note { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; padding: 0 2px; }
.poster-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.poster-row .flat-poster { margin: 0; }

/* ---------- TYPING INDICATOR ---------- */

.typing-row { display: flex; gap: 10px; align-items: flex-end; margin: 14px 0; }
.typing-row.right { align-self: flex-end; flex-direction: row-reverse; }
.typing-bubble { background: var(--c-dee-bubble); border: 1px solid var(--c-dee-border); border-radius: var(--radius); border-bottom-right-radius: 4px; padding: 14px 18px; display: flex; gap: 5px; align-items: center; }
.typing-bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: bounce 1.2s infinite ease-in-out; }
.typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- RESOURCES TAB ---------- */

.res-group { margin-bottom: 28px; }
.res-group h3 { font-size: 1.05rem; margin-bottom: 4px; }
.res-group .res-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.res-card { display: block; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.res-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,60,58,0.08); border-color: var(--c-dee-border); }
.res-card .res-name { font-weight: 700; color: var(--ink); font-size: 0.98rem; display: block; }
.res-card .res-detail { color: var(--ink-soft); font-size: 0.85rem; margin-top: 3px; }

/* ---------- FOOTER ---------- */

footer { border-top: 1px solid var(--line); padding: 40px 24px 60px; }
.footer-inner { max-width: 680px; margin: 0 auto; color: var(--ink-soft); font-size: 0.9rem; }
.disclaimer { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 0.85rem; }
.disclaimer + .disclaimer { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
