/* v1.0.14: layout repair based on the actual Foundation v0.6.80 markup.
   Compact cards are readable at half-column width; selected details expand
   to the full grid. No study, links, IDs, tracking or event code is changed. */
body.single-sssf_study .sssf-study .sssf-case-list,
body.single-sssf_study .sssf-original-reader-layout .sssf-main { min-width:0!important; }
@media (min-width: 850px) {
 body.single-sssf_study .sssf-study .sssf-case-list {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;width:100%!important;max-width:none!important;}
 body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case[open]{grid-column:1/-1!important;}
 body.single-sssf_study .sssf-original-reader-layout .sssf-main {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;}
 body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter[open]{grid-column:1/-1!important;}
}
/* Claim cards: keep label, number, title and expand icon in their own columns. */
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case{min-width:0!important;max-width:100%!important;overflow:hidden!important;border-radius:12px!important;}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary,
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case:not([open])>summary{
 display:grid!important;grid-template-columns:54px minmax(0,1fr) 22px!important;gap:13px!important;
 padding:15px!important;min-height:100px!important;align-items:center!important;
 overflow:visible!important;box-sizing:border-box!important;
}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-number{
 grid-column:1!important;grid-row:1!important;position:relative!important;inset:auto!important;
 width:54px!important;min-width:54px!important;min-height:66px!important;height:66px!important;
 margin:0!important;padding:19px 0 0!important;align-self:center!important;
 font:normal 24px/1.1 Georgia,serif!important;
}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-number::before{
 content:'CLAIM'!important;position:absolute!important;top:9px!important;left:0!important;right:0!important;
 font:700 8px/1 Arial,sans-serif!important;letter-spacing:.13em!important;
}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-summary-copy{
 grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
 min-width:0!important;max-width:100%!important;width:auto!important;
 margin:0!important;padding:0!important;position:static!important;transform:none!important;
 overflow-wrap:anywhere!important;word-break:normal!important;gap:2px!important;
}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary>.sssf-case-summary-copy>strong,
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case:not([open])>summary strong{
 display:block!important;min-width:0!important;max-width:100%!important;margin:3px 0 0!important;
 font:normal clamp(17px,1.65vw,22px)/1.28 Georgia,serif!important;letter-spacing:0!important;
 overflow-wrap:anywhere!important;white-space:normal!important;
}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary .sssf-case-category-title,
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary .sssf-case-claim-kind{
 font:700 9px/1.3 Arial,sans-serif!important;letter-spacing:.1em!important;max-width:100%!important;
}
body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case>summary::after{
 grid-column:3!important;grid-row:1!important;position:static!important;justify-self:center!important;
 align-self:center!important;margin:0!important;width:22px!important;height:22px!important;
 font-size:20px!important;
}
/* Exam cards: readable compact titles; no massive 40px headline in 300px width. */
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter{
 min-width:0!important;max-width:100%!important;margin:0!important;overflow:hidden!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary.sssf-chapter-summary{
 display:grid!important;grid-template-columns:minmax(0,1fr) 24px!important;
 gap:7px 12px!important;align-content:center!important;align-items:center!important;
 min-height:116px!important;padding:18px 20px!important;margin:0!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary .sssf-chapter-summary-label{
 grid-column:1/-1!important;grid-row:1!important;font:800 11px/1.4 Arial,sans-serif!important;
 margin:0!important;letter-spacing:.12em!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary strong{
 grid-column:1!important;grid-row:2!important;display:block!important;min-width:0!important;
 font:normal clamp(18px,1.6vw,23px)/1.28 Georgia,serif!important;
 margin:0!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary .sssf-chapter-progress-label{
 grid-column:1!important;grid-row:3!important;font-size:12px!important;margin:0!important;
}
body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter>summary .sssf-chapter-chevron{
 grid-column:2!important;grid-row:2!important;position:static!important;align-self:center!important;
 font-size:23px!important;margin:0!important;
}
@media(max-width:849px){
 body.single-sssf_study .sssf-study .sssf-case-list,
 body.single-sssf_study .sssf-original-reader-layout .sssf-main {display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}
}
/* Keep printed text legible. */
@media print {body.single-sssf_study .sssf-study .sssf-case-list,
 body.single-sssf_study .sssf-original-reader-layout .sssf-main{display:block!important;}
 body.single-sssf_study .sssf-study .sssf-case-list>details.sssf-case,
 body.single-sssf_study .sssf-original-reader-layout .sssf-main>details.sssf-chapter{margin-bottom:12px!important;break-inside:avoid;}}
