/* Adapter only. Geometry, typography, colors and motion come from the approved local CSS. */
html{font-size:16px}
/* Interior pages follow the local stylesheet's browser base size. Home keeps
   its already reviewed scale; the explicitly approved 21px header is retained. */
html:has(body.tc-qa-pilot.portal){font-size:medium}
/* Approved header adjustment: 21px in QA, without changing the page's base scale. */
.tc-qa-pilot .main-nav,.tc-qa-pilot .header-actions,.tc-qa-pilot .portal-header nav,.tc-qa-pilot .portal-account{font-size:21px}
@media(min-width:1201px){.tc-qa-pilot .header-inner{grid-template-columns:minmax(200px,310px) 1fr auto}}
@media(min-width:961px) and (max-width:1200px){
 .tc-qa-pilot .header-inner{grid-template-columns:1fr auto auto}
 .tc-qa-pilot .menu-toggle{display:flex;order:3}
 .tc-qa-pilot .main-nav{display:none;position:absolute;top:100%;right:0;width:min(90vw,360px);padding:20px;flex-direction:column;align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
 .tc-qa-pilot .main-nav.is-open{display:flex}
 .tc-qa-pilot .header-actions{justify-self:end}
}
@media(min-width:721px) and (max-width:960px){
 .tc-qa-pilot .portal-menu{display:block}
 .tc-qa-pilot .portal-header nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;padding:20px 6vw;box-shadow:0 15px 20px #203f3912}
 .tc-qa-pilot .portal-header nav.open{display:flex;flex-direction:column;align-items:stretch;gap:4px}
}
#tc-native-shell,[hidden]{display:none!important}
#tc-qa-visual{display:contents}
.tm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tc-qa-catalog .tm-container{max-width:none;margin:0;padding:0;background:transparent}
.tc-qa-catalog .p-card-image img{width:100%;height:100%;object-fit:contain}
.tc-qa-catalog .p-card-price .tm-card-access{margin:0}
.tc-qa-catalog .p-card-buy .p-material-control>.p-btn{width:100%}
.tc-qa-catalog .tm-preview{border:0;padding:0;margin:0;font-size:12px;line-height:1.4}
.tc-qa-catalog .tm-preview summary{font-size:12px;padding:0;color:var(--p-green);font-weight:600}
.tc-qa-catalog .tm-preview figure{display:none}
.tc-qa-catalog .p-access-context{justify-content:flex-end;min-height:86.5px}
.qa-preview-dialog{border:1px solid #dce8e4;border-radius:24px;padding:30px;width:min(860px,94vw);max-height:90vh;color:#101e2c}
.qa-preview-dialog::backdrop,.qa-about-dialog::backdrop{background:#142c2755;backdrop-filter:blur(4px)}
.qa-preview-dialog>button{position:absolute;right:12px;top:8px;background:white;border:0;border-radius:50%;font-size:28px}
.qa-preview-dialog figure{margin:0}
.qa-preview-dialog img{width:100%;height:70vh;object-fit:contain}
.qa-preview-dialog figcaption{font-size:14px;color:#5d7085}
.qa-about-dialog{max-height:85vh;overflow:auto;padding:40px}
.qa-about-dialog img{max-width:100%;height:auto}
#system-message-container:empty{display:none}
#system-message-container{position:relative;z-index:2}
.tc-qa-pilot .g-totop,.tc-qa-pilot>.back-to-top{display:none!important}

/* QA v56: grid media must stay within cards; carousel geometry is independent. */
.tc-qa-catalog .p-grid > .tm-card .p-card-image{height:250px;min-height:250px;flex:0 0 250px;overflow:hidden;display:flex}
.tc-qa-catalog .p-grid > .tm-card .p-card-image img:not(.tc-icon){display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;box-sizing:border-box;transform:none}
.tc-qa-catalog .p-grid > .tm-card .tm-card-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.65;max-height:4.95em}
.tc-qa-catalog .p-grid > .tm-card .p-card-body{min-height:0}

/* Match the approved local home rem scale; interior screens retain their native scale. */
html:has(body.tc-qa-pilot.home){font-size:20px}
