:root {
    --paper: #f7f6f2;
    --ink: #171717;
    --muted-ink: #66625c;
    --line: #d8c9b8;
    --strong-line: #8b867d;
    --hover: #ebe8e0;
    --placeholder: #77736c;
    --page-width: 1480px;
    --side-padding: clamp(22px, 4vw, 72px);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Times New Roman", Times, serif;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 var(--side-padding);
    border-bottom: 1px solid var(--line);
    background: rgba(247, 246, 242, 0.98);
}

.matter-name,
.navigation-heading,
.mobile-index-button,
.dropdown-toggle {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.105em;
}

.matter-name {
    white-space: nowrap;
}

.primary-navigation {
    display: flex;
    align-items: stretch;
    gap: 44px;
    align-self: stretch;
}

.navigation-group {
    position: relative;
    display: flex;
    align-items: center;
}

.navigation-heading-row {
    display: flex;
    align-items: center;
    height: 100%;
}

.navigation-heading {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dropdown-toggle span {
    transform: translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    display: none;
    min-width: 310px;
    border: 1px solid var(--brown);
    background: var(--paper);
}

.case-menu {
    width: min(760px, calc(100vw - 48px));
}

.provenance-menu {
    width: min(430px, calc(100vw - 48px));
}

.navigation-group.is-open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px;
    align-items: start;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0.055em;
}

.provenance-menu a {
    grid-template-columns: 1fr;
}

.dropdown-menu a:last-child {
    border-bottom: 0;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: var(--hover);
    outline: none;
}

.roman {
    font-variant-numeric: tabular-nums;
}

.mobile-index-button {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.landing-page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 75px);
    padding: 64px var(--side-padding) 42px;
}

.landing-title-block {
    width: min(920px, 100%);
}

