/* A shared anchored masthead keeps academy and federation marks visible on every page. */
:root{--masthead-height:280px}
html{scroll-padding-top:calc(var(--masthead-height) + 20px)}
.site-masthead{position:sticky;top:0;z-index:50;background:white;box-shadow:0 2px 12px #082b3c12}
.site-masthead .header{position:relative;top:auto;z-index:2}
.site-masthead .masthead-affiliations{position:relative;z-index:1;padding:13px 0 12px;background:#fffdf8;border-bottom:1px solid #ddc99c}
.site-masthead .masthead-affiliations>.wrap>.eyebrow{font-size:12px;margin-bottom:8px;letter-spacing:.08em}
.site-masthead .header nav{z-index:4}
.page-corsi .keep-caps{text-transform:uppercase}
.page-corsi .specialties .eyebrow{text-transform:none}
.page-corsi .course-photo-pair{grid-template-columns:.8fr 1.2fr;gap:16px;align-items:start}
.page-corsi #apnea .course-photo-pair figure:first-child .course-detail-image{height:auto;aspect-ratio:3/4;max-height:none}
.page-corsi #apnea .course-photo-pair figure:first-child .course-detail-image img{height:100%;width:100%;object-fit:contain}
.page-corsi #apnea .course-photo-pair figure:nth-child(2)>img{height:auto;aspect-ratio:3/2;object-fit:contain}
.course-photo-pair figcaption{font-size:12px;line-height:1.45;letter-spacing:.04em}
.page-corsi .level-card>img{object-fit:cover;object-position:center 45%}
.page-corsi .specialty-photo{width:135px;height:115px;object-fit:cover;object-position:center}
.baia-feature{margin:0 0 42px;display:grid;grid-template-columns:1.15fr 1fr;background:#092b3c;color:white}
.baia-feature>img{width:100%;height:390px;object-fit:cover}
.baia-feature figcaption{padding:40px}
.baia-feature h3{font-size:33px;line-height:1.15}
.baia-feature .eyebrow{display:block;color:#e6ca87;margin-bottom:15px}
.baia-feature p{font-size:17px;line-height:1.65;color:#d5e1e5}
.baia-feature .text-link{font-size:15px;color:#e6ca87;margin-top:15px}
.rules-index{top:calc(var(--masthead-height) + 18px);max-height:calc(100svh - var(--masthead-height) - 36px);overflow:auto;scrollbar-width:thin}
.rules-index a{font-size:13px;line-height:1.5;padding:10px 0}
.rules-content{min-width:0}
.rules-content .rules-document-title{font-size:36px;line-height:1.15;margin:12px 0}
.rules-entity{font-size:15px;font-weight:600;color:#785c28}
.rules-intro{font-size:17px;line-height:1.8;margin-top:24px}
.rule-section{scroll-margin-top:0;margin-top:40px}
.rule-section h2{font-size:27px;line-height:1.3;padding-bottom:16px}
.reg-clause{font-size:16px;line-height:1.85;margin:0;padding:18px 0;border-bottom:1px solid #d8e1df;overflow-wrap:anywhere}
.rules-approval{font-size:14px;line-height:1.9;color:#5c727d;margin-top:40px;white-space:normal}
@media(max-width:1000px){
 .rules-layout{grid-template-columns:1fr;gap:30px}
 .rules-index{position:static;max-height:280px}
 .baia-feature figcaption{padding:28px}
 .baia-feature>img{height:350px}
}
@media(max-width:600px){
 :root{--masthead-height:225px}
 .site-masthead .masthead-affiliations{padding:10px 0}
 .site-masthead .masthead-affiliations>.wrap>.eyebrow{font-size:10px;letter-spacing:.02em;margin-bottom:6px}
 .page-corsi .course-photo-pair{grid-template-columns:.8fr 1.2fr;gap:10px}
 .course-photo-pair figcaption{padding:9px;font-size:10px}
 .page-corsi .specialty-photo{width:112px;height:100px}
 .baia-feature{grid-template-columns:1fr}
 .baia-feature>img{height:290px;object-position:center}
 .baia-feature figcaption{padding:25px}
 .baia-feature h3{font-size:28px}
 .rules-content .rules-document-title{font-size:30px}
 .rule-section h2{font-size:25px}
 .rules-intro,.reg-clause{font-size:16px;line-height:1.8}
 .rules-index a{font-size:14px}
}
