/* Parity build, leg offline: rules start from its own class prefix (tests/test_leg_css_scope.py).
   The exam frame: the banner while the device has no signal (above the foot), the "kept on this device" state of
   the save line (ink, not red: nothing failed) and the line that says the set opens offline. The site: /sin-conexion,
   what works without signal and what waits. Tokens from style.css only. */
.off-frame, .off-banner { --l-off-gap: var(--s2); }
.off-icon { flex: none; width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.off-banner { position: fixed; z-index: 28; left: var(--s3); right: var(--s3); bottom: calc(5.25rem + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: .25rem var(--l-off-gap); max-width: 40rem; margin: 0 auto; padding: .7rem var(--s4); border-radius: var(--rad); background: var(--noche); color: var(--on-noche); font-size: .875rem; line-height: 1.4; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--regla-2); }
.off-banner strong { font-weight: 600; }
.off-banner span { color: var(--on-noche-2); flex: 1 1 16rem; }
.off-ready { position: fixed; z-index: 27; left: 50%; bottom: calc(5.25rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: .35rem; margin: 0; padding: .3rem .7rem; border-radius: var(--rad-sm); background: var(--papel); color: var(--gris); font-size: .75rem; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--regla); animation: off-fade 4s var(--ease) forwards; }
.off-ready .off-icon { width: .875rem; height: .875rem; color: var(--tinta); }
body:has(.off-banner:not([hidden])) .off-ready { display: none; }
.off-kept.save-status.failed { color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
@keyframes off-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .off-ready { animation: none; } }
@media (max-width: 47.99rem) {
  .off-banner { left: var(--s2); right: var(--s2); bottom: calc(4.75rem + env(safe-area-inset-bottom)); padding: .5rem var(--s3); font-size: .8125rem; line-height: 1.3; }
  .off-banner span { flex-basis: 12rem; }
  /* the 4 s «Disponible sin conexión» chip sits over the top bar, never over the options above the bottom bar */
  .off-ready { top: calc(var(--s2) + env(safe-area-inset-top)); bottom: auto; pointer-events: none; }
}
/* The no-signal banner is a row of the exam bar (_exam_bar.html) below 68.75rem, so it covers no answer option */
@media (max-width: 68.74rem) {
  .off-banner.off-banner { position: static; order: 7; flex: 1 0 calc(100% + 2 * var(--s3)); max-width: none; margin: 0 calc(-1 * var(--s3)); padding: .5rem var(--s3); border-radius: 0; box-shadow: none; font-size: .8125rem; line-height: 1.3; }
}
@media (min-width: 68.75rem) {
  .off-banner.off-banner { margin: 0 auto; }
  .off-banner { bottom: 5rem; }
  .off-ready { left: auto; right: var(--s5); bottom: 5rem; transform: none; }
  .off-kept.save-status.failed { max-width: 15rem; white-space: normal; line-height: 1.25; }
}

/* /sin-conexion */
.off-wrap { max-width: 56rem; }
.off-head { max-width: 40rem; margin-bottom: var(--s6); }
.off-head .h-big { margin: var(--s2) 0 var(--s3); }
.off-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.off-cols { display: grid; gap: var(--s4); }
.off-card { padding: var(--s5); border-radius: var(--rad-card); background: var(--papel); box-shadow: inset 0 0 0 1px var(--regla); }
.off-card .h-card { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); }
.off-card .h-card::before { content: ""; flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: var(--tinta); }
.off-waits .h-card::before { background: transparent; box-shadow: inset 0 0 0 2px var(--gris-2); }
.off-list { margin: 0; padding: 0; list-style: none; }
.off-list li { padding: var(--s3) 0; border-top: 1px solid var(--regla); line-height: 1.5; }
.off-list li:first-child { border-top: 0; padding-top: 0; }
.off-waits .off-list li { color: var(--gris); }
.off-back { margin-top: var(--s6); padding: var(--s5); border-radius: var(--rad-card); background: var(--celeste); }
.off-back p { margin: var(--s2) 0 0; }
.off-back .caption { color: var(--gris); }
@media (min-width: 48rem) {
  .off-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
