/* Family view for guardians. */

/* The family header: the family's name, then a chip per child to show only
   theirs, beside the name on a computer. Plain on the page, so the next
   game below is the one navy block. */
.family-band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-5); }

.family-band-title { min-width: 0; }

.family-band h1 { font-size: 1.875rem; letter-spacing: -.02em; }

.family-band .band-back { color: var(--muted); }

.family-band .band-back:hover { color: var(--ink); }

.child-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.child-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--space-4);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: var(--text-label);
  font-weight: 600;
}

.child-chip:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }

/* The child shown: navy, white text. */
.child-chip[aria-current="page"] { background: var(--navy); box-shadow: none; color: var(--on-navy); }

/* "My family" (families/show): two columns on a computer, the next game
   and what needs the family on the left, what comes after, the money and
   the rest on the right; one column on a phone. */
.family-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; gap: 28px; }

.family-col { display: grid; gap: 28px; min-width: 0; }

.family-col > .hero { margin: 0; }

/* The next game (families/_next_game) on the shared hero: the opponent
   large in the display face, the meeting time (yellow) and the kick-off as
   two labelled figures, then each child's call-up in a raised strip and
   the actions on their own line. */
.family-next { flex-direction: column; align-items: stretch; gap: var(--space-4); padding: var(--space-5) 26px; }

.family-next :is(.hero-main, .hero-actions) { flex: none; }

.family-next .hero-title { font-family: var(--display); font-size: 2.75rem; font-style: italic; font-weight: 400; line-height: 1.05; letter-spacing: 0; text-transform: uppercase; }

/* The team and the day sit above the opponent, as the boards draw them. */
.family-next .hero-meta { margin-top: 10px; }

.family-next .hero-meta + .hero-title { margin-top: 6px; }

.family-next .hero-figure { gap: var(--space-2) 36px; margin-top: var(--space-4); }

.hero-time { display: flex; flex-direction: column; gap: 2px; }

.hero-time small { color: var(--on-navy-muted); font-size: .75rem; }

.family-next .hero-time strong { font-size: 2.25rem; line-height: 1.1; }

.hero-time.meeting strong { color: var(--yellow); }

.family-next .hero-note { margin-top: var(--space-3); }

.family-next .hero-note .hero-where { flex-basis: 100%; }

/* Each child's call-up, in a strip on the raised navy. */
.family-next .family-call-ups { flex: 1 1 100%; margin: 0; padding: 10px var(--space-3); border-radius: var(--radius); background: var(--navy-2); font-size: var(--text-label); }

.family-next .family-call-ups .text-btn { color: var(--on-navy); text-decoration: underline; }

.family-next .availability-answer { min-height: 48px; color: var(--on-navy); }

/* "How to get there": a raised button that opens directions in the map app. */
.hero-venue { flex: none; }

/* "See game": a plain link on navy beside the buttons (laptop only; on a
   phone the opponent's name is the way to the game). */
.family-next .hero-link { display: inline-flex; align-items: center; min-height: 48px; padding-inline: var(--space-2); color: var(--on-navy); font-weight: 600; }

.family-next .hero-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* What the parent does at the game, as plain words on navy. */
.family-next .hero-roles { flex: 1 1 100%; margin: 0; color: var(--on-navy-muted); font-size: var(--text-small); }

.family-next .hero-roles .agenda-role { padding: 0; background: none; color: inherit; }

.family-next .hero-roles .agenda-role + .agenda-role::before { content: " · "; }

/* No game coming up: the quiet hero. */
.family-next.calm .hero-title { font-family: var(--font); font-size: 1.375rem; font-style: normal; font-weight: 700; }

/* The home's sections: the small heading over each list or card. */
.family-section .section-title { margin-inline: var(--space-2); }

.family-section .section-title a { color: var(--blue); }

/* "Needs you": a clock while it waits on the family; a muted tick when
   nothing does. */
