/* Case File page — official record preview (redacted) */

.page-datasheet {
    background: #09090b;
    z-index: 8;
}

.ds-view {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 28px 24px 120px;
}


@media (max-width: 820px) {
    .ds-view {
        padding: 12px 8px 120px;
        overflow-x: hidden;
    }
    .ds-fit {
        width: 100%;
        align-items: center;
    }
}


.ds-fit {
    --ds-scale: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(28px * var(--ds-scale));
}


.ds-sheet {
    width: calc(612px * var(--ds-scale));
    height: calc(792px * var(--ds-scale));
    flex-shrink: 0;
    overflow: hidden;
}


.ds-page {
    position: relative;
    box-sizing: border-box;
    width: 612px;
    height: 792px;
    padding: 72px 72px 72px;
    background: #f3f1ea;
    color: #111;
    font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Courier New", Courier, monospace;
    font-size: 10px;
    line-height: 1.35;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(var(--ds-scale));
    transform-origin: top left;
}


.ds-page.is-first { padding-top: 78px; }

.ds-page.is-first .ds-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ds-page.is-record { padding-top: 78px; }

.ds-page.is-close-page { padding-top: 78px; }

.ds-page.is-close-page .ds-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.ds-body {
    height: 100%;
    overflow: hidden;
}


.ds-headband {
    position: absolute;
    top: 36px;
    left: 72px;
    right: 72px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    font-size: 9px;
    letter-spacing: 0.04em;
    color: #111;
    border-bottom: 1.1px solid #111;
}

.ds-headband::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    border-top: 0.45px solid #111;
}


.ds-headband span:nth-child(2) { font-weight: 700; }


.ds-footband {
    position: absolute;
    left: 72px;
    right: 72px;
    bottom: 38px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 0.8px solid #111;
    font-size: 9px;
    letter-spacing: 0.04em;
    color: #222;
}


.ds-rule-heavy {
    height: 0;
    margin: 0 0 4px;
    border: 0;
    border-top: 1.1px solid #111;
}


.ds-rule-light {
    height: 0;
    margin: 0 0 14px;
    border: 0;
    border-top: 0.45px solid #111;
}


.ds-cover {
    text-align: center;
}

.ds-cover .ds-p {
    text-align: center;
    text-indent: 0;
}


.ds-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 15px;
    margin: 8px auto 18px;
    max-width: 100%;
    white-space: nowrap;
}


.ds-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}


.ds-p {
    margin: 0 0 8px;
    font-size: 9.5px;
    line-height: 13.5px;
    text-align: justify;
    text-indent: 1.2em;
    color: #161616;
}


.ds-p.ds-note {
    font-size: 10px;
    line-height: 13px;
    text-align: left;
    text-indent: 0;
}


.ds-p b { font-weight: 700; }

.ds-p.is-last { margin-bottom: 12px; }


.ds-p.is-close {
    font-size: 9px;
    line-height: 12.5px;
    margin-bottom: 8px;
}


.ds-close {
    text-align: center;
}

.ds-close .ds-p,
.ds-close .ds-p.is-close {
    text-align: center;
    text-indent: 0;
}

.ds-close .ds-h {
    border-bottom: none;
    padding-bottom: 0;
    margin: 16px 0 10px;
}

.ds-close .ds-h::after {
    content: '';
    display: block;
    width: 168px;
    height: 0;
    margin: 6px auto 0;
    border-bottom: 0.7px solid #111;
}


.ds-foot {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 13px;
    text-align: center;
    margin: 0 0 3px;
    text-indent: 0;
}


.ds-h {
    margin: 10px 0 6px;
    padding-bottom: 3px;
    border-bottom: 0.7px solid #111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #000;
}


.ds-fill {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    margin: 0 0 2px;
    font-size: 10px;
    line-height: 12.5px;
}


.ds-fill-k {
    flex: 0 1 auto;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}


.ds-fill-dots {
    flex: 1 1 auto;
    min-width: 10px;
    border-bottom: 1px dotted #8d8d8d;
    transform: translateY(-3px);
    height: 0;
}


.ds-fill-v .ds-redact {
    max-width: 100%;
}


.ds-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 14px;
}


.ds-case {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: start;
    margin: 0 0 4px;
}


.ds-case-meta {
    min-width: 0;
    display: grid;
    gap: 1px;
}


.ds-case .ds-redact-photo,
.ds-case .ds-fig {
    width: 92px;
    margin: 0;
}


.ds-case .ds-fig img,
.ds-case .ds-redact-photo img {
    max-height: 118px;
}


.ds-item {
    margin: 0 0 5px;
    min-width: 0;
}


.ds-meta {
    margin: 0 0 3px 18px;
    font-size: 9px;
    line-height: 11.5px;
    color: #3a3a3a;
    font-style: italic;
}


.ds-item .ds-fill:not(:first-child) {
    margin-left: 18px;
    font-size: 9px;
}


.ds-tr {
    display: grid;
    grid-template-columns: 7.6rem minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 0 4px;
    font-size: 10px;
    line-height: 13px;
}


.ds-th {
    color: #111;
    font-weight: 700;
    letter-spacing: 0.02em;
}


.ds-td {
    min-width: 0;
    color: #111;
    overflow-wrap: anywhere;
    word-break: break-word;
}


.ds-empty { color: #6b6b6b; }


.ds-entry {
    margin: 0 0 8px;
    padding: 0 0 8px 12px;
    border-bottom: 0.4px solid #bdbdbd;
}


.ds-entry-title {
    margin: 0 0 6px -12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}


.ds-fig,
.ds-redact-photo {
    display: block;
    width: 148px;
    max-width: 100%;
    margin: 8px auto 12px;
    padding: 0;
    border: 0;
    background: transparent;
}


.ds-redact-photo.is-wide,
.ds-fig.is-wide { width: 220px; }


.ds-fig img,
.ds-redact-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 186px;
    object-fit: contain;
    object-position: center;
    background: #d7d4cc;
    outline: 0.6px solid #111;
}


.ds-cap {
    margin: -4px 0 12px;
    font-size: 9px;
    color: #404040;
    text-align: center;
    line-height: 12px;
}


.ds-redact {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    vertical-align: baseline;
}


.ds-redact-val {
    visibility: hidden;
}


.ds-redact-bar {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #111;
    pointer-events: none;
}


.ds-redact.is-open .ds-redact-bar { display: none; }

.ds-redact.is-open .ds-redact-val { visibility: visible; }


.ds-redact-photo {
    position: relative;
    cursor: pointer;
}


.ds-redact-photo .ds-redact-bar {
    inset: 0;
}


.ds-redact-photo img { visibility: hidden; }

.ds-redact-photo.is-open img { visibility: visible; }
