/* V51: readable controls, earlier useful information and calm decoration.
   Scoped component states own both their surface and their opaque label. */
:root{--v51-control-surface:#10273a;--v51-control-ink:#f3fbff;--v51-control-border:#83bcbf}
body :is(button,summary,.hero-action,.chapter-action,.event-action,.text-action,.language-pill a,.edition-years a){-webkit-text-fill-color:currentColor}
body :is(.hero-action,.chapter-action,.event-action,.reg-button,.media-load-video,.membership-copy,.archive-filters button,.year-tabs button,.media-type-filters button,.media-empty button,.film-navigation button,.schedule-finder-fields button,.schedule-empty button,.arrival-actions button,.edition-years a){background:var(--v51-control-surface)!important;color:var(--v51-control-ink)!important;-webkit-text-fill-color:var(--v51-control-ink)!important;text-shadow:none;box-shadow:none}
body :is(button,summary,.hero-action,.chapter-action,.event-action,.text-action,.language-pill a,.edition-years a)>span:not(.action-icon){color:inherit;-webkit-text-fill-color:currentColor!important;background:none!important;background-clip:border-box!important;-webkit-background-clip:border-box!important;filter:none!important;text-shadow:none!important}
@media(hover:hover) and (pointer:fine){
 body :is(.hero-action,.chapter-action,.event-action,.reg-button,.media-load-video,.membership-copy,.archive-filters button,.year-tabs button,.media-type-filters button,.media-empty button,.film-navigation button,.schedule-finder-fields button,.schedule-empty button,.arrival-actions button,.edition-years a):not(:disabled):not([aria-disabled=true]):hover{background:#1b3b50!important;color:#f3fbff!important;-webkit-text-fill-color:#f3fbff!important;border-color:#a5ded8;text-shadow:none!important;box-shadow:0 3px 10px #0003!important}
 body :is(.text-action,.menu-toggle,.motion-control,.v31-nav-toggle,summary):not(:disabled):hover{color:#e9fffb!important;-webkit-text-fill-color:#e9fffb!important;text-shadow:none!important}
}
body :is(.hero-action,.chapter-action,.event-action,.reg-button,.media-load-video,.membership-copy,.archive-filters button,.year-tabs button,.media-type-filters button,.media-empty button,.film-navigation button,.schedule-finder-fields button,.schedule-empty button,.arrival-actions button,.edition-years a):not(:disabled):not([aria-disabled=true]):focus-visible{background:#1b3b50!important;color:#f3fbff!important;-webkit-text-fill-color:#f3fbff!important;text-shadow:none!important}
body :is(.hero-action,.chapter-action,.event-action,.reg-button,.media-load-video,.membership-copy,.archive-filters button,.year-tabs button,.media-type-filters button,.media-empty button,.film-navigation button,.schedule-finder-fields button,.schedule-empty button,.arrival-actions button,.edition-years a):not(:disabled):not([aria-disabled=true]):is(:active:where(:not([data-miva-touch-pending])),.is-touch-pressed,.is-interaction-pressed){background:#142c40!important;color:#f3fbff!important;-webkit-text-fill-color:#f3fbff!important;text-shadow:none!important;filter:none!important;box-shadow:0 0 0 1px #87c6c4,0 0 10px #62e5d526!important}
body :is(.archive-filters button[aria-pressed=true],.year-tabs button[aria-selected=true],.media-type-filters button[aria-pressed=true],.edition-years a[aria-current=page],.language-pill a[aria-current]){background:#c8eee7!important;color:#10273a!important;-webkit-text-fill-color:#10273a!important;text-shadow:none}
body .language-pill a[aria-current]:is(:hover,:focus-visible,:active,.is-touch-pressed,.is-interaction-pressed){background:#c8eee7!important;color:#10273a!important;-webkit-text-fill-color:#10273a!important;text-shadow:none!important}
body :is(button,summary,a[href]):focus-visible{outline:2px solid #baf4ed;outline-offset:4px}
body button:disabled,body [aria-disabled=true]{background-color:#102032!important;color:#aebed0!important;-webkit-text-fill-color:#aebed0!important;text-shadow:none!important;box-shadow:none!important;opacity:1}
/* End the generic white-on-light hover collision at its original component boundary. */
body :is(.reg-button-primary,.media-load-video,:where(#copy-venue-address)):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible){background:#1b3b50!important;color:#f3fbff!important;-webkit-text-fill-color:#f3fbff!important}

/* Compact openings keep each page's hierarchy, without hiding useful content. */
body[data-page=home] .home-hero{min-height:540px}
body[data-page=home] .home-hero h1{font-size:clamp(56px,6.6vw,96px)}
body[data-page=home] .home-hero h1:lang(zh-Hans){font-size:clamp(48px,6vw,82px)}
body[data-page=home] .hero-content{padding-top:48px}
body :is(.detail-hero,.use-hero,.contact-opening,.media-hero){padding-block:24px 32px}
body :is(.detail-hero,.use-hero,.contact-intro,.media-opening,.organization-hero) h1{font-size:clamp(36px,5vw,64px)!important;line-height:1.2;margin-block:14px 20px}
body :is(.detail-hero,.use-hero,.contact-intro,.media-opening,.organization-hero) h1:lang(zh-Hans){font-size:clamp(34px,4.5vw,56px)!important;line-height:1.35}
body[data-page=membership] .detail-hero>.small-label{font-size:15px;letter-spacing:.08em}
body .about-hero{padding-block:24px 30px}
body .about-hero h1{font-size:clamp(42px,6vw,76px)!important}
body .about-hero h1:lang(zh-Hans){font-size:clamp(34px,5vw,62px)!important}
body .about-hero-bottom{margin-top:24px}
body .organization-hero{padding-block:20px 24px}
body .detail-section{padding-block:36px}
body .event-hero{padding-block:22px 30px}
body .event-countdown-heading{padding-top:14px;padding-bottom:0}
body .countdown-value{font-size:clamp(58px,8vw,108px);line-height:1.1}
body .event-hero-bottom{margin-top:22px}
.v51-event-venue{font-size:15px;line-height:1.7;color:#d7e6f3;margin:14px 0 4px}
.v51-opening-actions{display:flex;gap:12px 26px;flex-wrap:wrap}
.v51-opening-actions .text-action{font-size:14px;min-height:44px;margin:0}
body .media-opening{gap:28px}
body .media-opening img{max-height:220px;object-fit:cover}
body .registration-preview .reg-hero{padding-top:24px;row-gap:18px}
body .registration-preview .reg-hero h1{font-size:clamp(36px,5vw,62px);line-height:1.25;margin-block:12px 18px}
body .registration-preview .reg-hero .detail-lead{font-size:16px;line-height:1.75}

.membership-enquiry{max-width:720px;margin-top:24px}
.membership-enquiry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}
.membership-enquiry-actions .chapter-action{font-size:16px;min-height:46px;margin:0;padding:12px 20px;width:auto;gap:16px}
.membership-copy{font:inherit;font-size:14px;min-height:44px;border:1px solid #83bcbf66;border-radius:12px;padding:10px 16px;cursor:pointer}
.membership-email-address{display:inline-flex;align-items:center;min-height:44px;font-size:15px;color:#d4f5ee;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:4px}
.membership-enquiry-help,.membership-copy-status{font-size:13px;line-height:1.75;color:#b6c8db;margin:4px 0 0;max-width:64ch}
.membership-copy-status:empty{display:none}
.membership-copy-status{color:#d4f5ee}

/* One shared pending label, with every actual topic and anchor still available. */
.v51-pending-label{font-size:13px;color:#d4dceb;margin:0 0 14px}
.v51-pending-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 30px;padding:0;margin:0;color:#d4dfec;font-size:16px;line-height:1.75}
.v51-pending-list li{padding:0 0 0 15px;position:relative}
.v51-pending-list li::before{content:"·";position:absolute;left:0;color:#83bcbf}
body .planning-list{padding-top:20px}
body .preparing{padding-block:36px}
body .preparing-heading h2{font-size:clamp(28px,3.5vw,42px);line-height:1.3;margin-block:12px 18px}
body .preparing-heading>.body-copy{font-size:15px;line-height:1.8}
.v51-roster-note{color:#b9c9db;font-size:14px;line-height:1.8;margin-block:4px 16px}
body .organization-shortcuts{margin-block:12px 16px}
body .organization-section{padding-block:24px;min-height:0}
body .organization-section-heading h2{font-size:clamp(24px,2.8vw,34px);margin-block:8px 12px}
.v51-roster-status{display:inline-block;color:#b5c4d6;font-size:14px;line-height:1.7;margin:0}
body .organization-section-link{margin-top:10px}
body .organization-section-link .text-action{min-height:44px}
body .media-record[data-availability=pending]{padding-block:20px;gap:22px;background:none;box-shadow:none}
body .media-record[data-availability=pending] h2{font-size:22px;line-height:1.5;margin-block:0 12px}
body .media-record[data-availability=pending] p{font-size:14px;margin-block:8px 12px}
body .media-empty{padding-block:26px}

/* Calm text is an opaque base layer. Keep a restrained sweep, not multi-layer bloom. */
body .feedback-luminous{color:#dcebf4;-webkit-text-fill-color:#dcebf4;background:none;background-clip:border-box;-webkit-background-clip:border-box;text-shadow:none!important;filter:none!important}
body.motion-on .feedback-luminous{animation:feedback-title-sweep 7s ease-in-out infinite}
body[data-page=home].motion-on:not(.motion-paused) :is(.hero-context,.hero-content h1>span,.effect-a){animation:none!important;text-shadow:none!important}
body[data-page=home].motion-on:not(.motion-paused) :is(.hero-context,.hero-content h1>span,.effect-a)::after{opacity:.3;animation-duration:7s!important}
body .miva-pointer-halo{opacity:.5;filter:blur(1px)}
body .miva-pointer-core,body .miva-pointer-layer.is-action .miva-pointer-core{box-shadow:none}
body :is(.page-return-link,.page-top-link,.back-link,.text-action):is(:hover,:focus-visible){text-shadow:none!important}
body.motion-on .highlight-link:is(:hover,:focus-visible)>span{filter:none!important}
body.motion-paused .feedback-luminous,body:not(.motion-on) .feedback-luminous{animation:none!important}

@media(max-width:700px){
 body[data-page=home] .home-hero{min-height:510px}
 body[data-page=home] .hero-content{padding-top:26px}
 body[data-page=home] .home-hero h1{font-size:clamp(40px,10.4vw,64px)}
 body[data-page=home] .home-hero h1:lang(zh-Hans){font-size:clamp(34px,8.8vw,52px)}
 body :is(.detail-hero,.use-hero,.contact-opening,.media-hero){padding-block:18px 24px}
 body :is(.detail-hero,.use-hero,.contact-intro,.media-opening,.organization-hero) h1{font-size:clamp(34px,8.8vw,48px)!important}
 body :is(.detail-hero,.use-hero,.contact-intro,.media-opening,.organization-hero) h1:lang(zh-Hans){font-size:clamp(30px,8vw,42px)!important}
 body .about-hero h1{font-size:clamp(36px,9vw,56px)!important}
 body .about-hero h1:lang(zh-Hans){font-size:clamp(30px,8vw,44px)!important}
 body .detail-section{padding-block:28px}
 body .event-countdown-heading{padding-top:4px}
 body .countdown-value{font-size:clamp(52px,15vw,82px)}
 body .event-hero-bottom{margin-top:14px}
 body .event-intro{font-size:26px;line-height:1.4}
 body .event-note{font-size:14px;line-height:1.8}
 body .media-opening img{max-height:170px}
 body .registration-preview .reg-hero h1{font-size:36px}
 body .registration-preview .reg-hero .detail-lead{font-size:15px}
 .v51-pending-list{grid-template-columns:1fr;gap:10px;font-size:15px}
 body .organization-section{padding-block:20px;gap:12px}
 .membership-enquiry{margin-top:20px}
 .membership-enquiry-actions{gap:10px}
 .membership-enquiry-actions .chapter-action{font-size:15px}
}
@media(prefers-reduced-motion:reduce){body .feedback-luminous,body :is(.hero-context,.hero-content h1>span,.effect-a)::after{animation:none!important}body :is(button,summary,a[href]){transition:none!important}body .miva-pointer-layer{display:none!important}}
body:not(.motion-on) :is(button,summary,a[href]){transition:none!important}
@media(forced-colors:active){
 body :is(button,summary,.hero-action,.chapter-action,.event-action,.text-action,.language-pill a,.edition-years a),body :is(button,summary,a[href]):is(:hover,:focus-visible,:active,.is-touch-pressed,.is-interaction-pressed){color:ButtonText!important;-webkit-text-fill-color:currentColor!important;background:Canvas!important;border-color:ButtonText!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
 body button:disabled,body [aria-disabled=true]{color:GrayText!important;-webkit-text-fill-color:currentColor!important;background:Canvas!important}
 body :is(a[href],button,summary):focus-visible{outline:2px solid Highlight!important}
 body .feedback-luminous{color:CanvasText!important;-webkit-text-fill-color:currentColor!important}
}
/* Let tablet titles meet the desktop scale without shrinking as width grows.
   The original narrow and wide sizes are unchanged. */
@media (min-width:500px) and (max-width:900px){
 body :is(.detail-hero,.use-hero,.contact-intro,.media-opening,.organization-hero) h1{font-size:clamp(44px,5vw,64px)!important}
 body :is(.detail-hero,.use-hero,.contact-intro,.media-opening,.organization-hero) h1:lang(zh-Hans){font-size:clamp(40px,4.5vw,56px)!important}
 body .about-hero h1{font-size:clamp(45px,6vw,76px)!important}
 body .about-hero h1:lang(zh-Hans){font-size:clamp(40px,5vw,62px)!important}
}
@media (min-width:560px) and (max-width:900px){
 body[data-page=home] .home-hero h1{font-size:clamp(58.24px,6.6vw,96px)}
 body[data-page=home] .home-hero h1:lang(zh-Hans){font-size:clamp(49.28px,6vw,82px)}
}

/* Metadata is not prose; keep the version date stable above the phone breakpoint. */
body[data-page] main .use-date{font-size:.8125rem!important;line-height:1.55}