.landing-title-block h1 {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: clamp(48px, 6.6vw, 94px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.035em;
}

.landing-title-block p {
    margin: 34px 0 0;
    font-size: clamp(12px, 1.15vw, 15px);
    font-weight: 400;
    letter-spacing: 0.19em;
}

.landing-footer,
.record-footer {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.115em;
    color: var(--muted-ink);
}

.landing-footer {
    position: absolute;
    right: var(--side-padding);
    bottom: 30px;
}

.record-page {
    width: min(var(--page-width), 100%);
    min-height: calc(100vh - 75px);
    margin: 0 auto;
    padding: clamp(58px, 7vw, 104px) var(--side-padding) 34px;
}

.record-page-header {
    max-width: 1240px;
    padding-bottom: clamp(52px, 6vw, 88px);
}

.record-page-kicker {
    margin: 0 0 18px;
    color: var(--muted-ink);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.record-page-header h1 {
    max-width: 1180px;
    margin: 0;
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.025em;
}

.record-section {
    padding: clamp(40px, 5vw, 72px) 0;
    border-top: 1px solid var(--strong-line);
}

.record-section > h2,
.split-section h2 {
    margin: 0 0 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.field-grid {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.field-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    min-height: 132px;
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.field h3,
.narrative-field h3 {
    margin: 0 0 18px;
    color: var(--muted-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.field-value {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.035em;
}

.placeholder {
    color: var(--placeholder);
}

.theory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.theory-wide {
    grid-column: 1 / -1;
}

.narrative-field {
    min-height: 220px;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.narrative-field.large {
    min-height: 330px;
    border: 1px solid var(--line);
}

.narrative-value {
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.025em;
    white-space: pre-wrap;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.split-section > div > .narrative-field {
    border: 1px solid var(--line);
}

.table-shell {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--brown);
}

.record-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
}

.wide-table {
    min-width: 1450px;
}

.record-table th,
.record-table td {
    padding: 16px 14px;
    line-height: 1.55;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
}

.record-table th:last-child,
.record-table td:last-child {
    border-right: 0;
}

.record-table th {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.105em;
}

.record-table td {
    min-height: 48px;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.03em;
}

.record-table tbody tr:hover {
    background: rgba(235, 232, 224, 0.52);
}

.architecture-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 760px;
    border-top: 1px solid var(--line);
}

.architecture-flow a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    letter-spacing: 0.07em;
}

.architecture-flow a:hover,
.architecture-flow a:focus-visible {
    padding-left: 10px;
    outline: none;
}

.architecture-flow span {
    align-self: center;
    padding: 8px 0;
    color: var(--muted-ink);
}

.architecture-flow .architecture-label {
    align-self: flex-start;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0.07em;
}

.classification-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.classification-strip span {
    min-height: 64px;
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.1em;
}

.page-index {
    border-top: 1px solid var(--brown);
}

.page-index a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.page-index a:hover,
.page-index a:focus-visible {
    padding-left: 10px;
    background: var(--hover);
    outline: none;
}

.page-index span {
    font-size: clamp(13px, 1.25vw, 16px);
    line-height: 1.3;
    letter-spacing: 0.055em;
}

.provenance-index {
    margin-top: clamp(56px, 8vw, 120px);
}

.index-only-page {
    display: flex;
    flex-direction: column;
}

.index-only-page .record-footer {
    margin-top: auto;
}

.record-footer {
    margin-top: 76px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: right;
}

@media (max-width: 1000px) {
    .field-grid-four,
    .field-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .classification-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header {
        min-height: 66px;
    }

    .mobile-index-button {
        display: block;
    }

    .primary-navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0 var(--side-padding) 24px;
        border-bottom: 1px solid var(--brown);
        background: var(--paper);
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .navigation-group {
        display: block;
        border-bottom: 1px solid var(--line);
    }

    .navigation-heading-row {
        justify-content: space-between;
        min-height: 58px;
    }

    .navigation-heading {
        flex: 1;
    }

    .dropdown-toggle {
        width: 48px;
        min-height: 58px;
    }

    .dropdown-menu,
    .case-menu,
    .provenance-menu {
        position: static;
        width: 100%;
        min-width: 0;
        border: 0;
        border-top: 1px solid var(--line);
    }

    .navigation-group:hover .dropdown-menu {
        display: none;
    }

    .navigation-group.is-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        grid-template-columns: 56px 1fr;
        padding-left: 0;
        padding-right: 0;
    }

    .provenance-menu a {
        grid-template-columns: 1fr;
    }

    .landing-page {
        min-height: calc(100vh - 67px);
    }

    .landing-footer {
        left: var(--side-padding);
        right: auto;
    }

    .theory-grid {
        grid-template-columns: 1fr;
    }

    .theory-wide {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .matter-name {
        max-width: 235px;
        white-space: normal;
        line-height: 1.2;
    }

    .landing-title-block h1 {
        font-size: clamp(42px, 13vw, 64px);
    }

    .field-grid-four,
    .field-grid-three,
    .classification-strip {
        grid-template-columns: 1fr;
    }

    .page-index a {
        grid-template-columns: 54px 1fr;
    }

    .record-page-header h1 {
        font-size: 38px;
    }
}



.landing-page-entry {
    min-height: 100vh;
}

.landing-entry {
    display: block;
    width: min(920px, 100%);
    outline: none;
}

.landing-entry .landing-title-block {
    width: 100%;
}

.landing-entry:hover h1,
.landing-entry:focus-visible h1 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;
}

.landing-entry:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 18px;
}



.case-overview-page .narrative-field {
    min-height: 290px;
}

.matter-control-section .field {
    min-height: 146px;
}

.claim-path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 34px;
    border-top: 1px solid var(--brown);
    border-left: 1px solid var(--line);
}

.claim-path-step {
    min-height: 132px;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.claim-path-statute {
    display: block;
    margin-bottom: 18px;
    font-size: 18px;
    letter-spacing: 0.06em;
}

.claim-path-text {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.055em;
}

.framework-table {
    min-width: 1240px;
}

.framework-table th:nth-child(1),
.framework-table td:nth-child(1) {
    width: 16%;
}

.framework-table th:nth-child(2),
.framework-table td:nth-child(2) {
    width: 24%;
}

.framework-table th:nth-child(3),
.framework-table td:nth-child(3) {
    width: 44%;
}

.framework-table th:nth-child(4),
.framework-table td:nth-child(4) {
    width: 16%;
}

.record-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.record-link:hover,
.record-link:focus-visible {
    background: var(--hover);
    outline: none;
}

.case-architecture {
    max-width: 860px;
}

.injury-party-heading {
    display: grid;
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
    gap: 30px;
    align-items: baseline;
    margin: 0 0 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.injury-party-heading.second-party {
    margin-top: 68px;
}

.injury-party-heading h3,
.injury-party-heading p {
    margin: 0;
    font-weight: 700;
}

.injury-party-heading h3 {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.injury-party-heading p {
    color: var(--muted-ink);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.09em;
}

.injury-table {
    min-width: 1320px;
}

.injury-table th:nth-child(1),
.injury-table td:nth-child(1) {
    width: 14%;
}

.injury-table th:nth-child(2),
.injury-table td:nth-child(2) {
    width: 18%;
}

.injury-table th:nth-child(3),
.injury-table td:nth-child(3) {
    width: 31%;
}

.injury-table th:nth-child(4),
.injury-table td:nth-child(4) {
    width: 17%;
}

.injury-table th:nth-child(5),
.injury-table td:nth-child(5) {
    width: 11%;
}

.injury-table th:nth-child(6),
.injury-table td:nth-child(6) {
    width: 9%;
}

@media (max-width: 1000px) {
    .claim-path {
        grid-template-columns: 1fr;
    }

    .injury-party-heading {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}



/* PAGE 1 — REVISED CASE OVERVIEW */
.recovery-position-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 380px));
    justify-content: center;
    gap: 0;
    border: 1px solid var(--line);
    border-top: 2px solid var(--brown);
    background: #fff;
    width: fit-content;
    margin: 0 auto;
}

.recovery-position-item {
    min-height: 150px;
    padding: 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.recovery-position-item strong {
    display: block;
    margin-top: 20px;
    font-size: clamp(20px, 2.2vw, 32px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.recovery-position-primary {
    border: 1px solid var(--brown);
    margin: -1px 0 0 -1px;
}

.recovery-label,
.recovery-note {
    display: block;
    color: var(--muted-ink);
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.115em;
}

.recovery-note {
    margin-top: 16px;
}

.section-note {
    max-width: 1080px;
    margin: 24px 0 0;
    color: var(--muted-ink);
    font-size: 11px;
    line-height: 1.65;
    letter-spacing: 0.075em;
}

.revised-theory-grid .narrative-field {
    min-height: 360px;
}

.revised-theory-grid .theory-wide {
    min-height: 250px;
}

.claim-path-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.claim-path-five .claim-path-step {
    min-height: 190px;
}

.framework-table {
    min-width: 1420px;
}

.revised-controlling-facts-table {
    min-width: 1380px;
}

.revised-controlling-facts-table th:nth-child(1),
.revised-controlling-facts-table td:nth-child(1) {
    width: 5%;
}

.revised-controlling-facts-table th:nth-child(2),
.revised-controlling-facts-table td:nth-child(2) {
    width: 13%;
}

.revised-controlling-facts-table th:nth-child(3),
.revised-controlling-facts-table td:nth-child(3) {
    width: 50%;
}

.revised-controlling-facts-table th:nth-child(4),
.revised-controlling-facts-table td:nth-child(4) {
    width: 22%;
}

.revised-controlling-facts-table th:nth-child(5),
.revised-controlling-facts-table td:nth-child(5) {
    width: 10%;
}

.damages-model-note {
    max-width: 1120px;
    margin: 0 0 54px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.damages-model-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: 0.05em;
}

.revised-injury-table {
    min-width: 1480px;
}

.revised-injury-table th:nth-child(1),
.revised-injury-table td:nth-child(1) {
    width: 15%;
}

.revised-injury-table th:nth-child(2),
.revised-injury-table td:nth-child(2) {
    width: 18%;
}

.revised-injury-table th:nth-child(3),
.revised-injury-table td:nth-child(3) {
    width: 32%;
}

.revised-injury-table th:nth-child(4),
.revised-injury-table td:nth-child(4) {
    width: 17%;
}

.revised-injury-table th:nth-child(5),
.revised-injury-table td:nth-child(5) {
    width: 12%;
}

.revised-injury-table th:nth-child(6),
.revised-injury-table td:nth-child(6) {
    width: 6%;
}

.damages-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 58px;
    border-top: 1px solid var(--brown);
    border-left: 1px solid var(--line);
}

.damages-summary-strip > div {
    min-height: 128px;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.damages-summary-strip span {
    display: block;
    color: var(--muted-ink);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.11em;
}

.damages-summary-strip strong {
    display: block;
    margin-top: 18px;
    font-size: clamp(17px, 1.8vw, 25px);
    font-weight: 400;
    line-height: 1.1;
}

@media (max-width: 1280px) {
    .claim-path-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recovery-position-grid,
    .damages-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .claim-path-five,
    .recovery-position-grid,
    .damages-summary-strip {
        grid-template-columns: 1fr;
    }

    .revised-theory-grid .narrative-field {
        min-height: 0;
    }
}

@media print {
    .site-header,
    .mobile-index-button,
    .dropdown-menu {
        display: none !important;
    }

    body {
        background: #ffffff;
    }

    .record-page {
        width: 100%;
        padding: 0;
    }

    .record-section {
        break-inside: avoid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* PAGE 1 — OUTWARD RECORD REVISION */
.case-overview-page .narrative-field {
    min-height: 180px;
}

.case-overview-page .narrative-field.theory-wide {
    min-height: 132px;
}

.case-overview-page .recovery-position-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .case-overview-page .recovery-position-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   STANDARD RECORD BOX — approved template (Variant B), 2026-07-27
   Zones in fixed order: kicker, lead, body, strip, source.
   Body is sentence case; all other zones inherit the caps voice.
   ================================================================ */
.record-box {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-top: 2px solid var(--brown);
    background: #fff;
}

.record-box .box-kicker {
    font-weight: 700;
    padding: 14px 22px 0;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted-ink);
}

.record-box .box-lead {
    padding: 10px 22px 0;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    max-width: 62ch;
}

.record-box .box-body {
    padding: 14px 22px 20px;
    font-size: 15px;
    line-height: 1.7;
    max-width: 68ch;
    text-transform: none;
}

.record-box .box-body p {
    margin: 0 0 10px;
}

.record-box .box-body p:last-child {
    margin-bottom: 0;
}

.record-box .box-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 1fr;
    border-top: 1px solid var(--line);
    margin-top: auto;
    padding-top: 0;
}
.record-box .box-body {
    padding-bottom: 20px;
}

.record-box .box-strip > div {
    padding: 14px 22px;
    border-right: 1px solid var(--line);
}

.record-box .box-strip > div:last-child {
    border-right: none;
}

.record-box .box-strip .k {
    display: block;
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--muted-ink);
    margin-bottom: 4px;
}

.record-box .box-strip .v {
    font-size: 14px;
    letter-spacing: 0.03em;
}

.record-box .box-source {
    border-top: 1px solid var(--line);
    padding: 9px 22px;
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--muted-ink);
    background: var(--hover);
}

/* ===== ELEMENT DOSSIER — X. Element-to-Evidence Record ===== */

.element-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 34px;
}

.element-index a {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    background: #fff;
    padding: 6px 12px;
}

.element-index a:hover {
    border-color: var(--brown);
}

.dossier {
    border: 1px solid var(--line);
    border-top: 2px solid var(--brown);
    background: #fff;
    margin-bottom: 34px;
    scroll-margin-top: 90px;
}

.dossier .element-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 16px 24px 0;
}

.dossier .element-bar h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dossier .element-bar .loc {
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-ink);
    text-align: right;
    max-width: 34ch;
}

