/* assets/nbsx/sections/dock.css — #nbsx-dock (blueprint v2 §2.1)
   The proof dock: a white block pulled 96px up over the hero's bottom edge,
   three equal tiles divided by hairlines, then the prestige line 48px below.
   Tokens come from core.css on .nbsx-sec. Motion here: transform on the arrow
   and the count-up run by sections/dock.js (both off under reduced motion). */

/* ── the section: lifted over the hero, transparent for the lifted band so the
      hero's canvas shows on both sides of the white block ─────────────────── */
.nbsx-dock.nbsx-sec{
  --nbsx-dock-lift:96px;
  z-index:2;                                   /* #nbsx-hero is z-index:1 */
  margin-top:calc(-1 * var(--nbsx-dock-lift));
  padding-block:0 clamp(48px,6vh,72px);
  background:linear-gradient(to bottom,transparent var(--nbsx-dock-lift),var(--bg) var(--nbsx-dock-lift));
}

/* ── tiles: the white block itself ───────────────────────────────────────── */
.nbsx-dock__tiles{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  background:var(--bg);
  border-top:1px solid var(--hair);
}
.nbsx-dock__tile{margin:0;padding:0;min-width:0;border-left:1px solid var(--hair)}
.nbsx-dock__tile:first-child{border-left:0}

.nbsx-dock__link{
  display:grid;grid-template-columns:minmax(0,1fr) 20px;grid-template-rows:minmax(0,1fr) auto;
  column-gap:16px;row-gap:12px;align-items:end;
  height:100%;padding:32px 28px;
  color:inherit;text-decoration:none;
}
.nbsx-dock__link:hover,.nbsx-dock__link:focus-visible{color:inherit;text-decoration:none}
.nbsx-dock__link:focus-visible{outline-offset:-4px}

/* numeral: the shared gradient numeral, bottom-aligned so the three tiles
   share one baseline whatever the caption does */
.nbsx-dock__link .nbsx-dock__num{grid-column:1;grid-row:1;align-self:end;justify-self:start;max-width:100%}
/* the intake tile carries a month name, not a figure: same weight and gradient,
   smaller so "Octubre 2026" fits the column on one line; padded to the numeral
   box height so its baseline still sits on the tiles' shared line */
.nbsx-dock__link .nbsx-dock__num--text{font-size:clamp(30px,3vw,38px);padding-top:calc(var(--t-num-l) - 1em);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nbsx-dock__cap{grid-column:1;grid-row:2;font-size:14px;line-height:1.4;color:var(--muted);min-height:calc(2 * 1.4em);align-self:end;transition:color .2s var(--ease)}
.nbsx-dock__link:hover .nbsx-dock__cap,.nbsx-dock__link:focus-visible .nbsx-dock__cap{color:var(--fg)}

.nbsx-dock__arrow{grid-column:2;grid-row:2;width:20px;height:20px;align-self:end;margin-bottom:2px;color:var(--indigo);transition:transform .2s var(--ease)}
.nbsx-dock__link:hover .nbsx-dock__arrow,.nbsx-dock__link:focus-visible .nbsx-dock__arrow{transform:translateX(4px)}

/* ── prestige line ───────────────────────────────────────────────────────── */
.nbsx-dock__prestige{
  display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;
  margin:48px 0 0;
  font-size:14px;line-height:1.5;color:var(--muted);
}
.nbsx-dock__prestige-text{flex:1 1 32ch;min-width:0}
.nbsx-dock__logos{display:inline-flex;align-items:center;gap:20px;flex:none}
.nbsx-dock__logo{display:block;height:22px;width:auto;max-width:96px;object-fit:contain;filter:grayscale(1);opacity:.75}

/* ── tablet ≤1024: same layout, numeral 40px ─────────────────────────────── */
@media (max-width:1024px){
  .nbsx-dock__link{padding:28px 20px}
  .nbsx-dock__link .nbsx-dock__num{font-size:40px}
  .nbsx-dock__link .nbsx-dock__num--text{font-size:28px;padding-top:calc(40px - 1em)}
}

/* ── mobile ≤700: no lift, three stacked rows with horizontal hairlines,
      numeral left, caption right; prestige wraps with the logos on their own row */
@media (max-width:700px){
  .nbsx-dock.nbsx-sec{margin-top:0;padding-block:0 48px;background:var(--bg)}
  .nbsx-dock__tiles{grid-template-columns:minmax(0,1fr)}
  .nbsx-dock__tile{border-left:0;border-top:1px solid var(--hair)}
  .nbsx-dock__tile:first-child{border-top:0}
  .nbsx-dock__link{grid-template-columns:auto minmax(0,1fr) 20px;grid-template-rows:auto;align-items:center;column-gap:16px;row-gap:0;padding:20px 0}
  .nbsx-dock__link .nbsx-dock__num{grid-column:1;grid-row:1;font-size:36px;align-self:center}
  .nbsx-dock__link .nbsx-dock__num--text{font-size:26px;padding-top:0}
  .nbsx-dock__cap{grid-column:2;grid-row:1;min-height:0;align-self:center;text-align:right}
  .nbsx-dock__arrow{grid-column:3;grid-row:1;align-self:center;margin-bottom:0}
  .nbsx-dock__prestige{margin-top:32px;gap:12px 16px}
  .nbsx-dock__prestige-text{flex-basis:100%}
  .nbsx-dock__logos{flex-basis:100%;gap:16px}
}

/* ── reduced motion: nothing the dock animates on its own is left ────────── */
@media (prefers-reduced-motion:reduce){
  .nbsx-dock__arrow,.nbsx-dock__cap{transition:none}
  .nbsx-dock__link:hover .nbsx-dock__arrow,.nbsx-dock__link:focus-visible .nbsx-dock__arrow{transform:none}
}
