/* Shared layout guardrails for the existing three-portal design. */
html{scroll-padding-top:24px}body{overflow-wrap:break-word}main,section,article,aside,nav,form{min-width:0}input,select,textarea{min-width:0;max-width:100%}button,.button{min-height:44px;white-space:normal;text-align:center}a{overflow-wrap:anywhere}.top{gap:18px;flex-wrap:wrap}.top nav{flex-wrap:wrap;justify-content:flex-end;gap:12px 18px;flex:1 1 680px}.top .brand{flex:0 1 240px}.top nav a{min-height:44px;display:inline-flex;align-items:center}.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.product-card{display:flex;flex-direction:column}.product-card .button{align-self:flex-start;margin-top:auto}.store-actions,.category-nav,.footer-links{display:flex;flex-wrap:wrap;gap:12px}.category-nav{margin:0 0 28px}.category-nav a{display:inline-flex;align-items:center;min-height:44px;padding:9px 15px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}.category-nav [aria-current]{background:var(--blue);color:#fff}.checkout-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px;align-items:start}.checkout-grid aside{position:sticky;top:20px}.order-total{font-size:1.4rem;font-weight:750;color:var(--ink)}.check-label{display:block;font-weight:500}.check-label input[type=checkbox]{display:inline-block;width:20px;height:20px;margin-right:8px;vertical-align:middle}.table-wrap table{min-width:600px}.table-wrap:focus-visible{outline:3px solid var(--orange)}.footer-links a{min-height:44px;display:inline-flex;align-items:center}.footer{padding-bottom:90px}.rc-search input{flex-basis:180px!important;min-width:0!important}.rc-search button{flex:0 1 auto}.drc,.rc-store{max-width:100%}html[data-theme=dark] .drc,html[data-theme=dark] .rc-store{color:var(--ink)}html[data-theme=dark] .drc-card,html[data-theme=dark] .rc-card{background:var(--surface);border-color:var(--line)}html[data-theme=dark] .drc-card h3,html[data-theme=dark] .drc-heading h2,html[data-theme=dark] .drc-card p,html[data-theme=dark] .drc-card a,html[data-theme=dark] .rc-info,html[data-theme=dark] .rc-card h2{color:var(--ink)}html[data-theme=dark] .dlg-title,html[data-theme=dark] .dlg-lead,html[data-theme=dark] .dlg-steps p{color:var(--ink)}html[data-theme=dark] .dlg-tint{background:var(--surface)}html[data-theme=dark] .drc-band{background:var(--surface)}html[data-theme=dark] .drc-band h2,html[data-theme=dark] .drc-band p{color:var(--ink)}
@media(max-width:1200px){.top nav{flex-basis:100%;justify-content:flex-start}.top .brand{flex-basis:auto}}
@media(max-width:900px){.top{padding:16px}.top nav{flex:1 1 100%;display:none}.top nav.open{display:flex}.top nav a{flex:1 1 180px}.top nav .button{flex-basis:100%}.menu-toggle{min-width:44px}.checkout-grid{grid-template-columns:1fr}.checkout-grid aside{position:static}.search{flex-wrap:wrap}.search input{flex:1 1 180px}.top .brand.dlines-original-brand{width:min(60vw,240px)}}
@media(max-width:480px){.card{padding:19px}.rc-hero{padding:28px 18px!important}.rc-store{padding:0!important}.rc-search button{width:100%}.store-actions .button{width:100%}.category-nav{gap:8px}.category-nav a{padding:8px 12px;font-size:14px}.dlg-wrap{padding:44px 16px}.drc{padding-left:0!important;padding-right:0!important}.drc-band{padding:24px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

@media(max-width:480px){.dlg-industry-grid{grid-template-columns:1fr}.public-home .dlg-hero{border-radius:16px;overflow:hidden}}

@media(max-width:600px){.cart-table{min-width:0!important}.cart-table,.cart-table tbody,.cart-table tr,.cart-table td{display:block;width:100%;max-width:none}.cart-table thead{display:none}.cart-table tr{padding:12px;border-bottom:1px solid var(--line)}.cart-table td{padding:6px 0;border:0}.cart-table td:first-child{font-size:1.1rem;font-weight:700}.cart-table td:nth-child(3)::before{content:"Unit price: ";font-weight:650}.cart-table td:nth-child(4)::before{content:"Line total: ";font-weight:650}.cart-table form{margin:8px 0}.cart-table label{margin-bottom:10px}.cart-table td:last-child button{width:100%}}
