/* Shared styles for Bad Flows spec advertorials (/work/*).
   Modelled on the production level of the advertorials StrikeFunnels and
   mushroom.co actually run: publisher bar, urgency datestamp, author avatar,
   two-column with a thumbnailed sidebar, annotated hero, editor's note box.
   No brand orange and no display face in here: these must read as though a
   publisher shipped them, not as though an agency did.
   NOTE: no drop caps anywhere. Standing rule. */

:root{
  --paper:#FFFFFF;
  --band:#F4F6F8;
  --ink:#15171A;
  --ink-soft:#3A4048;
  --muted:#6B7280;
  --muted-2:#8A9199;
  --rule:#E2E6EA;
  --alert:#C81E1E;       /* urgency red, editorial not brand */
  --accent:#B4441F;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--band);color:var(--ink);font-family:var(--sans);
     font-size:18px;line-height:1.62;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:var(--accent)}

/* Bad Flows disclosure. This is what keeps a spec build honest. */
.ribbon{background:#0E1110;color:#fff;font-size:13px;line-height:1.5;padding:10px 20px;text-align:center}
.ribbon b{color:#FF8A4C}

.advlabel{background:#0E1110;color:#8A9199;text-align:center;font-size:9.5px;
          letter-spacing:.28em;text-transform:uppercase;padding:5px 0;border-top:1px solid #23282A}

/* publisher bar */
.pub{background:#111417;color:#fff;padding:13px 0}
.pub-in{max-width:1080px;margin:0 auto;padding:0 22px;display:flex;align-items:center;gap:14px}
.pub-name{font-size:15px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;white-space:nowrap}
.pub-tag{font-size:11.5px;color:#98A0A8;border-left:1px solid #2C3236;padding-left:14px;line-height:1.35}
@media(max-width:640px){.pub-tag{display:none}}
.pub-live{margin-left:auto;font-size:10px;letter-spacing:.16em;text-transform:uppercase;font-weight:700;
          color:#7BE0A0;border:1px solid #2F6B45;background:#12281B;padding:5px 9px;border-radius:3px;white-space:nowrap}

/* page shell: white article sheet on a grey ground */
.sheet{max-width:1080px;margin:0 auto;background:var(--paper);
       box-shadow:0 1px 0 var(--rule), 0 18px 50px -34px rgba(0,0,0,.28)}
.grid{display:grid;gap:0}
@media(min-width:940px){.grid{grid-template-columns:minmax(0,1fr) 300px}}

article{padding:26px 22px 50px;min-width:0}
@media(min-width:940px){article{padding:30px 34px 60px;border-right:1px solid var(--rule)}}

.stamp{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
       color:var(--alert);margin-bottom:12px}
.crumbs{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
        color:var(--accent);margin-bottom:12px}
.crumbs span{color:var(--muted-2);margin:0 6px}

h1{font-size:clamp(28px,4.4vw,39px);line-height:1.16;letter-spacing:-.022em;font-weight:800;
   margin:0 0 14px;border-left:5px solid var(--alert);padding-left:16px}
.dek{font-size:19.5px;font-weight:600;color:var(--ink);margin:0 0 10px;line-height:1.45}
.subdek{font-size:16.5px;color:var(--muted);margin:0 0 20px;line-height:1.5}

/* author block */
.author{display:flex;align-items:center;gap:12px;border-top:1px solid var(--rule);
        border-bottom:1px solid var(--rule);padding:13px 0;margin-bottom:24px}
.avatar{width:40px;height:40px;border-radius:50%;background:#111417;color:#fff;flex:none;
        display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;letter-spacing:.04em}
.author-meta{font-size:13.5px;color:var(--muted);line-height:1.45}
.author-meta b{color:var(--ink);font-weight:700}

/* annotated hero: the red ring is the whole trick, it aims the eye */
.hero{position:relative;margin:0 0 12px}
.hero img{width:100%;height:auto}
.ring{position:absolute;border:6px solid var(--alert);border-radius:50%;
      box-shadow:0 8px 26px -8px rgba(0,0,0,.5)}
.ring-note{position:absolute;background:var(--alert);color:#fff;font-size:11.5px;font-weight:800;
           letter-spacing:.05em;text-transform:uppercase;padding:6px 10px;border-radius:3px;
           line-height:1.3;max-width:170px}
figcaption{font-size:13.5px;color:var(--muted);padding:9px 0 0;line-height:1.5;border-bottom:1px solid var(--rule);
           padding-bottom:16px;margin-bottom:22px}
figcaption a{color:var(--accent)}

.lede{font-size:19px;font-weight:700;margin:0 0 20px;line-height:1.5}

h2{font-size:clamp(21px,3vw,26px);line-height:1.28;letter-spacing:-.015em;font-weight:800;margin:34px 0 13px}
p{margin:0 0 17px}
strong{font-weight:700}

/* editor's note. Legitimacy plus urgency in one box. */
.ednote{border-left:4px solid var(--alert);background:var(--band);padding:16px 18px;margin:24px 0;
        font-size:15.5px;font-style:italic;color:var(--ink-soft);line-height:1.6}
.ednote b{font-style:normal;color:var(--ink)}

.pull{border-left:4px solid var(--accent);padding:2px 0 2px 18px;margin:26px 0;
      font-size:20px;line-height:1.45;font-weight:600}

.checklist{background:var(--band);border:1px solid var(--rule);border-radius:6px;padding:20px 22px;margin:26px 0}
.checklist h3{margin:0 0 12px;font-size:16.5px}
.checklist ul{margin:0;padding-left:19px}
.checklist li{margin-bottom:10px}
.checklist li:last-child{margin-bottom:0}

/* product block, late on purpose */
.prod{border:1px solid var(--rule);border-radius:8px;overflow:hidden;margin:32px 0}
.prod-body{padding:22px}
.prod .kicker{font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.prod h3{margin:0 0 9px;font-size:22px;letter-spacing:-.01em}
.prod p{font-size:17px;color:var(--ink-soft);margin-bottom:15px}
.buy{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;font-weight:700;
     font-size:17px;padding:14px 24px;border-radius:6px}
.terms{font-size:13px;color:var(--muted);margin:11px 0 0}

.disclose{border-top:1px solid var(--rule);margin-top:38px;padding-top:20px;
          font-size:13.5px;color:var(--muted);line-height:1.6}
.disclose b{color:var(--ink-soft)}

/* ---------- sidebar ---------- */
aside{padding:26px 22px 40px;min-width:0}
@media(min-width:940px){aside{padding:30px 22px 50px;position:sticky;top:0;align-self:start}}
.side-h{font-size:13px;font-weight:800;letter-spacing:.04em;color:var(--accent);
        border-bottom:2px solid var(--accent);padding-bottom:8px;margin:0 0 16px}
.rel{display:grid;gap:15px;margin:0 0 30px}
.rel a{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;align-items:start;
       text-decoration:none;color:var(--ink)}
.rel img{width:74px;height:74px;object-fit:cover;border-radius:4px}
.rel span{font-size:14.5px;font-weight:700;line-height:1.36}
.rel a:hover span{color:var(--accent)}

.side-ad{font-size:9.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--muted-2);
         text-align:center;border-top:1px solid var(--rule);padding-top:12px;margin-bottom:14px}
.side-prod{border:1px solid var(--rule);border-radius:6px;padding:16px;text-align:center}
.side-prod .sp-k{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.side-prod h4{margin:0 0 8px;font-size:17px;line-height:1.3}
.side-prod p{font-size:14px;color:var(--muted);margin:0 0 13px;line-height:1.5}
.side-prod .buy{font-size:15px;padding:11px 18px;width:100%}

/* reviews in the sidebar */
.rev{border-top:1px solid var(--rule);margin-top:26px;padding-top:18px}
.rev-item{margin-bottom:18px}
.rev-item:last-child{margin-bottom:0}
.stars{color:#E8A33D;font-size:13px;letter-spacing:.09em;margin-bottom:6px}
.rev-item p{font-size:14.5px;font-style:italic;color:var(--ink-soft);margin:0 0 6px;line-height:1.5}
.rev-who{font-size:12.5px;color:var(--muted)}
.rev-who b{color:var(--ink);font-style:normal}

footer{max-width:1080px;margin:0 auto;padding:22px;text-align:center;font-size:13px;color:var(--muted)}
footer a{color:var(--muted)}

/* ?card=1 hides our disclosure ribbon so screenshot crops are deterministic */
html[data-card] .ribbon{display:none}
