/* Shared GSC footer: static brand gradients and a readable contact layout. */
.gsc-footer {
    --gsc-footer-curve-height: 56px;
    position: relative;
    padding-block: calc(var(--gsc-footer-curve-height) + clamp(1rem, 2vw, 2rem)) 1.5rem;
    border-top: 0;
    background: linear-gradient(#fff, #eef4fc 140px, #eef4fc 70%, #f5f8fc);
    color: var(--wp--preset--color--contrast, #14253d);
    font-size: 1rem;
    line-height: 1.8;
}
.gsc-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--gsc-footer-curve-height);
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='fade' x2='0' y2='1'%3E%3Cstop stop-color='%23dcebf7'/%3E%3Cstop offset='1' stop-color='%23eef4fc' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='front' x2='0' y2='1'%3E%3Cstop stop-color='%235577a0' stop-opacity='.16'/%3E%3Cstop offset='1' stop-color='%235577a0' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23fade)' d='M0 12C240 0 400 48 720 20S1200 8 1440 24V56H0Z'/%3E%3Cpath fill='url(%23front)' d='M0 32C280 56 440 4 760 34S1200 48 1440 30V56H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.gsc-footer .gsc-footer-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 4rem); margin-block: 0 1.5rem; }
.gsc-footer .gsc-footer-main > .wp-block-column { min-width: 0; }
.gsc-footer .gsc-footer-company > p { margin-block: .85rem; }
.gsc-footer .gsc-brand { margin-top: 1rem; font-size: 1.15rem; color: var(--wp--preset--color--primary, #002060); }
.gsc-footer .gsc-footer-info { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .65rem; align-items: start; }
.gsc-footer .gsc-footer-info > svg { margin-top: .3rem; fill: none; stroke: var(--wp--preset--color--secondary, #0066cc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gsc-footer .gsc-footer-contact { display: grid; grid-template-columns: minmax(0, 1fr) 218px; grid-template-rows: auto auto 1fr; gap: .75rem 1.5rem; align-content: start; }
.gsc-footer .gsc-footer-contact-title { grid-column: 1; margin: 0; color: var(--wp--preset--color--primary, #002060); font-size: 1.15rem; }
.gsc-footer .gsc-line-qr { grid-column: 2; grid-row: 1 / 4; width: 100%; margin: 0; padding: .85rem; border: 1px solid #ccd9ed; border-radius: 1rem; box-shadow: 0 8px 24px #00206008; }
.gsc-footer .gsc-line-qr img { width: 150px; }
.gsc-footer .gsc-line-qr > a:first-child { display: block; }
.gsc-footer .gsc-line-qr p { font-size: .9rem; }
.gsc-footer .gsc-footer-phones { grid-column: 1; margin: 0; }
.gsc-footer .gsc-footer-contact > .wp-block-buttons { grid-column: 1; align-content: start; gap: .65rem; margin: 0; }
.gsc-footer .gsc-footer-contact .wp-block-button__link { font-size: .95rem; padding: .6rem .85rem; border-radius: .6rem; }
.gsc-footer a:not(.gsc-social-badge):not(.wp-element-button) { color: var(--wp--preset--color--primary, #002060); text-underline-offset: .2em; }
.gsc-footer a.gsc-social-badge { width: 44px; height: 44px; flex-basis: 44px; }
.gsc-footer a:focus-visible { outline: 3px solid var(--wp--preset--color--secondary, #0066cc); outline-offset: 3px; }
.gsc-footer .gsc-footer-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1rem; border-top: 1px solid #d4dfec; }
.gsc-footer .gsc-footer-social > * { margin: 0; }
.gsc-footer .gsc-footer-social .gsc-social-links { margin: 0; }
.gsc-footer .gsc-copyright { margin-top: .75rem; padding-top: 1rem; color: #43536b; font-size: .85rem; }
.gsc-footer .gsc-footer-office-label, .gsc-footer .gsc-footer-phones a[href^="tel:"], .gsc-footer .gsc-developer-credit, .gsc-footer .gsc-website-version { white-space: nowrap; overflow-wrap: normal; }
.gsc-footer .gsc-copyright { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; }
.gsc-footer .gsc-website-version { font-size: .8rem; color: #43536b; }
@media (max-width: 1000px) {
    .gsc-footer .gsc-footer-main { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .gsc-footer .gsc-footer-company { max-width: 38rem; }
}
@media (max-width: 360px) {
    .gsc-footer .gsc-footer-social .gsc-social-links { display: grid; grid-template-columns: repeat(3, 44px); gap: .75rem; }
}
@media (max-width: 600px) {
    .gsc-footer { padding-top: 1.6rem; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    /* Reserve a clear end-of-page lane for either existing floating state. */
    body:has(.gsc-floating-contact[data-collapsed="false"]) .gsc-footer { padding-bottom: calc(320px + env(safe-area-inset-bottom)); }
    .gsc-footer .gsc-footer-main { gap: 1.4rem; margin-bottom: 1rem; }
    .gsc-footer .gsc-footer-company > p { margin-block: .65rem; }
    .gsc-footer .gsc-footer-contact { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
    .gsc-footer .gsc-line-qr { width: 218px; align-self: center; }
    .gsc-footer .gsc-footer-contact > .wp-block-buttons { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
    .gsc-footer .gsc-footer-contact .wp-block-button, .gsc-footer .gsc-footer-contact .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
    .gsc-footer .gsc-footer-social { justify-content: center; text-align: center; padding-block: .75rem; }
    .gsc-footer .gsc-staff-login-link { text-align: center; }
    .gsc-footer .gsc-copyright { margin-top: .5rem; padding-top: .75rem; gap: 0 .45rem; line-height: 1.65; }
    .gsc-footer .gsc-copyright-rights { flex-basis: 100%; }
    .gsc-footer .gsc-copyright-divider { display: none; }
}

/* Existing team photograph fills the quiet centre of the footer. */
.gsc-footer .gsc-footer-main{grid-template-columns:minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.4fr);gap:1.5rem}
.gsc-footer .gsc-footer-team{align-self:center}
.gsc-footer .gsc-footer-team-photo{margin:0;padding:.5rem;border:1px solid #ccd9ed;border-radius:1.25rem;background:#ffffff80;box-sizing:border-box}
.gsc-footer-team-photo img{display:block;width:100%;height:auto;border-radius:0;aspect-ratio:auto}
.gsc-footer .gsc-footer-dbd{font-size:.875rem;color:#43536b;line-height:1.7}
.gsc-footer-dbd span{white-space:nowrap}
.gsc-footer .gsc-footer-contact{grid-template-columns:minmax(0,1fr) 218px;column-gap:1rem}
.gsc-footer .gsc-line-qr{box-sizing:border-box}
.gsc-footer .gsc-line-qr img{max-width:100%;height:auto;margin-inline:auto}
@media(max-width:1199px){.gsc-footer .gsc-footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.gsc-footer .gsc-footer-contact{grid-column:1/-1;grid-template-columns:minmax(0,1fr) 218px}.gsc-footer .gsc-footer-company{max-width:none}}
@media(max-width:600px){.gsc-footer .gsc-footer-main{grid-template-columns:minmax(0,1fr);gap:1.25rem}.gsc-footer .gsc-footer-team{width:100%;max-width:400px;justify-self:center}.gsc-footer .gsc-footer-contact{grid-column:auto}}

/* Review: QR contents stay centred in one card without grid stretching. */
.gsc-footer .gsc-line-qr{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;align-self:start;gap:12px;width:218px;max-width:100%;height:auto;min-width:0;padding:16px;text-align:center}
.gsc-footer .gsc-line-qr > a:first-child{display:block;width:150px;max-width:100%;min-height:0;padding:0;line-height:0}
.gsc-footer .gsc-line-qr img{display:block;width:100%;max-width:150px;height:auto;margin:0}
.gsc-footer .gsc-line-qr p{width:100%;margin:0;font-size:.875rem;line-height:1.6;overflow-wrap:anywhere}
.gsc-footer .gsc-line-qr > .wp-element-button{box-sizing:border-box;max-width:100%;min-height:44px;margin:0;padding:10px 16px;line-height:1.5}
.gsc-footer .gsc-footer-team-photo{padding:10px;border:1px solid #c8cdd4;border-radius:16px;background:#ffffffb3;box-shadow:0 4px 14px #14253d08;overflow:hidden}
.gsc-footer-team-photo img{object-fit:contain;border-radius:0}
.gsc-footer .gsc-footer-team-photo figcaption{margin:8px 0 0;color:#43536b;text-align:center;font-size:.8125rem;line-height:1.6}

@media(max-width:600px){.gsc-footer .gsc-line-qr{align-self:center}}

/* Keep the original credit together, with the single policy link at the far edge. */
.gsc-footer .gsc-footer-bottom{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.75rem 1.5rem;margin-top:.75rem;padding-top:1rem;border-top:1px solid #d4dfec}
.gsc-footer .gsc-footer-bottom > p{margin:0;padding:0;font-size:.85rem}
.gsc-footer .gsc-footer-bottom > .gsc-copyright{flex:1 1 auto;border-top:0}
.gsc-footer .gsc-footer-privacy{flex:0 1 auto}
.gsc-footer .gsc-footer-privacy a{display:inline-block;text-decoration:none}
.gsc-footer .gsc-footer-privacy a:hover{text-decoration:underline}
@media(max-width:1199px){.gsc-footer{--gsc-footer-curve-height:40px}}
@media(max-width:600px){
 .gsc-footer{--gsc-footer-curve-height:30px;padding-top:calc(var(--gsc-footer-curve-height) + 1rem)}
 .gsc-footer .gsc-footer-bottom{gap:.65rem;margin-top:.5rem;padding-top:.75rem}
 .gsc-footer .gsc-footer-privacy{flex-basis:100%}
}
