/* Shared palette. All base colors come from PublisherSettings / Drupal UI. */
#page-top {
  --pub-secondary: #1282a2;
  --pub-event: #f4a261;
  --pub-muted: #515151;
  --pub-soft: color-mix(in srgb, var(--pub-secondary) 8%, white);
  --pub-soft-gradient: linear-gradient(160deg, color-mix(in srgb, var(--pub-secondary) 3%, white), var(--pub-soft));
  --pub-active-gradient: linear-gradient(110deg, var(--action-ink), var(--pub-secondary));
  --pub-block-edge: color-mix(in srgb, var(--pub-accent) 12%, transparent);
}
#page-top :is(.information-copy, .author-panel, .news-story-body, .article-body, .publisher-channel) {color:var(--pub-text)}
#page-top :is(.information-copy, .publisher-channel) :is(h2,h3,h4),
#page-top :is(.page-navigation-title, .author-resource-card strong, .portal-page-heading h1) {color:var(--pub-accent)}
#page-top .portal-page-heading h1 {font-size:clamp(30px,3.2vw,44px)}
#page-top .information-intro {background:var(--pub-soft-gradient);color:var(--pub-text)}
#page-top .information-intro:has(h2,h3,h4,h5,h6) {color:var(--pub-text)}
#page-top .author-resource-icon {color:var(--pub-secondary)}
#page-top .author-resource-card small {color:var(--pub-text);font-size:16px}
#page-top .news-card p {color:var(--pub-text);font-size:16px}
#page-top :is(.page-navigation a, .author-resource-navigation a):is(:hover,[aria-current=page]) {background:var(--pub-soft);color:var(--pub-accent)}
#page-top .portal-directory-return a {background:var(--pub-soft-gradient);color:var(--pub-accent)}
#page-top .wf-site-footer :is(h2,h3,strong) {color:inherit}
#page-top .press-hero .press-back {background:var(--pub-hero-return-bg,#ffd660);color:var(--pub-hero-return-ink,#000000);border-color:var(--pub-hero-ink,#ffffff)}
#page-top .press-hero .press-back:is(:hover,:focus-visible) {background:var(--pub-hero-return-bg,#ffd660);color:var(--pub-hero-return-ink,#000000);box-shadow:none}
#page-top .press-hero .press-back:focus-visible {outline:2px solid var(--pub-hero-ink,#ffffff);outline-offset:3px}
#page-top .press-hero .press-back [aria-hidden] {color:inherit;width:16px;height:16px}

