/* Company-page roles; scoped to the five audited pages. */
body.tm-company-audit main :is(.tm-process,.mfg-steps,.mfg-tour-grid,.rd-gallery,.rd-brief,.qc-brief,.qc-flow,.as-lab-grid,.as-why-grid,.as-why-cert) p{font-size:16px;line-height:1.75}
body.tm-company-audit main .mfg-tour-grid ul,body.tm-company-audit main .qc-brief li{font-size:16px;line-height:1.75}
body.tm-company-audit main .mfg-tour-form>p{font-size:14px}
body.tm-company-audit main :is(.rd-gallery,.rd-brief,.qc-brief,.qc-flow,.mfg-workshop-grid,.mfg-steps) h3{font-size:20px!important;line-height:1.4!important;margin-bottom:12px}
body.tm-company-audit main .as-history-rail>button{width:44px;height:44px;min-width:44px;min-height:44px}
body.tm-company-audit main .as-history-rail{grid-template-columns:44px minmax(0,1fr) 44px}
body.tm-company-audit main .tm-process .tm-process-scroll-hint{display:none}
body.tm-company-audit main .certificate-library .document-group{padding:0;margin:0 0 16px}
.cert-group-details{border-bottom:1px solid #d8dee4}
.cert-group-details>summary{display:flex;align-items:center;gap:20px;cursor:pointer;min-height:72px;padding:20px 0;list-style:none;color:#202830}
.cert-group-details>summary::-webkit-details-marker{display:none}
body.tm-company-audit main .cert-group-details>summary h2{font-size:22px!important;line-height:1.4!important;margin:0;flex:1}
.cert-group-details>summary:after{content:"";width:10px;height:10px;flex-shrink:0;border-right:2px solid #015198;border-bottom:2px solid #015198;transform:rotate(45deg);margin:0 6px 5px}
.cert-group-details[open]>summary:after{transform:rotate(225deg);margin-bottom:-5px}
.cert-group-details>summary:hover{color:#015198}
.cert-group-details>summary:focus-visible,.cert-search :is(input,select,button):focus-visible{outline:3px solid #015198;outline-offset:4px}
.cert-group-count{font-size:14px;color:#46515c;white-space:nowrap}
.cert-group-content{padding:12px 0 32px}
.cert-search{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:16px 24px;align-items:end;background:#f3f4f5;padding:24px;margin:32px 0 24px;border-radius:10px}
.cert-search[hidden],.certificate-library [hidden]{display:none!important}
.cert-search>div{min-width:0}
.cert-search label{display:block;font-size:14px;font-weight:500;margin-bottom:8px;color:#202830}
.cert-search input,.cert-search select{width:100%;min-width:0;height:48px;border:1px solid #7c8995;background:#fff;border-radius:4px;padding:10px 12px;font:400 16px/1.5 Rubik,Arial,sans-serif;color:#202830}
.cert-search button{min-height:48px;border:1px solid #015198;border-radius:4px;padding:10px 18px;color:#015198;background:#fff;font:500 14px/1.5 Rubik,Arial,sans-serif;cursor:pointer}
.cert-search button:hover{background:#015198;color:#fff}
body.tm-company-audit main .cert-search p{grid-column:1/-1;font-size:14px;line-height:1.6;margin:0}
body.tm-company-audit main .cert-browse-help{font-size:14px;line-height:1.75;margin:0 0 24px}
@media(max-width:1100px){
body.tm-company-audit main .tm-process .tm-process-scroll{overflow:visible;padding:0}
body.tm-company-audit main .tm-process .tm-process-steps{width:100%;grid-template-columns:minmax(0,1fr);gap:32px}
body.tm-company-audit main .tm-process .tm-process-steps li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:6px 16px;padding:22px}
body.tm-company-audit main .tm-process .tm-process-num{grid-column:1;grid-row:1/3;margin:0;font-size:26px}
body.tm-company-audit main .tm-process .tm-process-steps h3,body.tm-company-audit main .tm-process .tm-process-steps p{grid-column:2;margin:0}
body.tm-company-audit main .tm-process .tm-process-steps li:not(:last-child):after{left:calc(50% - 1px);top:calc(100% + 7px);width:2px;height:18px}
body.tm-company-audit main .tm-process .tm-process-steps li:not(:last-child):before{left:calc(50% - 4px);top:calc(100% + 18px);width:9px;height:9px;border-top:0;border-right:2px solid #015198;border-bottom:2px solid #015198;transform:rotate(45deg)}
}
@media(max-width:760px){
body.tm-company-audit main :is(.rd-gallery,.rd-brief,.qc-brief,.qc-flow,.mfg-workshop-grid,.mfg-steps) h3{font-size:18px!important}
body.tm-company-audit main .rd-gallery{grid-template-columns:1fr;gap:32px}
.cert-search{grid-template-columns:1fr;padding:20px;gap:16px}
.cert-search button{justify-self:start}
body.tm-company-audit main .cert-group-details>summary h2{font-size:18px!important}
.cert-group-details>summary{gap:12px;padding-block:18px}
.cert-group-count{font-size:12px}
}
/* Resolve existing ID-scoped About rules and intrinsic grid sizing. */
body.tm-company-audit #about-preview :is(.as-lab-grid,.as-why-grid,.as-why-cert) p{font-size:16px;line-height:1.75}
body.tm-company-audit #about-preview .as-history-tabs{min-width:0;flex:1}
body.tm-company-audit #about-preview #capabilities :is(.ap-process-image,.ap-process-tabs,.ap-tab-copy){min-width:0}
body.tm-company-audit main .mfg-tour-grid>div{min-width:0}
@media(max-width:760px){
body.tm-company-audit #about-preview #capabilities .ap-process{grid-template-columns:minmax(0,1fr)}
body.tm-company-audit #about-preview #capabilities .ap-process-tabs button{grid-template-columns:40px minmax(0,1fr)}
body.tm-company-audit main .mfg-tour-grid,body.tm-company-audit main .mfg-tour-fields{grid-template-columns:minmax(0,1fr)}
body.tm-company-audit main .mfg-tour-grid :is(.button,button[type=submit]){max-width:100%;min-width:0}
body.tm-company-audit main .mfg-tour-grid .ap-text-link{white-space:normal;overflow-wrap:anywhere}
}
