/* Printable guides and the placement test (public/recursos/, test-de-nivel.html) */

.guide__body { padding: 48px 16px 80px; max-width: 860px; }
.guide__body section { margin-top: 40px; }
.guide__body h2 { font-size: 1.3rem; color: var(--accent); }
.guide__tip { font-size: .9rem; color: var(--muted); }

.phrases { width: 100%; border-collapse: collapse; }
.phrases td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.phrases td:first-child { font-weight: 600; color: var(--text); width: 60%; }
.phrases td:last-child { color: var(--muted); font-size: .92rem; }

.guide__footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

@media (max-width: 560px) {
  .phrases td { display: block; width: 100% !important; padding: 4px 0; border: 0; }
  .phrases tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
}

@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .no-print { display: none !important; }
  .guide__body { padding: 0; max-width: none; }
  .guide__body h1 { font-size: 22pt; }
  .guide__body h2 { color: #0a7a4f; break-after: avoid; }
  .guide__body section { break-inside: avoid; margin-top: 18pt; }
  .eyebrow { color: #0a7a4f; }
  .lead, .phrases td:last-child, .guide__footer { color: #444; }
  .phrases td { border-color: #ddd; }
  .phrases td:first-child { color: #111; }
  a { color: #111; }
}

/* Placement test */
.quiz__progress { height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; margin: 24px 0; }
.quiz__bar { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.quiz__q { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.quiz__count { font-family: var(--mono); color: var(--accent); font-size: .85rem; margin-bottom: 8px; }
.quiz__prompt { font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; }
.quiz__options { display: grid; gap: 10px; }
.quiz__option {
  text-align: left; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font: inherit; cursor: pointer;
}
.quiz__option:hover { border-color: var(--accent); }
.quiz__result { text-align: center; }
.quiz__level { font-family: var(--mono); font-size: 3rem; font-weight: 700; color: var(--accent); margin: 8px 0; }
.quiz__result .btn { margin-top: 16px; }

/* Pronunciation checker */
.checker__words { font-family: var(--mono); color: var(--text); margin: 20px 0; line-height: 1.8; }
.checker__how { color: var(--muted); padding-left: 20px; margin-bottom: 20px; }
.checker__sentence { font-size: clamp(1.3rem, 3.5vw, 1.8rem); font-weight: 700; line-height: 1.35; margin: 12px 0 24px; }
.checker__controls { display: flex; align-items: center; gap: 16px; }
.checker__timer { flex: 1; margin: 0; }
.checker__rec[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.checker #playback { width: 100%; margin-top: 16px; }
.checker__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Result: hero number + two stat tiles, then one row per word.
   Color only where it means something: amber + label for "practice", neutral gray otherwise. */
:root { --practice: #e8b04a; --track: #22304d; --neutral-fill: #6b7a96; }

.result__top { display: grid; gap: 24px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .result__top { grid-template-columns: 1.2fr 1fr; } }
.result__label, .kpi__label { color: var(--muted); font-size: .85rem; margin: 0 0 4px; }
.result__value { font-family: var(--sans); font-size: clamp(3.5rem, 12vw, 4.5rem); font-weight: 700; line-height: 1; margin: 0; letter-spacing: -0.02em; }
.result__of { font-size: 1.1rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.result__verdict { color: var(--muted); margin: 10px 0 0; }

.result__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.kpi__value { font-size: 1.6rem; font-weight: 700; margin: 0 0 8px; line-height: 1.1; }
.meter { height: 4px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: 999px; background: var(--text); opacity: .75; }

.result__summary { margin: 24px 0 8px; }
.result__summary p { margin: 0 0 6px; }
.guide__body .result__heading { font-size: 1.1rem; margin: 32px 0 4px; color: var(--text); }
.result__legend { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }

.word-scores { list-style: none; padding: 0; margin: 0; }
.word-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.word-row__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.word-row__word { font-family: var(--mono); font-weight: 600; }
.word-row__flag { font-size: .78rem; font-weight: 600; color: var(--practice); }
.word-row__score { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.word-row--practice .word-row__score { color: var(--text); }
.word-row__track { position: relative; height: 6px; border-radius: 999px; background: var(--track); }
.word-row__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--neutral-fill); }
.word-row--practice .word-row__fill { background: var(--practice); }
.word-row__target { position: absolute; left: 80%; top: -4px; bottom: -4px; width: 1px; background: var(--muted); opacity: .6; }
.word-row__tip { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
