/* ICWPS site chrome: header and footer. Colors come from Kubio's global palette (tools/design/kubio-globals.php). */

:root {
    --icwps-navy: rgb(var(--kubio-color-6, 11, 37, 69));
    --icwps-navy-deep: rgb(var(--kubio-color-6-variant-5, 4, 15, 28));
    --icwps-teal: rgb(var(--kubio-color-1, 14, 110, 140));
    --icwps-gold: rgb(var(--kubio-color-2, 217, 164, 65));
    --icwps-gold-dark: rgb(var(--kubio-color-2-variant-4, 152, 115, 46));
    --icwps-white: #fff;
    --icwps-sans: "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
    --icwps-serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
    --icwps-max: 1200px;
    --icwps-header-h: 76px;
}

body { font-family: var(--icwps-sans); }
/* Kubio sets overflow-x:hidden on body, which turns it into a scroll container and breaks the sticky header.
   clip hides horizontal overflow the same way without creating a scroll container. */
html body { overflow-x: clip !important; overflow-y: visible !important; }

.icwps-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.icwps-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .65rem 1.25rem; border-radius: 4px; border: 2px solid transparent;
    font: 700 .95rem/1.2 var(--icwps-sans); letter-spacing: .01em; text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.icwps-btn--gold { background: var(--icwps-gold); color: var(--icwps-navy) !important; }
.icwps-btn--gold:hover, .icwps-btn--gold:focus-visible { background: var(--icwps-white); color: var(--icwps-navy) !important; }

/* Header */
.icwps-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--icwps-navy); color: var(--icwps-white);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 6px 20px rgba(4, 15, 28, .25);
}
.admin-bar .icwps-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .icwps-header { top: 0; } }

.icwps-header__inner {
    max-width: var(--icwps-max); margin: 0 auto; padding: 0 20px;
    min-height: var(--icwps-header-h); display: flex; align-items: center; gap: 24px;
}

.icwps-brand { display: flex; align-items: center; gap: 12px; color: inherit !important; text-decoration: none !important; margin-right: auto; min-width: 0; }
.icwps-brand__logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; flex: none; object-fit: contain; }
.icwps-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.icwps-brand__name { font: 700 1.35rem/1 var(--icwps-serif); letter-spacing: .04em; }
.icwps-brand__sub { font: 400 .78rem/1.3 var(--icwps-sans); opacity: .8; margin-top: 3px; }