.dossier .zl {
    display: block;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-ink);
    margin-bottom: 7px;
}

.dossier .proposition {
    margin: 14px 24px 0;
    padding: 14px 18px;
    background: var(--hover);
    border-left: 2px solid var(--strong-line, #8b867d);
    font-size: 14px;
    line-height: 1.65;
    text-transform: none;
}

.dossier .fact {
    padding: 16px 24px 20px;
    font-size: 15px;
    line-height: 1.7;
    text-transform: none;
}

.dossier .fact p {
    margin: 0;
    max-width: 75ch;
}

.dossier .evidence-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 1fr;
    border-top: 1px solid var(--line);
}

.dossier .evidence-strip > div {
    padding: 14px 24px;
    border-right: 1px solid var(--line);
}

.dossier .evidence-strip > div:last-child {
    border-right: none;
}

.dossier .evidence-strip .k {
    display: block;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-ink);
    margin-bottom: 4px;
}

.dossier .evidence-strip .v {
    font-size: 13px;
    line-height: 1.55;
    letter-spacing: 0.03em;
    text-transform: none;
}

.dossier details.workbench {
    border-top: 1px solid var(--line);
}

.dossier details.workbench summary {
    cursor: pointer;
    list-style: none;
    padding: 11px 24px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-ink);
    background: var(--hover);
}

