/* Firmbinder Attorney Report - print stylesheet (US Letter).
   Type floors: body 10pt (13.3px), smallest text 8.5pt (11.3px). */
:root {
  --navy: #13294B;
  --navy-2: #1f3a66;
  --slate: #475569;
  --amber: #B7791F;
  --amber-soft: #fdf6e7;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6e69;
  --line: #e1e0d9;
  --line-2: #c3c2b7;
  --surface: #fcfcfb;
  --plane: #f6f6f3;
  --win: #008300;
  --tie: #eda100;
  --loss: #e34948;
  --unc: #2a78d6;
  --dis: #898781;
  --wd: #6250d6;
  --good-ink: #006300;
  --bad-ink: #b42828;
}
@page {
  size: Letter;
  margin: 0.55in 0.6in 0.7in 0.6in;
  @bottom-left {
    content: "Firmbinder Attorney Report · " "Jordan Avery Sample · SAMPLE - all names, cases and numbers are fictional";
    font: 8.5pt -apple-system, system-ui, Helvetica, Arial, sans-serif;
    color: #6f6e69;
  }
  @bottom-right {
    content: "Page " counter(page) " of " counter(pages);
    font: 8.5pt -apple-system, system-ui, Helvetica, Arial, sans-serif;
    color: #6f6e69;
  }
}
@page cover {
  margin: 0;
  @bottom-left { content: none; }
  @bottom-right { content: none; }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #ffffff; }
body {
  font: 10pt/1.42 -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.2; }
h2.section {
  font-size: 17pt; padding-bottom: 6px; border-bottom: 2.5px solid var(--navy);
  margin: 0 0 12px 0; break-after: avoid;
}
h2.section .kicker { display: block; font-size: 8.5pt; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: 3px; }
h3 { font-size: 12pt; margin: 16px 0 6px; break-after: avoid; }
h4 { font-size: 10.5pt; margin: 10px 0 4px; break-after: avoid; }
p { margin: 0 0 7px; }
a { color: var(--navy-2); text-decoration: none; }
.page { break-before: page; }
.avoid { break-inside: avoid; }
.muted { color: var(--muted); }
.small { font-size: 8.5pt; }
.lede { font-size: 11pt; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- cover ---------- */
.cover { page: cover; height: 11in; width: 8.5in; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.cover .band { background: var(--navy); color: #fff; padding: 0.55in 0.6in 0.4in; }
.cover .brand { font-size: 9pt; letter-spacing: .2em; text-transform: uppercase; color: #f3d9a4; font-weight: 700; }
.cover .who { font-size: 30pt; font-weight: 750; margin: 10px 0 4px; color: #fff; line-height: 1.1; }
.cover .what { font-size: 11.5pt; color: #d9e0ec; }
.cover .body { padding: 0.35in 0.6in 0; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.cover .headline-row { display: grid; grid-template-columns: 1.35in 1fr; gap: 18px; align-items: center; }
.grade-badge { width: 1.35in; height: 1.35in; border-radius: 16px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.grade-badge .g { font-size: 44pt; font-weight: 800; line-height: 1; }
.grade-badge .l { font-size: 8.5pt; letter-spacing: .1em; text-transform: uppercase; color: #d9e0ec; margin-top: 4px; }
.grade-badge.na { background: var(--plane); color: var(--ink-2); border: 1.5px dashed var(--line-2); }
.grade-badge.na .g { font-size: 22pt; }
.grade-badge.na .l { color: var(--muted); }
.cover .headline { font-size: 13pt; font-weight: 600; color: var(--ink); line-height: 1.35; }
.cover .grade-note { font-size: 9pt; color: var(--ink-2); margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.tile .v { font-size: 20pt; font-weight: 750; color: var(--navy); line-height: 1.1; }
.tile .k { font-size: 8.5pt; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.tile .s { font-size: 8.5pt; color: var(--muted); margin-top: 2px; }
.takeaways { border-left: 4px solid var(--amber); background: var(--amber-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.takeaways h4 { margin: 0 0 4px; color: var(--amber); text-transform: uppercase; letter-spacing: .08em; font-size: 8.5pt; }
.takeaways ul { margin: 0; padding-left: 18px; }
.takeaways li { margin: 3px 0; }
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.coverage .c { font-size: 9pt; color: var(--ink-2); }
.coverage .c b { color: var(--ink); }
.cover .foot { padding: 0.2in 0.6in 0.4in; font-size: 8.5pt; color: var(--muted); border-top: 1px solid var(--line); margin-top: auto; }

/* ---------- contents ---------- */
.toc { list-style: none; padding: 0; margin: 0 0 14px; columns: 2; column-gap: 28px; }
.toc li { padding: 5px 0; border-bottom: 1px dotted var(--line-2); break-inside: avoid; }
.toc a { display: flex; justify-content: space-between; color: var(--ink); }
.toc a span:last-child { color: var(--muted); }
.defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.def { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: start; }
.def i, .def .sw { width: 12px; height: 12px; border-radius: 3px; margin-top: 3px; display: block; }

/* ---------- generic blocks ---------- */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 8px 8px 0; padding: 8px 12px; background: var(--surface); margin: 8px 0 12px; break-inside: avoid; }
.callout.amber { border-left-color: var(--amber); background: var(--amber-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 8px; font-size: 9pt; color: var(--ink-2); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 9.5pt; margin: 4px 0 10px; }
th, td { text-align: left; padding: 5px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-weight: 650; border-bottom: 1.5px solid var(--line-2); }
td.r, th.r { text-align: right; }
td.num:first-child { white-space: nowrap; }
tr { break-inside: avoid; }
thead { display: table-header-group; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 8.5pt; font-weight: 650; line-height: 1.6; white-space: nowrap; }
.pill.win { background: var(--win); color: #fff; }
.pill.tie { background: var(--tie); color: var(--ink); }
.pill.loss { background: var(--loss); color: #fff; }
.pill.uncontested { background: var(--unc); color: #fff; }
.pill.dismissed { background: var(--dis); color: #fff; }
.pill.not_credited { background: var(--wd); color: #fff; }
.pill.pending, .pill.unknown { background: #eceae4; color: var(--ink-2); }
.pill.src { background: #eef2f8; color: var(--navy-2); font-weight: 600; }
.pill.conf-low { background: #fbeaea; color: var(--bad-ink); }
.pill.conf-medium { background: #fdf3dc; color: #7a5300; }
.pill.conf-high { background: #e6f3e6; color: var(--good-ink); }

/* ---------- scorecard ---------- */
.score { display: grid; grid-template-columns: 0.75in 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.score .g { width: 0.75in; height: 0.75in; border-radius: 12px; background: var(--navy); color: #fff; font-size: 26pt; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.score .g.na { background: var(--plane); color: var(--muted); font-size: 10pt; font-weight: 700; text-align: center; border: 1.5px dashed var(--line-2); line-height: 1.2; }
.score h4 { margin: 2px 0 3px; }
.score .rule { font-size: 8.5pt; color: var(--muted); margin-top: 3px; }

/* ---------- lenses ---------- */
.lens { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); margin-bottom: 12px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lens li, .lens .verdict { break-inside: avoid; }
.lens h4 { break-after: avoid; }
.lens h3 { margin-top: 0; }
.lens ul { margin: 4px 0 8px; padding-left: 18px; }
.lens li { margin: 2px 0; }
.lens .verdict { font-size: 10.5pt; color: var(--ink); }
.ev { font-size: 8.5pt; color: var(--muted); }

/* ---------- case cards ---------- */
.case { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 8px; margin: 0 0 14px; background: #fff; }
.case-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 7px; margin-bottom: 8px; break-inside: avoid; break-after: avoid; }
.case-head .no { font-size: 12.5pt; font-weight: 750; color: var(--navy); }
.case-head .meta { font-size: 9pt; color: var(--ink-2); margin-top: 2px; }
.case-head .outcome { text-align: right; }
.case-head .outcome .pill { font-size: 10pt; padding: 3px 12px; }
.case .why { font-size: 9.5pt; color: var(--ink-2); margin: 4px 0 8px; break-inside: avoid; }
.case .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 12px; font-size: 9pt; margin: 6px 0 8px; break-inside: avoid; }
.case .facts div span { display: block; color: var(--muted); font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; }
.case ul.tl { list-style: none; padding: 0; margin: 2px 0 8px; font-size: 9.5pt; }
.case ul.tl li { display: grid; grid-template-columns: 0.95in 1fr; gap: 8px; padding: 2px 0; border-bottom: 1px dotted var(--line); break-inside: avoid; }
.case ul.tl li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.case ul.obs { margin: 2px 0 8px; padding-left: 18px; font-size: 9.5pt; }
.case .docs { font-size: 9pt; color: var(--ink-2); }
.case .gaps { font-size: 9pt; color: var(--muted); }
.k-strength { color: var(--good-ink); font-weight: 650; }
.k-concern, .k-procedural_issue { color: var(--bad-ink); font-weight: 650; }
.k-tactic { color: var(--navy-2); font-weight: 650; }
.mini-case { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; break-inside: avoid; font-size: 9.5pt; }
.disclaimer { font-size: 8.5pt; color: var(--ink-2); }

/* ---------- case-number lists ---------- */
table.bylist td { border-bottom: 1px dotted var(--line); padding: 4px 6px; }
table.bylist td.res { width: 1.75in; white-space: nowrap; }
td.caselist { font-size: 9pt; line-height: 1.55; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 4px; margin: 0 0 10px; break-inside: avoid; }
.cat h3 { margin: 2px 0 6px; font-size: 11pt; }
.cat svg { margin-bottom: 4px; }
td.judge { font-size: 9pt; white-space: nowrap; color: var(--ink-2); }
.cn { white-space: nowrap; }
.jg { font-size: 8.5pt; color: var(--muted); }
table.relief td { font-size: 9pt; }
table.relief tr.muted td { color: var(--muted); }
table.bdt tr.bd td { border-bottom: none; padding-bottom: 1px; }
table.bdt tr.bdcases td { font-size: 8.5pt; color: var(--ink-2); padding-top: 0; line-height: 1.6; }
.rl { display: inline-block; min-width: 14px; padding: 0 3px; border-radius: 3px; font-size: 7.5pt; font-weight: 700; text-align: center; color: #fff; }
.rl.win { background: var(--win); } .rl.tie { background: var(--tie); color: var(--ink); } .rl.loss { background: var(--loss); }
.rl.uncontested { background: var(--unc); } .rl.dismissed { background: var(--dis); } .rl.not_credited { background: var(--wd); }
.rl.pending, .rl.unknown { background: #d8d6ce; color: var(--ink); }

/* ---------- breakdown cards ---------- */
.bcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 6px 0 14px; }
.bcard { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 7px; background: var(--surface); break-inside: avoid; display: flex; flex-direction: column; gap: 3px; }
.bcard .bh { font-weight: 700; color: var(--navy); font-size: 10pt; line-height: 1.25; }
.bcard .bn { font-size: 9pt; color: var(--ink-2); }
.bcard .bn .num { font-size: 17pt; font-weight: 800; color: var(--ink); margin-right: 3px; }
.bcard .cs { font-size: 8.5pt; color: var(--ink-2); line-height: 1.45; }
.bcard .bl { font-size: 8.5pt; font-weight: 650; margin-top: auto; padding-top: 3px; }
.bcard svg { margin: 2px 0; }
.evrow { display: flex; gap: 10px; margin: 2px 0; }
.evn { display: flex; flex-direction: column; font-size: 8.5pt; color: var(--ink-2); }
.evn .num { font-size: 15pt; font-weight: 800; color: var(--ink); line-height: 1.1; }
.clist { padding: 5px 0 6px; border-bottom: 1px dotted var(--line); break-inside: avoid; }
.ctags { font-size: 8.5pt; line-height: 1.7; margin-top: 2px; }

/* ---------- grade cards (cover + section 1) ---------- */
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gcard { display: grid; grid-template-columns: 0.6in 1fr; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: var(--surface); break-inside: avoid; }
.gcard .gg { width: 0.6in; height: 0.6in; border-radius: 9px; background: var(--navy); color: #fff; font-size: 19pt; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gcard.po .gg { background: #5b6b85; }
.gcard .gt { font-weight: 700; color: var(--navy); font-size: 10pt; line-height: 1.2; }
.gcard .gs { font-size: 8.5pt; color: var(--ink-2); line-height: 1.35; }
.cover-grades h4 { margin: 0 0 6px; color: var(--amber); text-transform: uppercase; letter-spacing: .08em; font-size: 8.5pt; }
.cover .body { gap: 12px; }
/* ---------- at a glance ---------- */
.kstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.kstrip div { border: 1px solid var(--line); border-radius: 9px; padding: 7px 6px; background: var(--surface); text-align: center; }
.kstrip b { display: block; font-size: 13pt; color: var(--navy); font-weight: 800; line-height: 1.15; }
.kstrip span { display: block; font-size: 8.5pt; color: var(--ink-2); line-height: 1.2; margin-top: 2px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 4px; background: var(--surface); margin-bottom: 10px; }
.panel h4 { margin: 0 0 4px; font-size: 9.5pt; }
.flags { border-radius: 10px; padding: 8px 12px; }
.flags ul { margin: 4px 0; padding-left: 16px; font-size: 9.5pt; }
.flags li { margin: 3px 0; }
.flags.good { background: #eef7ee; border: 1px solid #bfe0bf; } .flags.good h4 { color: var(--good-ink); margin: 0; }
.flags.bad { background: #fbefef; border: 1px solid #efc6c6; } .flags.bad h4 { color: var(--bad-ink); margin: 0; }
.trend.good { color: var(--good-ink); } .trend.bad { color: var(--bad-ink); }
.bcard .bn .num { word-break: break-word; }
td.m-to { color: var(--good-ink); font-weight: 650; background: #eef7ee; }
td.m-by { color: var(--bad-ink); font-weight: 650; background: #fbefef; }
.bcards.five { grid-template-columns: repeat(5, 1fr); }
.pbar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; min-width: 1.2in; }
.pbar span { display: block; height: 100%; background: var(--unc); border-radius: 4px; }
.sample-tag { background: #f3d9a4; color: var(--navy); padding: 1px 8px; border-radius: 4px; letter-spacing: .08em; }

/* utility classes used instead of inline styles (strict CSP on the web report) */
.mt4 { margin-top: 4px; }
.tile .v.v13 { font-size: 13pt; }

.sw-008300{background:#008300}.sw-0b0b0b{background:#0b0b0b}.sw-1baf7a{background:#1baf7a}.sw-2a78d6{background:#2a78d6}.sw-6250d6{background:#6250d6}.sw-898781{background:#898781}.sw-c3c2b7{background:#c3c2b7}.sw-e1e0d9{background:#e1e0d9}.sw-e34948{background:#e34948}.sw-e87ba4{background:#e87ba4}.sw-eb6834{background:#eb6834}.sw-eda100{background:#eda100}
/* Screen layer for the web report. The print stylesheet (style.css) is loaded first and kept intact so every
   section, table and SVG chart is identical to the PDF; this file only adapts layout for a browser. */
@media screen {
  html { scroll-behavior: smooth; scroll-padding-top: 70px; }
  body { background: #eef0f3; font-size: 15px; }
  .wr-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 18px;
            background: var(--navy); color: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
  .wr-top .wr-title { font-weight: 750; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wr-back { color: #f3d9a4; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
  .wr-back:hover { text-decoration: underline; }
  .wr-top .wr-title small { color: #c7d0df; font-weight: 500; margin-left: 8px; }
  .wr-top input[type=search] { width: 230px; max-width: 40vw; padding: 7px 10px; border-radius: 8px; border: 0; font: inherit; font-size: 14px; }
  .wr-btn { display: inline-block; background: #f3d9a4; color: var(--navy); font-weight: 700; border-radius: 8px; padding: 7px 12px; font-size: 14px; text-decoration: none; white-space: nowrap; }
  .wr-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; max-width: 1240px; margin: 0 auto; padding: 18px; }
  .wr-nav { position: sticky; top: 70px; align-self: start; max-height: calc(100vh - 90px); overflow: auto; font-size: 13.5px; }
  .wr-nav a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; line-height: 1.3; }
  .wr-nav a.on { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  .wr-main { min-width: 0; }
  .wr-main > section { background: #fff; border-radius: 14px; padding: 30px 34px; margin: 0 0 18px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
  .cover { height: auto; width: auto; border-radius: 14px; overflow: hidden; padding: 0 !important; }
  .cover .foot { margin-top: 18px; }
  .toc a span:last-child { visibility: hidden; }      /* PDF page numbers are meaningless on screen */
  #sec-contents { display: none; }                     /* the sidebar replaces the contents page */
  svg rect:hover, svg circle:hover { opacity: .82; cursor: default; }
  /* case-file tools */
  .wr-filters { position: sticky; top: 62px; z-index: 5; background: #fff; padding: 10px 0 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
                display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
  .wr-chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; }
  .wr-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
  .wr-filters select { font: inherit; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line-2); }
  .wr-count { margin-left: auto; color: var(--muted); }
  .case { cursor: default; }
  .case.wr-collapsed > *:not(.case-head):not(.why):not(.wr-toggle) { display: none; }
  .case .wr-toggle { float: right; font-size: 12.5px; margin-top: -2px; background: none; border: 0; color: var(--navy-2); cursor: pointer; font-weight: 650; }
  .wr-hidden { display: none !important; }
  mark.wr-hit { background: #fff1b8; padding: 0 1px; }
  @media (max-width: 860px) {
    .wr-wrap { grid-template-columns: 1fr; padding: 10px; }
    .wr-nav { display: none; }
    .wr-main > section { padding: 18px 16px; }
    .bcards, .gcards, .grid-2, .grid-3, .tiles, .kstrip, .bcards.five { grid-template-columns: 1fr 1fr !important; }
    .wr-top input[type=search] { display: none; }
  }
}
@media print {
  .wr-top, .wr-nav, .wr-filters, .wr-toggle { display: none !important; }
  .wr-wrap { display: block; padding: 0; } .wr-main > section { padding: 0; box-shadow: none; }
}
