/* Heritage South — shared stylesheet
   Palette: parchment and cream, ink, deep burgundy and navy, muted gold.
   Southern Heroes montage: add class "has-heroes" to <header class="banner">
   (portraits live in /images/heroes/; sources in /images/heroes/CREDITS.md).
   A full-bleed banner.jpg is still supported via class "has-image".
*/

:root {
  --parchment: #f3ead8;
  --parchment-dark: #e4d6bb;
  --paper: #faf6eb;
  --ink: #2a2418;
  --ink-soft: #4a4033;
  --ink-faint: #6e6456;
  --burgundy: #6e1f1f;
  --burgundy-dark: #4a1414;
  --navy: #1c2a44;
  --navy-soft: #2c3d5c;
  --gold: #a3844e;
  --gold-light: #c4b396;
  --rule: #cbb894;
  --card: #fffaf0;
  --shadow: 0 2px 8px rgba(42, 36, 24, 0.08);
  --serif: "EB Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --max: 1240px;
  --links-w: 220px;
  --sponsors-w: 240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    linear-gradient(180deg, rgba(255,250,240,0.35), rgba(228,214,187,0.2)),
    repeating-linear-gradient(90deg, rgba(163,132,78,0.03) 0 1px, transparent 1px 6px);
  font-family: var(--serif);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--burgundy-dark); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* —— Banner —— */
.banner {
  background: linear-gradient(180deg, #f7f0e0 0%, var(--parchment) 100%);
  border-bottom: 3px solid var(--burgundy);
  text-align: center;
  position: relative;
  padding: 1.6rem 1.25rem 1.4rem;
}
.banner::before,
.banner::after {
  content: "";
  display: block;
  height: 1px;
  margin: 0 auto;
  max-width: var(--max);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.banner::before { margin-bottom: 1.1rem; }
.banner::after { margin-top: 1.1rem; position: absolute; left: 0; right: 0; bottom: 6px; }

.banner-inner { max-width: var(--max); margin: 0 auto; }
.site-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
.site-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--burgundy);
  margin: 0;
  letter-spacing: 0.02em;
}
.banner-rule {
  width: 8rem;
  height: 0;
  border: 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  margin: 0.7rem auto 0;
  padding: 2px 0;
}

