@font-face {
    font-family: "Portal Bootstrap Icons";
    src: url("bootstrap-icons.woff2") format("woff2");
    font-display: block;
}
.bootstrap-icon {
    display: inline-block;
    font-family: "Portal Bootstrap Icons", sans-serif;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}
.icon > .icon-image {
    display: block;
    width: 1.1em;
    height: 1.1em;
    object-fit: contain;
}
.nav-tree summary::after, .service-group > summary::after { display:none }
.nav-caret { display:inline-flex; font-size:.75em; margin-inline-start:.15rem }
.nav-tree details[open] > summary > .nav-caret { transform:rotate(180deg) }
.service-chevron { margin-inline-start:auto; font-size:.86em }
.service-group > summary .service-chevron .icon { background:transparent; color:inherit }
.service-group[open] > summary .service-chevron { transform:rotate(180deg) }

.banner-slider { margin-top:clamp(1rem,3vw,2.2rem) }
.banner-slider + .services { padding-top:clamp(2rem,4vw,3.5rem) }
.banner-slides { display:grid; gap:.6rem }
.home-banner {
    display:grid;
    position:relative;
    min-width:0;
    overflow:hidden;
    border-radius:.7rem;
    border:1px solid var(--line);
    background:var(--navy);
    color:var(--on-navy)!important;
    text-decoration:none;
    isolation:isolate;
}
.home-banner:focus-visible { outline-offset:3px }
.banner-slide .home-banner { min-height:clamp(5rem,12vw,10rem); align-items:center }
.home-banner-image img { width:100%;height:100%;object-fit:contain;object-position:center;background:var(--white) }
.banner-slide .home-banner-image img { aspect-ratio:1140 / 140 }
.banner-copy { display:grid; position:relative; gap:.35rem; align-content:center; justify-items:start; padding:1.15rem 2.75rem 1.15rem 1.2rem }
.banner-copy strong { font-size:clamp(1.15em,1.9vw,1.65em); line-height:1.14 }
.banner-copy > span:not(.icon) { font-size:.85em; opacity:.92 }
.banner-copy > .icon { position:absolute; right:1rem; top:50%; transform:translateY(-50%) }
.home-banner-image .banner-copy { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%) }
.feature-banners { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin-top:clamp(1rem,3vw,2rem) }
.feature-banners .home-banner { min-height:clamp(6.1rem,13vw,10rem) }
.feature-banners .home-banner-image img { object-fit:contain }
.feature-banners .home-banner:not(.home-banner-image) { border-top:.28rem solid var(--orange) }
.feature-banners .home-banner:hover .banner-copy strong { text-decoration:underline }
.portal-carousel-controls { display:flex; align-items:center; justify-content:center; gap:.35rem; margin-top:.65rem }
.portal-carousel-controls button {
    display:grid; place-items:center; min-width:2.35rem; min-height:2.35rem;
    padding:.25rem; border:1px solid var(--line); border-radius:.4rem; background:var(--white); color:var(--deep);
}
.portal-carousel-controls button:hover { border-color:var(--orange) }
.banner-dots { display:flex; align-items:center; gap:.1rem }
.banner-dots button { position:relative; min-width:1.85rem; min-height:2.35rem; border:0; background:transparent }
.banner-dots button::before { content:""; width:.68rem; height:.68rem; border-radius:50%; border:1px solid currentColor }
.banner-dots button[aria-pressed="true"]::before { background:var(--orange); box-shadow:0 0 0 2px var(--white) }
.portal-carousel-controls [data-carousel-pause][aria-pressed="true"] { border-color:var(--orange) }
.banner-slider.enhanced .banner-slide:not([hidden]) { animation:portal-banner-reveal .3s ease-out }
@keyframes portal-banner-reveal { from{opacity:.55;transform:translateX(1rem)} to{opacity:1;transform:translateX(0)} }

.mayor-columns { --mayor-visible:3; --mayor-gap:1rem; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--mayor-gap); align-items:start }
.mayor-current { min-width:0; grid-column:1 }
.mayor-history { min-width:0; grid-column:2/-1 }
.mayor-window { overflow-x:auto; padding-block:4px; margin-block:-4px; scrollbar-width:thin }
.mayor-track { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - (var(--mayor-visible) - 1) * var(--mayor-gap)) / var(--mayor-visible)); gap:var(--mayor-gap); width:100% }
.mayor-columns.enhanced .mayor-window { overflow:hidden }
.mayor-controls { justify-content:end }
.mayor-columns .portrait-story .story-image { aspect-ratio:4 / 4; max-height:310px }
.mayor-columns .story-body { min-height:6.9rem }
.current-mayor-tag { display:inline-block; padding:.12rem .4rem; border-radius:.24rem; background:var(--orange); color:var(--on-orange); font-size:.71em; font-weight:780 }