.waiting-mark { display: inline-flex; color: var(--muted); }

.row-item.is-calm .row-lead { color: var(--muted); }

.row-item.is-calm .row-title { color: var(--muted); font-weight: 500; }

/* A state at the end of an "After that" line: plain grey words. */
.row-state { color: var(--muted); font-size: var(--text-small); font-weight: 600; }

/* "Payments": the amount still to pay as one figure, the note, two buttons. */
.family-pay .section-card { padding: 18px 20px; }

/* The kit's line: only on a phone, where the bar has no room for it. */
.family-kit-link { display: none; }

.pay-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) 10px; margin: 0; }

.pay-figure strong { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }

.pay-figure span, .family-pay-note { color: var(--muted); font-size: var(--text-label); }

.family-pay-note { margin: var(--space-1) 0 0; }

.pay-actions { display: flex; gap: var(--space-2); margin-top: var(--space-4); }

.pay-actions .btn { flex: 1; border-color: transparent; background: var(--surface-3); color: var(--ink); }

.pay-actions .btn:hover { background: var(--line); }

/* What the parent does at a game, in the home's next-game hero (FamiliesHelper#agenda_roles). */
.agenda-role { padding: 3px var(--space-2); border-radius: 5px; background: var(--surface-3); color: var(--muted); font-size: var(--text-small); font-weight: 700; }

.family-empty { padding: 10px; }

@media (max-width: 700px) {
  .family-band { margin-bottom: 18px; }

  .family-band h1 { font-size: var(--text-title-phone); }

  .child-chip { height: 34px; padding: 0 14px; }

  .family-home, .family-col { gap: var(--space-5); }

  .family-next { padding: 20px; }

  .family-next .hero-title { font-size: 2.125rem; overflow-wrap: break-word; }

  .family-next .hero-figure { gap: var(--space-2) 28px; }

  .family-next .hero-time strong { font-size: 1.875rem; }

  /* The answer fills the line; "How to get there" is the pin alone beside it. */
  .family-next .hero-actions .btn.primary { flex: 1 1 0; }

  .hero-actions .hero-venue.btn { flex: 0 0 52px; padding: 0; }

  .family-next .hero-link { display: none; }

  .hero-venue-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .family-pay .section-card { padding: var(--space-4); }

  .family-kit-link { display: block; }

  .pay-figure strong { font-size: 1.5rem; }

  .pay-actions .btn { min-height: var(--control-height-lg); }
}

/* A shop item's photo (ShopsHelper#shop_photo), on the shop's cards and
   its order sheet. */
.shop-photo {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: cover;
  transition: transform .15s, box-shadow .15s;
}

/* No photo yet: the shirt on the club's tint, the same size as a photo. */
.shop-placeholder { align-items: center; justify-content: center; background: linear-gradient(160deg, var(--surface-3), var(--line)); color: var(--faint); }

/* The order sheet: a bigger photo, then tap buttons for the child and the
   size, and one button with the total. */
.shop-sheet-photo { display: flex; width: 100%; aspect-ratio: 4 / 3; margin: 6px 0 18px; border-radius: 10px; object-fit: cover; }

.shop-sheet-photo.shop-placeholder { aspect-ratio: 2 / 1; }

.modal .shop-sheet { margin-top: 0; }

.choices { display: flex; flex-wrap: wrap; gap: var(--space-2); min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }

.choices legend { margin-bottom: var(--space-2); color: var(--ink); font-size: var(--text-small); font-weight: 700; }

.choices .choice { position: relative; margin: 0; }

/* The radio stays in the page, for the keyboard and the browser's "required". */
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

.choice span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 9px var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.choice strong { color: var(--ink); font-size: var(--text-body); }

.choice small { margin-top: 2px; color: var(--muted); font-size: var(--text-small); }

.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue); }

.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.choice.out span { background: var(--surface-2); opacity: .5; }

.choice.out input { cursor: not-allowed; }

