/* reel-desktop.css — The question feed's desktop arrow buttons and
   wider feed column, plus the small print at the foot of Preferences, which
   load at this point in the cascade. */

/* The small print at the foot of Preferences, under the About rows: where
   progress is kept, then the independence line and the official source, which
   Google Play asks apps about a government test to show inside the app. Left
   aligned like the page's hints; ink-2, since ink-3 is under 4.5:1 here. */
.setnote,
.setindependent {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.setindependent a {
  color: var(--brand-ink);
}

/* About follows Save, so it takes the gap the page puts between groups. */
#settings .setabout {
  margin-top: 30px;
}

/* The About rows are links, so the page's action rows lose the underline. */
a.setaction {
  text-decoration: none;
}

/* Desktop arrow buttons: a mouse alternative to swiping, floating to the right of
   the feed column at mid-height. Hidden on phones and
   whenever a panel covers the reel. */
.reel-nav {
  display: none;
}
@media (min-width: 960px) {
  .reel-nav {
    position: fixed;
    z-index: 10;
    top: 50%;
    left: calc(50% + var(--desktop-centre-shift) + var(--feed-column) / 2 + 28px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateY(-50%);
  }
  body:has(#today.show, #home.show, #practice.show, #learn.show, #cards.show, #settings.show) .reel-nav,
  body:has(#reel[inert]) .reel-nav {
    display: none;
  }
  .reel-nav button {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--ink);
    box-shadow: none;
    transition:
      background 0.15s ease,
      transform 0.1s ease;
  }
  .reel-nav button:hover {
    background: var(--line-2);
  }
  .reel-nav button:active {
    transform: scale(0.94);
  }
  .reel-nav button:focus-visible {
    outline: 3px solid var(--brand-ink);
    outline-offset: 2px;
  }
  .reel-nav svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* Feed content stretches to the wider desktop column. */
@media (min-width: 960px) {
  .card .inner,
  .answer-feedback,
  .sheet .in,
  #mockMisses .inner,
  .bar {
    max-width: var(--feed-column);
  }
  /* Practice cards fill the wider column and read larger, at the Learn path's scale:
     a bigger .feed-question-mascot, a bigger question bubble and taller answer rows. */
  #reel .card .inner:has(.opts) > .q {
    min-height: 124px;
    margin-left: 132px;
    padding: 16px 20px;
    font-size: 1.35rem;
    line-height: 1.45;
  }
  #reel .card .inner:has(.opts) > .q > .feed-question-mascot {
    left: -132px;
    width: 116px;
    height: 130px;
  }
  #reel .card .inner > .sub {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }
  #reel .card .opts {
    gap: 14px;
  }
  #reel .card .opt {
    min-height: 68px;
    padding: 16px 20px;
    font-size: 1.2rem;
    gap: 14px;
  }
  /* No tab bar runs under the feed on a desktop (the rail is at the side), so a
     card keeps a small gap under its answers instead of the phone's 150px
     clearance (nav-clearance.css). Owner, 2 Oct 2026: on a short window the
     answers were cut off above an empty band. */
  #reel .card {
    padding-bottom: 32px;
  }
}

/* A short desktop window takes nearer the phone's sizes rather than cutting
   the last answers off: a smaller Crumpet and bubble, and tighter rows. */
@media (min-width: 960px) and (max-height: 680px) {
  #reel .card {
    padding-top: calc(84px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  }
  #reel .card .inner:has(.opts) > .q {
    min-height: 100px;
    margin-left: 104px;
    padding: 12px 18px;
    font-size: 1.15rem;
  }
  #reel .card .inner:has(.opts) > .q > .feed-question-mascot {
    left: -104px;
    width: 88px;
    height: 98px;
  }
  #reel .card .inner > .sub {
    margin-bottom: 10px;
  }
  #reel .card .opts {
    gap: 10px;
  }
  #reel .card .opt {
    min-height: 56px;
    padding: 12px 18px;
    font-size: 1.1rem;
  }
}
