/* Keep native header actions visible in each institution theme. */
.site header .header-inner .header-actions,
.site header .header-actions > [class*="header-search_root"] {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  visibility: visible !important;
}
.site header .header-inner .header-actions :is(.header-access, button[class*="header-search_trigger"]) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  flex: 0 0 44px;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid currentColor !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #193b50 !important;
}
.site header .header-actions :is(.header-access, button[class*="header-search_trigger"]) svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor !important;
  fill: none !important;
}
.site header .header-actions .header-access > span { display: none !important; }
.site header .header-inner .header-actions :is(.header-access, button[class*="header-search_trigger"]):focus-visible {
  outline: 3px solid #1764a2;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .site header .header-inner > :is(.wordmark,.institution-name) { min-width: 0; flex-shrink: 1; overflow-wrap: anywhere; }
  .site header .header-inner, .site header .header-actions { column-gap: 4px; }
}

@media (max-width: 800px) {
  .site header .container.header-inner {
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    box-sizing:border-box;
    min-width:0;
    max-width:100%;
  }
  .site header .header-inner > a.institution-name {
    min-width:0 !important;
    flex:1 1 0% !important;
    white-space:normal;
    overflow-wrap:normal !important;
    word-break:normal;
  }
  .site header .header-inner > a.institution-name > :is(strong,span) {
    min-width:0;
    white-space:normal;
    word-break:normal;
  }
  .site header .institution-name > :is(img,svg) { max-inline-size:100%; }

}

@media(max-width:360px){.site:not(.a11y-on) header .header-inner > .institution-name strong{font-size:14px!important;line-height:1.2!important}.site:not(.a11y-on) header .header-inner > .institution-name > span:not([aria-hidden]){font-size:11px!important;line-height:1.2!important}}

@media (max-width: 800px) {
  .site .site-news-feed article.site-news-post.news-summary:has(> .news-summary-cover) {
    display: grid !important;
    grid-template-columns: minmax(0, 27%) minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: start;
    height: auto !important;
  }
  .site .site-news-feed article.site-news-post.news-summary > .news-summary-cover {
    grid-column: 1;
    position: relative !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 1;
    overflow: hidden;
  }
  .site .site-news-feed article.site-news-post.news-summary > .news-summary-cover img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
  }
  .site .site-news-feed article.site-news-post.news-summary:has(> .news-summary-cover) > .news-summary-copy {
    grid-column: 2;
    min-width: 0;
    margin-inline: 0 !important;
    overflow-wrap: anywhere;
  }
}

/* The two text rows set the height. The artwork floats in its own grid column. */
.site header .container.header-inner > a.institution-name[data-kdu-brand] {
  display: grid !important;
  position: relative;
  grid-template-columns: min(var(--kdu-mark-width, 2em), 36%) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 6px !important;
  row-gap: 2px;
  align-items: start !important;
  align-content: center;
  justify-content: start !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box;
  text-align: start;
}
.site header .container.header-inner > a.institution-name[data-kdu-brand] > strong,
.site header .container.header-inner > a.institution-name[data-kdu-brand] > span:not([aria-hidden]) {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-self: stretch;
  align-self: start !important;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}
.site header .container.header-inner > a.institution-name[data-kdu-brand] > strong { grid-row: 1 !important; }
.site header .container.header-inner > a.institution-name[data-kdu-brand] > span:not([aria-hidden]) { grid-row: 2 !important; }
.site header .container.header-inner > a.institution-name[data-kdu-brand="pseudo"]::before,
.site header .container.header-inner > a.institution-name[data-kdu-brand] > :is(img, .ekdc-header-mark) {
  display: block !important;
  grid-area: 1 / 1 / 3 / 2 !important;
  position: absolute !important;
  align-self: start !important;
  justify-self: end !important;
  inset: auto !important;
  top: var(--kdu-art-top, 0px) !important;
  inset-inline-end: var(--kdu-art-end, 0px) !important;
  transform: none !important;
  width: var(--kdu-art-width, 2em) !important;
  height: var(--kdu-art-height, 2em) !important;
  background-size: contain !important;
  mask-size: contain !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  object-fit: contain;
}
/* Legacy desktop headers fix their height at 78px. Allow longer text or larger fonts to expand it. */
@media (min-width: 801px) {
  .site header .container.header-inner > a.institution-name[data-kdu-brand] {
    flex: 1 1 auto;
    min-width: 0;
    grid-template-columns: var(--kdu-mark-width, 2em) minmax(0, 1fr) !important;
  }
  .site:not(.ekdc-public) header .container.header-inner:has(> a.institution-name[data-kdu-brand]) {
    height: auto !important;
    min-height: 78px;
    padding-block: 8px;
    box-sizing: border-box;
  }
}
/* Wrap the toolbar when the available brand column cannot fit a multiline title. */
@media (max-width: 440px) {
  .site header .container.header-inner:has(> [data-kdu-brand]) {
    flex-wrap: wrap;
  }
  .site header .container.header-inner > a.institution-name[data-kdu-brand] {
    flex-basis: min(100%, 15rem) !important;
    max-width: 100% !important;
  }
  .site header .container.header-inner:has(> [data-kdu-brand]) > .header-actions {
    margin-inline-start: auto;
  }
}
@media (max-width: 370px) {
  .site header .container.header-inner:has(> [data-kdu-brand]) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 4px;
  }
  .site header .container.header-inner > [data-kdu-brand] { width: 100%; max-width: 100% !important; }
  .site header .container.header-inner:has(> [data-kdu-brand]) > .header-actions { justify-self: end; }
}

