/* Scoped to the KM header only; based on the actual Prototype v1 palette and structure. */
.km-header-region{--km-navy:#142B47;--km-red:#B42332;--km-gold:#C79A45;--km-dark-gold:#8B641B;--km-ivory:#F8F6F1;--km-ink:#1c2a39;--km-line:#deded9;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;position:sticky;top:0;z-index:100;color:var(--km-ink)}
.km-header-region *{box-sizing:border-box}
.km-header-region a{text-decoration:none}
.km-topline{background:var(--km-red);color:white;text-align:center;font-size:11px;font-weight:650;letter-spacing:.065em;padding:7px 16px;line-height:1.5}
.km-site-header{background:rgba(255,254,253,.97);border-bottom:1px solid #e4e3df;position:relative;z-index:100;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
body.admin-bar .km-header-region{top:32px}
.km-header-inner{width:min(1180px,calc(100% - 40px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:80px}
.km-logo{display:flex;align-items:center;gap:12px;flex-shrink:0;color:var(--km-navy);white-space:nowrap;min-width:0}
.km-logo:hover{text-decoration:none}
.km-monogram{width:46px;height:46px;flex-shrink:0;background:var(--km-gold);border:2px solid var(--km-navy);color:var(--km-navy);display:grid;place-items:center;font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:bold}
.km-wordmark strong{display:block;font-size:16px;letter-spacing:.035em;line-height:1.35;font-weight:800}
.km-wordmark small{display:block;color:var(--km-dark-gold);font-weight:750;font-size:9.5px;letter-spacing:.085em;text-transform:uppercase;line-height:1.5}
.km-navigation{display:flex;gap:clamp(9px,1.3vw,20px);align-items:center;justify-content:flex-end;flex-wrap:nowrap}
.km-navigation a,.km-nav-pending{font-size:12px;font-weight:750;white-space:nowrap;line-height:1.4;border-bottom:2px solid transparent;padding:12px 0;color:var(--km-navy)}
.km-navigation a:hover,.km-navigation a.is-active{border-bottom-color:var(--km-red);color:var(--km-red);text-decoration:none}
.km-nav-pending{color:#7c828a;opacity:.65;cursor:default}
.km-nav-toggle{display:none;background:#fff;border:1px solid var(--km-line);border-radius:8px;width:43px;height:41px;padding:10px;cursor:pointer}
.km-nav-icon{display:grid;gap:4px}.km-nav-icon span{display:block;height:2px;background:var(--km-navy);border-radius:2px}
/* National-colour footer: three equal-width vertical fields, left green / centre white / right blue.
   The centre has a dedicated, accessible translation-plugin mount. */
.km-brandbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);min-height:22px;border-top:1px solid #d7d7d7;border-bottom:1px solid #d7d7d7;width:100%;align-items:stretch}
.km-flag-green{background:#1EB53A;min-width:0}
.km-flag-white{background:#fff;min-width:0;display:flex;justify-content:center;align-items:center;padding:2px 4px;border-inline:1px solid #e5e5e5}
.km-flag-blue{background:#0072C6;min-width:0}
.km-translation-slot{color:var(--km-navy);width:100%;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;line-height:1.2}
.km-translation-globe{flex:none;color:var(--km-dark-gold)}
.km-translate-placeholder{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;min-width:0;text-align:center}
.km-translate-placeholder-text{color:var(--km-navy);font-weight:750;white-space:nowrap}
.km-translate-locales{font-size:10px;color:#646d79;white-space:nowrap}
.km-translate-widget{min-width:0;max-width:100%;display:flex;align-items:center;justify-content:center}
.km-translate-widget select{max-width:100%;min-width:0;font-size:12px;padding:3px;border-radius:4px;border:1px solid #cbd1d7;background:#fff;color:var(--km-navy)}
.km-translate-widget img{max-height:18px;width:auto}
.km-translate-widget a:focus-visible,.km-translate-widget select:focus-visible{outline:2px solid var(--km-dark-gold);outline-offset:2px}
.km-logo:focus-visible,.km-navigation a:focus-visible,.km-nav-toggle:focus-visible{outline:3px solid var(--km-gold);outline-offset:4px}
@media(max-width:1140px){.km-header-inner{min-height:70px}.km-nav-toggle{display:block;margin-left:auto;flex-shrink:0}.km-navigation{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:18px max(20px,calc((100% - 1180px)/2));box-shadow:0 12px 22px #0002;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid #e4e3df;max-height:min(72vh,540px);overflow-y:auto}.km-navigation.is-open{display:flex}.km-navigation a,.km-nav-pending{display:block;padding:12px 8px;border-bottom:1px solid #eceae6;font-size:14px}}
@media(max-width:782px){body.admin-bar .km-header-region{top:46px}}
@media(max-width:480px){.km-header-inner{width:calc(100% - 28px)}.km-wordmark strong{font-size:13px}.km-wordmark small{font-size:8px;letter-spacing:.02em}.km-monogram{width:42px;height:42px}.km-logo{gap:9px}.km-topline{font-size:9px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.km-header-region *{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:600px){.km-brandbar{min-height:20px}.km-translation-slot{gap:3px}.km-translation-globe{width:15px;height:15px}.km-translate-locales{display:none}.km-flag-white{padding:1px 3px}}

/* v0.1.4: compact national-colour strip (half the previous minimum height). */
.km-brandbar{min-height:22px}
.km-translation-globe{width:16px;height:16px}
.km-translate-widget select{padding:1px 3px;font-size:11px}
@media(max-width:600px){.km-brandbar{min-height:20px}.km-translation-globe{width:15px;height:15px}}

/* v0.1.6 — red 11px candidacy description under the identity tagline. */
.km-header-region{--km-ivory:#F7F2E5}
.km-site-header,.km-header-inner{background-color:var(--km-ivory)}
.km-wordmark{min-width:0}
.km-wordmark .km-candidate-label{display:block;font-size:11px;line-height:1.5;font-weight:750;letter-spacing:.015em;color:#B42332;text-transform:none;white-space:normal;max-width:300px;margin-top:2px}
@media(max-width:480px){.km-wordmark .km-candidate-label{font-size:11px;max-width:225px;line-height:1.35}.km-header-inner{gap:8px}}

/* v0.1.7 — 25% wider candidate identity line: 300px -> 375px.
   Keep the full red designation on a single line where layout permits. */
@media(min-width:1141px){
  .km-logo{width:auto;max-width:none}
  .km-wordmark{width:375px;max-width:375px;flex:0 0 375px}
  .km-wordmark .km-candidate-label{max-width:none;white-space:nowrap}
}
/* Tablet: navigation collapses, enabling a wider identity block. */
@media(min-width:701px) and (max-width:1140px){
  .km-wordmark{width:375px;max-width:375px}
  .km-wordmark .km-candidate-label{max-width:none;white-space:nowrap}
}
/* Mobile: preserve legibility without horizontal page overflow. */
@media(max-width:700px){
  .km-logo{flex:1 1 auto;min-width:0;white-space:normal}
  .km-wordmark{flex:1 1 auto;min-width:0;max-width:100%}
  .km-wordmark .km-candidate-label{max-width:100%;white-space:normal;overflow-wrap:break-word}
}

/* v0.1.8: Use the translation plugin's own selector; no constructed globe. */
.km-translation-globe{display:none!important}

/* v0.2.0: Distinguish GTranslate's icon artwork from its flag images.
   Based on the v0.1.9 9.9px icon limit:
   - translation globe / SVG: 9.9 * 0.50 = 4.95px
   - flag image: 9.9 * 1.45 = 14.355px
   Avoid changing the clickable control's overall dimensions or language text.
   GTranslate styles vary; these selectors cover SVG globe symbols and IMG flags. */
.km-header-region .km-translate-widget svg,
.km-header-region .km-translate-widget .gt-globe,
.km-header-region .km-translate-widget .gt-globe-icon {
    width: 4.95px !important;
    height: 4.95px !important;
    max-width: 4.95px !important;
    max-height: 4.95px !important;
    flex-shrink: 0;
    vertical-align: middle;
}
.km-header-region .km-translate-widget img,
.km-header-region .km-translate-widget .gt-selected img,
.km-header-region .km-translate-widget .gt-lang-code img {
    width: auto !important;
    height: auto !important;
    max-width: 14.355px !important;
    max-height: 14.355px !important;
    object-fit: contain;
    vertical-align: middle;
}
/* Preserve the separate, intentionally hidden prototype globe. */
.km-header-region .km-translation-globe { display: none !important; }

/* v0.2.1: further 50% reduction of the translation globe only (4.95px -> 2.475px).
   The language flags remain at the v0.2.0 max-height 14.355px. */
.km-header-region .km-translate-widget svg,
.km-header-region .km-translate-widget .gt-globe,
.km-header-region .km-translate-widget .gt-globe-icon {
    width: 2.475px !important;
    height: 2.475px !important;
    max-width: 2.475px !important;
    max-height: 2.475px !important;
}
