.industry-evidence .mid { width:100%; max-width:none; }
.industry-evidence .h2 { margin:18px 0 28px; font-size:var(--text-display-small); }
.industry-tabs { display:flex; flex-wrap:wrap; gap:0 24px; border-bottom:1px solid var(--hairline, #D8D4C8); }
.industry-tabs button { font:inherit; font-size:var(--text-secondary); color:var(--muted, #5E5248); background:none; border:0; border-bottom:2px solid transparent; padding:12px 0; cursor:pointer; min-height:44px; }
.industry-tabs button[aria-selected="true"] { color:var(--accent, #5C1A1A); border-bottom-color:currentColor; }
.industry-tabs button:focus-visible { outline:2px solid var(--accent, #5C1A1A); outline-offset:4px; }
.industry-panel { padding-top:22px; }
.industry-panel h3 { margin:0 0 18px; font-weight:400; line-height:1.25; }
.industry-name { color:var(--muted, #5E5248); margin:0 0 12px; }
.industry-carousel.is-ready .industry-name { display:none; }
.industry-metrics { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); border-top:1px solid var(--hairline, #D8D4C8); }
.industry-metric { padding:16px 20px 0 0; }
.industry-metric + .industry-metric { padding-left:24px; border-left:1px solid var(--hairline, #D8D4C8); }
.industry-metric strong { display:block; font-size:var(--text-display-medium); line-height:1.1; font-weight:400; color:var(--accent, #5C1A1A); font-variant-numeric:lining-nums tabular-nums; white-space:nowrap; }
.industry-metric p { margin:10px 0 0; line-height:1.4; max-width:24ch; }
.industry-meaning { margin:22px 0; max-width:75ch; line-height:1.5; font-family:var(--serif-text, 'Vollkorn', Georgia, serif); }
.industry-bottom { display:flex; align-items:center; gap:24px; }
.industry-bottom .button { gap:20px; flex-shrink:0; }
.industry-source { max-width:72ch; margin:0; line-height:1.45; }
.industry-source a { text-decoration:underline; text-underline-offset:3px; }
.industry-controls { display:flex; justify-content:space-between; align-items:center; margin-top:16px; }
.industry-controls > div { display:flex; gap:12px; }
.industry-controls .button { width:56px; height:52px; padding:0; font-size:var(--text-heading-medium); transition:background-color 180ms ease; }
.industry-controls .button:hover { background:var(--ui-brown-visited); }
.industry-controls .button:focus-visible { outline-color:var(--ui-brown); }
.industry-disclaimer { color:var(--muted, #5E5248); margin-top:12px; line-height:1.4; }
.industry-panel[hidden], .industry-tabs[hidden], .industry-controls[hidden] { display:none; }
/* Stack panels in one grid cell so the tallest reserves space for the footer.
   Inactive panels stay invisible and inert, including during responsive reflow. */
.industry-carousel.is-ready .industry-panels { display:grid; }
.industry-carousel.is-ready .industry-panel { grid-area:1 / 1; align-self:start; min-width:0; }
.industry-carousel.is-ready .industry-panel[hidden] { display:block; visibility:hidden; pointer-events:none; }
.industry-carousel.is-ready .industry-panel:not([hidden]) { animation:industry-enter 350ms ease-out; }
@keyframes industry-enter { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:600px) {
 .industry-tabs { gap:0; justify-content:space-between; flex-wrap:wrap; }
 .industry-tabs button { padding:12px 4px; }
 .industry-metrics { grid-template-columns:1fr; }
 .industry-metric, .industry-metric + .industry-metric { display:grid; grid-template-columns:110px 1fr; align-items:center; gap:16px; padding:16px 0; border-left:0; border-bottom:1px solid var(--hairline, #D8D4C8); }
 .industry-metric strong { font-size:var(--text-heading-large); }
 .industry-metric p { margin:0; max-width:none; }
 .industry-bottom { align-items:flex-start; flex-direction:column; gap:16px; }
}
@media (min-width:1200px) and (max-height:820px) {
 .industry-evidence { padding-top:24px; padding-bottom:24px; }
 .industry-evidence .h2 { font-size:var(--text-heading-large); margin:12px 0 16px; }
 .industry-panel { padding-top:14px; }
 .industry-metric strong { font-size:var(--text-display-small); }
 .industry-meaning { margin:14px 0; }
}
@media (prefers-reduced-motion:reduce) {
 .industry-carousel.is-ready .industry-panel:not([hidden]) { animation:none; }
}

.industry-bottom a.button { transition:background-color 180ms ease, color 180ms ease; }
#s3 :is(#industry-panel-accounting, #industry-panel-law, #industry-panel-engineering) a.button:hover, #s3 :is(#industry-panel-accounting, #industry-panel-law, #industry-panel-engineering) a.button:focus-visible { background:var(--ui-brown); color:var(--ui-paper) !important; }

.industry-controls .button,
.industry-controls .button:hover,
.industry-controls .button:focus-visible,
.industry-controls .button:active { background:transparent; border-color:transparent; color:var(--ui-brown); box-shadow:none; }

#s3 a.assessment-cta, #s3 a.assessment-cta:visited, #s3 a.assessment-cta:hover, #s3 a.assessment-cta:focus-visible { color:var(--ui-paper, #F1F1ED) !important; background:var(--ui-brown, #5C1A1A); }
#s3 a.assessment-cta:hover { background:var(--ui-brown-hover, #381010); }
