/* Site header — the <style> block of tch-website-181/components/header.hbs,
   lines 434-507, carried over declaration-for-declaration and in its original
   order. The only omission is the file's two @import url(...) lines for Bebas
   Neue and Roboto: layouts/base.jinja already links both families, so the
   faces are the same and the request is not made twice.

   This is a singleton component stylesheet. Nothing here is scoped or renamed,
   because in v1 these rules were global: the :root tokens, the .bg-tch-* /
   .text-tch-* / .hover\:* colour utilities and the .nav-link::after underline
   all applied document-wide from the moment the header rendered. */

  :root {
    --tch-primary: #F0BC5E;
    --tch-dark: #D4A142;
    --tch-light: #F5D084;
    --tch-accent: #2DD4BF;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
  }
  
  #ai_header {
    font-family: var(--font-body);
  }
  
  /* Navigation links should use Bebas Neue */
  .nav-link,
  .mobile-menu-item a,
  .site-button {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  /* Dropdown menu items should use Roboto */
  .dropdown-menu a,
  .mobile-submenu a {
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
  }
  
  /* Define color classes for Tailwind compatibility */
  .bg-tch-primary { background-color: #F0BC5E !important; }
  .bg-tch-dark { background-color: #D4A142 !important; }
  .bg-tch-light { background-color: #F5D084 !important; }
  .bg-accent { background-color: #2DD4BF !important; }
  .text-tch-primary { color: #F0BC5E !important; }
  .text-tch-dark { color: #D4A142 !important; }
  .border-tch-primary { border-color: #F0BC5E !important; }
  .border-tch-dark { border-color: #D4A142 !important; }
  .hover\:bg-tch-primary:hover { background-color: #F0BC5E !important; }
  .hover\:bg-tch-dark:hover { background-color: #D4A142 !important; }
  .hover\:border-tch-dark:hover { border-color: #D4A142 !important; }
  .hover\:text-tch-primary:hover { color: #F0BC5E !important; }
  .hover\:text-white:hover { color: #ffffff !important; }
  .focus\:ring-tch-primary:focus { --tw-ring-color: #F0BC5E; }
  
  .group:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--tch-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .nav-link:hover::after {
    width: 80%;
  }
  
  @media (max-width: 1023px) {
    .nav-link::after {
      display: none;
    }
  }

/* --------------------------------------------------------------------------
   NOT FROM v1. assets/css/theme.css sets `.container { padding-inline: 1rem }`,
   which v1 had no equivalent of. Logical and physical padding longhands cascade
   together, so that declaration lands after Tailwind's `.px-6` and would shrink
   the header gutter from v1's 24px to 16px. This restores the px-6 value the v1
   markup asks for, and stays correct if the theme.css rule ever goes away.
   -------------------------------------------------------------------------- */
#ai_header > .container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   NOT FROM v1 either, and load-bearing. assets/css/theme.css raises Tailwind's
   `.hidden` to `display: none !important` so its member-state JavaScript can
   toggle it. The v1 header is built on the `hidden lg:flex` pattern — the
   desktop rail and the sign-in / subscribe / account row are both
   `class="hidden lg:flex ..."` — and an !important `.hidden` beats the
   `.lg\:flex` media rule at every width, which would erase the entire desktop
   nav. These two rules put the lg: display variants back for the header only,
   at the same 1024px breakpoint Tailwind uses, so the bar renders as v1 did.
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  #ai_header .lg\:flex {
    display: flex !important;
  }

  #ai_header .lg\:hidden {
    display: none !important;
  }
}
