/* CaFEC v9.6: accessible visual refinements. Keeps the established brand palette. */
:root{--cafec-radius:14px;--cafec-shadow:0 12px 30px rgba(6,37,57,.08);--cafec-ease:cubic-bezier(.2,.7,.2,1);--sans:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
html{scroll-padding-top:100px}
body{font-size:16px;line-height:1.65;text-rendering:optimizeLegibility}
h1,h2,h3,h4{line-height:1.14;overflow-wrap:break-word}
p{overflow-wrap:break-word}
a,button{touch-action:manipulation}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #eab308;outline-offset:3px}
.skip-link:focus{left:12px;top:12px;border-radius:8px;text-decoration:none;box-shadow:0 10px 24px #0002}
.container{max-width:100%}
.site-header{transition:box-shadow .2s ease}
.site-header.is-scrolled{box-shadow:0 5px 20px rgba(7,47,74,.09)}
.header-main{gap:clamp(12px,1.8vw,22px)}
.cafec-simple-nav-item>a{min-height:48px;padding-inline:clamp(7px,.75vw,13px);font-size:.82rem;letter-spacing:.005em;transition:color .16s ease,border-color .16s ease}
.cafec-simple-nav-item>a[aria-current="page"]{color:var(--blue);border-bottom-color:var(--green)}
.talk-cta,.cafec-account-entry,.search-toggle,.mobile-nav-toggle,.btn{border-radius:8px}
.mobile-nav-toggle,.search-toggle,.cafec-account-entry{min-height:44px}
.search-toggle{padding:10px 12px;min-width:57px}
.talk-cta{min-height:44px}
.primary-navigation{min-width:0}
.search-panel input{min-width:0}
.search-panel button{border-radius:8px;min-height:44px}
/* One restrained hero entrance; no permanent zoom or GPU-intensive animation. */
.hero-v6{min-height:clamp(550px,74svh,800px)}
.hero-v6-media{inset:0;width:100%;height:100%;animation:none!important;will-change:auto}
.hero-v6-copy{animation:cafecHeroCopy .52s var(--cafec-ease) both}
.hero-v6-brand{animation:none!important}
.hero-v6-accent i{animation:none!important}
.hero-v6 h1{font-size:clamp(2.75rem,5.5vw,5.7rem);line-height:1.03;max-width:990px}
.hero-v6-content{padding-block:clamp(90px,10vw,128px) clamp(44px,6.5vw,88px)}
.hero-v6 p{line-height:1.6;max-width:700px}
.hero-v6-brand span{color:#fff}
.btn{min-height:46px;transition:background-color .17s ease,border-color .17s ease,color .17s ease,transform .17s ease}
.section{padding-block:clamp(56px,6.5vw,92px)}
.section-head{gap:clamp(18px,3vw,44px);margin-bottom:clamp(22px,3vw,38px)}
.section-head h2{font-size:clamp(2rem,3.45vw,3.35rem);line-height:1.12;text-wrap:balance}
.section-head p{max-width:46ch}
.pillar-grid{gap:clamp(14px,2vw,26px)}
.pillar-card,.content-card,.service-card,.cafec-purpose-value{border-radius:var(--cafec-radius);overflow:hidden}
.content-card{min-width:0;box-shadow:0 3px 12px rgba(7,47,74,.03);transition:box-shadow .22s ease,transform .22s var(--cafec-ease),border-color .22s ease}
.content-card:hover,.content-card:focus-within{transform:translateY(-2px);border-color:#b9d2da;box-shadow:var(--cafec-shadow)}
.content-card img{object-fit:cover;aspect-ratio:16/10;width:100%;height:auto}
.card-body{padding:clamp(18px,2vw,26px)}
.card-body h3,.card-body h2{font-size:clamp(1.12rem,1.45vw,1.35rem);line-height:1.32;margin:8px 0 13px}
.card-body h3 a,.card-body h2 a{color:#093c5c;text-decoration:none}
.card-body h3 a:hover,.card-body h3 a:focus-visible{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px}
.card-body p{font-size:.94rem;line-height:1.6}
.card-body .meta{color:#536875;font-size:.78rem;line-height:1.5}
.card-body .text-link{margin-top:auto;min-height:36px;padding-block:5px}
.cafec-news-card{display:flex;flex-direction:column}
.cafec-news-card .card-body{display:flex;flex:1;flex-direction:column;align-items:flex-start}
.cafec-news-card-media{display:block;overflow:hidden;background:#edf4f7}
.cafec-news-card-media img{transition:transform .28s var(--cafec-ease)}
.cafec-news-card-media:hover img{transform:scale(1.02)}
.cafec-newsroom-filters{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 25px}
.cafec-newsroom-filter{display:inline-flex;align-items:center;min-height:44px;border:1px solid #cbdde4;border-radius:999px;padding:9px 17px;font-size:.84rem;font-weight:700;text-decoration:none;color:#154564;background:#fff;transition:background-color .16s,border-color .16s}
.cafec-newsroom-filter:hover{background:#eff7f7;border-color:#aacbc7}
.cafec-newsroom-filter.is-current,.cafec-newsroom-filter[aria-current="page"]{background:#0a466c;color:white;border-color:#0a466c}
.cafec-news-pagination{margin-top:30px}
.cafec-news-pagination .page-numbers{display:flex;flex-wrap:wrap;gap:8px;align-items:center;list-style:none;padding:0;margin:0}
.cafec-news-pagination li{margin:0}
.cafec-news-pagination a,.cafec-news-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 14px;border-radius:8px;border:1px solid #cadbe3;text-decoration:none;color:#09456f;font-weight:650}
.cafec-news-pagination .current{background:#0a466c;color:#fff;border-color:#0a466c}
.cafec-news-empty{padding:28px 30px;background:#f5f8fa;border-radius:12px}
/* Long-form reading and site-wide consistency. */
.prose{line-height:1.78;font-size:1rem}
.prose>p,.prose>ul,.prose>ol{max-width:78ch}
.prose :is(h2,h3){margin-top:1.6em;line-height:1.23}
.prose img{border-radius:10px;max-width:100%}
.prose figure{max-width:100%}
.prose iframe,.prose video{max-width:100%;height:auto}
.prose a:not(.btn){text-decoration-thickness:1px;text-underline-offset:3px}
.interior-hero{padding-block:clamp(40px,5.4vw,70px)}
.interior-hero h1{font-size:clamp(2.4rem,4.6vw,4.65rem);line-height:1.12;text-wrap:balance}
.article-hero .article-meta{margin-top:20px;color:#4e6b79}
.cafec-article-back{display:inline-flex;align-items:center;min-height:44px;margin-top:32px;text-decoration:none;font-weight:700}
.footer-menu a{display:inline-flex;align-items:center;min-height:30px}
.site-footer a:hover{text-decoration:underline;color:#fff}
/* Reveal only specific outer cards, never article text or sensitive portal controls. */
.cafec-reveal-ready{opacity:0;transform:translateY(14px);transition:opacity .36s ease,transform .36s var(--cafec-ease)}
.cafec-reveal-ready.is-visible{opacity:1;transform:translateY(0)}
/* Undo previous sweeping reveal rules on content inside public articles. */
.prose>.reveal-ready,.interior-hero-grid.reveal-ready,.cafec-portal-page .reveal-ready{opacity:1;transform:none;transition:none}
@media(max-width:1120px){
 .site-header .brand img{width:auto;max-width:105px;max-height:58px}
 .mobile-nav-toggle{border-radius:8px;padding:10px 14px}
 .primary-navigation{overscroll-behavior:contain;max-height:min(78svh,650px)}
 .cafec-simple-nav-item>a{min-height:48px;padding:12px 8px}
 .cafec-clean-footer-grid{grid-template-columns:1.1fr 1fr;gap:28px}
}
@media(max-width:720px){
 html{scroll-padding-top:75px}
 .container{width:calc(100% - 32px)}
 .header-main{gap:7px}
 .header-actions{gap:4px}
 .cafec-header-account .cafec-account-entry{min-height:44px;display:flex;align-items:center}
 .hero-v6{min-height:clamp(520px,84svh,730px)}
 .hero-v6-content{padding-top:145px;padding-bottom:42px}
 .hero-v6 h1{font-size:clamp(2.4rem,10vw,3.6rem);line-height:1.07}
 .hero-v6-brand{display:none}
 .hero-v6-copy{max-width:100%}
 .hero-v6 .actions{gap:10px}
 .hero-v6 .actions .btn{min-width:0}
 .section-head h2{font-size:clamp(2rem,8vw,2.65rem)}
 .interior-hero h1{font-size:clamp(2.15rem,8.8vw,3.3rem)}
 .card-grid{grid-template-columns:1fr}
 .cafec-newsroom-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:8px;scroll-snap-type:x proximity}
 .cafec-newsroom-filter{flex:0 0 auto;scroll-snap-align:start}
 .cafec-clean-footer-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
 .hero-v6-media,.hero-v6-copy,.hero-v6-brand,.hero-v6-accent i,.brand-orbit{animation:none!important;transform:none!important}
 .cafec-reveal-ready,.reveal-ready{opacity:1!important;transform:none!important}
 .content-card:hover,.content-card:focus-within,.cafec-news-card-media:hover img,.btn:hover{transform:none!important}
}
@media print{.site-header,.site-footer,.cafec-article-back,.cafec-newsroom-filters,.cafec-news-pagination{display:none!important}.cafec-reveal-ready{opacity:1!important;transform:none!important}}

/* v10: administrators may switch all optional motion off. */
.cafec-motion-off .hero-v6-copy,.cafec-motion-off .hero-v6-brand,.cafec-motion-off .hero-v6-accent i{animation:none!important}

/* v10.2: the dedicated project templates retain theme-scale spacing without redundant interior heroes. */
body.page-slug-projects .site-main{overflow:visible}

/* CaFEC 10.5: supplied transparent logo with accessible contrast on light/dark areas. */
.brand img.cafec-site-logo{max-width:125px;max-height:79px;width:auto;height:auto;object-fit:contain}
.footer-brand img.cafec-site-logo{background:#fff!important;border-radius:12px;padding:9px;max-width:126px;max-height:126px;box-shadow:0 6px 24px rgba(0,0,0,.2);filter:none}
.hero-v6-brand img{background:#fff!important;border-radius:13px;padding:12px;box-shadow:0 9px 32px rgba(3,25,44,.2)}
@media(max-width:1120px){.brand img.cafec-site-logo{max-width:98px;max-height:63px}}
@media(max-width:720px){.brand img.cafec-site-logo{max-width:83px;max-height:56px}}

/* v10.8 accessibility and usability hardening: zero-JS, zero-library changes. */
:where(a,button,input,select,textarea,[role="button"]):focus-visible{
 outline:3px solid #b06c00;outline-offset:3px;
}
:where(.cafec-simple-nav-item a,.cafec-newsroom-filter,.talk-cta,.cafec-cat-btn){text-underline-offset:.19em}
:where(.cafec-simple-nav-item a,.cafec-newsroom-filter,.talk-cta,.cafec-cat-btn):focus-visible{
 box-shadow:0 0 0 4px rgba(255,255,255,.92);border-radius:5px;
}
#main-content{scroll-margin-top:90px}
:target{scroll-margin-top:100px}
@media(hover:none){.content-card:hover,.cafec-purpose-value:hover{transform:none}}
@media(prefers-reduced-motion:reduce){
 html:focus-within{scroll-behavior:auto}
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* CaFEC v11.1: conservative usability and accessibility updates. */
:where(.site-header,.site-footer,main) :is(a,button,summary,input,select,textarea):focus-visible{
 outline:3px solid #e8aa00;outline-offset:3px;
}
:where(.content-card,.pillar-card,.service-card,.cafec-news-card):focus-within{
 box-shadow:0 0 0 2px rgba(0,84,144,.18),0 10px 24px rgba(7,47,74,.09);
}
:where(.prose,.card-body,.interior-hero) :is(h1,h2,h3,h4,p){overflow-wrap:anywhere}
:where(main,article,section)[id]{scroll-margin-top:clamp(78px,12vw,120px)}
:where(input,select,textarea):disabled{cursor:not-allowed;opacity:.75}
:where(button,.btn,[role="button"]):disabled{cursor:not-allowed;opacity:.65;box-shadow:none}
.cafec-portal-page .cafec-reveal-ready,.cafec-certificate-pages .cafec-reveal-ready{opacity:1!important;transform:none!important;transition:none!important}
@media(prefers-contrast:more){
 .cafec-newsroom-filter,.content-card,.cafec-account-entry{border-color:#18394d}
 :where(a,button,summary,input):focus-visible{outline:3px solid currentColor!important;outline-offset:3px}
 .card-body .meta{color:#345163}
}
@media(forced-colors:active){
 .btn,.cafec-newsroom-filter,.cafec-account-entry{forced-color-adjust:auto;border:1px solid ButtonText}
 .content-card:hover,.content-card:focus-within{transform:none!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.cafec-reveal-ready{opacity:1!important;transform:none!important}}
