/* The client brief, laid out to print (A4 portrait) on the pack's page machinery: a sheet on screen, one
   section a page on paper (docs/areas/brief.md#the-client-brief). */
html.brief, html.brief body { height: auto; overflow: visible; }
html.brief body { background: #f3f1ec; color: var(--ink, #1c1b19); font: 10.5pt/1.45 Inter, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums; }
.brief .bar { position: sticky; top: 0; background: #1c1b19; color: #f3f1ec; padding: 10px 16px; display: flex; gap: 10px;
  flex-wrap: wrap; align-items: center; z-index: 2; }
.brief .bar button { color: #1c1b19; background: #f0d58c; border: 0; border-radius: 4px; padding: 6px 12px; font: inherit;
  font-weight: 600; cursor: pointer; }
.brief .bar span { opacity: .8; font-size: 9pt; }
.brief .bar .bar-warn { opacity: 1; color: #f0d58c; font-weight: 600; }
.brief .bar-warn a { color: inherit; }
.brief .sheet { max-width: 210mm; margin: 16px auto; background: #fff; padding: 14mm 16mm; box-shadow: 0 1px 4px #0002; }
.brief .wait { font-size: 12pt; }
/* a letter, not a printout: a serif voice for the headings, the brand's gold for the marks, one register line each */
.brief h1 { font: 600 26pt/1.15 Fraunces, Georgia, serif; margin: 0 0 6px; letter-spacing: -.01em; }
.brief h2 { font: 600 16pt/1.25 Fraunces, Georgia, serif; margin: 0 0 2px; padding-top: 2px; }
.brief h2::before { content: ""; display: block; width: 28px; height: 3px; background: #b8933a; margin-bottom: 8px; }
.brief h2.h-chart { font-size: 13pt; margin-top: 18px; }
.brief h2.h-chart::before, .brief .inshort h2::before { display: none; }
.brief h3 { font-size: 11.5pt; margin: 16px 0 6px; }
.brief h4 { font-size: 10.5pt; margin: 10px 0 4px; }
.brief .reg-line { margin: 0 0 10px; font-size: 8.5pt; color: #8a8478; letter-spacing: .02em; }
.brief .cover { border-bottom: 1px solid #e4dccb; padding-bottom: 10px; margin-bottom: 12px; }
.brief .cover-sub { margin: 0; color: #5c574e; max-width: 150mm; }
.brief .inshort { background: #f8f4ea; border-left: 3px solid #b8933a; padding: 8px 14px 6px; margin: 10px 0 12px; break-inside: avoid; }
.brief .inshort h2 { font-size: 11pt; margin: 0 0 2px; font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .06em; color: #7a5f1e; }
.brief .inshort ul { margin: 4px 0; padding-left: 18px; } .brief .inshort li { margin: 3px 0; }
.brief .sec { break-before: page; page-break-before: always; padding-top: 4px; }
.brief .sec:first-of-type { break-before: auto; page-break-before: auto; }
/* a short page runs on from the one before it, its heading kept with what follows */
.brief .sec.sec-cont { break-before: auto; page-break-before: auto; margin-top: 10mm; }
.brief h2 { break-after: avoid; page-break-after: avoid; } .brief .reg-line { break-after: avoid; }
.brief .kicker { margin: 0 0 4px; color: #6b675f; font-size: 9pt; text-transform: uppercase; letter-spacing: .04em; }
.brief .reg { display: inline-flex; margin: 0 0 10px; }
.brief .verdict { font-size: 14pt; line-height: 1.35; margin: 6px 0 4px; }
.brief .verdict-sub { margin: 0 0 12px; color: #3a3833; }
.brief .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(38mm, 1fr)); gap: 4mm; margin: 10px 0; }
.brief .bf { border: 1px solid #e4dccb; border-top-width: 3px; border-radius: 4px; padding: 7px 9px; break-inside: avoid; }
.brief .bf-ok { border-top-color: #1f7a3a; } .brief .bf-warn { border-top-color: #9a6700; } .brief .bf-bad { border-top-color: #b42318; }
.brief .bf-label { font-size: 9pt; color: #6b675f; }
.brief .bf-value { font: 600 18pt/1.2 Fraunces, Georgia, serif; }
.brief .bf-band { font-size: 9pt; font-weight: 600; }
.brief .bf-pair { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 9pt; }
.brief .bf-pair b { font: 600 14pt/1.25 Fraunces, Georgia, serif; }
.brief .bf-note { font-size: 8.5pt; margin-top: 3px; }
.brief .brief-fan { position: relative; width: 100%; height: 82mm; }
.brief .fan-key { flex-wrap: wrap; }
.brief .cite { font-size: 8.5pt; color: #6b675f; margin: 2px 0; }
.brief table { border-collapse: collapse; width: 100%; font-size: 9pt; margin: 4px 0 8px; }
.brief th, .brief td { border-bottom: 1px solid #d9d4c7; padding: 3px 5px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.brief th { font-weight: 600; border-bottom: 1.5px solid #1c1b19; }
.brief td.n, .brief th.n { text-align: right; white-space: nowrap; }
.brief table.kv td:first-child { width: 62%; }
.brief table.kv td.n { white-space: normal; }
.brief table.kv .cite { display: block; }
.brief .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8mm; align-items: start; }
.brief .fg, .brief .lv, .brief .dates, .brief .about { break-inside: avoid; page-break-inside: avoid; }
/* what the chance means, beside the figures; the notes the adviser types, printed as typed and left off when empty */
.brief .explain { font-size: 9.5pt; color: #3a3833; background: #faf8f3; border-radius: 4px; padding: 6px 10px; margin: 8px 0 4px; }
.brief .notes-box { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px dashed #b8933a;
  border-radius: 4px; background: #fffdf7; resize: vertical; }
.brief .notes-print { display: none; white-space: pre-wrap; }
.brief .invest-lines li { margin: 4px 0; }
.brief table.tl th.n, .brief table.tl td.n { width: 1%; padding-right: 18px; }
.brief .lv { border: 1px solid #e4dccb; border-radius: 6px; padding: 8px 12px; margin: 8px 0; }
.brief .lv-head { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 11.5pt; }
.brief .lv-n { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #1c1b19; color: #f0d58c; font-size: 9pt;
  display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.brief .lv-name { flex: 1; }
.brief .lv-fig { white-space: nowrap; font: 600 13pt/1.2 Fraunces, Georgia, serif; }
.brief .lv-what { margin: 4px 0 2px 30px; color: #3a3833; }
.brief .lv-says { margin: 2px 0 2px 30px; }
.brief .lv-fig b { margin: 0 4px; } .brief .lv-fig em { font-style: normal; font-weight: 400; font-size: 9pt; }
.brief .better { color: #1f7a3a; } .brief .worse { color: #b42318; } .brief .same { color: #6b675f; }
.brief .lv ul { margin: 4px 0 0; padding-left: 18px; font-size: 9.5pt; }
.brief .no-help { color: #6b675f; }
.brief .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8.5pt; overflow-wrap: anywhere; }
.brief .run { position: fixed; bottom: 0; right: 0; font-size: 8pt; color: #6b675f; display: none; }
.brief .not-advice { font-size: 9pt; color: #6b675f; }
.brief .not-advice.top { max-width: 210mm; margin: 10px auto 0; padding: 0 4px; }
@media (max-width: 720px) {
  .brief .sheet { margin: 0; padding: 16px; max-width: none; box-shadow: none; }
  .brief .grid2 { grid-template-columns: 1fr; }
  .brief h1 { font-size: 16pt; } .brief .verdict { font-size: 12.5pt; }
  .brief .brief-fan { height: 60vw; }
}
@page { size: A4 portrait; margin: 14mm 14mm 16mm; }
@media print {
  html.brief body { background: #fff; }
  .brief .bar, .brief .not-advice.top { display: none; }
  .brief .sheet { box-shadow: none; margin: 0; max-width: none; padding: 0; }
  .brief .run { display: block; }
  .brief .sec { padding-top: 7mm; }
  /* the opening page holds the answer and its chart whole: a sheet of A4 */
  .brief .sec-open .brief-fan { height: 60mm; }
  .brief h1 { font-size: 22pt; } .brief .verdict { font-size: 12pt; margin: 4px 0 2px; }
  .brief .inshort { padding: 5px 12px 3px; margin: 6px 0 8px; font-size: 9.5pt; }
  .brief .inshort li { margin: 1px 0; }
  .brief .figs { margin: 6px 0; } .brief h2.h-chart { margin-top: 8px; }
  .brief .cover { padding-bottom: 6px; margin-bottom: 8px; }
  .brief .notes-box { display: none; } .brief .notes-print { display: block; } .brief .notes-sec.empty { display: none; }
  .brief .explain { padding: 4px 8px; margin: 4px 0 2px; font-size: 9pt; }
}

/* a move that leaves property over the household's own weighting (Kai) */
.warn { color: #7F5500; font-weight: 600; }

/* the adviser's logo, firm and name over the brief (brief.js adviserLine) */
.adviser { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; }
.adv-logo { max-height: 40px; max-width: 160px; }
