/* Saved blue palette with coral accents. Base colours remain editable in Drupal.
 * Layout, real news photos, circular portraits and restrained hover effects stay.
 */
#page-top {
  --pub-action-bg: #fc4445;
  --action-ink: var(--pub-accent);
  --pub-active-gradient: linear-gradient(180deg, color-mix(in srgb, var(--pub-action-bg) 74%, white), color-mix(in srgb, var(--pub-action-bg) 90%, white) 45%, var(--pub-action-bg));
  --pub-outline-gradient: linear-gradient(180deg, white, color-mix(in srgb, var(--pub-action-bg) 8%, white));
  --pub-date-ink: color-mix(in srgb, var(--pub-event) 74%, black);
  --pub-focus: var(--pub-accent);
  --pub-action-text: #fff;
  --pub-action-icon-filter: brightness(0) invert(1);
  --pub-button-shadow: 0 3px 12px rgb(3 41 68 / 8%);
  --pub-card-rest-shadow: 1px 2px 15px rgb(3 41 68 / 7%);
  --pub-card-raised-shadow: 1px 18px 28px rgb(3 41 68 / 14%), 0 6px 10px rgb(3 42 69 / 6%);
}
#pub-header :is(.wf-nav-parent,.wf-nav-item>a)[aria-current] {
  color: var(--pub-action-bg); font-size: 19px; font-weight: 700;
}
#pub-header :is(.wf-nav-parent,.wf-nav-item>a)[aria-current]::after {
  height: 3px; background: var(--pub-action-bg);
}

/* Accordions share the menu hover surface, including their expanded state. */
#page-top .article-authors > summary { background: var(--pub-page); }
#page-top :is(.author-journal,.wf-author-accordion details,.article-authors,
  .paper-facts,.paper-extra,.topic-years) > summary:is(:hover,:focus-visible),
#page-top :is(.author-journal,.wf-author-accordion details,.article-authors,
  .paper-facts,.paper-extra,.topic-years)[open] > summary {
  background: var(--pub-soft); color: var(--pub-accent);
}

/* Gentle relief, with the original coral hue and no glossy band. */
#page-top :is(.wf-tabs>a,.service-tabs a),
#page-top .wf-news-switch button,
#pub-header .wf-header-actions a {
  background: var(--pub-soft-gradient); color: var(--pub-accent);
  box-shadow: var(--pub-button-shadow);
}
#page-top .wf-tabs>a[aria-current=page],
#page-top .service-tabs a:is([aria-current=page],[aria-selected=true]),
#page-top .wf-news-switch button[aria-pressed=true],
#pub-header .wf-header-actions>div:first-child>a,
#page-top .publisher-header .submit-manuscript {
  background: var(--pub-active-gradient); color: var(--pub-action-text);
  font-size: 19px; font-weight: 700;
  text-shadow: none;
  box-shadow: var(--pub-button-shadow);
}
#page-top :is(.wf-tabs,.service-tabs) a:is([aria-current=page],[aria-selected=true])
  :is(.wf-tab-icon,.service-tab-icon) { color: var(--pub-action-text); }
#page-top :is(.wf-tabs,.service-tabs) a:is([aria-current=page],[aria-selected=true])
  :is(.publisher-symbol-active,img) { filter: var(--pub-action-icon-filter); }
#page-top :is(.wf-tabs,.service-tabs) a:is([aria-current=page],[aria-selected=true]):hover,
#pub-header .wf-header-actions>div:first-child>a:hover {
  background: var(--pub-active-gradient); color: var(--pub-action-text);
}

#page-top :is(.press-hero,.wf-journals) button.press-back,
#page-top :is(.press-hero,.wf-journals) button.press-back:is(:hover,:focus-visible) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pub-hero-return-bg) 74%, white), color-mix(in srgb, var(--pub-hero-return-bg) 90%, white) 45%, var(--pub-hero-return-bg)); color: var(--pub-hero-return-ink);
}
#page-top .press-hero .press-arrow:disabled { opacity: .5; }

