/* Shared header and footer for the UCSB Geotechnical Array Research sites.
   Colors: UCSB navy and gold. Title font: Noto Serif (successor of the
   Droid Serif used for the NEES@UCSB name on the old site). */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@700&display=swap');

:root {
  --ucsb-navy: #003660;
  --ucsb-gold: #FEBC11;
}
/* As on the old site: a blurred photo of the Garner Valley site fixed behind
   the page; the menu and the content (content.css .page, the portal's
   .portal-main) keep a fixed width of 1170px and only the background grows. */
body { margin: 0; background: #1D374B url(/shared/background-1.jpg) center 120px / cover no-repeat fixed; }

/* Header: full width, contents pinned to the left at any window size. */
.site-header { background: var(--ucsb-navy); border-bottom: 4px solid var(--ucsb-gold); }
.site-header__inner { padding: 14px 20px; }
.site-header__brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; }
.site-header__logo { width: 72px; height: 72px; flex: none; background: #fff; border-radius: 50%; padding: 3px; }
.site-header__text { display: flex; flex-direction: column; }
.site-header__title { font: 700 38px/1.1 "Noto Serif", "Droid Serif", Georgia, serif; color: #fff; }
.site-header__subtitle { font: 400 15px/1.4 Ubuntu, Arial, sans-serif; color: #d6e0ec; margin-top: 4px; }

/* Main menu: a bar under the title, drop-down lists on hover or keyboard focus. */
.site-nav { background: #002b4f; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; flex-wrap: wrap; padding: 0 12px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 10px 12px; color: #fff; text-decoration: none;
  font: 500 15px/1.2 Ubuntu, Arial, sans-serif; }
.site-nav > ul > li > a:hover, .site-nav > ul > li:focus-within > a { background: var(--ucsb-gold); color: var(--ucsb-navy); }
.site-nav li ul { display: none; position: absolute; left: 0; top: 100%; z-index: 1000; min-width: 260px;
  background: #fff; border: 1px solid #c9d3de; border-top: 3px solid var(--ucsb-gold); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
.site-nav li ul a { color: var(--ucsb-navy); padding: 8px 14px; font-size: 14px; }
.site-nav li ul a:hover { background: #eef3f8; }
.site-nav li.site-nav__sub a { padding-left: 30px; }

/* Footer, part 1: sponsor logo and funding acknowledgment on white. */
.site-footer { margin-top: 24px; font: 400 13px/1.5 Ubuntu, Arial, sans-serif; }
.site-footer p { margin: 0 0 8px; }
.site-footer__sponsors { background: #fff; color: #333; border-top: 1px solid #d8dee6;
  padding: 18px 20px 14px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; }
.site-footer__sponsor-logo img { display: block; height: 110px; width: auto; }
.site-footer__funding { flex: 1 1 420px; text-align: justify; }
.site-footer__sponsors a { color: var(--ucsb-navy); }
/* First paragraph (current funding) larger; the earlier-funding history stays small. */
.site-footer__funding p:first-child { font-size: 16px; line-height: 1.5; margin-bottom: 10px; }

/* Footer, part 2: copyright and UCSB seal on navy, right-aligned like the old site. */
.site-footer__bar { background: var(--ucsb-navy); color: #e8eef5; border-top: 4px solid var(--ucsb-gold);
  padding: 16px 20px; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.site-footer__legal { text-align: right; }
.site-footer__legal p { margin: 0 0 4px; }
.site-footer__bar a { color: #fff; text-decoration: underline; text-decoration-color: var(--ucsb-gold); text-underline-offset: 2px; }
.site-footer__bar a:hover { color: var(--ucsb-gold); }
.site-footer__seal img { display: block; width: 84px; height: 84px; background: #fff; border-radius: 50%; padding: 3px; }

/* The menu bar lines up with the content box below it. */
.site-nav { box-sizing: border-box; width: calc(100% - 40px); max-width: 1170px; margin: 0 auto; border-radius: 6px 6px 0 0; }
.site-nav > ul { padding: 0 16px; }

@media (max-width: 700px) {
  .site-nav { width: 100%; border-radius: 0; }
  .site-header__logo { width: 52px; height: 52px; }
  .site-header__title { font-size: 24px; }
  .site-header__subtitle { font-size: 12px; }
  .site-footer__bar { justify-content: flex-start; }
  .site-footer__legal { text-align: left; }
  .site-footer__seal img { width: 60px; height: 60px; }
  .site-nav a { padding: 8px 9px; font-size: 14px; }
}
