/* base.css — the shell: type, rhythm, navigation, footer and focus, on the
   tokens in tokens.css.

   Loaded by base.html last, so these rules win over the older shell rules in
   style.css that they restate (no class is renamed; templates, scripts and
   tests read those names). Redo 0 (2026-10-13): a larger type scale on two
   weights per family, a sidebar in three labelled groups, a five-slot bottom
   bar whose fifth slot opens the drawer, and calmer surfaces. */

/* ── Body and type ────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--w-body);
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  /* Exactly the four loaded faces render: a 600 on DM Sans resolves to its
     500, never a browser-made faux bold. */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
p { color: var(--muted); }
strong, b { font-weight: var(--w-body-strong); color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  color: var(--ink);
  letter-spacing: var(--track-heading);
  text-wrap: balance;
}
h1 { font-weight: var(--w-display-strong); line-height: 1.05; }
h2 { line-height: 1.12; }
h3 { line-height: 1.2; }
::selection { background: var(--ink); color: var(--bg); }
a { text-underline-offset: 3px; }
input, textarea { caret-color: var(--accent); }

/* ── Keyboard focus ───────────────────────────────────────────────────────── */
/* The rule in style.css covers a, button and form fields; a disclosure
   <summary> and anything given a tabindex are focusable too and had no ring. */
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.skip-to-main { transition: top var(--dur-hover) var(--ease); }

/* ── Ambient glow ─────────────────────────────────────────────────────────── */
/* The signed-in app's ground carries a faint pink-violet light at the top of
   the page (--glow-ambient), the room's one coloured lamp. It scrolls away
   with the page and sits under every surface. Logged-out pages have their own
   hero and none. */
.main-wrap:not(.main-wrap--no-nav) { background: var(--glow-ambient); background-repeat: no-repeat; }

/* ── Side navigation ──────────────────────────────────────────────────────── */
.sidenav {
  background: var(--surface-1);
  border-right: 1px solid var(--line-soft);
  transition-timing-function: var(--ease);
  transition-duration: var(--dur-ui);
}
.main-wrap { transition-timing-function: var(--ease); transition-duration: var(--dur-ui); }
.sn-top { border-bottom: 0; min-height: 76px; }
.sn-logo-img { height: 36px; }
.sn-nav { padding: 4px 0 12px; }

/* Group labels: the label role (12px, uppercase, tracked, muted). Groups are
   separated by space, not rules. */
.sn-sec {
  padding: 22px 20px 8px;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--w-body-strong);
  letter-spacing: var(--track-label);
  color: var(--muted);
}
.sn-sec::after { display: none; }
.sn-sec .sn-lbl { font-size: inherit; }

/* Items: 44px tall targets (Fitts; WCAG 2.5.8 needs 24). */
.sn-item {
  min-height: 44px;
  padding: 10px 12px;
  margin: 1px 8px;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: var(--text-nav);
  font-weight: var(--w-body-strong);
  letter-spacing: var(--track-nav);
  position: relative;
  transition: color var(--dur-hover) var(--ease), background var(--dur-hover) var(--ease);
}
.sn-item svg { width: 18px; height: 18px; }
.sn-lbl { font-size: inherit; transition: opacity var(--dur-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .sn-item:hover { color: var(--ink); background: var(--surface-2); }
}
/* Active: ink text on the raised surface, marked by the accent bar in the
   gradient, with the faintest wash of the accent fading out across the row
   (8% at the bar, gone by two thirds of the way). */
.sn-item.active {
  color: var(--ink);
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / .08), transparent 66%), var(--surface-2);
}
.sn-item.active::before {
  content: "";
  position: absolute; left: -8px; top: 10px; bottom: 10px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--gradient-accent-y);
}
.sn-item-accent { color: var(--ink); }
/* Sign out is a POST form (ADR 0018 D9). The form adds no box, and its
   button drops the browser's button chrome so it reads as the rows beside it. */
.sn-form { display: contents; }
button.sn-item {
  appearance: none; background: none; border: 0;
  font-family: inherit; line-height: inherit; text-align: left; cursor: pointer;
}
.sn-toggle { border-color: var(--line); transition: color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease); }
.sn-footer { border-top: 1px solid var(--line-soft); padding: 8px 0; }
/* Unread count: ink on the ground colour, 17:1. */
.sn-badge { background: var(--ink); color: var(--bg); font-weight: var(--w-body-strong); }

