/* ==========================================================
   Light-gray top navigation + navy footer bar with logo
   Load AFTER main.css (replaces the old sidebar/header).
   ========================================================== */

:root {
  --navy: #07294D;
  --nav-bg: #f5f6f7;          /* light gray (use #ffffff for white) */
  --nav-text: #3d4449;
  --gold: #E8A33A;
  /* Footer logo: the navy bar is exactly as tall as the diamond,
     which is ~70% of the logo image; the rays (top ~30%) stick out above. */
  --logo-h: 8.5em;
}

html { scroll-padding-top: 6em; }

/* ---------- Top navigation ---------- */
#topnav {
  background-color: var(--nav-bg);
  border-bottom: solid 1px rgba(210, 215, 217, 0.75);
  position: sticky;
  top: 0;
  z-index: 10000;
  font-family: "Roboto Slab", serif;
}
  #topnav > .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 110em;
    margin: 0 auto;
    padding: 0 6em;
    min-height: 4.5em;
  }

  #topnav .nav-title {
    border-bottom: 0;
    color: var(--nav-text) !important;
    font-size: 1.2em;
    white-space: nowrap;
  }
    #topnav .nav-title strong { color: inherit; }
    #topnav .nav-title:hover { color: var(--navy) !important; }

  #topnav ul { list-style: none; margin: 0; padding: 0; }
  #topnav ul li { padding: 0; }

  #topnav .nav-links { display: flex; align-items: center; gap: 0.25em; }

  #topnav .nav-links a,
  #topnav .nav-links .opener {
    user-select: none;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--nav-text) !important;
    cursor: pointer;
    display: block;
    font-family: "Roboto Slab", serif;
    font-size: 0.9em;
    font-weight: 400;
    height: auto;
    letter-spacing: 0.075em;
    line-height: 1.65;
    padding: 0.625em 1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease-in-out;
  }
    #topnav .nav-links a:hover,
    #topnav .nav-links .opener:hover,
    #topnav .nav-links a:focus-visible,
    #topnav .nav-links .opener:focus-visible,
    #topnav .nav-links a.current {
      color: var(--navy) !important;
      background: none;
    }
    #topnav .nav-links a.current {
      font-weight: 700;
      text-decoration: underline;
      text-decoration-color: var(--navy);
      text-underline-offset: 0.4em;
      text-decoration-thickness: 3px;
    }

  /* "People" dropdown */
  #topnav .has-submenu { position: relative; }
  #topnav .nav-links .opener { position: relative; padding-right: 2.25em; }
    #topnav .nav-links .opener:after {
      -webkit-font-smoothing: antialiased;
      font-family: 'Font Awesome 5 Free';
      font-weight: 900;
      content: '\f078';
      font-size: 0.75em;
      position: absolute;
      right: 1.1em;
      top: 50%;
      margin-top: -0.6em;
      line-height: 1.2;
      color: #9fa3a6;
      transition: transform 0.2s ease-in-out;
    }
  #topnav .has-submenu.open > .opener:after { transform: rotate(-180deg); }

  #topnav .has-submenu > ul {
    background-color: #ffffff;
    border: solid 1px rgba(210, 215, 217, 0.75);
    border-top: solid 3px var(--navy);
    border-radius: 0 0 0.375em 0.375em;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    min-width: 100%;
    padding: 0.5em 0;
    position: absolute;
    top: 100%;
  }
    #topnav .has-submenu > ul a { font-size: 0.8em; padding: 0.6em 1.25em; }

  @media screen and (min-width: 981px) {
    #topnav .has-submenu:hover > ul,
    #topnav .has-submenu:focus-within > ul,
    #topnav .has-submenu.open > ul { display: block; }
  }

  /* Hamburger */
  #topnav .nav-toggle {
    display: none;
    background: none;
    border: 0;
    border-radius: 0.375em;
    box-shadow: none;
    color: var(--nav-text) !important;
    cursor: pointer;
    font-size: 1em;
    height: 2.75em;
    line-height: 2.75em;
    padding: 0;
    width: 2.75em;
    text-align: center;
  }
    #topnav .nav-toggle:hover { background-color: rgba(210, 215, 217, 0.35); }
    #topnav .nav-toggle:before {
      -webkit-font-smoothing: antialiased;
      font-family: 'Font Awesome 5 Free';
      font-weight: 900;
      content: '\f0c9';
      font-size: 1.5em;
    }
    #topnav.menu-open .nav-toggle:before { content: '\f00d'; }
    #topnav .nav-toggle .label {
      position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
    }

  @media screen and (max-width: 1680px) { #topnav > .inner { padding: 0 5em; } }
  @media screen and (max-width: 1280px) { #topnav > .inner { padding: 0 4em; } }

  @media screen and (max-width: 980px) {
    #topnav .nav-toggle { display: block; }
    #topnav .nav-links {
      display: none;
      flex-basis: 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      border-top: solid 1px rgba(210, 215, 217, 0.75);
      padding: 0.5em 0 1em 0;
    }
    #topnav.menu-open .nav-links { display: flex; }
    #topnav .nav-links > li + li { border-top: solid 1px rgba(210, 215, 217, 0.5); }
    #topnav .nav-links a,
    #topnav .nav-links .opener { padding: 0.75em 0; width: 100%; }
    #topnav .nav-links .opener:after { right: 0.25em; }
    #topnav .has-submenu > ul {
      border: 0; box-shadow: none; padding: 0 0 0.5em 1em; position: static;
    }
    #topnav .has-submenu.open > ul { display: block; }
    #topnav .has-submenu > ul a { padding: 0.5em 0; }
  }

  @media screen and (max-width: 736px) {
    #topnav > .inner { padding: 0 2em; min-height: 4em; }
    #topnav .nav-title { font-size: 1em; }
    #topnav .nav-title span { display: none; }   /* "at Drexel University" */
  }

