/* R71: manual report selection; original report contents and gallery filters stay intact. */
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel],
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] * { box-sizing:border-box; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] { min-width:0;scroll-margin-top:calc(var(--r66-header-height,76px) + 16px); }
.r71-report-carousel .r71-report-tabs { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 12px;padding:0;border:0; }
.r71-report-carousel .r71-report-tabs>[data-r71-report] { display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #ddd4f0;border-radius:9px;background:#faf8ff;color:#665287;font:inherit;font-size:14px;font-weight:650;line-height:1.45;text-align:center;text-decoration:none;overflow-wrap:break-word; }
@media(min-width:761px) { :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r71-report-tabs>[data-r71-report] { min-height:44px; } }
.r71-report-carousel .r71-report-tabs>[aria-selected="true"] { border-color:#8a6de0;background:#ede6fc;color:#5234a4;box-shadow:inset 0 -2px #8a6de0; }
.r71-report-carousel .r71-report-tabs>[data-r71-report]:hover { border-color:#a88fe5;background:#f2ecfd; }
.r71-report-carousel .r71-report-tabs>[aria-disabled="true"] { opacity:.45;cursor:default; }
.r71-report-carousel .r71-report-controls { display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;margin:0 0 14px;padding:0; }
.r71-report-carousel .r71-report-controls[hidden] { display:none!important; }
.r71-report-carousel .r71-report-controls>button { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 15px;border:1px solid #ddd2ec;border-radius:8px;background:#fff;color:#6641bd;font:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer; }
.r71-report-carousel .r71-report-controls>button:hover { border-color:#ac96df;background:#f7f3ff; }
.r71-report-carousel .r71-report-controls>button:disabled { opacity:.45;cursor:default; }
.r71-report-carousel [data-r71-status] { display:block;min-width:54px;color:#88799d;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;text-align:center; }
.r71-report-carousel .r71-report-tabs>a:focus-visible,
.r71-report-carousel .r71-report-controls>button:focus-visible { outline:3px solid #24aabd;outline-offset:3px; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel]>.r71-report-track { display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;gap:20px;min-width:0;width:100%;margin:0;padding:0;overflow:visible; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-card:not([hidden]) { display:grid!important;grid-template-columns:220px minmax(0,1fr);width:100%;min-width:0;max-width:100%;margin:0;padding:0;align-items:start;border:1px solid #e1d8ef;border-radius:15px;background:#fff;overflow:hidden;isolation:isolate;scroll-margin-top:calc(var(--r66-header-height,76px) + 16px); }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-preview { display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-width:0;max-width:100%;width:100%;height:100%;margin:0;padding:20px 17px;background:linear-gradient(145deg,#f0ecfa,#f3fafb); }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-preview img { display:block;flex:none;width:100%;height:auto;max-width:100%;max-height:310px;aspect-ratio:1191/1684;object-fit:contain;margin:0;border:1px solid #e5deed;border-radius:2px;box-shadow:0 4px 15px #392c5618; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-preview>span { display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;margin:0;color:#6b49bb;font-size:12px;font-weight:600;line-height:1.5;text-align:center; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy { display:block;width:100%;min-width:0;max-width:100%;margin:0;padding:22px 25px;overflow:visible; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>h3 { margin:0 0 9px;font-size:25px;line-height:1.35;overflow-wrap:break-word; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>p { margin:0 0 10px;font-size:15px;line-height:1.75;overflow-wrap:break-word; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>.r36-report-label { margin:0 0 6px;font-size:12px;line-height:1.5; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>.r36-report-insight { font-size:17px;line-height:1.6; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] :is(.r61-report-graphic,.r52-social-graphic) { margin:15px 0;padding:14px; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>details>summary { min-height:44px;padding:10px 0;font-size:13px;line-height:1.55; }
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-pdf-link { display:inline-flex;align-items:center;min-height:42px;margin:0;font-size:13px;line-height:1.55; }
/* Filter-owned hidden and carousel-owned inactive remain independent. */
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-card[data-r71-active="false"],
:is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-card[hidden] { display:none!important; }
@media(max-width:900px) {
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-card:not([hidden]) { grid-template-columns:180px minmax(0,1fr); }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy { padding:20px; }
 .r71-report-carousel .r71-report-tabs>[data-r71-report] { font-size:13px;padding:9px; }
}
@media(max-width:760px) {
 .r71-report-carousel .r71-report-tabs { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:15px; }
 .r71-report-carousel .r71-report-tabs>[data-r71-report] { min-height:48px;padding:9px 8px;font-size:13px; }
 .r71-report-carousel .r71-report-tabs [aria-hidden="true"] { display:none; }
 .r71-report-carousel .r71-report-controls { justify-content:space-between;gap:8px;margin-bottom:12px; }
 .r71-report-carousel .r71-report-controls>button { min-width:100px;padding:8px 11px;font-size:12px; }
 .r71-report-carousel [data-r71-status] { min-width:42px;font-size:11px; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-card:not([hidden]) { grid-template-columns:minmax(0,1fr);border-radius:13px; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-preview { padding:14px 12px 10px;gap:5px;height:auto; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-preview img { width:auto;max-width:70%;height:170px;max-height:170px; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-preview>span { min-height:36px;font-size:11px; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy { padding:18px 16px; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>h3 { font-size:22px;line-height:1.4; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>p { font-size:14px;line-height:1.75; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>.r36-report-label { font-size:11px; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy>.r36-report-insight { font-size:16px; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] :is(.r61-report-graphic,.r52-social-graphic) { margin:13px 0;padding:11px; }
}
@media(max-width:359px) {
 .r71-report-carousel .r71-report-tabs>[data-r71-report] { font-size:12px; }
 .r71-report-carousel .r71-report-controls>button { min-width:88px; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel] .r36-report-copy { padding:17px 13px; }
}

/* R72 mobile additions follow the frozen R71 desktop rules. */
.r71-report-carousel .r72-swipe-hint { display:none; }
.r71-report-carousel .r71-report-tabs>[aria-current="true"] { border-color:#8a6de0;background:#ede6fc;color:#5234a4;box-shadow:inset 0 -2px #8a6de0; }
@media(max-width:760px) {
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel][data-r72-mode="vertical"]>.r71-report-track {
  display:block;height:clamp(280px,64svh,620px);min-height:0;max-height:none;
  margin:0;padding:0 5px 0 0;overflow-x:hidden;overflow-y:auto;
  scroll-snap-type:y proximity;scroll-padding-top:0;scroll-behavior:auto;
  scrollbar-width:thin;scrollbar-color:#ab98da #eee9f8;
  overscroll-behavior:auto;border-radius:13px;outline-offset:3px;
  -webkit-overflow-scrolling:touch;
 }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel][data-r72-mode="vertical"]>.r71-report-track:focus-visible { outline:3px solid #23a8bb; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel][data-r72-mode="vertical"] .r36-report-card[data-r71-active]:not([hidden]) {
  display:grid!important;grid-template-columns:minmax(0,1fr);margin:0 0 14px;
  scroll-snap-align:start;scroll-snap-stop:normal;scroll-margin:0;
 }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel][data-r72-mode="vertical"] .r36-report-card[data-r71-active]:last-child { margin-bottom:0; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel][data-r72-mode="vertical"] .r36-report-card[hidden] { display:none!important; }
 .r71-report-carousel[data-r72-mode="vertical"] .r72-swipe-hint { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;color:#79648f;font-size:12px;line-height:1.55; }
 .r71-report-carousel[data-r72-mode="vertical"] .r72-swipe-hint>span:last-child { flex:none;color:#6d4bc4;font-size:18px;line-height:1; }
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel][data-r72-mode="vertical"] .r71-report-tabs>[aria-current="true"] { border-color:#8a6de0;background:#ede6fc;color:#5234a4;box-shadow:inset 0 -2px #8a6de0; }
}
@media(max-width:760px) and (max-height:650px) {
 :is(#strategy-report,#r36-report-library).r71-report-carousel[data-r71-carousel][data-r72-mode="vertical"]>.r71-report-track { height:clamp(260px,60svh,390px); }
}
