/* Shared interaction language; geometry remains owned by each page. */
html body :is(#page-navigation,#global-nav) :is(a,button){display:inline-flex;align-items:center;justify-content:center;height:31px;padding:0 12px;border:1px solid transparent;border-radius:3px;background:transparent;color:#c5d9e9;font-size:14px;line-height:20px;letter-spacing:.2px;text-decoration:none;cursor:pointer;box-shadow:none;transition:background .18s,border-color .18s,color .18s}
html body :is(#page-navigation,#global-nav) :is(.active,[aria-current=page]){color:#fff;border-color:#4cdcff;background:linear-gradient(165deg,#2dbeeb66,#1572b16b 45%,#0c335b);box-shadow:inset 0 1px #b9f5ff99,inset 0 -2px #21cfff66}
html body :is(#page-navigation,#global-nav) :is(a,button):hover{color:#fff;background-color:#287eab66;border-color:#5bcde677}
html body :is(#global-lang,#global-fullscreen,#portfolio-theme-open,#language,#detail-fullscreen,#background-open){height:31px;min-width:31px;padding:3px 8px;color:#e6f5ff;border:1px solid transparent;border-radius:3px;background:transparent;box-shadow:none;cursor:pointer;transition:background .18s,border-color .18s}
html body :is(#global-fullscreen,#portfolio-theme-open,#detail-fullscreen,#background-open){width:31px;padding:0;display:inline-flex;align-items:center;justify-content:center}
html body :is(#global-lang,#global-fullscreen,#portfolio-theme-open,#language,#detail-fullscreen,#background-open):hover{background:#22658e70;border-color:#5bcde6}
html body :is(#page-navigation a,#page-navigation button,#global-nav a,#global-lang,#global-fullscreen,#portfolio-theme-open,#language,#detail-fullscreen,#background-open):focus-visible{outline:2px solid #ccf8ff;outline-offset:3px}
html body :is(#page-navigation a,#page-navigation button,#global-nav a,#global-lang,#global-fullscreen,#portfolio-theme-open,#language,#detail-fullscreen,#background-open):active{background-color:#163b57;box-shadow:inset 0 2px 5px #0005}
html[data-ui-theme=metal] body :is(#page-navigation,#global-nav) :is(.active,[aria-current=page]){background:linear-gradient(#536a7b,#263e50);border-color:#98afbe;box-shadow:inset 0 1px #d5e6f444}
@media(prefers-reduced-motion:reduce){html body :is(#page-navigation,#global-nav) *,html body :is(#global-lang,#global-fullscreen,#portfolio-theme-open,#language,#detail-fullscreen,#background-open){transition:none}}

/* Detail uses a 1672px canvas scaled to 1920px; match rendered home type size. */
html body #page-navigation :is(a,button){font-size:12.2px;font-weight:500;letter-spacing:.17px;height:27px;padding:0 10.5px}
html body #global-nav a{font-size:14px;font-weight:500;letter-spacing:.2px}
html body #page-navigation{gap:3px}

/* One header type scale: right-side text matches the left navigation.
   The detail/overview canvas has an internal 1920/1672 scale. */
html[data-ui-theme] body.portfolio-page .global-tools :is(#global-clock,#global-lang),
html body.portfolio-page #global-nav a {
 font-family:inherit;font-size:14px;font-weight:500;line-height:20px;
 letter-spacing:.2px;color:#c5d9e9;text-shadow:none;
}
html[data-ui-theme] body :is(#clock,#language),
html body #page-navigation :is(a,button) {
 font-family:inherit;font-size:12.2px;font-weight:500;line-height:17.4px;
 letter-spacing:.17px;color:#c5d9e9;text-shadow:none;
}
html[data-ui-theme] body :is(#clock,#global-clock){font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-ui-theme] body :is(#language,#global-lang){display:inline-flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap}
html[data-ui-theme] body :is(#language,#global-lang) b{font-size:inherit;font-weight:500;line-height:inherit}
html[data-ui-theme] body :is(#language,#detail-fullscreen,#background-open){height:27px;min-width:27px}
html[data-ui-theme] body :is(#detail-fullscreen,#background-open){width:27px;top:14px}
html[data-ui-theme] body :is(#detail-fullscreen,#background-open) svg{width:15.7px;height:15.7px}
html[data-ui-theme] body #global-nav a.active,
html[data-ui-theme] body #page-navigation [aria-current=page]{color:#fff}
.background-settings #background-cancel,.background-settings #background-close{display:inline-flex;align-items:center;width:calc(50% - 5px);justify-content:center;box-sizing:border-box;height:30px;padding:0 12px;line-height:1;margin-top:12px}
.background-settings #background-cancel{margin-right:6px;background:transparent}
html[data-ui-theme] body :is(#language,#global-lang):hover{color:#fff}

/* 10px screen gap, matching homepage tools (station canvas scale 1920/1672). */
html[data-ui-theme] body .background-settings{right:128.3px;top:14px}
html[data-ui-theme] body #background-open{position:static}
html[data-ui-theme] body #detail-fullscreen{right:164px;top:14px}