.sheet-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--text-small); }

.sheet-foot { display: flex; align-items: flex-end; gap: var(--space-3); margin-top: var(--space-1); }

.sheet-foot .sheet-qty { gap: 6px; margin: 0; color: var(--ink); font-size: var(--text-small); font-weight: 700; }

.sheet-qty select { width: 84px; }

.sheet-foot .btn { flex: 1; }

/* "Arriving on…" or "Sold out" under a size's price. */
.choice .choice-note { color: var(--warn); font-weight: 650; }

/* Payments (families/_money): two columns on a computer, what is to pay
   and the open charges on the left, how to pay and what was paid on the
   right; one column on a phone, in that order. */
.family-money { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: var(--space-5); }
.family-money .family-col { gap: var(--space-5); }

@media (max-width: 960px) {
  .family-money { grid-template-columns: minmax(0, 1fr); }
}

/* What is to pay, on the hero: a plain grey label (not the hero's yellow
   eyebrow), the figure large in yellow, a line per notice still waiting
   for the office with its cancel as a white link, then "I've paid". */
.money-hero { flex-direction: column; align-items: stretch; gap: 10px; margin: 0; padding: var(--space-5) 28px; }
.money-hero :is(.hero-main, .hero-actions) { flex: none; }
.money-hero .hero-eyebrow { color: var(--on-navy-muted); font-size: var(--text-label); font-weight: 400; letter-spacing: 0; text-transform: none; }
.money-hero .hero-eyebrow::before { content: none; }
.money-hero .hero-figure { margin-top: 6px; }
.money-hero .hero-figure strong { color: var(--yellow); font-size: 3.5rem; }
.money-hero .hero-actions { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.money-hero .hero-actions .btn { margin-top: 6px; }
.money-claim { color: var(--on-navy-muted); font-size: var(--text-label); line-height: 1.5; }
.money-cancel-form { display: inline; }
.money-cancel { padding: 0; border: 0; background: none; color: var(--on-navy); font-weight: 600; }
.money-cancel:hover { text-decoration: underline; text-underline-offset: 3px; }

/* An open charge: the amount over its state on the right; in a narrow
   list both go under the title, side by side (blocks.css), so a long
   translated state never squeezes the description. */
.charge-list .row-aside { flex-direction: column; align-items: flex-end; gap: var(--space-1); font-size: var(--text-body); }
@container (max-width: 460px) {
  .charge-list .row-aside { flex-direction: row; align-items: center; gap: var(--space-3); }
}

/* How to pay: each way's name over its value, "Copy" on the right and
   whether it worked under the line. Only the description can be edited,
   so only it shows a line under the text. */
.pay-to .payment-copy { padding: var(--space-3) var(--space-4); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label copy" "value copy" "status status"; align-items: center; gap: 2px var(--space-4); }
.payment-copy label { display: block; grid-area: label; margin: 0; color: var(--muted); font-size: var(--text-small); font-weight: 400; }
.payment-copy input { grid-area: value; min-height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: var(--text-body); font-weight: 700; text-overflow: ellipsis; }
.payment-copy input:not([readonly]) { border-bottom: 1px dashed var(--line-strong); }
.payment-copy input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.payment-copy .small-btn { grid-area: copy; }
.payment-copy-status { grid-area: status; font-size: var(--text-small); line-height: 1.5; overflow-wrap: anywhere; }
.payment-copy-status:empty { display: none; }
.pay-to .payment-copy + .payment-copy { border-top: 1px solid var(--line-soft); }
.pay-to-note { padding: 0 var(--space-4) 14px; color: var(--muted); font-size: var(--text-small); }

/* What was paid: the amount and the chevron stay on the right at every
   width. On a phone the first three, then a link that shows the rest. */
.paid-list .row-item { flex-wrap: nowrap; }
.paid-list .row-main { flex: 1 1 0; }
.paid-list .row-aside { order: 0; flex-basis: auto; font-size: var(--text-body); }
.paid-list .row-item > svg:last-child { display: block; }
.paid-fold { display: none; }
.money-history { margin: var(--space-3) var(--space-2) 0; font-size: var(--text-small); }
.money-history a { color: var(--blue); font-weight: 600; }

@media (max-width: 700px) {
  .money-hero { padding: 20px; }
  .money-hero .hero-figure strong { font-size: 3rem; }
  .money-hero .hero-actions { align-items: stretch; }
  .paid-fold { display: block; margin-top: var(--space-3); text-align: center; }
  .paid-fold summary { color: var(--blue); font-size: var(--text-label); font-weight: 600; list-style: none; cursor: pointer; }
  .paid-fold summary::-webkit-details-marker { display: none; }
  .paid-fold[open] { display: none; }
  .paid-list:has(+ .paid-fold:not([open])) .is-folded { display: none; }
}

/* "I've paid" (payment_claims/new): the open charges as cards to tick,
   the ticked one ringed in blue with a yellow tick, a covered one grey;
   the total on a navy strip; the actions kept in view at the bottom. */
.claim-form { display: flex; flex-direction: column; gap: var(--space-4); }
.modal .claim-form > label { margin: 0; }
.claim-picks { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.claim-picks legend { margin-bottom: var(--space-2); padding: 0; color: var(--ink); font-size: var(--text-label); font-weight: 600; }
.claim-form .claim-charge { flex-direction: row; align-items: center; gap: var(--space-3); margin: 0; padding: var(--space-3) 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; }
.claim-charge:has(input:checked) { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.claim-charge.covered { background: var(--surface-2); box-shadow: none; color: var(--muted); cursor: default; }
.claim-charge input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: inherit; }
.claim-charge input:checked { background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111c3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.claim-charge input:disabled { background: transparent; }
.claim-what { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.claim-what strong { font-size: var(--text-body); overflow-wrap: anywhere; }
.claim-what small { color: var(--muted); font-size: var(--text-small); font-weight: 400; }
.claim-charge-amount { font-size: var(--text-body); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.claim-charge.covered .claim-charge-amount { font-weight: 400; }
.claim-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: 0; padding: 14px var(--space-4); border-radius: var(--radius); background: var(--navy); color: var(--on-navy-muted); font-size: var(--text-label); }
.claim-total strong { color: var(--yellow); font-family: var(--display); font-size: 1.875rem; font-style: italic; font-weight: 400; line-height: 1; }
.claim-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.claim-form .form-grid label { margin-bottom: 0; }
.claim-optional { color: var(--muted); font-size: var(--text-small); font-weight: 400; }
.claim-form .helper { margin: 0; }
.claim-form .form-actions { position: sticky; bottom: -28px; justify-content: flex-end; gap: var(--space-2); margin: auto -32px -28px; padding: var(--space-4) 32px; border-top: 1px solid var(--line); background: var(--surface); }

@media (max-width: 700px) {
  .claim-form .form-actions { margin: auto -20px -28px; padding: var(--space-3) 20px 28px; }
  .claim-form .form-actions { flex-wrap: nowrap; }
  .modal .claim-form .form-actions > [data-action~="modal#close"] { display: inline-flex; flex: 1 1 0; width: auto; min-height: 52px; }
  .claim-form .form-actions > .btn.primary { flex: 1.5 1 0; width: auto; }
}

.family-call-ups { display: grid; gap: 6px; margin: 10px 0; overflow-wrap: anywhere; }
.family-call-up { display: flex; flex-wrap: wrap; gap: var(--space-1) 10px; align-items: baseline; }
.family-call-up b { font-size: var(--text-small); }
.family-call-up.selected b { text-decoration: underline; text-underline-offset: 3px; }
.family-call-ups > small { display: block; opacity: .8; }

.claim-details { display: grid; gap: 14px; }
.claim-details > p { margin: 0; }

/* Family cards (families/_announcements, _documents, _corrections and
   _training_updates): one card pattern, a head, then a list of rows starting
   right under it, each row a link with its status after it. */
.family-inbox { margin: 18px 0; }
.family-inbox .card-body { padding-top: 0; }
.family-inbox .rows li { justify-content: space-between; padding: var(--space-3) 0; overflow-wrap: anywhere; }
.family-inbox .rows li:last-child { padding-bottom: 0; }
.family-inbox .rows .text-btn { padding: 0; }
.family-inbox .rows small { color: var(--muted); font-size: var(--text-small); }
.family-inbox .card-note { margin: 0 0 var(--space-2); }
.family-inbox .training-row:first-child,
.family-inbox .card-note + .training-row { border-top: 0; }
.family-inbox .training-row:first-child { padding-top: var(--space-2); }
.family-inbox .training-row:last-child { padding-bottom: 0; }

/* A game for the family (family_matches/show): under the game, each
   child's card (the answer as two plain buttons, the one given with a grey
   tick, then the call-up) beside "Where" (the map, the facts, the map
   apps); one column on a phone. */
.family-game { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; align-items: start; margin-top: 28px; }
.family-game-children { display: grid; gap: var(--space-5); min-width: 0; }
.family-game-venue { min-width: 0; }
/* When the game meets at the club: the club's block, then where the game is. */
.family-game-meeting + .section-title { margin-top: var(--space-5); }
.family-game-card { padding: 20px; }
.family-game-ask { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 700; }
.family-game-note { margin: 2px 0 0; color: var(--muted); font-size: var(--text-small); }
.availability-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: var(--space-4); }
.availability-choice svg { color: var(--muted); }
.family-game-answer + .family-game-call-up { margin-top: 18px; padding-top: var(--space-4); border-top: 1px solid var(--line-soft); }
.family-game-call-up p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--ink); font-size: var(--text-small); }
.family-game-call-up .family-game-pending { flex-wrap: nowrap; }
.family-game-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.family-game-call-up .family-game-state { gap: 8px; color: var(--muted); font-size: 1rem; font-weight: 700; }
.family-game-call-up .family-game-version { margin-top: var(--space-2); color: var(--muted); }
.family-game-call-up .family-game-read { margin-top: var(--space-3); color: var(--muted); }
.call-up-ack-form { margin-top: var(--space-4); }
.call-up-ack { width: 100%; }
@media (max-width: 700px) {
  .family-game { gap: var(--space-5); margin-top: var(--space-5); }
  .family-game-card { padding: var(--space-4); }
  .availability-choice { min-height: 52px; }
}

/* A training update (family_training_notices/show): the sessions as rows;
   what changed reads under the place. */
.training-notice-rows .training-change { color: var(--ink); }

/* Family corrections: per child, what can be corrected as buttons that
   wrap (family_corrections/index); a request shows each field as it was,
   struck through, and what was asked (family_corrections/show). */
.correction-pick li { display: grid; gap: var(--space-2); }
.correction-kinds { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.correction-changes dd { gap: var(--space-2); }
.correction-changes dd svg { flex: none; color: var(--muted); }
.correction-before { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.correction-changes { grid-template-columns: minmax(0, 1fr); }
.correction-changes dt { padding-bottom: 0; }
.correction-changes dd { padding-top: var(--space-1); border-top: 0; }

/* Kit (families/kit): the family's name over the title, the buttons at
   its right and the child chips under it; then each child's card beside
   the orders on a computer, one column on a phone, and the two buttons
   at the foot on a phone. */
.fkit-band, .loja-band { align-items: flex-end; }
.fkit-band .child-chips, .loja-band .child-chips { order: 3; flex-basis: 100%; }
.fkit-band .family-band-title { flex: 1; }
.family-band-actions { display: flex; gap: var(--space-2); }

.fkit-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-5); }
.fkit-children { display: grid; gap: var(--space-4); min-width: 0; }
.fkit-by-child { margin-bottom: -6px; }
.fkit-orders { min-width: 0; }

.fkit-child-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-4) var(--space-4) 0; }
.fkit-child-head strong { font-size: 1rem; }
.fkit-count { color: var(--muted); font-size: var(--text-label); white-space: nowrap; }
.fkit-child .progress { height: 6px; margin: 10px var(--space-4) var(--space-3); }
.fkit-child .row-list { border-top: 1px solid var(--line-soft); }
.fkit-child .row-item { flex-wrap: nowrap; }
.fkit-child .row-main { flex: 1 1 auto; }
.fkit-child .row-aside { order: 0; flex-basis: auto; padding-left: 0; text-align: right; }
.fkit-quiet { margin: 0; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--text-label); font-weight: 600; }
.fkit-delivered summary { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; list-style: none; }
.fkit-delivered summary::-webkit-details-marker { display: none; }
.fkit-delivered .card-note { margin-top: var(--space-2); font-weight: 400; }