/* ---------- Footer bar with logo ---------- */
#site-footer {
  background-color: var(--navy);
  margin-top: calc(var(--logo-h) * 0.3 + 3em);   /* room for the rays */
  position: relative;
}
  #site-footer > .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    max-width: 110em;
    margin: 0 auto;
    padding: 0 6em;
    height: calc(var(--logo-h) * 0.70);   /* = diamond height */
    position: relative;
  }

  #site-footer .footer-logo {
    border-bottom: 0;
    display: block;
    flex-shrink: 0;
    align-self: flex-end;
    height: var(--logo-h);
    line-height: 0;
  }
    #site-footer .footer-logo img {
      display: block;
      height: 100%;
      width: auto;
    }

  #site-footer .footer-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85em;
    line-height: 1.6;
    text-align: right;
  }
    #site-footer .footer-text p { margin: 0; }
    #site-footer .footer-text a {
      border-bottom-color: rgba(255, 255, 255, 0.4);
      color: #ffffff !important;
    }
    #site-footer .footer-text a:hover { color: var(--gold) !important; }

  @media screen and (max-width: 1680px) { #site-footer > .inner { padding: 0 5em; } }
  @media screen and (max-width: 1280px) { #site-footer > .inner { padding: 0 4em; } }

  @media screen and (max-width: 736px) {
    :root { --logo-h: 6.5em; }
    #site-footer > .inner {
      padding: 0 2em;
      justify-content: flex-start;
    }
    #site-footer .footer-text { display: none; }
    #site-footer .footer-copy {
      background-color: var(--navy);
      border-top: solid 1px rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.8em;
      padding: 1.25em 2.5em;
    }
    #site-footer .footer-copy a { color: #ffffff !important; border-bottom-color: rgba(255,255,255,0.4); }
  }
  @media screen and (min-width: 737px) {
    #site-footer .footer-copy { display: none; }
  }

/* Old Editorial elements no longer used */
#sidebar, #header { display: none; }
