
/* modoc-comanche-parallel-histories.css
   Print-friendly (Letter) layout with 1-inch margins, constrained content width.
*/

:root{
  --text: #111;
  --muted: #555;
  --rule: #d9d9d9;
  --accent: #0b3d91; /* conservative, print-friendly blue */
  --accent2: #8b2e2e; /* muted red */
  --bg: #fff;
}

*{ box-sizing: border-box; }

html, body{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 11pt;
  line-height: 1.35;
}

@page{
  size: Letter;
  margin: 1in;
}

/* Constrain all printable content inside the page margins */
.wrapper{
  max-width: 6.5in; /* 8.5in - 2in margins */
  margin: 0 auto;
  padding: 0;
}

header{
  border-bottom: 2px solid var(--rule);
  padding-bottom: 10pt;
  margin-bottom: 12pt;
}

h1{
  font-size: 18pt;
  margin: 0 0 6pt 0;
}

.subtitle{
  color: var(--muted);
  margin: 0;
}

h2{
  font-size: 13.5pt;
  margin: 16pt 0 8pt 0;
  padding-top: 6pt;
  border-top: 1px solid var(--rule);
}

h3{
  font-size: 12pt;
  margin: 12pt 0 6pt 0;
}

p{ margin: 0 0 8pt 0; }

.small{ font-size: 10pt; color: var(--muted); }

.rule{ border-top: 1px solid var(--rule); margin: 10pt 0; }

.figure-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10pt;
  margin: 10pt 0 12pt 0;
}

figure{
  margin: 0;
  border: 1px solid var(--rule);
  padding: 8pt;
  border-radius: 8pt;
}

figcaption{
  margin-top: 6pt;
  font-size: 9.5pt;
  color: var(--muted);
}

img{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6pt;
}

.kv{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10.5pt;
}

.kv th, .kv td{
  border: 1px solid var(--rule);
  padding: 6pt;
  vertical-align: top;
}

.kv th{
  text-align: left;
  background: #f5f5f5;
  font-weight: 650;
}

.parallel-phase{
  margin: 0 0 14pt 0;
}

.parallel-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10pt;
}

.col{
  border: 1px solid var(--rule);
  border-radius: 10pt;
  padding: 10pt;
}

.col h4{
  margin: 0 0 6pt 0;
  font-size: 12pt;
}

.badge{
  display: inline-block;
  font-size: 9.5pt;
  padding: 2pt 6pt;
  border-radius: 999pt;
  border: 1px solid var(--rule);
  margin-left: 6pt;
  color: var(--muted);
}

.modoc-title{ color: var(--accent); }
.comanche-title{ color: var(--accent2); }

.timeline{
  margin: 0;
  padding-left: 16pt;
}

.timeline li{
  margin: 0 0 6pt 0;
}

.year{
  font-weight: 700;
}

.note-box{
  border-left: 4px solid var(--rule);
  padding: 8pt 10pt;
  background: #fafafa;
  border-radius: 6pt;
  margin: 10pt 0 12pt 0;
}

sup a{
  text-decoration: none;
}

a{
  color: #0b3d91;
}

a:visited{
  color: #4b2f7f;
}

.footnotes{
  font-size: 10pt;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footnotes ol{
  padding-left: 18pt;
}

.footnotes li{
  margin-bottom: 8pt;
}

.backref{
  color: var(--muted);
  margin-left: 6pt;
}

@media print{
  /* Avoid awkward breaks */
  figure, .col, .note-box, table{ break-inside: avoid; page-break-inside: avoid; }
  a{ text-decoration: underline; }
  .screen-only{ display: none !important; }
}