/* Give enlarged text its own row before the menu, including on desktop. */
.site.a11y-on header .container.header-inner:has(> a.institution-name[data-kdu-brand]) {
  display: flex !important;
  height: auto !important;
  flex-wrap: wrap;
}
.site.a11y-on header .container.header-inner > a.institution-name[data-kdu-brand] {
  flex: 1 0 100% !important;
  max-width: 100% !important;
}
.site.a11y-on header .container.header-inner > a.institution-name[data-kdu-brand] > :is(strong, span:not([aria-hidden])) {
  max-width: none !important;
}
/* Stack when enlarged text and artwork can no longer share a narrow header. */
@media (max-width: 800px) {
  .site.a11y-on header .container.header-inner > a.institution-name[data-kdu-brand] {
    --kdu-mark-stacked: 1;
    overflow-x: clip;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: var(--kdu-mark-height, 2em) auto auto !important;
  }
  .site.a11y-on header .container.header-inner > a.institution-name[data-kdu-brand] > strong {
    grid-area: 2 / 1 !important;
    justify-self: center;
    text-align: center;
  }
  .site.a11y-on header .container.header-inner > a.institution-name[data-kdu-brand] > span:not([aria-hidden]) {
    grid-area: 3 / 1 !important;
    justify-self: center;
    text-align: center;
  }
  .site.a11y-on header .container.header-inner > a.institution-name[data-kdu-brand="pseudo"]::before,
  .site.a11y-on header .container.header-inner > a.institution-name[data-kdu-brand] > :is(img, .ekdc-header-mark) {
    grid-area: 1 / 1 !important;
    inset-inline-end: calc((100% - var(--kdu-mark-width, 2em)) / 2 + var(--kdu-art-end, 0px)) !important;
  }
}

/* The mobile toolbar already contains the accessibility action. */
.site header:has(.header-actions .header-access) .mobile-access-link,
.site header:has(.header-actions [data-accessibility-trigger]) :is(nav, .mobile-menu) [data-accessibility-trigger] {
  display: none !important;
}

@media (max-width: 700px) {
  [data-digital-id-callout] .digital-id-callout-inner {
    display: grid;
    grid-template-columns: clamp(74px, 25vw, 124px) minmax(0, 1fr);
    gap: 8px 14px;
    align-items: center;
  }

  [data-digital-id-callout] .digital-id-callout-icon {
    grid-area: 1 / 1 / span 2 / 2;
    place-self: stretch;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    object-fit: contain;
  }

  [data-digital-id-callout] .digital-id-callout-copy {
    grid-area: 1 / 2;
    overflow-wrap: anywhere;
  }

  [data-digital-id-callout] .button {
    grid-area: 2 / 2;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
  }
}

/* External services occupy the foot of the sidebar, below all working sections. */
nav.admin-navigation {
  display: flex;
  flex-direction: column;
}
.admin-navigation > * { flex-shrink: 0; }
.admin-navigation .kdu-admin-services {
  order: 999;
  display: grid;
  gap: .4rem;
  margin-block-start: auto;
  padding-block-start: 1rem;
}
.admin-navigation .kdu-admin-services a {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  box-sizing: border-box;
  padding: .5rem .8rem;
  border-radius: .65rem;
  background: #164c48;
  color: white;
  text-decoration: none;
  font-weight: 650;
}
.admin-navigation .kdu-admin-services a + a { background: #254569; }
.admin-navigation .kdu-admin-services a:hover { text-decoration: underline; }
.admin-navigation .kdu-admin-services a:focus-visible {
  outline: 3px solid #a6530a;
  outline-offset: 2px;
}
.admin-navigation .kdu-admin-services a::before {
  content: "";
  flex: 0 0 1.25rem;
  height: 1.25rem;
  background: currentColor;
  mask: var(--service-icon) center / contain no-repeat;
  -webkit-mask: var(--service-icon) center / contain no-repeat;
}
.admin-navigation .kdu-admin-services a[href^="https://faq."] {
  --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 6C9 4 5 4 2 5v14c3-1 7-1 10 1 3-2 7-2 10-1V5c-3-1-7-1-10 1Zm0 0v14'/%3E%3C/svg%3E");
}
.admin-navigation .kdu-admin-services a[href^="https://mail."] {
  --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E");
}
