/* Shared spacing and alignment, applied after page-specific styles. */
body:not([data-portal]) :is(.section-head,.contact-layout,.two-col,.form-grid,.product-list,.category-caption)>*{min-width:0}
body:not([data-portal]) :is(.page-top,.section,.footer) :is(h1,h2,h3,p,li,address){overflow-wrap:break-word}
body:not([data-portal]) .section-head{gap:20px 32px}
body:not([data-portal]) :is(.body-copy,.panel,.contact-layout>div,.contact-layout>aside)>:first-child{margin-top:0}
body:not([data-portal]) :is(.body-copy,.panel,.contact-layout>div,.contact-layout>aside)>:last-child{margin-bottom:0}
body:not([data-portal]) .page-top .wrap>p:last-child{margin-bottom:0}
body:not([data-portal]) .field{line-height:1.45}
body:not([data-portal]) .field :is(input,select,textarea){margin:0;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
body:not([data-portal]) .category-caption{min-height:60px;align-items:center}
body:not([data-portal]) .category-caption>span{flex:none}
body:not([data-portal]) .product h3{line-height:1.35;min-height:2.7em}
body:not([data-portal]) .footer-contact-row{align-items:center}
body:not([data-portal]) .footer-contact-row :is(span,address){min-width:0;overflow-wrap:anywhere}
body:not([data-portal]) .privacy-copy :is(p,li){max-width:75ch}
body:not([data-portal]) .services-page .service-description>div{padding-left:0;padding-right:0}
/* Workspace headings, controls and record text share the same alignment. */
body[data-portal] :is(.heading,.ops-heading){flex-wrap:wrap;gap:12px 20px;margin-bottom:20px;align-items:center}
body[data-portal] :is(.heading,.ops-heading)>div{min-width:0}
body[data-portal] :is(.heading,.ops-heading) h1{margin:0;line-height:1.25;overflow-wrap:break-word}
body[data-portal] :is(.heading,.ops-heading) h1+p{margin:6px 0 0;line-height:1.5}
body[data-portal] :is(.heading-actions,.ops-heading>.ops-actions){align-items:center;gap:8px}
body[data-portal] :is(.ops-toolbar,.maint-toolbar,.planner-filters) label{line-height:1.4}
body[data-portal] :is(.ops-toolbar,.maint-toolbar,.planner-filters)>*{min-width:0}
body[data-portal] :is(.ops-card,.detail,.driver-load,.ops-licence-card)>:first-child{margin-top:0}
body[data-portal] :is(.ops-card,.detail,.driver-load,.ops-licence-card)>:last-child{margin-bottom:0}
body[data-portal] :is(.facts,.ops-card dl,.ops-licence-card dl) dd{overflow-wrap:anywhere;line-height:1.45}
body[data-portal] .ops-table :is(th,td){vertical-align:middle}
body[data-portal] .ops-table th{white-space:normal;line-height:1.4}
body[data-portal] .ops-table button{margin:0}
body[data-portal] .directory-table .ops-table th:last-child{width:110px}
body[data-portal] :is(.ops-progress-label,.maint-section-head,.maint-calendar-heading){flex-wrap:wrap;gap:12px}
body[data-portal] .maint-calendar-heading>div{min-width:0}
body[data-portal] .maint-calendar-heading h2{line-height:1.35}
body[data-portal] .maint-doc-section{padding:24px}
body[data-portal] .maint-doc-upload :is(input,select){margin:0}
body[data-portal] .maint-doc-upload label{line-height:1.4}
body[data-portal] .maint-doc-upload button[type=submit]{min-height:44px;align-self:end}
body[data-portal] .maint-doc-filters p{align-self:center;margin:20px 0 0;white-space:nowrap}
body[data-portal] .maint-doc-index-table td:last-child{padding-left:12px;padding-right:12px}
body[data-portal] .maint-report-check>span{min-width:0;overflow-wrap:break-word}
body[data-portal] .maint-settings-option>span{min-width:0;line-height:1.45}
body[data-portal] .section-tabs .admin-nav summary{line-height:1.4;min-height:48px}
body[data-portal] .section-tabs .admin-nav summary::after{flex:none}
body[data-portal] .edit-form>.sticky-save{top:calc(var(--portal-header-height,86px) + 8px)}
@media(min-width:1000px){
 body.staff-workspace .section-tabs{top:var(--portal-header-height,86px);height:calc(100dvh - var(--portal-header-height,86px));padding-top:20px;padding-bottom:20px}
 body.staff-workspace header>a:first-child{height:var(--portal-header-height,86px)}
 body.staff-workspace #customer-detail{top:calc(var(--portal-header-height,86px) + 16px);max-height:calc(100dvh - var(--portal-header-height,86px) - 32px)}
}
@media(min-width:761px) and (max-width:1250px){
 body[data-portal] .planner-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-portal] .planner-filters label:first-child{grid-column:1/-1}
 body[data-portal] .planner-filters button{justify-self:start}
 body[data-portal] .ops-licence-layout{grid-template-columns:minmax(0,1fr)}
 body[data-portal] .ops-licence-layout>section:first-child{grid-row:auto}
}
@media(min-width:761px) and (max-width:999px){
 body.staff-workspace .section-tabs{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;align-items:start;gap:8px}
 body.staff-workspace .section-tabs .admin-nav{width:100%;grid-column:auto;margin:0;min-width:0}
 body.staff-workspace .section-tabs .admin-nav-items{display:flex;flex-direction:column;align-items:stretch}
 body.staff-workspace .section-tabs .admin-nav-items button{width:100%;white-space:normal;text-align:left}
 body.staff-workspace .section-tabs #settings-tab{grid-column:1/-1;margin:0;text-align:left}
 body:not([data-portal]) .header-inner{gap:16px}
 body:not([data-portal]) .header-inner .nav{gap:12px;min-width:0}
 body:not([data-portal]) .header-inner .nav .button{padding-left:12px;padding-right:12px;white-space:normal;text-align:center}
 body:not([data-portal]) .contact-layout{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px}
 body:not([data-portal]) .contact-layout .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 body:not([data-portal]) .section-head{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:24px}
 body:not([data-portal]) .section-head>p{margin:0;max-width:none}
 body:not([data-portal]) .accreditation-banner .section-head{margin-bottom:20px}
 body:not([data-portal]) .product h3{min-height:0;margin-bottom:16px}
 body[data-portal] :is(.heading,.ops-heading){align-items:flex-start;gap:12px;margin-bottom:18px}
 body[data-portal] :is(.heading-actions,.ops-heading>.ops-actions){width:100%}
 body[data-portal] .ops-heading>.ops-actions button{flex:1 1 140px}
 body[data-portal] .maint-doc-section{padding:18px 16px}
 body[data-portal] .maint-doc-filters p{margin:0;align-self:start}
 #maintenance-body .maint-table td:last-child:has(button){grid-column:1/-1}
 #maintenance-body .maint-table td:last-child:has(button[data-maint-documents]){padding:10px 0 0}
 #maintenance-body .maint-table td:last-child button[data-maint-documents]{width:100%}
 #maintenance-body .maint-table td:has(.maint-row-actions){grid-column:1/-1}
 #maintenance-body .maint-row-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%;justify-content:center}
 #maintenance-body .maint-row-actions button{flex:1 1 100px}
 body[data-portal] .edit-form>.sticky-save{position:static}
 body[data-portal] .maint-metric-link{font-size:.8125rem;line-height:1.4}
 body[data-portal] .directory-team .ops-actions{padding-left:0}
}

