/* Tyler Lehmann: media.html only ("Social media"). Loads AFTER css/site.css and adds a few page rules on the old tokens
   (--txt --txt2 --txt3 --acc --on-acc --panel --panel-line --disp --body). No new colours, no new type. */

/* anchors land below the sticky bar */
#answers,#series,#slides-guess,#slides-mortgage{scroll-margin-top:calc(var(--bar) + 16px)}

/* ---------- [TYLER TO APPROVE] markers: the old .tag chip, kept visible and unmodified ---------- */
.m-appr{cursor:help;white-space:nowrap}
.m-qh{display:grid;justify-items:start;gap:9px;margin:0 0 14px}
.m-qh > .h3,.m-qh > h1{margin:0}
.m-h1row{margin:0 0 28px;gap:14px}
.m-h1row .fw{margin:0}
.m-appr-note{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:68ch;margin:0 0 56px;padding:14px 18px;border:1px solid var(--panel-line);border-radius:14px;background:var(--panel);color:var(--txt);font-size:16px;line-height:1.45}

/* ---------- hero ---------- */
.hero-page .hero-note{max-width:46ch;margin:26px 0 0;color:var(--txt2);font-size:16px}
.hero-page .hero-note strong{color:var(--txt);font-weight:700}
@media (min-width:1100px){.hero-page .fw{font-size:clamp(48px,5vw,72px)}}
/* phones: site.css makes .hero-inner display:contents and orders the headline, sub and button; slot the rest in reading order,
   headline first, marker under it, the picture last */
@media (max-width:900px){
  .hero-page .eyebrow{order:0}
  .hero-page .m-h1row{order:1}
  .hero-page .m-h1row .fw{order:0}
  .hero-page .hero-sub{order:2}
  .hero-page .hero-cta{order:3;margin-bottom:0}
  .hero-page .hero-note{order:4;margin:24px 0 8px}
  .hero-page .hero-media{order:5}
}

/* ---------- the answers ---------- */
.m-intro{display:grid;gap:32px;align-items:center;margin:0 0 56px}
.m-intro .lead{margin:16px 0 0;color:var(--txt2)}
.m-lamp{margin:0}
.m-lamp img{width:100%;height:auto;border-radius:18px;border:1px solid var(--panel-line)}
@media (min-width:900px){.m-intro{grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:64px}}

.m-group{display:grid;gap:26px;padding:44px 0 8px;border-top:1px solid var(--panel-line)}
.m-group-head{display:grid;gap:10px;align-content:start}
.m-group-head .m-qh{margin:0}
.m-group-head p{margin:0;max-width:32ch;color:var(--txt2)}
.m-gh{font-size:32px;line-height:1.1}
.m-list{display:grid}
.m-qa{padding:0 0 34px}
.m-qa + .m-qa{padding-top:32px;border-top:1px dashed var(--panel-line)}
.m-qa:last-child{padding-bottom:24px}
.m-q{margin:0}
.m-qa p{margin:0 0 12px;max-width:60ch;font-size:18px;line-height:1.62;color:var(--txt2)}
.m-pull{padding-left:16px;border-left:3px solid var(--acc);color:var(--txt)!important;font-weight:700}
.m-qa a{color:var(--txt);font-weight:700;text-decoration:underline;text-decoration-color:var(--acc);text-decoration-thickness:2px;text-underline-offset:4px}
.m-qa a:hover{text-decoration-color:var(--txt)}
.m-three{counter-reset:q;display:grid;gap:12px;max-width:60ch;margin:0 0 16px;padding:0;list-style:none}
.m-three li{counter-increment:q;position:relative;padding-left:46px;font-size:18px;line-height:1.55;color:var(--txt2)}
.m-three li::before{content:counter(q);position:absolute;left:0;top:-1px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--acc);color:var(--on-acc);font:400 19px/1 var(--disp)}

/* the one clip: the old page's own video (native controls, poster, preload none), beside the answer it belongs to */
.m-video{max-width:260px}
.m-video figcaption{margin-top:12px;max-width:260px;font-weight:400;font-size:15px;line-height:1.45;color:var(--txt2)}
.m-qa.has-v .m-body{max-width:60ch}
@media (max-width:899px){.m-qa.has-v .m-video{margin-top:14px}}
@media (min-width:900px){
  .m-qa.has-v{display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto 1fr;column-gap:44px;align-items:start}
  .m-qa.has-v > .m-qh,.m-qa.has-v > .m-body{grid-column:1}
  .m-qa.has-v > .m-video{grid-column:2;grid-row:1 / span 2}
}
@media (min-width:900px){
  .m-group{grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:56px;padding-top:48px}
  .m-group-head{position:sticky;top:calc(var(--bar) + 24px);align-self:start}
}

.m-note{max-width:68ch;margin:36px 0 0;padding-top:22px;border-top:1px solid var(--panel-line);color:var(--txt2)}
.m-ask{display:grid;gap:18px;justify-items:start;margin-top:40px;padding:30px 26px 28px;border:1px solid var(--panel-line);border-radius:18px;background:var(--panel)}
.m-ask-copy{display:grid;gap:8px}
.m-ask p{margin:0;max-width:46ch;color:var(--txt2)}
@media (min-width:720px){.m-ask{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;padding:32px 40px}}

/* ---------- the series: two carousels, a scroll strip like the old cover strip but at the slide's own 4:5 ---------- */
.m-head .lead{margin:16px 0 0;color:var(--txt2)}
.m-set{margin-top:44px}
.m-set + .m-set{margin-top:52px}
.m-set-head{display:grid;gap:8px}
.m-set-head h3{margin:0}
.m-set-head p{margin:0;max-width:52ch;color:var(--txt2)}
.m-strip{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0;padding:22px max(24px,calc((100% - 1180px) / 2)) 14px;scroll-padding-inline:max(24px,calc((100% - 1180px) / 2));list-style:none;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.m-strip:focus-visible{outline-offset:-3px;border-radius:12px}
.m-strip li{flex:0 0 min(68vw,290px);scroll-snap-align:start}
.m-strip img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:12px;border:1px solid var(--panel-line);background:#000}
/* footer on phones: the two-column link grid let the e-mail address push the page to 445px wide at 390; let the columns shrink and the address wrap */
.foot .top > *{min-width:0}
.foot li a{overflow-wrap:anywhere}
@media (max-width:640px){
  .foot .top{grid-template-columns:auto minmax(0,1fr);column-gap:14px}
  .foot .top > :nth-child(4){grid-column:1 / -1}
}

@media (max-width:640px){
  .m-strip{padding-inline:16px;scroll-padding-inline:16px}
  .m-gh{font-size:28px}
  .m-appr-note{margin-bottom:40px}
  .m-intro{margin-bottom:40px}
}
