/* Guardii brief house style — print-first, A4. Shared by the vertical briefs. */
:root {
  --navy: #1f5189;
  --navy-mid: #2b6cad;
  --navy-wash: #eef4fa;
  --navy-line: #cddff0;
  --ink: #1c2530;
  --ink-soft: #3c4753;
  --muted: #6b7682;
  --rule: #e3e8ec;
  --paper: #ffffff;
  --red: #a8393f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #eceef0;
  color: var(--ink-soft);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 10.6pt;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}

.sheet {
  background: var(--paper);
  width: 210mm;
  min-height: 297mm;
  margin: 14px auto;
  padding: 15mm 17mm 18mm;
  box-shadow: 0 2px 18px rgba(0,0,0,0.12);
}

.masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 9px; margin-bottom: 14px;
}
.masthead img { height: 34px; width: auto; display: block; }
.masthead .kicker {
  font-size: 7.8pt; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); text-align: right; font-weight: 600;
}

.title { font-size: 16pt; font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 2px; }
.strap { font-size: 10.5pt; color: var(--ink-soft); margin: 0 0 12px; }
.strap b { color: var(--navy); }

/* The TLDR box */
.tldr {
  background: var(--navy-wash);
  border: 1px solid var(--navy-line);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 16px;
}
.tldr .t {
  font-size: 8pt; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 4px;
}
.tldr p { margin: 0 0 5px; font-size: 10.6pt; color: var(--ink); }
.tldr p:last-child { margin-bottom: 0; }

h2 {
  font-size: 11.5pt; font-weight: 700; color: var(--navy);
  margin: 16px 0 6px; letter-spacing: -0.005em;
}
h2 .sub { font-weight: 400; color: var(--muted); font-size: 9.5pt; }
p { margin: 0 0 8px; }
strong { color: var(--ink); }

ul, ol { margin: 0 0 8px; padding-left: 0; list-style: none; }
ul > li, ol > li {
  position: relative; padding-left: 16px; margin-bottom: 4px;
}
ul > li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--navy-mid);
}
ol { counter-reset: n; }
ol > li { padding-left: 22px; counter-increment: n; }
ol > li::before {
  content: counter(n); position: absolute; left: 0; top: 1px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--navy-wash); border: 1px solid var(--navy-line);
  color: var(--navy); font-size: 7.5pt; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
li b, li .k { color: var(--ink); }

/* pulled-out punchline */
.pull {
  font-size: 11.5pt; font-weight: 700; color: var(--ink);
  border-left: 3px solid var(--navy);
  padding: 2px 0 2px 12px;
  margin: 10px 0;
}
.pull .src { display: block; font-size: 8.5pt; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* the evidence chain strip */
.chain { display: flex; gap: 4px; margin: 8px 0 4px; }
.chain .step {
  flex: 1; background: var(--navy-wash); border: 1px solid var(--navy-line);
  border-radius: 6px; padding: 6px 8px;
  font-size: 8.2pt; font-weight: 600; color: var(--ink); line-height: 1.3;
  display: flex; align-items: center;
}
.chain .step.end { background: var(--navy); color: #fff; border-color: var(--navy); }
.chain-cap { font-size: 8.2pt; color: var(--muted); margin-bottom: 8px; }

/* two-column fact row */
.cols { display: flex; gap: 14px; margin-bottom: 8px; }
.cols > div { flex: 1; }

.foot {
  margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 8px;
  font-size: 9pt; color: var(--muted); font-style: italic;
}

table { border-collapse: collapse; width: 100%; font-size: 8.6pt; margin: 6px 0 10px; }
th { background: var(--navy); color: #fff; text-align: left; padding: 5px 7px; font-weight: 600; }
td { border-bottom: 1px solid var(--rule); padding: 4px 7px; vertical-align: top; }
tr:nth-child(even) td { background: #f7f9fb; }


/* ---- collapsible detail, so the first screen stays short ---- */
details.more-detail {
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 0 0 8px;
  background: #fbfcfd;
}
details.more-detail > summary {
  cursor: pointer; list-style: none;
  padding: 9px 13px;
  font-size: 10.4pt; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 9px;
}
details.more-detail > summary::-webkit-details-marker { display: none; }
details.more-detail > summary::after {
  content: "\25BE";
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 9pt; line-height: 1;
}
details.more-detail[open] > summary::after { content: "\25B4"; }
details.more-detail > summary:hover { background: var(--navy-wash); border-radius: 8px; }
details.more-detail .inner { padding: 2px 13px 10px; }
details.more-detail .inner ul { margin-bottom: 0; }

/* ---- responsive: these are sent as links and read on phones ---- */
@media screen and (max-width: 850px) {
  html, body { font-size: 12pt; }
  .sheet { width: auto; min-height: 0; margin: 0; padding: 18px 16px 28px; box-shadow: none; }
  .masthead { flex-wrap: wrap; gap: 10px; }
  .chain { flex-wrap: wrap; }
  .chain .step { flex: 1 1 45%; }
  .cols { flex-direction: column; gap: 4px; }
  .tldr p, p, li { line-height: 1.5; }
  table { display: block; overflow-x: auto; }
}

@media print {
  html, body { background: #fff; }
  .sheet { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  .page-break { page-break-before: always; }
}
