/* Compact Katya navigation. Append after refine/reference/arch-sequence styles.
   Layout only: the existing font-scale controller continues to own typography. */
html[data-ws-inline-menu] body > .header,
html[data-ws-inline-menu][data-ws-direction="digital"] body.ws-powerhouse-digital > .header {
  display: grid !important;
  grid-template-columns: max-content max-content minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  column-gap: clamp(12px, 1.2vw, 28px) !important;
  row-gap: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding-block: 12px !important;
}
html[data-ws-inline-menu] body > .header > .brand {
  grid-area: 1 / 1 !important;
  align-self: center;
  justify-self: start;
  margin: 0 !important;
}
html[data-ws-inline-menu] body > .header > .ws-header-symbol {
  grid-area: 1 / 2 !important;
  align-self: center;
  justify-self: start;
  margin: 0 !important;
}
html[data-ws-inline-menu] body > .header > nav {
  grid-area: 1 / 3 !important;
  justify-self: end !important;
  align-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 0 clamp(12px, 1.05vw, 28px) !important;
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html[data-ws-inline-menu] body > .header > nav > a {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  min-height: 44px !important;
  margin: 0 !important;
  white-space: nowrap;
}
@media (max-width: 700px) {
  html[data-ws-inline-menu] body > .header,
  html[data-ws-inline-menu][data-ws-direction="digital"] body.ws-powerhouse-digital > .header {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    row-gap: 2px !important;
    padding-block: 8px !important;
  }
  html[data-ws-inline-menu] body > .header > nav {
    grid-area: 2 / 1 !important;
    width: 100% !important;
    justify-self: stretch !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 0 12px !important;
  }
}


/* One left guide for section labels, headings and their content.
   Other sections already use --content-inset; the wide facts block was the exception. */
html[data-ws-direction] .ws-editorial-facts {
  padding-inline:var(--content-inset,max(var(--gutter,var(--pad,24px)),calc((100vw - var(--ws-rail,0px) - 1740px) / 2)))!important;
}
html[data-ws-direction] .ws-facts-intro {
  display:block;
  margin-left:0;
  padding-left:0;
}
html[data-ws-direction] .ws-facts-intro>h2 {
  margin-left:0;
  padding-left:0;
  text-align:left;
}


/* A deliberate logo colour, without grey difference blending over photographs. */
.ws-choice .ws-choice-brand{mix-blend-mode:normal!important}
.ws-choice .ws-choice-brand img{filter:brightness(0)!important}
.ws-choice:has(.ws-choice-card--arch:is(:hover,:focus-visible)) .ws-choice-brand img{filter:brightness(0) invert(1)!important}
.ws-choice:has(.ws-choice-card--digital:is(:hover,:focus-visible)) .ws-choice-brand img{filter:brightness(0)!important}
/* A narrow mouse-driven window keeps the same stable single-column chooser as touch. */
@media(max-width:700px){
 .ws-choice,.ws-choice:has(.ws-choice-card:is(:hover,:focus-visible)){grid-template-columns:1fr!important}
}

/* The archive effects layer must not clip the in-flow direction link or create
   another footer block. The direction's own height/hover transition stays active. */
.ws-next-shell > .ws-next-direction.wsa-curtain { clip-path: none !important; }
.wsa-giant { display: none !important; }
