.case-ending { padding: 0; border: 1px solid #625a44; background: #181d16; overflow: hidden; scroll-margin-top: calc(var(--topbar) + 16px); }
#ending-title { scroll-margin-top: calc(var(--topbar) + 130px); }
.ending-hero { position: relative; isolation: isolate; min-height: 370px; display: flex; align-items: end; background: #151a15; }
.ending-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; z-index: -2; filter: saturate(.4); }
.ending-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#181d16 2%,#111910b8 55%,#0c120b63); }
.ending-hero-copy { width: 100%; padding: clamp(22px,4vw,44px); }
.ending-stamp { display: inline-block; padding: 8px 11px; border: 1px solid #a6b18a; color: #e0e5c5; font: .65rem var(--mono); letter-spacing: .09em; }
.ending-eyebrow { font: .62rem/1.8 var(--mono) !important; letter-spacing: .1em; color: #c2ac7f !important; }
.ending-hero-copy .ending-eyebrow { margin-top: 28px; }
.case-ending h1 { margin: 10px 0 14px; font: 400 clamp(2.2rem,4.5vw,4.2rem)/1.06 var(--editorial); letter-spacing: -.045em; color: #f0eadb; }
.case-ending p { line-height: 1.85; }
.ending-hero-copy > p:last-child { max-width: 570px; color: #e0dbcb; font-size: 1rem; margin-bottom: 0; }
.ending-body { padding: 0 clamp(20px,4vw,44px) 36px; }
.case-ending h2 { margin: 9px 0 15px; font: 400 clamp(1.4rem,2.5vw,1.9rem)/1.25 var(--editorial); color: #e6e0cf; }
.ending-verdict { padding: 24px 0 16px; border-top: 1px solid #625a44; }
.ending-findings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ending-findings article { display: flex; flex-direction: column; padding: 22px; background: #23281f; border: 1px solid #4e513e; }
.ending-findings h3 { margin: 12px 0 0; font: 400 1.35rem/1.3 var(--editorial); color: #e7dcc0; }
.ending-findings p { font-size: .83rem; }
.ending-sources { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.ending-sources button, .ending-record { min-height: 40px; padding: 8px 11px; color: #e1cca1; background: #141c12; border: 1px solid #696148; font: .68rem/1.5 var(--mono); }
.ending-sources button:hover, .ending-record:hover { background: #393a29; border-color: #c2ac7f; }
.case-ending button:focus-visible, .ending-events summary:focus-visible { outline: 2px solid #e6bf80; outline-offset: 3px; }
.ending-reconstruction { margin-top: 38px; }
.ending-events { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid #4e513e; }
.ending-events li { border-bottom: 1px solid #4e513e; }
.ending-events summary { display: grid; grid-template-columns: 55px minmax(0,1fr) 18px; align-items: center; gap: 14px; padding: 20px 4px; cursor: pointer; list-style: none; font-size: .9rem; color: #e0decc; }
.ending-events summary::-webkit-details-marker { display: none; }
.ending-events time { color: #c6a970; font: .8rem var(--mono); }
.ending-events summary b { font-weight: 400; font-size: 1.3rem; color: #c6a970; }
.ending-events details[open] summary b { transform: rotate(45deg); }
.ending-event-detail { padding: 0 4px 22px 73px; }
.ending-event-detail p { margin-top: 0; font-size: .85rem; }
.ending-record { display: block; margin-top: 10px; text-align: left; }
.ending-open-question { margin-top: 32px; padding: 24px; border-left: 2px solid #b89865; background: #b898650d; }
.ending-open-question p { margin-bottom: 0; font-size: .85rem; }
.ending-next-case { margin-top: 32px; padding: 24px; border: 1px solid #9b6d51; background: linear-gradient(135deg,#35251f,#1e221b); }
.ending-next-case p { max-width: 680px; font-size: .85rem; }
.ending-next-case .btn { display: inline-flex; align-items: center; margin-top: 8px; text-decoration: none; }
.ending-next-case .btn:focus-visible { outline: 2px solid #e6bf80; outline-offset: 3px; }
.ending-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid #4e513e; }
.ending-footer blockquote { margin: 0 0 24px; font: italic 1.2rem/1.7 var(--editorial); color: #d2c6a9; }
.ending-summary { font: .66rem/1.8 var(--mono); color: #aeb59d !important; }
.ending-footer .drawer-actions { gap: 10px; }
.first-inspection { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding: 20px; background: #2b2d1e; border: 1px solid #82734d; }
.first-inspection strong { color: #e8d8b4; font-size: .95rem; }
.first-inspection p { margin: 7px 0 0; font-size: .82rem; color: #c7c9b1; line-height: 1.7; }
.first-inspection button { flex-shrink: 0; }
@media(max-width:720px) {
  .ending-hero { min-height: 320px; }
  .ending-findings { grid-template-columns: 1fr; }
  .ending-findings article { padding: 18px; }
  .ending-events summary { gap: 9px; grid-template-columns: 49px minmax(0,1fr) 14px; font-size: .82rem; }
  .ending-event-detail { padding-left: 4px; }
  .ending-open-question { padding: 18px; }
  .ending-next-case { padding: 18px; }
  .ending-footer .drawer-actions { flex-direction: column; align-items: stretch; }
  .first-inspection { flex-direction: column; align-items: start; }
}