.dossier details.workbench summary::-webkit-details-marker {
    display: none;
}

.dossier details.workbench summary::after {
    content: " · OPEN";
}

.dossier details.workbench[open] summary::after {
    content: " · CLOSE";
}

.dossier .foundation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    border-top: 1px solid var(--line);
}

.dossier .foundation > div {
    padding: 13px 24px 15px;
    border-right: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.6;
    text-transform: none;
}

.dossier .foundation > div:last-child {
    border-right: none;
}

.dossier .open-gap {
    border-top: 1px solid var(--line);
    padding: 14px 24px 16px;
    font-size: 14px;
    line-height: 1.65;
    text-transform: none;
}

.dossier .open-gap p {
    margin: 0;
    max-width: 75ch;
}

@media print {
    .dossier details.workbench summary::after {
        content: "";
    }
}

.table-title {
    font-weight: 700;
}

.record-table td ul.cell-list {
    margin: 0;
    padding-left: 18px;
    list-style: square;
}
.record-table td ul.cell-list li {
    margin: 0 0 6px;
}
.record-table td ul.cell-list li:last-child {
    margin-bottom: 0;
}

/* ===== SITE SEARCH BAR ===== */
#site-search-bar {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: #f4f2ee;
    border-bottom: 1px solid #ddd;
}
#site-search-pill {
    display: flex;
    align-items: center;
    width: min(720px, 78vw);
    background: #fff;
    border: 1px solid #e3e0da;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    padding: 4px 10px 4px 26px;
}
#site-search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 17px;
    line-height: 1;
    padding: 13px 8px;
    color: #222;
}
#site-search-input::placeholder { color: #9a968e; }
#site-search-divider {
    width: 1px;
    height: 26px;
    background: #d8d5cd;
    margin: 0 6px;
}
#site-search-pill #site-search-next {
    border: 0;
    background: transparent;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 999px;
}
#site-search-pill #site-search-next:hover { background: #f0eee8; }
#site-search-pill #site-search-clear {
    border: 0;
    background: transparent;
    font-size: 15px;
    color: #6b6759;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 999px;
}
#site-search-pill #site-search-clear:hover { background: #f0eee8; color: #111; }
#site-search-count {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b6759;
    min-width: 100px;
}
mark.site-search-hit {
    background: #ffe94d;
    color: #111;
    padding: 0 1px;
}
mark.site-search-current {
    background: #ffb300;
    outline: 2px solid #ffb300;
}
@media (max-width: 700px) {
    #site-search-count { display: none; }
}

