/* ============================================================
 * sign-band.css: the "Don't know your sign?" band (D3-Hub-band, 26 Sep; CD field rule 3: a single field next to its
 * button, no label, the hint only). Moved out of page-horoscopes.css on 2026-10-28, rule for rule, so the same band can
 * sit inside an article: the horoscopes hub loads it with its own sheet, and a post or page carrying
 * [capriastro_sign_finder] loads it on its own (the horoscopes plugin). The hub's section spacing stays in
 * page-horoscopes.css. Token-only (bin/check-design-tokens.sh).
 * ============================================================ */

/* the headline's display face: page-horoscopes.css carries the shared .cap-hx-title, which an article page does not load */
.cap-shell .cap-hx-capture .cap-hx-title { font-family: var(--cap-font-display-sm); font-weight: 800; letter-spacing: var(--cap-track-tight); color: inherit; }
.cap-shell .cap-hx-capture { display: flex; flex-direction: column; align-items: flex-start; padding: var(--cap-space-band-close); background: var(--cap-color-bg-deep); border-radius: var(--cap-radius-flat); }
.cap-shell .cap-hx-title.cap-hx-capture__title { margin: var(--cap-space-gap-5) 0 0; max-width: var(--cap-band-head); font-size: var(--cap-type-product-tile); line-height: var(--cap-leading-band-head); }
.cap-shell .cap-hx-capture__sign { color: inherit; text-decoration: underline; text-decoration-color: var(--cap-color-primary); text-decoration-thickness: var(--cap-border-emphasis); text-underline-offset: var(--cap-space-band-underline); }
.cap-shell .cap-hx-capture__free { color: var(--cap-color-primary); text-decoration: none; }
@media (hover: hover) { .cap-shell .cap-hx-capture__sign:hover, .cap-shell .cap-hx-capture__free:hover { color: var(--cap-color-primary); } }
.cap-shell .cap-hx-capture__more { display: none; }   /* the phone's chips + link row (1c-2); desktop keeps the inline links */
.cap-shell .cap-hx-capture__form { display: grid; grid-template-columns: auto auto; justify-content: start; gap: var(--cap-space-sm) var(--cap-space-gap-6); margin-top: var(--cap-space-block-5); }   /* round 25 (owner): a grid, not a wrapping row — a wrapping row is as wide as all its items end to end, so the error box ran 38 px past Go; here the two columns are the field and Go, and the box spans exactly them */
.cap-shell .cap-hx-capture__field { display: block; position: relative; flex: none; width: var(--cap-band-field); }
/* round 22 (owner): "Clear" at the right end of the pill, on its middle line, once a box holds something */
.cap-shell .cap-hx-capture .cap-hx-capture__clear { top: 50%; bottom: auto; right: calc(var(--cap-space-field-x) + var(--cap-border-hairline) - (var(--cap-tap-min) - var(--cap-cell-clear-icon)) / 2); transform: translateY(-50%); }   /* round 25 (owner): the ✕ as far from the pill's right end as the date is from its left (the pill's edge + its side inset), at every width */
@media (max-width: 699px) { .cap-shell .cap-hx-capture .cap-birth__slash { word-spacing: -0.2em; padding: 0 var(--cap-space-gap-1); } }   /* round 25: the room for that inset comes from the two slashes (as the phone birth cells, round 22), so the ✕'s 44 band still clears the year box and Go */
@media (max-width: 379px) { .cap-shell .cap-hx-capture__form .cap-hx-capture__go { padding-left: var(--cap-space-gap-6); padding-right: var(--cap-space-gap-6); } }   /* round 25: on the narrowest phones Go gives up 24 px, so the field keeps the ✕'s inset and Go stays on the field's line */
.cap-shell .cap-hx-capture .cap-hx-capture__parts { width: 100%; height: var(--cap-space-field-h); box-sizing: border-box; }   /* the three typed boxes (round 20) in the engine's pill (.cap-parts) */
.cap-shell .cap-hx-capture .cap-hx-capture__parts[aria-invalid="true"] { border-color: var(--cap-color-error); }
.cap-shell .cap-hx-capture__go { flex: none; }
.cap-shell .cap-hx-capture__msg { grid-column: 1 / -1; contain: inline-size; margin: 0; }   /* the alert box (.cap-alert, the 2j board) — round 22 (owner): inside the form, exactly as wide as the field and the button (contain keeps its words from widening the form); its own row 8 under them */

/* 700–1279 (T21): the headline on a 472 measure, the panel at the tablet pad */
@media (min-width: 700px) and (max-width: 1279px) {
  .cap-shell .cap-hx-title.cap-hx-capture__title { max-width: 25ch; }
  .cap-shell .cap-hx-capture { padding: var(--cap-space-panel-pad); }
}

