/* V280: stable desktop link/disclosure targets and the existing neutral glass.
   Load after navigation-liquid-v243.css. Phone navigation is untouched. */
@media screen and (min-width:768px) {
 body[data-page] .site-header #main-nav {
  display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-end;
  justify-self:end;width:max-content;max-width:100%;min-width:0;
  margin:0;padding:0 4px;gap:clamp(0px,calc(2vw - 15.36px),10px);
 }
 body[data-page] .site-header #main-nav > :is(a,.v31-nav-group) {
  width:auto;flex:0 0 auto;
 }
 body[data-page] .site-header #main-nav > a:not(.nav-contact) {
  padding-inline:clamp(6px,calc(1.4vw - 4.752px),13px);
 }
 body[data-page] .site-header #main-nav > .v31-nav-group {
  display:flex;align-items:center;gap:0;isolation:auto;
 }
 body[data-page] .site-header #main-nav > .v31-nav-group > a {
  flex:0 0 auto;padding-inline:clamp(6px,calc(1.4vw - 4.752px),13px) 1px;
 }
 body[data-page] .site-header #main-nav > .v31-nav-group > .v31-nav-toggle {
  position:relative;inset:auto;flex:0 0 44px;min-width:44px;
 }
 body[data-page] .site-header #main-nav > .v31-nav-group::before {content:none}
}
@media screen and (min-width:768px) and (forced-colors:none) {
 body[data-page] .site-header #main-nav {
  border-radius:999px;
  background:
   radial-gradient(ellipse 40% 85% at 14% -44%,#fff5,transparent 91%),
   radial-gradient(ellipse 37% 60% at 93% 131%,#eee9fb38,transparent 94%),
   linear-gradient(154deg,#ede9f810,#ede9f804 56%,#ede9f80c);
  box-shadow:inset 0 0 0 1px #fcf9ff17,inset 0 1px 1px #f9f4ff28,inset 0 -1px 1px #c8c1d32e;
 }
 body[data-page] .site-header #main-nav > a,
 body[data-page] .site-header #main-nav > .v31-nav-group > a {
  border-radius:999px;
 }
 body[data-page] .site-header #main-nav > .v31-nav-group > .v31-subnav {
  --v55-panel:#191820;
  background:
   radial-gradient(ellipse 72% 65% at 12% -12%,#f7f4ff25,transparent 91%),
   radial-gradient(ellipse 67% 58% at 100% 117%,#e1d9ed23,transparent 93%),
   linear-gradient(151deg,#24232dd9,#16151dc9 61%,#24212bda)!important;
  box-shadow:inset 0 0 0 1px #f4efff26,inset 0 1px 1px #fcf8ff34,inset 0 -1px 1px #d2cada32,0 15px 32px #0006;
  -webkit-backdrop-filter:blur(12px) saturate(106%);
  backdrop-filter:blur(12px) saturate(106%);
 }
 body[data-page] .site-header #main-nav :is(.v31-subnav > a,.v31-nav-toggle) {
  --v55-ink:#f2eff7;
 }
 body[data-page] .site-header #main-nav .v31-subnav > a:is(:hover,:focus-visible,[aria-current]) {
  background:#f5efff15!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 }
 body[data-page] .site-header #main-nav .v31-subnav > a:is(:active,.is-interaction-pressed,.is-touch-pressed) {
  background:#f5efff27!important;
 }
 body[data-page] .site-header #main-nav :is(a,.v31-nav-toggle):focus-visible {
  outline:2px solid #f3eff9!important;outline-offset:-2px;
 }
}
@media screen and (min-width:768px) and (prefers-reduced-transparency:reduce) and (forced-colors:none) {
 body[data-page] .site-header #main-nav {background:#23212b}
 body[data-page] .site-header #main-nav > .v31-nav-group > .v31-subnav {
  background:#23212b!important;-webkit-backdrop-filter:none;backdrop-filter:none;
 }
}

/* Style only the floating clone. Keep its threshold, sizing, focus/scroll and
   small-screen hiding as they are; leave the in-flow footer link alone. */