/* Optional later banner image */
.banner.has-image {
  background-image: url("/images/banner.jpg");
  background-size: cover;
  background-position: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-color: var(--navy);
}
.banner.has-image .banner-inner {
  background: rgba(28, 24, 16, 0.48);
  color: var(--parchment);
  padding: 1.4rem 2rem;
}
.banner.has-image .site-name { color: var(--parchment); }
.banner.has-image .site-tagline { color: #f0d9a8; }
.banner.has-image::before,
.banner.has-image::after { background: linear-gradient(90deg, transparent, #f0d9a8, transparent); }

.sub-banner .site-name { font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: 0.14em; }
.sub-banner { padding: 1rem 1.25rem 0.9rem; }
.sub-banner .site-tagline { font-size: 1.05rem; }
.sub-banner a { text-decoration: none; color: inherit; }
.sub-banner a:hover .site-name { color: var(--burgundy); }

/* —— Southern Heroes montage —— */
.banner.has-heroes {
  padding: 0.7rem 0.6rem 0.85rem;
}
.banner.has-heroes::before { margin-bottom: 0.55rem; }
.banner.has-heroes::after { margin-top: 0.7rem; }
.banner.has-heroes .banner-inner {
  max-width: 1440px;
  padding: 0 0.25rem;
}
.heroes-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
}
.heroes-side {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 0;
  min-width: 0;
}
.heroes-left { justify-content: flex-end; }
.heroes-right { justify-content: flex-start; }
.banner-title {
  flex: 0 1 auto;
  text-align: center;
  padding: 0 0.35rem;
  min-width: 0;
}
.banner.has-heroes .site-name {
  font-size: clamp(1.4rem, 3.2vw, 2.55rem);
  letter-spacing: 0.14em;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}
.banner.has-heroes .site-tagline {
  font-size: clamp(0.98rem, 1.8vw, 1.35rem);
}
.banner.has-heroes .banner-rule { margin-top: 0.5rem; }
.heroes-side img {
  display: block;
  width: clamp(2.7rem, 5vw, 4.7rem);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px var(--burgundy-dark), 0 2px 5px rgba(42, 36, 24, 0.28);
  background: #3a2e20;
}
.sub-banner.has-heroes { padding: 0.55rem 0.6rem 0.6rem; }
.sub-banner.has-heroes .site-name {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  letter-spacing: 0.12em;
}
.sub-banner.has-heroes .site-tagline { font-size: 0.98rem; }
.sub-banner.has-heroes .heroes-side img {
  width: clamp(2.2rem, 3.8vw, 3.3rem);
  border-width: 1.5px;
}

@media (max-width: 1280px) {
  .heroes-left li:nth-child(1),
  .heroes-right li:nth-last-child(1) { display: none; }
}
@media (max-width: 1080px) {
  .heroes-left li:nth-child(-n+2),
  .heroes-right li:nth-last-child(-n+2) { display: none; }
}
@media (max-width: 900px) {
  .heroes-left li:nth-child(-n+3),
  .heroes-right li:nth-last-child(-n+3) { display: none; }
}
@media (max-width: 700px) {
  .heroes-side { display: none; }
  .banner.has-heroes .site-name { letter-spacing: 0.12em; }
}
@media (max-width: 420px) {
  .banner.has-heroes .site-name {
    white-space: normal;
    letter-spacing: 0.1em;
  }
}

/* —— Page shell —— */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.columns {
  display: grid;
  grid-template-columns: var(--links-w) minmax(0, 1fr) var(--sponsors-w);
  gap: 1.5rem;
  align-items: start;
}

.col-links,
.col-sponsors {
  position: sticky;
  top: 0.75rem;
}

.panel,
.sidebar {
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 0.9rem 1rem 1.1rem;
}

.sidebar h2,
.feature-head h2,
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold-light);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { border-bottom: 1px dotted var(--rule); }
.nav-links li:last-child { border-bottom: 0; }
.nav-links a {
  display: block;
  padding: 0.45rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.02rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--burgundy);
  padding-left: 0.25rem;
}

/* —— Ask / AI search (center column, top) —— */
.ask-box {
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 0.95rem 1rem 0.85rem;
  margin-bottom: 1.15rem;
}
.ask-box label {
  display: block;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.ask-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}
.ask-row input[type="search"] {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--gold-light);
  background: #fffef8;
  color: var(--ink);
  border-radius: 0;
}
.ask-row input[type="search"]:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.ask-row button,
.btn {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--burgundy);
  color: var(--parchment);
  border: 1px solid var(--burgundy-dark);
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  white-space: nowrap;
}
.ask-row button:hover,
.btn:hover { background: var(--burgundy-dark); }
.ask-note {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* —— Feature panel —— */
.feature {
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  min-height: 28rem;
  display: flex;
  flex-direction: column;
}
.feature-head {
  padding: 0.85rem 1rem 0;
}
.feature-head h2 { margin-bottom: 0.55rem; }

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--rule);
  background: #f6efe0;
}
.feature-tabs button {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  padding: 0.55rem 0.55rem 0.45rem;
  cursor: pointer;
}
.feature-tabs button:hover { color: var(--burgundy); }
.feature-tabs button[aria-selected="true"] {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
  font-weight: 700;
}

