/* Mark J. Bernet, Receiver — site styles */
:root {
  --ink: #16233a;
  --ink-2: #24365a;
  --paper: #f6f4ef;
  --card: #ffffff;
  --text: #1d232c;
  --muted: #5a6371;
  --line: #e2ded4;
  --accent: #8c6a32;
  --accent-soft: #f3ecdf;
  --alert: #9f2a2a;
  --alert-soft: #fbeeee;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand:hover { color: #fff; }
.brand strong { font: 600 1.35rem/1.1 var(--serif); letter-spacing: .01em; }
.brand span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #c9b48d; margin-top: .2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a { color: #e6e9ef; text-decoration: none; padding: .45rem .8rem; border-radius: 6px; font-size: .95rem; }
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }

/* Page title band */
.page-head { background: var(--ink-2); color: #fff; padding: 2.2rem 0 2rem; }
.page-head h1 { font: 600 clamp(1.6rem, 3.6vw, 2.4rem)/1.2 var(--serif); margin: .2rem 0 0; max-width: 34ch; }
.page-head .tag { color: #c9b48d; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: .6rem 0 0; }
.crumbs { font-size: .88rem; color: #b9c2d3; }
.crumbs a { color: #dfe4ec; }

/* Home hero */
.hero { background: var(--ink); color: #fff; padding: 3rem 0 3.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.hero h1 { font: 600 clamp(2rem, 5vw, 3.1rem)/1.1 var(--serif); margin: 0; }
.hero .role { color: #c9b48d; text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; margin: .7rem 0 1.2rem; }
.hero p.lede { font-size: 1.1rem; color: #dbe0e8; max-width: 58ch; margin: 0 0 1.6rem; }
.hero .photo { width: 170px; border-radius: 12px; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.35); display: block; }
.btn { display: inline-block; background: #c9b48d; color: var(--ink); font-weight: 600; text-decoration: none; padding: .7rem 1.2rem; border-radius: 8px; }
.btn:hover { background: #dcc9a5; color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); margin-left: .5rem; }
.btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Sections */
main { display: block; }
.section { padding: 2.75rem 0; }
.section h2.section-title { font: 600 1.6rem/1.25 var(--serif); margin: 0 0 .4rem; color: var(--ink); }
.section .intro { color: var(--muted); margin: 0 0 1.5rem; max-width: 65ch; }

/* Case cards */
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.cases a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cases a:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(22,35,58,.08); transform: translateY(-1px); }
.cases .name { font: 600 1.12rem/1.3 var(--serif); color: var(--ink); }
.cases .meta { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.cases .count { margin-top: auto; padding-top: .9rem; font-size: .85rem; color: var(--accent); font-weight: 600; }

/* Case page layout */
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; padding: 2.5rem 0 3rem; }
.case-layout.docs-only { grid-template-columns: minmax(0, 720px); }
.case-layout .docs { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; }
.case-layout.docs-only .docs { grid-column: 1; position: static; }
.case-layout article { grid-column: 1; grid-row: 1; }

.docs { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.docs h2 { font: 600 1.05rem/1.3 var(--sans); margin: 0; padding: .95rem 1.1rem; background: var(--accent-soft); color: var(--ink); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.docs h2 small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.docs ol { list-style: none; margin: 0; padding: .35rem 0; max-height: calc(100vh - 8rem); overflow: auto; }
.case-layout.docs-only .docs ol { max-height: none; }
.docs li a { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 1.1rem; text-decoration: none; color: var(--text); font-size: .93rem; line-height: 1.4; }
.docs li a:hover { background: #faf8f3; color: var(--ink); }
.docs li a:hover .doc-label { text-decoration: underline; }
.ft { flex: none; font: 700 .62rem/1 var(--sans); letter-spacing: .05em; color: #fff; background: var(--alert); border-radius: 4px; padding: .32rem .35rem; margin-top: .12rem; min-width: 2.5rem; text-align: center; }
.ft.jpg { background: #4d6b8a; }

/* Article prose */
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.05rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose h2 { font: 600 1.4rem/1.3 var(--serif); color: var(--ink); margin: 2.2rem 0 .8rem; }
.prose h3 { font: 600 1.06rem/1.4 var(--sans); color: var(--ink); margin: 1.6rem 0 .4rem; }
.prose blockquote { border-left: 3px solid var(--line); padding: .2rem 0 .2rem 1.1rem; color: #3c4452; font-style: italic; }
.prose .byline { font-weight: 600; color: var(--ink); }
.prose .byline span { font-weight: 400; color: var(--muted); }
.prose .label { font: 700 .75rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 .5rem; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.4rem; }
.callout ul { margin-bottom: 0; }
.callout p:last-child { margin-bottom: 0; }
.alert { background: var(--alert-soft); border-left: 4px solid var(--alert); padding: .85rem 1.1rem; border-radius: 6px; color: var(--alert); }
.faq { border-top: 1px solid var(--line); }
.faq h3 { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.faq h3:first-child { border-top: 0; }
.entities { columns: 2; column-gap: 2rem; }
.entities li { break-inside: avoid; }
.rx { color: var(--alert); font-weight: 600; }
.parties { display: grid; gap: .75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.parties ul { margin: 0; }
.parties .vs, .caption .vs { font: italic 600 1.1rem var(--serif); color: var(--muted); margin: 0; }
.caption { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; font-size: .92rem; margin-bottom: 1.6rem; }
.caption .court { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.caption-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.caption .role { padding-left: 3rem; font-style: italic; }
.caption .caseno { font-weight: 600; white-space: nowrap; }
.notice { background: var(--accent-soft); padding: .8rem 1.1rem; border-radius: 6px; }
.signoff { font: italic 600 1.2rem var(--serif); color: var(--ink); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Other cases */
.other { border-top: 1px solid var(--line); padding: 2rem 0 3rem; }
.other h2 { font: 600 1.15rem var(--serif); margin: 0 0 1rem; color: var(--ink); }
.other ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.other a { display: inline-block; padding: .4rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; text-decoration: none; }
.other a:hover { border-color: var(--accent); }

/* Articles list */
.article-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.article-list a { display: flex; gap: .9rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .7rem; text-decoration: none; color: var(--text); font-weight: 500; }
.article-list a:hover { border-color: var(--accent); }

/* Bio */
.bio-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2.5rem; align-items: start; padding: 2.5rem 0 3rem; }
.bio-grid .photo { width: 100%; max-width: 200px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c2d3; font-size: .9rem; padding: 2rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: #e6e9ef; }
.site-footer nav a { margin-right: 1.1rem; }

/* Responsive */
@media (max-width: 900px) {
  .case-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-top: 1.5rem; }
  .case-layout .docs { grid-column: 1; grid-row: 1; position: static; }
  .case-layout article { grid-row: 2; }
  .docs ol { max-height: 340px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { padding: 2rem 0 2.4rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero .photo { width: 120px; order: -1; }
  .btn.ghost { margin: .6rem 0 0; }
  .bio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bio-grid .photo { max-width: 140px; }
  .entities { columns: 1; }
  .caption-grid { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .brand { align-items: center; }
}
@media print {
  .site-header, .site-footer, .other, .skip { display: none; }
  .case-layout { display: block; }
  .docs { position: static; margin-bottom: 1.5rem; }
  .docs ol { max-height: none; }
  body { background: #fff; }
}
