/* Shared public header. Keep its rules stronger than older page-specific headers. */
.vtl-app.vtl-wordpress-header, .vtl-app.vtl-wordpress-footer { min-height: 0; width: 100%; margin: 0; background: var(--vtl-panel); line-height: 1.7; }
.vtl-app .vtl-header.vtl-header-refined {
    --vtl-panel: #fff; --vtl-ink: #163955; --vtl-muted: #607483; --vtl-blue: #185d93;
    --vtl-gold: #866023; --vtl-border: #dfe7ed; --vtl-header-soft: #eef4f8;
    --vtl-header-action: #194971; --vtl-header-action-ink: #fff;
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
    gap: 24px; padding: 20px max(28px, calc((100vw - 1360px) / 2)); margin: 0;
    background: var(--vtl-panel); border-bottom: 1px solid var(--vtl-border); box-shadow: 0 3px 18px rgb(17 43 65 / 3%);
    font-family: var(--vtl-font-sans); line-height: 1.4;
}
.vtl-app[data-theme="dark"] .vtl-header.vtl-header-refined {
    --vtl-panel: #1d2d3e; --vtl-ink: #edf4fa; --vtl-muted: #b6c6d5; --vtl-blue: #9acef6;
    --vtl-gold: #e2bf80; --vtl-border: #3c5368; --vtl-header-soft: #263e53;
    --vtl-header-action: #b3dcfa; --vtl-header-action-ink: #18324a; box-shadow: none;
}
.vtl-app .vtl-header-refined .vtl-brand { gap: 12px; min-width: 0; justify-self: start; }
.vtl-app .vtl-header-refined .vtl-brand-symbol { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; background: transparent; border: 0; border-radius: 50%; box-shadow: none; }
.vtl-app .vtl-header-refined .vtl-brand-symbol img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.vtl-app .vtl-header-refined .vtl-brand-copy { min-width: 0; }
.vtl-app .vtl-header-refined .vtl-brand strong { font-family: inherit; font-style: normal; font-size: clamp(1.25rem, 1.45vw, 1.65rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.3; white-space: nowrap; }
.vtl-app .vtl-header-refined .vtl-brand small { font-size: .63rem; font-weight: 600; line-height: 1.4; letter-spacing: .16em; margin-top: 5px; color: var(--vtl-muted); }
.vtl-app .vtl-header-refined nav { display: flex; width: auto; order: initial; justify-content: center; flex-wrap: nowrap; margin: 0; padding: 5px; gap: 3px; border: 1px solid var(--vtl-border); border-radius: 14px; background: var(--vtl-header-soft); }
.vtl-app .vtl-header-refined nav a { padding: 9px 13px; color: var(--vtl-muted); font-size: .9375rem; line-height: 1.4; font-weight: 600; border: 0; border-radius: 9px; white-space: nowrap; transition: color .18s ease, background .18s ease; }
.vtl-app .vtl-header-refined nav a:hover { color: var(--vtl-ink); background: var(--vtl-panel); text-decoration: none; }
.vtl-app .vtl-header-refined nav .vtl-nav-active { color: var(--vtl-blue); padding: 9px 13px; border: 0; border-radius: 9px; background: var(--vtl-panel); box-shadow: 0 1px 5px rgb(17 43 65 / 7%); }
.vtl-app .vtl-header-refined .vtl-header-actions { display: flex; justify-self: end; align-items: center; gap: 9px; margin: 0; min-width: 0; }
.vtl-app .vtl-header-refined .vtl-site-language { display: flex; position: relative; min-width: 0; width: 160px; margin: 0; }
.vtl-app .vtl-header-refined .vtl-language-symbol { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--vtl-muted); pointer-events: none; }
.vtl-app .vtl-header-refined .vtl-site-language select { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 8px 23px 8px 36px; border: 1px solid var(--vtl-border); border-radius: 10px; color: var(--vtl-ink); background: var(--vtl-panel); font: inherit; font-size: .9375rem; line-height: 1.4; cursor: pointer; }
.vtl-app .vtl-header-refined .vtl-theme-toggle, .vtl-app .vtl-header-refined .vtl-nav-toggle { width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 10px; border: 1px solid var(--vtl-border); border-radius: 10px; color: var(--vtl-ink); background: var(--vtl-panel); align-items: center; justify-content: center; }
.vtl-app .vtl-header-refined .vtl-theme-toggle { display: inline-flex; }
.vtl-app .vtl-header-refined .vtl-nav-toggle { display: none; }
.vtl-app .vtl-header-refined .vtl-theme-toggle:hover, .vtl-app .vtl-header-refined .vtl-nav-toggle:hover { background: var(--vtl-header-soft); }
.vtl-app .vtl-header-refined .vtl-account-link { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 10px; background: var(--vtl-header-action); color: var(--vtl-header-action-ink); font-size: .9375rem; line-height: 1.4; font-weight: 650; white-space: nowrap; transition: filter .18s ease, box-shadow .18s ease; }
.vtl-app .vtl-header-refined .vtl-account-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.vtl-app .vtl-header-refined .vtl-account-link:hover { color: var(--vtl-header-action-ink); text-decoration: none; filter: brightness(1.08); box-shadow: 0 3px 10px rgb(18 57 84 / 14%); }
.vtl-app .vtl-header-refined .vtl-header-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vtl-app .vtl-header-refined :focus-visible { outline: 3px solid var(--vtl-blue); outline-offset: 3px; }
.vtl-app .vtl-footer { max-width: none; margin: 0; padding: 40px max(28px, calc((100vw - 1280px) / 2)); border: 0; background: #153955; color: #d6e4ee; }
.vtl-app .vtl-footer a { color: #f5f9fc; }
.vtl-app .vtl-footer p, .vtl-app .vtl-footer>span { color: #c1d3df; }
.wp-block-template-part:has(> .vtl-wordpress-header), .wp-block-template-part:has(> .vtl-wordpress-footer) { margin-top: 0; }
@media (max-width: 1200px) and (min-width: 781px) {
    .vtl-app .vtl-header.vtl-header-refined { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
    .vtl-app .vtl-header-refined nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
    .vtl-app .vtl-header-refined .vtl-brand strong { font-size: 1.5rem; }
}
@media (max-width: 780px) {
    .vtl-app .vtl-header.vtl-header-refined { display: flex; flex-wrap: wrap; gap: 14px; padding: 16px 20px; }
    .vtl-app .vtl-header-refined .vtl-brand { flex: 1 1 100%; }
    .vtl-app .vtl-header-refined .vtl-brand strong { font-size: 1.5rem; }
    .vtl-app .vtl-header-refined .vtl-header-actions { width: 100%; order: 2; gap: 9px; }
    .vtl-app .vtl-header-refined .vtl-site-language { flex: 1 1 0; width: auto; }
    .vtl-app .vtl-header-refined nav { width: 100%; order: 3; flex-wrap: wrap; justify-content: start; margin: 0; gap: 5px; }
    .vtl-app.vtl-js .vtl-header-refined nav { display: none; }
    .vtl-app.vtl-js .vtl-header-refined.vtl-nav-open nav { display: flex; }
    .vtl-app.vtl-js .vtl-header-refined .vtl-nav-toggle { display: inline-flex; }
    .vtl-app .vtl-footer { padding: 32px 24px; }
}
@media (max-width: 420px) {
    .vtl-app .vtl-header.vtl-header-refined { padding: 14px 16px; gap: 12px; }
    .vtl-app .vtl-header-refined .vtl-brand-symbol { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
    .vtl-app .vtl-header-refined .vtl-brand strong { font-size: 1.4rem; }
    .vtl-app .vtl-header-refined .vtl-header-actions { gap: 7px; }
    .vtl-app .vtl-header-refined .vtl-account-link { padding: 10px 11px; gap: 6px; font-size: .875rem; }
    .vtl-app .vtl-header-refined .vtl-account-link svg { display: none; }
    .vtl-app .vtl-header-refined .vtl-site-language select { font-size: .875rem; padding-left: 32px; padding-right: 18px; }
    .vtl-app .vtl-header-refined .vtl-language-symbol { left: 9px; width: 16px; }
}
@media (max-width: 360px) {
    .vtl-app .vtl-header-refined .vtl-language-symbol { display: none; }
    .vtl-app .vtl-header-refined .vtl-site-language select { padding-left: 9px; }
}
@media (prefers-reduced-motion: reduce) { .vtl-app .vtl-header-refined a { transition: none; } }
