/*
 * British Mobile Tyre — brand rail, services mega menu and fitting page expansion.
 */

/* Continuous tyre-brand rail immediately before each page hero. */
html body .bmt-brand-strip{
 display:grid;grid-template-columns:230px minmax(0,1fr);min-height:86px;
 background:#fff;border-top:1px solid #d9e0e7;border-bottom:1px solid #cbd4de;
 color:#071a34;overflow:hidden;position:relative;z-index:12;
 font-family:"BMT Fira","Trebuchet MS",sans-serif;
}
html body .bmt-brand-strip-label{
 display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
 padding:15px 26px 15px max(26px,calc((100vw - var(--container))/2));
 background:#071a34;color:#fff;position:relative;
}
html body .bmt-brand-strip-label::after{
 content:"";position:absolute;top:0;right:-22px;width:44px;height:100%;
 background:#071a34;transform:skewX(-16deg);transform-origin:bottom;
}
html body .bmt-brand-strip-label span{
 position:relative;z-index:1;font-weight:800;font-size:.82rem;letter-spacing:.075em;text-transform:uppercase;
}
html body .bmt-brand-strip-label small{
 position:relative;z-index:1;margin-top:3px;color:#afbdce;font-size:.68rem;line-height:1.3;
}
html body .bmt-brand-viewport{
 overflow:hidden;min-width:0;padding-left:24px;
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
 mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
}
html body .bmt-brand-track{
 display:flex;align-items:center;width:max-content;min-height:85px;gap:14px;
 animation:bmt-brand-flow 34s linear infinite;will-change:transform;
}
html body .bmt-brand-logo{
 flex:0 0 174px;height:62px;display:flex;align-items:center;justify-content:center;
 padding:10px 18px;background:#fff;border-right:1px solid #e4e8ed;
}
html body .bmt-brand-logo img{
 display:block!important;width:auto!important;max-width:142px!important;height:auto!important;max-height:43px!important;
 object-fit:contain;filter:grayscale(.12) contrast(1.04);opacity:.9;
}
@keyframes bmt-brand-flow{to{transform:translateX(calc(-50% - 7px))}}

