/* The module pages: /crew-scheduling, /itinerary, /operations-control, /crew-app (2026-10-11, the operator:
   "open full size should take to the module and explain some of the features the app has"). One desk per
   page, shown by the app itself: the desk's main screen first, then a handful of things it does, each beside
   the screen that proves it. Loaded after site.css; the pages are written by tools/mkmodules.py, never by hand.
   Direction contract: .impeccable/surfaces/modules-html.md. */

/* ── Head: the desk's name, one sentence and the demo button, then its main screen ── */
.mhero{background:var(--bg); padding-top:calc(76px + clamp(36px, 5vw, 72px)); padding-bottom:clamp(48px, 6vw, 88px)}
.mhero-head{display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:22px clamp(32px,5vw,80px); align-items:end;
            margin-bottom:clamp(30px,4vw,52px)}
.mhero h1{font-family:var(--display); font-weight:800; font-size:clamp(46px,6vw,84px); line-height:.92; letter-spacing:-.5px;
          margin:0; text-wrap:balance}
.mhero-copy p{margin:0 0 26px; color:var(--ink-2); font-size:clamp(17.5px,1.4vw,20px); line-height:1.55; max-width:44ch; text-wrap:pretty}
/* The crew app's head: a phone is portrait, so the copy and the phone sit side by side (Apple's badge beside
   the demo button, as Apple ships it, site.css). */
.mhero-split{display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:clamp(36px,5vw,80px); align-items:center}
.mhero-split h1{margin-bottom:24px}
@media (max-width:860px){ .mhero-head, .mhero-split{grid-template-columns:minmax(0,1fr)} }
@media (max-width:480px){ .mhero-copy .btn{width:100%} }

/* ── A screenshot: framed like the homepage's boards, and the whole of it a link to the full image (the
   phone's own viewer zooms it, and back comes back). The caption says what the screen proves. ── */
.shot{margin:0}
.shot-a{display:block; color:inherit; text-decoration:none; cursor:zoom-in; border-radius:16px}
.shot-frame{display:block; border-radius:16px; overflow:hidden; background:var(--navy-2);
            box-shadow:0 0 0 1px rgba(143,163,181,.22), var(--shadow); transition:box-shadow .3s var(--ease)}
.shot-frame img{display:block; width:100%; height:auto}
.shot-a:hover .shot-frame{box-shadow:0 0 0 1px rgba(79,209,197,.55), var(--shadow)}
.shot-cap{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 24px; margin-top:14px;
          font-size:15px; line-height:1.45; color:var(--ink-3)}
