/* Nunito Sans (SIL Open Font License), served from this site: no third-party requests. */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/nunito-sans.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/nunito-sans-italic.woff2") format("woff2"); }
:root {
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans);
}
body { font-size: 15.5px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.005em; }

/* Portal additions to case.css: the grouped sidebar, page tabs, the document
   finder and viewer, the timeline, registers, and the question page. */

/* ---- sidebar ---------------------------------------------------------- */
.frame { grid-template-columns: 244px minmax(0, 1fr); }
.side { gap: .9rem; padding-right: .8rem; }
a.brand { color: var(--ink); text-decoration: none; display: block; }
.sidefind input { width: 100%; font-size: .9rem; padding: .45rem .65rem; border-radius: 9px; }
.menu > summary { display: none; }
.nav .group {
  font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  padding: .9rem .65rem .25rem; font-weight: 600;
}
.nav .group:first-child { padding-top: .1rem; }
.nav a { padding: .36rem .65rem; font-size: .93rem; }
.nav .count { background: var(--mark-warn); color: var(--ink); }
.asof { display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--hair); padding-top: .8rem; }
.asof .me-line b { color: var(--ink); }
.asof form { display: flex; gap: .2rem; flex-wrap: wrap; }
.asof button, .asof .btn { margin-top: 0; font-size: .8rem; }
main { max-width: 1280px; }