@media screen and (forced-colors:none) {
 body > a.page-top-link.page-top-floating {
  --top-lens:#15131db5;--top-rim:#f9f2ff30;
  color:#faf8ff!important;-webkit-text-fill-color:#faf8ff!important;
  border-color:#faf7ff33!important;border-radius:999px;
  background:
   radial-gradient(ellipse 48% 75% at 16% -40%,#fff8,transparent 96%) padding-box,
   radial-gradient(ellipse 38% 60% at 87% 126%,#e4dcff50,transparent 94%) padding-box,
   linear-gradient(var(--top-lens),var(--top-lens)) padding-box!important;
  box-shadow:inset 0 1px 1px var(--top-rim),inset 0 -1px 1px #b7afc450,0 3px 16px #0006!important;
  -webkit-backdrop-filter:blur(5px) saturate(106%)!important;
  backdrop-filter:blur(5px) saturate(106%)!important;
  text-shadow:none!important;
 }
 body > a.page-top-link.page-top-floating:focus-visible {
  outline:2px solid #f3eff9!important;outline-offset:3px;
 }
 body > a.page-top-link.page-top-floating:is(:active,.is-touch-pressed,.is-interaction-pressed) {
  --top-lens:#28252ee0;--top-rim:#f9f2ff65;
 }
 @media (hover:hover) and (pointer:fine) {
  body > a.page-top-link.page-top-floating:hover {--top-rim:#f9f2ff60}
 }
}
@media screen and (prefers-reduced-transparency:reduce) and (forced-colors:none) {
 body > a.page-top-link.page-top-floating {
  background:#292831!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
 }
}

/* Reading progress is redundant on desktop and must not intersect menus. */
@media screen and (min-width:768px){
 body .nav-shell .v63-reading-progress{display:none!important}
}

/* Keep interaction feedback on interactive controls, not on the information
   panels around them. Fine-pointer hover is separate from focus and press. */
body[data-page] main :is(.contact-topic,.participation-paths > article,.arrival-enquiries > article)::before{
 content:none!important
}
@media (hover:hover) and (pointer:fine) and (forced-colors:none){
 body[data-page] :is(a[href],button:not(:disabled),summary).v54-glass-control:not([aria-disabled=true]):hover{
  border-color:#f2eaff88!important;
  box-shadow:inset 0 1px 1px #f9f3ff85,inset 0 -1px 1px #c4bada60,0 3px 14px #14101d4a!important;
 }
}

/* Shared spacing for action clusters. Keep separate actions visible as a
   single row when they fit, and give wrapped rows the same breathing room. */
body[data-page] main {
 --miva-action-gap-block:12px;
 --miva-action-gap-inline:16px;
 --miva-action-clearance:20px;
}
body[data-page] main :is(.record-actions,.arrival-actions,.highlight-actions,.connect-actions,.archive-links-v151,.about-next-actions,.membership-enquiry-actions){
 gap:var(--miva-action-gap-block) var(--miva-action-gap-inline)!important;
}
body[data-page=contact] main .contact-topic div:has(> a.v54-glass-control){
 display:flex;
 flex-wrap:wrap;
 align-items:flex-start;
 gap:var(--miva-action-gap-block) var(--miva-action-gap-inline);
}
body[data-page=contact] main .contact-topic :is(div,article) > a.v54-glass-control{
 margin:0!important;
 min-inline-size:0;
 max-inline-size:100%;
 white-space:normal;
}
body[data-page=contact] main .contact-topic p + div:has(> a.v54-glass-control),
body[data-page=contact] main .contact-topic div:has(> a.v54-glass-control) + a.v54-glass-control{
 margin-block-start:var(--miva-action-clearance)!important;
}
@media (max-width:767px){
 body[data-page] main{--miva-action-gap-inline:12px}
}

@media screen and (min-width:768px) and (forced-colors:none){
 body[data-page] .page-return-row > a.page-return-link {
  --return-rim:#f4eeff30;
  min-height:44px;margin-inline:0;padding:8px 16px!important;border:1px solid var(--return-rim);
  border-radius:999px!important;
  color:#f3effa!important;-webkit-text-fill-color:#f3effa!important;
  background:radial-gradient(ellipse 68% 76% at 14% -37%,#fff5,transparent 86%),linear-gradient(150deg,#d8d0ee26,#ddd5f308 57%,#e6dfff18)!important;
  box-shadow:inset 0 1px 1px var(--return-rim),inset 0 -1px 1px #d7cbea29,0 4px 12px #12101a50;
 }
 body[data-page] .page-return-row > a.page-return-link:focus-visible {outline:2px solid #f8f5ff!important;outline-offset:3px}
 @media (hover:hover) and (pointer:fine){
  body[data-page] :is(.page-return-row > a.page-return-link,.site-header .language-pill a[href]):hover{
   --return-rim:#faf2ff85;
   box-shadow:inset 0 1px 1px #f9f3ff85,inset 0 -1px 1px #c4bada60,0 3px 14px #14101d4a!important;
  }
 }
}

/* The original navigation artwork includes a baked-in tagline. Crop only
   the visual window at its native ratio; keep the original art elsewhere. */
body[data-page] .site-header a.brand > img[src="assets/miva-logo.png"]{
 display:block;
 width:clamp(76px,6.2vw,88px)!important;
 height:auto!important;
 aspect-ratio:300 / 138;
 object-fit:cover!important;
 object-position:center top!important;
}
@media(max-width:767px){
 body[data-page] .site-header a.brand > img[src="assets/miva-logo.png"]{
  width:68px!important;
 }
}
