/* css/site-shell.css: the header's Reports menu, the phone menu's groups and the footer's four groups.
 *
 * The site plan of 25 Sep 2026, section 6, and the owner's decision 3: the menu lists what we sell, the same on phone and
 * desktop (Reports: Free report, Visibility report, Market report; Plans; How it works; FAQ; Sign in; the free report
 * button), and the footer is four groups (Products, Company, Help, Legal) with no version string, no scoreboard and no
 * local market data. The shell (shared/site-shell.html) links this file and its script from inside its own header, so
 * every page that wears the shell, the generated ones too, carries the rules the shell's markup needs, whatever else the
 * page loads. Tokens only; no coloured edge stripes (colour sits on a full border, a wash or a dot).
 */

/* ---- The Reports menu: a disclosure in the header (keyboard: Enter or Space opens it, Escape closes it) ---- */
.nav-reports { position: relative; display: flex; align-items: center; }
.nav-reports-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0; padding: 6px 0; background: none; border: 0; border-radius: var(--r-sm);
  color: inherit; font: inherit; font-size: 0.96rem; font-weight: 500; line-height: 1.2; cursor: pointer;
}
.nav-reports-toggle:hover, .nav-reports-toggle[aria-expanded="true"] { color: var(--gold); }
.nav-reports-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
/* the caret: a small chevron drawn by two borders, pointing down, then up while the menu is open */
.nav-caret {
  display: inline-block; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-1) var(--ease);
}
.nav-reports-toggle[aria-expanded="true"] .nav-caret { transform: translateY(2px) rotate(-135deg); }
.nav-reports-list {
  position: absolute; top: calc(100% + 16px); left: -16px; z-index: var(--z-dropdown);
  display: grid; gap: 2px; min-width: 260px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-2);
}
.nav-reports-list[hidden] { display: none; }
.nav .nav-reports-list a {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink); font-size: 0.96rem; font-weight: 500; white-space: nowrap;
}
.nav .nav-reports-list a:hover, .nav .nav-reports-list a:focus-visible { background: var(--surface-2); color: var(--gold); outline: none; }
.nav .nav-reports-list a[aria-current="page"] { color: var(--gold); }

/* the header between the phone menu (920 px and below) and the widest screens: the four doors and both actions fit in one
 * row at 921 px with room to spare, and the gaps only narrow there so nothing wraps or runs off */
@media (min-width: 921px) and (max-width: 1100px) {
  .site-header { gap: var(--s-4); }
  .site-header .nav { gap: var(--s-4); }
  .site-header .header-actions { gap: var(--s-3); }
}

/* ---- The phone menu: the same items as the desktop menu, the three reports under their own label ---- */
.mobile-menu .mobile-menu-label {
  margin: 0; padding: 10px 0 4px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.mobile-menu .mobile-menu-group { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mobile-menu .mobile-menu-group a { display: block; padding-left: var(--s-3); }

/* ---- The footer: its identity, then four groups (Products, Company, Help, Legal), each a column of links ---- */
.footer-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
.footer-groups .footer-id { grid-column: 1 / -1; }
.footer-groups .footer-id p { max-width: 36ch; margin: var(--s-2) 0 0; }
/* one wordmark (the site plan of 25 Sep, section 10): the footer's reads as the header's, at its weight and spacing */
.site-footer .footer-brand { font-weight: 700; letter-spacing: -0.01em; }
.site-footer .footer-groups nav.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: none; }
.site-footer .footer-groups nav.footer-col a { padding: 4px 0; white-space: normal; }
.site-footer .footer-groups nav.footer-col a::after { content: none; }
@media (min-width: 700px) {
  .footer-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-groups { grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); }
  .footer-groups .footer-id { grid-column: auto; }
}
/* a tap target of 44 by 44 on a phone (the review of f9da203b, L3; after the merge, 26 Sep): the short links ("FAQ",
   "Blog", "Plans") were 31 to 41 px wide; the box grows, the words stay where they were */
@media (pointer: coarse) {
  .site-footer .footer-groups nav.footer-col a { padding: 9px 0; min-width: 44px; min-height: 44px; box-sizing: border-box; }
}
/* the header's logo link, 44 tall at every size (reviewer B's L3 of 26 Sep: 143 by 33 on a phone); the header's own
   72 px (14 above and below) already holds it, so nothing moves */
.site-header .brand { min-height: 44px; }

/* ---- The "you are here" dot under the menu's current door ----
 * THE DOT'S LOOK LIVES WITH THE SHELL (the owner, 26 Sep: the gold dot showed under Plans and FAQ, but not under How it
 * works or Reports). It was drawn only by css/shimmer.css, which a page links from its own head, and /how-it-works,
 * /examples, /reports and the versus pages link none: there script.js's dot was an unstyled span, invisible, and as a
 * flex item it pushed the whole menu one gap to the left. The shell links this sheet from inside its own header, so every
 * page that wears the menu draws the dot the same way. (shimmer.css keeps its identical copy, so the pages that link it
 * need no new tag for it.) script.js places the dot under the current page's door, the Reports button for the three
 * report pages, at the centre of the door's words, and slides it there from the door of the page before. */
.nav-dot {
  position: absolute; bottom: -5px; left: 0; width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: radial-gradient(circle at 50% 35%, var(--shimmer-peak), var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 0 8px 1px rgba(215, 182, 93, .65);
  transform: translateX(-50%);
  opacity: 0; pointer-events: none;
  transition:
    left 430ms cubic-bezier(.34, 1.55, .54, 1),
    transform var(--dur-2) var(--ease),
    filter var(--dur-2) linear,
    opacity var(--dur-2) var(--ease);
  animation: navDotShimmer 2.4s ease-in-out infinite;
}
.nav-dot.is-visible { opacity: 1; }
.nav-dot.is-moving { transform: translateX(-50%) scaleX(1.6); filter: blur(0.5px); }
.nav-dot--instant { transition: none !important; }
@keyframes navDotShimmer {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(215, 182, 93, .5); }
  50%      { box-shadow: 0 0 12px 2px rgba(215, 182, 93, .95); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dot { animation: none; }
  .nav-dot.is-moving { transform: translateX(-50%); filter: none; }
}