.fkit-foot { display: none; }

@media (max-width: 700px) {
  .fkit-band .eyebrow, .fkit-band .family-band-actions, .fkit-by-child { display: none; }
  .fkit-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .fkit-children { gap: var(--space-3); }
  .fkit-child .row-item { padding: var(--space-3) var(--space-4); }
  /* The orders keep their state and arrow at the right, as C-Equipamento-P draws them. */
  .fkit-orders .row-item { flex-wrap: nowrap; gap: var(--space-3); }
  .fkit-orders .row-main { flex: 1 1 0; min-width: 0; }
  /* No indent under the date tile here (blocks.css adds one when the state
     wraps under the title), so the title keeps its width. */
  .fkit-orders .row-item:has(> .row-lead) .row-aside { order: 0; flex-basis: auto; padding-left: 0; }
  .fkit-orders .row-item > svg { display: block; }
  .fkit-foot { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
  .fkit-foot .btn { flex: 1; }
}

/* Shop (shops/show): the way back to the kit on a phone, the title, then
   "Para" and a chip per child. On a phone one line says how many orders
   are still to come; a computer lists them beside the packs. Then every
   item on a grid of white tiles, name and price under each. */
.loja-band .band-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; color: var(--blue); font-size: var(--text-body); font-weight: 600; }
.child-chips-pick { align-self: center; margin-right: 2px; color: var(--muted); font-size: var(--text-label); }