.feature-stage {
  position: relative;
  padding: 1.1rem 1.15rem 1rem;
  flex: 1;
  min-height: 22rem;
}
.feature-slide { display: none; }
.feature-slide.is-active { display: block; animation: fadein 0.45s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.slide-kicker {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.45rem;
}
.slide-quote {
  font-size: 1.22rem;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.slide-quote::before { content: "“"; }
.slide-quote::after { content: "”"; }
.slide-speaker {
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.slide-cite {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 0.75rem;
}
.slide-cite a { color: var(--ink-soft); }

.feature-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.7rem;
  border-top: 1px solid var(--rule);
  background: #f6efe0;
}
.feature-controls .counter {
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.feature-controls button {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--parchment);
  border: 0;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.feature-controls button:hover { background: var(--navy-soft); }

.walters-note {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* Video embed */
.video-frame {
  min-height: 18rem;
  overflow: hidden;
}
.video-frame .twitter-tweet,
.video-frame iframe { margin: 0 auto !important; }
.video-meta {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.video-meta .posted { display: block; color: var(--ink-faint); font-size: 0.88rem; }

/* Authors (in feature panel and elsewhere) */
.author-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.author-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--parchment-dark);
}
.author-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.15rem;
  color: var(--navy);
}
.author-card .handle {
  font-size: 0.95rem;
  color: var(--burgundy);
  margin: 0 0 0.4rem;
}
.author-card p { margin: 0 0 0.5rem; }
.author-links { font-size: 0.95rem; }

/* Sponsors — vertical stack, one card per row */
#sponsor-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  width: 100%;
}
.sponsor-card {
  border: 1px dashed var(--gold);
  background: #f7f1e3;
  padding: 0.7rem 0.75rem;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.sponsor-card:not(.placeholder) {
  border-style: solid;
  border-color: var(--gold);
  background: #fff8e8;
  box-shadow: var(--shadow);
}
.sponsor-card h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.3rem;
  color: var(--navy);
}
.sponsor-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.sponsor-card.placeholder h3 { color: var(--ink-faint); font-weight: 400; }
.sponsor-card.feature-sponsor { margin: 1rem auto; max-width: 22rem; padding: 1.2rem 1rem; }
.sponsor-card.featured {
  border-style: solid;
  border-color: var(--gold);
  background: #fff8e8;
  box-shadow: var(--shadow);
}
.sponsor-kicker {
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.sponsor-card .sponsor-logo {
  display: block;
  width: 88px;
  height: auto;
  margin: 0 auto 0.45rem;
}
.sponsor-card .sponsor-links {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}
.sponsor-card .sponsor-links a { margin: 0 0.15rem; }
.sponsor-card a.sponsor-name-link { text-decoration: none; color: inherit; }
.sponsor-card a.sponsor-name-link:hover h3 { color: var(--burgundy); }

/* News, announcements, memes */
.item-title {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.item-date { font-size: 0.88rem; color: var(--ink-faint); margin: 0 0 0.5rem; }
.item-body { margin: 0 0 0.5rem; }
.placeholder-flag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.1rem 0.4rem;
  margin-bottom: 0.4rem;
}
.meme-frame {
  border: 1px solid var(--rule);
  background: var(--parchment);
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 0.6rem;
  text-align: center;
  padding: 1rem;
}
.meme-frame:has(img) { min-height: 0; padding: 0.45rem; }
.meme-frame img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 24rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.meme-credit { margin: 0.15rem 0 0; font-size: 0.92rem; }
.meme-credit a { font-weight: 600; }


/* —— Footer —— */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: #e8dfcb;
  padding: 1.3rem 1rem 1.5rem;
  font-size: 0.95rem;
  border-top: 3px solid var(--gold);
}
.site-footer-inner { max-width: var(--max); margin: 0 auto; }
.site-footer a { color: #f0d9a8; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer .credit { margin-top: 0.7rem; color: #c4b396; font-size: 0.88rem; }

/* —— About / inner article —— */
.article {
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.6rem;
}
.article h1, .prose h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold-light);
}
.article h2, .prose h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  margin: 1.4rem 0 0.5rem;
}
.article h3, .prose h3 {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 1.15rem 0 0.4rem;
}
.prose { background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: 1.15rem 1.25rem 1.6rem; }
.prose > *:first-child { margin-top: 0; }

/* —— Library catalog —— */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 1rem;
}
.catalog-toolbar input[type="search"] {
  flex: 1;
  min-width: 12rem;
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--gold-light);
  background: #fffef8;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}
.section-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.section-card:hover { border-color: var(--gold); color: inherit; }
.section-card h2 {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 0 0 0.3rem;
}
.section-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.catalog-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; margin: 0 0 1.4rem; }
.catalog-table th, .catalog-table td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.catalog-table th {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: #f6efe0;
}
.catalog-table .dl a { margin-right: 0.55rem; white-space: nowrap; }
.catalog-table tr.is-hidden { display: none; }
.subhead {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}

