/* Cendere Bridge article specific styles */

/* Title block additions specific to this article */

.subtitle {
  font-size: 18px;
  font-style: italic;
  color: #333333;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.byline {
  font-size: 16px;
  color: #333333;
  font-weight: 600;
  margin-bottom: 0; /* tighten gap before next section */
}

/* Dark mode fixes for title block */
body.dark-mode .main-title { color: var(--dm-text-1); }
body.dark-mode .subtitle { color: var(--dm-text-2); }
body.dark-mode .byline   { color: var(--dm-text-1); }

/* Headings use shared styles from article.css */

/* Body text: match Egypt article (no forced justification) */
p { margin: 16px 0; }

/* Highlight boxes */
.key-finding {
  background-color: #f5f5f5;
  border-left: 4px solid #DAA520;
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
}

.key-finding strong { color: #8B4513; }

.historic-discovery {
  background-color: #fff9e6;
  border-left: 4px solid #DAA520;
  padding: 20px;
  margin: 30px 0;
}

.historic-discovery strong { color: #8B4513; }

/* Figures */
.figure {
  margin: 30px 0;
  text-align: center;
}

.figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.figure-caption {
  margin-top: 15px;
  font-style: italic;
  color: #666;
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
}

.figure-caption strong {
  color: #333333;
  font-weight: 700;
}

/* Layout tweaks (use shared article.css defaults for header spacing) */
.two-column .figure { flex: 1; }

/* Measurements table */
.measurements-table {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.measurements-table table { width: 100%; border-collapse: collapse; }
.measurements-table th, .measurements-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.measurements-table th { background-color: #8B4513; color: white; font-weight: bold; }
.measurements-table tr:nth-child(even) { background-color: #f9f9f9; }

/* References */
.references {
  background: transparent; /* remove white background */
  padding: 0;              /* remove extra padding block */
  border: 0;               /* no border box */
  border-radius: 0;
  margin-top: 40px;        /* keep spacing above section */
  box-shadow: none;        /* remove drop shadow */
}
.references h2 { margin-top: 0; }
.reference-item { margin-bottom: 12px; padding-left: 20px; text-indent: -20px; font-size: 15px; line-height: 1.4; }
.reference-item a { color: #8B4513; text-decoration: underline; transition: color 0.3s ease; }
.reference-item a:hover { color: #DAA520; text-decoration: none; }

/* Appendix */
.appendix {
  background: transparent; /* remove background */
  padding: 0;              /* remove padding box */
  border: 0;               /* no border */
  border-radius: 0;        /* no rounded corners */
  margin-top: 20px;        /* keep spacing */
  box-shadow: none;        /* remove shadow */
}
.appendix ul { padding-left: 20px; }
.appendix li { margin-bottom: 8px; }

/* Responsive behavior inherited from article.css */

/* Audio playlist styles */
.audio-gallery {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.audio-gallery h2 { margin-top: 0; }
.audio-intro { color: #444; margin-bottom: 16px; }
body.dark-mode .audio-intro { color: var(--dm-text-2); }

.playlist { display: grid; grid-template-columns: 1fr; gap: 16px; }
.playlist-main { background: #f8f8f8; border-radius: 10px; padding: 16px; border: 1px solid #e6e6e6; }
.now-playing { margin-top: 8px; font-style: italic; color: #555; }

.playlist-controls { display: flex; gap: 10px; margin-top: 10px; }
.playlist-controls .btn {
  padding: 8px 14px; border: 1px solid #ccc; border-radius: 999px;
  background: #fff; cursor: pointer; font-weight: 600;
}
.playlist-controls .btn:hover { background: #f1f1f1; }

.track-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.track {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 12px;
}
.track.active { border-color: #DAA520; box-shadow: 0 0 0 3px rgba(218,165,32,0.18); }
.track-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline;
  background: transparent; border: 0; text-align: left; cursor: pointer;
}
.track-title { font-weight: 700; color: #0e2d34; }
.track-meta { font-size: 0.85em; color: #666; }
.track-summary { margin: 8px 0 0 0; color: #444; }

@media (min-width: 860px) {
  .playlist { grid-template-columns: 1fr 1fr; }
}

/* --- Dark mode improvements (match Egypt article tone) --- */
body.dark-mode .figure-caption { color: var(--dm-text-2); }
body.dark-mode .figure-caption strong { color: var(--dm-text-1); }

/* Measurements table in dark mode */
body.dark-mode .measurements-table {
  background: var(--dm-surface-1);
  border-color: var(--dm-border);
}
body.dark-mode .measurements-table th {
  background: rgba(242, 208, 133, 0.12);
  color: var(--dm-text-1);
}
body.dark-mode .measurements-table td { border-bottom-color: var(--dm-border); }
body.dark-mode .measurements-table tr:nth-child(even) { background: var(--dm-surface-2); }

/* Callouts */
body.dark-mode .key-finding,
body.dark-mode .historic-discovery {
  background: linear-gradient(135deg, rgba(20,24,36,0.80) 0%, rgba(12,18,32,0.80) 100%);
  border-left-color: #f0c66c;
  color: var(--dm-text-2);
}

/* Audio playlist */
body.dark-mode .audio-gallery {
  background: var(--dm-surface-1);
  border-color: var(--dm-border);
  box-shadow: 0 2px 8px rgba(8, 15, 30, 0.4);
}
body.dark-mode .playlist-main { background: var(--dm-surface-2); border-color: var(--dm-border); }
body.dark-mode .now-playing { color: var(--dm-text-2); }
body.dark-mode .track { background: var(--dm-surface-1); border-color: var(--dm-border); }
body.dark-mode .track-title { color: var(--dm-text-1); }
body.dark-mode .track-meta { color: var(--dm-text-3); }
body.dark-mode .track-summary { color: var(--dm-text-2); }
body.dark-mode .playlist-controls .btn {
  background: rgba(255,255,255,0.08);
  border-color: var(--dm-border);
  color: var(--dm-text-1);
}
body.dark-mode .playlist-controls .btn:hover { background: rgba(255,255,255,0.18); }
