/* copy-edit-cover-layouts.css - the Copy tab's first screen on phones,
 * layout A (owner picked it 2026-11-04 from options A-E): 16:9 player up top,
 * three tiles, big words and the button low. Added by
 * copy-edit-cover-layouts.js (.cel on .cea). Phones only. Dark default,
 * light via cf-theme tokens; one blue; no gradients on controls.
 */
@media (max-width: 760px) {
  html.cel-on .ce-cover { background: var(--cf-bg, #0A0A0D) !important; }
  /* Run the screen under the tab bar so no strip of the page shows between them. */
  html.cel-on body.cf-copy-page .ce-cover { bottom: 0 !important; }
  html[data-theme="light"].cel-on .ce-cover { background: #F5F6F8 !important; }
  .cea.cel {
    --cel-bg: var(--cf-bg, #0A0A0D);
    --cel-ink: var(--cf-text, #fff);
    --cel-ink2: var(--cf-text-2, rgba(255, 255, 255, .7));
    --cel-ink3: var(--cf-text-3, rgba(255, 255, 255, .55));
    --cel-l1: #141418;
    --cel-l2: #1E1E24;
    --cel-blue: #3B82F6;
    background: var(--cel-bg); color: var(--cel-ink);
  }
  html[data-theme="light"] .cea.cel { --cel-l1: #FFFFFF; --cel-l2: #EEF1F6; --cel-bg: #F5F6F8; }
  .cea.cel > .cea-hero, .cea.cel > .cea-dock { display: none !important; }
  .cea.cel .cel-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }

  /* shared: header, title, the button */
  .cea.cel .cel-head {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px; min-height: 60px; box-sizing: border-box;
  }
  .cea.cel .cel-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--cel-ink); }
  .cea.cel .cel-brand img { width: 30px; height: 30px; border-radius: 9px; }
  .cea.cel .cel-theme .cf-theme-switch { background: var(--cel-l2) !important; border: 0 !important; padding: 2px; gap: 2px; }
  .cea.cel .cel-theme .cf-theme-switch span { display: none; }
  .cea.cel .cel-theme .cf-theme-switch button { width: 44px; height: 40px; padding: 0; justify-content: center; border-radius: 9999px; color: var(--cel-ink2); }
  .cea.cel .cel-theme .cf-theme-switch button[aria-pressed="true"] { background: var(--cel-blue); color: #fff; }
  .cea.cel h1 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--cel-ink); text-wrap: balance; }
  .cea.cel .cel-main { padding: 0 20px; }
  .cea.cel .cel-main p { margin: 10px 0 0; font-size: 16px; line-height: 1.45; color: var(--cel-ink2); max-width: 32ch; }
  .cea.cel .cel-dock { flex: 0 0 auto; margin-top: auto; padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 65px + 16px); }
  .cea.cel .cea-go {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px;
    border: 0; border-radius: 14px; background: var(--cel-blue); color: #fff; font: 800 17px/1 Inter, system-ui, sans-serif; cursor: pointer;
  }
  .cea.cel .cea-go svg { width: 15px; height: 15px; fill: #fff; }
  .cea.cel .cea-go:active { transform: scale(.985); }
  .cea.cel video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }

  /* ── A  Thumb hero: edge-to-edge 16:9 player, big words, button low ── */
  .cea.cel-a .cel-a-hero { position: relative; flex: 0 0 auto; aspect-ratio: 16 / 9; width: 100%; background: #000; }
  .cea.cel-a .cel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); }
  .cea.cel-a .cel-bar i { display: block; height: 100%; background: var(--cel-blue); transform-origin: 0 50%; transform: scaleX(0); }
  .cea.cel-a .cel-a-facts { list-style: none; margin: 0; padding: 18px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cea.cel-a .cel-a-facts li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; background: var(--cel-l1); font-size: 13px; font-weight: 700; color: var(--cel-ink); }
  html[data-theme="light"] .cea.cel-a .cel-a-facts li { box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
  .cea.cel-a .cel-a-facts svg { width: 24px; height: 24px; fill: none; stroke: var(--cel-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .cea.cel-a .cel-main { margin-top: auto; padding-top: 20px; }
  .cea.cel-a .cel-dock { margin-top: 0; padding-top: 22px; }
  .cea.cel-a h1 { font-size: 52px; line-height: .98; letter-spacing: -.045em; }
  .cea.cel-a .cel-main p { font-size: 17px; margin-top: 14px; }

  /* Short phones: give the media and the button the room. */
  @media (max-height: 700px) {
    .cea.cel-a h1 { font-size: 40px; }
    .cea.cel-a .cel-a-facts li { padding: 10px 6px; }
  }
}
