/* Sharp Artisan — one stylesheet for every page. */
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --desk: #e8ecf0;
  --paper: #ffffff;
  --ink: #1b2430;
  --muted: #576272;
  --rule: #c9d1da;
  --docket: #23497a;
  --pen: #a8231c;
  --pen-wash: rgba(168, 35, 28, 0.13);
  --marker: #ffe45c;
  --marker-wash: rgba(255, 228, 92, 0.55);
  --ok: #2e6b4f;
  --focus: #1f6feb;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #12171e; --paper: #1a212b; --ink: #e6ebf1; --muted: #9aa6b5; --rule: #2e3846;
    --docket: #8db3e8; --pen: #f08a80; --pen-wash: rgba(240, 138, 128, 0.16);
    --marker: #e8c93a; --marker-wash: rgba(232, 201, 58, 0.32); --ok: #7bc7a0; --focus: #79b8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #12171e; --paper: #1a212b; --ink: #e6ebf1; --muted: #9aa6b5; --rule: #2e3846;
  --docket: #8db3e8; --pen: #f08a80; --pen-wash: rgba(240, 138, 128, 0.16);
  --marker: #e8c93a; --marker-wash: rgba(232, 201, 58, 0.32); --ok: #7bc7a0; --focus: #79b8ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 16px/1.55 var(--sans); }
