/* ==========================================================================
   CoA MAGNIFIER PAGES ONLY (/magnifier, /magnifier/become-a-tester and
   /magnifier/feedback).
   Everything shared - the hero band, sections, cards, the dialog, the ALT
   button and the bigger view - comes from coa-components.css. Only what
   these pages need lives here: the app's icon, the row of screenshots (and
   its phone carousel), the layout cards with their sizes, the colors, the
   feature cards' icons, the feedback form's two extras.
   ========================================================================== */

/* ---- the tester form's first lines with the app's icon beside them, no
   hero band (her ask 2026-12-05). On a phone the icon goes above them,
   smaller. Decorative (alt=""): the heading says what the page is. ---- */
.mag-page-head { display: flex; align-items: center; gap: var(--space-7); }
.mag-page-head > div { flex: 1 1 auto; min-width: 0; }
.mag-page-head p:not(.crumb, .standfirst) { margin: var(--space-4) 0 0; }
.mag-page-icon { flex: none; display: block; width: 160px; height: auto; }
@media (max-width: 600px) {
  .mag-page-head { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .mag-page-icon { order: -1; width: 96px; }
}

/* ---- the feedback form (/magnifier/feedback, 2026-12-05) ----
   "What is it?" is one question with three answers, so it's a fieldset:
   a screen reader says the question with each answer. Drawn like the other
   fields: no box, the question in the label's size and weight. */
.mag-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.mag-choices legend { padding: 0; margin-bottom: var(--space-2); font-size: 16px; font-weight: 700; }
/* the phone report the app sent, to read before sending: it wraps (never
   a sideways scroll) and scrolls down inside its own box when it's long */
.mag-details {
  margin: 0;
  max-height: 22rem;
  overflow-y: auto;
  padding: var(--space-3);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-control);
  font-family: inherit;   /* Verdana like the rest, not a code font (her type rule) */
  font-size: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mag-details:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* ---- the app's icon, as the hero band's picture (HERO BAND (5): the
   picture is decorative - alt="" - since the h1 beside it says the name) ---- */
.mag-hero-icon { display: flex; justify-content: center; }
.mag-hero-icon img { display: block; width: min(240px, 60vw); height: auto; }
@media (max-width: 800px) {
  .mag-hero-icon img { width: 140px; }
}

/* ---- screenshots: real ones from the app, small (her note 2026-12-04:
   "too big"), five in one row on a computer (her ask 2026-12-05: "it's
   okay if they get smaller"). On a phone js/magnifier-screens.js shows one
   at a time with Previous and Next (.is-carousel); without the script, two
   across. Each opens bigger (data-zoom), and its ALT button sits on its
   caption's line. ---- */
.mag-screens {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}
.mag-screens figure, .mag-sizes figure { margin: 0; }
.mag-screens img, .mag-sizes img {
  border: 2px solid var(--border);
  border-radius: var(--radius-large);
}
.mag-screens figcaption, .mag-sizes figcaption { font-weight: 700; }
@media (max-width: 600px) {
  .mag-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* one at a time: the screenshot a size that fits a phone's screen with
     the buttons under it, in the middle */
  .mag-screens.is-carousel { grid-template-columns: min(240px, 75%); justify-content: center; max-width: none; }
}
/* the carousel's buttons, with "2 of 5" between them (shown only on a
   phone; the script hides the bar on a computer) */
.mag-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.mag-carousel-bar[hidden] { display: none; }
.mag-carousel-bar .btn { margin: 0; }
.mag-carousel-pos { margin: 0; font-weight: 700; white-space: nowrap; }

/* ---- the three layouts: one card each, across the whole row (her card
   rule: big ones get a full row), one under the other. Each card: the
   tour's own drawing on the left (her ask 2026-12-04), the name and line
   of text beside it, then a row of real screenshots of its sizes (her ask
   2026-12-05). On a phone: name, text, drawing, sizes, one under the other.
   The drawing has no caption (the heading names it), so its ALT button
   gets a line of its own under it (.alt-wrap); it opens bigger. ---- */
.mag-layouts { display: grid; gap: var(--space-5); }
.mag-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-areas: "pic head" "pic text" "sizes sizes";
  grid-template-rows: auto 1fr auto;
  gap: var(--space-2) var(--space-6);
}
.mag-layout > h3 { grid-area: head; margin: 0; }
.mag-layout > p { grid-area: text; }
.mag-layout-pic { grid-area: pic; }
.mag-layout-pic img { display: block; width: auto; height: 200px; margin-inline: auto; }
.mag-layout-pic.wide img { width: 100%; height: auto; }
.mag-layout-pic .pic-zoom { width: auto; margin-inline: auto; }
.mag-layout-pic.wide .pic-zoom { width: 100%; }
.mag-layout-pic .alt-btn { margin-inline: auto; }
.mag-layout > .mag-sizes { grid-area: sizes; margin-top: var(--space-5); }
@media (max-width: 600px) {
  .mag-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "text" "pic" "sizes";
    grid-template-rows: none;
  }
  .mag-layout-pic { margin-top: var(--space-3); }
  .mag-layout-pic.wide { max-width: 260px; }
}

/* ---- a row of small real screenshots: a layout's sizes, or the button
   colors. Each opens bigger, its ALT button on its caption's line. The
   pictures line up along the top (a caption may take two lines), except
   the toolbar's three sizes: those are different heights, with one-line
   captions, so they line up along the bottom.
   strips: just the toolbar (3, 4 or 5 in a row; the colors)
   tall:   the phone upright (the five Portrait sizes), no wider than 190px
   wide:   the phone sideways (3, 4 or 5 Landscape buttons) ---- */
.mag-sizes {
  display: grid;
  gap: var(--space-5) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}
.mag-layout .mag-sizes-strips { align-items: end; }
.mag-sizes-strips, .mag-sizes-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
/* five across while each can be 140px (so "Medium" still fits beside its
   ALT button - measured), never wider than 190px each */
.mag-sizes-tall { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); column-gap: var(--space-3); max-width: calc(5 * 190px + 4 * var(--space-3)); }
/* the colors: two strips across in each half-row card */
.mag-colors .mag-sizes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-top: var(--space-4); }

/* ---- light, dark and colorful: two cards, half a row each ---- */
.mag-colors h3 { margin: 0 0 var(--space-2); }

/* ---- what it does: three across at most (her card rule: compact cards
   three across), one on a phone. Each card leads with the app's own button
   icon - decorative, alt="", the heading says what it is. ---- */
.mag-features {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(240px, calc((100% - 2 * var(--space-5)) / 3))), 1fr));
}
.mag-feature-icon { display: block; width: 72px; height: 72px; margin-bottom: var(--space-3); }
.mag-features h3 { margin: 0 0 var(--space-2); }
.mag-features p { margin: 0; }