/* ===== PAGE TOC — counsel's index (cream / navy / black only) ===== */
#page-toc-toggle {
    position: fixed;
    left: 14px;
    bottom: 18px;
    z-index: 950;
    background: #1f3a5f;
    color: #f7f4ec;
    border: 1px solid #1f3a5f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 9px 14px;
    cursor: pointer;
}
#page-toc {
    position: fixed;
    top: 76px; /* JS repositions below the site header */
    left: -320px;
    bottom: 0;
    width: 290px;
    overflow-y: auto;
    background: #f7f4ec;
    border-right: 2px solid #1f3a5f;
    padding: 22px 18px 70px;
    z-index: 920;
    transition: left 0.25s ease;
}
body.toc-open #page-toc { left: 0; }
/* static distribution: rails claim their gutters, the record stays centered between them */
body { transition: padding 0.25s ease; }
body.toc-open { padding-left: 300px; }
body.notepad-open { padding-right: 330px; }
main, article.record-page { max-width: 1280px; margin-left: auto; margin-right: auto; }
@media (max-width: 1200px) {
    body.toc-open { padding-left: 0; }
    body.notepad-open { padding-right: 0; }
}
#page-toc-head {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #1f3a5f;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 3px double #1f3a5f;
}
#page-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 0;
}
#page-toc .toc-item {
    position: relative;
    margin: 0;
    border-bottom: 1px solid rgba(31, 58, 95, 0.15);
}
#page-toc .toc-item::before { display: none; }
#page-toc .toc-item a {
    display: block;
    padding: 8px 8px 8px 12px;
    border-left: 3px solid transparent;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.45;
    color: #111;
    text-decoration: none;
}
#page-toc .toc-sub a {
    font-weight: 400;
    padding-left: 26px;
    color: #1f3a5f;
}
#page-toc .toc-item a:hover {
    border-left-color: #1f3a5f;
    background: rgba(31, 58, 95, 0.06);
}
#page-toc .toc-active > a {
    border-left-color: #1f3a5f;
    background: #1f3a5f;
    color: #f7f4ec;
}