/* ── Flash messages ───────────────────────────────────────────────────────── */
.flash-container {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  max-width: calc(800px + 2 * var(--gutter));
}
.flash {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
}
.flash { display: flex; align-items: baseline; gap: 10px; }
/* A status carried by a dot, not a coloured edge. */
.flash::before {
  content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%;
  background: var(--muted); transform: translateY(-1px);
}
.flash-success::before { background: var(--success); }
.flash-error::before   { background: var(--error); }
.flash-warning::before { background: var(--warning); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
/* One quiet line of legal links on a hairline. */
footer {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px;
  margin-top: var(--space-section);
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: var(--text-small);
  text-align: left;
}
footer p { color: inherit; margin: 0; }
.footer-legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--dur-hover) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .footer-legal a:hover { color: var(--ink); text-decoration: underline; }
}
.footer-legal span { color: var(--faint); opacity: 1; margin: 0 10px; }
/* Room for the Signal button, fixed bottom-right: the footer's right edge
   keeps clear of it (24px offset + the ~110px pill + 12px). */
footer { padding-right: max(var(--gutter), 148px); }

/* ── Mobile bottom navigation ─────────────────────────────────────────────── */
.mobile-bottom-nav {
  background: var(--surface-1);
  border-top: 1px solid var(--line-soft);
}
.mobile-nav-item {
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: var(--w-body-strong);
  position: relative;
  transition: color var(--dur-hover) var(--ease);
}
.mobile-nav-item.active { color: var(--ink); }
.mobile-nav-item.active::before {
  content: "";
  position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 3px 3px;
  background: var(--gradient-accent-x);
}
@media (hover: hover) and (pointer: fine) {
  .mobile-nav-item:hover { color: var(--ink); }
}
/* "More" is a button in the bar (it was the floating hamburger, top-left):
   the same id and script, laid out as the fifth slot. */