.page-banner h1 { font-size:var(--page-title,72px) }
.page-banner-news h1 { font-size:var(--news-title,58px) }
.post-story .story-body h3 { font-size:var(--news-card,23px) }
.feature-story.post-story .story-body h3 { font-size:calc(var(--news-card,23px) * 1.33) }
.tender-documents { display:flex; align-items:center; gap:.55rem; flex-wrap:wrap; margin:1.15rem 0 }
.tender-documents h2 { width:100%; font-size:1.36em }
.tender-mini { margin:.65rem 0 0 }
.tender-mini .button { font-size:.8em }
.compact-item p.tender-status { display:inline-flex; margin-top:.45rem; font-size:.78em; font-weight:850; padding:.14rem .44rem; border-radius:.35rem; background:#e9edf2; color:#102642 }
.dialog-bar button { min-width:2.2rem; min-height:2.2rem; font-size:1.13em }
.frame-dialog.frame-pdf .dialog-frame-body iframe { height:min(75vh,780px) }

.department-list { display:grid; gap:.75rem }
.department-list-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
.department-list-list { grid-template-columns:1fr; max-width:960px }
.department-card { display:grid; align-content:start; gap:.73rem; padding:1rem; background:var(--white); color:var(--deep); border:1px solid var(--line); border-radius:.65rem }
.department-list-list .department-card { grid-template-columns:auto 1fr; align-items:center }
.department-card h3 { font-size:1.13em; margin:.2rem 0 .45rem }
.department-card p + p { margin-top:.3rem }
.department-card .compact-kind { font-size:.74em; font-weight:800; color:var(--muted) }
.department-card .department-thumb { width:100%; height:190px; object-fit:cover; object-position:center 30%; border-radius:.45rem }
.department-list-list .department-thumb { width:8rem; height:6.7rem }
.department-article { max-width:1030px }
.department-profile { display:grid; gap:clamp(.9rem,3vw,2.6rem); margin-bottom:1.35rem; align-items:center }
.department-split { grid-template-columns:minmax(0,var(--department-photo)) minmax(0,1fr) }
.department-split.photo-right { grid-template-columns:minmax(0,1fr) minmax(0,var(--department-photo)) }
.department-split.photo-right figure { order:2 }
.department-stack, .department-stacked, .department-no-photo { grid-template-columns:minmax(0,1fr) }
.department-stacked figure { width:min(100%,var(--department-photo)); justify-self:start }
.department-stacked.photo-right figure { justify-self:end }
.department-editorial { padding:clamp(1.15rem,3vw,2rem); border-radius:.65rem; border-left:.3rem solid var(--orange); background:var(--navy); color:var(--on-navy); grid-template-columns:minmax(0,var(--department-photo)) minmax(0,1fr) }
.department-editorial.photo-right { grid-template-columns:minmax(0,1fr) minmax(0,var(--department-photo)) }
.department-editorial.photo-right figure { order:2 }
.department-editorial.department-no-photo { grid-template-columns:minmax(0,1fr) }
.department-profile figure { width:100% }
.department-portrait { width:100%; aspect-ratio:4/4; object-fit:cover; object-position:center 26%; border-radius:.6rem }
.department-intro h2 { font-size:clamp(1.6em,3.3vw,2.6em); margin:.42rem 0; overflow-wrap:anywhere }
.department-role { font-weight:720; margin-bottom:.6rem!important }
.department-bio { margin-bottom:.55rem!important }
.department-contacts { display:flex; flex-wrap:wrap; gap:.5rem; margin-block:1rem 1.45rem }
.department-contacts > * { display:inline-flex; gap:.45rem; align-items:center; padding:.5rem .65rem; border:1px solid var(--line); border-radius:.38rem; background:var(--white); color:var(--deep)!important; overflow-wrap:anywhere }

.christmas-theme { --navy:#183d31!important; --on-navy:#fff!important; --orange:#e6ad4b!important; --on-orange:#15130e!important; --paper:#f7f3e8!important; --on-paper:#16251d!important }
.christmas-theme .nav-band { border-bottom:.26rem solid #a82434 }
.christmas-theme .hero-media::after { background:linear-gradient(90deg,#112c26f2,#183d31cf 42%,#1c33296b 80%),linear-gradient(0deg,#3d171a99,transparent 55%) }
.christmas-theme .service-icon { background:#f6ebe1; color:#842336 }
.christmas-theme .civic-links a > .icon:first-child { color:#842336 }
.christmas-theme .site-footer { border-top-color:#ac293b }
.holiday-snow { position:fixed; inset:0; z-index:6; pointer-events:none; overflow:hidden }
.holiday-snow > span {
    position:absolute; left:var(--snow-x); top:-30px; color:#fff; font-size:var(--snow-size);
    text-shadow:0 1px 3px #1026427a; opacity:.72;
    animation:snow-fall var(--snow-time) linear var(--snow-delay) infinite;
}
@keyframes snow-fall { to { transform:translate(3.4rem,calc(100vh + 36px)) rotate(250deg); opacity:.15 } }
.high-contrast.christmas-theme { --paper:#000!important; --navy:#000!important; --orange:#fff226!important; --on-paper:#fff!important; --on-navy:#fff!important; --on-orange:#000!important }
.high-contrast .holiday-snow { display:none }

@media(max-width:940px) {
    .mayor-columns { --mayor-visible:2; grid-template-columns:repeat(3,minmax(0,1fr)) }
    .page-banner h1 { font-size:calc(var(--page-title,72px) * .82) }
    .page-banner-news h1 { font-size:calc(var(--news-title,58px) * .82) }
    .department-list-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:630px) {
    .feature-banners { grid-template-columns:1fr }
    .mayor-columns { --mayor-visible:1; --mayor-gap:.6rem; grid-template-columns:repeat(2,minmax(0,1fr)) }
    .department-list-grid { grid-template-columns:1fr }
    .page-banner h1 { font-size:calc(var(--page-title,72px) * .63) }
    .page-banner-news h1 { font-size:calc(var(--news-title,58px) * .69) }
    .post-story .story-body h3 { font-size:calc(var(--news-card,23px) * .87) }
    .feature-story.post-story .story-body h3 { font-size:var(--news-card,23px) }
    .department-profile { grid-template-columns:minmax(0,1fr)!important }
    .department-profile figure { max-width:min(var(--department-photo),100%); order:0!important }
}
@media(prefers-reduced-motion:reduce) {
    .holiday-snow { display:none }
    .animated-banner img { display:none }
    .animated-banner .banner-copy { position:relative; width:auto; height:auto; padding:1.15rem 2.75rem 1.15rem 1.2rem; clip-path:none }
}
