/* Corporate editorial geometry: one gutter for header, content and footer.
 * Scoped to the Spain insurance catalogue and its homepage entry. */
html body.insurance-spain{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#fff;color:var(--ap-text);font:16px/1.65 Arial,Helvetica,sans-serif}
.insurance-spain *{box-sizing:border-box}
html body.insurance-spain :is(.insurance-shell,.nav-shell .wrap){width:min(1370px,calc(100% - clamp(36px,8vw,112px)));margin-inline:auto;min-width:0}
html body.insurance-spain  .nav-shell{padding:0;min-height:0;display:block;border-bottom:1px solid var(--ap-line)}
.insurance-spain .nav-shell .nav-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:86px;padding-block:18px}
html body.insurance-spain main{flex:1 0 auto;padding-block:clamp(32px,4.5vw,64px) clamp(48px,5.5vw,80px)}
.insurance-crumb{display:flex;flex-wrap:wrap;gap:0 8px;align-items:center;font-size:13px;line-height:1.5;margin-bottom:24px}
.insurance-eyebrow{font:750 12px/1.45 Arial,Helvetica,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--ap-signal);margin:0 0 12px}
html body.insurance-spain h1{font:800 clamp(37px,4.9vw,64px)/1.075 Arial,Helvetica,sans-serif;letter-spacing:-.05em;color:var(--ap-black);margin:0 0 18px;overflow-wrap:anywhere}
html body.insurance-spain h2{font:800 clamp(21px,2vw,29px)/1.22 Arial,Helvetica,sans-serif;letter-spacing:-.025em;color:var(--ap-black);margin:0 0 16px;overflow-wrap:anywhere}
.insurance-lead{max-width:70ch;margin:0 0 clamp(24px,3vw,42px);font-size:clamp(17px,1.35vw,20px);line-height:1.6}
.insurance-spain a:not(.ap-wordmark){text-underline-offset:3px}
.insurance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,3vw,42px) clamp(24px,4.2vw,66px);align-items:start}
.insurance-category,.insurance-coverage{border-top:1px solid var(--ap-line);padding-top:22px;min-width:0}
.insurance-category ul{list-style:none;padding:0;margin:0}
.insurance-category li{border-bottom:1px solid var(--ap-line)}
.insurance-category li:last-child{border-bottom:0}
.insurance-category li a{display:flex;align-items:baseline;justify-content:space-between;gap:16px;min-height:42px;padding:9px 0;font-size:15px;line-height:1.45;font-weight:600;text-decoration:none}
.insurance-category li a:hover span:first-child,.insurance-category li a:focus-visible span:first-child{text-decoration:underline}
.insurance-category li a span:first-child{min-width:0;overflow-wrap:anywhere}
.insurance-link-arrow{flex:0 0 auto;font-size:17px;line-height:1}
.insurance-coverage{max-width:80ch;margin-top:28px}
.insurance-coverage ul{padding-left:22px;margin:0 0 16px}
.insurance-coverage li{padding-block:3px}
.insurance-coverage p{margin:0;font-size:14px}
.insurance-unavailable{max-width:80ch;background:var(--ap-pale);border-left:3px solid var(--ap-line);padding:18px 20px;margin:30px 0}
.insurance-note{font-size:14px;line-height:1.6;margin:32px 0 0;max-width:75ch;color:var(--ap-text)}
html body.insurance-spain .spain-footer{border-top:2px solid var(--ap-black);padding-block:22px;flex-wrap:wrap;gap:14px 28px}
.insurance-spain .spain-footer .ap-reus-phone{margin:0}
html body.insurance-spain main > .insurance-process{width:100%;max-width:none;margin-inline:0;margin-bottom:0}
html body.insurance-spain .insurance-process .ap-process-step{padding-inline:0}
html body.insurance-spain .insurance-process h2{max-width:26ch;overflow-wrap:normal}
html body.insurance-spain .insurance-process .ap-process-heading-row{align-items:start}
html body .profile-left .service-pension .service-subareas:has([data-spain-insurance-entry]){grid-template-columns:repeat(2,minmax(0,1fr))}
html body .profile-left .service-pension .service-subareas:has([data-spain-insurance-entry])>.pension-subarea{grid-column:auto}
html body .profile-left .service-pension .service-subareas:has([data-spain-insurance-entry])>p{grid-column:1/-1}
.insurance-dialog{width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--ap-line);padding:24px;color:var(--ap-text)}
.insurance-dialog::backdrop{background:#15191a88}
.insurance-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0;font-size:13px}
.insurance-progress [aria-current="step"]{color:var(--ap-corporate-green);font-weight:700;border-bottom:3px solid var(--ap-corporate-green)}
.insurance-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}
.insurance-actions button{font:inherit;padding:10px 15px;border:1px solid var(--ap-corporate-green);color:white;background:var(--ap-corporate-green);cursor:pointer}
.insurance-actions button:disabled{opacity:.6;cursor:default}
.insurance-dialog [hidden]{display:none!important}
@media(max-width:700px){
 html body.insurance-spain :is(.insurance-shell,.nav-shell .wrap){width:calc(100% - 32px)}
 .insurance-spain .nav-shell .nav-inner{gap:10px;min-height:65px;padding-block:14px}
 .insurance-grid,html body .profile-left .service-pension .service-subareas:has([data-spain-insurance-entry]){grid-template-columns:1fr}
 .insurance-grid{gap:24px}
 html body.insurance-spain main{padding-block:30px 44px}
 .insurance-category li a{min-height:44px}
 .insurance-progress{font-size:11px}.insurance-dialog{padding:16px}
}
@media(max-width:360px){.insurance-spain .nav-shell .nav-inner{gap:6px}}
