/* Tonitrus layout contract. Scope: authored content in the shop's main area.
   Native shop navigation, prices, forms and source content remain authoritative. */

/* OPC adds wrappers and default fixed widths/margins absent from the authored
   component. Restore the component box without overriding authored spacing. */
body #main-wrapper .tnm-page:where(.tnm-box),
body #main-wrapper .tnm-page :where(.tnm-box){
 max-width:100%;margin-bottom:0
}
body #main-wrapper .tnm-page .tnm-box>div[style*="position: relative"]{
 display:contents
}

/* Native Button portlets also carry ordinary text links. Keep their semantics
   visible instead of styling every contact link as a primary action. */
body #main-wrapper .tnm-page .tnm-button.tnm-link>a.btn{
 display:inline-flex;align-items:center;justify-content:flex-start;
 padding:0!important;min-height:0!important;border:0!important;
 background:transparent!important;box-shadow:none!important;
 color:#237db9!important;font-size:inherit!important;font-weight:inherit;
 line-height:1.4;text-decoration:underline;text-underline-offset:3px;
 white-space:normal;overflow-wrap:anywhere
}

/* Location pages use a different content family from .tn-corporate. */
body #main-wrapper .tn-locations .wrap,
body #main-wrapper .tn-data .wrap{
 width:100%;max-width:none!important;margin-left:0!important;margin-right:0!important;
 padding-left:16px!important;padding-right:16px!important
}

/* Older manufacturer introductions precede #content and carry their own inline
   fixed width. Their outer card follows the same 16px shop edge. */
body #main-wrapper #tonitrus-hpe-einstieg,
body #main-wrapper #tonitrus-cisco-einstieg,
body #main-wrapper #tonitrus-dell-einstieg{
 box-sizing:border-box;width:calc(100% - 32px);max-width:none!important;
 margin-left:16px!important;margin-right:16px!important
}
body #main-wrapper #tonitrus-hpe-einstieg .btn-primary,
body #main-wrapper #tonitrus-cisco-einstieg .btn-primary,
body #main-wrapper #tonitrus-dell-einstieg .btn-primary{
 background:#08b380!important;border-color:#08b380!important;color:#103b30!important;
 max-width:100%;white-space:normal;overflow-wrap:anywhere
}
body #main-wrapper #tonitrus-hpe-einstieg .btn-primary:hover,
body #main-wrapper #tonitrus-cisco-einstieg .btn-primary:hover,
body #main-wrapper #tonitrus-dell-einstieg .btn-primary:hover{
 background:#079d71!important;border-color:#079d71!important;color:#fff!important
}

/* Native information headings and legacy OPC pages share the same outer edge.
   Keep the normal 16px grid gutter so negative inner rows stay in their parent. */
body #main-wrapper #content>.container.index-heading-wrapper,
body #main-wrapper #content>.container.opc-Container:not(.tnm-page){
 width:100%;max-width:none!important;margin-left:0!important;margin-right:0!important;
 padding-left:16px!important;padding-right:16px!important
}

/* Native newsletter and password pages also have fixed outer NOVA containers.
   Align those outer shells; retain a readable width for their actual forms. */
body #main-wrapper #content>.container:has(#newsletter-subscribe),
body #main-wrapper #content>.container:has(#newsletter-unsubscribe),
body #main-wrapper #content>.container.account-password-heading,
body #main-wrapper #content>.container.account-password{
 width:100%;max-width:none!important;margin-left:0!important;margin-right:0!important;
 padding-left:16px!important;padding-right:16px!important
}
body #main-wrapper .account-password>.row{
 max-width:1040px
}
body #main-wrapper .account-password>.row>[class*="col-"]{
 flex:0 0 100%;max-width:100%;margin-left:0
}
body #main-wrapper #newsletter-subscribe,
body #main-wrapper #newsletter-unsubscribe{
 max-width:1566px
}

/* Grid children may shrink below long service names on narrow phones. */
body #main-wrapper .tpm-live-root .hero>*{min-width:0}
body #main-wrapper .tpm-live-root .hero h1{overflow-wrap:anywhere}
body #main-wrapper .tpm-live-root .actions>a{max-width:100%;white-space:normal}

/* A team card keeps a useful reading and portrait size. Wider screens add
   columns; they do not turn four people into four oversized photographs. */
body #main-wrapper .tn-team .team-grid.tnm-row,
body #main-wrapper .tn-team .team-grid{
 display:grid!important;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
 gap:24px!important;margin:0!important;width:100%!important
}
body #main-wrapper .tn-team .team-grid.tnm-row>[class*="col-"]{
 width:auto!important;max-width:none!important;flex:none!important;
 padding:0!important;margin:0!important;min-width:0
}
body #main-wrapper .tn-team .person{
 display:flex;flex-direction:column;height:100%;min-width:0
}
body #main-wrapper .tn-team .portrait{
 flex:0 0 auto;aspect-ratio:24/35;overflow:hidden;margin-bottom:0
}
body #main-wrapper .tn-team .portrait .tnm-media,
body #main-wrapper .tn-team .portrait picture{
 display:block;width:100%;height:100%;max-width:none!important;margin:0
}
body #main-wrapper .tn-team .portrait img{
 display:block;width:100%;height:100%;object-fit:cover;object-position:center top
}
body #main-wrapper .tn-team .person-info .tnm-button.tnm-link{margin:0!important}
body #main-wrapper .tn-team .person-info a{overflow-wrap:anywhere}
@media(max-width:650px){
 body #main-wrapper .tn-locations .panorama{margin-left:-16px;margin-right:-16px}
 body #main-wrapper .tn-team .portrait{aspect-ratio:auto!important;height:auto!important}
 body #main-wrapper .tn-team .portrait .tnm-media,
 body #main-wrapper .tn-team .portrait picture,
 body #main-wrapper .tn-team .portrait img{height:auto!important}
}
@media(max-width:400px){
 body #main-wrapper .tpm-live-root .hero h1{font-size:clamp(30px,9vw,36px);hyphens:auto}
}
