:root{
  --bg:#f0f1f3;
  --panel:#f2f2f2;
  --ink:#ffffff;
  --muted:#9aa3b2;
  --accent:#7aa2ff;
  --border:#d7d7d7;

  /* Tiles: rectangular (scaled for ~80% zoom) */
  --tileW: 30px;
  --tileH: 40px;
  --gap: 6px;
  
  /* Topic colors */
  --topic-military: #FA8468;
  --topic-society: #53ADDE;
  --topic-political: #FFC970;
  --topic-religion: #68C89E;
  --topic-business: #6886C8;
  --topic-other: #B0B0B0;
}

*{box-sizing:border-box}
html,body{height:100%; overflow:hidden;}
body{
  margin:0; 
  background:#ffffff; 
  color:#2c2c2c;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

.serif-title {
  font-family: "Abril Fatface", serif;
  font-weight: 300;
  font-style: normal;
  font-size: 4rem;
  margin: 0;
  line-height: 1.1;
}


/* Main header with subtitle */
.main-header {
  background: linear-gradient(to bottom, #ffffff, #fafbfc);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 60px;
}

.btn-back {
  position: absolute;
  left: 20px;
  background: transparent;
  border: 1px solid #ccc;
  color: #666;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-back:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
}

.doc-count {
  position: absolute;
  right: 20px;
  color: #888;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-subtitle {
  margin: 0;
  font-size: 16px;
  color: #6e6e6e;
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: calc(100% - 280px);
  padding: 0 10px;
}

/* Responsive header */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    min-height: auto;
  }
  
  .btn-back {
    position: static;
    order: -1;
    align-self: flex-start;
    font-size: 11px;
    padding: 5px 12px;
  }
  
  .main-subtitle {
    font-size: 14px;
    max-width: 100%;
    padding: 0;
  }
  
  .doc-count {
    position: static;
    order: 1;
    font-size: 12px;
  }
}

/* Layout */
.container{
  display:flex; flex-direction:row;
  flex: 1;
  min-height: 0;
}
.mosaic-wrap{
  flex:1; position:relative; padding:16px; overflow:auto;
}
.panel.right{
  position: relative; z-index: 5; 
  padding: 16px; 
  width: 320px;
  background:var(--panel); border-left:1px solid var(--border);
  overflow: auto;
}

