/* =====================================================================
   Aurora Arctic: the review sheet on a desktop (web/review).

   Loaded last, after every other aurora sheet. profile.css draws the review
   at every width; this file only re-sizes it for a desktop (1024px and up),
   so the phone and the tablet stay exactly as profile.css has them.

   On a desktop the review is a dialog, not a sheet: wider and taller, with
   desktop type (the word asked ~40px, the answers 18px), roomier padding,
   and the four answers in two columns while they are short (web/review marks
   a set with a long answer with data-long, which puts them one per row).
   ===================================================================== */

@media (min-width: 1024px) {
  /* The dialog: wide enough for two comfortable columns, and a steady height
     so it does not jump between a question, its answer and the end of a round. */
  .modal-backdrop > .rv-modal.modal {
    display: flex; flex-direction: column; gap: 18px;
    width: var(--au-dialog-w, min(960px, calc(100vw - 96px))); /* library.css: shared with the vocabulary and reading dialogs */
    /* One fixed height, not a minimum: whatever is taller (All cards, an
       answer with its examples on a short screen) scrolls inside the body
       below, so switching tabs or answering never moves the title, the close
       button or the tabs. 800px holds an answered card at 1920x1080. */
    height: min(800px, calc(100dvh - 48px));
    max-height: none;
    /* The same padding as the vocabulary and reading dialogs (.modal, 22px),
       so the title, the close and the content edge stay put when you move
       between them. --rv-px / --rv-pb also drive the body's pull-out below. */
    --rv-px: 22px; --rv-pb: 24px;
    padding: 22px var(--rv-px) var(--rv-pb);
  }
  .rv-modal > * { flex: none; }
  .rv-modal .acc-mount-offer:empty { display: none; }
  /* The head keeps the shared dialog size (22px title, 38px close: base.css
     and profile.css), like .vb-modal and .rd-modal; only the card grows.
     The title's icon matches theirs (24px, library.css), so the three titles
     share one height and baseline. */
  .rv-modal .modal-head h2 .i { width: 24px; height: 24px; }

  .rv-modal .rv-lang { min-height: 40px; padding: 8px 16px; font-size: 15px; gap: 8px; }
  .rv-modal .rv-lang svg { width: 21px; height: 15px; }
  .rv-modal .tabs { margin-bottom: 0; }
  .rv-modal .tabs button { min-height: 46px; font-size: 15.5px; }
  .rv-modal .tabs button .i { width: 17px; height: 17px; }
  .rv-modal .rv-badge { min-width: 22px; height: 22px; font-size: 12px; }

  /* The body takes the rest of the dialog and is what scrolls; a screen with
     little in it (all caught up, the end of a round) sits in its middle
     instead of at the top. It reaches out over the dialog's padding (sides
     and bottom), so the question's drop shadow is not cut off and the
     scrollbar (10px, style.css) sits in the right padding: the content keeps
     exactly the width of the tabs above it. 4px on top spares a focus ring.
     Its rows are max-content: in a body of fixed height an auto row may
     shrink an overflow:hidden child (the question island) below its content. */
  .rv-modal .rv-body {
    flex: 1 1 0; min-height: 0; gap: 20px; align-content: start; grid-auto-rows: max-content;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
    margin: -4px calc(-1 * var(--rv-px)) calc(-1 * var(--rv-pb));
    padding: 4px calc(var(--rv-px) - 10px) var(--rv-pb) var(--rv-px);
  }
  .rv-modal .rv-body:has(> .rv-done) { align-content: center; }

  .rv-top { gap: 12px; }
  .rv-top .rv-meter.au-progress { height: 8px; }
  .rv-top .pill { font-size: 14px; }
  .rv-top .btn.tiny { min-height: 36px; padding: 7px 15px; font-size: 14.5px; gap: 7px; }
  .rv-top .btn.tiny .i { width: 16px; height: 16px; }

  /* The question: a broad island with the word as its headline. */
  .rv-q.au-hero { gap: 18px; min-height: 210px; align-content: center; padding: 40px 48px 36px; }
  /* Once answered, the island steps back so the answer fits without scrolling. */
  .rv-body:has(> .rv-fb) .rv-q.au-hero { min-height: 0; gap: 12px; padding: 26px 48px 24px; }
  .rv-q .rv-ask { gap: 10px; font-size: 16px; }
  .rv-q .rv-ask svg { width: 24px; height: 17px; }
  .rv-q .rv-retry { font-size: 12.5px; }
  .rv-q .rv-cue { max-width: 30ch; font-size: 40px; line-height: 1.15; text-wrap: balance; }
  .rv-q .rv-prompt-word { gap: 14px; }
  .rv-q .rv-prompt-word .btn.icon { width: 44px; height: 44px; }
  .rv-q .rv-speakers { gap: 18px; }
  .rv-q .rv-speak.btn { width: 92px; height: 92px; }
  .rv-q .rv-speak .i { width: 40px; height: 40px; }
  .rv-q .rv-speak.slow.btn { width: 64px; height: 64px; }
  .rv-q .rv-speak.slow .i { width: 28px; height: 28px; }

  /* The answers: two columns while they are short, one per row when not. */
  .rv-opts { gap: 14px; }
  .rv-opts[data-long] { grid-template-columns: 1fr; }
  .rv-opt { min-height: 76px; gap: 14px; padding: 18px 22px; font-size: 18px; line-height: 1.35; }
  .rv-opt kbd { padding: 6px 9px; border-radius: 8px; font-size: 13px; }

  /* Building a sentence from tiles. */
  .rv-build { gap: 16px; }
  .rv-line { min-height: 70px; gap: 10px; }
  .rv-bank { gap: 10px; }
  .rv-tile { padding: 12px 18px; border-radius: 14px; font-size: 18px; }

  /* Writing it out. */
  .rv-form .input { min-height: 60px; padding-inline: 18px; font-size: 19px; }
  .rv-form .btn { min-height: 60px; padding-inline: 24px; font-size: 16.5px; }
  .rv-modal .rv-key { max-width: 54px; padding-block: 12px; font-size: 18px; }

  .rv-check.btn, .rv-continue.btn { min-height: 60px; font-size: 17.5px; }
  .rv-cant.btn { font-size: 14.5px; }

  /* How it went. */
  .rv-fb { gap: 14px; padding: 22px 26px; border-radius: 24px; }
  .rv-fb-head { gap: 10px; font-size: 22px; }
  .rv-fb-head .i { width: 26px; height: 26px; }
  .rv-fb-answer { font-size: 26px; }
  .rv-fb .rv-note, .rv-note { max-width: 60ch; font-size: 15px; }
  .rv-ex { gap: 10px; padding-top: 14px; }
  .rv-ex-row { font-size: 16px; }
  .rv-ex-row .muted { font-size: 14px; }

  /* The end of a round, and nothing due. */
  .rv-done { gap: 20px; padding: 12px 0; }
  .rv-done h3 { font-size: 30px; }
  .rv-done > p { font-size: 16px; }
  .rv-stats { gap: 14px; max-width: 760px; }
  .rv-stats div { gap: 4px; padding: 18px 16px; }
  .rv-stats b { font-size: 34px; }
  .rv-stats span { font-size: 14px; }
  .rv-after { gap: 12px; max-width: 440px; }
  .rv-after .btn { min-height: 52px; font-size: 16px; }
  .rv-small { font-size: 13.5px; }

  /* All cards. */
  .rv-modal .list { gap: 10px; }
  .rv-modal .list-item { padding: 14px 18px; font-size: 16px; }
  .rv-modal .list-item b { font-size: 18px; }
  .rv-modal .list-item .muted { font-size: 14.5px; }
}
