/* Orbit-Mech — base site stylesheet */

:root {
  --font-serif: "Times New Roman", Times, "Liberation Serif", serif;
  --text-color: #1a1a1a;
  --rule-color: #ccc;
  --accent-color: #7a1f1f;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--text-color);
  line-height: 1.5;
  font-size: 1.05rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--rule-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-title {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text-color);
}

header nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

header nav a {
  text-decoration: none;
  color: var(--text-color);
  padding-bottom: 2px;
}

header nav a.active {
  border-bottom: 2px solid var(--accent-color);
  font-weight: 700;
}

header nav a:hover {
  border-bottom: 2px solid var(--rule-color);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 0.2rem;
}

h1 {
  margin-top: 0.2rem;
  font-size: 1.9rem;
}

h2 {
  margin-top: 2.2rem;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--rule-color);
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
}

.subtitle {
  color: #666;
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

p {
  margin: 1rem 0;
  text-align: justify;
}

.placeholder-note {
  font-style: italic;
  color: #777;
  border-left: 3px solid var(--rule-color);
  padding-left: 0.8rem;
}

ul.refs {
  list-style: none;
  padding: 0;
}

ul.refs li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule-color);
}

ul.refs li:first-child {
  padding-top: 0;
}

.ref-title {
  font-style: italic;
}

.ref-meta {
  color: #666;
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

figure.figure {
  margin: 1.8rem 0;
  text-align: center;
}

figure.figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule-color);
}

figure.figure.figure-narrow img {
  max-width: 80%;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

table.conic-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
}

table.conic-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

table.conic-table th,
table.conic-table td {
  border: 1px solid var(--rule-color);
  padding: 0.5rem 0.8rem;
  text-align: center;
}

table.conic-table th {
  background: #f5f5f5;
  font-weight: 700;
}

table.conic-table td:first-child,
table.conic-table th:first-child {
  text-align: left;
}

.figure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-color);
}

.figure-strip figure {
  margin: 0;
  text-align: center;
}

.figure-strip img {
  height: 185px;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--rule-color);
}

.figure-strip figcaption {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #666;
}

footer {
  border-top: 1px solid var(--rule-color);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

#nomenclature-widget {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}