a { color: var(--docket); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
img, canvas { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(30px, 4.6vw, 46px); }
h2 { font-size: clamp(23px, 3vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.measure { max-width: 64ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 6px 10px; z-index: 10; }

/* site header: the brand set like a filed caption */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { flex: none; display: block; width: 30px; height: 30px; }
.site-foot .why-name { flex-basis: 100%; }
.brand small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--docket); text-decoration: underline; text-decoration-thickness: 2px; }

/* the court's filing stamp: the one signature element */
.stamp { font-family: var(--serif); font-size: 12.5px; color: var(--docket); display: flex; gap: 22px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.stamp span { white-space: nowrap; }

/* hero */
.hero { padding: 48px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero .lede { font-size: 19px; color: var(--ink); max-width: 46ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; font: 600 16px/1 var(--sans); padding: 13px 18px; border-radius: 4px; border: 1.5px solid var(--docket); background: var(--docket); color: var(--paper); text-decoration: none; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--docket); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fine { font-size: 14px; color: var(--muted); }

/* a sheet of paper */
.sheet { background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 14px 30px -18px rgba(27, 36, 48, 0.45); padding: 0 22px 20px; position: relative; }
.sheet .stamp { margin: 0 -22px 14px; padding-left: 22px; padding-right: 22px; }
.sheet .line { font-family: var(--serif); font-size: 15px; padding: 3px 0; position: relative; }
.mark { background: linear-gradient(transparent 12%, var(--marker-wash) 12%, var(--marker-wash) 88%, transparent 88%); padding: 0 2px; }
.mark.red { background: var(--pen-wash); box-shadow: inset 0 -2px 0 var(--pen); }
.margin-note { font-family: var(--serif); font-style: italic; color: var(--pen); font-size: 14px; border-left: 2px solid var(--pen); padding: 2px 0 2px 10px; margin: 8px 0 8px 18px; }

/* sections */
.section { padding: 44px 0; border-top: 1px solid var(--rule); }
.section.paper { background: var(--paper); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.checks { width: 100%; border-collapse: collapse; font-size: 15px; }
.checks th, .checks td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.checks th { font-weight: 600; }
.checks td.rule { font-family: var(--serif); color: var(--docket); white-space: nowrap; }
@media (max-width: 640px) { .checks td.rule { white-space: normal; min-width: 7.5em; } }
.cite { font-family: var(--serif); color: var(--docket); }
.price { font-family: var(--serif); font-size: 40px; font-weight: 600; }

/* tool layout */
.tool { padding: 24px 0 48px; }
.tool .wrap { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--rule); padding: 18px; }
.panel h2 { font-size: 21px; }
.panel + .panel { margin-top: 16px; }
label { display: block; font-size: 14px; font-weight: 500; margin: 12px 0 4px; }
input[type="text"], input[type="number"], input[type="date"], select, textarea { width: 100%; font: 400 15px/1.3 var(--sans); padding: 8px 9px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); }
textarea { min-height: 120px; font-family: var(--sans); }
.check-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 15px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.drop { border: 2px dashed var(--rule); padding: 26px 18px; text-align: center; background: var(--paper); cursor: pointer; }
.drop.over { border-color: var(--docket); background: var(--marker-wash); }
.drop strong { font-family: var(--serif); font-size: 19px; display: block; margin-bottom: 4px; }
.samples { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--docket); font: inherit; text-decoration: underline; cursor: pointer; }
.status { font-size: 15px; margin: 12px 0; min-height: 1.5em; }
.coverage { font-family: var(--serif); font-size: 17px; margin-bottom: 10px; }
.coverage.warn { color: var(--pen); }

/* findings / flags as margin notes */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { border-left: 3px solid var(--rule); padding: 10px 12px; margin: 0 0 10px; background: var(--paper); }
.notes li.objection, .notes li.redact { border-left-color: var(--pen); }
.notes li.ask, .notes li.review { border-left-color: var(--marker); }
.notes li.check { border-left-color: var(--docket); }
.notes li.ok { border-left-color: var(--ok); }
.notes .kind { font-size: 13px; font-weight: 600; }
.notes li.objection .kind, .notes li.redact .kind { color: var(--pen); }
.notes li.ok .kind { color: var(--ok); }
.notes .title { font-family: var(--serif); font-size: 17px; font-weight: 600; display: block; margin: 2px 0; }
.notes .rule { font-family: var(--serif); font-size: 14px; color: var(--docket); }
.notes .masked { font-family: var(--serif); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.notes button { margin-top: 4px; }

/* page viewer */
.viewer { position: relative; }
.pagebox { position: relative; margin: 0 0 18px; background: #fff; border: 1px solid var(--rule); width: fit-content; max-width: 100%; }
.pagebox canvas { display: block; }
.pagebox .pnum { position: absolute; top: 6px; right: 8px; font-size: 12px; color: #576272; background: rgba(255,255,255,.85); padding: 1px 6px; }
.hl { position: absolute; pointer-events: none; mix-blend-mode: multiply; }
.hl.review, .hl.ask, .hl.check { background: rgba(255, 228, 92, 0.6); }
.hl.redact, .hl.objection { background: rgba(168, 35, 28, 0.22); box-shadow: 0 0 0 2px #a8231c; }
.hl.flash { animation: flash 1.2s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 8px rgba(31, 111, 235, 0.6); } 100% { box-shadow: 0 0 0 0 rgba(31, 111, 235, 0); } }

/* extracted fields */
.fields { width: 100%; border-collapse: collapse; font-size: 14px; }
.fields td { padding: 4px 6px 4px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.fields td:first-child { color: var(--muted); width: 46%; }
.fields input { padding: 5px 6px; font-size: 14px; }
.pill { display: inline-block; font-size: 12px; padding: 1px 7px; border: 1px solid var(--rule); border-radius: 10px; color: var(--muted); margin-left: 4px; }

/* case table */
.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th, .grid td { border-bottom: 1px solid var(--rule); padding: 7px 8px 7px 0; text-align: left; vertical-align: top; }
.grid th { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.diff-up { color: var(--pen); }
.lock { border: 1px solid var(--rule); background: var(--paper); padding: 22px; }

.site-foot { border-top: 1px solid var(--rule); padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .two, .tool .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .stamp { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hl.flash { animation: none; } }
@media print {
  .site-head, .site-foot, .tool .wrap > aside, .no-print, .viewer { display: none !important; }
  body { background: #fff; color: #000; }
  .tool .wrap { display: block; }
  .panel { border: 0; padding: 0; }
  .notes li { break-inside: avoid; }
}
.spaced { margin-top: 24px; }
.status:empty { display: none; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tool .wrap > * { min-width: 0; }
#claim-list li { overflow-wrap: anywhere; }

/* tool marks (home): each drawing acts out its tool; finished state by default, played by marks.js */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tools { padding: 36px 0 40px; border-top: 1px solid var(--rule); }
.tools ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tools li { padding: 0 20px; border-left: 1px solid var(--rule); }
.tools li:first-child { border-left: 0; padding-left: 0; }
.tools h3 { margin: 0 0 6px; }
.tools h3 a { color: var(--ink); text-decoration: none; }
.tools h3 a:hover { text-decoration: underline; }
.tools p { font-size: 15px; color: var(--muted); margin: 0; }
.tm { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 0 14px; overflow: visible; }
.tm * { transform-box: fill-box; }
.tm-sheet { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; }
.tm-card { fill: var(--paper); stroke: var(--muted); stroke-width: 1.25; }
.tm-ln { fill: none; stroke: var(--rule); stroke-width: 3; stroke-linecap: round; }
.tm-ink { stroke: var(--muted); stroke-width: 2.5; }
.tm-docket { stroke: var(--docket); }
.tm-hl { fill: var(--marker-wash); }
.tm-bar { fill: var(--pen); }
.tm-note { fill: none; stroke: var(--pen); stroke-width: 2; stroke-linecap: round; }
.tm-ok { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tm-num { font: 600 18px var(--sans); font-variant-numeric: tabular-nums; fill: var(--ink); }
.tm-dots { fill: var(--muted); }
.tm-full { opacity: 0; }
.tm-c1 { --dx: 46px; --dy: 20px; } .tm-c2 { --dx: 16px; --dy: 20px; } .tm-c3 { --dx: -14px; --dy: 20px; } .tm-c4 { --dx: -44px; --dy: 20px; }
.tm-c5 { --dx: 46px; --dy: -20px; } .tm-c6 { --dx: 16px; --dy: -20px; } .tm-c7 { --dx: -14px; --dy: -20px; } .tm-c8 { --dx: -44px; --dy: -20px; }
.tools li:nth-child(1) .tm { --d: 0s; } .tools li:nth-child(2) .tm { --d: 0.12s; } .tools li:nth-child(3) .tm { --d: 0.24s; } .tools li:nth-child(4) .tm { --d: 0.36s; }
@media (prefers-reduced-motion: no-preference) {
  .tm.on .tm-claim-ln { stroke-dasharray: 60; animation: tm-draw 0.5s ease-out both; animation-delay: var(--d); }
  .tm.on .tm-claim-hl { transform-origin: left center; animation: tm-sweep 0.35s ease-out both; animation-delay: calc(var(--d) + 0.45s); }
  .tm.on .tm-claim-bar { transform-origin: center; animation: tm-grow 0.25s ease-out both; animation-delay: calc(var(--d) + 0.75s); }
  .tm.on .tm-note { stroke-dasharray: 30; animation: tm-draw-short 0.3s ease-out both; animation-delay: calc(var(--d) + 0.9s); }
  .tm.on .tm-full { animation: tm-out 0.8s ease-in-out both; animation-delay: calc(var(--d) + 0.2s); }
  .tm.on .tm-dots { animation: tm-in 0.8s ease-in-out both; animation-delay: calc(var(--d) + 0.2s); }
  .tm.on .tm-last-hl { transform-origin: left center; animation: tm-sweep 0.3s ease-out both; animation-delay: calc(var(--d) + 0.95s); }
  .tm.on .tm-chip { animation: tm-slide 0.45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d) + 0.1s); }
  .tm.on .tm-chip2 { animation-delay: calc(var(--d) + 0.25s); }
  .tm.on .tm-ok { stroke-dasharray: 16; animation: tm-draw-tick 0.25s ease-out both; animation-delay: calc(var(--d) + 0.6s); }
  .tm.on .tm-ok2 { animation-delay: calc(var(--d) + 0.72s); }
  .tm.on .tm-case-bar { transform-origin: center; animation: tm-grow 0.25s ease-out both; animation-delay: calc(var(--d) + 0.95s); }
  .tm.on .tm-c { animation: tm-fan 0.55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d) + 0.1s + var(--i) * 0.04s); }
  .tm-c1 { --i: 0; } .tm-c2 { --i: 1; } .tm-c3 { --i: 2; } .tm-c4 { --i: 3; } .tm-c5 { --i: 4; } .tm-c6 { --i: 5; } .tm-c7 { --i: 6; } .tm-c8 { --i: 7; }
}
@keyframes tm-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes tm-draw-short { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes tm-draw-tick { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
@keyframes tm-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tm-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tm-out { 0%, 40% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes tm-in { 0%, 40% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
@keyframes tm-slide { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes tm-fan { from { transform: translate(var(--dx), var(--dy)); } to { transform: none; } }
@media (max-width: 860px) {
  .tools ul { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .tools li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) { .brand small { display: block; margin-left: 0; margin-top: 2px; } }
