/* A short reveal grows from the theme control; all geometry stays in place. */
:root.theme-transition::view-transition{pointer-events:none}
:root.theme-transition::view-transition-group(root){animation:none}
:root.theme-transition::view-transition-image-pair(root){isolation:isolate}
:root.theme-transition::view-transition-old(root),:root.theme-transition::view-transition-new(root){mix-blend-mode:normal;animation:none}
:root.theme-transition::view-transition-old(root){z-index:1}
:root.theme-transition::view-transition-new(root){z-index:2;animation:theme-arrival .62s cubic-bezier(.22,.7,.2,1) both}
@keyframes theme-arrival{from{clip-path:circle(0 at var(--theme-x) var(--theme-y));opacity:.7}18%{opacity:1}to{clip-path:circle(var(--theme-radius) at var(--theme-x) var(--theme-y));opacity:1}}
/* Browsers without snapshots retain a small color fade and the same controls. */
:root.theme-color-fade body,:root.theme-color-fade .slide,:root.theme-color-fade .header-controls,:root.theme-color-fade .site-footer,:root.theme-color-fade .icon-button{transition:color .28s ease,background-color .28s ease,border-color .28s ease}
@media(prefers-reduced-motion:reduce){:root.theme-transition::view-transition-old(root),:root.theme-transition::view-transition-new(root){animation:none!important}:root.theme-color-fade body,:root.theme-color-fade .slide,:root.theme-color-fade .header-controls,:root.theme-color-fade .site-footer,:root.theme-color-fade .icon-button{transition:none!important}}
html[data-input=pointer] :focus{outline:none!important}
html[data-input=keyboard] :focus-visible{outline:2px solid #7198ff;outline-offset:5px}

/* Shared header geometry for presentation and document pages. */
.header{font-size:16px}
.header .brand{overflow:visible}
@media(max-width:599px){
 :root{--mobile-body:clamp(18px,4.7vw,20px);--mobile-label:16px;--mobile-small:14px}
 .header{padding:12px 20px!important}
 .header .icon-button{width:44px;height:44px}
 .header .brand{width:110px;min-width:110px;height:44px}
 .header .logo{width:200px;left:-48px;top:-48px}
 .mobile-nav a{font-size:var(--mobile-body);min-height:44px}
 .nav-number{font-size:var(--mobile-small)}
}
@media(min-width:1000px){.header{padding:clamp(12px,2dvh,22px) 4.8%!important}}
@media(min-width:1100px){
 .header .brand{width:152px;min-width:152px;height:54px}
 .header .logo{width:280px;left:-70px;top:-66px}
}
