/* article.css — shared styles for per-article SEO pages
   Matches the look and feel of index-35.html (IPN Progress Report)
   Deploy to: css/article.css                                         */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #f4f5f7;
  color: #1a1a2e;
  line-height: 1.6;
}
a { color: #0057a8; text-decoration: none; }
a:hover { text-decoration: underline; color: #003d78; }

/* ===== NASA/JPL BANNER ===== */
.nasa-banner {
  background: #0b3d91;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 7px 24px;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.nasa-banner .nasa-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.15);
  padding: 2px 10px;
  border-radius: 3px;
}
.nasa-banner .divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.nasa-banner .banner-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.nasa-banner .banner-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.77rem;
}
.nasa-banner .banner-links a:hover { color: #fff; text-decoration: underline; }

/* ===== SITE NAV ===== */
.site-nav {
  background: #fff;
  border-bottom: 2px solid #0057a8;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: #333;
  font-size: 0.82rem;
  padding: 12px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover {
  color: #0057a8;
  border-bottom-color: #0057a8;
  text-decoration: none;
}

/* ===== ARTICLE CONTAINER ===== */
.article-container {
  max-width: 860px;
  margin: 28px auto 48px;
  padding: 0 16px;
}
.article-card {
  background: #fff;
  border: 1px solid #dde1e9;
  border-radius: 6px;
  overflow: hidden;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
  background: linear-gradient(135deg, #0b3d91 0%, #0057a8 60%, #1a78c2 100%);
  color: #fff;
  padding: 26px 28px 22px;
}
.article-volume-line {
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-bottom: 12px;
}
.article-volume-line a {
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.article-volume-line a:hover { opacity: 1; text-decoration: underline; }
.article-volume-line .sep { opacity: 0.5; margin: 0 6px; }
.article-title-h1 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.article-title-h1 a {
  color: #fff;
  transition: opacity 0.15s;
}
.article-title-h1 a:hover { opacity: 0.88; text-decoration: underline; }
.article-authors-line {
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.5;
}
.article-date-line {
  font-size: 0.82rem;
  opacity: 0.72;
  margin-top: 8px;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  padding: 22px 28px 28px;
}

/* ===== ACTION BAR ===== */
.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef0f5;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #c0c7d4;
  background: #f4f6fc;
  color: #0057a8;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.action-btn:hover { background: #dde5f5; text-decoration: none; }
.action-btn.pdf-btn {
  background: #cc0000;
  color: #fff;
  border-color: #cc0000;
}
.action-btn.pdf-btn:hover { background: #990000; border-color: #990000; }
.action-btn .icon { font-size: 1rem; }

/* ===== SECTIONS ===== */
.section-heading {
  font-size: 0.76rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  margin-top: 22px;
}
.section-heading:first-child { margin-top: 0; }

/* ===== CITATION PANEL ===== */
.cite-section {
  display: none;
  margin-bottom: 22px;
}
.cite-section.open { display: block; }
.cite-panel {
  background: #f8f9fc;
  border: 1px solid #dde1e9;
  border-radius: 5px;
  padding: 14px 18px;
  margin-top: 8px;
}
.cite-tabs-header {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #c0c7d4;
  margin-bottom: 10px;
}
.cite-tab-btn {
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  background: none;
  color: #666;
  cursor: pointer;
  position: relative;
  bottom: -1px;
  transition: color 0.15s, background 0.15s;
}
.cite-tab-btn:hover:not(.active) { background: #eef2ff; color: #0057a8; }
.cite-tab-btn.active {
  background: #fff;
  border-color: #c0c7d4;
  border-bottom-color: #fff;
  color: #0b3d91;
}
.cite-tab-panel { display: none; }
.cite-tab-panel.active { display: block; }
.citation-text {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.65;
}
.citation-pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.76rem;
  color: #222;
  line-height: 1.55;
  white-space: pre;
  overflow-x: auto;
  background: #f0f2f8;
  border-radius: 3px;
  padding: 8px 11px;
  margin: 0;
}
.cite-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.copy-btn, .download-btn {
  padding: 4px 13px;
  font-size: 0.77rem;
  background: #fff;
  border: 1px solid #b0bbd4;
  border-radius: 3px;
  cursor: pointer;
  color: #0057a8;
  font-weight: 600;
  transition: background 0.15s;
}
.copy-btn:hover, .download-btn:hover { background: #eef2ff; }
.copy-btn.copied { background: #e6f4ea; border-color: #4caf50; color: #2e7d32; }

/* ===== ABSTRACT ===== */
.abstract-text {
  font-size: 0.92rem;
  color: #222;
  line-height: 1.75;
  margin-bottom: 4px;
}

/* ===== KEYWORDS ===== */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.keyword-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0057a8;
  background: #eef2ff;
  border: 1px solid #c8d6f0;
  border-radius: 3px;
  padding: 2px 9px;
}

/* ===== DETAILS ===== */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
  font-size: 0.84rem;
  color: #333;
  margin-top: 6px;
}
.details-grid dt {
  font-weight: 600;
  color: #555;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.details-grid dd { margin-bottom: 8px; }

/* ===== FOOTER ===== */
footer {
  background: #1a1f36;
  color: #aab2c8;
  padding: 26px 24px 14px;
  font-size: 0.79rem;
  line-height: 1.8;
  margin-top: 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.83rem;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.footer-col a { color: #7ba3d4; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #2d3553;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-wrap: wrap;
  color: #6b7796;
  font-size: 0.74rem;
}
.footer-bottom a { color: #6b7796; }
.footer-bottom a:hover { color: #aab2c8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .article-header { padding: 20px 18px 16px; }
  .article-title-h1 { font-size: 1.15rem; }
  .article-body { padding: 16px 18px 22px; }
  .details-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 18px; }
  .nasa-banner { flex-wrap: wrap; gap: 8px; }
  .site-nav { flex-wrap: wrap; gap: 6px; }
}
