/* HARU — subpage finish (loaded last). Brings the subpages in line with the home page:
   white ground, layered reflective gold (not flat yellow), gold hairlines, and the gold rings. */
:root {
  --u-foil: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 48%), linear-gradient(105deg, #b8893a 0%, #e6c784 16%, #fff6d8 28%, #d6ae5c 42%, #b8893a 56%, #ecd28f 72%, #fffaea 82%, #c9a24e 100%);
  --u-foil-text: linear-gradient(105deg, #6e4f17 0%, #a8823f 14%, #d9b45a 24%, #8a6420 40%, #b8893a 60%, #e0bd72 70%, #7a5718 90%);
  --u-hair: linear-gradient(90deg, transparent, #c9a24e 20%, #f0dca8 50%, #c9a24e 80%, transparent);
}

/* filled gold actions: layered metal with a moving reflection */
body :is(.btn.primary, .button.gold, .en-button.gold, .contact-direct, .contact-action, .nav-cta, .menu-toggle, .coach-button.coach-gold, .practice-links .btn) {
  background: var(--u-foil) !important; background-size: 100% 100%, 200% 100% !important;
  color: #241c10 !important; border-color: #b8893a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(122, 87, 24, .35), 0 10px 24px -14px rgba(138, 100, 32, .75) !important;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-position .6s cubic-bezier(.2, .7, .2, 1), transform .25s, box-shadow .25s !important;
}
@media (hover: hover) {
  body :is(.btn.primary, .button.gold, .en-button.gold, .contact-direct, .contact-action, .nav-cta, .menu-toggle, .coach-button.coach-gold, .practice-links .btn):hover {
    background: var(--u-foil) !important; background-size: 100% 100%, 200% 100% !important; background-position: 0 0, 100% 0 !important;
    transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(122, 87, 24, .35), 0 16px 30px -14px rgba(138, 100, 32, .8) !important;
  }
}
body :is(.btn.primary, .button.gold, .en-button.gold, .contact-direct, .contact-action, .nav-cta)::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 38%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg);
  animation: u-sweep 4.6s 1.5s ease-in-out infinite;
}
@keyframes u-sweep { 0% { left: -60%; } 30%, 100% { left: 130%; } }

/* header: white glass with a gold hairline */
body :is(.site-header, .en-header, .hg-header) { background: rgba(255, 255, 255, .9) !important; border-bottom-color: transparent !important; position: sticky; }
body :is(.site-header, .en-header, .hg-header)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--u-hair); pointer-events: none; }

/* page headings: ink with a gold-foil accent */
body :is(.page-hero, .en-hero) h1 em, body .gold-foil {
  background: var(--u-foil-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important;
  font-style: normal; animation: u-foil 6s ease-in-out infinite;
}
@keyframes u-foil { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
body :is(.page-hero, .en-hero) { position: relative; }
body :is(.page-hero, .en-hero)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--u-hair); pointer-events: none; }

/* fixed contact bar: white glass, gold edge */
body .contact-dock { background: rgba(255, 255, 255, .94) !important; border-color: rgba(201, 162, 78, .55) !important; box-shadow: 0 16px 40px -18px rgba(138, 100, 32, .45) !important; }

