:root {
  --ocean-900: #0f2d3a;
  --ocean-700: #1f4d5f;
  --teal-500: #2f7c8f;
  --parchment: #f4efe3;
  --ink: #1d2125;
  --brass: #b08d57;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
}

a {
  color: var(--ocean-700);
}

header {
  position: sticky;
  top: 0;
  background: var(--ocean-900);
  color: var(--white);
  z-index: 10;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.menu-toggle {
  display: none;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.hero {
  background: linear-gradient(rgba(15, 45, 58, 0.7), rgba(47, 124, 143, 0.7)), url('/assets/images/hero-lighthouse.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 4rem 2.5rem;
  border-radius: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: .25rem .6rem;
  background: var(--brass);
  color: var(--ocean-900);
  border-radius: 999px;
  font-size: .9rem;
  margin-bottom: .5rem;
  font-weight: 700;
}

.cta-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  background: var(--brass);
  color: #111;
  text-decoration: none;
  padding: .6rem .9rem;
  border-radius: 8px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.btn.secondary {
  background: #dfe8eb;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2rem;
}

.partner-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(15, 45, 58, 0.08);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(15, 45, 58, 0.1);
  border-color: var(--teal-500);
}

.partner-card-header {
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.partner-card h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: var(--ocean-900);
  line-height: 1.2;
}

.partner-card-meta {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.partner-region {
  font-size: 0.85rem;
  color: var(--ocean-700);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.partner-card-body {
  padding: 1rem 1.5rem 1.5rem;
  flex-grow: 1;
}

.partner-card-body p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.partner-card-footer {
  padding: 1rem 1.5rem;
  background: rgba(15, 45, 58, 0.02);
  border-top: 1px solid rgba(15, 45, 58, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-500);
  transition: background 0.2s ease;
}

.partner-card:hover .partner-card-footer {
  background: rgba(47, 124, 143, 0.05);
}

.partner-card-status {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.partner-card-status.active {
  background: rgba(47, 124, 143, 0.1);
  color: var(--teal-500);
  border: 1px solid rgba(47, 124, 143, 0.3);
}

/* Reading Pathways Cards Improvements */
.reading-path-card {
  position: relative;
  padding: 10px;
  /* Gradient border width */
  margin: 2rem 0;
  border-radius: 28px;
  background: var(--path-gradient, linear-gradient(135deg, var(--ocean-900), var(--teal-500)));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.reading-path-card .card-content {
  background: var(--white);
  border-radius: 20px;
  padding: 4rem 2rem 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reading-path-card h3 {
  color: var(--ocean-900);
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.2;
}

.reading-path-card p {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  max-width: 90%;
  line-height: 1.5;
}

.reading-path-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
  max-width: 340px;
  margin: auto 0 0;
}

.reading-path-card li {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
}

.reading-path-card li a {
  text-decoration: none;
  color: var(--ocean-700);
  transition: all 0.25s ease;
  border-bottom: 2px solid rgba(31, 77, 95, 0.1);
}

.reading-path-card li a:hover {
  color: var(--teal-500);
  border-bottom-color: var(--teal-500);
  text-decoration: none;
}

.path-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 4px solid var(--brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
  overflow: hidden;
}

.path-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Partners Page Styles */
.partner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-pill {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 45, 58, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 45, 58, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.stat-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 45, 58, 0.08);
  border-color: var(--teal-500);
}

.stat-pill .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ocean-700);
  font-weight: 700;
}

.stat-pill .count {
  color: var(--ocean-900);
  font-size: 2rem;
  font-family: Georgia, serif;
  font-weight: 700;
}

.definitions-banner {
  background: linear-gradient(135deg, var(--ocean-900), #163a4a);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(15, 45, 58, 0.15);
  position: relative;
  overflow: hidden;
}

.definitions-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brass);
}

.definitions-banner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.definitions-banner li {
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.definitions-banner li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: bold;
}

.definitions-banner li strong {
  color: var(--brass);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.transparency-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  margin-bottom: 4rem;
  gap: 2rem;
  border: 1px solid rgba(176, 141, 87, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.strip-content {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ocean-900);
  font-weight: 600;
}

.strip-item span:first-child {
  font-size: 1.2rem;
  color: var(--brass);
}

@media (max-width: 850px) {
  .transparency-strip {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .strip-content {
    justify-content: center;
    gap: 1.5rem;
  }
}

/* Stories Hub Specific Styles */
.stories-hero {
  position: relative;
  background: linear-gradient(rgba(15, 45, 58, 0.6), rgba(15, 45, 58, 0.8)), url('/assets/images/stories-hero.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 6rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stories-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.stories-hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.featured-section {
  margin-bottom: 4rem;
}

.featured-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.featured-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.featured-content h4 {
  margin: 0 0 0.5rem;
  color: var(--ocean-900);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.featured-content p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.category-section {
  margin-bottom: 4rem;
}

.category-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-tile {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

.category-tile:hover {
  background: #fafafa;
  border-color: var(--teal-500);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-tile:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 4px;
}

.category-icon-wrap {
  background: var(--parchment);
  color: var(--ocean-700);
  padding: 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  color: var(--ocean-900);
}

.category-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  padding-right: 1.5rem;
}

.tile-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brass);
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-tile:hover .tile-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

@media (max-width: 600px) {
  .stories-hero h1 {
    font-size: 2.5rem;
  }

  .category-tile {
    padding: 1.25rem;
  }
}

.callout {
  border-left: 4px solid var(--brass);
  background: #fff8ea;
  padding: .8rem 1rem;
}

.chapter-preview {
  margin-top: 1.5rem;
  border: 1px solid var(--brass);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.chapter-preview summary {
  padding: 1rem;
  background: var(--ocean-900);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  outline: none;
}

.chapter-preview summary::-webkit-details-marker {
  display: none;
}

.chapter-preview .content {
  padding: 1.5rem;
  border-top: 1px solid var(--brass);
}

.pill {
  display: inline-block;
  padding: .3rem .8rem;
  background: var(--ocean-700);
  color: var(--white);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.what-is-nereidonia h3 {
  font-size: 1.1rem;
  margin-top: 0;
  color: var(--ocean-900);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border: 1px solid #d5d8dc;
  padding: .55rem;
  text-align: left;
}

footer {
  background: #0c1f29;
  color: #dbe5ea;
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

footer a {
  color: #e2eef5;
}

form {
  display: grid;
  gap: .7rem;
  max-width: 560px;
}

input,
select,
textarea {
  width: 100%;
  padding: .6rem;
  border: 1px solid #b6bdc3;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
    background: transparent;
    border: 1px solid #d2dee4;
    color: #fff;
    padding: .35rem .5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
  }

  .nav-wrap {
    padding: 0.5rem 0.875rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .logo img {
    height: 64px !important;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.open {
    display: block;
  }

  nav.open ul {
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.5rem;
  }

  nav.open ul li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  nav.open ul li:last-child {
    border-bottom: none;
  }

  nav.open ul li a {
    display: block;
    padding: 0.7rem 0.25rem;
    font-size: 0.95rem;
  }

  main {
    padding: 1.25rem 0.875rem 2.5rem;
  }

  .hero {
    padding: 2.5rem 1.25rem;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .stories-hero {
    padding: 3rem 1.25rem;
    margin-bottom: 2rem;
  }

  .stories-hero h1 {
    font-size: 2rem;
  }

  .stories-hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .cta-row {
    gap: 0.5rem;
  }

  .grid {
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .card-img {
    height: 160px;
  }

  .footer-wrap {
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
  }

  .reading-path-card .card-content {
    padding: 3.5rem 1.25rem 2rem;
  }

  .reading-path-card h3 {
    font-size: 1.4rem;
  }

  .reading-path-card p {
    font-size: 1rem;
  }

  .partner-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin: 2rem 0;
  }

  .stat-pill {
    padding: 1.1rem 0.75rem;
  }

  .stat-pill .count {
    font-size: 1.5rem;
  }

  .definitions-banner {
    padding: 1.5rem 1.25rem;
  }

  .chapter-preview .content {
    padding: 1.25rem;
  }

  table {
    font-size: 0.88rem;
  }

  th, td {
    padding: 0.45rem;
  }
}

@media (max-width: 460px) {
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .partner-stats {
    grid-template-columns: 1fr;
  }
}
/* Cookie consent banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ocean-900);
  color: var(--white);
  border-top: 3px solid var(--brass);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
}
.cookie-consent-banner.visible {
  transform: translateY(0);
}
.cookie-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-consent-text {
  flex: 1 1 320px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-consent-text a {
  color: var(--parchment);
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cookie-consent-btn {
  font: inherit;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  border: 1px solid var(--brass);
  cursor: pointer;
  font-weight: 600;
}
.cookie-consent-decline {
  background: transparent;
  color: var(--white);
}
.cookie-consent-decline:hover,
.cookie-consent-decline:focus {
  background: rgba(255, 255, 255, 0.08);
}
.cookie-consent-accept {
  background: var(--brass);
  color: var(--ocean-900);
}
.cookie-consent-accept:hover,
.cookie-consent-accept:focus {
  background: #c9a36b;
}
@media (max-width: 600px) {
  .cookie-consent-inner { flex-direction: column; align-items: stretch; }
  .cookie-consent-actions { justify-content: flex-end; }
}

/* ============================================================
   Stories listing pages
   Used by /stories/all.html, anthology.html, exploratory.html,
   time-period.html, culture.html
   ============================================================ */

.listing-hero {
  background: linear-gradient(135deg, var(--ocean-900) 0%, #163a4a 60%, #1a4a5e 100%);
  color: var(--white);
  padding: 3.5rem 2.5rem;
  border-radius: 16px;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}
.listing-hero::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 5px; height: 100%; background: var(--brass);
}
.listing-hero::after {
  content: ""; position: absolute; bottom: -80px; right: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 45px solid rgba(176,141,87,0.07); pointer-events: none;
}
.listing-hero .eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brass); background: rgba(176,141,87,0.12);
  border: 1px solid rgba(176,141,87,0.3);
  padding: 0.3rem 0.75rem; border-radius: 4px; margin-bottom: 0.85rem;
}
.listing-hero h1 {
  font-family: Georgia, serif; font-size: 2.25rem;
  margin: 0 0 0.6rem; line-height: 1.15; color: var(--white);
}
.listing-hero p {
  font-size: 1rem; opacity: 0.85; max-width: 640px;
  margin: 0; line-height: 1.65;
}

.listing-filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.5rem; margin-bottom: 2.25rem;
  background: var(--white); border-radius: 12px;
  border: 1px solid rgba(15,45,58,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  align-items: center;
}
.listing-filter-bar a {
  display: inline-flex; align-items: center;
  padding: 0.55rem 0.95rem; border-radius: 7px;
  text-decoration: none; font-weight: 600;
  font-size: 0.85rem; color: var(--ocean-700);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.listing-filter-bar a:hover { background: rgba(47,124,143,0.08); }
.listing-filter-bar a.active {
  background: var(--ocean-900); color: var(--white);
}
.listing-filter-bar a.home {
  color: var(--brass); margin-right: auto;
}
.listing-filter-bar a.home:hover {
  background: rgba(176,141,87,0.1);
}

.listing-section { margin-bottom: 3rem; }
.listing-section-label {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.listing-section-label-text {
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brass); white-space: nowrap;
}
.listing-section-label-line {
  flex: 1; height: 1px; background: rgba(15,45,58,0.1);
}
.listing-section-label-count {
  font-size: 0.72rem; font-weight: 700; color: #888;
  letter-spacing: 0.04em; white-space: nowrap;
}

.listing-grid {
  display: flex; flex-direction: column; gap: 1rem;
}

.listing-row {
  background: var(--white); border-radius: 12px;
  border: 1px solid rgba(15,45,58,0.09);
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.listing-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: rgba(47,124,143,0.3);
}
.listing-row.available { border-left: 4px solid #2a7a1a; }
.listing-row.forthcoming { border-left: 4px solid rgba(15,45,58,0.2); opacity: 0.85; }
.listing-row.reference { border-left: 4px solid var(--brass); opacity: 0.92; }

.listing-cover {
  width: 80px; aspect-ratio: 2/3;
  border-radius: 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block; object-fit: cover;
}
.listing-cover.placeholder {
  background: linear-gradient(135deg, var(--ocean-900), var(--ocean-700));
  display: flex; align-items: center; justify-content: center;
}
.listing-cover.placeholder.reference {
  background: linear-gradient(135deg, #2a3a4a, #4a5a6a);
}
.listing-cover.placeholder::after {
  content: "✦"; color: rgba(255,255,255,0.25);
  font-size: 1.6rem; font-family: Georgia, serif;
}

.listing-info-top {
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 0.3rem; flex-wrap: wrap;
}
.listing-title {
  font-family: Georgia, serif; font-size: 1.05rem;
  color: var(--ocean-900); font-weight: 700; margin: 0;
}
.listing-title a {
  color: inherit; text-decoration: none;
}
.listing-title a:hover { color: var(--teal-500); }
.listing-title-num {
  color: var(--brass); font-weight: 700; margin-right: 0.35rem;
}
.listing-meta {
  font-size: 0.78rem; color: var(--ocean-700);
  margin: 0 0 0.35rem; font-weight: 600;
}
.listing-desc {
  font-size: 0.875rem; color: #555;
  margin: 0; line-height: 1.5;
}

.listing-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.18rem 0.5rem; border-radius: 4px;
  white-space: nowrap;
}
.listing-badge.available { color: #1a5010; background: rgba(26,80,16,0.1); border: 1px solid rgba(26,80,16,0.2); }
.listing-badge.free { color: #1a4a80; background: rgba(26,74,128,0.08); border: 1px solid rgba(26,74,128,0.2); }
.listing-badge.forthcoming { color: #666; background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.1); }
.listing-badge.reference { color: #8a6a37; background: rgba(176,141,87,0.1); border: 1px solid rgba(176,141,87,0.3); }

.listing-row-cta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 0.4rem; white-space: nowrap;
}
.btn-listing-buy {
  display: inline-block; background: var(--brass); color: #fff;
  font-weight: 800; padding: 0.5rem 1rem;
  border-radius: 7px; text-decoration: none; font-size: 0.78rem;
  transition: background 0.2s ease;
}
.btn-listing-buy:hover { background: #9a7a47; }
.btn-listing-download {
  display: inline-block; background: rgba(26,74,128,0.1);
  color: #1a4a80; border: 1px solid rgba(26,74,128,0.25);
  font-weight: 800; padding: 0.5rem 1rem;
  border-radius: 7px; text-decoration: none; font-size: 0.78rem;
  transition: background 0.2s ease;
}
.btn-listing-download:hover { background: rgba(26,74,128,0.18); }
.btn-listing-detail {
  font-size: 0.76rem; color: var(--teal-500);
  text-decoration: none; font-weight: 600;
}
.btn-listing-detail:hover { text-decoration: underline; }
.listing-row-note {
  font-size: 0.75rem; color: #999; font-style: italic;
}

/* Card-style entries used on exploratory.html */
.listing-card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.listing-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid rgba(15,45,58,0.09);
  border-left: 4px solid var(--brass);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.listing-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.listing-card .card-eyebrow {
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brass); margin-bottom: 0.55rem;
}
.listing-card h3 {
  font-family: Georgia, serif; color: var(--ocean-900);
  margin: 0 0 0.45rem; font-size: 1.08rem; line-height: 1.25;
}
.listing-card-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.7rem; align-items: center;
}
.listing-wordcount {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  padding: 0.18rem 0.55rem; border-radius: 999px;
  background: rgba(15,45,58,0.06); color: var(--ocean-700);
  white-space: nowrap;
}
.listing-card p.desc {
  font-size: 0.88rem; color: #555;
  margin: 0; line-height: 1.5;
}

/* Section cards (time-period.html / culture.html) */
.listing-group-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.listing-group {
  background: var(--white); border-radius: 14px;
  border: 1px solid rgba(15,45,58,0.09);
  border-left: 4px solid var(--brass);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}
.listing-group h3 {
  font-family: Georgia, serif; color: var(--ocean-900);
  margin: 0 0 0.35rem; font-size: 1.2rem;
}
.listing-group .group-lead {
  font-size: 0.85rem; color: #666; line-height: 1.5;
  margin: 0 0 1rem; font-style: italic;
}
.listing-group ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.listing-group li {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.55rem 0.7rem; border-radius: 7px;
  background: rgba(15,45,58,0.03); flex-wrap: wrap;
  font-size: 0.92rem; line-height: 1.4;
}
.listing-group li:hover { background: rgba(15,45,58,0.06); }
.listing-group li a {
  color: var(--ocean-900); text-decoration: none;
  font-weight: 600; font-style: italic;
}
.listing-group li a:hover { color: var(--teal-500); text-decoration: underline; }
.listing-group li .year {
  font-size: 0.76rem; color: var(--ocean-700); font-weight: 600;
  font-style: normal;
}
.listing-group li .ref-only {
  color: #555; font-style: italic; font-weight: 600;
  flex: 1 1 auto;
}
.listing-group li .arrow {
  margin-left: auto; color: var(--brass);
  font-weight: 700; opacity: 0; transition: opacity 0.15s ease;
}
.listing-group li:hover .arrow { opacity: 0.8; }

/* Compact Codex spotlight (used on all/anthology lists) */
.codex-mini-splash {
  background: linear-gradient(135deg, #1a3a7a 0%, #2a5ab0 100%);
  color: var(--white); border-radius: 14px;
  padding: 1.5rem 1.75rem; margin-bottom: 2.5rem;
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: 1.4rem; align-items: center;
  box-shadow: 0 8px 24px rgba(26,58,122,0.2);
  position: relative; overflow: hidden;
}
.codex-mini-splash::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--brass);
}
.codex-mini-splash img {
  width: 88px; border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  display: block;
}
.codex-mini-splash h3 {
  font-family: Georgia, serif; margin: 0 0 0.3rem;
  font-size: 1.15rem; line-height: 1.25;
}
.codex-mini-splash p {
  margin: 0; font-size: 0.88rem;
  opacity: 0.88; line-height: 1.5;
}
.codex-mini-splash .eyebrow {
  display: inline-block; font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #ffd685; background: rgba(255,214,133,0.12);
  border: 1px solid rgba(255,214,133,0.3);
  padding: 0.18rem 0.5rem; border-radius: 4px;
  margin-bottom: 0.55rem;
}
.btn-codex-mini {
  display: inline-block; background: var(--white); color: #1a3a7a;
  font-weight: 800; padding: 0.65rem 1.15rem;
  border-radius: 8px; text-decoration: none; font-size: 0.82rem;
  white-space: nowrap; transition: transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-codex-mini:hover { transform: translateY(-2px); }

@media (max-width: 600px) {
  .listing-hero { padding: 2.25rem 1.25rem; border-radius: 12px; margin-bottom: 1.25rem; }
  .listing-hero h1 { font-size: 1.65rem; }
  .listing-hero p { font-size: 0.92rem; }
  .listing-filter-bar {
    padding: 0.4rem; gap: 0.3rem; margin-bottom: 1.5rem;
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* Subtle right-edge fade hints that the bar is horizontally scrollable. */
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    scrollbar-width: none;
  }
  .listing-filter-bar::-webkit-scrollbar { display: none; }
  .listing-filter-bar a { padding: 0.55rem 0.8rem; font-size: 0.78rem; min-height: 40px; scroll-snap-align: center; }
  .listing-filter-bar a.home { margin-right: 0; }
  .listing-section { margin-bottom: 2rem; }
  .listing-row {
    grid-template-columns: 70px 1fr;
    grid-template-areas: "cover info" "cta cta";
    gap: 0.75rem 0.95rem;
    padding: 0.95rem;
    align-items: start;
  }
  .listing-cover, .listing-cover.placeholder { width: 70px; grid-area: cover; }
  .listing-info { grid-area: info; }
  .listing-row-cta {
    grid-area: cta;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.7rem;
    margin-top: 0.2rem;
    border-top: 1px solid rgba(15,45,58,0.06);
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .listing-title { font-size: 0.98rem; line-height: 1.25; }
  .listing-meta { font-size: 0.74rem; }
  .listing-desc { font-size: 0.82rem; line-height: 1.45; }
  .btn-listing-buy, .btn-listing-download {
    padding: 0.55rem 0.9rem; font-size: 0.76rem;
    min-height: 40px; display: inline-flex; align-items: center;
  }
  .codex-mini-splash {
    grid-template-columns: 1fr; text-align: center;
    padding: 1.5rem 1.25rem; gap: 1rem;
  }
  .codex-mini-splash img { margin: 0 auto; }
  .listing-group-grid { gap: 1.25rem; }
  .listing-group { padding: 1.25rem 1.25rem; }
  .listing-group h3 { font-size: 1.1rem; }
  .listing-card-grid { gap: 1rem; }
}

/* ============================================================
   Time Period timeline (stories/time-period.html)
   ============================================================ */

.timeline-wrap {
  margin: 0 0 2.5rem;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0.5rem 0 0.5rem 140px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 120px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom,
    rgba(176,141,87,0.18) 0%,
    var(--brass) 5%,
    var(--brass) 95%,
    rgba(176,141,87,0.18) 100%);
  border-radius: 2px;
}

.timeline-current-era {
  position: sticky;
  top: 130px;
  margin-left: -140px;
  padding: 0.5rem 0.95rem;
  background: var(--ocean-900);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 7px;
  border-left: 3px solid var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  margin-bottom: 0.85rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.timeline-current-era.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.timeline-current-era .era-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.25);
}
.timeline-current-era .era-range {
  font-weight: 600; opacity: 0.7; font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-era-band {
  position: relative;
  list-style: none;
  margin: 1.75rem 0 1rem -140px;
  padding: 0.6rem 0.95rem 0.6rem 140px;
  background: linear-gradient(to right,
    rgba(176,141,87,0.18) 0%,
    rgba(176,141,87,0.05) 60%,
    transparent 100%);
  border-left: 4px solid var(--brass);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.timeline-era-band:first-child { margin-top: 0; }
.timeline-era-band .timeline-era-name {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ocean-900);
}
.timeline-era-band .timeline-era-range {
  font-size: 0.74rem;
  color: #888;
  font-family: Inter, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-entry {
  position: relative;
  list-style: none;
  margin: 0 0 0.7rem;
  min-height: 64px;
}
.timeline-entry::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 26px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--parchment);
  box-shadow: 0 0 0 1px rgba(176,141,87,0.45);
  z-index: 2;
}
.timeline-entry::after {
  content: "";
  position: absolute;
  left: -16px;
  top: 33px;
  width: 16px;
  height: 1px;
  background: rgba(176,141,87,0.45);
}
.timeline-entry.reference::before { background: #9a9a9a; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.timeline-entry.available::before { background: #2a7a1a; box-shadow: 0 0 0 1px rgba(26,80,16,0.35); }
.timeline-entry.free::before { background: #1a4a80; box-shadow: 0 0 0 1px rgba(26,74,128,0.35); }
.timeline-entry.spans::before {
  background: var(--ocean-900);
  border-color: var(--brass);
  width: 16px; height: 16px;
  left: -29px;
  top: 25px;
}

.timeline-year {
  position: absolute;
  left: -140px;
  width: 100px;
  top: 20px;
  text-align: right;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ocean-900);
  line-height: 1.2;
}
.timeline-year .year-tag {
  display: block;
  font-style: italic;
  font-size: 0.74rem;
  color: #999;
  font-weight: 600;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.timeline-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "head head"
    "hook arrow";
  gap: 0.4rem 0.9rem;
  background: var(--white);
  border: 1px solid rgba(15,45,58,0.09);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
a.timeline-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.09);
  border-color: rgba(47,124,143,0.35);
  transform: translateY(-1px);
}
.timeline-card.reference {
  border-left: 3px solid var(--brass);
  background: #faf6ec;
}
.timeline-card.available { border-left: 3px solid #2a7a1a; }
.timeline-card.forthcoming { border-left: 3px solid rgba(15,45,58,0.18); }
.timeline-card.free { border-left: 3px solid #1a4a80; }

.timeline-card-head {
  grid-area: head;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.timeline-card-title {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ocean-900);
  line-height: 1.25;
}
.timeline-card.reference .timeline-card-title { color: #4a4a4a; }
.timeline-card-spans {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  background: rgba(176,141,87,0.1);
  border: 1px solid rgba(176,141,87,0.32);
  padding: 0.13rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}
.timeline-card-hook {
  grid-area: hook;
  font-size: 0.83rem;
  color: #5a6470;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.timeline-card-arrow {
  grid-area: arrow;
  align-self: end;
  font-size: 1.1rem;
  color: var(--teal-500);
  font-weight: 700;
  opacity: 0.6;
  transition: transform 0.18s ease, opacity 0.18s ease;
  line-height: 1;
}
a.timeline-card:hover .timeline-card-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Free-PDF spanning entry uses a slightly richer card background */
.timeline-card.free {
  background: linear-gradient(135deg, #ffffff 0%, #f4efe3 100%);
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 44px;
  }
  .timeline::before {
    left: 18px;
  }
  .timeline-current-era {
    margin-left: -44px;
    top: 110px;
    font-size: 0.66rem;
    padding: 0.42rem 0.7rem;
  }
  .timeline-era-band {
    margin: 1.4rem 0 0.85rem -44px;
    padding-left: 44px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .timeline-era-band .timeline-era-name { font-size: 0.98rem; }
  .timeline-era-band .timeline-era-range { font-size: 0.66rem; }
  .timeline-entry { min-height: 0; margin-bottom: 0.85rem; }
  .timeline-entry::before {
    left: -30px;
    width: 11px; height: 11px;
    top: 16px;
  }
  .timeline-entry.spans::before {
    width: 13px; height: 13px;
    left: -31px;
    top: 15px;
  }
  .timeline-entry::after {
    left: -19px;
    top: 21px;
    width: 19px;
  }
  .timeline-year {
    position: static;
    width: auto;
    text-align: left;
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
  }
  .timeline-year .year-tag { display: inline; margin-left: 0.3rem; }
  .timeline-card {
    padding: 0.75rem 0.95rem;
    grid-template-columns: 1fr;
    grid-template-areas: "head" "hook";
    gap: 0.35rem;
  }
  .timeline-card-arrow { display: none; }
  .timeline-card-title { font-size: 0.96rem; }
  .timeline-card-hook {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
  }
}

/* ============================================================
   Culture map (stories/culture.html)
   ============================================================ */

.culture-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}
.culture-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ocean-700);
  border: 1px solid rgba(15,45,58,0.15);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.culture-chip:hover {
  background: rgba(176,141,87,0.08);
  border-color: rgba(176,141,87,0.4);
}
.culture-chip:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.culture-chip.active {
  background: var(--ocean-900);
  color: var(--white);
  border-color: var(--ocean-900);
}
.culture-chip-count {
  font-size: 0.7rem;
  opacity: 0.6;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.culture-chip.active .culture-chip-count { opacity: 0.75; }
.culture-chip.all-chip {
  border-color: rgba(176,141,87,0.5);
  color: var(--brass);
}
.culture-chip.all-chip:hover {
  background: rgba(176,141,87,0.12);
}
.culture-chip.all-chip.active {
  background: var(--brass);
  color: var(--white);
  border-color: var(--brass);
}

.culture-map-wrap {
  position: relative;
  background: #f7eed7;
  border: 1px solid rgba(176,141,87,0.45);
  border-radius: 14px;
  padding: 0.55rem 0.55rem 0.5rem;
  margin: 0 0 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.culture-map-caption {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(15,45,58,0.6);
  text-align: center;
  margin: 0.4rem 0 0;
  letter-spacing: 0.04em;
}
.culture-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 8px;
}

/* Region overlays sit on top of the World_Map.png parchment base.
   Colors are tuned to read against the warm amber background. */
.culture-region {
  fill: rgba(15,45,58,0.18);
  stroke: rgba(15,45,58,0.55);
  stroke-width: 2;
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}
.culture-region.archipelago {
  fill: rgba(15,45,58,0.55);
  stroke: var(--ocean-900);
  stroke-width: 2;
}
.culture-map.has-active .culture-region { opacity: 0.28; }
/* Nereidonian archipelago is the canon's home — keep its outline
   readable in every state, even when another lineage is selected. */
.culture-map .culture-region.archipelago,
.culture-map.has-active .culture-region.archipelago { opacity: 0.85; }
.culture-map.has-active .culture-region.active {
  opacity: 1;
  fill: rgba(15,45,58,0.55);
  stroke: var(--ocean-900);
  stroke-width: 2.5;
}
.culture-map.has-active .culture-region.archipelago.active {
  opacity: 1;
  fill: var(--ocean-900);
  stroke: var(--brass);
  stroke-width: 2.5;
}
.culture-region-label {
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
  fill: rgba(15,45,58,0.85);
  paint-order: stroke;
  stroke: rgba(247,238,215,0.85);
  stroke-width: 3px;
  stroke-linejoin: round;
  text-anchor: middle;
  pointer-events: none;
  transition: fill 0.2s ease, opacity 0.2s ease, font-weight 0.2s ease;
}
.culture-map.has-active .culture-region-label { opacity: 0.4; }
.culture-map.has-active .culture-region-label.active {
  opacity: 1;
  font-weight: 700;
  fill: var(--ocean-900);
}
.culture-ocean-label {
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  fill: rgba(15,45,58,0.32);
  text-anchor: middle;
  letter-spacing: 0.25em;
  pointer-events: none;
}

.culture-list-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: #777;
}
.culture-list-meta strong {
  color: var(--ocean-900);
  font-weight: 700;
}
.culture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.culture-list li.hidden { display: none; }
.culture-row-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid rgba(15,45,58,0.09);
  border-left: 3px solid rgba(15,45,58,0.18);
  border-radius: 9px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
a.culture-row-link:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  border-color: rgba(47,124,143,0.35);
  transform: translateY(-1px);
}
.culture-row-link.available { border-left-color: #2a7a1a; }
.culture-row-link.forthcoming { border-left-color: rgba(15,45,58,0.18); }
.culture-row-link.free { border-left-color: #1a4a80; }
.culture-row-link.reference {
  border-left-color: var(--brass);
  background: #faf6ec;
}
.culture-row-title {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ocean-900);
  line-height: 1.25;
  min-width: 0;
  flex: 1 1 auto;
}
.culture-row-link > .listing-badge,
.culture-row-tag,
.culture-row-year,
.culture-row-arrow { flex: 0 0 auto; }
.culture-row-link.reference .culture-row-title { color: #4a4a4a; }
.culture-row-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brass);
  background: rgba(176,141,87,0.1);
  border: 1px solid rgba(176,141,87,0.3);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.culture-list.lineage-active .culture-row-tag { display: none; }
.culture-row-year {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  white-space: nowrap;
}
.culture-row-arrow {
  font-size: 1.05rem;
  color: var(--teal-500);
  font-weight: 700;
  opacity: 0.6;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
a.culture-row-link:hover .culture-row-arrow {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 600px) {
  .culture-chip { font-size: 0.78rem; padding: 0.42rem 0.75rem; }
  .culture-chip-count { display: none; }
  .culture-map-wrap { padding: 0.7rem 0.55rem 0.55rem; }
  .culture-region-label { font-size: 14px; }
  .culture-row-link {
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    padding: 0.7rem 0.85rem;
  }
  .culture-row-title {
    flex: 1 1 100%;
    font-size: 0.92rem;
    order: 1;
  }
  .culture-row-link > .listing-badge { order: 2; }
  .culture-row-tag { order: 3; }
  .culture-row-year { order: 4; margin-left: auto; }
  .culture-row-arrow { display: none; }
}
