/* ===========================================================================
   flights/compensation/css/subtopbar.css — the flight-compensation SECTION
   sub-topbar: a second horizontal nav fixed directly beneath the sitewide
   quiescence topbar (which is fixed, 56px). Mirrors the Spanish site's nav.

   Uses the quiescence palette vars from homeV0.01.css (--panel-light, --border,
   --accent, --text, --text-dim, --accent-soft). No JS: the strip scrolls
   horizontally when the links don't fit (phones / small tablets), so there is no
   hamburger to wire and nothing inline (strict CSP).

   Body carries `has-topbar has-subnav`; the two fixed bars (56 + 46) are cleared
   by the padding-top below, which overrides topbar.css's has-topbar 56px.
   =========================================================================== */

body.has-topbar.has-subnav { padding-top: 102px; }

/* board.css gives .fc-main a big top padding to clear the fixed topbar on pages
   WITHOUT the sub-topbar (e.g. the section homepage before this bar existed). With
   the sub-topbar, the body padding already clears both bars, so tighten it. */
body.has-topbar.has-subnav .fc-main { padding-top: 24px; }

.fc-subnav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  height: 46px;
  z-index: 900;                 /* below the topbar (1000) + its drawer/backdrop */
  background: linear-gradient(180deg, var(--panel-light), var(--panel));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.fc-subnav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;        /* Firefox: hide the horizontal scrollbar */
  -webkit-overflow-scrolling: touch;
}
.fc-subnav__inner::-webkit-scrollbar { display: none; }   /* WebKit: hide it too */

.fc-subnav__link {
  flex: 0 0 auto;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.fc-subnav__link:hover,
.fc-subnav__link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  outline: none;
}
.fc-subnav__link[aria-current="page"] {
  color: var(--on-accent);
  background: var(--accent);
}

/* Skip link — visually hidden until focused (keyboard access to main content). */
.fc-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1300;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.fc-skip:focus { left: 0; }

@media (max-width: 560px) {
  .fc-subnav__link { font-size: .88rem; padding: 8px 11px; }
}