/* ===== BROWN RECORD THEME (beige / black / navy / dark brown) ===== */
:root {
    --brown: #4e342e;
    --brown-rule: #8a6a52;
}

/* all headings & titles → dark brown */
.record-page-header h1,
.record-section > h2,
.split-section h2,
h3.table-title,
.field h3,
.narrative-field h3,
.dossier .element-bar h3,
.injury-party-heading h3,
.record-box .box-kicker,
.landing-title-block h1,
.matter-name,
.navigation-heading {
    color: var(--brown);
}

/* roman numerals — bigger + brown */
.record-page-kicker {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--brown);
}
.page-index a span:first-child {
    font-size: 17px;
    font-weight: 700;
    color: var(--brown);
}

/* table header rules & strong box rules → brown */
.record-table th { color: var(--brown); border-bottom-color: var(--brown-rule); }
.table-shell { border-color: var(--brown-rule); }
.zl { color: var(--brown); }

/* 1.5 line spacing everywhere */
body { line-height: 1.5; }
.record-page p,
.record-page li,
.record-table td,
.box-body p,
.box-lead,
.recovery-note,
.section-note,
.field-value,
.proposition,
.fact {
    line-height: 1.5;
}


/* ===== FULL-WIDTH PROSE — text sections use the same width as the charts ===== */
.record-box .box-lead { max-width: none; }
.record-box .box-body { max-width: none; }
.dossier .fact p { max-width: none; }
.dossier .open-gap p { max-width: none; }
.section-note { max-width: none; }

/* ===== CHART ZEBRA — every other row two shades darker beige for skimming ===== */
.record-table tbody tr:nth-child(even) td {
    background: rgba(143, 193, 232, 0.22);
}
.record-table tbody tr:hover td {
    background: rgba(143, 193, 232, 0.38);
}


/* ===== HEADING BANDS — translucent brown behind every title ===== */
.record-page-header h1 {
    display: inline-block;
    background: rgba(78, 52, 46, 0.10);
    padding: 6px 18px 6px 12px;
}
.record-section > h2,
.split-section h2 {
    display: inline-block;
    background: rgba(78, 52, 46, 0.12);
    padding: 5px 16px 5px 10px;
}
h3.table-title {
    display: inline-block;
    background: rgba(78, 52, 46, 0.08);
    padding: 4px 12px 4px 8px;
}