.shot-cap .full{display:inline-flex; align-items:center; gap:7px; flex:none; font-weight:600; color:var(--accent)}
.shot-cap .full svg{width:15px; height:15px}
.shot-a:hover .full{text-decoration:underline}
/* A phone's screenshot wears the homepage's phone: a dark bezel, its ring and the card shadow. */
.pshot{width:min(100%, 290px); justify-self:center}
.pshot .shot-a, .pshot .shot-frame{border-radius:46px}
.pshot .shot-frame{padding:9px; background:#04070b; box-shadow:0 0 0 1px rgba(143,163,181,.24), var(--card-shadow)}
.pshot .shot-a:hover .shot-frame{box-shadow:0 0 0 1px rgba(79,209,197,.55), var(--card-shadow)}
.pshot .shot-frame img{border-radius:37px}
.pshot .shot-cap{justify-content:center; text-align:center}
@media (max-width:560px){ .pshot{width:min(78%, 300px)} .pshot .shot-a, .pshot .shot-frame{border-radius:36px}
  .pshot .shot-frame{padding:7px} .pshot .shot-frame img{border-radius:29px} }

/* ── Features: copy beside its screen (.feat-split, the screen on the right, or on the left with .flip), or
   above a screen that needs the whole width (.feat-wide). Narrow screens stack them, the screen first. ── */
.feat{padding-top:clamp(64px,8vw,112px); padding-bottom:clamp(64px,8vw,112px)}
.feat.is-band{background:var(--surface)}
.mhero + .feat:not(.is-band){padding-top:clamp(16px,2.5vw,32px)}   /* one navy ground: the head's own space is enough */
.feat-body{display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(30px,4vw,52px)}
.feat-split{grid-template-columns:minmax(0,4fr) minmax(0,8fr); gap:clamp(32px,5vw,80px); align-items:center}
.feat-split.flip{grid-template-columns:minmax(0,8fr) minmax(0,4fr)}
.feat-split.flip .feat-copy{order:2}
/* A tall screen (a window, a phone) takes the narrower column, so it is not drawn taller than the copy needs. */
.feat-split.tall{grid-template-columns:minmax(0,6fr) minmax(0,5fr)}
.feat-split.tall.flip{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
.feat-copy h2{font-family:var(--display); font-weight:800; font-size:clamp(34px,3.6vw,50px); line-height:.98; letter-spacing:-.3px;
              margin:0 0 18px; text-wrap:balance}
.feat-copy p{margin:0; color:var(--ink-2); font-size:clamp(17px,1.3vw,19px); line-height:1.6; max-width:52ch; text-wrap:pretty}
.feat-points{list-style:none; margin:26px 0 0; padding:0; border-top:1px solid var(--line); max-width:52ch}
.feat-points li{display:grid; grid-template-columns:18px minmax(0,1fr); gap:12px; padding-top:12px; padding-bottom:12px;
                border-bottom:1px solid var(--line); font-size:16.5px; line-height:1.45}
.feat-points svg{width:18px; height:18px; margin-top:2px; color:var(--accent)}
.feat-wide .feat-copy{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:0 clamp(32px,5vw,80px); align-items:start}
.feat-wide .feat-copy h2{margin-bottom:0}
@media (max-width:980px){
  .feat-split, .feat-split.flip, .feat-split.tall, .feat-split.tall.flip, .feat-wide .feat-copy{grid-template-columns:minmax(0,1fr)}
  .feat-split.flip .feat-copy{order:0}
  .feat-body > .shot{order:-1}
  .feat-wide .feat-copy h2{margin-bottom:18px}
}

/* ── The other desks, in the order the day runs: one row each, its photograph from the homepage's desk card ── */
.next-list{list-style:none; margin:0; padding:0; border-top:1px solid var(--line)}
.next-list a{display:grid; grid-template-columns:clamp(120px,17vw,224px) minmax(0,1fr) auto; gap:clamp(18px,3vw,40px); align-items:center;
             padding-top:clamp(16px,2vw,24px); padding-bottom:clamp(16px,2vw,24px); border-bottom:1px solid var(--line);
             color:var(--ink); text-decoration:none}
.next-ph{display:block; aspect-ratio:3/2; border-radius:10px; overflow:hidden; background:var(--surface-2); box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.next-ph img{display:block; width:100%; height:100%; object-fit:cover; transition:transform .9s var(--ease)}
.next-list a:hover .next-ph img{transform:scale(1.045)}
.next-t{display:block; font-family:var(--display); font-weight:800; font-size:clamp(26px,2.6vw,36px); line-height:1.02; margin-bottom:8px}
.next-p{display:block; color:var(--ink-2); font-size:17px; line-height:1.45; max-width:52ch; text-wrap:pretty}
.next-go{width:22px; height:22px; color:var(--ink-3); transition:transform .25s var(--ease), color .2s}
.next-list a:hover .next-go, .next-list a:focus-visible .next-go{color:var(--accent); transform:translateX(4px)}
@media (max-width:560px){
  .next-list a{grid-template-columns:104px minmax(0,1fr)}
  .next-go{display:none}
  .next-p{font-size:15.5px}
}
.feat .rv + .rv{--d:.08s}
.foot-col a[aria-current="page"]{color:var(--on-dark)}

/* ── The photo view (modules.js): a screenshot opened over the page, centred, the page dimmed and blurred behind
   it (the operator, 2026-10-11). A tap on the background closes it; a tap on the photo zooms it to the app's own
   size, to pan. The stage is as wide as its content, so a zoomed photo scrolls from its left edge instead of
   being cut off by the centring. ── */
html.lb-open{overflow:hidden}
.lb{position:fixed; inset:0; z-index:80; overflow:auto; overscroll-behavior:contain; background:rgba(4,8,13,.86);
    opacity:0; transition:opacity .25s var(--ease)}
@supports (backdrop-filter:blur(1px)){ .lb{background:rgba(4,8,13,.66); backdrop-filter:blur(14px) saturate(1.1)} }
.lb[hidden]{display:none}
.lb.is-open{opacity:1}
.lb-stage{display:flex; box-sizing:border-box; width:max-content; min-width:100%; min-height:100%;
          padding-top:72px; padding-bottom:40px; padding-left:var(--gutter); padding-right:var(--gutter)}
.lb-fig{margin:auto; display:flex; flex-direction:column; align-items:center; gap:14px}
.lb-img{display:block; width:auto; height:auto; max-width:calc(100vw - 2 * var(--gutter)); max-height:calc(100vh - 210px);
        max-height:calc(100dvh - 210px);   /* room for the caption's two lines and the hint */ border-radius:12px; background:var(--navy-2);
        box-shadow:0 0 0 1px rgba(143,163,181,.22), 0 40px 90px -30px rgba(0,0,0,.9);
        transform:scale(.97); transition:transform .3s var(--ease)}
.lb-img.is-phone{border-radius:28px}
.lb-img.can-zoom{cursor:zoom-in}
.lb.is-open .lb-img{transform:none}
.lb-cap{max-width:min(60ch, calc(100vw - 2 * var(--gutter))); color:var(--on-dark-2); font-size:15px; line-height:1.45; text-align:center}
.lb.is-zoom .lb-img{width:var(--lb-zw); max-width:none; max-height:none; cursor:zoom-out}
.lb-hint{margin:-6px 0 0; color:var(--on-dark-3); font-size:13.5px; text-align:center}
.lb.is-zoom .lb-cap, .lb.is-zoom .lb-hint{display:none}
.lb-close{position:fixed; top:14px; right:14px; z-index:1; width:44px; height:44px; padding:0; border:0; border-radius:50%;
          background:rgba(14,23,33,.86); color:#fff; cursor:pointer; box-shadow:0 0 0 1px rgba(143,163,181,.3)}
.lb-close i::before, .lb-close i::after{content:""; position:absolute; left:12px; top:21px; width:20px; height:2px; border-radius:2px; background:currentColor}
.lb-close i::before{rotate:45deg} .lb-close i::after{rotate:-45deg}
.lb-close:hover{background:rgba(23,36,51,.95)}
.shot-frame picture{display:block}