/* The logo, progress track and home sidebar share the same container edge. */
#pub-header {padding-inline:0;color:var(--pub-accent)}
#pub-header .wf-header-inner, #pub-header .reading-progress {width:min(94%,var(--wf-width,1740px))}
#pub-header .reading-progress {inset-inline:0;margin-inline:auto;background:transparent;border-radius:4px}
#pub-header .reading-progress span {background:var(--progress-color)}
#pub-header .wf-logo strong {font-size:28px}
#pub-header .wf-global-links {--wf-menu-gap:clamp(16px,2vw,32px)}
#pub-header :is(.wf-nav-parent,.wf-global-links>.wf-nav-item>a) {font-size:20px}
#pub-header :is(.wf-search-toggle,.wf-global-links [data-wf-menu]) {background:var(--pub-soft);color:var(--pub-accent);border-color:var(--pub-block-edge)}
#pub-header .wf-global-links [data-wf-menu] {width:54px;height:54px;min-width:54px;border-radius:50%;padding:0;flex:none;box-shadow:0 3px 9px rgb(3 64 120 / 8%)}
.wf-hamburger {display:grid;gap:5px;width:24px}
.wf-hamburger>span {display:block;height:2px;border-radius:2px;background:currentColor}
#pub-header .wf-global-links [data-wf-menu]:is(:hover,[aria-expanded=true]) {background:var(--pub-accent);color:white;border-color:var(--pub-accent)}
#pub-header .wf-header-actions a {font-size:17px;background:var(--pub-soft-gradient);color:var(--pub-accent)}
#pub-header .wf-header-actions>div:first-child>a {background:var(--pub-active-gradient);color:white}
#pub-header .wf-header-actions a:hover {box-shadow:0 4px 12px rgb(3 64 120 / 18%)}
#pub-header :is(.wf-nav-children a,.wf-language-switcher a):hover,
#pub-header .wf-language-switcher a[aria-current=page] {background:var(--pub-soft);color:var(--pub-accent)}
#pub-header .wf-resource-links {display:contents}
#pub-header .wf-mobile-main {display:none}
#pub-header .wf-mobile-tools:empty {display:none}
@media(min-width:1181px) and (max-width:1600px) {
  #pub-header .wf-header-inner {gap:16px}
  #pub-header .wf-global-links {--wf-menu-gap:18px}
  #pub-header :is(.wf-nav-parent,.wf-global-links>.wf-nav-item>a) {font-size:18px}
  #pub-header .wf-header-actions a {min-width:98px;font-size:16px}
}
/* One menu is relocated into the hamburger at this breakpoint by portal-header.js. */
@media(max-width:1360px) {
  #pub-header .wf-header-inner {flex-wrap:wrap;gap:12px}
  #pub-header .wf-global-links {flex:0 0 auto}
  #pub-header .wf-global-links>.wf-nav-item {display:none}
  #pub-header #wf-resources {left:3%;width:94%;max-height:calc(100dvh - var(--header-height,160px) - 16px);grid-template-columns:1fr;padding:16px;overscroll-behavior:contain}
  #pub-header .wf-resource-links {display:none}
  #pub-header .wf-mobile-main {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}
  #pub-header .wf-mobile-main>.wf-nav-item {min-width:0;border-bottom:1px solid var(--pub-block-edge)}
  #pub-header .wf-mobile-main>.wf-nav-item>a,
  #pub-header .wf-mobile-main .wf-nav-parent {font:500 21px/1.4 var(--pub-heading);padding:12px;min-height:48px}
  #pub-header .wf-nav-branch {flex-wrap:wrap;justify-content:space-between}
  #pub-header .wf-submenu-toggle {width:44px;min-width:44px}
  #pub-header .wf-nav-children {position:static;flex-basis:100%;width:100%;max-height:none;overflow:visible;border:0;box-shadow:none;padding:0 8px 10px;background:var(--pub-soft)}
  #pub-header .wf-nav-children a {font:400 16px/1.5 var(--pub-body);padding:10px;min-height:44px}
}
@media(max-width:760px) {
  #pub-header .wf-header-inner, #pub-header .reading-progress {width:calc(100% - 24px)}
  #pub-header .wf-global-links {margin-left:0}
  #pub-header .wf-header-tools {margin:0 0 0 auto;width:auto}
  #pub-header .wf-header-actions {width:auto}
  #pub-header .wf-header-actions a {min-width:0;font-size:15px;padding:8px}
  #pub-header #wf-resources {left:12px;width:calc(100% - 24px)}
  #pub-header .wf-mobile-main {grid-template-columns:1fr}
  #pub-header .wf-mobile-tools {display:flex;flex-wrap:wrap;gap:14px;align-items:center;border-top:1px solid var(--pub-block-edge);padding-top:16px}
  #pub-header .wf-mobile-tools .wf-header-actions {flex-basis:100%;margin:0}
  #pub-header .wf-mobile-tools .wf-header-actions a {font-size:18px}
  #pub-header .wf-logo strong {font-size:27px}
}
@media(max-width:370px) {
  #pub-header .wf-header-inner {gap:10px}
  #pub-header .wf-logo strong {font-size:25px}
  #pub-header .wf-logo small {font-size:12px}
}

