/* Account 1 image-and-icon quality pass, 2026-11-18.
   Scope: all homepage components EXCEPT the approved header and hero slider.
   Maintains existing layout, art subjects, resource order and destinations. */
:root{--hk-quality-magenta:#ed008b;--hk-quality-blue:#124eff;--hk-quality-gold:#ffdc38}
.panel:not(.hero),.quick,.footer{ -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.eco-area{background-image:radial-gradient(ellipse at 50% 45%,rgba(255,220,56,.18),transparent 53%),linear-gradient(145deg,#fff 0%,#f4f7ff 55%,#fff7fd 100%);}
.eco-connectors{filter:drop-shadow(0 1px 1px rgba(89,58,9,.17));opacity:.95}
.eco-link{border-color:rgba(8,76,196,.27)!important;background:linear-gradient(145deg,#fff,#f5f8ff)!important;box-shadow:0 3px 0 #e2e9ff,0 8px 16px rgba(11,45,112,.12)!important;font-weight:900!important;letter-spacing:-.015em}
.eco-link svg{color:#0857da!important;stroke-width:1.65;filter:drop-shadow(0 1px rgba(255,255,255,.75))}
.eco-link:hover,.eco-link:focus-visible{border-color:#ffc933!important;box-shadow:0 2px 0 #ffe69c,0 6px 18px rgba(11,45,112,.19)!important}
.eco-center{background:radial-gradient(circle at 40% 30%,#fff 0%,#fff8dd 55%,#e7efff 100%)!important;border-color:#f3c737!important;box-shadow:0 4px 15px rgba(11,39,93,.18),inset 0 1px 0 #fff!important}
.eco-center strong{color:#0647b9!important;text-shadow:none!important;letter-spacing:-.025em}
.quick{background:linear-gradient(#f5008a 0,#a7005b 43px,#fff 43px)!important;box-shadow:0 7px 22px rgba(12,39,92,.12)!important}
.quick-head{color:#fff!important;text-shadow:0 1px 1px #53002b}
.resource{border-color:#f4c629!important;background:#fff!important;box-shadow:0 8px 22px rgba(9,35,93,.14),inset 0 1px 0 #fff!important;isolation:isolate;text-decoration:none}
.resource-icon-stage{position:relative!important;overflow:hidden!important;background:radial-gradient(circle at 32% 24%,#fff 0%,#f5faff 45%,#dae7ff 100%)!important;display:grid!important;place-items:center!important}
.resource-icon-stage:before{content:"";position:absolute;inset:9% 17%;border-radius:50%;background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(255,226,109,.38));border:1px solid rgba(213,156,0,.22);box-shadow:0 12px 23px rgba(15,49,122,.10)}
.resource-vector-icon{position:relative!important;z-index:1!important;width:min(72px,60%)!important;height:min(72px,85%)!important;max-width:72px!important;max-height:72px!important;stroke:#004cc8!important;stroke-width:1.5!important;fill:none!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 5px 3px rgba(0,42,117,.14))}
.resource:nth-child(3n+2) .resource-vector-icon{stroke:#cf0074!important}
.resource:nth-child(3n+3) .resource-vector-icon{stroke:#b98200!important}
.resource strong{color:#06327c!important;text-shadow:0 1px 0 #fff!important;font-weight:950!important;letter-spacing:-.025em;overflow-wrap:anywhere}
.resource span{color:#173c7c!important;font-weight:800!important}
.resource:hover,.resource:focus-visible{box-shadow:0 10px 24px rgba(8,49,123,.23)!important;border-color:#e6a800!important}
.resource:focus-visible{outline:3px solid #0059e7;outline-offset:3px}
.resource-icon-stage img{object-fit:contain!important}
.social-body .community-emblem img,.welcome>img,.mandate>img,.action-card img{image-rendering:auto;backface-visibility:hidden}
.social-body .community-emblem{background:radial-gradient(circle,#fff 0%,#fff5d6 60%,#e9f0ff 100%)!important;border:1px solid #f4d25a;box-shadow:inset 0 0 0 4px #fff,0 5px 15px rgba(10,43,107,.12)}
.mini-features svg{stroke-width:1.8;filter:drop-shadow(0 2px 2px rgba(8,57,120,.12))}
.footer{background:linear-gradient(140deg,#f50091 0%,#a7005c 56%,#810045 100%)!important;box-shadow:0 -5px 20px rgba(34,19,56,.1)}
.footer .brand{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}
.footer .brand img{flex:0 0 auto;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(25,4,38,.2))}
.footer .brand span{display:flex;flex-direction:column;justify-content:center;min-width:0;max-width:100%;gap:3px}
.footer .brand strong{font-family:Arial,Helvetica,sans-serif!important;color:#fff!important;text-shadow:none!important;font-size:clamp(16px,2.15vw,25px)!important;font-weight:900!important;letter-spacing:.015em!important;line-height:1.1!important;overflow-wrap:normal}
.footer .brand small{color:#ffe965!important;line-height:1.25!important;letter-spacing:.06em!important;font-size:clamp(9px,1.05vw,12px)!important;font-weight:900!important;text-shadow:none!important}
.footer h3{color:#ffe86b!important;text-shadow:none!important;letter-spacing:.01em}
.footer a:not(.brand):hover,.footer a:not(.brand):focus-visible{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.footer .social-links a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;min-width:30px;box-shadow:0 2px 6px rgba(20,7,57,.18)}
.footer .social-links svg{display:block;width:18px;height:18px}
@media(max-width:640px){.resource-vector-icon{width:min(54px,58%)!important;height:min(54px,80%)!important}.footer .brand{align-items:flex-start!important}.footer .brand strong{font-size:clamp(14px,3.3vw,19px)!important}.footer .brand small{font-size:clamp(8px,2.3vw,11px)!important;letter-spacing:0!important}.footer .brand img{max-width:58px!important}.eco-link{box-shadow:0 2px 0 #e2e9ff,0 4px 8px rgba(11,45,112,.1)!important}}
@media(prefers-reduced-motion:reduce){.resource,.eco-link{transition:none!important}}

/* Premium nations ribbon — original country flags and their order are preserved. */
.top.hk-nations-ribbon{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:clamp(10px,2vw,25px)!important;min-height:49px!important;height:auto!important;padding:5px clamp(10px,2vw,27px)!important;background:linear-gradient(115deg,#d90082 0%,#f90091 26%,#ad005e 68%,#72003e 100%)!important;border-bottom:3px solid #ffdc38!important;box-shadow:inset 0 1px rgba(255,255,255,.25),0 3px 9px rgba(66,0,50,.22)!important}
.hk-nations-ribbon .hk-nations-button{display:inline-flex!important;min-height:44px!important;align-items:center!important;gap:11px!important;flex:0 0 auto!important;font-family:Arial,Helvetica,sans-serif!important;font-size:clamp(13px,1.55vw,21px)!important;font-weight:950!important;font-style:normal!important;letter-spacing:.035em!important;white-space:nowrap!important;color:#fff!important;text-shadow:0 2px 2px rgba(65,0,41,.33)!important}
.hk-nations-ribbon .hk-nations-button:focus-visible{outline:3px solid #fff4a1;outline-offset:2px;border-radius:8px}
.hk-nations-premium-mark{width:36px!important;height:36px!important;flex-shrink:0!important;overflow:visible!important;filter:drop-shadow(0 2px 2px rgba(23,0,30,.36))}
.hk-nations-ribbon .flags{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:clamp(4px,.65vw,10px)!important;flex-wrap:nowrap!important;min-width:0!important}
.hk-nations-ribbon .flag{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;padding:2px!important;border:1px solid rgba(255,234,139,.53)!important;background:rgba(255,255,255,.15)!important;border-radius:5px!important;box-shadow:0 2px 5px rgba(55,0,43,.24)!important}
.hk-nations-ribbon .flag img{display:block!important;width:clamp(23px,2.65vw,36px)!important;height:clamp(15px,1.7vw,23px)!important;object-fit:cover!important;border:0!important;border-radius:2px!important}
@media(max-width:900px){.top.hk-nations-ribbon{flex-wrap:wrap!important;justify-content:center!important;padding:7px 9px!important;gap:6px!important}.hk-nations-ribbon .flags{justify-content:center!important;max-width:100%!important;flex-wrap:wrap!important;gap:5px!important}.hk-nations-ribbon .hk-nations-button{font-size:clamp(13px,3.6vw,19px)!important}.hk-nations-premium-mark{width:30px!important;height:30px!important}}
@media(max-width:420px){.hk-nations-ribbon .flag img{width:25px!important;height:16px!important}.hk-nations-ribbon .hk-nations-button{letter-spacing:0!important}}
