/* The shared app bar — shared surface #10 (2026-10-19). The ONE row of links that joins every
   app on apps.rstbuilders.com: the apps the person's role can open. ("Home" opened it until
   2026-10-27 — Alberto: "not needed"; the header brand is the link to Home now.)
   🔴 BYTE-IDENTICAL in cilio_app/assets, sf_app/assets and scorecards/app/assets — pinned by
   cilio_app/tests/test_app_bar.py. Look after The Shade Store (Suzanne): Jost, small caps
   spacing, no boxes, no shadows — the Home page's own tokens. NO RULE under the bar, nor under an
   app's sections row (Alberto, 2026-10-28: "we do not need the highlighted line"; the SF dashboard
   drew two, one under each row) — the current link's underline is the only line.
   It sits UNDER the page's header band, which holds the badge and ⏻ since 2026-10-26 — so the
   bar no longer keeps 150px free for them on its right (at 1280px that pushed its last link onto a
   second row). Scorecards keeps that room for its "All changes saved" note (its own style.css). */
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
.app-bar {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; row-gap: 6px;
  box-sizing: border-box; margin: 0;
  padding: 10px 28px;   /* ~45px tall; it was a 76px row until 2026-10-27 (Alberto: "reduce the vertical space") */
  background: #ffffff;
  font-family: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 13px; font-weight: 400; line-height: 1.3;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.app-bar a.app-bar-link {
  color: #6b6f75; text-decoration: none; white-space: nowrap;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.app-bar a.app-bar-link:hover { color: #1b1d20; border-bottom-color: #1b1d20; }
.app-bar a.app-bar-link.is-current { color: #1b1d20; font-weight: 500; border-bottom-color: #1b1d20; }
.app-bar a.app-bar-link:focus-visible { outline: 2px solid #1b1d20; outline-offset: 3px; }
@media (max-width: 700px) {
  .app-bar { column-gap: 18px; padding: 10px 16px; font-size: 12px; letter-spacing: 0.1em; }
}

/* ── A menu under an app's own link — Scorecards' pages (Alberto, 2026-10-27: "a scroll-down menu
   when hovering on 'Scorecards'"; they were a second row, .app-sections, until then). Markup:
   scorecards/app/app_bar.get_app_bar. Opens on hover or keyboard focus; a small chevron says it
   is there. 🔑 A touch screen has no hover, so there the pages sit inline after the link instead —
   otherwise a tap on "Scorecards" would navigate before the menu could ever be seen. */
.app-bar-menu { position: relative; display: flex; align-items: center; flex-wrap: wrap; column-gap: 16px; }
.app-bar-menu-list { display: none; }
.app-bar-menu-list a.app-bar-menu-link { color: #6b6f75; text-decoration: none; white-space: nowrap; }
.app-bar-menu-list a.app-bar-menu-link.is-current { color: #1b1d20; font-weight: 500; }
.app-bar-menu-list a.app-bar-menu-link:focus-visible { outline: 2px solid #1b1d20; outline-offset: -2px; }
@media (hover: hover) {
  .app-bar-menu > a.app-bar-link::after {
    content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 2px 3px 10px;
    border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
  }
  .app-bar-menu-list {
    position: absolute; top: 100%; left: -20px; z-index: 1100; min-width: 210px; padding: 10px 0;
    background: #ffffff; border: 1px solid #e6e6e3; box-shadow: 0 14px 30px rgba(27, 29, 32, 0.08);
  }
  .app-bar-menu:hover > .app-bar-menu-list,
  .app-bar-menu:focus-within > .app-bar-menu-list { display: block; }
  .app-bar-menu-list a.app-bar-menu-link { display: block; padding: 10px 20px; font-size: 12px; letter-spacing: 0.12em; }
  .app-bar-menu-list a.app-bar-menu-link:hover { color: #1b1d20; background: #f6f6f4; }
}
@media (hover: none) {
  .app-bar-menu-list { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; letter-spacing: 0.1em; }
  .app-bar-menu-list a.app-bar-menu-link.is-current { text-decoration: underline; text-underline-offset: 4px; }
}

/* ── An app's own pages / sections — the row under the app bar (the SF dashboard's sections since
   2026-10-19, Scorecards' pages since 2026-10-22). Same voice as the bar, one step quieter;
   `is-current` underlines the page being viewed. */
.app-sections {
  display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 10px 28px;
  background: #ffffff;
  font-family: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.app-sections .app-section-link { color: #6b6f75; text-decoration: none; white-space: nowrap; }
.app-sections .app-section-link:hover { color: #1b1d20; text-decoration: underline; text-underline-offset: 4px; }
.app-sections .app-section-link.is-current { color: #1b1d20; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) { .app-sections { padding: 10px 16px; gap: 6px 16px; } }

/* ── The shared footer (2026-10-22) — the Cilio dashboard's confidential footer made the standard
   (Alberto), in warm GRAPHITE instead of its navy (#0f172a): "make that blue more graphite… I need to
   feel more luxury". Brand in tracked capitals, hairline rules, one muted grey for the words; the red
   CONFIDENTIAL label keeps its warning colour. Markup: components/layout.get_site_footer; Home renders
   the same words. 🔑 120px at the sides on purpose: the chat and Gracie bubbles float in the bottom
   corners, and the footer is where a reader scrolls to — inset, it is never under them. On a phone
   the chat bubble and pill take the bottom-left and Gracie's column of dots the right edge (~210px
   tall), so there the room goes underneath and down the right.
   🔑 SLIM (Alberto, 2026-10-28: "it can use less vertical space"): 18px above and below, not 44px,
   and the centre takes the room between brand and version so the note stays ONE line wherever
   it fits (it wrapped at 500px). ~140px tall → ~80px. */
.site-footer {
  margin-top: 60px; padding: 18px 120px; box-sizing: border-box;
  background: linear-gradient(180deg, #2b2a29 0%, #1f1e1d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: #a8a6a2; font-size: 13px; font-weight: 300; line-height: 1.5;
}
.site-footer-content {
  max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 12px 32px; text-align: center;
}
.site-footer-left, .site-footer-right { flex: none; }
.site-footer-center { flex: 1 1 0; min-width: 260px; }
.site-footer-brand { color: #f4f2ee; font-weight: 500; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; }
.site-footer-year { margin-left: 12px; font-size: 13px; letter-spacing: 0.08em; color: #8f8c87; }
.site-footer-confidential {
  display: block; margin-bottom: 2px; color: #e5534b;
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
}
.site-footer-disclaimer { margin: 0 auto; max-width: 680px; letter-spacing: 0.02em; }
.site-footer-version {
  font-size: 11px; letter-spacing: 0.14em; padding: 5px 12px; color: #8f8c87;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 768px) {
  .site-footer { padding: 18px 72px 128px 16px; }
  .site-footer-content { flex-direction: column; }
  .site-footer-center { flex: none; min-width: 0; }
}