.loja-waiting { display: none; }

.loja-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-5); margin-bottom: 28px; }
.loja-packs { display: grid; gap: var(--space-3); min-width: 0; }
.loja-packs .section-title { margin-bottom: -2px; }
.loja-orders { min-width: 0; }

.loja-pack { display: flex; align-items: center; gap: var(--space-4); padding: 14px var(--space-4); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.loja-pack:hover { background: var(--surface-2); color: var(--ink); }
.loja-pack .shop-photo { flex: none; width: 72px; height: 72px; margin: 0; border: 0; background: var(--surface-3); }
.loja-pack > svg { flex: none; color: var(--faint); }
.loja-pack-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.loja-pack-text strong { font-size: 1rem; }
.loja-pack-text small { color: var(--muted); font-size: var(--text-small); }
.loja-pack-price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: 6px; }

.loja-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.loja-card { display: flex; flex-direction: column; gap: var(--space-2); color: var(--ink); }
.loja-card:hover { color: var(--ink); }
.loja-card .shop-photo { height: 150px; aspect-ratio: auto; margin: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.loja-card:hover .shop-photo { box-shadow: 0 8px 20px rgb(17 28 58 / 10%); transform: translateY(-2px); }
.loja-card strong { font-size: var(--text-label); line-height: 1.3; overflow-wrap: anywhere; }
.loja-price { margin-top: -4px; color: var(--muted); font-size: var(--text-label); }

.loja-note { margin: 20px var(--space-1) 0; }

@media (max-width: 1100px) {
  .loja-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .loja-waiting { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--surface); font-size: var(--text-label); }
  .loja-waiting a { color: var(--blue); font-weight: 600; }
  .loja-top { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-5); }
  .loja-orders { display: none; }
  .loja-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loja-card .shop-photo { height: 132px; }
}