.mobile-nav-toggle.mobile-nav-more {
  position: static;
  width: auto; height: auto;
  border: 0; border-radius: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.mobile-nav-more[aria-expanded="true"] { color: var(--ink); }

@media (max-width: 900px) {
  /* The drawer and the bar now share one breakpoint: below 900px the sidebar
     is a drawer, so the bar (which opens it) has to be there too. Before,
     769-900px had a drawer and no bar. */
  .mobile-bottom-nav { display: flex; }
  .mobile-bottom-nav-inner { flex: 1 1 auto; width: 100%; min-width: 0; }
  .mobile-nav-toggle.mobile-nav-more { display: flex; }
  .app-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bottom-nav {
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* No floating hamburger any more, so content starts at the top. */
  .main-wrap { padding-top: 0; }
  .app-shell { padding-top: 0; }
  .sidenav .sn-top { padding-left: 20px; }
  .signal-widget { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
  footer {
    padding-bottom: calc(24px + 64px + env(safe-area-inset-bottom, 0px));
    padding-right: var(--gutter);
  }
}
@media (max-width: 740px) {
  /* On a phone the Signal button is a 48px circle above the bar. */
  footer { flex-direction: column; }
}

/* ── Toasts ───────────────────────────────────────────────────────────────── */
.vx-toast {
  border-color: var(--line);
  animation-duration: var(--dur-ui);
  animation-timing-function: var(--ease);
}

/* A section bar with no tabs (an artist's one-page group) takes no space. */
.sec-tabs-wrap:not(:has(.sec-tab)) { display: none; }

/* ── Page headings in the app ─────────────────────────────────────────────── */
/* The larger scale, applied where pages name themselves. */
.page-title,
.dash-greeting-name,
.beat-title,
.bp-title { font-size: var(--text-h1); letter-spacing: var(--track-heading); }

/* ══════════════════════════════════════════════════════════════════════════
   Page shells: the artist dashboard and the beat page (redo 0)
   One primary action above the fold on each, secondary panels behind a
   disclosure that names what is inside (Von Restorff, Hick, progressive
   disclosure; docs/UX-AUDIT.md §1).
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dashboard-layout { gap: var(--space-block); }
.voc-greeting-wave > span { animation: none; }

/* The next step: a large surface with one filled button, and one of the
   few ambient glows: violet light falling from the top-right corner (style.css
   places and sizes it), never a halo around the card. */
.dash-hero-card {
  padding: clamp(28px, 4vw, 56px);
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}
.dash-hero-card::before { background: radial-gradient(circle, rgb(var(--accent-2-rgb) / .08), transparent 70%); }
.dash-hero-eyebrow {
  font-size: var(--text-label); font-weight: var(--w-body-strong);
  letter-spacing: var(--track-label); color: var(--muted); margin-bottom: 12px;
}
.dash-hero-title {
  font-size: var(--text-h2); font-weight: var(--w-display-strong);
  letter-spacing: var(--track-heading); line-height: 1.08; color: var(--ink);
}
.dash-hero-title em { font-style: normal; color: var(--ink); }
.dash-hero-sub { font-size: var(--text-lead); color: var(--muted); max-width: 46ch; }
.dash-hero-actions { gap: 12px; align-items: center; }

/* First run: a surface, its progress in ink. */
.fr-panel { background: var(--surface-1); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: clamp(18px, 2.4vw, 28px); }
.fr-title { font-size: var(--text-h3); }
.fr-bar { background: var(--surface-3); }
.fr-bar-fill { background: var(--ink); }

/* Stats: quiet numbers below the work, not above it. */
.dash-stat { background: var(--surface-1); border: 1px solid var(--line-soft); border-radius: var(--radius-card); }
@media (hover: hover) and (pointer: fine) {
  .dash-stat:hover { border-color: var(--line); transform: none; }
}
.dash-stat-value { font-family: var(--font-display); font-weight: var(--w-display-strong); color: var(--ink); }
.dash-stat-label { color: var(--muted); font-size: var(--text-small); text-transform: none; letter-spacing: 0; }

/* Suggestions: a disclosure, closed by default, its name on the summary. */
.dash-more { border-top: 1px solid var(--line-soft); padding-top: 4px; }
.dash-more:not(:has(.dash-attention--more > *)) { display: none; }
.dash-more-summary {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--text-h3);
  font-weight: var(--w-display); color: var(--ink);
}
.dash-more-summary::-webkit-details-marker { display: none; }
.dash-more-summary::after {
  content: ""; width: 9px; height: 9px; margin-left: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--dur-ui) var(--ease);
}
.dash-more[open] > .dash-more-summary::after { transform: rotate(-135deg) translateY(-1px); }
.dash-attention--more { margin-top: 12px; }

/* The founding offer: a sentence, not a banner. */
.launch-offer {
  background: none; border: 0; padding: 0;
  font-size: var(--text-small); color: var(--muted); max-width: 72ch;
}
.launch-offer-left { color: var(--ink); }

/* ── Beat page ────────────────────────────────────────────────────────────── */
.beat-head { gap: clamp(16px, 3vw, 40px); align-items: flex-start; }
.beat-head-cover { width: clamp(96px, 14vw, 200px); }
.beat-head-cover .cover-placeholder {
  width: clamp(96px, 14vw, 200px); height: clamp(96px, 14vw, 200px);
  border-radius: var(--radius-card);
}
.beat-head-title {
  font-family: var(--font-display);
  font-size: var(--text-h1); font-weight: var(--w-display-strong);
  letter-spacing: var(--track-heading); line-height: 1.02;
  margin: 4px 0 8px;
}
.beat-head-by { font-size: var(--text-body); color: var(--muted); margin-bottom: 16px; }
.beat-head-meta { gap: 6px; margin-bottom: 20px; }
.beat-chip,
.beat-chip-plain {
  background: var(--surface-2); border: 0; color: var(--muted);
  border-radius: var(--radius-pill); padding: 5px 12px;
  font-size: var(--text-small); font-weight: var(--w-body-strong);
}
.beat-chip { color: var(--ink); }
.beat-head .vx-player { max-width: 560px; }
.beat-head-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 20px 0 18px;
}
.beat-head-rule {
  background: none; border: 0; padding: 0; margin: 0 0 12px;
  color: var(--muted); font-size: var(--text-small);
}