/* ---------- the gold rings (same emblem as the home page) ---------- */
@property --u-sheen { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.u-orbit { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.u-orbit .orbit-emblem { position: relative; width: var(--size, 104px); aspect-ratio: 1; flex: none; display: grid; place-items: center; perspective: 600px; isolation: isolate; }
.u-orbit .orbit-emblem::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 210, .95), rgba(244, 222, 165, .4) 45%, transparent 70%); z-index: -1; }
.u-orbit .space { position: absolute; inset: 4%; transform-style: preserve-3d; pointer-events: none; }
.u-orbit .ring { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d; }
.u-orbit .band { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from var(--u-sheen), #7a5718, #c9a24e 10%, #fff6d6 16%, #b8893a 24%, #8a6420 38%, #e9cf8a 52%, #fffdf0 58%, #a8823f 66%, #7a5718 82%, #d9b45a 92%, #7a5718);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: u-ring-sheen 4s linear infinite; }
.u-orbit .bead { position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffdf0, #e6c784 45%, #9b7228); box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(232, 196, 120, .95); }
@keyframes u-ring-sheen { to { --u-sheen: 360deg; } }
.u-orbit .ring:nth-child(1) { transform: rotateZ(-20deg) rotateX(65deg); }
.u-orbit .ring:nth-child(2) { transform: rotateZ(50deg) rotateY(60deg); }
.u-orbit .ring:nth-child(3) { transform: rotateZ(115deg) rotateX(55deg); }
.u-orbit .ring:nth-child(4) { transform: rotateZ(-65deg) rotateY(70deg); inset: 11%; }
.u-orbit .core { width: 42%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff 55%, rgba(255, 248, 230, 0) 100%); }
.u-orbit .core img { width: 84%; height: auto; filter: drop-shadow(0 3px 8px rgba(138, 100, 32, .35)); }
.u-orbit-toggle { min-height: 36px; padding: 4px 12px; border: 1px solid rgba(168, 130, 63, .45); border-radius: 999px; background: #fff; color: #5f4a22; font: 600 11px/1.4 inherit; letter-spacing: .04em; cursor: pointer; }
.u-orbit-toggle:hover { border-color: #8a6420; }
.u-orbit-toggle:focus-visible { outline: 3px solid #8a6420; outline-offset: 3px; }
@media (max-width: 760px) { .u-orbit .orbit-emblem { --size: 84px; } }

.u-paused .u-orbit .band, .u-paused :is(.btn.primary, .button.gold, .en-button.gold, .contact-direct, .contact-action, .nav-cta)::after, .u-paused :is(.page-hero, .en-hero) h1 em { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .u-orbit .band, body :is(.page-hero, .en-hero) h1 em { animation: none !important; }
  body :is(.btn.primary, .button.gold, .en-button.gold, .contact-direct, .contact-action, .nav-cta)::after { display: none; }
  .u-orbit-toggle { display: none; }
}
html body .u-orbit button.u-orbit-toggle.u-orbit-toggle { background: #fff !important; background-image: none !important; color: #5f4a22 !important; border: 1px solid rgba(168, 130, 63, .45) !important; box-shadow: none !important; min-height: 36px !important; width: auto !important; padding: 4px 12px !important; font-size: 11px !important; border-radius: 999px !important; }
html body .u-orbit button.u-orbit-toggle.u-orbit-toggle::before, html body .u-orbit button.u-orbit-toggle.u-orbit-toggle::after { display: none !important; }
/* breadcrumb was 3.4:1 — darken to meet AA */
body .breadcrumb, body .breadcrumb span { color: #6b6152 !important; }

/* mobile: comfortable tap targets (44px) without changing the layout order */
@media (max-width: 760px) {
  body .language-switch a { min-height: 44px !important; display: inline-flex !important; align-items: center; }
  body .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  body :is(.filters button, .en-filter button, button[data-filter], .guide-group-row button, .desk-tabs button, .directory-display button, .practice-filters button) { min-height: 44px !important; }
  body :is(.hg-header nav a, .guide-nav a, .site-footer .footer-col > a, .en-footer nav a, .hg-footer nav a) { min-height: 44px; display: inline-flex !important; align-items: center; }
  body .text-link { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 760px) {
  body :is(.keyword-links a, .welcome-guide > summary, .welcome-guide a, .hg-guide-nav a, .recovery-links a, .contact-access summary, details > summary, nav .navlink, .haru-client-footer a) { min-height: 44px; display: inline-flex !important; align-items: center; }
  body h3 > a:only-child { display: inline-block; padding-block: 9px; }
}
@media (max-width: 760px) { body .nav > :is(a.brand, a.navlink) { min-height: 44px; display: inline-flex; align-items: center; } }

/* Hierarchy: filled gold only for the main action. Secondary controls are white with a gold hairline,
   so the page reads as white-and-gold rather than a stack of gold blocks. */
html:not(#_) body :is(.nav-toggle, .global-search-trigger, .btn:not(.primary), .button.outline, .en-button:not(.gold), .en-header button.en-button, .clarity-switch nav a, .footer-orbit-link, .opening-replay) {
  background: #fff !important; background-image: none !important; color: #2f281c !important;
  border: 1px solid rgba(184, 137, 58, .55) !important;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(201, 162, 78, .18), 0 8px 20px -16px rgba(138, 100, 32, .5) !important;
  text-shadow: none !important;
}
@media (hover: hover) {
  html:not(#_) body :is(.nav-toggle, .global-search-trigger, .btn:not(.primary), .button.outline, .en-button:not(.gold), .en-header button.en-button, .clarity-switch nav a, .footer-orbit-link):hover {
    background: #fffaf0 !important; border-color: #a8823f !important;
  }
}
html:not(#_) body .global-search-trigger { color: #6b4f1d !important; }
html:not(#_) body .language-switch { background: #fff !important; border: 1px solid rgba(184, 137, 58, .45) !important; box-shadow: none !important; }
html:not(#_) body .language-switch a[aria-current] { background: var(--u-foil) !important; color: #241c10 !important; box-shadow: inset 0 1px 0 #fff !important; }
html:not(#_) body .language-switch a:not([aria-current]) { background: transparent !important; color: #4a4337 !important; }

/* header: the same thin gold top line as the home page, gold underline on hover, gold-edged menu panel */
body :is(.site-header, .en-header, .hg-header)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #b8893a, #f3dc9c 20%, #fff6d8 32%, #c9a24e 50%, #f3dc9c 70%, #b8893a); }
body .header-shortcuts a { position: relative; }
body .header-shortcuts a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px; background: linear-gradient(90deg, transparent, #b8893a, #f3dc9c, #b8893a, transparent); transition: left .35s, right .35s; }
body .header-shortcuts a:hover::after, body .header-shortcuts a:focus-visible::after { left: 0; right: 0; }
html:not(#_) body .main-nav.open, html:not(#_) body #en-menu:not([hidden]) { border-top: 2px solid transparent !important; border-image: linear-gradient(90deg, #b8893a, #f3dc9c, #c9a24e, #b8893a) 1 !important; box-shadow: 0 40px 80px -40px rgba(138, 100, 32, .45) !important; }
@media (prefers-reduced-motion: reduce) { body .header-shortcuts a::after { transition: none; } }
/* open menu button showed an empty square (its label is hidden while open): draw a close mark */
html:not(#_) body .site-header .nav-toggle[aria-expanded="true"] { display: inline-flex !important; align-items: center; justify-content: center; }
html:not(#_) body .site-header .nav-toggle[aria-expanded="true"]::after { content: ""; display: block; width: 28px; height: 28px; background: #4a3612; -webkit-mask: url('/assets/ui/close.svg') center / contain no-repeat; mask: url('/assets/ui/close.svg') center / contain no-repeat; }
