html[data-zohour-branch=nasr] { --zh-selected: #194b99; --zh-selected-border: #c9dbf4; --zh-selected-hero: #142d58; }
html[data-zohour-branch=tagamoa] { --zh-selected: #a52137; --zh-selected-border: #f0ccd3; --zh-selected-hero: #441428; }
html[data-zohour-branch] .z-home-hero { background-color: var(--zh-selected-hero); border-color: var(--zh-selected-hero); }
html[data-zohour-branch] .z-branch-control, html[data-zohour-branch] select[data-z-branch-control] {
    color: var(--zh-selected); border-color: var(--zh-selected-border);
}
html[data-zohour-branch] .z-discover-services a.z-service-card {
    border-color: var(--zh-selected-border); border-block-end: 3px solid var(--zh-selected);
}
html[data-zohour-branch] .z-discover-services a.z-service-card h3,
html[data-zohour-branch] .z-discover-services .z-text-link { color: var(--zh-selected); }
html[data-zohour-branch] .z-discover-services a:focus-visible { outline-color: var(--zh-selected); }

/* Keep the selected branch palette above the homepage layout rules. */
html[data-zohour-branch] .z-home #club-main .z-home-hero { background: var(--zh-selected-hero); }
html[data-zohour-branch] .z-home #club-main .z-discover-services a.z-service-card {
  border-color: var(--zh-selected-border);
  border-block-start-color: var(--zh-selected);
  border-block-end-color: var(--zh-selected-border);
}
html[data-zohour-branch] .z-home #club-main .z-home-hero .z-hero-copy { border-inline-start-color: var(--zh-selected); }

/* Keep the institutional logo, navigation and member controls in separate columns. */
.z-header .z-brand{min-inline-size:0}
.z-header .z-account{white-space:nowrap}
.z-header .z-nav a:focus-visible,.z-header .z-account:focus-visible,.z-header .z-head-actions select:focus-visible{outline:2px solid #2456a0;outline-offset:3px}
@media(min-width:1001px){
  .z-header .z-header-inner{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;column-gap:clamp(8px,1.35vw,22px);min-height:76px;padding-block:9px}
  .z-header .z-brand{grid-column:1;white-space:nowrap}
  .z-header .z-nav{grid-column:2;min-width:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px;margin:0}
  .z-header .z-nav>a,.z-header .z-nav .z-more>button{min-height:44px;white-space:nowrap;padding-inline:clamp(5px,.63vw,11px)}
  .z-header .z-nav>a[href="/install.html"]{display:none!important}
  .z-header .z-head-actions{grid-column:3;justify-content:flex-end;min-width:0;gap:8px}
  .z-header .z-head-actions select{max-width:145px}
}
@media(min-width:1001px) and (max-width:1260px){
  .z-header .z-nav>a .z-icon{display:none}
  .z-header .z-nav>a{font-size:.83rem}
  .z-header .z-brand strong{font-size:.93rem}
  .z-header .z-head-actions select{max-width:125px}
}
@media(max-width:600px){.z-header .z-head-actions{min-width:0}.z-header .z-brand strong{overflow-wrap:normal}}

/* Club portal interactions */
:root{--z-ui-ring:#245da9;--z-ui-shadow:0 10px 25px #1027491c;--z-ui-ease:cubic-bezier(.2,.7,.25,1)}
.z-header .z-nav>a:focus-visible,.z-header .z-menu-toggle:focus-visible,main :is(a,button,input,select,summary):focus-visible{outline:2px solid var(--z-ui-ring);outline-offset:3px}
main :is(input,select):focus-visible{outline-offset:2px}
main :is(#news,#trip-grid,#catalog-list) article:focus-within{outline:2px solid #245da975;outline-offset:2px}
main :is(#news,#trip-grid,#catalog-list) article{min-inline-size:0;overflow-wrap:break-word}
main :is(#news,#trip-grid,#catalog-list) article h2,main :is(#news,#trip-grid,#catalog-list) article h3{text-wrap:balance}
main :is(.z-hero-copy,.hero) h1{text-wrap:balance}
main :is(#news,#trip-grid,#catalog-list,#club-programmes,#z-club-stats,#z-today,[id^="club-"]){scroll-margin-top:clamp(88px,10vw,112px)}
@media(prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root){animation:z-ui-leave 120ms ease-out both}
  ::view-transition-new(root){animation:z-ui-arrive 210ms var(--z-ui-ease) both}
  @keyframes z-ui-leave{to{opacity:.88}}
  @keyframes z-ui-arrive{from{opacity:.90}to{opacity:1}}
  @keyframes z-ui-hero-in{from{opacity:.89;translate:0 5px}to{opacity:1;translate:0 0}}
  main>.hero,main>.z-home-hero{animation:z-ui-hero-in 240ms var(--z-ui-ease) both}
  .z-header :is(.z-nav>a,.z-account,.z-menu-toggle),main :is(.z-btn,.z-text-link,.zt-links>a,button,summary){transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease,box-shadow 160ms ease,scale 110ms ease}
  main :is(.z-btn,.zt-links>a,button:not(:disabled),summary):active,.z-header :is(.z-account,.z-menu-toggle):active{scale:.98}
  main :is(#news,#trip-grid,#catalog-list) article,main .z-service-card{transition:box-shadow 180ms var(--z-ui-ease),translate 180ms var(--z-ui-ease),border-color 180ms ease}
  @media(hover:hover) and (pointer:fine){
    main :is(#news,#trip-grid,#catalog-list) article:hover,main .z-service-card:hover{translate:0 -3px;box-shadow:var(--z-ui-shadow)}
    .z-header .z-nav>a:not([aria-current="page"]):hover{background:#edf3fc;color:#143c76}
    main :is(.z-text-link,.zt-update a):hover{text-underline-offset:.29em}
  }
}
@media(prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  ::view-transition-old(root),::view-transition-new(root){animation:none!important}
  main>.hero,main>.z-home-hero{animation:none!important}
}
