/* ==========================================================================
   Compare_Images — shared stylesheet
   Reused by every topic page (NoRouteMap.html, and future topics).
   ========================================================================== */

:root {
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --border: #e2e5ea;
  --accent: #4f46e5;
  --accent-soft: #eef0fe;
  --radius: 10px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

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

header.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 5vw 20px;
}

header.site-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 6px;
}

header.site-header h1 {
  margin: 0 0 4px;
  font-size: 1.9rem;
}

header.site-header p.subtitle {
  margin: 0;
  color: var(--muted);
}

nav.topic-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 5vw 0;
}

nav.topic-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

nav.topic-nav a:hover {
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 5vw 60px;
}

.prompt-box {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.prompt-box h2 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.prompt-box p {
  margin: 0;
  font-style: italic;
  color: var(--text);
}

.prompt-box p.placeholder {
  color: var(--muted);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .image-frame {
  aspect-ratio: 4 / 3;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card .card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3.llm-name {
  margin: 0;
  font-size: 1.05rem;
}

.card .file-name {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

.card .comments {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.card .comments h4 {
  margin: 0 0 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.card .comments p {
  margin: 0;
  font-size: 0.92rem;
}

.card .comments p.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* Topic buttons on the index page */
.topic-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topic-buttons a {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}

.topic-buttons a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.topic-buttons .topic-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.topic-buttons .topic-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* On the index page the note sits below the topic buttons */
.topic-buttons + .context-box {
  margin-top: 26px;
  margin-bottom: 0;
}

/* Why this page exists, shown once at the top of a topic page */
.context-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  padding: 16px 20px 18px;
  margin-bottom: 20px;
}

.context-box h2 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.context-box p {
  margin: 0 0 10px;
  font-size: 1rem;
}

.context-box p:last-child {
  margin-bottom: 0;
}

.context-box img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 16px 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Overall conclusion, shown once at the bottom of a topic page */
.final-comment {
  margin-top: 36px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px 22px;
}

.final-comment h2 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.final-comment p {
  margin: 0;
  font-size: 1rem;
}

.final-comment p.placeholder {
  color: var(--muted);
  font-style: italic;
}

footer.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}