.icwps-nav { display: flex; align-items: center; gap: 20px; }
.icwps-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.icwps-nav__list > li { position: relative; margin: 0; }
.icwps-nav__list a {
    display: block; padding: .55rem .8rem; border-radius: 4px;
    color: rgba(255, 255, 255, .88) !important; text-decoration: none !important;
    font: 600 .95rem/1.2 var(--icwps-sans);
}
.icwps-nav__list a:hover, .icwps-nav__list a:focus-visible { color: #fff !important; background: rgba(255, 255, 255, .08); }
.icwps-nav__list .current-menu-item > a, .icwps-nav__list .current_page_item > a { color: #fff !important; box-shadow: inset 0 -2px 0 var(--icwps-gold); border-radius: 0; }

/* Dropdowns (depth 2) */
.icwps-nav__list .sub-menu {
    position: absolute; left: 0; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: 6px;
    background: var(--icwps-navy); border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.icwps-nav__list li:hover > .sub-menu, .icwps-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.icwps-header a:focus-visible, .icwps-nav-toggle:focus-visible, .icwps-footer a:focus-visible { outline: 2px solid var(--icwps-gold); outline-offset: 2px; }

.icwps-nav-toggle { display: none; }

/* Mobile */
@media (max-width: 960px) {
    :root { --icwps-header-h: 64px; }
    .icwps-brand__logo { width: 40px; height: 40px; }
    .icwps-brand__sub { display: none; }
    .icwps-nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px;
        background: transparent; color: #fff; cursor: pointer;
    }
    .icwps-nav-toggle__bars, .icwps-nav-toggle__bars::before, .icwps-nav-toggle__bars::after {
        display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; position: relative; transition: transform .2s, opacity .2s;
    }
    .icwps-nav-toggle__bars::before, .icwps-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .icwps-nav-toggle__bars::before { top: -6px; }
    .icwps-nav-toggle__bars::after { top: 6px; }
    .icwps-nav-toggle[aria-expanded="true"] .icwps-nav-toggle__bars { background: transparent; }
    .icwps-nav-toggle[aria-expanded="true"] .icwps-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
    .icwps-nav-toggle[aria-expanded="true"] .icwps-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

    .icwps-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 20px 20px;
        background: var(--icwps-navy); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
        max-height: calc(100vh - var(--icwps-header-h)); overflow-y: auto;
    }
    .icwps-header.is-open .icwps-nav { display: flex; }
    .icwps-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .icwps-nav__list a { padding: .85rem .5rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
    .icwps-nav__list .current-menu-item > a { box-shadow: inset 3px 0 0 var(--icwps-gold); padding-left: .9rem; }
    .icwps-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 1rem; }
    .icwps-nav__cta { align-self: flex-start; }
}

/* Footer */
.icwps-footer { background: var(--icwps-navy); color: rgba(255, 255, 255, .82); font: 400 .98rem/1.6 var(--icwps-sans); }
.icwps-footer__inner {
    max-width: var(--icwps-max); margin: 0 auto; padding: 56px 20px 40px;
    display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px;
}
.icwps-footer p { color: inherit; font: inherit; margin: 1rem 0 0; max-width: 34rem; }
.icwps-footer .icwps-footer__heading {
    margin: 0 0 1rem; color: #fff; font: 700 .8rem/1.3 var(--icwps-sans); letter-spacing: .12em; text-transform: uppercase;
}
.icwps-footer ul { list-style: none; margin: 0; padding: 0; }
.icwps-footer li { margin: 0 0 .55rem; }
.icwps-footer a { color: #fff !important; font: inherit; text-decoration: none !important; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.icwps-footer a:hover { border-bottom-color: var(--icwps-gold); }
.icwps-footer .icwps-brand { border: 0; }
.icwps-footer__label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.icwps-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: var(--icwps-navy-deep); }
.icwps-footer__bottom p { max-width: var(--icwps-max); margin: 0 auto; padding: 18px 20px; font-size: .85rem; opacity: .75; }
@media (max-width: 860px) {
    .icwps-footer__inner { grid-template-columns: 1fr 1fr; }
    .icwps-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .icwps-footer__inner { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
}

/* Countdown */
.icwps-countdown { margin: 2rem 0 0; }
.icwps-countdown__label { margin: 0 0 .6rem !important; font: 700 .8rem/1.3 var(--icwps-sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--icwps-gold) !important; }
.icwps-countdown__units { display: flex; flex-wrap: wrap; gap: 10px; }
.icwps-countdown__unit {
    min-width: 86px; padding: .75rem .9rem .65rem; text-align: center; border-radius: 6px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.icwps-countdown__num { display: block; font: 700 clamp(1.8rem, 4vw, 2.5rem)/1 var(--icwps-serif); color: #fff; font-variant-numeric: tabular-nums; }
.icwps-countdown__name { display: block; margin-top: .35rem; font: 600 .72rem/1.2 var(--icwps-sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.icwps-countdown__date { margin: .7rem 0 0 !important; font: 400 .9rem/1.4 var(--icwps-sans) !important; color: rgba(255, 255, 255, .75) !important; }
.icwps-countdown.is-done .icwps-countdown__units { display: none; }
@media (max-width: 480px) { .icwps-countdown__unit { min-width: 0; flex: 1 1 calc(25% - 10px); padding: .6rem .3rem; } }

/* Page banner (ICWPS full width template) */
.icwps-banner {
    color: #fff;
    background:
        linear-gradient(100deg, rgba(4, 15, 28, .93) 0%, rgba(11, 37, 69, .85) 55%, rgba(11, 37, 69, .55) 100%),
        var(--icwps-banner-image) center 40% / cover no-repeat,
        var(--icwps-navy);
}
.icwps-banner__inner { max-width: var(--icwps-max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 20px clamp(40px, 6vw, 72px); }
.icwps-banner .icwps-banner__title { margin: 0; color: #fff; font: 700 clamp(2.2rem, 5vw, 3.4rem)/1.1 var(--icwps-serif); }
.icwps-banner .icwps-banner__subtitle { margin: .9rem 0 0; max-width: 46rem; color: rgba(255, 255, 255, .85); font: 400 clamp(1.05rem, 1.8vw, 1.25rem)/1.5 var(--icwps-sans); }
.icwps-main { margin: 0; }
/* WordPress's block gap puts a margin between top-level template blocks; our chrome sits flush. */
.wp-site-blocks > .icwps-header, .wp-site-blocks > .icwps-banner, .wp-site-blocks > .icwps-notice, .wp-site-blocks > .icwps-main, .wp-site-blocks > .icwps-footer { margin-block-start: 0; margin-block-end: 0; }
.icwps-main > .wp-block-post-content > :last-child { margin-bottom: 0; }
.wp-block-post-content > p:empty { display: none; }

/* Notice bar under the page banner (meta icwps_page_notice), e.g. "this page is the 2025 archive". */
.icwps-notice { background: #fbf3e2; border-bottom: 1px solid rgba(217, 164, 65, .5); color: var(--icwps-navy); }
.icwps-notice__inner { max-width: var(--icwps-max); margin: 0 auto; padding: 14px 20px; font: 400 1.02rem/1.55 var(--icwps-sans); }
.icwps-notice__inner p { margin: 0; }
.icwps-notice a { color: var(--icwps-teal); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Ordinary block content on the full-width template (pages not built from icwps sections): a readable column. */
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) {
    padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 88px);
    color: #1f2d3d; font: 400 1.075rem/1.7 var(--icwps-sans);
}
.icwps-main > .wp-block-post-content > :not([class*="icwps-"]):not(.alignfull) {
    max-width: min(760px, calc(100% - 40px)); margin-left: auto !important; margin-right: auto !important; box-sizing: border-box;
}
.icwps-main > .wp-block-post-content > .alignwide:not([class*="icwps-"]) { max-width: min(1100px, calc(100% - 40px)); }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) :is(h2, h3, h4, h5, h6) {
    color: var(--icwps-navy); font-family: var(--icwps-serif); font-weight: 700; line-height: 1.25; margin: 2em auto .6em;
}
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) > :is(h2, h3, h4, h5, h6):first-child { margin-top: 0; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) :is(h2, h3) { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) :is(h4, h5, h6) { font-size: 1.3rem; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) p { margin: 0 auto 1.1em; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) a { color: var(--icwps-teal); }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) ul { padding-left: 1.4em; margin: 0 auto 1.1em; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) li { margin: .25em 0; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) .wp-block-image { margin: 1.8em auto; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) .wp-block-image img { border-radius: 8px; height: auto; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) .wp-block-table { margin: 0 auto 1.5em; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) .wp-block-table td { padding: .7em .9em; border: 1px solid #d7dee6; vertical-align: top; }
.icwps-main > .wp-block-post-content:not(:has(> [class*="icwps-"])) hr { border: 0; border-top: 1px solid #d7dee6; margin: 2em auto; }
