/* ==========================================================================
   Shared site chrome — navigation, footer, interaction states.

   Loaded by every page, after style.css on the inner pages. The nav and
   footer markup carries its own inline styling (so it renders identically
   everywhere); this file holds the parts inline styles cannot express:
   media queries, hover and focus states, and the reset that stops
   style.css's bare `footer` rule from reaching the new footer.
   ========================================================================== */

:root { --accent: #E07A28; }

/* --- Navigation ----------------------------------------------------------- */
[data-r="navtoggle"] { display: none; }

@media (max-width: 900px) {
  [data-r="navtoggle"] { display: block; }
  [data-r="navlinks"] { display: none !important; }
  [data-r="navlinks"][data-open="1"] {
    display: flex !important;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0 !important;
    background: #12100E;
    padding: 8px 28px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  [data-r="navlinks"][data-open="1"] > a {
    width: 100%;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #F7F4EF !important;
  }
}

@media (max-width: 640px) {
  [data-r="pad"] { padding-left: 20px !important; padding-right: 20px !important; }
}

/* --- Footer --------------------------------------------------------------- */
/* style.css styles a bare <footer> (centred, padded, small). The shared
   footer opts out of all three and lays itself out instead. */
footer.site-foot {
  text-align: left;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* --- Interaction states --------------------------------------------------- */
/* `!important` only where the same property is set inline on the element,
   which would otherwise win. */
.nav-link, .foot-link { transition: color .2s ease; }
.nav-cta { transition: filter .2s ease; }

.nav-link:hover  { color: #F7F4EF !important; }
.nav-cta:hover   { filter: brightness(1.08); }
.foot-link:hover { color: #F7F4EF !important; }

/* style.css underlines every link on hover; the chrome links opt out. */
.nav-link:hover, .nav-cta:hover, .foot-link:hover { text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent, #E07A28);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