/* —— Quote wiki —— */
.status {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border: 1px solid;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.status-verified { color: #1e3d2b; border-color: #1e3d2b; background: #e7f0ea; }
.status-paraphrase { color: #5c3d0c; border-color: var(--gold); background: #f7efd8; }
.status-unverified { color: var(--ink-faint); border-color: var(--gold-light); background: #f3efe6; }
.status-misattributed { color: var(--burgundy); border-color: var(--burgundy); background: #f6eaea; }

.quote-entry {
  border-top: 1px solid var(--rule);
  padding: 1rem 0 0.4rem;
  margin-top: 0.6rem;
}
.quote-entry h3 { margin-top: 0; }
.quote-entry blockquote {
  margin: 0.3rem 0 0.7rem;
  padding: 0 0 0 0.9rem;
  border-left: 3px solid var(--gold);
  font-size: 1.12rem;
  color: var(--ink);
}
.quote-entry ul { padding-left: 1.15rem; }
.quote-index-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.quote-index-table th, .quote-index-table td {
  text-align: left;
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.quote-index-table th {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f6efe0;
}
.crumb { font-size: 0.95rem; margin: 0 0 0.8rem; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.12rem; }

/* —— Mobile: banner, search, feature, links, sponsors —— */
@media (max-width: 900px) {
  html { font-size: 17px; }
  .columns {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }
  .col-main { order: 1; }
  .col-links { order: 2; position: static; width: 100%; }
  .col-sponsors { order: 3; position: static; width: 100%; }
  #sponsor-list { max-width: 22rem; margin-inline: auto; }
  .feature-stage { min-height: 16rem; }
  .author-card { grid-template-columns: 72px 1fr; }
  .catalog-table { display: block; overflow-x: auto; }
}

@media (max-width: 560px) {
  .ask-row { flex-direction: column; }
  .ask-row button { width: 100%; }
  .site-name { letter-spacing: 0.12em; }
  .feature-tabs button { padding-left: 0.4rem; padding-right: 0.4rem; }
}

@media print {
  .ask-box, .feature-controls, .feature-tabs, .col-sponsors { display: none; }
  body { background: #fff; }
  .banner, .panel, .sidebar, .prose, .article { box-shadow: none; }
}


/* —— Quote hover preview and citation modal —— */
.quote-index-table { width: 100%; }
.quote-preview {
  cursor: help;
  border-bottom: 1px dotted var(--gold);
}
.quote-row.is-verified,
.quote-row.is-verified .status-verified,
.quote-entry.is-verified .status-verified,
.quote-slide.is-verified .status-verified {
  cursor: pointer;
}
.quote-row.is-verified:hover,
.quote-entry.is-verified:hover {
  background: #f7f1e3;
}
.quote-row.is-verified:focus-visible,
.quote-preview:focus-visible,
.status-verified:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.quote-hover-hint {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.4rem 0 1rem;
}

.quote-tooltip {
  position: fixed;
  z-index: 80;
  display: none;
  max-width: min(36rem, calc(100vw - 1.5rem));
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: 0 6px 24px rgba(42, 36, 24, 0.22);
  padding: 0.75rem 0.9rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.45;
  pointer-events: none;
}
.quote-tooltip.is-visible { display: block; }
.quote-tooltip p { margin: 0; }

.quote-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(28, 24, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.quote-modal-backdrop[hidden] { display: none; }
.quote-modal {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 32px rgba(28, 24, 16, 0.35);
  max-width: 38rem;
  width: 100%;
  max-height: min(90vh, 44rem);
  overflow: auto;
  padding: 1.25rem 1.35rem 1.35rem;
}
.quote-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  background: transparent;
  border: 0;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}
.quote-modal-close:hover { color: var(--burgundy); }
.quote-modal blockquote {
  margin: 0.3rem 0 0.8rem;
  padding: 0 0 0 0.9rem;
  border-left: 3px solid var(--gold);
  font-size: 1.15rem;
}
.quote-modal .slide-speaker { font-weight: 600; color: var(--navy); margin: 0 0 0.35rem; }
.quote-modal .slide-cite { font-size: 0.98rem; font-style: italic; color: var(--ink-soft); margin: 0 0 0.7rem; }
.quote-modal .evidence-note { margin: 0 0 1rem; }
.quote-modal .copy-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.quote-modal .copy-status { font-size: 0.95rem; color: #1e3d2b; min-height: 1.2em; }

body.quote-modal-open { overflow: hidden; }