@media (max-width: 860px) {
  .side { display: block; padding: .7rem 1rem .4rem; }
  a.brand { display: inline-block; margin-right: 1rem; }
  .sidefind { margin: .5rem 0; }
  .menu > summary {
    display: inline-block; cursor: pointer; list-style: none; border: 1px solid var(--axis);
    border-radius: 8px; padding: .35rem .8rem; background: var(--surface); font-size: .9rem;
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu .nav { flex-direction: column; overflow: visible; padding: .4rem 0; }
  .menu:not([open]) .nav { display: none; }
  .asof { display: none; }
}

/* ---- page tabs -------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; border-bottom: 1px solid var(--hair); margin: -.4rem 0 1.5rem; }
.tabs a {
  padding: .5rem .1rem .6rem; color: var(--ink-2); text-decoration: none; font-size: .95rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

/* ---- shared pieces ---------------------------------------------------- */
mark { background: #ffe37a; color: #0b0b0b; padding: 0 .12em; border-radius: .2em; }
.badge {
  display: inline-block; font-size: .74rem; line-height: 1.5; padding: 0 .5rem; border-radius: 99px;
  background: var(--sunk); color: var(--ink-2); white-space: nowrap; vertical-align: 1px;
}
.badge.official { background: var(--ink); color: var(--surface); }
.badge.private { background: var(--mark-warn); color: var(--ink); }
.badge.draftb { box-shadow: inset 0 0 0 1px var(--axis); background: transparent; }
.badge.proposed { background: transparent; box-shadow: inset 0 0 0 1px var(--axis); color: var(--ink-2); cursor: help; }
.badge.m-custody { background: #dbe9fb; color: #123c73; }
.badge.m-property { background: #e3f0dc; color: #24521a; }
.badge.m-support { background: #f6e4d4; color: #7a3d10; }
.badge.m-general { background: var(--sunk); color: var(--ink-2); }
.helpline { color: var(--muted); font-size: .84rem; margin: .4rem 0 0; }
.helpline code { background: var(--sunk); padding: .05rem .35rem; border-radius: 5px; font-size: .82rem; }
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.bigsearch { display: flex; gap: .5rem; flex-wrap: wrap; }
.bigsearch input[type=search] { flex: 1 1 320px; font-size: 1.05rem; padding: .6rem .85rem; border-radius: 11px; }
.bigsearch button { font-size: 1rem; padding: .55rem 1.2rem; border-radius: 11px; }
.flash { background: var(--mark-good); border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1rem; }
.flash.bad { background: var(--mark-late); }
label.field { display: block; font-size: .84rem; color: var(--ink-2); margin: .6rem 0 .2rem; }
input[type=password], input[type=email], input[type=number] {
  font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--axis); border-radius: 8px; padding: .36rem .55rem; max-width: 100%;
}
.stack > * + * { margin-top: .6rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.grow { flex: 1 1 auto; }
.right { margin-left: auto; }

/* ---- filters ---------------------------------------------------------- */
.filters h4 { font: 600 .74rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .35rem; }
.filters h4:first-child { margin-top: 0; }
.filters .opt { display: flex; justify-content: space-between; gap: .5rem; padding: .22rem .5rem; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.filters .opt:hover { background: var(--sunk); color: var(--ink); }
.filters .opt[aria-current="true"] { background: var(--ink); color: var(--surface); }
.filters .opt .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem; }
.filters .opt[aria-current="true"] .n { color: inherit; opacity: .75; }
.filters input[type=date] { width: 100%; margin-bottom: .3rem; }
.filters label.check { display: flex; gap: .45rem; align-items: baseline; font-size: .9rem; color: var(--ink-2); padding: .15rem .5rem; }

/* ---- results ---------------------------------------------------------- */
.result { padding: .95rem 0; border-bottom: 1px solid var(--hair); }
.result:last-child { border-bottom: 0; }
.result .t { font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.result .t:hover { text-decoration: underline; }
.result .meta { font-size: .82rem; color: var(--muted); margin-top: .15rem; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.result .found { font-size: .82rem; color: var(--ink-2); margin: .45rem 0 .15rem; }
.preview { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .6rem; padding: .28rem 0; font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.preview:hover .where { background: var(--ink); color: var(--surface); }
.preview .where { font-size: .74rem; text-align: center; background: var(--sunk); border-radius: 6px; padding: .12rem 0; height: fit-content; color: var(--ink-2); white-space: nowrap; }
.preview .txt { max-width: 82ch; }
.pick { float: right; margin-left: .8rem; }
.pager { display: flex; gap: .6rem; align-items: center; margin-top: 1.2rem; font-size: .9rem; }

/* ---- document viewer -------------------------------------------------- */
.viewer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 1050px) { .viewer { grid-template-columns: 1fr; } }
.pagebox { position: relative; background: var(--sunk); border-radius: 12px; padding: .7rem; }
.pagebox .sheet { position: relative; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pagebox img { display: block; width: 100%; height: auto; }
.pagebox .hl { position: absolute; background: rgba(255, 214, 10, .42); mix-blend-mode: multiply; border-radius: 2px; pointer-events: none; }
.pagenav { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-bottom: .6rem; font-size: .9rem; }
.pagenav input { width: 4.2rem; text-align: center; }
.sidepane { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.pagetext { white-space: pre-wrap; font: .86rem/1.55 var(--sans); max-width: 78ch; overflow-wrap: anywhere; }
.textdoc { background: var(--surface); border-radius: 12px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow); }
.hitlist a.preview.current .where { background: var(--ink); color: var(--surface); }

/* ---- timeline --------------------------------------------------------- */
.tl { position: relative; margin: .6rem 0 0; }
.tl .year { font: 600 1.3rem var(--serif); margin: 1.8rem 0 .5rem; }
.tl .ev { display: grid; grid-template-columns: 6.2rem 1.2rem minmax(0, 1fr); gap: 0 .7rem; }
.tl .ev .d { text-align: right; font-size: .86rem; color: var(--ink-2); padding-top: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl .ev .rail { position: relative; }
.tl .ev .rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--hair); }
.tl .ev .rail::after { content: ""; position: absolute; left: 50%; top: 1.05rem; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--axis); }
.tl .ev.key .rail::after { background: var(--ink); box-shadow: none; }
.tl .ev .c { padding: .6rem 0 .8rem; }
.tl .ev .c .t { font-weight: 600; color: var(--ink); text-decoration: none; }
.tl .ev .c a.t:hover { text-decoration: underline; }
.tl .ev .c .s { color: var(--ink-2); font-size: .9rem; max-width: 78ch; margin-top: .15rem; }
.tl .ev .c .m { font-size: .8rem; color: var(--muted); margin-top: .25rem; display: flex; gap: .3rem .6rem; flex-wrap: wrap; align-items: center; }
.tl .ev.minor .c .t { font-weight: 400; }
@media (max-width: 640px) { .tl .ev { grid-template-columns: 4.6rem 1rem minmax(0, 1fr); } }

/* ---- registers -------------------------------------------------------- */
.reg { padding: .85rem 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; }
.reg:last-child { border-bottom: 0; }
.reg .t { font-weight: 600; }
.reg .d { color: var(--ink-2); font-size: .9rem; max-width: 80ch; grid-column: 1; }
.reg .src { font-size: .8rem; color: var(--muted); grid-column: 1; display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: center; margin-top: .2rem; }
.reg .side-col { grid-row: 1 / span 3; grid-column: 2; text-align: right; font-size: .84rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.reg blockquote { margin: .4rem 0 .2rem; padding: .45rem .8rem; background: var(--sunk); border-radius: 8px; font: .88rem/1.5 var(--serif); color: var(--ink-2); max-width: 80ch; }
.pill.pendingx, .pill.ongoing { background: var(--sunk); }
.pill.pendingx::before { content: "○"; color: var(--ink-2); font-weight: 700; }
.pill.ongoing::before { content: "↻"; color: var(--ink-2); font-weight: 700; }
.pill.disputed { background: var(--mark-warn); }
.pill.disputed::before { content: "!"; font-weight: 700; }
.pill.done::before { content: "✓"; color: var(--good-ink); font-weight: 700; }
.pill.na::before { content: "–"; color: var(--muted); }
.pill.watch::before { content: "◔"; color: var(--ink-2); }
.pill.resolved::before { content: "✓"; color: var(--good-ink); font-weight: 700; }
details.edit { margin-top: .4rem; }
details.edit > summary { cursor: pointer; font-size: .8rem; color: var(--muted); list-style: none; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit > summary:hover { color: var(--ink); }
details.edit form { background: var(--sunk); border-radius: 10px; padding: .8rem 1rem; margin-top: .4rem; max-width: 760px; }
details.edit textarea { min-height: 4.5rem; }
details.edit input[type=text] { width: 100%; }

/* ---- glance ----------------------------------------------------------- */
.matter { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; }
.matter h3 { margin: 0 0 .2rem; font-size: 1.12rem; }
.matter .status { color: var(--ink-2); font-size: .92rem; margin: .3rem 0 .6rem; max-width: 62ch; }
.matter ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.matter li { margin: .25rem 0; font-size: .92rem; }
.glance-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; }
.orders td { padding: .45rem .7rem .45rem 0; }

/* ---- ask -------------------------------------------------------------- */
.askbox textarea { min-height: 5.2rem; font-size: 1.02rem; border-radius: 12px; padding: .7rem .9rem; }
.examples { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; }
.examples button { font-size: .82rem; border-radius: 99px; color: var(--ink-2); }
.answer { font-size: 1rem; line-height: 1.6; max-width: 80ch; }
.answer p { margin: .7rem 0; }
.answer sup a { text-decoration: none; background: var(--sunk); border-radius: 5px; padding: 0 .3rem; font-size: .74rem; color: var(--ink); }
.answer sup a:hover { background: var(--ink); color: var(--surface); }
.source { padding: .8rem 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .1rem .6rem; }
.source:last-child { border-bottom: 0; }
.source:target { background: var(--sunk); margin: 0 -1.25rem; padding: .8rem 1.25rem; border-radius: 10px; }
.source .n { font: 600 .8rem var(--sans); background: var(--sunk); border-radius: 6px; text-align: center; height: fit-content; padding: .1rem 0; }
.source .q { font: .92rem/1.55 var(--serif); background: var(--sunk); border-radius: 8px; padding: .5rem .8rem; margin: .4rem 0 .3rem; max-width: 80ch; }
.verify { font-size: .78rem; }
.verify.ok { color: var(--good-ink); }
.verify.no { color: var(--crit); }
.notfound { background: var(--mark-warn); border-radius: 12px; padding: .8rem 1.1rem; margin-top: 1rem; }
.notfound h3 { margin: 0 0 .3rem; }
.notfound li { margin: .3rem 0; max-width: 80ch; }
.thinking { color: var(--ink-2); font-size: .9rem; }
.thinking li { margin: .15rem 0; }
.spinner { display: inline-block; width: .9rem; height: .9rem; border: 2px solid var(--axis); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: .4rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- ledgers ---------------------------------------------------------- */
table.ledger td, table.ledger th { padding-right: 1.1rem; }
table.ledger tr.total td { font-weight: 600; border-top: 1px solid var(--axis); }
table.ledger tr.yearrow td { background: var(--sunk); font-weight: 600; padding-left: .5rem; }

/* ---- sign-in ---------------------------------------------------------- */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.signin .card { width: min(410px, 100%); padding: 1.8rem 1.9rem; }
.signin input { width: 100%; font-size: 1rem; padding: .55rem .7rem; }
.signin button { width: 100%; font-size: 1rem; padding: .6rem; margin-top: 1.1rem; }

@media print {
  .tabs, .filters, .pick, details.edit { display: none !important; }
  .split { display: block; }
}

/* the hidden attribute wins over any display rule */
[hidden] { display: none !important; }

/* ---- sidebar: the collapsed Record group -------------------------------- */
.nav details.record > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.nav details.record > summary::-webkit-details-marker { display: none; }
.nav details.record > summary .hint { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .72rem; }
.nav details.record > summary::after { content: "›"; font-size: .95rem; color: var(--muted); transition: transform .15s; }
.nav details.record[open] > summary::after { transform: rotate(90deg); }
.nav details.record:not([open]) > summary:hover { color: var(--ink); }

/* ---- the orders shelf ------------------------------------------------------ */
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.shelf-group + .shelf-group { margin-top: 1rem; }
.shelf-label { font: 600 .74rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .3rem 0 .1rem; border-bottom: 1px solid var(--hair); }
.order { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: start; padding: .75rem 0; border-bottom: 1px solid var(--hair); }
.order:last-child { border-bottom: 0; }
.order-date { font-size: .86rem; color: var(--ink-2); padding-top: .2rem; font-variant-numeric: tabular-nums; }
.order-body .t { font: 600 1.02rem var(--sans); color: var(--ink); text-decoration: none; }
.order-body .t:hover { text-decoration: underline; }
.order-body .why { color: var(--ink-2); font-size: .9rem; margin-top: .1rem; max-width: 72ch; }
.order-body .meta { font-size: .8rem; color: var(--muted); margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.order-act { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.order-act .btn { font-size: .82rem; white-space: nowrap; }
@media (max-width: 700px) {
  .order { grid-template-columns: minmax(0, 1fr); }
  .order-act { justify-content: flex-start; }
}

/* ---- matter doors on the home page ---------------------------------------- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; align-items: stretch; }
.door { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: 1.1rem 1.25rem 1.2rem; display: flex; flex-direction: column; }
.door h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.door h3 a { color: var(--ink); text-decoration: none; }
.door h3 a:hover { text-decoration: underline; }
.door .status { color: var(--ink-2); font-size: .9rem; margin: .45rem 0 .7rem; flex: 1 1 auto; }
.door-stats { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; margin-bottom: .8rem; }
.door-stats a { color: var(--ink-2); text-decoration: none; }
.door-stats a:hover { color: var(--ink); text-decoration: underline; }
.door-stats b { color: var(--ink); font-size: 1.15rem; margin-right: .2rem; }
.door-open { align-self: flex-start; }

/* ---- matter page: the document type list ----------------------------------- */
.typelist { display: flex; flex-direction: column; }
.typelist a { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-size: .93rem; }
.typelist a:last-child { border-bottom: 0; }
.typelist a:hover { text-decoration: underline; }
.typelist a.muted { color: var(--muted); }
.typelist .n { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- review queue ---------------------------------------------------------- */
.reg.review { grid-template-columns: minmax(0, 1fr) auto; }
.verdict { grid-column: 1 / -1; display: flex; gap: .4rem; margin-top: .5rem; }

/* ---- shelf by issuer -------------------------------------------------------- */
.shelf-label { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; }
.shelf-sub { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .78rem; color: var(--muted); }
.shelf-adopted { margin: .2rem 0 0 1.4rem; padding-left: .9rem; border-left: 2px solid var(--hair); }
.shelf-adopted-label { font-size: .76rem; color: var(--muted); padding-top: .5rem; }
.order.compact { padding: .4rem 0; grid-template-columns: 6.2rem minmax(0, 1fr) auto; }
.order.compact .t { font-size: .95rem; }
.order.compact .order-act .btn { font-size: .78rem; padding: .18rem .55rem; }

/* ---- orientation ------------------------------------------------------------ */
.orient { font-size: 1.02rem; line-height: 1.6; max-width: 78ch; color: var(--ink); margin: .2rem 0 0; }
.door .stands { color: var(--ink-2); font-size: .9rem; margin: .45rem 0 .7rem; flex: 1 1 auto; }
.door .governs { font-size: .88rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.door .governs li { padding: .2rem 0; border-top: 1px solid var(--hair); display: flex; gap: .6rem; justify-content: space-between; }
.door .governs li span { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.ask { background: var(--sunk); border-radius: 12px; padding: .9rem 1.1rem; max-width: 80ch; }
.ask h3 { margin: 0 0 .3rem; font-size: 1rem; }
.ask p { margin: 0; color: var(--ink-2); }

/* ---- horizontal timeline ---------------------------------------------------- */
.htl { position: relative; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: .8rem 1rem 1rem; }
.htl-controls { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.htl-controls button { min-width: 2rem; }
.htl-canvas { width: 100%; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.htl-canvas.dragging { cursor: grabbing; }
.htl-canvas svg { display: block; width: 100%; height: auto; font: 12px var(--sans); }
.htl .axis line, .htl .axis path { stroke: #9a9890; }
.htl .axis text { fill: #3d3c38; font-size: 11px; }
.htl .axis text.year { font-weight: 700; fill: #0b0b0b; font-size: 13px; }
.htl .grid line { stroke: #dedcd3; }
.htl .lane-bg { fill: #f6f5f0; }
.htl .lane-bg.m-custody { fill: #eef4fd; }
.htl .lane-bg.m-property { fill: #eef7ec; }
.htl .lane-bg.m-support { fill: #fdf1e8; }
.htl .lane-label { fill: #0b0b0b; font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.htl .lane-line { stroke: #cfcdc3; }
.htl .today line { stroke: #c81e1e; stroke-width: 1.5; stroke-dasharray: 4 3; }
.htl .today text { fill: #c81e1e; font-size: 10.5px; font-weight: 700; }
.htl .era rect { fill: #e6e4dc; rx: 4; }
.htl .era.m-custody rect { fill: #cfe0fa; }
.htl .era.m-property rect { fill: #cfeccb; }
.htl .era.m-support rect { fill: #fbd9c2; }
.htl .era.open rect { stroke: #8f8d85; stroke-dasharray: 4 3; }
.htl .era text { fill: #1c1c1a; font-size: 11.5px; font-weight: 600; }
.htl .ev { cursor: pointer; }
.htl .ev circle { stroke: #fff; stroke-width: 2; }
.htl .ev.m-custody circle { fill: #1d4ed8; }
.htl .ev.m-property circle { fill: #15803d; }
.htl .ev.m-support circle { fill: #c2410c; }
.htl .ev.m-general circle { fill: #374151; }
.htl .ev.minor circle { fill-opacity: .6; }
.htl .ev.deadline circle { fill: #fff; stroke: #c81e1e; stroke-width: 2.5; }
.htl .ev text { fill: #0b0b0b; font-size: 13px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.htl .ev.minor text { fill: #3d3c38; font-weight: 400; font-size: 11px; }
.htl .ev:hover circle { stroke: #0b0b0b; }
.htl .ev.deadline text { fill: #c81e1e; }
.htl .ev .leader { stroke: #9a9890; stroke-width: 1; }
.htl-tip { position: absolute; z-index: 5; max-width: 34ch; background: #0b0b0b; color: #fff; border-radius: 9px; padding: .5rem .7rem; font-size: .82rem; line-height: 1.4; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.htl-tip .d { opacity: .7; font-size: .76rem; }
.htl-tip .s { margin-top: .25rem; opacity: .9; }
.htl.compact { padding: .5rem .8rem .3rem; }
.htl-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-top: .5rem; }
.htl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }

/* ---- key dates on Home ------------------------------------------------------ */
.keydates { margin: 0; padding: 0; list-style: none; }
.keydates li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .2rem .8rem; padding: .3rem 0; border-top: 1px solid var(--hair); font-size: .92rem; }
.keydates li:first-child { border-top: 0; }
.keydates .d { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.keydates li.ahead .d { color: #c81e1e; font-weight: 600; }
.keydates li.ahead { background: #fff5f5; margin: 0 -.6rem; padding: .3rem .6rem; border-radius: 8px; }
.asks { margin: 0; padding: 0; list-style: none; }
.asks li { padding: .35rem 0; border-top: 1px solid var(--hair); font-size: .92rem; }
.asks li:first-child { border-top: 0; }
.asks li b a { color: var(--ink); text-decoration: none; }
.asks li b a:hover { text-decoration: underline; }

/* ---- people -------------------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.people .side h3 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); margin: 0 0 .3rem; }
.person { padding: .45rem 0; border-top: 1px solid var(--hair); font-size: .92rem; }
.person:first-of-type { border-top: 0; }
.person .r { color: var(--ink-2); }
.person .n { color: var(--muted); font-size: .84rem; }

/* ---- account ------------------------------------------------------------------ */
.asof .account-link { display: block; color: var(--ink-2); text-decoration: none; font-size: .86rem; line-height: 1.35; padding: .3rem .4rem; border-radius: 8px; margin: 0 -.4rem; }
.asof .account-link:hover, .asof .account-link[aria-current="page"] { background: var(--sunk); color: var(--ink); }
.asof .account-link b { color: var(--ink); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.tools a { display: block; padding: .6rem .8rem; border: 1px solid var(--hair); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; background: var(--surface); }
.tools a:hover { border-color: var(--axis); }
.tools a .count { background: var(--mark-warn); border-radius: 99px; padding: 0 .45rem; font-size: .78rem; margin-left: .3rem; }
.tools a small { display: block; color: var(--muted); font-size: .78rem; }
@media print { .htl-controls, .htl-tip { display: none !important; } .htl-canvas { overflow: visible; } }

/* ---- matter sections (Home and the matter pages) ------------------------------- */
.msec { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 1.3rem 1.5rem 1.4rem; margin-top: 1.2rem; }
.msec + .msec { margin-top: 1.4rem; }
.msec-head h2 { font-size: 1.55rem; }
.msec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.msec-head h2 { margin: 0; font-size: 1.45rem; }
.msec-head h2 a { color: var(--ink); text-decoration: none; }
.msec-head h2 a:hover { text-decoration: underline; }
.msec-head .asof { border: 0; padding: 0; display: inline; font-size: .84rem; color: var(--muted); margin-left: auto; }
.msec .stands { font-size: 1rem; line-height: 1.55; color: var(--ink); max-width: 80ch; margin: .6rem 0 0; }
.msec-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 1.2rem 2rem; margin-top: 1.1rem; }
@media (max-width: 900px) { .msec-grid { grid-template-columns: 1fr; } }
.msec h4 { font: 600 .76rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; }
.msec h4 a { font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: .5rem; }
.msec .block + .block { margin-top: 1.1rem; }
.msec .ask { padding: .8rem 1rem; }
.msec .ask h4 { margin-bottom: .25rem; }
.latest { margin: 0; padding: 0; list-style: none; }
.latest li { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: .2rem .7rem; padding: .35rem 0; border-top: 1px solid var(--hair); font-size: .93rem; }
.latest li:first-child { border-top: 0; }
.latest .d { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.latest .s { display: block; color: var(--ink-2); font-size: .86rem; }
.latest li.ahead .d { color: #c81e1e; font-weight: 600; }
.govern { margin: 0; padding: 0; list-style: none; }
.govern li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; align-items: start; padding: .4rem 0; border-top: 1px solid var(--hair); font-size: .93rem; }
.govern li:first-child { border-top: 0; }
.govern li .t { font-weight: 600; color: var(--ink); text-decoration: none; }
.govern li .t:hover { text-decoration: underline; }
.govern li .w { display: block; color: var(--ink-2); font-size: .85rem; }
.govern li .d { color: var(--muted); font-size: .8rem; }
.govern li .btn { font-size: .78rem; padding: .18rem .55rem; white-space: nowrap; }
.govern li.sub { padding-left: 1rem; border-left: 2px solid var(--hair); border-top: 0; }
.msec-foot { margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---- fifth pass (2026-10-06): Overview cards, plain matter pages ------------------ */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .5rem; vertical-align: 1px; background: var(--axis); }
.dot.m-custody { background: #1d4ed8; }
.dot.m-property { background: #15803d; }
.dot.m-support { background: #c2410c; }
.nav a { font-size: .97rem; padding: .45rem .7rem; }
.nav a + a { margin-top: .1rem; }
a.brand { font: 600 1.15rem var(--serif); }
a.brand span { font: 400 .8rem var(--sans); color: var(--muted); display: block; }

.mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 1000px) { .mcards { grid-template-columns: 1fr; } }
.mcard { display: flex; flex-direction: column; gap: .55rem; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1.1rem; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.mcard:hover { border-color: var(--axis); }
.mcard-name { font: 600 1.3rem var(--serif); }
.mcard-num { font-size: .8rem; color: var(--muted); margin-top: -.35rem; }
.mcard-head { font-size: .95rem; line-height: 1.5; color: var(--ink-2); flex: 1 1 auto; }
.mcard-when { font-size: .88rem; line-height: 1.4; background: var(--sunk); border-radius: 10px; padding: .55rem .7rem; }
.mcard-when b { display: block; font-size: .76rem; font-weight: 600; color: var(--ink-2); margin-bottom: .1rem; }
.mcard-when.ahead { background: #fff1ef; }
.mcard-when.ahead b { color: #b42318; }
.mcard-go { align-self: flex-start; font-size: .88rem; font-weight: 600; color: var(--link); }
.mcard-go::after { content: " →"; }

.mhead h1 { margin-top: .15rem; }
.mhead p { margin: 0; }
.mgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 1rem 1.4rem; margin-top: 1.4rem; align-items: start; }
@media (max-width: 1000px) { .mgrid { grid-template-columns: 1fr; } }
.mgrid > div { display: flex; flex-direction: column; gap: 1rem; }
.mblock { padding: 1.1rem 1.25rem; }
.mblock h4 { font: 600 .76rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.mblock > p { margin: 0; font-size: 1rem; line-height: 1.6; max-width: 72ch; }
.mblock.issue { background: #fdf3d6; }
.mblock.issue > p { font-size: 1.08rem; font-weight: 500; }
.badge.ahead { background: #fde3df; color: #9a1c12; }
details.more { margin-top: .5rem; }
details.more > summary { cursor: pointer; font-size: .86rem; color: var(--link); padding: .3rem 0; }
.filters details.more > summary { font: 600 .74rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 1.1rem; }
.alldocs { align-self: flex-start; font-size: .95rem; padding: .6rem 1rem; }
.govern li .d { display: block; margin-top: .1rem; }
.mgrid .card + .card { margin-top: 0; }
.nav a { justify-content: flex-start; align-items: baseline; }
.mblock .latest a { color: var(--ink); text-decoration: none; }
.mblock .latest a:hover { text-decoration: underline; color: var(--link); }

/* Overview: calm key-dates chart, people with contact lines */
.htl.simple .htl-canvas { cursor: default; }
.htl .marker line { stroke: #8f8d85; stroke-width: 1; stroke-dasharray: 2 3; }
.htl .marker text { fill: #52514e; font-size: 11.5px; font-weight: 600; }
.htl.simple .ev text { font-weight: 600; font-size: 12.5px; }
.person .r { color: var(--ink-2); font-size: .88rem; }
.person .c { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .88rem; margin-top: .15rem; }
.person .c a { overflow-wrap: anywhere; }
.people .card + .card { margin-top: 0; }
