/* Matters in Motion lives inside the shared site shell. All styles are page-scoped. */
.matter-page{--matter-blue:#315f9e;--matter-soft:#f3f6fa;--matter-line:#dfdfdf;color:#171717}
.matter-page .ledger-section{padding:0 0 36px}
.matter-page .section-heading{display:block;margin:0 0 24px}
.matter-page .section-kicker{margin:0 0 8px;color:var(--matter-blue);font-size:11px;letter-spacing:1.5px;font-weight:600}
.matter-page h1{font:normal 34px/1.2 Georgia,"Times New Roman",serif;letter-spacing:-.6px;margin:0 0 10px}
.matter-page .matter-intro{font-size:14px;line-height:1.65;color:#595959;margin:0;max-width:600px}
.matter-page .toolbar{border-block:1px solid var(--matter-line);display:flex;flex-direction:column;gap:0}
.matter-page .tabs{display:flex;flex-wrap:wrap;gap:22px}
.matter-page .tab{border:0;border-bottom:2px solid transparent;padding:13px 0 11px;color:#595959;font-size:12px;white-space:normal}
.matter-page .tab.is-active{color:var(--matter-blue);border-bottom-color:var(--matter-blue)}
.matter-page .toolbar-right{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}
.matter-page .search-wrap{display:flex;align-items:center;gap:8px;min-width:0;color:#777}
.matter-page .search-wrap input{width:100%;max-width:220px;font-size:13px;padding:5px 0;border:0;background:transparent}
.matter-page .sort-wrap select{font:12px Arial,Helvetica,sans-serif;border:0;background:transparent;color:#595959;max-width:150px;padding:6px 0}
.matter-page .result-count{font-size:11px;color:#595959;line-height:1.6;margin:14px 0;letter-spacing:0;text-transform:none}
.matter-page .matter-limits{font-size:11px;line-height:1.6;color:#666;margin:12px 0 0}
.matter-page .matter-coverage{font-size:12px;border-bottom:1px solid var(--matter-line);padding:0 0 12px;margin:0}
.matter-page .matter-coverage summary{color:#595959;padding:6px 0;width:fit-content}
.matter-page .issue{--date-divider-inset:90px;--history-rail-gap:60px;display:grid;grid-template-columns:74px minmax(0,1fr) 48px;gap:0 16px;padding:26px 0;border-bottom:1px solid var(--matter-line);scroll-margin-top:24px}
/* Inset dividers inside a date group; retain full-width dividers between dates. */
.matter-page .issue:has(+ .issue > .issue-updated.is-repeat){border-image:linear-gradient(to right,transparent 0 var(--date-divider-inset),var(--matter-line) var(--date-divider-inset) 100%) 1}
.matter-page .issue-updated{font-size:9px;color:#666;letter-spacing:.6px;padding-top:3px}
.matter-page .issue-updated b{display:block;font:normal 19px/1.25 Georgia,serif;color:#171717;letter-spacing:-.2px;margin-bottom:5px}
.matter-page .issue-updated span{display:block}
/* Preserve the desktop date column; retain the date for assistive technology. */
/* A square marks an expanded subsequent matter in the same date group, on the rail axis. */
.matter-page .issue-updated.is-repeat{position:relative}
.matter-page .issue:has(> .history:not([hidden])) > .issue-updated.is-repeat::before{content:"";position:absolute;left:calc(var(--date-divider-inset) - var(--history-rail-gap));top:36px;width:8px;height:8px;background:var(--matter-blue);transform:translate(-50%,-50%);z-index:1;pointer-events:none}
.matter-page .issue-updated.is-repeat span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.matter-page .issue-main{min-width:0}
.matter-page .item-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;color:#666;font-size:9px;letter-spacing:.7px;text-transform:uppercase;line-height:1.5}
.matter-page .item-eyebrow .category{color:var(--matter-blue);font-weight:600}
.matter-page .item-eyebrow .sep{color:#bbb}
.matter-page .issue-title{font:normal 25px/1.25 Georgia,"Times New Roman",serif;letter-spacing:-.35px;margin:9px 0 12px;overflow-wrap:anywhere}
.matter-page .item-meta{display:flex;flex-wrap:wrap;gap:5px 12px;color:#595959;font-size:11px;line-height:1.6}
.matter-page .stage{display:inline-flex;align-items:baseline;gap:6px}
.matter-page .stage::before{content:"";width:6px;height:6px;border:1px solid #8b989e;border-radius:50%;flex-shrink:0}
.matter-page .stage.final::before{background:var(--matter-blue);border-color:var(--matter-blue)}
.matter-page .summary-label{display:block;font-size:9px;letter-spacing:.7px;color:#666;font-weight:600;margin:18px 0 6px}
.matter-page .latest-summary{font-size:15px;line-height:1.7;color:#343434;margin:0 0 10px}
.matter-page .item-caveat{font-size:11px;line-height:1.6;color:#666;margin:0 0 12px}
.matter-page .issue-aside{text-align:right;padding-top:3px;font-size:10px;line-height:1.5;color:#666}
.matter-page .issue-aside strong{display:block;font:normal 23px/1.2 Georgia,serif;color:#171717}
.matter-page .issue-aside span{display:block;margin-top:4px}
.matter-page .first-seen{margin-top:15px;font-size:9px;line-height:1.7}
.matter-page .open-history{display:inline-flex;gap:8px;align-items:center;font-size:12px;line-height:1.5;padding:6px 0;color:var(--matter-blue);border:0;border-bottom:1px solid #b7c9df;white-space:normal}
.matter-page .open-history:hover{border-color:var(--matter-blue)}
.matter-page .open-history[aria-expanded=true]{font-weight:600;border-bottom-color:var(--matter-blue)}
.matter-page .open-history svg{flex-shrink:0;transition:transform .22s ease}
.matter-page .open-history[aria-expanded=true] svg{transform:rotate(180deg)}
/* Align the panel with the same inset as the same-day dividers. The timeline rail lives in the date gutter. */
.matter-page .history{--history-padding:20px;grid-column:1/-1;min-width:0;margin-top:20px;margin-inline-start:var(--date-divider-inset);padding:var(--history-padding);background:var(--matter-soft);overflow-wrap:anywhere}
.matter-page .history-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.matter-page .history h4{font:600 10px/1.5 Arial,sans-serif;color:#595959;text-transform:uppercase;letter-spacing:.8px;margin:0 0 20px}
.matter-page .history ol{padding:0;margin:0;list-style:none}
.matter-page .history li{position:relative;padding:0 0 24px;margin:0}
.matter-page .history li:last-child{padding-bottom:0}
.matter-page .history li::before,.matter-page .history li:not(:last-child)::after{content:"";position:absolute;left:calc(0px - var(--history-padding) - var(--history-rail-gap));transform:translateX(-50%);pointer-events:none}
.matter-page .history li:not(:last-child)::after{top:7.5px;bottom:-7.5px;width:1px;background:#c7d2df}
.matter-page .history li::before{top:4px;width:7px;height:7px;border-radius:50%;background:#a3b2c3;z-index:1}
.matter-page .history li:first-child::before{background:var(--matter-blue)}
/* Extend the open history rail from the top of every matter card.
   Leave room below visible dates; repeated-date cards use the full gutter.
   Keep collapsed cards and the narrow mobile layout unchanged. */
@media(min-width:521px){
 .matter-page .issue:has(> .history:not([hidden])) > .issue-updated{position:relative;align-self:stretch}
 .matter-page .issue:has(> .history:not([hidden])) > .issue-updated::after{content:"";position:absolute;left:calc(var(--date-divider-inset) - var(--history-rail-gap));top:66px;bottom:-20px;width:1px;background:#c7d2df;transform:translateX(-50%);pointer-events:none}
 .matter-page .issue:has(> .history:not([hidden])) > .issue-updated.is-repeat::after{top:36px}
 .matter-page .history h4{position:relative}
 .matter-page .history h4::before{content:"";position:absolute;left:calc(0px - var(--history-padding) - var(--history-rail-gap));top:calc(0px - var(--history-padding));bottom:-27.5px;width:1px;background:#c7d2df;transform:translateX(-50%);pointer-events:none}
}
.matter-page .history time{font-size:11px;color:var(--matter-blue)}
.matter-page .event-type{display:block;font-size:13px;font-weight:600;margin:4px 0;color:#171717}
.matter-page .event-desc{font-size:13px;line-height:1.65;color:#343434;margin:6px 0}
.matter-page .event-why{font-size:12px;line-height:1.6;color:#595959;margin:6px 0}
.matter-page .event-why strong{color:#3b516e}
.matter-page .record-citation{display:block;font-size:11px;line-height:1.6;color:#52657c;font-style:normal;overflow-wrap:anywhere;margin:8px 0 0}
.matter-page .source-note{padding:16px;background:#fcfcfc;border:1px solid #e0e6ed;font-size:12px;line-height:1.65;color:#595959}
.matter-page .source-note strong{display:block;color:#315f9e;font-size:10px;letter-spacing:.5px;margin-bottom:6px}
.matter-page .source-note p{margin:0 0 14px}
.matter-page .source-note p:last-child{margin-bottom:0}
.matter-page .matter-about{font-size:12px;color:#595959;border-top:1px solid var(--matter-line);padding:15px 0;margin:0 0 30px}
.matter-page .matter-about>summary{width:fit-content;color:var(--matter-blue)}
.matter-page .matter-about p{line-height:1.7;margin:12px 0}
.matter-page .empty{padding:32px 0;font-size:14px}
.matter-page .ledger-update-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#eff5ff;border:1px solid #b7c9df;padding:12px 14px;margin:14px 0;color:#315f9e;font-size:12px;line-height:1.6}
.matter-page .ledger-update-notice button{background:var(--matter-blue);border:0;color:white;padding:8px 12px;font:12px Arial,sans-serif;white-space:nowrap}
.matter-page button:focus-visible,.matter-page input:focus-visible,.matter-page select:focus-visible{outline:2px solid var(--matter-blue);outline-offset:3px}
@media(max-width:980px){
 .matter-page .issue{--date-divider-inset:74px;--history-rail-gap:48px;grid-template-columns:62px minmax(0,1fr) 38px;gap:0 12px}
 .matter-page .issue-title{font-size:23px}
}
@media(max-width:520px){
 .matter-page h1{font-size:30px}
 .matter-page .tabs{gap:16px}
 .matter-page .tab{font-size:11px}
 .matter-page .issue{--date-divider-inset:16px;--history-rail-gap:8px;grid-template-columns:minmax(0,1fr) 44px;gap:0 12px;padding:24px 0}
 .matter-page .issue-updated{grid-column:1/-1;display:flex;gap:8px;align-items:baseline;margin-bottom:10px}
 .matter-page .issue-updated b{font-size:17px}
 .matter-page .issue-updated.is-repeat{position:absolute;margin:0;padding:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .matter-page .issue:has(> .history:not([hidden])) > .issue-updated.is-repeat{position:relative;margin:0 0 8px;width:auto;height:8px;overflow:visible;clip-path:none}
 .matter-page .issue:has(> .history:not([hidden])) > .issue-updated.is-repeat::before{top:4px}
 .matter-page .issue:has(> .history:not([hidden])) > .issue-updated.is-repeat::after{content:"";position:absolute;left:calc(var(--date-divider-inset) - var(--history-rail-gap));top:4px;height:12px;width:1px;background:#c7d2df;transform:translateX(-50%);pointer-events:none}
 .matter-page .issue:has(> .issue-updated.is-repeat):has(> .history:not([hidden])) .issue-main{position:relative;padding-inline-start:var(--date-divider-inset)}
 .matter-page .issue:has(> .issue-updated.is-repeat):has(> .history:not([hidden])) .issue-main::before{content:"";position:absolute;left:calc(var(--date-divider-inset) - var(--history-rail-gap));top:0;bottom:-16px;width:1px;background:#c7d2df;transform:translateX(-50%);pointer-events:none}
 .matter-page .issue:has(> .issue-updated.is-repeat) .history h4{position:relative}
 .matter-page .issue:has(> .issue-updated.is-repeat) .history h4::before{content:"";position:absolute;left:calc(0px - var(--history-padding) - var(--history-rail-gap));top:calc(0px - var(--history-padding));bottom:-27.5px;width:1px;background:#c7d2df;transform:translateX(-50%);pointer-events:none}
 .matter-page .issue-main{grid-column:1}
 .matter-page .issue-aside{grid-column:2}
 .matter-page .history{--history-padding:16px;margin-top:16px}
 .matter-page .toolbar-right{gap:8px}
 .matter-page .sort-wrap select{max-width:124px}
 .matter-page .ledger-update-notice{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){.matter-page .open-history svg{transition:none}}

/* Single matter-page trial. */
.matter-page .issue-title a{display:inline-block;color:inherit;text-decoration:none}
.matter-page .issue-title a:hover{text-decoration:underline;text-decoration-color:var(--matter-blue);text-underline-offset:4px}
.matter-page .matter-page-link{margin:8px 0 14px;font:12px/1.5 Arial,sans-serif}
.matter-page .matter-page-link a,.matter-page .matter-back,.matter-page .history time a{color:var(--matter-blue);text-underline-offset:3px}
.matter-page .matter-detail-heading{font:32px/1.2 Georgia,serif;margin:20px 0 28px}
.matter-page .history li[id]{scroll-margin-top:24px}
