.local-identity-head{background:#09233c url('header-navy-marble.webp') center/cover;color:#fff;padding:16px 18px}
.local-identity-head h4{font-size:24px;line-height:1.15;margin:0 0 7px;color:white;overflow-wrap:anywhere}
.local-identity-head p{color:#d0dfee;margin:0;font-size:13px}
.local-identity-logo{height:112px;display:flex;align-items:center;justify-content:center;background:white;padding:16px}
.local-identity-logo img{display:block;max-width:90%;width:190px;height:85px;object-fit:contain}
.local-identity-body{padding:14px 16px;border-top:1px solid #e0e6ef;background:white;display:grid;gap:12px;flex:1}
.local-identity-body p{margin:0;font-size:12px}.local-identity-body .local-card-button{align-self:end;text-align:center;display:block;border:0;border-radius:10px;background:#0c3051;color:white;padding:12px;font-weight:700;text-decoration:none;cursor:pointer}
.local-identity-body .local-card-button:disabled{opacity:.55;cursor:default}.local-copy-pill{justify-self:center;border-radius:30px;background:#fff1ce;color:#966000;padding:7px 14px;font-size:13px}.local-copy-pill.is-online{background:#dff5e3;color:#197530}
body.executive.erp .inventory-city-board .inventory-source-grid article,.branch-city-cards .branch-card{padding:0;border:1px solid #193e62;border-radius:13px;overflow:hidden;background:white;display:flex;flex-direction:column;min-width:0;box-shadow:0 7px 18px #09233c10}
body.executive.erp .inventory-city-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body.executive.erp .inventory-city{display:contents}body.executive.erp .inventory-city>h3{display:none}
body.executive.erp .inventory-city-board .inventory-source-grid{display:contents}
.branch-city-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.branch-card .branch-whatsapp{margin:0;font-size:12px;min-height:32px}
@media(max-width:900px){body.executive.erp .inventory-city-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){body.executive.erp .inventory-city-board{grid-template-columns:minmax(0,1fr)}.local-identity-head h4{font-size:23px}}
/* Same three-card geometry in both surfaces; city groups cannot stretch one card. */
body.executive.erp .inventory-city-board .inventory-source-grid article,#branches .branch-card{container-type:inline-size;aspect-ratio:0.70;display:flex;flex-direction:column;min-width:0;border-radius:15px;box-sizing:border-box}
.local-identity-head{padding:5% 6%;height:35cqw;min-height:0;aspect-ratio:2.86;flex-shrink:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}
.local-identity-head h4{font-size:clamp(26px,10cqw,53px);line-height:1.05;letter-spacing:-.035em;margin:0 0 10px;text-transform:none}
.local-identity-head p{font-size:clamp(14px,5cqw,24px);line-height:1.25}
.local-identity-logo{padding:6% 4%;height:52cqw;aspect-ratio:1.92;box-sizing:border-box;flex-shrink:0}
.local-identity-logo img,#branches .local-identity-logo .branch-logo{width:100%;max-width:100%;height:100%;max-height:none;object-fit:contain;margin:0;border-radius:0}
.local-identity-body{margin:0 4%;padding:4% 0;gap:14px;align-content:space-between;flex:1}
.local-copy-pill{font-size:clamp(14px,4.2cqw,21px);padding:9px 20px}
.local-card-metrics{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:12px}.local-card-metrics p{font-size:clamp(12px,3.5cqw,17px);line-height:1.5}.local-card-metrics p+ p{border-left:1px solid #d5dfe8;padding-left:12px}.local-card-metrics strong{font-size:clamp(18px,5cqw,26px)}
.local-identity-body .local-card-button{font-size:clamp(16px,4.6cqw,22px);padding:15px 12px;min-height:52px;box-sizing:border-box}
#branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
#branches .branch-city-group,#branches .branch-city-cards{display:contents}#branches .branch-city-group>h3{display:none}
#branches .branch-card{aspect-ratio:auto}
#branches .local-identity-body{align-content:start;flex:none;margin:0 4%;padding:14px 0}
#branches .local-identity-logo{aspect-ratio:auto;height:clamp(140px,48cqw,220px);padding:6% 5%}
.local-identity-head h4{white-space:nowrap;overflow-wrap:normal}
article[data-source-id="GERMANY_MOTORS"] .local-identity-head h4{font-size:8cqw}
#branches .local-identity-head h4{font-size:8cqw}
body.executive.erp .inventory-city-board .local-identity-head h4{font-size:11cqw}
body.executive.erp .inventory-city-board article[data-source-id="GERMANY_MOTORS"] .local-identity-head h4{font-size:8.8cqw}
body.executive.erp .inventory-city-board .local-identity-head p,#branches .local-identity-head p{font-size:5cqw;color:#cfddea}
body.executive.erp .inventory-city-board .local-card-metrics p{font-size:3.6cqw}
body.executive.erp .inventory-city-board .local-card-metrics strong{font-size:5.5cqw}
body.executive.erp .inventory-city-board .local-copy-pill{font-size:4.5cqw}
@media(max-width:900px){#branches{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#branches{grid-template-columns:minmax(0,1fr)}.local-identity-head h4{font-size:10cqw}}
/* Explicit contrast in both the public dark section and the ERP theme. */
body .inventory-city-board .local-identity-head h4,body #branches .local-identity-head h4{color:#fff!important}
body .inventory-city-board .local-identity-head p,body #branches .local-identity-head p{color:#e0eaf4!important}
body .local-identity-body,body .local-identity-body p,body .local-card-metrics strong{color:#16314b!important}
body .local-identity-body .local-card-button,body .local-identity-body .local-card-button:visited{color:#fff!important;background:#0c3051!important}
body .local-identity-body .local-copy-pill{color:#825300!important;background:#fff0c6!important}
body .local-identity-body .local-copy-pill.is-online{color:#146524!important;background:#def4e2!important}
.local-card-button.local-whatsapp{margin-top:8px;background:#166534;color:#fff}
/* Joined route/contact control: both halves retain their own accessible links. */
body #branches .branch-card .local-identity-body{margin:0 4% 5%;padding:0;gap:0;border:2px solid #2784a2;border-radius:60px;overflow:hidden;box-shadow:0 8px 22px #123b5720}
body #branches .branch-card .local-card-button{min-height:76px;border:0;border-radius:0;padding:14px 8px;box-shadow:none;flex-wrap:nowrap;gap:5px;font-size:clamp(12px,3.8cqw,20px);background:linear-gradient(125deg,#05213dcc,#05213de6),url('header-navy-marble.webp') center/cover!important}
body #branches .branch-card .local-card-button.local-whatsapp{border-left:2px solid #e3bd58;background:linear-gradient(135deg,#075743,#041e30)!important}
body #branches .branch-card .local-card-button svg{width:26px;height:26px}
body #branches .branch-card .local-card-button:first-child svg{color:#f2cf69}
body #branches .branch-card .local-card-button::after{content:'\203a';font-size:22px;line-height:1}
body #branches .branch-card .local-card-button:focus-visible{outline:3px solid #edc552;outline-offset:-5px}
body .branch-card .local-identity-body{display:grid;grid-template-columns:1fr 1fr;gap:8px}body .branch-card .local-card-button{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 9px;margin:0!important;border-radius:12px;font-size:13px;text-decoration:none;background:linear-gradient(120deg,#103552,#195775);border:1px solid #2a6985;box-shadow:0 3px 8px #09253a12}body .branch-card .local-card-button.local-whatsapp{background:linear-gradient(120deg,#146346,#22805b);border:1px solid #398e6c;color:#fff!important}body .branch-card .local-card-button svg{width:22px;height:22px;flex:none}body .branch-card .local-card-button:hover{filter:brightness(1.12);transform:translateY(-1px)}
/* Compact ERP search cards only; public branch contact cards keep their layout. */
body.executive.erp .inventory-city-board{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
body.executive.erp .inventory-city-board .inventory-source-grid article{aspect-ratio:auto}
body.executive.erp .inventory-city-board .local-identity-head{height:auto;min-height:78px;padding:10px;aspect-ratio:auto}
body.executive.erp .inventory-city-board .local-identity-head h4,body.executive.erp .inventory-city-board article[data-source-id="GERMANY_MOTORS"] .local-identity-head h4{font-size:clamp(15px,8cqw,24px);margin:0 0 5px;white-space:normal}
body.executive.erp .inventory-city-board .local-identity-head p{font-size:12px}
body.executive.erp .inventory-city-board .local-identity-logo{height:76px;padding:8px;aspect-ratio:auto}
body.executive.erp .inventory-city-board .local-copy-pill{font-size:11px;padding:5px 8px}
body.executive.erp .inventory-city-board .local-identity-body{gap:8px;padding:9px 0}
body.executive.erp .inventory-city-board .local-card-metrics{grid-template-columns:1fr;gap:5px}
body.executive.erp .inventory-city-board .local-card-metrics p{font-size:11px}
body.executive.erp .inventory-city-board .local-card-metrics p+p{border:0;padding:0}
body.executive.erp .inventory-city-board .local-card-metrics strong{font-size:19px}
body.executive.erp .inventory-city-board .local-card-button{font-size:12px;min-height:36px;padding:8px}
@media(max-width:1100px){body.executive.erp .inventory-city-board{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){body.executive.erp .inventory-city-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
