/* 13th Age 2e Pregen Portfolio — shared stylesheet */
:root {
  --ink: #1a1a1a;
  --muted: #555;
  --line: #999;
  --light: #eee;
  --accent: #444;
}

* { box-sizing: border-box; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  margin: 0 auto;
  max-width: 820px;
  padding: 24px 20px 48px;
  line-height: 1.45;
  font-size: 15px;
}

h1 {
  font-size: 26px;
  margin: 0 0 2px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 17px;
  margin: 26px 0 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h3 {
  font-size: 15px;
  margin: 14px 0 4px;
}

p { margin: 4px 0 8px; }

.subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 4px;
}

.bookref {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

.buildname {
  font-size: 14.5px;
  margin-bottom: 2px;
}

.copytools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 8px 0 14px;
}

.copycard {
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.copycard p { margin: 0 0 6px; }

.copycard select {
  font: inherit;
  margin-right: 6px;
}

.copycard button {
  font: inherit;
  font-size: 13px;
  margin: 2px 4px 2px 0;
  padding: 3px 9px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--light);
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0 14px;
  font-size: 14px;
}

th, td {
  border: 1px solid var(--line);
  padding: 4px 7px;
  text-align: center;
  vertical-align: top;
}

th {
  background: var(--light);
  font-weight: bold;
}

td.rowhead, th.rowhead {
  text-align: left;
  font-weight: bold;
  background: var(--light);
  white-space: nowrap;
}

td.note-cell {
  text-align: left;
  font-weight: normal;
  background: #fff;
  white-space: normal;
}

ul { margin: 4px 0 10px; padding-left: 20px; }
li { margin-bottom: 5px; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0 4px;
  margin-right: 5px;
  vertical-align: 1px;
  white-space: nowrap;
}

.pageref {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.blank {
  display: inline-block;
  border-bottom: 1px solid var(--ink);
  min-width: 220px;
  height: 1.1em;
}

.blank-block {
  border: 1px solid var(--line);
  min-height: 52px;
  margin: 4px 0 10px;
}

.example-name {
  font-size: 12.5px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.slots {
  font-size: 18px;
  letter-spacing: 0.25em;
}

.small { font-size: 13px; }
.muted { color: var(--muted); }

a { color: var(--ink); }

footer {
  margin-top: 34px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Print: A4 ---------- */
@page {
  size: A4;
  margin: 14mm 13mm;
}

@media print {
  body {
    max-width: none;
    padding: 0;
    font-size: 10.5pt;
  }
  table { font-size: 9.5pt; }
  h1 { font-size: 20pt; }
  h2 { font-size: 12.5pt; margin-top: 18px; page-break-after: avoid; }
  h3 { page-break-after: avoid; }
  table, .keep { page-break-inside: avoid; }
  a { text-decoration: none; }
  .noprint { display: none; }
}