@media (min-width: 701px) {
  .loja-band .band-back { display: none; }
}

/* The family's agenda (family_trainings/index, boards F-Agenda-P/-D, prefix
   fagenda-): the weeks' lists on the left and, on a computer, the month's
   calendar on the right with "Previous games" under it. On a phone the
   calendar goes and the links close the list instead. A game's date tile is
   navy (.date-tile.upcoming), a session's grey. */
.fagenda { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: start; gap: 36px; }
.fagenda-list { display: grid; gap: 28px; min-width: 0; }
.fagenda-list .family-section .section-title { margin-inline: var(--space-2); }
.fagenda-call-up { color: var(--muted); font-size: var(--text-small); font-weight: 600; }
.fagenda-postponed, .fagenda-duties { margin: 0 var(--space-2); }
.fagenda-foot { display: none; }
.fagenda-months { display: flex; gap: var(--space-4); }
.fagenda-side { display: grid; gap: var(--space-4); }
.fagenda-past-link { padding-inline: var(--space-2); color: var(--blue); font-size: var(--text-label); font-weight: 700; }
.fagenda-narrow { display: none; }

.fagenda-calendar { padding: 18px 20px 20px; }
.fagenda-cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.fagenda-cal-head h2 { margin: 0; font-size: var(--text-subheading); }
.fagenda-cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius); color: var(--ink); }
.fagenda-cal-nav:hover { background: var(--surface-2); }
.fagenda-cal-nav.is-back svg { transform: scaleX(-1); }
.fagenda-cal { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.fagenda-cal :is(th, td) { border: 0; background: none; }
.fagenda-cal th { padding: 0 0 var(--space-2); color: var(--muted); font-size: .6875rem; font-weight: 700; }
.fagenda-cal td { position: relative; height: 42px; padding: 0; color: var(--ink); font-size: var(--text-label); font-weight: 600; }
.fagenda-cal td > span { display: inline-flex; align-items: flex-start; justify-content: center; width: 36px; height: 40px; padding-top: 7px; border: 2px solid transparent; border-radius: 9px; }
.fagenda-cal td.is-past { color: var(--faint); font-weight: 500; }
.fagenda-cal td.is-today > span { border-color: var(--blue); }
.fagenda-cal .fagenda-dot { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); }
.fagenda-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.fagenda-dot.game { background: var(--navy); }
.fagenda-key { display: flex; gap: var(--space-4); margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--text-small); }
.fagenda-key span { display: inline-flex; align-items: center; gap: 6px; }
.fagenda-key .fagenda-dot { width: 7px; height: 7px; }

@media (max-width: 960px) {
  .fagenda { grid-template-columns: minmax(0, 1fr); }
  .fagenda-side { display: none; }
  .fagenda-foot { display: flex; justify-content: space-between; gap: var(--space-4); padding: 0 var(--space-2); font-size: var(--text-label); font-weight: 700; }
  .fagenda-foot a { color: var(--blue); }
}

/* On a phone the title takes its own line, the children's chips under it,
   and each line keeps its state on the right, with the shorter meta line. */
@media (max-width: 700px) {
  .fagenda-band .family-band-title { flex-basis: 100%; }
  .fagenda-list .row-aside { order: 0; flex-basis: auto; padding-left: 0; }
  .fagenda-list .row-item:has(> .row-lead) .row-aside { padding-left: 0; }
  .fagenda-wide { display: none; }
  .fagenda-narrow { display: inline; }
}
