/* IONA V6.7: footer palette belongs to Theme & Fonts; no header/page restyling. */
footer.footer{
  background:var(--footer-bg,#0f2437);
  color:var(--footer-text,#dce7ef);
  transition:background-color .22s ease,color .22s ease;
}
footer.footer .footer-grid strong,footer.footer .logo{color:var(--footer-text,#dce7ef)}
footer.footer a{color:var(--footer-link,#dce7ef)}
footer.footer a:not(.logo){text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
footer.footer a:not(.logo):hover{text-decoration-thickness:2px}
footer.footer small,footer.footer .logo small{color:var(--footer-text,#dce7ef)}
footer.footer .footer-bottom{border-top-color:var(--footer-divider,rgba(255,255,255,.22))}
footer.footer a:focus-visible{outline:3px solid var(--footer-focus,#f2c972);outline-offset:4px;border-radius:2px}
/* Keep transparent/footer logos on the real underlying footer colour. */
footer.footer img,footer.footer .brand-logo-img{background:transparent!important;filter:none}

/* Admin: deliberately scoped to Footer Appearance, preserving the V6.6 studio. */
.v67-footer-editor{margin-top:22px;border:1px solid #d5e3ec;border-radius:14px;padding:20px;background:#f9fbfd}
.v67-footer-heading{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:15px}
.v67-footer-heading h3{margin:3px 0 6px}
.v67-footer-heading p{margin:0;max-width:720px}
.v67-footer-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 16px;padding:0;border:0;min-width:0}
.v67-footer-modes legend{font-weight:800;margin-bottom:10px;color:#17324d}
.v67-footer-mode{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:9px;cursor:pointer;border:1px solid #ccdae4;border-radius:10px;padding:12px 10px;background:white;margin:0!important;min-width:0;line-height:1.35;font-weight:500}
.v67-footer-mode.is-selected{border-color:#1855a5;background:#eaf2fc;box-shadow:0 0 0 1px #1855a5 inset}
.v67-footer-mode input{width:auto!important;min-width:16px;flex:none;margin:3px 0 0!important;accent-color:#1855a5}
.v67-footer-mode span{min-width:0;display:grid;gap:3px}
.v67-footer-mode strong{font-size:.91rem;color:#17324d}
.v67-footer-mode small{font-size:.76rem;color:#50667a;line-height:1.45}
.v67-footer-custom{padding:15px 16px 5px;border:1px solid #dae5ed;background:white;border-radius:12px;margin-bottom:15px}
.v67-footer-custom[hidden]{display:none!important}
.v67-footer-custom .switch-line{margin-bottom:12px;font-weight:700}
.v67-footer-colours{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.v67-footer-colours label{font-size:.83rem;white-space:normal}
.v67-footer-colours input[type="color"]{width:100%;max-width:100%;height:42px;padding:3px;cursor:pointer}
.v67-footer-colours input:disabled{cursor:not-allowed;opacity:.42}
.v67-footer-preview-wrap{margin-top:16px}
.v67-footer-preview-label{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:9px;font-size:.91rem}
.v67-footer-preview-label span{font-size:.8rem;color:#52697e}
.v67-footer-preview{background:var(--footer-bg,#123a70);color:var(--footer-text,#fff);border-radius:12px;padding:22px 24px;transition:background-color .2s ease,color .2s ease}
.v67-footer-preview-cols{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.v67-footer-preview p{font-size:.91rem;margin:7px 0;color:inherit}
.v67-footer-preview .v67-footer-sample-logo{font-size:1.05rem;letter-spacing:.01em;color:inherit}
.v67-footer-preview-cols>div:last-child{display:grid;gap:6px;align-content:start}
.v67-footer-preview a{color:var(--footer-link,#f2c972);width:fit-content;text-decoration:underline;text-underline-offset:3px}
.v67-footer-preview-divider{height:1px;background:var(--footer-divider,#456282);margin:17px 0 11px}
.v67-footer-preview small{color:inherit;font-size:.79rem}
.v67-footer-contrast-status{margin-top:10px;font-size:.82rem;color:#145b42;font-weight:650;line-height:1.4}
.v67-footer-contrast-status.is-warning{color:#9c2e18;border-left:3px solid #c33c2d;background:#fff1ec;padding:9px}
.v67-footer-editor :focus-visible{outline:3px solid #1458a8;outline-offset:3px}
@media(max-width:1080px){.v67-footer-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.v67-footer-colours{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.v67-footer-editor{padding:14px}.v67-footer-heading{flex-direction:column}.v67-footer-modes{grid-template-columns:1fr}.v67-footer-colours{grid-template-columns:1fr 1fr}.v67-footer-preview-cols{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){footer.footer,.v67-footer-preview{transition:none}}

.v67-footer-colour-field{display:grid;gap:5px}
.v67-footer-colour-field>label{font-weight:700;font-size:.82rem;color:#263f56}
.v67-footer-colour-pair{display:grid;grid-template-columns:minmax(42px,60px) minmax(0,1fr);gap:8px;align-items:center}
.v67-footer-colour-pair input[type="color"]{height:43px;width:100%;min-width:0}
.v67-footer-colour-pair input[type="text"]{width:100%;min-width:0;padding:9px 7px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.86rem}
.v67-footer-colour-pair input[aria-invalid="true"]{border:2px solid #bc382a;background:#fff1ec}
.v67-footer-colour-pair input:disabled{cursor:not-allowed;opacity:.42}

.v67-footer-preview-brand img{display:block;max-width:min(280px,100%);height:auto;max-height:65px;object-fit:contain;object-position:left center;background:transparent}
.v67-footer-preview-brand img[hidden],.v67-footer-preview-brand strong[hidden]{display:none!important}