/* Tooltip */
.tip{
  position: fixed;
  max-width: 360px;
  background: #0f1322;
  color: #e7e9ef;
  border: 1px solid #2a3042;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  z-index: 9999;
}
.tip.hidden{ display:none; }
.tip .t1{ font-weight: 700; margin-bottom: 4px; }
.tip .t2{ color:#9aa3b2; margin-bottom: 6px; }
.tip .t3{ color:#cbd3e1; }
.tip-thumb{ display:block; width:80px; height:auto; margin-top:6px; border-radius:6px; }

/* Page Tabs in Tooltip */
.page-tabs {
  display: flex;
  gap: 3px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.page-tabs .tab {
  display: inline-block;
  min-width: 16px;
  height: 4px;
  background: #4a5568;
  border-radius: 2px;
  font-size: 8px;
  color: #9aa3b2;
  text-align: center;
  line-height: 1;
  padding: 0 2px;
}

/* Topic & Legend */
.panel h2{
  margin:0 0 6px 0; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted);
}

/* Color Legend Section */
.color-legend {
  margin-bottom: 1.5rem;
}

.color-legend h3 {
  margin: 0 0 0.8rem 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.legend-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 12px;
  color: #333;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== Unified button styles (Pill-shaped) ===== */
.btn {
  background: #ececec;
  border: 1px solid #d8d8d8;
  color: #111;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: #111;
  color: #ffffff;
}

.btn:hover .btn-color-dot {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.btn.active {
  background: #ffffff;
  color: #111;
  padding: 0.3rem 0.85rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.btn-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}

/* Button row layout */
.btn-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px;
  margin-bottom: 10px;
}

/* Ghost button (Close button) */
.btn-ghost {
  background: none;
  border: none;
  color: #666;
  padding: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all .2s ease;
  border-radius: 4px;
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.05);
  color: #111;
}
.btn-ghost:active {
  background: rgba(0,0,0,0.1);
}
.legend{margin-top:10px}
.legend-head{display:flex;align-items:center;justify-content:space-between}
.hint{color:var(--muted); font-size:11px;}

/* Data section */
.data {
  margin-top: 20px;
}

.data-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-list li {
  font-size: 12px;
}

.data-list a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.data-list a:hover {
  color: #5a8bff;
  text-decoration: underline;
}

/* Canonical list */
.canon-list{display:flex; flex-direction:column; gap:5px; margin-top:6px}
.canon-item{
  display:flex; align-items:center; gap:6px;
  background:#ececec; border:1px solid #d8d8d8;
  border-radius:8px; padding:6px 8px; cursor:pointer;
  font-size:12px;
  transition: all 0.2s ease;
}
.canon-item.active {
  background: #ffffff;
  padding: 5px 7px;
}
.canon-item .label{min-width:100px; font-size:11px;}

/* Legend bar */
.canon-item .bar-track{
  height:6px; background:#f5f5f5; border-radius:3px; flex:1; position:relative; overflow:hidden;
}
.canon-item .bar-inner{
  position:absolute; left:0; top:0; bottom:0;
  width:var(--w,0%);
  background:var(--topic-color, var(--accent));
  border-radius:3px;
  transition: width .15s ease;
}

.canon-item[data-topic="Military"]   .bar-inner { background:#FA8468; }
.canon-item[data-topic="Society"]    .bar-inner { background:#53ADDE; }
.canon-item[data-topic="Political"]  .bar-inner { background:#FFC970; }
.canon-item[data-topic="Religion"]   .bar-inner { background:#68C89E; }
.canon-item[data-topic="Business"]   .bar-inner { background:#6886C8; }
.canon-item[data-topic="Other"]      .bar-inner { background:#B0B0B0; }

/* Dense mosaic grid */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, var(--tileW));
  gap: var(--gap);
  align-content:start;
}
.tile{
  width: var(--tileW);
  height: var(--tileH);
  border-radius: 2px;
  cursor: pointer;
  transition: transform .2s;
  outline: 1px solid rgba(255,255,255,0.05);
  background-size: 100% 100%;
}
.tile:hover{
  transform: scale(1.6);
  box-shadow: 0 0 6px rgba(27, 27, 27, 0.5);
  z-index: 5;
}

/* Empty & stats */
.empty{padding:16px; color:var(--muted)}
.hidden{display:none}
.stats-bar{
  position: sticky; bottom: 0; left: 0; right: 0;
  display:flex; align-items:center; gap:16px; 
  justify-content:flex-end;
  padding:10px 0 0 0; 
  color:var(--muted);
}
.stats-bar span { margin: 0 16px; }
.stats-bar strong { font-weight: 600; color: #333; }


/* ===== Detail Overlay ===== */
.detail-overlay{
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(15,16,22,0.55);
  backdrop-filter: blur(2px);
}
.detail-overlay.hidden{ display:none; }

/* Loading overlay layer (inside detail-card) */
.detail-loading {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  gap: 16px;
  border-radius: 16px;
}

.detail-loading.hidden {
  display: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.detail-loading p {
  margin: 0;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.detail-card{
  position: relative;
  grid-template-columns: 0.9fr 1.1fr; /* ← image:text ratio (reversed) */
  height: min(88vh, 880px); 
  width: min(1200px, 94vw);
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px;
  padding: 16px;
  animation: detailIn .22s ease;
}

/* No Image Mode - Text-centered layout */
.detail-overlay.no-image-mode .detail-media {
  display: none;
}

.detail-overlay.no-image-mode .detail-card {
  grid-template-columns: 1fr;
  max-width: 800px;
  width: min(800px, 90vw);
  padding: 24px;
}

.detail-overlay.no-image-mode .detail-body {
  max-width: 100%;
  padding: 0;
}
@keyframes detailIn{
  from{ opacity:0; transform: translateY(6px) scale(.98) }
  to{ opacity:1; transform: translateY(0) scale(1) }
}

/* Left media area */
.detail-media{ 
  position: relative; 
  border:1px solid var(--border); 
  border-radius: 12px; 
  overflow: hidden; 
  background:#f7f7f7;
  display: flex;
  flex-direction: column;
}

.media-main {
  flex: 1;
  min-height: 0;
  position: relative;
}

.media-viewport{ 
  width:100%; 
  height:100%; 
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-viewport.zoomed {
  overflow: auto;
  cursor: grab;
}

.media-viewport.zoomed:active {
  cursor: grabbing;
}

/* Thumbnail Gallery */
.media-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--border);
  min-height: 80px;
  max-height: 100px;
}

.media-thumbnails.hidden {
  display: none;
}

.thumb-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  background: white;
}

.thumb-item:hover {
  border-color: #aaa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.thumb-item.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#detail-image{ 
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; 
  transition: transform 0.3s ease;
  cursor: zoom-in;
  display: block;
}
#detail-image.zoomed {
  transform: scale(2);
  cursor: zoom-out;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}
.media-hint{ position:absolute; left:12px; bottom:10px; font-size:12px; color:#666; background:rgba(255,255,255,.85); padding:4px 8px; border-radius:999px; }

/* Image Slider Navigation */
.nav-arrow {
  display: none !important; /* fully hidden */
}

.nav-arrow:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
  left: 16px;
}

.nav-arrow.next {
  right: 16px;
}

.nav-arrow:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

/* Page Indicator */
.page-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
  display: none;
}

.page-indicator:not(:empty) {
  display: block;
}

/* Right content */
.detail-body{ 
  display:flex; 
  flex-direction:column; 
  gap:12px; 
  height:100%; 
  overflow-y: auto;
  overflow-x: hidden;
}
.detail-topbar{ 
  display:flex; 
  justify-content:space-between; 
  align-items: center;
}

.detail-nav {
  display: flex;
  gap: 8px;
}

.btn-nav {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #555;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-nav:hover:not(:disabled) {
  background: #e8e8e8;
  border-color: #bbb;
  color: #222;
}

.btn-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.detail-title{ margin:4px 0 0; font-size:20px; line-height:1.25; }
.detail-meta{ display:flex; flex-direction:column; gap:4px; color:#666; font-size:13px; }
.detail-meta .year{ font-weight:600; color:#333; }
.detail-meta .topic-line{ font-size:12px; color:#888; border-bottom:1px solid #e6e6e6; padding-bottom:6px; }

/* small badge for externally assigned topic (e.g., Smithsonian) */
.meta-note { margin-top:6px; }
.note-link { margin-top:6px; }
.chip-row{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{ padding:4px 8px; border-radius:999px; background:#f4f4f4; border:1px solid #e6e6e6; font-size:12px; }
.detail-desc{ 
  overflow: visible;
  padding-right:6px; 
  line-height:1.65; 
  font-size:14px; 
  color: #333;
}
.detail-desc p {
  margin: 0 0 12px 0;
  line-height: 1.65;
}
.detail-desc p:last-child {
  margin-bottom: 0;
}

/* Field sections (People, Collection, Type) */
.detail-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-section {
  padding: 10px 12px;
  background: #fafbfc;
  border-left: 3px solid var(--border);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.field-section.hidden {
  display: none;
}

.field-section h4 {
  margin: 0 0 6px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-section p {
  margin: 0 0 4px 0;
  line-height: 1.5;
}

.field-section p:last-child {
  margin-bottom: 0;
}

.field-section p.meta-detail {
  font-size: 12px;
  color: #666;
  padding: 3px 0;
}

.field-section em {
  font-style: italic;
  color: #777;
  letter-spacing: 0.8px;
}

.field-section p {
  margin: 0;
  color: #333;
  font-size: 13px;
}

.field-section a {
  color: var(--accent);
  text-decoration: none;
}

.field-section a:hover {
  text-decoration: underline;
}

/* Topics mix */
.detail-bars h4{ margin:8px 0 4px; font-size:13px; color:#666; }
#detail-bars-wrap{ display:flex; flex-direction:column; gap:6px; }
.detail-bar{ display:flex; align-items:center; gap:8px; }
.detail-bar .label{ width:92px; font-size:12px; color:#555; }
.detail-bar .track{ height:8px; background:#f2f2f2; border-radius:4px; flex:1; position:relative; overflow:hidden; }
.detail-bar .fill{ position:absolute; left:0; top:0; bottom:0; width:0%; border-radius:4px; }

/* Description keywords highlight */
.detail-desc mark{
  background: #fff2a8; padding:0 2px; border-radius:3px;
}

/* Responsive */
@media (max-width: 980px){
  .detail-card{ grid-template-columns: 1fr; height: 84vh; }
  .media-hint{ display:none; }
}


/* Highlight unified styles */
.detail-desc mark, mark[data-topic]{
  padding: 0 .15em;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: none;
  border: 0;
}

/* Topic background colors in detail card (40% alpha) */
.detail-desc mark[data-topic="Military"],  .detail-title mark[data-topic="Military"]  { background: #FA846866; }
.detail-desc mark[data-topic="Society"],   .detail-title mark[data-topic="Society"]   { background: #53ADDE66; }
.detail-desc mark[data-topic="Political"], .detail-title mark[data-topic="Political"] { background: #FFC97066; }
.detail-desc mark[data-topic="Religion"],  .detail-title mark[data-topic="Religion"]  { background: #68C89E66; }
.detail-desc mark[data-topic="Business"],  .detail-title mark[data-topic="Business"]  { background: #6886C866; }
.detail-desc mark[data-topic="Other"],     .detail-title mark[data-topic="Other"]     { background: #B0B0B066; }



/* Sidepanel top toolbar (below Order label) */
.side-toolbar{
  display:flex;
  justify-content:flex-start;
  margin-bottom:12px;
  gap:5px;
}
/* small button variant in stats bar */
.stats-bar .btn.small { font-size:0.85rem; padding:6px 10px; margin-left:8px; }


.meta { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; margin:6px 0 10px; }
.year { font-weight:600; color:#666; margin-right:6px; }

.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-size:12px; line-height:1; border:1px solid #e6e6e6; background:#f7f7f7; color:#333; }
.chip-outline { background:#fff; border-color:#ddd; color:#555; }

/* Common */
/* Button active / dimming */
.btn-row .btn{
  transition: all .2s ease;
  box-shadow: none;
  opacity: 1;
  outline: none;
}
.btn.active{ outline: none !important; }

/* Detail card frame clipping */
.detail-card{ overflow:hidden; }
.media-viewport{ 
  border-radius:12px; 
  overflow:hidden; 
  pointer-events: auto; /* enable pointer events */
}

/* Tooltip typography adjustments */
.tip .t1{ font-weight:600; margin-bottom:3px; font-size:12px; }
.tip .t2{ font-size:11px; color:#cbd3e1; }
.tip .t3{ font-size:11px; color:#cbd3e1; line-height:1.4; }


/* === Landing Page === */
.landing {
  position: fixed; inset: 0;
  background: #ffffff;
  color: #111;
  font-family: "Space Grotesk", sans-serif;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  z-index: 1000;
  display: block;
}

/* Minimal grid shadow background */
.grid-shadow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.04) 0px,
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.04) 0px,
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px,
      transparent 30px
    );
}

.landing section {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  text-align: center;
  padding: 0 2rem;
}

.landing .logo {
  font-family: "Crimson Text", serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.landing .title {
  font-size: 4rem;
  margin: 0;
}

.landing .subtitle {
  font-size: 1.1rem;
  color: #888;
  max-width: 500px;
  margin: 1rem 0 2rem 0;
}

/* Enter button in hero */
.btn-enter {
  background: #ffffff;
  color: #111;
  border: 1px solid #111;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.btn-enter:hover {
  background: #111;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-cue {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.4;
  animation: float 2s ease-in-out infinite;
  position: fixed;
  bottom: 40px;
  transition: opacity 0.3s ease;
}

/* Hide scroll cue when not in hero view */
.landing:not(.hero-visible) .scroll-cue {
  opacity: 0;
  pointer-events: none;
}

@keyframes float { 0%,100%{transform:translateY(0);}50%{transform:translateY(8px);} }

.landing h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.landing p {
  max-width: 600px;
  color: #444;
  line-height: 1.6;
}

/* === Landing Page - How to Read Section === */
.howto-illustration {
  height: 180px;
  width: auto;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.howto h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* === Landing Page - About Section with Auto Slideshow === */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.about-image-container {
  width: 100%;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  margin-bottom: 0;
}

.about-slideshow {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  object-fit: contain;
  transition: opacity 0.5s ease;
}

.about-text {
  text-align: center;
  max-width: 600px;
  position: relative;
}

.about-text h2 {
  margin: 0 0 0.6rem;
}

.about-text p {
  margin-top: 1.5rem;
}


/* Mini legend styles used on the landing How-to-Read color guide */
.howto-color { padding: 32px 0; }
.howto-color .howto-illustration { height: 120px; margin-bottom: 0.6rem; }
.howto-color h2 { margin: 0.4rem 0 0.6rem; }
.mini-legend { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:12px; column-gap:6px;}
.mini-legend .legend-item { display:flex; align-items:center; gap:8px; font-size:13px; color:#333; padding:6px 8px; }
.mini-legend .legend-dot { width:14px; height:14px; border-radius:3px; display:inline-block; }