/* Desktop services mega menu. Existing header JS still owns open/close state. */
html body .bmt-desktop-nav .bmt-nav-group:first-child .bmt-mega-menu{
 left:-211px!important;width:min(1180px,calc(100vw - 52px))!important;min-width:0!important;
 max-height:calc(100vh - 118px);padding:0!important;overflow:auto;
 border:1px solid #ccd5df!important;border-top:4px solid #cf1738!important;
 background:#f4f6f8!important;box-shadow:0 28px 70px rgba(2,13,30,.3)!important;
}
html body .bmt-mega-heading{
 display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 22px;
 background:#071a34;color:#fff;border-bottom:1px solid rgba(255,255,255,.14);
}
html body .bmt-mega-heading>div{display:flex;align-items:center;gap:15px}
html body .bmt-mega-heading strong{
 font-family:"BMT Slab",Georgia,serif;font-size:1.05rem;letter-spacing:-.015em;
}
html body .bmt-mega-heading>a{
 display:inline-flex!important;align-items:center;padding:8px 0!important;color:#fff!important;
 font-size:.75rem!important;font-weight:800!important;letter-spacing:.055em;text-transform:uppercase;text-decoration:none!important;
}
html body .bmt-mega-kicker{
 color:#ffb7c4;font-size:.66rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;white-space:nowrap;
}
html body .bmt-mega-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:15px;
}
html body .bmt-mega-service{
 min-width:0;padding:15px;background:#fff;border-top:3px solid #214f8d;
 box-shadow:0 5px 18px rgba(7,26,52,.055);
}
html body .bmt-mega-service:nth-child(even){border-top-color:#cf1738}
html body .bmt-mega-service-title{
 display:flex!important;align-items:flex-start;justify-content:space-between;gap:8px;
 min-height:38px;padding:0 0 10px!important;color:#071a34!important;
 font-family:"BMT Slab",Georgia,serif!important;font-size:.98rem!important;font-weight:760!important;
 line-height:1.15!important;letter-spacing:-.02em;text-decoration:none!important;
}
html body .bmt-mega-service-title span{color:#cf1738}
html body .bmt-mega-service>p{
 margin:0 0 9px!important;color:#758193;font-size:.67rem;line-height:1.2;text-transform:uppercase;letter-spacing:.09em;
}
html body .bmt-mega-city-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 7px;
}
html body .bmt-mega-city-grid>a{
 display:block!important;min-width:0;padding:5px 6px!important;border-radius:2px;
 color:#34445a!important;font-size:.7rem!important;font-weight:650!important;line-height:1.2!important;
 text-decoration:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
html body .bmt-mega-city-grid>a:hover,
html body .bmt-mega-city-grid>a:focus-visible{background:#e8eef5!important;color:#a90f2b!important}
html body .bmt-mega-vehicles{
 grid-column:1/-1;display:grid;grid-template-columns:190px 1fr;align-items:stretch;gap:14px;
 padding:14px;background:#071a34;color:#fff;
}
html body .bmt-mega-vehicles>div:first-child{
 display:flex;flex-direction:column;justify-content:center;padding:4px 8px;
}
html body .bmt-mega-vehicles>div:first-child strong{
 margin-top:5px;font-family:"BMT Slab",Georgia,serif;font-size:1rem;line-height:1.15;
}
html body .bmt-mega-vehicle-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
html body .bmt-mega-vehicle-grid>a{
 display:flex!important;flex-direction:column;justify-content:center;min-height:66px;padding:10px!important;
 background:#fff;color:#071a34!important;text-decoration:none!important;border-left:3px solid #cf1738;
}
html body .bmt-mega-vehicle-grid>a:hover{background:#edf2f7!important}
html body .bmt-mega-vehicle-grid strong{font-family:"BMT Slab",Georgia,serif;font-size:.84rem;line-height:1.15}
html body .bmt-mega-vehicle-grid span{margin-top:4px;color:#627086;font-size:.58rem;line-height:1.25}

/* Mobile services navigation remains compact by nesting city accordions. */
html body .bmt-drawer-mega{padding:8px 0 12px!important}
html body .bmt-drawer-mega-intro{margin:0;padding:8px 18px 12px;color:#65748a;font-size:.78rem;line-height:1.45}
html body .bmt-drawer-service{border-top:1px solid #dce2e8}
html body .bmt-drawer-service>summary{
 display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;
 padding:11px 18px!important;color:#071a34;font-size:.86rem;font-weight:800;cursor:pointer;list-style:none;
}
html body .bmt-drawer-service>summary::-webkit-details-marker{display:none}
html body .bmt-drawer-service>summary span{color:#cf1738;font-size:1.15rem;transition:transform .18s ease}
html body .bmt-drawer-service[open]>summary span{transform:rotate(45deg)}
html body .bmt-drawer-service-overview{
 display:block!important;margin:0 18px 8px;padding:7px 9px!important;background:#071a34;color:#fff!important;
 font-size:.72rem!important;font-weight:800;text-decoration:none!important;
}
html body .bmt-drawer-city-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;padding:0 14px 12px;
}
html body .bmt-drawer-city-grid>a{
 min-height:34px;padding:8px!important;border-bottom:1px solid #e1e6eb;
 color:#34445a!important;font-size:.74rem!important;text-decoration:none!important;
}
html body .bmt-drawer-vehicles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:15px 14px 2px;background:#eef2f6}
html body .bmt-drawer-vehicles>strong{grid-column:1/-1;padding:0 4px 7px;color:#071a34;font-family:"BMT Slab",Georgia,serif}
html body .bmt-drawer-vehicles>a{
 padding:9px!important;background:#fff;color:#071a34!important;font-size:.75rem!important;text-decoration:none!important;
 border-left:3px solid #cf1738;
}

/* Two-column service editorial layout. */
html body .bmt-fitting-editorial{background:#fff}
html body .bmt-fitting-feature{
 display:grid;grid-template-columns:1.06fr .94fr;gap:clamp(34px,5vw,70px);align-items:center;margin-bottom:56px;
}
html body .bmt-fitting-feature figure{
 position:relative;min-height:420px;margin:0;overflow:hidden;background:#d7dee6;
 clip-path:polygon(0 0,100% 0,100% calc(100% - 26px),calc(100% - 26px) 100%,0 100%);
}
html body .bmt-fitting-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.87) contrast(1.04)}
html body .bmt-fitting-feature figcaption{
 position:absolute;left:0;right:0;bottom:0;padding:38px 18px 15px;
 background:linear-gradient(transparent,rgba(4,17,35,.92));color:#fff;font-size:.72rem;line-height:1.45;
}
html body .bmt-fitting-feature figcaption a{color:#fff}
html body .bmt-fitting-two-column{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid #cbd4de;border-left:1px solid #cbd4de;
}
html body .bmt-fitting-two-column article{
 position:relative;min-height:330px;padding:clamp(27px,4vw,46px);
 border-right:1px solid #cbd4de;border-bottom:1px solid #cbd4de;background:#fff;
}
html body .bmt-fitting-two-column article:nth-child(2),
html body .bmt-fitting-two-column article:nth-child(3){background:#f4f6f8}
html body .bmt-editorial-number{
 display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin-bottom:22px;
 border:1px solid #cf1738;color:#a90f2b;font-family:"BMT Slab",Georgia,serif;font-size:.88rem;font-weight:800;
}
html body .bmt-fitting-two-column h2{
 max-width:17ch;margin:0 0 17px;color:#071a34;
 font-family:"BMT Slab",Georgia,serif;font-size:clamp(1.45rem,2.3vw,2.05rem);font-weight:760;line-height:1.08;letter-spacing:-.025em;
}
html body .bmt-fitting-two-column p{margin:0 0 12px;color:#526074;font-size:.96rem;line-height:1.68}
html body .bmt-fitting-two-column p:last-child{margin-bottom:0}

/* England coverage map. */
html body .bmt-fitting-coverage-heading{
 display:grid;grid-template-columns:.75fr 1.25fr;gap:48px;align-items:end;margin-bottom:34px;
}
html body .bmt-fitting-coverage-heading .bmt-h2{margin-bottom:0}
html body .bmt-fitting-coverage-heading .bmt-lead{margin:0}
html body .bmt-fitting-map-shell{
 position:relative;min-height:550px;overflow:hidden;background:#d9e2eb;
 border:1px solid #c7d0db;box-shadow:0 24px 60px rgba(7,26,52,.17);
 clip-path:polygon(0 0,100% 0,100% calc(100% - 28px),calc(100% - 28px) 100%,0 100%);
}
html body #bmt-fitting-england-map{width:100%;height:550px;position:relative;z-index:1}
html body .bmt-fitting-map-status{
 position:absolute;inset:0;display:grid;place-items:center;margin:0;background:#dfe6ee;color:#34445a;
 font-weight:750;letter-spacing:.02em;
}
html body .bmt-fitting-floating-call{
 position:absolute;right:18px;bottom:18px;z-index:1000;display:inline-flex;align-items:center;gap:8px;
 min-height:48px;padding:12px 18px;background:#071a34;color:#fff!important;border:2px solid #fff;
 border-radius:2px;text-decoration:none!important;font-size:.82rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase;
 box-shadow:0 10px 28px rgba(0,0,0,.24);transition:transform .18s ease,background .18s ease;
}
html body .bmt-fitting-floating-call:hover{background:#cf1738;transform:translateY(-2px)}
html body .bmt-fitting-map-note{margin:14px 0 0;color:#65748a;font-size:.78rem}
html body .bmt-fitting-map-shell .leaflet-control-zoom a{font-family:"BMT Fira",sans-serif}
html body .bmt-fitting-map-shell .leaflet-marker-icon{filter:drop-shadow(0 4px 4px rgba(0,0,0,.25))}
html body .bmt-fitting-popup{width:225px;text-align:center;font-family:"BMT Fira","Trebuchet MS",sans-serif}
html body .bmt-fitting-popup h3{margin:0 0 6px;color:#071a34;font-family:"BMT Slab",Georgia,serif;font-size:1rem;line-height:1.2}
html body .bmt-fitting-popup p{margin:0 0 12px;color:#5b687a;font-size:.74rem;line-height:1.45}
html body .bmt-fitting-popup-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html body .bmt-fitting-popup-actions a{
 display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 8px;
 color:#fff!important;background:#071a34;border-radius:2px;text-decoration:none!important;
 font-size:.67rem;font-weight:800;line-height:1.1;
}
html body .bmt-fitting-popup-actions a:nth-child(2){background:#148b45}
html body .bmt-fitting-popup-actions a:last-child{grid-column:1/-1;background:#e5e9ee;color:#071a34!important}

@media(max-width:1180px){
 html body .bmt-desktop-nav .bmt-nav-group:first-child .bmt-mega-menu{left:-190px!important;width:calc(100vw - 30px)!important}
 html body .bmt-mega-city-grid{grid-template-columns:1fr}
 html body .bmt-mega-vehicle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
 html body .bmt-brand-strip{grid-template-columns:1fr}
 html body .bmt-brand-strip-label{
  min-height:38px;padding:8px 18px;align-items:center;text-align:center;
 }
 html body .bmt-brand-strip-label::after{display:none}
 html body .bmt-brand-strip-label small{display:none}
 html body .bmt-brand-track{min-height:68px}
 html body .bmt-brand-logo{flex-basis:150px;height:54px;padding:8px 14px}
 html body .bmt-brand-logo img{max-width:126px!important;max-height:36px!important}
 html body .bmt-brand-viewport{padding-left:0}
 html body .bmt-fitting-feature{grid-template-columns:1fr}
 html body .bmt-fitting-feature figure{min-height:390px}
 html body .bmt-fitting-coverage-heading{grid-template-columns:1fr;gap:16px}
}
@media(max-width:680px){
 html body .bmt-fitting-two-column{grid-template-columns:1fr}
 html body .bmt-fitting-two-column article{min-height:0;padding:28px 22px}
 html body .bmt-fitting-two-column article:nth-child(3){background:#fff}
 html body .bmt-fitting-two-column article:nth-child(4){background:#f4f6f8}
 html body .bmt-fitting-feature figure{min-height:320px}
 html body .bmt-fitting-map-shell,
 html body #bmt-fitting-england-map{min-height:450px;height:450px}
 html body .bmt-fitting-floating-call{right:12px;bottom:12px;padding:10px 14px;font-size:.74rem}
}
@media(prefers-reduced-motion:reduce){
 html body .bmt-brand-track{animation:none!important;transform:none!important}
 html body .bmt-brand-viewport{overflow-x:auto}
}
