/* Illustrated crew guide pages (see guide.js). Wide screens: a 16:9 page that scales with its width.
   Phones: the same page reflows into one tall column. */
.gp{--g-paper:#F7EEDC;--g-ink:#1b1b1a;--g-coral:#E8684A;--g-sticky:#F6DE8D;container-type:inline-size;position:relative;width:100%;
  background:var(--g-paper);color:var(--g-ink);box-shadow:inset 0 0 0 10px var(--g-coral);font-family:"Patrick Hand SC","Patrick Hand",ui-rounded,sans-serif}
.gp-in{position:relative;padding:34px 26px 30px;display:flex;flex-direction:column;gap:14px}
.gp h1,.gp h2,.gp h3{font-family:"Permanent Marker","Londrina Solid",Impact,sans-serif;font-weight:400;margin:0;line-height:1.02;letter-spacing:.01em;text-transform:uppercase;overflow-wrap:break-word;min-width:0}
.gp em{font-style:normal;color:var(--g-coral)}
.gp p,.gp li,.gp dd,.gp dt{font-size:17px;line-height:1.25;margin:0}
.g-head h2{font-size:34px}
.g-rule{display:block;width:62%;height:10px;margin-top:6px;color:var(--g-ink)}
.g-art{display:block;max-width:100%;height:auto;mix-blend-mode:multiply;object-fit:contain}
.g-ring{position:absolute;inset:0;width:100%;height:100%;color:var(--g-coral)}
.g-arrow{width:56px;height:20px;color:var(--g-ink);flex:none}
.g-down{display:none;width:22px;height:38px;color:var(--g-ink)}
.g-sticky{position:relative;align-self:flex-end;max-width:300px;background:var(--g-sticky);padding:18px 16px 14px;transform:rotate(-2deg);box-shadow:2px 3px 0 rgba(0,0,0,.12);font-size:16px;line-height:1.25}
.g-tape{position:absolute;top:-9px;left:50%;width:70px;height:18px;margin-left:-35px;background:rgba(255,255,255,.55);transform:rotate(3deg)}
.g-foot{font:500 11px/1 "DM Mono",monospace;letter-spacing:.08em;text-transform:uppercase;color:rgba(0,0,0,.45);text-align:right}

