/* ============================================
   SD-27 Assembly Designation — Unified Stylesheet
   Design anchor: index.html (landing page)
   ============================================ */

/* --- CSS Variables (full set from index.html) --- */
:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --accent: #2c3e50;
  --accent-light: #34495e;
  --border: #ddd;
  --quote-bg: #f0f0f5;
  --table-header: #e8e8f0;
  --section-bg: #eef;
  --bluf-bg: #2c3e50;
  --bluf-text: #f0f0f5;
  --pending-bg: #e3f2fd;
  --pending-border: #1976d2;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --card-hover: 0 4px 16px rgba(0,0,0,0.14);
  --timeline-dot: #2c3e50;
  --timeline-line: #c0c0d0;
  --action-bg: #f8f8fc;
  --note-bg: #fff8e1;
  --note-border: #f9a825;
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Body --- */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 30px 60px;
}

/* --- Shared Nav Bar --- */
nav.report-nav {
  background: var(--section-bg);
  border: 1px solid var(--border);
  padding: 10px 18px;
  margin-bottom: 25px;
  font-size: 0.92em;
}
nav.report-nav a { color: var(--accent); text-decoration: none; margin-right: 20px; font-weight: bold; }
nav.report-nav a:hover { text-decoration: underline; }
nav.report-nav span { color: var(--accent); margin-right: 20px; font-weight: bold; opacity: 0.5; }