/* Opening terms: the summary carries the shares; the wording opens below. */
.beat-terms {
  background: var(--surface-1); border: 1px solid var(--line-soft);
  border-radius: var(--radius-card); padding: 0; margin: 0;
}
.beat-terms-summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 14px 44px 14px 16px; min-height: 48px;
  cursor: pointer; list-style: none; position: relative;
}
.beat-terms-summary::-webkit-details-marker { display: none; }
.beat-terms-summary::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform var(--dur-ui) var(--ease);
}
.beat-terms[open] > .beat-terms-summary::after { transform: rotate(-135deg); margin-top: -2px; }
.beat-terms-summary .beat-terms-title {
  margin: 0; font-size: var(--text-label); font-weight: var(--w-body-strong);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted);
}
.beat-terms-glance { color: var(--ink); font-size: var(--text-small); font-weight: var(--w-body-strong); }
.beat-terms-sep { color: var(--faint); margin: 0 2px; }
.beat-terms-list { padding: 0 16px 0 34px; color: var(--muted); font-size: var(--text-small); }
.beat-terms-note { padding: 0 16px 16px; color: var(--muted); font-size: var(--text-small); }
.beat-terms-list strong { color: var(--ink); }

@media (max-width: 740px) {
  /* Phone: the cover sits beside the title, and the primary action spans the
     width so the thumb finds it (Fitts). */
  /* A grid with the cover beside the badges, title and producer; the facts,
     player, action and terms then take the full width. .beat-head-main is
     a plain <div>, so display: contents lays its children into the grid. */
  .beat-head { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; }
  .beat-head-main { display: contents; }
  .beat-head-main > * { grid-column: 1 / -1; }
  .beat-head-cover { grid-column: 1; grid-row: 1 / span 3; }
  .beat-head-main > .beat-head-badges { grid-column: 2; grid-row: 1; }
  .beat-head-main > .beat-head-title  { grid-column: 2; grid-row: 2; }
  .beat-head-main > .beat-head-by     { grid-column: 2; grid-row: 3; }
  .beat-head-cover,
  .beat-head-cover .cover-placeholder { width: 84px; height: 84px; }
  .beat-head-cover .cover-placeholder-genre { display: none; }
  .beat-head-title { font-size: var(--text-h2); }
  .beat-head-actions > .btn-gradient-lg { flex: 1 1 100%; justify-content: center; }
}

/* ── Target size (WCAG 2.5.8, 24px) for standalone text links ─────────────── */
/* Inline links inside a sentence are exempt; these stand alone. Measured
   under 24px tall in the headless audit before this rule. */
.beat-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.vx-pending-row > a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); }

/* Sidebar groups are role="group" containers (named by their label); they
   add no box of their own. */
.sn-group { display: contents; }

/* On a phone the Signal button floats above the bar; the page ends a button's
   height higher so it never covers the last line. */
@media (max-width: 900px) {
  .app-shell { padding-bottom: calc(72px + 64px + env(safe-area-inset-bottom, 0px)); }
}

/* ══════════════════════════════════════════════════════════════════════════
   Site bar and footer for logged-out pages (ui-overhaul-v1):
   templates/_partials/site_nav.html, site_footer.html, static/js/site-nav.js.
   Mobile-first; wide at 64rem.
   ══════════════════════════════════════════════════════════════════════════ */

/* Hidden from sight, kept for screen readers (the clip pattern, WebAIM). */
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A fixed bar: an in-page anchor lands below it with room to spare, not
   under it. Each target keeps the bar's height plus a 2rem gap above it
   (scroll-margin-top, CSS Scroll Snap 1 "scroll-margin"); on the landing the
   targets are the section headings, so the heading lands 32px under the bar.
   Measured with real clicks at 375/768/1440 (step 2d). */
html:has(.vx-nav) [id] { scroll-margin-top: calc(var(--nav-h) + var(--space-6)); }
html:has(.vx-nav.is-open) { overflow: hidden; }

.vx-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-inline: var(--pad-x);
  background-color: var(--bg);
  font-family: var(--font-body);
  transition: background-color var(--dur-3) var(--ease);
}
/* Over the hero: no fill; the hairline under the bar stays. */
.vx-nav.is-over:not(.is-open) { background-color: transparent; }
/* A page with no hero under the bar starts below it: the bar is fixed, so
   without this the first 72px of content would sit behind it. */
