/* Shared public navigation and contact directory at the site's mobile menu breakpoint. */
@media screen and (max-width: 760px) {
  .site-header .nav-wrap,
  .cp-header .cp-nav,
  .blog-header .blog-navigation {
    width: min(calc(100% - 2rem), 42rem);
    min-height: 4rem;
    gap: clamp(.25rem, 1.8vw, .75rem);
  }

  .site-header .menu-toggle,
  .cp-header .cp-menu,
  .blog-header .blog-menu {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #18354a;
    font-weight: 600;
  }

  .site-header .header-contact,
  .cp-header .cp-header-callback,
  .blog-header .blog-header-callback {
    padding-inline: .85rem;
    border: 0;
    border-radius: .4rem;
    background: #17364c;
    color: #fff;
    box-shadow: none;
  }

  .ci-phone-strip .ci-phone-list {
    padding-block: 0;
  }

  .ci-phone-strip .ci-phone-list a {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
  }

  .ci-phone-strip .ci-phone-list a[href^="tel:"] {
    flex-flow: row wrap;
    gap: .2rem .6rem;
  }

  /* Keep native and script-managed disclosure states, including the no-JS blog menu. */
  .cm-home .site-header #main-nav.is-open,
  .cp-header #cp-navigation.is-open,
  .blog-js .blog-header #blog-nav.open,
  html:not(.blog-js) .blog-header #blog-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-content: start;
    padding: .4rem max(1.25rem, calc((100% - 42rem) / 2)) .9rem;
    border-top: 1px solid #d8dee0;
    border-radius: 0;
    box-shadow: 0 .5rem 1.25rem rgb(11 37 55 / 10%);
    background: #fff;
  }

  .cm-home .site-header #main-nav.is-open > a,
  .cp-header #cp-navigation > a,
  .blog-header #blog-nav > a,
  :is(#cp-navigation, #blog-nav) .credass-education-menu > summary,
  :is(#cp-navigation, #blog-nav) .credass-education-links > a {
    align-items: center;
    min-height: 2.75rem;
    margin: 0;
    padding: .6rem .125rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #17364c;
    font: 550 1rem/1.35 var(--ci-sans, system-ui, sans-serif);
    text-align: left;
  }

  :is(#cp-navigation, #blog-nav) .credass-education-menu > summary {
    justify-content: space-between;
    gap: 1rem;
  }

  :is(#cp-navigation.is-open, #blog-nav.open) .credass-education-links {
    margin: 0 0 .5rem;
    padding: 0 0 0 1rem;
    border: 0;
    border-left: 2px solid #d4bc87;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  :is(#main-nav, #cp-navigation, #blog-nav) .cm-mobile-product + :not(.cm-mobile-product),
  :is(#main-nav, #cp-navigation, #blog-nav) a.ci-menu-access:not(.ci-menu-access + .ci-menu-access) {
    border-top: 1px solid #d8dee0;
  }

  :is(.site-header, .cp-header, .blog-header) :is(#main-nav, #cp-navigation, #blog-nav) a[aria-current="page"] {
    color: #17364c;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #a7813b;
    text-decoration-thickness: 2px;
    text-underline-offset: .3em;
  }

  /* Links are grouped by their actual heading. Retain a finger-sized target on each. */
  footer:is(.home-index-footer, .cp-footer, .blog-footer, .credass-identity-footer)
    :is(.credass-footer-directory, .credass-footer-navigation, .home-footer-links,
        .credass-footer-shortcuts, .home-footer-legal, .blog-footer-bottom,
        .credass-identity-legal-links, .credass-public-profiles, .credass-institutional-heading) a {
    min-height: 2.75rem;
    margin: 0;
    padding: .35rem 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--nav-button-text);
    text-align: left;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 52%, transparent);
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
  }

  footer:is(.home-index-footer, .cp-footer, .blog-footer, .credass-identity-footer)
    .credass-footer-entries > a {
    justify-items: start;
    width: fit-content;
    text-decoration: none;
  }

  footer .credass-footer-entries > a strong {
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-color: color-mix(in srgb, currentColor 52%, transparent);
    text-decoration-thickness: 1px;
  }

  footer :is(.credass-footer-google, .credass-public-profiles, .credass-footer-shortcuts,
             .credass-identity-legal-links, .blog-footer-bottom > div),
  .cm-home .home-index-footer .home-footer-legal {
    gap: 0 1.15rem;
  }

  footer:is(.home-index-footer, .cp-footer, .blog-footer, .credass-identity-footer)
    :is(.credass-footer-navigation > div, .home-footer-links) {
    justify-items: start;
    gap: 0;
  }

  .cm-home .home-index-footer :is(.home-resource-fold, [data-home-secondary]) > summary {
    margin: 0;
    padding: .65rem 0;
    min-height: 3.125rem;
    border: 0;
    border-bottom: 1px solid #d4dfe3;
    border-radius: 0;
    background: transparent;
  }

  /* One common light field preserves the original colours of the official logos. */
  footer .credass-institutional-links ul {
    grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr));
    gap: 0;
    padding: .3rem;
    background: #fff;
  }

  footer .credass-institutional-links li > a {
    gap: .3rem;
    padding: .65rem .25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  footer .credass-institutional-links li > a:focus-visible { outline-offset: -3px; }
  footer .credass-public-profiles img { border-radius: 50%; }

  .credass-recovered-page #root nav[aria-label="Navigazione mobile"] {
    gap: 0;
    padding: .25rem 1rem .75rem;
  }

  .credass-recovered-page #root nav[aria-label="Navigazione mobile"] a[href]:not([hidden]),
  .credass-recovered-page #root nav[aria-label="Navigazione mobile"] button[aria-expanded],
  .credass-recovered-page #root header button[aria-expanded],
  .credass-recovered-page #root nav[aria-label="Menu mobile"] a[href]:not([hidden]) {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .credass-recovered-page #root nav[aria-label="Navigazione mobile"] a[href]:not([hidden]) {
    justify-content: flex-start;
    margin: 0;
    padding: .6rem 0;
    min-height: 2.75rem;
    background: transparent;
    color: #17364c;
    font-size: 1rem;
  }

  .credass-recovered-page #root nav[aria-label="Navigazione mobile"] div.flex:has(> button[aria-expanded]) + div {
    margin-inline: 0;
    padding: 0 0 .5rem 1rem;
    border: 0;
    border-left: 2px solid #d4bc87;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body:has(#document-intake) header nav > a[href]:not(:has(img)),
  body:has(#document-intake) footer a[href] {
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
}
