/* Layout: letterhead + section nav; docket of case files; partners; the record; the brief (technical). Committed dark look. */
:root {
  --bg: #11151b;          /* corner office after hours */
  --panel: #181e26;
  --panel-2: #1f262f;
  --ink: #ece6d8;         /* ivory letterhead */
  --muted: #9aa2ab;
  --line: #2b333d;
  --brass: #c8a45d;
  --brass-dim: #6b5832;
  --won: #82c79c;
  --lost: #e48676;
  --steel: #7f9bb8;       /* Vegas series */
  --f-serif: "Libre Caslon Text", "Baskerville", "Georgia", serif;
  --f-body: "Work Sans", system-ui, "Segoe UI", sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6; }
.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 16px; padding-block: 0 80px; display: flex; flex-direction: column; gap: 56px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: 1.8rem; line-height: 1.2; }
h3 { font-size: 1.15rem; }
a { color: var(--brass); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
section { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 70px; }
.sec-head { display: flex; flex-direction: column; gap: 6px; max-width: 70ch; }
.sec-mark { font-family: var(--f-serif); font-style: italic; color: var(--brass); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.sec-mark::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--brass-dim); }

/* letterhead */
.letterhead { border-bottom: 1px solid var(--line); }
.lh-in { max-width: 1060px; margin-inline: auto; padding-inline: 16px; padding-block: 36px 26px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.seal { flex: 0 0 auto; width: 74px; height: 74px; }
.firm { font-family: var(--f-serif); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; }
.firm .amp { font-style: italic; color: var(--brass); }
.tagline { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
nav.tabs { position: sticky; top: 0; z-index: 5; background: rgba(17, 21, 27, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
nav.tabs .in { max-width: 1060px; margin-inline: auto; padding-inline: 16px; display: flex; gap: 4px 22px; flex-wrap: wrap; }
nav.tabs a { color: var(--muted); text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding-block: 12px; border-bottom: 2px solid transparent; }
nav.tabs a:hover { color: var(--ink); border-bottom-color: var(--brass); }
.desk { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .desk { grid-template-columns: minmax(0, 1fr); } }
.qotd { margin: 0; background: var(--panel); border: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.qotd .lbl { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.qotd blockquote { margin: 0; font-family: var(--f-serif); font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; text-wrap: balance; }
.qotd blockquote::before { content: "\201C"; color: var(--brass); margin-right: 2px; }
.qotd blockquote::after { content: "\201D"; color: var(--brass); margin-left: 2px; }
.closing { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; max-width: 62ch; color: var(--ink); border-left: 2px solid var(--brass); padding-left: 16px; }
.closing .lbl { display: block; font-family: var(--f-body); font-style: normal; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }

/* docket: case files */
.docket { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 16px; }
.case { position: relative; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--brass-dim); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.case-no { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-data); font-size: .72rem; color: var(--muted); }
.caption { font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.15; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.caption .v { font-family: var(--f-serif); font-style: italic; font-size: 1rem; color: var(--muted); }
.caption .chosen { color: var(--brass); }
.ruling { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.lbl-sm { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ruling .txt b { font-weight: 600; }
.gauge { height: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.gauge > div { height: 100%; background: var(--brass); }
.grounds { display: flex; flex-direction: column; gap: 4px; }
.grounds ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.grounds li { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.grounds .str { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.grounds .str.strong { color: var(--brass); }
.lines { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: .86rem; }
.lines > span:first-child { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lines .mono { font-family: var(--f-data); }
.opposing { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.opposing b { color: var(--ink); font-weight: 600; }
.chip { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.chip.agree { color: var(--muted); }
.chip.differ { color: var(--brass); background: rgba(200, 164, 93, .1); }
.final { font-family: var(--f-data); font-size: .82rem; color: var(--muted); }
.stamp { position: absolute; right: 14px; top: 34px; font-family: var(--f-serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .14em; padding: 2px 10px; border: 2px solid currentColor; transform: rotate(-9deg); opacity: .9; pointer-events: none; }
.stamp.won { color: var(--won); }
.stamp.lost { color: var(--lost); }
.empty { padding: 26px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); }

/* partners */
.counsel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 760px) { .counsel { grid-template-columns: minmax(0, 1fr); } }
.attorney { background: var(--panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.attorney .name { font-family: var(--f-serif); font-size: 1.4rem; }
.attorney .rec { font-family: var(--f-serif); font-size: 2.6rem; line-height: 1.1; margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; }
.attorney .rec small { font-family: var(--f-body); font-size: .8rem; color: var(--muted); margin-left: 6px; }
.attorney .ll { font-family: var(--f-data); font-size: .78rem; color: var(--muted); }
.attorney.me { box-shadow: inset 3px 0 0 var(--brass); }

/* record */
.tbl { background: var(--panel); border: 1px solid var(--line); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.mono { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.r { display: inline-flex; gap: 6px; align-items: baseline; }
.r.ok .mk { color: var(--won); }
.r.no .mk { color: var(--lost); }
.r .mk { font-weight: 700; font-size: .74rem; letter-spacing: .08em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .84rem; color: var(--muted); }

/* the brief */
.brief { gap: 28px; }
.verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.verdict-cell { background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.verdict-cell .big { font-family: var(--f-serif); font-size: 2.3rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.verdict-cell.hero .big { color: var(--brass); }
.live { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.live-head { display: flex; flex-direction: column; gap: 4px; max-width: 72ch; }
.live-row { display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: baseline; }
.live-row .who { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; }
.live-row .val { font-family: var(--f-serif); font-size: 1.7rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.live-row .sub { font-family: var(--f-data); font-size: .76rem; color: var(--muted); }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
@media (max-width: 860px) { .live { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.live-head { display: flex; flex-direction: column; gap: 4px; max-width: 72ch; }
.live-row { display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: baseline; }
.live-row .who { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; }
.live-row .val { font-family: var(--f-serif); font-size: 1.7rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.live-row .sub { font-family: var(--f-data); font-size: .76rem; color: var(--muted); }
.pipeline { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--panel); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.step::before { counter-increment: step; content: "Step " counter(step); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.step h3 { font-size: 1.02rem; }
.step p { font-size: .84rem; color: var(--muted); }
.exhibits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 16px; }
.exhibit { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.exhibit .tag { font-family: var(--f-serif); font-style: italic; color: var(--brass); font-size: .95rem; }
.exhibit p.note { font-size: .84rem; color: var(--muted); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-body); font-size: 12px; fill: var(--muted); }
.chart .lab-ink { fill: var(--ink); }
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 16px; }
.finding { border-top: 1px solid var(--brass-dim); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.finding h3 { font-size: 1.05rem; }
.finding p { font-size: .9rem; color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font-family: var(--f-data); font-size: .78rem; padding: 4px 10px; border: 1px solid var(--line); background: var(--panel); }
ul.plain { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
ul.plain b { color: var(--ink); font-weight: 600; }
footer { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 620px) { .hide-sm { display: none; } }

/* website picks (picks.js) */
.bar { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 14px 18px; }
.auth { display: flex; flex-direction: column; gap: 10px; }
.auth-head { display: flex; flex-direction: column; gap: 2px; }
.auth-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-fields input { flex: 1 1 180px; min-width: 0; background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 8px 10px; font: inherit; font-size: .9rem; }
.auth-fields input:focus-visible, .file input:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.auth-foot, .auth-in { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.auth-in b { font-weight: 600; color: var(--brass); }
.btn { background: var(--brass); color: var(--bg); border: 0; padding: 8px 16px; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible, .link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; color: var(--brass); font: inherit; font-size: .86rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.status { color: var(--muted); }
.file { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); }
.file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-family: var(--f-data); font-size: .82rem; }
.file input[type=range] { width: 100%; accent-color: var(--brass); cursor: pointer; }
.file.locked input[type=range] { cursor: default; opacity: .6; }
.file-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.file-read { font-family: var(--f-serif); font-size: 1.05rem; min-width: 7.5em; }
.case.sealed .ruling, .case.sealed .lines, .case.sealed .opposing { display: none; }
.seal-note { font-style: italic; }
#associates { display: flex; flex-direction: column; gap: 8px; }