/* Phone review: consistent insets and usable controls from 320px upwards. */
@media(max-width:760px){
 body[data-portal] .section-tabs .admin-nav-items button{text-align:left;justify-content:flex-start;padding:12px;font-size:.875rem;line-height:1.4}
 body[data-portal] .section-tabs .admin-nav-items{align-items:stretch}
 body[data-portal] .maint-toolbar .ops-view-toggle{gap:6px;align-items:stretch}
 body[data-portal] .maint-toolbar .ops-view-toggle button{margin:0;line-height:1.4;min-height:48px;font-size:.875rem}
 body[data-portal] .ops-modal.maint-pmi-modal{padding:0}
 body[data-portal] .maint-pmi-modal .ops-dialog-top{padding:12px 14px;gap:10px;align-items:flex-start}
 body[data-portal] .maint-pmi-modal .ops-dialog-top>button{min-width:44px;min-height:44px;flex:none}
 body[data-portal] .maint-pmi-modal .maint-pmi-body{padding:16px 14px}
 body[data-portal] .ops-modal .maint-report-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 body[data-portal] .ops-modal .maint-report-choices label{min-width:0;min-height:44px;padding:8px 4px;font-size:.875rem}
 body[data-portal] .ops-modal .maint-report-axles input{width:100%!important;max-width:100%!important;min-inline-size:0;margin-bottom:0}
 body[data-portal] .ops-modal .maint-report-axles label{line-height:1.4}
 body[data-portal] .ops-modal .ops-dialog-top h2{overflow-wrap:break-word;line-height:1.4}
 body[data-portal] .maint-doc-add{padding:12px}
 body[data-portal] .maint-doc-add summary{min-height:44px;display:flex;align-items:center;gap:8px}
 body[data-portal] .maint-doc-add summary::before{content:'+';font-size:1.25rem;line-height:1}
 body[data-portal] .maint-doc-add[open] summary::before{content:'−'}
 body[data-portal] .maint-doc-upload{gap:16px;margin-top:12px;margin-bottom:12px}
 body[data-portal] .maint-doc-upload input[type=file]{padding:8px;overflow:hidden}
 body[data-portal] .maint-doc-files-table .maint-link{max-width:100%;word-break:normal;overflow-wrap:anywhere;text-align:center}
 body[data-portal] .ops-licence-card{padding:16px}
 body[data-portal] .ops-licence-card :is(dt,dd){line-height:1.45;overflow-wrap:anywhere}
 body[data-portal] .pagination{gap:10px;align-items:center}
 body[data-portal] .pagination>span{flex:1;min-width:60px;text-align:center}
 body:not([data-portal]) .form-grid{gap:18px}
 body:not([data-portal]) .contact-layout>aside{padding-top:20px;border-top:1px solid var(--line)}
 body:not([data-portal]) .footer-copyright{gap:10px 12px;line-height:1.6}
 body:not([data-portal]) .category-nav{gap:8px}
 body:not([data-portal]) .category-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;line-height:1.4;text-align:center}
}
@media(max-width:420px){
 body[data-portal] .section-tabs .admin-nav-items{grid-template-columns:minmax(0,1fr)}
 body[data-portal] .maint-toolbar .ops-view-toggle{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-portal] .maint-doc-section{padding:16px 12px}
 body[data-portal] .maint-doc-vehicle{gap:10px}
 body[data-portal] .maint-doc-vehicle>span:last-child{flex-basis:100%}
 body[data-portal] .ops-licence-card dl{grid-template-columns:minmax(0,1fr)}
 body:not([data-portal]) .hero .actions .button{flex-basis:100%;justify-content:center}
 body:not([data-portal]) .footer-privacy{border-left:0;padding-left:0;white-space:normal}
}
@media(max-width:380px){
 #maintenance-body .maint-table tr{grid-template-columns:minmax(0,1fr)}
 #maintenance-body .maint-table td{grid-column:1/-1}
 body[data-portal] .maint-calendar-controls .ops-actions{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;width:100%}
 body[data-portal] .maint-calendar-controls .ops-actions button{min-width:0;padding-left:6px;padding-right:6px}
}
.about-page .service-description p+p{margin-top:14px}
.guide-article h3{font-size:1.1rem;margin:24px 0 8px}
.guide-article ul{padding-left:1.2em}
.guide-table-wrap{overflow-x:auto;margin:16px 0;border:1px solid var(--line)}
.guide-table{width:100%;min-width:520px;border-collapse:collapse;font-size:.95rem}
.guide-table th,.guide-table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.guide-table thead th{background:var(--ink);color:#fff}
.guide-table tbody tr:last-child td{border-bottom:0}
.guide-article .guide-cta{margin-top:40px;border-top:3px solid var(--orange)}
.guide-article .guide-cta h2{margin-top:0}
.guide-cards .card h3{margin-top:0}
#delivery-address-field[hidden]{display:none}
.services-page .service-overview-photo.about-brand-mark{object-fit:contain;padding:12%;background:var(--paper);box-sizing:border-box}
body:not([data-portal]) .footer .footer-copyright .footer-cookie-settings{margin-left:0;padding-right:0;padding-top:0;padding-bottom:0;line-height:inherit}
.next-day-note strong{color:var(--ink)}
@media(min-width:1051px){body:not([data-portal]) .delivery-strip .wrap>span{flex:1 1 auto;font-size:.9rem;gap:12px;padding-left:10px;padding-right:10px}body:not([data-portal]) .delivery-strip .line-icon{width:30px;height:30px;flex:none}}
@media(min-width:761px) and (max-width:1050px){body:not([data-portal]) .delivery-strip .wrap{display:grid;grid-template-columns:1fr 1fr;gap:14px 0}body:not([data-portal]) .delivery-strip .wrap>span:nth-child(odd){border-left:0}}
@media(max-width:760px){body:not([data-portal]) .delivery-strip .wrap{display:grid!important;grid-template-columns:1fr;gap:9px;padding-top:14px;padding-bottom:14px}body:not([data-portal]) .delivery-strip .wrap>span{border:0!important;padding:0!important;gap:10px;font-size:.85rem;line-height:1.3;justify-content:flex-start;align-items:center}body:not([data-portal]) .delivery-strip .line-icon{width:20px;height:20px;flex:none}}