/* < 700 */
@media (max-width: 699px) {
  /* the band on a phone: NO SHEET YET (owner 2026-09-26) — the 1c layout it had (pill + Go on one row, 12 between rows,
     8 between pill and Go); only the headline shows where the 1c blurb was, because the cusp answer is written there */
  .cap-shell .cap-hx-capture { padding: var(--cap-space-panel-pad); }
  .cap-shell .cap-hx-title.cap-hx-capture__title { margin-top: var(--cap-space-gap-6); line-height: var(--cap-leading-serif-title); letter-spacing: var(--cap-track-tile); }
  .cap-shell .cap-hx-capture__form { align-self: stretch; grid-template-columns: minmax(0, 1fr) auto; gap: var(--cap-space-sm) var(--cap-space-gap-5); margin-top: var(--cap-space-gap-8); }
  /* 1c-2 D-band-3 (28 Sep): the headline's links read as text; two 44 chips, then the free-chart link row (44 tap, 6 under
     the chips, 4 above the pill — the sheet's −6 / −12 margins inside its 12 gap) */
  .cap-shell .is-cusp .cap-hx-capture__sign { text-decoration: none; }
  .cap-shell .is-cusp .cap-hx-capture__free { display: none; }
  .cap-shell .cap-hx-capture__more { display: flex; flex-direction: column; align-items: flex-start; margin-top: var(--cap-space-gap-6); }
  .cap-shell .cap-hx-capture__chips { display: flex; gap: var(--cap-space-gap-5); }
  .cap-shell .cap-hx-capture__chip { min-height: var(--cap-tap-min); padding: 0 var(--cap-mp-chip-x); box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: var(--cap-border-hairline) solid var(--cap-color-line-emphasis); border-radius: var(--cap-radius-pill); font-family: var(--cap-font-ui); font-weight: 600; font-size: var(--cap-type-label); letter-spacing: var(--cap-track-btn); text-transform: uppercase; color: var(--cap-color-text); text-decoration: none; white-space: nowrap; }
  @media (hover: hover) { .cap-shell .cap-hx-capture__chip:hover { background: var(--cap-color-text); border-color: var(--cap-color-text); color: var(--cap-color-on-ink); } }
  .cap-shell .cap-hx-capture__cast { min-height: var(--cap-tap-min); display: flex; align-items: center; margin-top: var(--cap-space-gap-3); text-decoration: none; }
  .cap-shell .cap-hx-capture__cast span { font-family: var(--cap-font-ui); font-weight: 600; font-size: var(--cap-mp-type-hx-meta); letter-spacing: var(--cap-track-btn); text-transform: uppercase; color: var(--cap-color-text); border-bottom: var(--cap-border-hairline) solid var(--cap-color-primary); padding-bottom: var(--cap-mp-hx-link-pad); white-space: nowrap; line-height: normal; }
  @media (hover: hover) { .cap-shell .cap-hx-capture__cast:hover span { color: var(--cap-color-primary); } }
  .cap-shell .is-cusp .cap-hx-capture__form { margin-top: var(--cap-space-xs); }
  .cap-shell .cap-hx-capture__field { flex: 1; width: auto; }
}

/* the field-attached "Go →": the D3-Hub-band sheet (26 Sep) draws it as a Large (15 px, .16em), stretched flush to its 48 px field */
.cap-shell .cap-hx-capture__form .cap-btn { align-self: stretch; padding-top: 0; padding-bottom: 0; }
/* round 34 (owner 2026-10-06): below 360 the pill takes the full width and Go sits under it, full width, the field's height —
   at 320 the pill was 167 wide and its ✕ sat on the year */
@media (max-width: 359px) {
  .cap-shell .cap-hx-capture__form { grid-template-columns: minmax(0, 1fr); }
  .cap-shell .cap-hx-capture__form .cap-hx-capture__go { width: 100%; min-height: var(--cap-space-field-h); padding-left: var(--cap-space-md); padding-right: var(--cap-space-md); }
}


/* ─── the IN-COLUMN band (owner 2026-10-28): [capriastro_sign_finder] inside an article's text. Same look, the article
   column's width; from 700 up it takes the hub's tablet values at every width (the 40 pad, the 25ch headline), because
   the column is 660 wide at most; below 700 the phone rules above already apply. Its space above and below is the
   article's block rhythm (page-post.css). ───────────────────────────────────────────────── */
@media (min-width: 700px) {
  .cap-shell .cap-hx-capture--column { padding: var(--cap-space-panel-pad); }
  .cap-shell .cap-hx-capture--column .cap-hx-title.cap-hx-capture__title { max-width: 25ch; }
}
