/* «Ayuda» (js/ayuda.js) and «Mi cuenta» (js/cuenta.js) in the author's studio, SPEC-010.
   Mobile first: one column, 44 px touch targets, no sideways scroll at 390 px.
   Site tokens only (style.css); buttons reuse the studio's .btn-primario,
   .btn-secundario, .btn-tenue and .btn-peligro (css/estudio.css). */

.help, .acct { max-width: 42rem; display: flex; flex-direction: column; gap: 2rem; overflow-wrap: anywhere; }
.help-section, .acct-section { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.help-section:first-child, .acct-section:first-child { border-top: 0; padding-top: 0; }
.help-title, .acct-title { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 1.2rem; margin: 0 0 .75rem; }
.help-title:focus { outline: none; }
.help-note, .acct-note, .acct-hint { color: var(--muted); font-size: .9rem; }
.help-note, .acct-note { margin: .5rem 0; }

/* Cómo funciona: six steps, one line each */
.help-steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
/* SPEC-070 RF-B5: the road of a book the author brings written, under the six steps. */
.help-subtitle { font-family: Fraunces, Georgia, serif; font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.help-step { counter-increment: paso; display: grid; grid-template-columns: 2rem 1fr; gap: .1rem .6rem; align-items: baseline; }
.help-step::before { content: counter(paso); grid-row: span 2; color: var(--gold); font-weight: 600; }
.help-step-name { font-weight: 600; }
.help-step-text { color: var(--muted); font-size: .92rem; }

/* Preguntas */
.help-question { border-bottom: 1px solid var(--line); }
.help-question summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: .4rem 0; font-weight: 500; }
.help-question p { margin: 0 0 .9rem; color: var(--muted); }

/* Links and forms */
.help-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); text-underline-offset: .2em; }
.acct-link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; opacity: .55; font-size: .82rem; text-decoration: underline; text-underline-offset: .25em; }
.acct-link:hover { opacity: .85; }
.help-contact-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.help-form, .acct-form { display: flex; flex-direction: column; gap: .9rem; margin-top: .75rem; }
.help-field, .acct-field { display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; }
.help-order, .help-reason, .acct-input {
  font: inherit; color: inherit; background: transparent; width: 100%; box-sizing: border-box;
  min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line-2); border-radius: .5rem;
}
.help-order option { color: initial; }
.help-reason { resize: vertical; }
.help-order:focus-visible, .help-reason:focus-visible, .acct-input:focus-visible,
.help .btn-primario:focus-visible, .help .btn-tenue:focus-visible, .help-link:focus-visible,
.acct button:focus-visible, .acct-link:focus-visible, .help-question summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.help .btn-primario, .help .btn-tenue, .acct .btn-primario, .acct .btn-secundario,
.acct .btn-tenue, .acct .btn-peligro { min-height: 44px; }
.help .btn-primario, .acct .btn-primario { align-self: flex-start; }
.help-error, .acct-error { margin: 0; color: #c0392b; font-size: .9rem; }
:root[data-theme="dark"] .help-error, :root[data-theme="dark"] .acct-error { color: #f0a0a0; }
.help-done { margin: .75rem 0 0; }

/* Mi cuenta */
.acct-list { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: 0 0 .5rem; }
.acct-list dt { color: var(--muted); font-size: .82rem; margin-top: .5rem; }
.acct-list dd { margin: 0; }
.acct-empty { color: var(--muted); font-style: italic; }
.acct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.acct-status { margin: .4rem 0 0; min-height: 1.2em; font-size: .9rem; color: var(--muted); }
.acct-status:empty { display: none; }
.acct-two-step { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; margin-top: .75rem; }
.acct-two-step-status { margin: 0; flex-basis: 100%; }
.acct-privacy-action { margin-top: .5rem; }
.acct-warning { margin: .5rem 0; }
.acct-signout { border-top: 1px solid var(--line); padding-top: 1rem; }

@media (min-width: 640px) {
  .acct-list { grid-template-columns: 10rem 1fr; gap: .5rem 1rem; }
  .acct-list dt { margin-top: 0; }
}

/* SPEC-071 «Saldo y recargas» (#saldo): the balance, the four packs and the movements.
   Each pack (RF3.2b): «PAGAS» and a pill on top, the amount in big, «Cargar», and a band of
   another tone at the foot, «RECIBES US$ 110.00 de saldo». AVL's letters (Fraunces, Inter) and
   the site tokens, so it reads in the light, dark and mixed themes. */
.acct-balance { scroll-margin-top: calc(72px + 1rem); }
.acct-balance-now { margin: 0 0 .25rem; color: var(--ink); font-family: Fraunces, Georgia, serif; font-size: 1.7rem; font-weight: 500; line-height: 1.2; }
.acct-balance-label { color: var(--muted); font-size: 1.05rem; font-weight: 400; }
.acct-balance-amount { font-weight: 600; }
.wallet-packs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; }
.wallet-pack { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line-2); border-radius: .8rem; background: var(--surface); }
.wallet-pack-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1rem 1.1rem .9rem; }
.wallet-pack-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .5rem; }
.wallet-pack-pays { color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.wallet-pack-pill { padding: .2rem .6rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.wallet-pack-amount { margin: 0; color: var(--ink); font-family: Fraunces, Georgia, serif; font-size: 2.1rem; font-weight: 500; line-height: 1.1; }
.wallet-pack-more { color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: .9rem; font-weight: 400; }
.wallet-pack .acct-field { width: 100%; }
.wallet-pack .btn-secundario { margin-top: .25rem; }
.wallet-pack-status { margin: 0; }
.wallet-pack-gets { margin: 0; padding: .75rem 1.1rem; border-top: 1px solid var(--line); background: var(--bg2); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); color: var(--ink); font-size: .85rem; }
.wallet-pack-gets-label { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.wallet-pack-credit { font-weight: 600; }
.acct-subtitle { margin: 1.5rem 0 .5rem; font-family: Fraunces, Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.wallet-moves { list-style: none; margin: 0; padding: 0; }
.wallet-move { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: baseline; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.wallet-move-date { color: var(--muted); font-size: .8rem; }
.wallet-move-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet-move-amount[data-sign="plus"] { color: #1d6b3c; }
:root[data-theme="dark"] .wallet-move-amount[data-sign="plus"] { color: #8fd1a8; }

@media (min-width: 560px) {
  .wallet-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
