/* card.css — the one card standard for every customer surface and the public pages (Nick, 2026-11-11 15:21/15:22/16:44;
   model: Market Home's "Carrier groups moving the market", market-home.css .mh-sec__head/.mh-sec__body).
     .rfa-card            the card (put it on the page's existing .card, or any block)
       .rfa-card__band    gray title band: .rfa-card__title, optional .rfa-card__sub, .rfa-card__tools on the right
         .rfa-card__tools .rfa-card__info ("i": how the card is measured; opens .rfa-card__pop) and
                          .rfa-card__menu ("⋮": the card's downloads)
       .rfa-card__body    white body; .rfa-card__filters is its first row when the card has filters
       .rfa-card__foot    blank footer band holding only .rfa-card__link, the card's one detail link
   A card with nothing to explain, filter or link is the band and the body alone (no tools, no foot).
   Uses tokens.css variables only, so it loads on the application and the public shell alike.
   Any change to this file re-pins every page that links shared/card.css?v= in the same PR. */
.rfa-card { display: flex; flex-direction: column; min-width: 0; overflow: visible; }
.rfa-card__band {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 4px;
  padding: 14px 20px 10px; background: var(--subtle); border-bottom: 1px solid var(--line);
  border-top-left-radius: inherit; border-top-right-radius: inherit;
}
.rfa-card__title { flex: 1 1 0; min-width: 0; margin: 0; font-size: var(--fs-h3); line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.rfa-card__tools { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rfa-card__sub { flex: 0 0 100%; order: 3; margin: 0; font-size: var(--fs-ui); line-height: 1.45; color: var(--ink-2); }
/* SoT 8.7: every interactive target is at least 44 x 44 px at every supported viewport. The "i" and the "⋮" are each a
   transparent 44 x 44 button; the visible icon (20 px circle, 24 px at 720 px and below; 28 px "⋮" square, 44 px below
   720 px) is the button's ::before, centred. Negative vertical margins give back the extra height so the band keeps the
   height it had with the small icons; the last tool's negative right margin keeps the icon where it sat against the
   band's right padding. The hit boxes never overlap: the tools' gap stays between the full 44 px boxes. */
.rfa-card__info, .rfa-card__menu {
  position: relative; isolation: isolate; flex: none; display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0;
  background: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.rfa-card__info::before, .rfa-card__menu::before {
  content: ""; position: absolute; z-index: -1; top: 50%; left: 50%; box-sizing: border-box; transform: translate(-50%, -50%);
}
.rfa-card__info { margin: -12px 0; color: var(--ink-3); font: 600 12px/1 var(--font-ui); }
.rfa-card__info::before { width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.rfa-card__menu { margin: -8px 0; color: var(--ink-2); font: 600 18px/1 var(--font-ui); }
.rfa-card__menu::before { width: 28px; height: 28px; border: 1px solid transparent; border-radius: 8px; background: none; }
.rfa-card__tools > .rfa-card__info:last-child { margin-right: -12px; }
.rfa-card__tools > .rfa-card__menu:last-child { margin-right: -8px; }
.rfa-card__info:hover, .rfa-card__info[aria-expanded="true"] { color: var(--ink); }
.rfa-card__info:hover::before, .rfa-card__info[aria-expanded="true"]::before { border-color: var(--ink-3); background: var(--inset); }
.rfa-card__menu:hover, .rfa-card__menu[aria-expanded="true"] { color: var(--ink); }
.rfa-card__menu:hover::before, .rfa-card__menu[aria-expanded="true"]::before { border-color: var(--line-strong); background: var(--surface); }
.rfa-card__info:focus-visible, .rfa-card__menu:focus-visible { outline: none; }
.rfa-card__info:focus-visible::before, .rfa-card__menu:focus-visible::before { outline: 2px solid var(--brand); outline-offset: 2px; }
.rfa-card__pop {
  position: absolute; z-index: 30; top: 100%; right: 12px; margin-top: 4px; width: min(340px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  box-shadow: var(--shadow-overlay, var(--shadow-card)); font-size: var(--fs-meta); line-height: 1.45; color: var(--ink-2);
}
.rfa-card__pop[hidden] { display: none; }
.rfa-card__pop > p { margin: 0 0 8px; }
.rfa-card__pop > p:last-child { margin-bottom: 0; }
.rfa-card__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; padding: 16px 20px; background: var(--surface); }
.rfa-card__body:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.rfa-card__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.rfa-card__foot {
  display: flex; align-items: center; min-height: 44px; margin-top: auto; padding: 0 20px; box-sizing: border-box;
  border-top: 1px solid var(--line); background: var(--surface);
  border-bottom-left-radius: inherit; border-bottom-right-radius: inherit;
}
.rfa-card__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; font-size: var(--fs-ui); }
@media (max-width: 720px) {
  .rfa-card__band { padding: 12px 16px 8px; }
  .rfa-card__body { padding: 14px 16px; }
  .rfa-card__foot { padding: 0 16px; }
  .rfa-card__menu { margin: 0; }
  .rfa-card__menu::before { width: 44px; height: 44px; }
  .rfa-card__tools > .rfa-card__menu:last-child { margin-right: 0; }
  .rfa-card__info { margin: -10px 0; }
  .rfa-card__info::before { width: 24px; height: 24px; }
  .rfa-card__tools > .rfa-card__info:last-child { margin-right: -10px; }
  .rfa-card__pop { right: 8px; left: 8px; width: auto; }
}
@media print { .rfa-card__tools, .rfa-card__pop { display: none !important; } }