/* --- Header (index.html landing) --- */
header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--accent);
}
header h1 {
  font-size: 1.9em;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
header .subtitle {
  font-size: 1.05em;
  color: #555;
  font-style: italic;
}

/* --- Typography --- */
h1 { font-size: 1.8em; color: var(--accent); border-bottom: 3px solid var(--accent); padding-bottom: 10px; margin-bottom: 5px; }
h2 { font-size: 1.3em; color: var(--accent); background: var(--section-bg); padding: 8px 12px; margin: 30px 0 15px; border-left: 4px solid var(--accent); }
h3 { font-size: 1.1em; color: var(--accent); margin: 20px 0 10px; }
h4 { font-size: 1.0em; color: #444; margin: 15px 0 8px; }
p { margin: 0 0 12px; }
strong { color: #111; }
sup { font-size: 0.75em; }

/* --- Meta line (report pages) --- */
.meta { color: #666; font-size: 0.95em; margin-bottom: 30px; }

/* --- Blockquotes --- */
blockquote { background: var(--quote-bg); border-left: 4px solid #999; padding: 12px 18px; margin: 15px 0; font-style: italic; font-size: 0.95em; }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 0.88em; }
th { background: var(--table-header); font-weight: bold; text-align: left; padding: 8px 10px; border: 1px solid var(--border); }
td { padding: 6px 10px; border: 1px solid var(--border); vertical-align: top; }
tr:nth-child(even) { background: #f8f8fc; }

/* --- Lists --- */
ul, ol { margin: 10px 0 15px 25px; }
li { margin: 5px 0; }

/* --- Links --- */
a { color: var(--accent); }

/* --- Horizontal Rules --- */
hr { border: none; border-top: 1px solid var(--border); margin: 25px 0; }

/* --- BLUF Box (index.html) --- */
.bluf {
  background: var(--bluf-bg);
  color: var(--bluf-text);
  padding: 32px 36px;
  border-radius: 6px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
}
.bluf h2 {
  font-size: 1.25em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 10px;
  margin-bottom: 18px;
  background: none;
  border-left: none;
  padding-left: 0;
}
.bluf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bluf-section h3 {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.bluf-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bluf-section li {
  margin: 5px 0;
  font-size: 0.95em;
  padding-left: 14px;
  position: relative;
}
.bluf-section li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.4);
}
.bluf .big-number {
  font-size: 1.6em;
  font-weight: bold;
  color: #fff;
  font-family: 'Georgia', serif;
}
.bluf .big-label {
  font-size: 0.82em;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-top: 2px;
}
.bluf-status {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9em;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  grid-column: 1 / -1;
}

/* --- Details / Summary --- */
details {
  margin: 8px 0;
  border-left: 3px solid var(--timeline-line);
  background: #fff;
  border-radius: 0 4px 4px 0;
  transition: border-color 0.2s;
}
details[open] {
  border-left-color: var(--accent);
}
details summary {
  cursor: pointer;
  padding: 10px 16px;
  font-size: 0.95em;
  font-weight: normal;
  list-style: none;
  position: relative;
  padding-left: 30px;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "\25B6";
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 0.65em;
  color: var(--accent);
  transition: transform 0.2s;
}
details[open] summary::before {
  transform: rotate(90deg);
}
details summary:hover {
  background: var(--quote-bg);
}
details .detail-body {
  padding: 4px 16px 14px 30px;
  font-size: 0.9em;
  color: #444;
  line-height: 1.65;
}
details .detail-body .citation {
  display: block;
  margin-top: 6px;
  font-size: 0.85em;
  color: #888;
  font-style: italic;
}

/* --- Timeline (index.html) --- */
.timeline details {
  margin-left: 0;
}
.timeline details summary {
  font-family: 'Georgia', serif;
}
.timeline .date-tag {
  display: inline-block;
  font-weight: bold;
  color: var(--accent);
  min-width: 72px;
  font-variant-numeric: tabular-nums;
}

/* --- Report Cards (index.html) --- */
.report-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 18px 0 10px;
}
.report-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 24px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.report-card:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-2px);
}
.report-card h3 {
  font-size: 1.05em;
  color: var(--accent);
  margin-bottom: 8px;
}
.report-card .card-date {
  font-size: 0.8em;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.report-card p {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 12px;
}
.report-card .card-link {
  display: inline-block;
  font-size: 0.9em;
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

/* --- Actions (index.html) --- */
.actions details {
  border-left-color: #b0bec5;
  background: var(--action-bg);
}
.actions details[open] {
  border-left-color: var(--accent);
}
.actions details summary {
  font-weight: bold;
  font-size: 0.93em;
}
.actions .action-letter {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  line-height: 22px;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: bold;
  margin-right: 6px;
  font-family: sans-serif;
  vertical-align: middle;
}

/* --- Note Box (index.html) --- */
.note-box {
  background: var(--note-bg);
  border-left: 4px solid var(--note-border);
  padding: 12px 18px;
  margin: 18px 0;
  font-size: 0.9em;
  font-style: italic;
  color: #555;
}

/* --- Pending Box (index.html) --- */
.pending-box {
  background: var(--pending-bg);
  border-left: 4px solid var(--pending-border);
  padding: 16px 20px;
  margin: 30px 0;
  border-radius: 0 4px 4px 0;
}
.pending-box h3 {
  font-size: 1.0em;
  color: var(--pending-border);
  margin-bottom: 10px;
}
.pending-box ol {
  margin: 0 0 12px 22px;
  font-size: 0.93em;
}
.pending-box li {
  margin: 4px 0;
}
.pending-box .highest {
  font-weight: bold;
}
.pending-box .submit-note {
  font-size: 0.88em;
  color: #555;
  font-style: italic;
  margin-top: 10px;
}

/* --- Callout Boxes (data-analysis + preliminary) --- */
.key-fact { background: #e8f5e9; border-left: 4px solid #4caf50; padding: 10px 15px; margin: 15px 0; }
.warning { background: #fff3cd; border-left: 4px solid #ff9800; padding: 10px 15px; margin: 15px 0; }
.pending { background: #e3f2fd; border-left: 4px solid #1976d2; padding: 10px 15px; margin: 15px 0; }
.data-note { background: #f5f5f5; border-left: 4px solid #9e9e9e; padding: 10px 15px; margin: 15px 0; font-size: 0.92em; }

/* --- Exhibit Boxes (data-analysis + preliminary) --- */
.exhibit { background: #fafafa; border: 1px solid var(--border); padding: 12px 18px; margin: 15px 0; }
.exhibit .exhibit-label { font-weight: bold; color: var(--accent); font-size: 0.95em; margin-bottom: 5px; }
.exhibit .exhibit-desc { font-size: 0.9em; color: #555; }

/* --- Citation (data-analysis + preliminary) --- */
.citation { font-size: 0.85em; color: #666; font-style: italic; }

/* --- Statute Box (preliminary) --- */
.statute-box { background: #f5f5ff; border: 1px solid #c0c0e0; padding: 15px 18px; margin: 15px 0; font-size: 0.92em; }
.statute-box .statute-title { font-weight: bold; color: var(--accent); margin-bottom: 8px; }
.statute-box .statute-text { font-style: italic; }

/* --- Compliance Matrix (preliminary) --- */
.compliance-matrix td:first-child { font-weight: bold; text-align: center; width: 30px; }

/* --- Text Utilities (preliminary) --- */
.highlight { background: #fff3cd; padding: 2px 4px; }
.strike { text-decoration: line-through; color: #999; }

/* --- Footer --- */
footer {
  margin-top: 50px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  text-align: center;
  font-size: 0.85em;
  color: #888;
}
footer p { margin: 3px 0; }

/* --- Responsive --- */
@media (max-width: 700px) {
  body { padding: 24px 16px 40px; }
  header h1 { font-size: 1.5em; }
  .bluf { padding: 22px 20px; }
  .bluf-grid { grid-template-columns: 1fr; gap: 16px; }
  .report-cards { grid-template-columns: 1fr; }
  details summary { padding-left: 26px; }
  details .detail-body { padding-left: 26px; }
}

/* --- Print --- */
@media print {
  body { max-width: 100%; padding: 20px; font-size: 11pt; }
  nav.report-nav { display: none; }
  .bluf { background: #333; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details { border-left-color: var(--accent); }
  details[open] summary ~ .detail-body { display: block; }
  details summary::before { content: ""; }
  details, details[open] { break-inside: avoid; }
  .report-card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  h2 { break-after: avoid; page-break-after: avoid; }
  table { page-break-inside: avoid; }
  footer { margin-top: 30px; }
}