/* cover */
.g-cover{display:flex;flex-direction:column;gap:14px}
.g-cover h1{font-size:clamp(34px,13cqw,54px);line-height:.95}
.g-kicker{font-size:16px;color:var(--g-coral)}
.g-intro{display:flex;gap:10px;align-items:center;font-size:19px}
.g-cover-r{display:flex;gap:10px;justify-content:center}.g-cover-r .g-art{max-height:170px;width:auto}
.g-boxes{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.g-boxes .g-arrow{display:none}
.g-box{border:2.5px solid var(--g-coral);padding:10px 12px;font-size:16px;line-height:1.2;background:rgba(255,255,255,.25)}
.g-box.hot{background:#FBE3B4}

/* steps */
.g-steps-wrap{display:flex;flex-direction:column;gap:14px}
.g-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.g-steps li{display:grid;grid-template-columns:54px 1fr;grid-template-areas:"sep sep" "num txt" "num art";column-gap:12px;align-items:start}
.g-steps .g-sep{grid-area:sep;display:flex;justify-content:center}
.g-steps .g-sep .g-arrow{display:none}.g-steps .g-sep .g-down{display:block;margin:2px auto}
.g-num{grid-area:num;position:relative;width:54px;height:54px;display:grid;place-items:center}
.g-num b{font-family:"Permanent Marker",sans-serif;font-weight:400;font-size:26px;color:var(--g-coral)}
.g-steps p{grid-area:txt;align-self:center}
.g-steps .g-art{grid-area:art;max-height:96px;width:auto;margin-top:6px}
.g-callout{position:relative;align-self:center;width:200px;height:200px;display:grid;place-items:center;text-align:center;padding:30px}
.g-callout div{display:flex;flex-direction:column;gap:6px}.g-callout b{color:var(--g-coral);font-size:20px;font-weight:400}.g-callout span{font-size:18px;line-height:1.2}

/* cards / numbers */
.g-cards,.g-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.g-card h3{font-size:clamp(15px,5.4cqw,19px)}
.g-card{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.g-card .g-art{max-height:110px;width:auto;align-self:center}
.g-card h3{font-size:19px;color:var(--g-coral)}
.g-fact{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;gap:4px}
.g-fact .g-art{max-height:70px;width:auto}
.g-big{font-family:"Permanent Marker",sans-serif;font-size:36px;color:var(--g-coral);line-height:1}

/* timeline */
.g-time{display:flex;flex-direction:column;gap:12px}
.g-slot{display:grid;grid-template-columns:118px 1fr;gap:10px;align-items:start}
.g-when{position:relative;height:70px;display:grid;place-items:center;text-align:center;padding:10px}
.g-when b{font-weight:400;font-size:16px;line-height:1.1}
.g-slot ul,.g-grp ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.g-slot li::before{content:"–  ";color:var(--g-coral)}

/* decide */
.g-decide{display:flex;flex-direction:column;gap:10px}
.g-if{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.g-if .g-arrow{display:none}.g-if .g-down{display:block;height:26px;margin-left:24px}
.g-q{border:2.5px solid var(--g-ink);padding:8px 12px;font-size:17px;background:rgba(255,255,255,.3)}
.g-q i{font-style:normal;color:var(--g-coral);margin-right:8px}
.g-then{border:2.5px solid var(--g-coral);padding:8px 12px;font-size:17px;background:#FBE3B4}
.g-art.corner{max-height:120px;width:auto;align-self:flex-end}

/* list */
.g-list{display:grid;grid-template-columns:1fr;gap:12px}
.g-grp h3{font-size:19px;color:var(--g-coral);margin-bottom:6px}
.g-grp li{display:flex;gap:8px;align-items:flex-start}
.g-box-ck{flex:none;width:15px;height:15px;margin-top:3px;border:2px solid var(--g-ink);transform:rotate(-3deg)}

/* reference card */
.g-ref{display:flex;flex-direction:column;gap:12px;align-items:center}
.g-ref dl{margin:0;width:100%;border:2.5px dashed var(--g-coral);padding:10px 14px;background:rgba(255,255,255,.35);display:flex;flex-direction:column}
.g-ref dl div{display:grid;grid-template-columns:40% 1fr;gap:10px;padding:7px 0;border-bottom:1px solid rgba(0,0,0,.12)}
.g-ref dl div:last-child{border-bottom:0}
.g-ref dt{color:var(--g-coral)}
.g-ref .g-art{max-height:140px;width:auto}

/* ---- wide: a true 16:9 page, everything sized from the page width ---- */
@container (min-width:700px){
  .gp-in{aspect-ratio:16/9;padding:5cqw 4.4cqw 3.4cqw;gap:1.6cqw;overflow:hidden}
  .gp p,.gp li,.gp dd,.gp dt{font-size:1.95cqw}
  .gp-in>:not(.g-head):not(.g-sticky):not(.g-foot):not(.g-art){flex:1}
  .g-head h2{font-size:4.6cqw}
  .g-rule{width:56%;height:1cqw;margin-top:.8cqw}
  .g-arrow{width:5.6cqw;height:2cqw}
  .g-sticky{position:absolute;right:4.4cqw;bottom:3.6cqw;max-width:24cqw;font-size:1.6cqw;padding:1.8cqw 1.6cqw 1.4cqw}
  .g-tape{width:7cqw;height:1.8cqw;margin-left:-3.5cqw;top:-.9cqw}
  .g-foot{position:absolute;left:4.4cqw;bottom:1.8cqw;font-size:.85cqw}
  /* cover */
  .g-cover{display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:1fr auto;gap:1.6cqw 2cqw;height:100%}
  .g-cover h1{font-size:8.6cqw}
  .g-kicker{font-size:1.7cqw}.g-intro{font-size:2.1cqw;margin-top:1.4cqw}
  .g-cover-r{grid-row:1/3;grid-column:2;align-items:center;flex-wrap:wrap}
  .g-cover-r .g-art{max-height:30cqw;max-width:100%}
  .g-cover-r.g-n2 .g-art,.g-cover-r.g-n3 .g-art{max-height:17cqw;max-width:48%}
  .g-boxes{flex-direction:row;align-items:center;gap:.8cqw}
  .g-boxes .g-arrow{display:block;width:3cqw}
  .g-box{font-size:1.45cqw;padding:1cqw 1.1cqw;flex:1}
  /* steps: a row with arrows */
  .g-steps-wrap{flex-direction:row;align-items:center;gap:1.6cqw;flex:1}
  .g-steps{flex-direction:row;gap:0;flex:1}
  .g-steps li{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:1cqw;position:relative;padding-left:5.4cqw}
  .g-steps li:first-child{padding-left:0}
  .g-steps .g-sep{position:absolute;left:.5cqw;top:2cqw}
  .g-steps .g-sep .g-arrow{display:block;width:4.2cqw}.g-steps .g-sep .g-down{display:none}
  .g-num{width:6.2cqw;height:6.2cqw}.g-num b{font-size:3cqw}
  .g-steps .g-art{max-height:16cqw;max-width:100%;margin-top:auto;align-self:center}
  .g-steps li{align-self:stretch}
  .g-steps p{font-size:1.85cqw;min-height:9cqw}
  .g-steps.g-c6 .g-art,.g-steps.g-c5 .g-art{max-height:12cqw}
  .g-callout{width:22cqw;height:22cqw;padding:3cqw;flex:none}
  .g-callout b{font-size:2cqw}.g-callout span{font-size:1.75cqw}
  /* cards / numbers */
  .g-cards,.g-facts{grid-template-columns:repeat(3,1fr);gap:1.6cqw 2cqw;flex:1;align-content:center}
  .g-cards.g-c2,.g-facts.g-c2{grid-template-columns:repeat(2,1fr)}
  .g-cards.g-c4,.g-facts.g-c4{grid-template-columns:repeat(4,1fr)}
  .g-card .g-art{max-height:11cqw}
  .g-cards.g-c2 .g-art,.g-cards.g-c3 .g-art{max-height:15cqw}
  .g-card h3{font-size:2.3cqw}
  .g-cards{align-items:end}
  .g-fact .g-art{max-height:11cqw}.g-big{font-size:5.6cqw}
  .g-facts{align-items:end}
  /* timeline: columns */
  .g-time{flex-direction:row;gap:1.4cqw;flex:1;align-items:center}
  .g-slot{display:flex;flex-direction:column;flex:1;gap:1cqw}
  .g-when{width:100%;height:7cqw;padding:1cqw}.g-when b{font-size:1.6cqw}
  /* decide */
  .g-decide{gap:1.3cqw;justify-content:center;max-width:78%}
  .g-if{flex-direction:row;align-items:center;gap:1.2cqw}
  .g-if .g-arrow{display:block}.g-if .g-down{display:none}
  .g-q,.g-then{font-size:1.7cqw;padding:.9cqw 1.3cqw;flex:1}
  .g-q{max-width:44%}
  .g-art.corner{position:absolute;right:4cqw;top:3.6cqw;max-height:12cqw}
  /* list */
  .g-list{grid-template-columns:repeat(2,1fr);gap:1.4cqw 3cqw;max-width:72%;align-content:center}
  .g-list li{font-size:2.05cqw}
  .g-list.g-c1{grid-template-columns:1fr}.g-list.g-c3{grid-template-columns:repeat(3,1fr);max-width:none}
  .g-grp h3{font-size:2.4cqw;margin-bottom:.8cqw}
  .g-grp ul{gap:.45cqw}
  .g-box-ck{width:1.6cqw;height:1.6cqw;margin-top:.35cqw}
  /* reference */
  .g-ref{flex-direction:row;align-items:center;gap:3cqw;flex:1}
  .g-ref dl{flex:1;padding:1.2cqw 2cqw}
  .g-ref dl div{padding:.75cqw 0}
  .g-ref .g-art{max-height:24cqw;max-width:30%}
}

/* the viewer */
.gv{position:fixed;inset:0;z-index:60;background:#2b2a27;display:flex;flex-direction:column}
.gv-top{display:flex;align-items:center;gap:12px;padding:10px 14px;color:#F3F1E7;font:500 12px/1.2 "DM Mono",monospace;letter-spacing:.06em;text-transform:uppercase}
.gv-top b{flex:1;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gv-top button{font:inherit;color:#F3F1E7;background:none;border:1.5px solid #F3F1E7;padding:8px 12px;cursor:pointer}
.gv-stage{flex:1;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:0 10px 10px}
.gv-stage .gp{max-width:min(100%,calc((100vh - 130px) * 16 / 9))}
@media(min-width:760px){.gv-stage{align-items:center}}
.gv-nav{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px 16px}
.gv-nav button{font:500 13px/1 "DM Mono",monospace;text-transform:uppercase;letter-spacing:.06em;padding:12px 18px;border:1.5px solid #F3F1E7;background:#F3F1E7;color:#1C2340;cursor:pointer;min-width:110px}
.gv-nav button.ghost{background:none;color:#F3F1E7}
.gv-nav button:disabled{opacity:.35;cursor:default}
.gv-dots{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-width:40vw}
.gv-dots i{width:9px;height:9px;border-radius:50%;background:#6c6a63}.gv-dots i.on{background:#E8684A}

/* long words never push a page wider than the screen */
.gp p,.gp li,.gp dd,.gp dt,.g-card,.g-fact,.g-if span{overflow-wrap:break-word;min-width:0}
.g-card h3{hyphens:auto}
@container (max-width:699px){
  .g-cards,.g-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-card h3{font-size:clamp(13px,4.3cqw,19px);overflow-wrap:anywhere}
  .g-cover h1{font-size:clamp(22px,10cqw,54px);overflow-wrap:break-word}
}
