/* SERtool shared site styles (navbar / dropdown / footer / scroll buttons)
   extracted from the per-page <style> blocks; page-specific styles and
   per-page overrides remain inline after the common.css link. */

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  body {
    background-color: #f9fbfd;
    color: #2c3e50;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .navbar {
    background-color: #1a365d;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
    border-bottom: 1px solid #2d3748;
  }
  .logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  .version-tag {
    color: #90cdf4;
    font-size: 13px;
    position: absolute;
    right: 10px;
    top: 18px;
  }
  .nav-links {
    display: flex;
    list-style: none;
    margin: 0 auto;
  }
  .nav-links li {
    position: relative;
    margin: 0 20px;
  }
  .nav-links a {
    color: #e0e7ff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    display: block;
    transition: color 0.3s;
  }
  .nav-links a:hover,
  .nav-links > li:hover > a,
  .nav-links a.active {
    color: #ffffff;
    font-weight: 600;
  }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: #2d3748;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 4px;
  }
  .dropdown a {
    padding: 10px 20px;
    display: block;
    color: #cbd5e0;
    text-align: center;
  }
  .dropdown a:hover {
    background-color: #4a5568;
    color: white;
  }
  .nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 22px;
    justify-content: space-between;
    margin-left: 16px;
  }
  .hamburger span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
  }
  .scroll-buttons {
    position: fixed;
    right: 16px;
    bottom: 10vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
  }
  .scroll-buttons button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-color: rgba(26, 54, 93, 0.85);
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
  }
  .scroll-buttons button:hover {
    background-color: #1a365d;
    transform: scale(1.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  }
  footer {
    background-color: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 16px;
    font-size: 14px;
    margin-top: auto;
  }
@media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 60px;
      left: 0;
      right: 0;
      background-color: #1a365d;
      flex-direction: column;
      align-items: center;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
      margin: 0;
      z-index: 99;
    }
    .nav-links.active {
      max-height: 500px;
    }
    .nav-links li {
      margin: 12px 0;
      width: 100%;
      text-align: center;
      position: relative;
    }
    .dropdown {
      position: static !important;
      opacity: 1 !important;
      visibility: visible !important;
      transform: none !important;
      box-shadow: none;
      background-color: #2d3748;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      margin-top: 8px;
      border-radius: 6px;
      width: 80%;
      margin-left: auto;
      margin-right: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0;
    }
    .nav-links li:hover .dropdown,
    .nav-links li:focus-within .dropdown {
      max-height: 300px;
      padding: 8px 0;
    }
    .dropdown a {
      padding: 10px 0;
      text-align: center;
      font-size: 15px;
      color: #cbd5e0;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
      transition: background-color 0.2s;
    }
    .dropdown a:hover {
      background-color: #4a5568;
      color: white;
    }
    .hamburger {
      display: flex;
    }
    .scroll-buttons {
      right: 12px;
      bottom: 20vh;
    }
    .scroll-buttons button {
      width: 28px;
      height: 28px;
      font-size: 13px;
    }
    .page-title {
      font-size: 20px;
    }
    .page-sub {
      font-size: 13px;
    }
}

  footer a {
    color: #a0aec0; text-decoration: none;
  }
  footer a:hover {
    text-decoration: underline;
  }