/* ===== LIQUID-GLASS 'ALSO FOUND IN' DROPDOWN ===== */
#site-search-elsewhere {
    display: none;
    position: fixed;
    z-index: 960;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(40, 30, 20, 0.18);
    padding: 12px 8px 8px;
    overflow: hidden;
}
#site-search-elsewhere .elsewhere-head {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--brown);
    padding: 2px 14px 8px;
}
#site-search-elsewhere .elsewhere-item {
    display: block;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
}
#site-search-elsewhere .elsewhere-item:hover {
    background: rgba(255, 255, 255, 0.65);
}
#site-search-elsewhere .elsewhere-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brown);
}
#site-search-elsewhere .elsewhere-count {
    display: block;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #1f3a5f;
    margin: 2px 0;
}
#site-search-elsewhere .elsewhere-snippet {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    color: #333;
}


/* ===== NOTEPAD — right-rail legal pad ===== */
#notepad-toggle {
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 950;
    background: #4e342e;
    color: #f7f4ec;
    border: 1px solid #4e342e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 9px 14px;
    cursor: pointer;
}
#notepad {
    position: fixed;
    top: 76px;
    right: -340px;
    bottom: 0;
    width: 310px;
    z-index: 920;
    display: flex;
    flex-direction: column;
    background: #f7f4ec;
    border-left: 2px solid #4e342e;
    transition: right 0.25s ease;
}
body.notepad-open #notepad { right: 0; }
#notepad-head {
    padding: 14px 16px 10px;
    border-bottom: 3px double #4e342e;
}
#notepad-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#notepad-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #4e342e;
}
#notepad-close {
    background: transparent;
    border: 0;
    color: #4e342e;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
}
#notepad-feats {
    list-style: square;
    margin: 8px 0 0;
    padding-left: 18px;
}
#notepad-feats li {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #8a6a52;
    line-height: 1.8;
}
body.notepad-open #notepad-toggle { display: none; }
#notepad-area {
    flex: 1;
    border: 0;
    outline: none;
    overflow-y: auto;
    padding: 0 16px 14px;
    font-size: 12.5px;
    line-height: 26px;
    color: #222;
    background-image: linear-gradient(to bottom, transparent 25px, rgba(78, 52, 46, 0.16) 25px);
    background-size: 100% 26px;
    background-attachment: local;
}
#notepad-area:empty::before {
    content: attr(data-placeholder);
    color: #9a8f80;
}
#notepad-area .np-entry {
    margin: 0 0 4px;
}
#notepad-area .np-num {
    font-weight: 700;
    color: #4e342e;
}
#notepad-area .np-cite {
    font-size: 10px;
    line-height: 26px;
    color: #8a7a68;
    padding-left: 16px;
}
#notepad-area .np-cite em { font-style: italic; }
#notepad-buttons {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid rgba(78, 52, 46, 0.3);
}
#notepad-buttons button {
    flex: 1;
    background: #fff;
    border: 1px solid #4e342e;
    color: #4e342e;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 8px 4px;
    cursor: pointer;
}
#notepad-buttons button:hover { background: #4e342e; color: #f7f4ec; }
#notepad-clip {
    position: absolute;
    z-index: 990;
    display: none;
    background: #1f3a5f;
    color: #f7f4ec;
    border: 0;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 7px 12px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}


/* permanent rails: no close button on wide screens */
@media (min-width: 1201px) {
    #notepad-close { display: none; }
}

/* landing title — bubble up on hover so it reads as clickable */
.landing-entry { display: inline-block; cursor: pointer; }
.landing-entry .landing-title-block {
    transition: transform 0.22s ease, text-shadow 0.22s ease;
}
.landing-entry:hover .landing-title-block {
    transform: translateY(-8px) scale(1.025);
    text-shadow: 0 10px 24px rgba(78, 52, 46, 0.25);
}
.landing-entry:hover .landing-title-block p {
    color: #4e342e;
}