/* Compact homepage controls with readable copy and space between groups. */
.wireframe-page #publisher-wireframe {color:var(--pub-text)}
.wireframe-page .wf-intro .wf-intro-title {color:var(--pub-accent)}
@supports(background-clip:text) {
  .wireframe-page .wf-intro-gradient .wf-intro-title {background-image:var(--pub-active-gradient);color:transparent}
}
.wireframe-page #publisher-wireframe :is(h2,h3) {color:var(--pub-accent)}
.wireframe-page #publisher-wireframe .wf-panel-heading {font-size:clamp(28px,2.2vw,34px);line-height:1.25;margin-bottom:24px;font-weight:500}
.wireframe-page .wf-tabs>a {font-size:18px;font-weight:500;min-height:86px;gap:12px;padding:14px 20px;color:var(--pub-accent)}
.wireframe-page .wf-tabs>a[aria-current=page] {background:var(--pub-active-gradient);color:white}
.wireframe-page .wf-tabs>a:not([aria-current=page]):hover {border-color:color-mix(in srgb,var(--pub-accent) 38%,transparent)}
.wireframe-page :is(.wf-tab-icon,.wf-specialty-icon,.wf-quick-icon) {color:var(--pub-secondary)}
.wireframe-page .wf-tab-icon {width:44px}
.wireframe-page .wf-topic-directory {grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.wireframe-page .wf-topic-link {min-height:140px;padding:18px 12px;gap:12px;font-size:19px;font-weight:500;color:var(--pub-accent);overflow-wrap:anywhere}
.wireframe-page .wf-specialty-icon {width:56px}
.wireframe-page .wf-quick-card {min-height:176px;padding:16px 14px;gap:10px;justify-content:center}
.wireframe-page .wf-action-layout>.wf-card-grid {align-content:stretch;grid-auto-rows:1fr}
.wireframe-page .wf-quick-card strong {font:500 19px/1.3 var(--pub-heading);color:var(--pub-accent)}
.wireframe-page .wf-quick-card small {font:400 15px/1.45 var(--pub-body);color:var(--pub-text)}
.wireframe-page .wf-quick-icon :is(svg,img) {width:56px;max-width:56px;height:56px}
.wireframe-page .wf-quick-icon {height:60px;min-height:60px;flex-basis:60px;background:var(--pub-soft)}
.wireframe-page .wf-clear-icon-background :is(#publisher-navigation,#wf-panel-review) .wf-quick-icon,
.wireframe-page #author-route .wf-quick-icon {background:transparent}
.wireframe-page #author-route .wf-card-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wireframe-page .wf-tabs:focus {outline:none}
.wireframe-page #author-route .wf-quick-card {min-height:164px;padding:14px;gap:8px}
.wireframe-page #author-route .wf-quick-icon {height:56px;min-height:56px;flex-basis:56px}
.wireframe-page #author-route .wf-quick-card strong {font-size:18px}
.wireframe-page #author-route .wf-quick-card small {font-size:14px;max-width:30ch}
@media(max-width:540px){.wireframe-page #author-route .wf-card-grid {grid-template-columns:1fr}}
.wireframe-page .wf-publisher-intro {color:var(--pub-text);font-size:16px}
.wireframe-page .wf-publisher-intro h2 {font-size:26px}
.wireframe-page .wf-partner-banner {background:var(--pub-soft-gradient)}
.wireframe-page .wf-small-heading {font:400 18px/1.5 var(--pub-body);color:var(--pub-text);margin-bottom:22px}
.wireframe-page .wf-topic-caption {font-size:16px;color:var(--pub-text)}
.wireframe-page :is(.wf-home-section,.wf-news-feed)>h2 {font-size:28px}
.wireframe-page .wf-news-card h3 {font-size:20px}
.wireframe-page .wf-news-lead h3 {font-size:24px}
.wireframe-page .wf-news-card-copy p {font-size:16px;color:var(--pub-text)}
.wireframe-page .wf-news-switch button {font-size:18px;background:var(--pub-soft);color:var(--pub-accent)}
.wireframe-page .wf-news-switch button[aria-pressed=true] {background:var(--pub-active-gradient);color:white}
.wireframe-page .wf-news-controls a {color:var(--pub-accent);font-size:16px}
.wireframe-page .wf-news-card-media {background:var(--pub-soft-gradient);color:var(--pub-accent)}
.wireframe-page .wf-latest>h2, .wireframe-page .wf-sidebar-events>h2 {font-size:26px;line-height:1.25;margin-bottom:16px}
.wireframe-page .wf-latest h3 {font-size:18px;line-height:1.4}
.wireframe-page .wf-latest p {font-size:16px;line-height:1.5;color:var(--pub-text)}
.wireframe-page .wf-latest time {font-size:14px}
.wireframe-page .wf-latest>.wf-button {font-size:18px;color:var(--pub-accent);border-color:var(--pub-block-edge);background:var(--pub-soft-gradient)}
.wireframe-page :is(.wf-latest,.wf-sidebar-events)>h2::after {content:'';display:block;width:100%;height:5px;background:var(--progress-color);margin-top:10px;border-radius:2px}
.wireframe-page .wf-sidebar-events .portal-events a {border:0;background:transparent;border-radius:0;text-decoration:none}
.wireframe-page .wf-sidebar-events .portal-events img {border:1px solid var(--pub-block-edge);border-radius:12px;background:white}
.wireframe-page .wf-sidebar-events .wf-event-date {display:block;width:fit-content;margin-bottom:8px;padding:4px 7px;border-radius:6px;background:var(--pub-event);color:var(--pub-text);font:500 13px/1.4 var(--pub-body)}
.wireframe-page #publisher-wireframe .wf-journals :is(h2,h3) {color:var(--pub-hero-ink)}
@media(max-width:1180px) {
  .wireframe-page .wf-tabs>a {font-size:17px;padding:12px;gap:8px}
  .wireframe-page .wf-tab-icon {width:32px}
}
@media(max-width:900px) {
  .wireframe-page .wf-topic-directory {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px) {
  .wireframe-page .wf-tabs>a {font-size:17px;min-height:76px;padding:12px;gap:8px}
  .wireframe-page .wf-tab-icon {width:34px}
  .wireframe-page .wf-topic-directory {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .wireframe-page .wf-topic-link {font-size:18px;min-height:132px;padding:16px 10px}
  .wireframe-page .wf-specialty-icon {width:46px}
  .wireframe-page .wf-quick-card {min-height:164px;padding:12px 10px 16px}
  .wireframe-page .wf-quick-card strong {font-size:18px}
  .wireframe-page .wf-quick-card small {font-size:14px}
  .wireframe-page .wf-quick-icon {height:50px;min-height:50px;flex-basis:50px}
  .wireframe-page .wf-quick-icon :is(svg,img) {width:42px;height:42px}
}
@media(max-width:400px) {
  .wireframe-page .wf-tabs>a {font-size:16px;padding:10px;gap:6px}
  .wireframe-page .wf-tab-icon {width:28px}
}
@media(max-width:360px) {
  .wireframe-page .wf-tabs>a {grid-template-columns:1fr}
  .wireframe-page .wf-tab-icon {display:none}
  .wireframe-page .wf-topic-directory,.wireframe-page .wf-card-grid {grid-template-columns:1fr}
  .wireframe-page .wf-topic-link {min-height:124px;font-size:18px}
}
@media(min-width:1181px) and (max-width:1600px) {
  .wireframe-page .wf-tabs>a {padding-inline:16px;gap:10px}
  .wireframe-page .wf-tabs .wf-tab-icon {width:40px}
}
@media(forced-colors:active) {
  .wireframe-page .wf-intro-gradient .wf-intro-title {background:none;color:CanvasText}
}

/* A useful sidebar, with the same full-width coral heading rule as home news. */
@media(min-width:901px) {
  #page-top .main-layout.with-page-navigation {grid-template-columns:clamp(280px,24vw,340px) minmax(0,1fr)}
}
#page-top .page-navigation {padding:20px}
#page-top .page-navigation a {font-size:17px;line-height:1.5;padding:11px 10px}
#page-top :is(.page-navigation-title,.author-resource-navigation>h2,.publisher-sidebar>section>h2,.feed-aside>section>h2) {
  width:100%;margin:0 0 14px;padding:0 0 12px;border-bottom:5px solid var(--progress-color);font-size:26px;line-height:1.3;
}
#page-top .feed-aside>.section-heading {border-bottom:5px solid var(--progress-color);padding-bottom:12px;margin-bottom:14px}

/* Link decoration belongs to the card title, never to its description. */
.wireframe-page a.wf-quick-card:is(:hover,:focus-visible,:active),
#page-top a.author-resource-card:is(:hover,:focus-visible,:active) {text-decoration:none}
.wireframe-page a.wf-quick-card:is(:hover,:focus-visible,:active)>strong,
#page-top a.author-resource-card:is(:hover,:focus-visible,:active)>strong {
  text-decoration-line:underline;text-decoration-color:var(--pub-accent);text-decoration-thickness:2px;text-underline-offset:4px;
}
.wireframe-page a.wf-quick-card>small,#page-top a.author-resource-card>small {text-decoration:none}

/* Persist the active section under its label; keep the same marker on mobile. */
#pub-header :is(.wf-nav-parent,.wf-nav-item>a) {position:relative;padding-bottom:14px}
#pub-header :is(.wf-nav-parent,.wf-nav-item>a)[aria-current] {text-decoration:none}
#pub-header :is(.wf-nav-parent,.wf-nav-item>a)[aria-current]::after {
  content:'';position:absolute;inset-inline:0;bottom:2px;height:5px;border-radius:3px;background:var(--progress-color);
}
@media(max-width:1360px) {
  #pub-header .wf-mobile-main :is(.wf-nav-parent,.wf-nav-item>a)[aria-current] {width:fit-content;padding-bottom:16px}
  #pub-header .wf-mobile-main :is(.wf-nav-parent,.wf-nav-item>a)[aria-current]::after {inset-inline:12px;bottom:4px}
}
