/* UI/UX test fixes (2026-11-15). Loaded after the page's main stylesheet.
   Remove this file and its <link> tags to return to the live design. */
:root{--orange-text:#c2410c}

/* 1. First screen shows at once: no fade-in on the hero (button, photo, text) */
.ucmas-motion main>section:first-of-type [data-motion],
.ucmas-motion main>section:first-of-type [data-motion].motion-initial{opacity:1!important;translate:none!important;animation:none!important}
/* The opening sequence keeps its small slide, but nothing starts invisible
   (same keyframe names redefined later = these win) */
@keyframes opening-copy{from{opacity:1;transform:translate3d(0,10px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes opening-photo{from{opacity:1;transform:translate3d(0,12px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes opening-header{from{opacity:1;transform:none}to{opacity:1;transform:none}}
@keyframes journal-photo-in{from{opacity:1;transform:translate3d(0,12px,0) rotate(1deg)}to{opacity:1;transform:translate3d(0,0,0) rotate(0)}}

/* 2. Readable text: 16px body, nothing parents need to read below 13px */
body{font-size:16px}
.illustrated-benefit p,.home-reviews article p,.visit-mini p,.visit-mini address,.tick-list li,.about-copy p{font-size:15px!important}
.trust-fact strong{font-size:15px!important}
.trust-fact div span{font-size:13px!important}
.hero-facts span,.hero-copy .hero-note,.eyebrow,.small-note,.footer-bottom span{font-size:13px!important}
.trial-mini-steps strong{font-size:15px!important}
.trial-mini-steps small{font-size:13px!important}
.text-link,.button{font-size:15px!important}
.scrapbook-caption{font-size:13px!important}
.print-label,.classroom-print figcaption span,.friendship-print figcaption,.journal-photo-tab,.growth-star-sticker span,.growth-star-sticker strong,.about-photo .experience,.encouragement-sticker span,.trial-time-sticker span,.trial-photo-label,.gallery-card small,span>small{font-size:12px!important}
.footer-social-label{font-size:14px!important}
@media (min-width:981px){
 .header nav>a{font-size:13px!important}
 .header nav .languages a{font-size:12px!important}
}

/* 3. Bigger tap areas for text links (the look stays the same) */
.text-link{position:relative}
.text-link::before{content:'';position:absolute;inset:-9px -6px}
.footer-bottom a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:14px!important}
.footer-bottom .languages a{min-width:44px}
.footer-bottom a[href^="tel:"]{font-weight:700;color:var(--purple)}

/* 4. Contrast: orange menu text 3.1:1 -> 5.2:1 (desktop menu only; the mobile menu already uses purple) */
@media (min-width:981px){
 .header nav a:hover,.header nav a[aria-current]{color:var(--orange-text)}
}

/* 5. No forced line break in the hero text below 1200px (it left one word alone on a line) */
@media (max-width:1199px){.desktop-break{display:none}}

/* 6. Keep visitors on the abacus pages: Art Classes moves out of the desktop menu (still in the footer) */
@media (min-width:981px){.header nav .art-nav:not([aria-current]){display:none}}

/* 7. Google rating badge (new) */
.rating-chip{display:inline-flex;align-items:center;gap:6px;background:#fff7dc!important;border-color:#f1d27a!important}
.rating-chip b{color:#b7791f;letter-spacing:1px}
.rating-badge{display:inline-flex;align-items:center;gap:10px;margin-top:12px;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid #efe7d4;font-size:15px;font-weight:700;color:var(--ink)}
.rating-badge .stars-gold{color:#e0a100;letter-spacing:2px;font-size:16px}
.rating-badge small{font-weight:500;color:var(--muted);font-size:13px}

/* 8. Mobile quick links under the header (phones and tablets only) */
.quick-links{display:none}
@media (max-width:980px){
 .quick-links{display:block;position:relative;background:#fffdf3;border-bottom:1px solid #f1ede6}
 .quick-links-row{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:10px 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .quick-links-row::-webkit-scrollbar{display:none}
 .quick-links-label{flex-shrink:0;font-size:13px;font-weight:700;color:var(--muted);margin-right:2px}
 .quick-links a{flex-shrink:0;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;border:1px solid #e6dfcc;color:var(--purple);font-size:14px;font-weight:700;white-space:nowrap;text-decoration:none}
 .quick-links a[aria-current="page"]{background:var(--purple);border-color:var(--purple);color:#fff}
 .quick-links:after{content:'';position:absolute;top:0;right:0;bottom:0;width:36px;background:linear-gradient(90deg,#fffdf300,#fffdf3);pointer-events:none}
}

/* 9. Menu hint: apricot glow twice + a small note, once the visitor scrolls to the middle of the page */
@keyframes menu-hint-glow{
 0%,50%,100%{background:#fff;border-color:#e8e4d8;box-shadow:0 0 0 0 #ffc95300}
 20%,70%{background:#ffe29a;border-color:#f2b33d;box-shadow:0 0 0 7px #ffc95359}
}
@keyframes menu-hint-note{0%{opacity:0;translate:0 -4px}10%,85%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -4px}}
.header .menu-toggle.menu-hint{animation:menu-hint-glow 2.4s ease-in-out 1}
.menu-hint-note{position:absolute;top:calc(100% + 12px);right:0;z-index:40;padding:8px 12px;border-radius:12px;background:#ffe29a;border:1px solid #f2b33d;color:var(--ink);font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;box-shadow:0 8px 18px #a8740f26;pointer-events:none;animation:menu-hint-note 4.2s ease both}
.menu-hint-note:before{content:'';position:absolute;top:-7px;right:22px;width:12px;height:12px;background:#ffe29a;border-left:1px solid #f2b33d;border-top:1px solid #f2b33d;rotate:45deg}
@media (prefers-reduced-motion:reduce){.header .menu-toggle.menu-hint,.menu-hint-note{animation:none}}
@media (max-width:720px){
 .rating-badge{flex-wrap:wrap;row-gap:0;border-radius:16px}
 .rating-badge small{flex-basis:100%}
}

/* Art destination only, in every locale's six-card footer grid.
   Paint dots are CSS backgrounds: decorative, absent from the accessibility
   tree, and confined to the top padding so white labels stay on solid purple. */
body .footer nav a:is([href="/art/"],[href="/zh/art/"],[href="/ms/art/"]){
 background-color:#6B3FA0;
 background-image:radial-gradient(circle,#FF8767 2px,transparent 2.5px),radial-gradient(circle,#45A7AA 2px,transparent 2.5px),radial-gradient(circle,#F46728 2px,transparent 2.5px),radial-gradient(circle,#FFE29A 2px,transparent 2.5px);
 background-size:6px 6px;
 background-position:right 11px top 2px,right 21px top 3px,right 31px top 2px,right 41px top 3px;
 background-repeat:no-repeat;
 border-color:#6B3FA0;
 color:#fff;
}
body .footer nav a:is([href="/art/"],[href="/zh/art/"],[href="/ms/art/"]):after{color:#fff}
body .footer nav a:is([href="/art/"],[href="/zh/art/"],[href="/ms/art/"]):is(:hover,:focus-visible){background-color:#5A3290;border-color:#5A3290}
body .footer nav a:is([href="/art/"],[href="/zh/art/"],[href="/ms/art/"]):focus-visible{outline:3px solid #c52771;outline-offset:4px}
@media(prefers-reduced-motion:reduce){
 body .footer nav a:is([href="/art/"],[href="/zh/art/"],[href="/ms/art/"]),
 body .footer nav a:is([href="/art/"],[href="/zh/art/"],[href="/ms/art/"]):after{animation:none!important;transition:none!important;scale:none!important;translate:none!important;transform:none!important}
}

/* Lucide paintbrush: ISC license retained at /icons/LICENSE.txt.
   Group icon and label to preserve the existing card size and grid. */
body .footer nav a:is([href="/art/"],[href="/zh/art/"],[href="/ms/art/"]){gap:6px}
body .footer nav a:is([href="/art/"],[href="/zh/art/"],[href="/ms/art/"]):after{flex-shrink:0;margin-left:0}
.footer-art-label{display:inline-flex;align-items:center;gap:6px}
.footer-art-brush{width:16px;height:16px;flex:0 0 16px;color:#fff}

/* Original coloured palette, ISC license at /icons/LICENSE.txt.
   Both SVGs are decorative; keep the label on one line in the existing grid. */
.footer-art-label{white-space:nowrap}
.footer-art-palette{width:18px;height:18px;flex:0 0 18px}
@media(max-width:600px){
 .footer-art-label{gap:4px}
 .footer-art-brush,.footer-art-palette{width:14px;height:14px;flex-basis:14px}
}