.vx-nav:not([data-vx-nav-hero]) ~ .main-wrap { padding-top: var(--nav-h); }

.vx-nav-bar {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: var(--grid-max);
  height: var(--nav-h);
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.vx-nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  flex: none;
}
.vx-nav-logo img { display: block; height: 1.75rem; width: auto; }

/* Links: ink at 60% (6.5:1 on --bg), full ink on hover, focus and the
   current page. */
.vx-nav-links { display: none; }
.vx-nav-links ul,
.vx-nav-menu ul { list-style: none; margin: 0; padding: 0; }
.vx-nav-link,
.vx-nav-menu-link {
  color: rgb(var(--ink-rgb) / .6);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease);
}
.vx-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  font-size: var(--fs-body);
}
.vx-nav-link:focus-visible,
.vx-nav-link[aria-current="page"],
.vx-nav-menu-link:focus-visible,
.vx-nav-menu-link[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .vx-nav-link:hover,
  .vx-nav-menu-link:hover { color: var(--ink); }
}

.vx-nav-actions { display: none; }
/* One accent fill on screen. Over the hero, the hero carries the filled
   button; with a quiet target in view (the landing's slab), the slab is the
   fill. In both the bar's CTA is an outline, and it changes over --dur-3,
   the same fade as the bar. */
.vx-btn.vx-nav-cta { transition-duration: var(--dur-3); }
.vx-nav.is-over .vx-btn-primary.vx-nav-cta,
.vx-nav.is-quiet .vx-btn-primary.vx-nav-cta {
  background-color: transparent;
  background-image: none;
  color: var(--ink);
  border-color: var(--line-control);
}
@media (hover: hover) and (pointer: fine) {
  .vx-nav.is-over .vx-btn-primary.vx-nav-cta:hover,
  .vx-nav.is-quiet .vx-btn-primary.vx-nav-cta:hover { background-color: var(--ink); background-image: none; color: var(--bg); border-color: var(--ink); }
}

.vx-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.vx-nav-toggle-close,
.vx-nav-toggle[aria-expanded="true"] .vx-nav-toggle-open { display: none; }
.vx-nav-toggle[aria-expanded="true"] .vx-nav-toggle-close { display: inline-flex; }
.vx-nav-toggle-open,
.vx-nav-toggle-close { align-items: center; }
.vx-nav-toggle-open { display: inline-flex; }

/* The menu: the rest of the screen under the bar, links at display size. */
.vx-nav-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  padding-block: var(--space-6) var(--space-7);
  max-width: var(--grid-max);
  margin-inline: auto;
}
.vx-nav-menu[hidden] { display: none; }
.vx-nav-menu-link {
  display: block;
  padding-block: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--w-display-strong);
  font-size: var(--fs-display-l);
  line-height: var(--lh-display);
  letter-spacing: var(--track-heading);
}
.vx-nav-menu-actions { display: flex; flex-direction: column; gap: var(--space-3); }

@media (min-width: 64rem) {
  .vx-nav-links { display: block; flex: 1 1 auto; }
  .vx-nav-links ul { display: flex; gap: var(--space-6); }
  .vx-nav-actions { display: flex; align-items: center; gap: var(--space-2); }
  .vx-nav-toggle,
  .vx-nav-menu { display: none; }
}

/* ── Site footer ──────────────────────────────────────────────────────────── */
/* Restates the shell's `footer` rule above (flex row, Signal clearance),
   which is for the signed-in shell. */
footer.vx-footer {
  display: block;
  margin: 0;
  padding: var(--space-8) var(--pad-x) var(--space-6);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: var(--fs-small);
}
.vx-footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: var(--grid-max);
  margin-inline: auto;
}
.vx-footer .vx-footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--w-display-strong);
  font-size: var(--fs-display-m);
  line-height: var(--lh-display);
  letter-spacing: var(--track-heading);
  color: var(--ink);
}
.vx-footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.vx-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--dur-2) var(--ease), text-decoration-color var(--dur-2) var(--ease);
}
.vx-footer-links a:focus-visible { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .vx-footer-links a:hover { color: var(--ink); text-decoration-color: currentColor; }
}
@media (min-width: 741px) {
  .vx-footer-inner { flex-direction: row; align-items: baseline; justify-content: space-between; }
}