/* Keep the non-colour fixes: quiet edges, visible depth and a circular portrait. */
#page-top :is(.wf-quick-card,.wf-topic-link,.author-resource-card,.section-resource-card),
#page-top #publisher-navigation .wf-publisher-card { box-shadow: var(--pub-card-rest-shadow); }
#page-top :is(.wf-quick-card,.wf-topic-link,.author-resource-card,.section-resource-card),
#page-top :is(.wf-quick-card,.wf-topic-link,.author-resource-card,.section-resource-card):hover,
#page-top #publisher-navigation .wf-publisher-card,
#page-top #publisher-navigation .wf-publisher-card:hover { border-color: var(--pub-block-edge); }
#page-top .portal-card, #page-top .portal-card:hover { border-color: var(--pub-line); }
#page-top .wf-tabs>a, #page-top .wf-tabs>a:not([aria-current=page]):hover { border-color: transparent; }
#page-top #publisher-navigation .wf-publisher-card--contact {
  background: linear-gradient(145deg, color-mix(in srgb, var(--pub-action-bg) 2%, #fffaf5), color-mix(in srgb, var(--pub-action-bg) 9%, #fffaf5));
}
#page-top :is(.wf-latest time,.story-meta time,.news-card time,.news-date) { color: var(--pub-date-ink); }
#page-top .wf-sidebar-events .wf-event-date {
  color: var(--pub-text); background: color-mix(in srgb, var(--pub-event) 20%, white);
}
#page-top .wf-sidebar-events .wf-event-date::after {
  border-top-color: color-mix(in srgb, var(--pub-event) 20%, white);
}
#page-top :is(.wf-latest,.wf-sidebar-events) .wf-button,
#page-top #publisher-navigation .wf-partner-contact .wf-button,
#page-top :is(.wf-partner-banner,.wf-calendar-agenda) .wf-button {
  color: var(--pub-date-ink);
  border-color: color-mix(in srgb, var(--pub-action-bg) 65%, white);
  background: var(--pub-outline-gradient);
  box-shadow: inset 0 1px 0 white, 0 3px 7px -5px color-mix(in srgb, var(--pub-action-bg) 45%, transparent);
}
#page-top :is(.wf-latest,.wf-sidebar-events) .wf-button:hover,
#page-top #publisher-navigation .wf-partner-contact .wf-button:hover {
  background: linear-gradient(180deg, white, color-mix(in srgb, var(--pub-action-bg) 15%, white));
  border-color: color-mix(in srgb, var(--pub-action-bg) 65%, white); color: var(--pub-date-ink);
}
#page-top .wf-publisher-card-arrow { color: var(--pub-accent); }

#page-top .topic-section-navigation a[aria-current] {
  background: var(--pub-active-gradient); color: var(--pub-action-text);
  font-size: 19px; font-weight: 700;
}
#page-top .topic-section-navigation a[aria-current] span { color: inherit; font-size: inherit; font-weight: inherit; }
/* Keep lift and soft depth visible, including when animation is reduced. */
#page-top :is(.wf-tabs>a,.service-tabs a,.wf-quick-card,.wf-topic-link,
  .wf-publisher-card,.author-resource-card,.section-resource-card,.wf-news-card,.wf-news-lead),
#page-top #publisher-navigation .wf-publisher-card {
  position: relative;
  transition: translate .4s ease-out, box-shadow .4s ease-out;
}
@media (hover: hover) {
  #page-top :is(.wf-tabs>a,.service-tabs a,.wf-quick-card,.wf-topic-link,
    .wf-publisher-card,.author-resource-card,.section-resource-card,.wf-news-card,.wf-news-lead):hover,
  #page-top #publisher-navigation .wf-publisher-card:hover {
    transform: none; translate: 0 -4px;
    box-shadow: var(--pub-card-raised-shadow);
    z-index: 2;
  }
}
#page-top :is(.wf-tabs>a,.service-tabs a,.wf-quick-card,.wf-topic-link,
  .wf-publisher-card,.author-resource-card,.section-resource-card):is(:focus-visible,:has(:focus-visible)),
#page-top #publisher-navigation .wf-publisher-card:has(:focus-visible) {
  translate: 0 -4px;
  box-shadow: var(--pub-card-raised-shadow);
}
@media (prefers-reduced-motion: reduce) {
  #page-top :is(.wf-tabs>a,.service-tabs a,.wf-quick-card,.wf-topic-link,
    .wf-publisher-card,.author-resource-card,.section-resource-card,.wf-news-card,.wf-news-lead),
  #page-top #publisher-navigation .wf-publisher-card {
    transition: none;
  }
}

/* Preserve visible focus on both the restored blue surfaces and white pages. */
#page-top :is(a,button,summary,input,select,textarea):focus-visible { outline-color: var(--pub-focus); }
#page-top :is(.wf-journals,.section-journals) { --pub-focus: var(--pub-hero-ink); }
#page-top .wf-site-footer { --pub-focus: #fff; }
@media (forced-colors: active) {
  #page-top :is(.wf-tabs,.service-tabs) a:is([aria-current=page],[aria-selected=true]) {
    background: Highlight; color: HighlightText; outline: 2px solid Highlight;
  }
  #page-top :is(a,button,summary,input,select,textarea):focus-visible { outline-color: Highlight; }
}
