/* sma-v2.css
   Small companion stylesheet for modernized SMAdata content pages. Loaded
   alongside rtdc-v2.css (not instead of it) — this file only adds the
   components rtdc-v2.css doesn't already provide: prose subheadings, a
   data table, notice lists, prominent link buttons, code/pre blocks, a
   side-by-side code comparison table, and the SMAdata_FAQ table-of-contents
   and Q&A layout. Everything else (header, nav, .rtdc-page shell, .rtdc-card,
   footer, base typography) comes from rtdc-v2.css. */

/* ---------- Content typography ---------- */
.sma-page-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 30px 0;
}
.sma-subheading {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 24px 0 10px 0;
}
.sma-content p:first-of-type,
.sma-content .rtdc-card > .sma-subheading:first-child { margin-top: 0; }

.sma-notice-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sma-notice-list li {
  position: relative;
  padding-left: 18px;
  color: var(--gray-700);
  font-size: 13.5px;
  line-height: 1.6;
}
.sma-notice-list li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: var(--gray-500);
}
.sma-notice-alert { color: var(--red-600); }

/* ---------- Data table ---------- */
.sma-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
}
.sma-table th,
.sma-table td {
  border: 1px solid var(--gray-200);
  padding: 10px 14px;
  text-align: center;
}
.sma-table th {
  background: var(--gray-50);
  color: var(--gray-700);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sma-table td { color: var(--gray-900); }

/* ---------- Generic prose lists (plain <ul>/<ol> in body text, distinct
   from .sma-notice-list's bullet treatment) ---------- */
.sma-content ul,
.sma-content ol,
.rtdc-card ul,
.rtdc-card ol {
  color: var(--gray-700);
  line-height: 1.65;
  margin: 0 0 12px 0;
  padding-left: 22px;
}
.sma-content li,
.rtdc-card li { margin-bottom: 6px; }

/* ---------- Prominent link buttons (e.g. archive entry points) ---------- */
.sma-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}
.sma-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 15px;
}
.sma-link-button:hover { background: var(--blue-100); text-decoration: none; }

/* ---------- Code / preformatted blocks ---------- */
code {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--gray-900);
}
pre {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 12px 0;
}
pre code { background: none; border: none; padding: 0; }

/* Side-by-side code comparison (e.g. "before"/"after" snippets) */
.sma-code-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px;
  margin: 14px 0;
}
.sma-code-compare td { vertical-align: top; padding: 0; width: 50%; }
.sma-code-compare pre { margin: 0; height: 100%; }

/* ---------- FAQ table of contents + items (SMAdata_FAQ) ---------- */
.sma-faq-toc-group { margin-bottom: 18px; }
.sma-faq-toc-group:last-child { margin-bottom: 0; }
.sma-faq-toc-group ol {
  margin: 0;
  padding-left: 22px;
  color: var(--gray-700);
  line-height: 1.7;
}
.sma-faq-contact {
  font-size: 13px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  margin-top: 18px;
  padding-top: 14px;
}

.sma-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.sma-faq-item:first-of-type { padding-top: 0; }
.sma-faq-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.sma-faq-question {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 14.5px;
  margin-bottom: 6px;
}
.sma-faq-answer { color: var(--gray-700); line-height: 1.65; font-size: 13.5px; }
.sma-faq-answer p { color: var(--gray-700); margin: 10px 0 0 0; line-height: 1.65; }
.sma-faq-answer p:first-child { margin-top: 0; }
.sma-faq-back {
  font-size: 12.5px;
  margin-top: 14px;
}

/* ---------- Content images (science plots/diagrams) ---------- */
.sma-content-img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin: 14px 0;
}

/* ---------- Wide data tables (e.g. antenna file listings) ---------- */
.sma-table-scroll {
  overflow-x: auto;
  margin: 14px 0;
}
.sma-table-scroll .sma-table { margin: 0; }
.sma-table-scroll .sma-table th,
.sma-table-scroll .sma-table td { white-space: nowrap; }

/* Explanatory caption cells (e.g. "(antenna file different to previous
   directory)") are much longer than the actual column data and, left
   nowrap like every other cell in a scroll table, force that column far
   wider than the real values ever need — pushing later columns off-screen.
   Opt a specific cell into wrapping + a capped width instead. */
.sma-table-scroll .sma-table th.sma-table-caption {
  white-space: normal;
  max-width: 140px;
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.4;
}

/* ---------- Quick links (plain-text anchor row) ---------- */
/* A lightweight alternative to .sma-faq-toc-group's vertical numbered list,
   for hub pages where a tall table-of-contents block wastes vertical space.
   Same anchor hrefs, laid out as a small labeled row of plain text links. */
.sma-quick-links {
  margin: 22px 0 0 0;
}
.sma-quick-links-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin: 0 0 8px 0;
}
.sma-quick-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.sma-quick-links-row a {
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Repeating dated subsections (e.g. per-year baseline tables) ---------- */
.sma-year-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 20px 0 8px 0;
}
.sma-year-block:first-of-type .sma-year-heading { margin-top: 0; }
