/* =========================================================================
   Site header (shared) — single source of truth for the page-top layout.

   Title left  : "Engineering\nEngines everything."
   Menu  right : Controller | Videos | More (Apple-style, bracketed by lines)
   Hover       : becomes bold
   Active page : stays bold

   Usage in any page:
     <link rel="stylesheet" href="/shared/site-header.css">
     ...
     <div id="site-header"></div>
     <script src="/shared/site-header.js"></script>

   Or call the function manually:
     <script>
       renderSiteHeader({ active: 'Controller' });
     </script>
   ========================================================================= */

.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding: 80px 0 30px;
    gap: 60px;
}

.site-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.005em;
    color: #1d1d1f;
}

.nav {
    border-top: 1px solid #1d1d1f;
    border-bottom: 1px solid #1d1d1f;
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
    font-size: 18px;
}

.nav a {
    font-weight: 400;
    transition: font-weight 0.15s ease;
}

.nav a:hover { font-weight: 700; }
.nav a.active { font-weight: 700; cursor: default; }

@media (max-width: 768px) {
    .top-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 20px;
    }
    .site-title { font-size: 22px; }
    .nav { font-size: 14px; padding: 10px 0; }
}