/* ===== ANNOTATIONS — liquid-glass tints & threads ===== */
.anno {
    border-bottom: 1.5px dotted rgba(78, 52, 46, 0.6);
    cursor: pointer;
    border-radius: 2px;
}
#anno-chip {
    position: absolute;
    z-index: 990;
    display: none;
    background: rgba(78, 52, 46, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #f7f4ec;
    border: 0;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 7px 12px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
#anno-picker {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 30, 20, 0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
#anno-picker-card {
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(40, 30, 20, 0.25);
    padding: 26px 30px;
    min-width: 280px;
}
.anno-picker-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #4e342e;
    margin-bottom: 14px;
    text-align: center;
}
.anno-person {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(78, 52, 46, 0.2);
    border-radius: 14px;
    padding: 10px 14px;
    margin: 6px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #222;
    cursor: pointer;
}
.anno-person:hover { background: rgba(255, 255, 255, 0.9); }
.anno-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: none;
}
#anno-pop {
    position: fixed;
    z-index: 980;
    display: none;
    width: 320px;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 16px 44px rgba(40, 30, 20, 0.22);
    padding: 14px 16px;
}
.anno-thread-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #4e342e;
}
.anno-thread-head #anno-del {
    margin-left: auto;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 13px;
}
.anno-quote {
    font-size: 11px;
    font-style: italic;
    color: #444;
    margin: 8px 0;
    padding-left: 10px;
    border-left: 3px solid rgba(78, 52, 46, 0.35);
    line-height: 1.5;
}
.anno-comments { max-height: 150px; overflow-y: auto; }
.anno-comment {
    font-size: 11.5px;
    line-height: 1.5;
    margin: 6px 0;
    color: #222;
}
.anno-comment .anno-dot { width: 9px; height: 9px; margin-right: 4px; }
#anno-reply {
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    border: 1px solid rgba(78, 52, 46, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    padding: 8px 10px;
    font-size: 12px;
    resize: vertical;
}
.anno-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.anno-actions button, .anno-actions label {
    background: #1f3a5f;
    color: #f7f4ec;
    border: 0;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 8px 12px;
    cursor: pointer;
}
.anno-actions #anno-export, .anno-actions #anno-import-label {
    background: rgba(78, 52, 46, 0.85);
}


/* ===== PAGE TITLES — glass navy, white text ===== */
.record-page-header h1 {
    display: inline-block;
    background: rgba(31, 58, 95, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    color: #f7f4ec;
    border-radius: 10px;
    padding: 10px 24px 10px 18px;
    box-shadow: 0 8px 24px rgba(31, 58, 95, 0.22);
}

#page-toc .toc-num {
    display: inline-block;
    min-width: 34px;
    font-weight: 700;
    color: #1f3a5f;
}
#page-toc .toc-active > a .toc-num { color: #f7f4ec; }


/* ===== NAV DROPDOWN — narrow, long titles wrap ===== */
.dropdown-menu {
    min-width: 0;
    width: 380px;
    max-width: 88vw;
}
.dropdown-menu a {
    white-space: normal;
    line-height: 1.45;
    font-size: 10px;
}


/* TOC jumps land below the sticky search bar instead of underneath it */
main h2, main h3, article.record-page h2, article.record-page h3 {
    scroll-margin-top: 100px;
}


/* ===== HEADING RHYTHM — balanced space, scaled to heading size ===== */
.record-page-header {
    margin-top: 34px;
    margin-bottom: 34px;
}
.record-page-header h1 {
    margin: 18px 0;
}
.record-section > h2,
.split-section h2 {
    margin: 30px 0 22px;
}
h3.table-title {
    margin: 24px 0 14px;
}
.record-section > h2 + .record-box,
.record-section > h2 + .table-shell,
.record-section > h2 + p {
    margin-top: 0;
}


/* ===== TOC color swap: main headers navy + bold, subs black ===== */
#page-toc .toc-item a {
    color: #1f3a5f;
    font-weight: 700;
}
#page-toc .toc-sub a {
    color: #111;
    font-weight: 400;
}
#page-toc .toc-sub a .toc-num {
    color: #111;
}
#page-toc .toc-active > a,
#page-toc .toc-active > a .toc-num {
    color: #f7f4ec;
}
