/* Desktop identity inherited from the approved homepage and news composition. */
.secondary-page .sp-brand-art { display: none; }

@media (min-width: 1101px) {
  .secondary-page {
    --sp-ink: #1e3c78;
    --sp-muted: #567185;
    --sp-cyan: #28a4ba;
    --sp-line: #cbdde6;
  }
  .secondary-page :is(.sp-banner, .sp-news-banner) {
    position: relative;
    height: 232px;
    overflow: hidden;
    background: linear-gradient(110deg, #f8fbfd 0%, #f2f8fb 56%, #eaf4f9 100%);
  }
  .secondary-page .sp-news-banner { height: 290px; }
  .secondary-page .sp-news-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58px;
    background: #fff;
    border-bottom: 1px solid #dbe7ed;
  }
  .secondary-page .sp-brand-art {
    display: block;
    position: absolute;
    inset: 0 0 0 auto;
    width: min(860px, 76vw);
    overflow: hidden;
    pointer-events: none;
  }
  .secondary-page .sp-news-banner .sp-brand-art { bottom: 58px; }
  .secondary-page .sp-brand-art::before {
    content: "";
    position: absolute;
    left: 40px;
    right: 120px;
    bottom: 6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #91bcd24d 15%, #91bcd24d 80%, transparent);
  }
  .secondary-page .sp-brand-campus {
    position: absolute;
    right: 230px;
    bottom: 0;
    width: 560px;
    height: 197px;
    opacity: .52;
  }
  .secondary-page .sp-brand-ribbon {
    position: absolute;
    right: 0;
    bottom: -24px;
    width: 650px;
    height: auto;
    max-width: none;
    opacity: .68;
    filter: saturate(.8);
  }
  .secondary-page :is(.sp-banner, .sp-news-banner) > .sp-container {
    position: relative;
    height: 100%;
    z-index: 1;
    border: 0;
  }
  .secondary-page .sp-banner > .sp-container { padding-top: 65px; }
  .secondary-page :is(.sp-breadcrumb, .sp-news-breadcrumb) {
    top: 22px;
    left: 0;
    right: auto;
    gap: 6px;
    color: #567185;
    font-size: 12px;
    line-height: 21px;
  }
  .secondary-page .sp-news-banner-title { top: 65px; gap: 5px; }
  .secondary-page .sp-title,
  .secondary-page .sp-news-banner-title h1 {
    width: fit-content;
    color: #1e3c78;
    font-size: 44px;
    line-height: 62px;
    letter-spacing: 1px;
  }
  .secondary-page .sp-banner-en,
  .secondary-page .sp-news-banner-title .sp-banner-en {
    color: #567185;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: 1.1px;
  }
  .secondary-page .sp-banner > .sp-container > .sp-banner-en { margin: 5px 0 0; }
  .secondary-page .sp-banner-line,
  .secondary-page .sp-news-banner-title::after {
    width: 44px;
    height: 3px;
    background: #28a4ba;
  }
  .secondary-page .sp-banner-line { top: 169px; }
  .secondary-page .sp-news-banner-title::after { margin-top: 14px; }
  .secondary-page .sp-tabs { border-bottom: 0; box-shadow: inset 0 -1px #dbe7ed; }
  .secondary-page .sp-tabs > .sp-container { min-height: 58px; border-bottom: 0; }
  .secondary-page .sp-news-category-tabs {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    height: 58px;
    gap: 0;
  }
  .secondary-page :is(.sp-tab, .sp-news-category-tab) {
    min-height: 58px;
    height: 58px;
    min-width: 144px;
    width: auto;
    padding: 0 28px;
    justify-content: center;
    color: #567185;
    font-size: 16px;
    line-height: 26px;
  }
  .secondary-page :is(.sp-tab, .sp-news-category-tab).is-active { color: #1e3c78; background: #eaf2f6; font-weight: 700; }
  .secondary-page :is(.sp-tab, .sp-news-category-tab).is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: #28a4ba;
  }
  .secondary-page :is(.sp-tab, .sp-news-category-tab):hover { color: #216caf; background: #f4f8fa; }
  .secondary-page :is(.sp-tab, .sp-news-category-tab).is-active:hover { background: #eaf2f6; }
  .secondary-page .sp-section-title { color: #1e3c78; font-size: 30px; line-height: 42px; }
  .secondary-page .sp-heading-en { color: #567185; font-size: 11px; line-height: 18px; letter-spacing: 1.1px; }
  .secondary-page .sp-button { border-radius: 4px; }
  .secondary-page .sp-directory-pagination a { width: 40px; height: 40px; border: 0; color: #216caf; }
  .secondary-page .sp-directory-pagination a[aria-current] { background: #1e3c78; color: #fff; }
  .secondary-page :is(.sp-heading > a, .sp-catalog-link) { font-size: 14px; color: #216caf; }
  .secondary-page :is(.sp-heading > a, .sp-catalog-link) svg { width: 18px; height: 18px; }
  .secondary-page :is(input, select):focus-visible { outline: 2px solid #28a4ba; outline-offset: 3px; }
}

/* Other section headers use the approved news banner identity on desktop. */
@media (min-width: 1101px) {
  .secondary-page:not([data-secondary-design="news"]) .sp-banner {
    height: 220px;
    background: #169ac9 url("/assets/secondary/news-announcements-background-v2.svg") center / cover no-repeat;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner .sp-brand-art,
  .secondary-page:not([data-secondary-design="news"]) .sp-banner .sp-banner-line { display: none; }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner > .sp-container { padding-top: 65px; }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner .sp-title {
    color: #fff;
    font-family: "Noto Serif SC", serif !important;
    font-size: 44px;
    line-height: 62px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner > .sp-container > .sp-banner-en {
    width: fit-content;
    margin: 8px 0 0;
    color: #fff;
    font-size: 13px;
    line-height: 21px;
    letter-spacing: 1.5px;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner .sp-breadcrumb {
    top: 26px;
    left: auto;
    right: 0;
    color: #fff;
    font-size: 13px;
    line-height: 21px;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner .sp-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Overlay the existing sibling navigation without adding to the banner height. */
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs {
    position: relative;
    z-index: 2;
    height: 50px;
    margin-top: -87px;
    margin-bottom: 37px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs > .sp-container {
    height: 50px;
    min-height: 50px;
    gap: 48px;
    justify-content: flex-end;
    overflow: visible;
    border: 0;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs .sp-tab {
    width: auto;
    min-width: 96px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    background: transparent;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs .sp-tab.is-active,
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs .sp-tab:hover,
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs .sp-tab.is-active:hover {
    color: #fff;
    background: transparent;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs .sp-tab.is-active::after { display: none; }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs .sp-tab:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  .secondary-page:not([data-secondary-design="news"]) .sp-banner + .sp-tabs .sp-tab:focus-visible {
    outline-color: #fff;
    outline-offset: 3px;
  }

  /* Larger category sets get a separate row beneath the title and English label. */
  .secondary-page:is([data-secondary-section="training"], [data-secondary-section="development"], [data-secondary-section="ethics"]) .sp-banner + .sp-tabs {
    height: 40px;
    margin-top: -54px;
    margin-bottom: 14px;
  }
  .secondary-page:is([data-secondary-section="training"], [data-secondary-section="development"], [data-secondary-section="ethics"]) .sp-banner + .sp-tabs > .sp-container {
    height: 40px;
    min-height: 40px;
    gap: 20px;
    justify-content: flex-end;
  }
  .secondary-page:is([data-secondary-section="training"], [data-secondary-section="development"], [data-secondary-section="ethics"]) .sp-banner + .sp-tabs .sp-tab {
    height: 40px;
    min-height: 40px;
    font-size: 16px;
    line-height: 26px;
  }
}
