/* Train page. Loads after the site stylesheet and learn.css, which supply the header,
   footer, hero, intro, next-step cards and sign-off. Each case is dressed as an
   Instagram post; the page around it stays in the site's own type and palette. */
.train .hero-sub{margin:12px auto 0;max-width:520px;font:italic 400 clamp(17px,2vw,20px)/1.45 "Cormorant Garamond",serif;color:rgba(248,244,230,.75)}
.train .hero-meta{margin-top:16px}
.train-intro .intro{padding-top:48px}

.feed{display:grid;gap:56px;max-width:940px;margin:48px auto 0;padding:0 16px}
@media(min-width:768px){.feed{gap:72px;margin-top:64px;padding:0 24px}}

/* The post card. Instagram's own UI font, colors and hairlines inside the card only. */
.case{--ig-ink:#0c1014;--ig-mute:#737373;--ig-line:#dbdbdb;--ig-blue:#0095f6;
  position:relative;background:#fff;border:1px solid var(--ig-line);border-radius:8px;overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ig-ink);
  box-shadow:0 1px 2px rgba(107,68,35,.05),0 18px 40px -24px rgba(107,68,35,.35);scroll-margin-top:80px}
.case svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.post-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 14px}
.post-user{display:flex;align-items:center;gap:10px;min-width:0}
.post-user img{width:32px;height:32px;border-radius:999px;object-fit:cover;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.post-user span{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.post-user b{font-size:14px;font-weight:600}
.post-user small{font-size:12px;color:var(--ig-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post-user:hover b{color:var(--ig-mute)}
.post-follow{flex-shrink:0;padding:7px 14px;border-radius:8px;background:#efefef;font-size:14px;font-weight:600;transition:background .2s}
.post-follow:hover{background:#dbdbdb}

/* Carousel: native swipe with scroll snap; dots, counter and arrows follow it. */
.post-media{position:relative;background:#000;aspect-ratio:1}
.slides{display:flex;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.slides::-webkit-scrollbar{display:none}
.slides:focus-visible{outline:2px solid var(--ig-blue);outline-offset:-2px}
.slide{position:relative;flex:0 0 100%;margin:0;scroll-snap-align:start}
.slide img{display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.piece{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:6px;height:28px;min-width:28px;padding:0 9px;border-radius:999px;background:rgba(18,18,18,.7);color:#fff;font-size:13px;font-weight:700;white-space:nowrap;line-height:1}
.piece em{display:none;font-style:normal;font-size:12px;font-weight:700;letter-spacing:.02em}
.piece em::before{content:"";display:inline-block;width:1px;height:12px;margin-right:7px;vertical-align:-2px;background:rgba(255,255,255,.55)}
.nav{position:absolute;top:50%;display:grid;place-items:center;width:30px;height:30px;margin-top:-15px;border-radius:999px;background:rgba(255,255,255,.86);color:#262626;box-shadow:0 1px 6px rgba(0,0,0,.18);transition:background .2s,opacity .2s}
.nav:hover{background:#fff}
.nav svg{width:16px;height:16px;stroke-width:2.6}
.nav-prev{left:10px}.nav-next{right:10px}
@media(hover:none){.nav{display:none}}

/* Verdict chips: hidden until the case is revealed, placed beside the A and B
   letters burned into each cover (positions come from the case data). */
.verdict{position:absolute;left:var(--x);top:var(--y);display:none;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.02em;white-space:nowrap;line-height:1.2;transform:translate(var(--shift,-50%),-50%);box-shadow:0 2px 10px rgba(0,0,0,.2)}
.is-revealed .verdict{display:block}
.is-revealed .piece em{display:inline}
.verdict.real,.piece.real{background:#c7802d;color:#fff}
.verdict.fake,.piece.fake{background:#c73e3a;color:#fff}
@media(min-width:960px){.verdict{font-size:13px;padding:6px 12px}}

.post-actions{position:relative;display:flex;align-items:center;justify-content:space-between;padding:24px 12px 6px}
.stats{display:flex;align-items:center;gap:14px}
.stats li{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600}
.dots{position:absolute;left:50%;top:calc(100% + 10px);display:flex;gap:4px;transform:translateX(-50%);pointer-events:none}
.dots i{width:6px;height:6px;border-radius:999px;background:#c7c7c7;transition:background .2s}
.dots i.on{background:var(--ig-blue)}
.save{color:var(--ig-ink)}

.post-caption{padding:4px 14px 0}
.post-caption p{font-size:14px;line-height:1.5}
.post-caption a{font-weight:600;margin-right:4px}

/* The question: an Instagram poll sticker, two big options. */
.poll{margin:16px 14px 0;padding:16px;border-radius:14px;background:#fafafa;border:1px solid #efefef;text-align:center}
.poll-q{font-size:15px;font-weight:700}
.poll-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.poll-options button{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:10px;background:#fff;border:1px solid var(--ig-line);font-size:16px;transition:border-color .2s,background .2s,transform .1s}
.poll-options button:hover:not([disabled]){border-color:#a8a8a8}
.poll-options button:active:not([disabled]){transform:scale(.98)}
.poll-options button b{font-size:18px}
.poll-options button[disabled]{cursor:default}
.poll-note{font-size:13px;font-weight:600}
.poll-options .real{border-color:#c7802d;background:rgba(199,128,45,.1);color:#8a5418}
.poll-options .fake{border-color:rgba(199,62,58,.45);background:rgba(199,62,58,.06);color:#a3302d}
.poll-options .picked{box-shadow:0 0 0 2px currentColor inset}
.poll-skip{margin-top:10px;font-size:13px;color:var(--ig-mute);text-decoration:underline;text-underline-offset:3px}
.poll-skip:hover{color:var(--ig-ink)}
.poll-result{margin-top:12px;font-size:14px;font-weight:600}
.poll-result:empty{display:none}
.poll-result:focus{outline:0}
.is-revealed .poll-skip{display:none}

/* The answer, as Vin's pinned comment. Collapsed only where scripts run, so crawlers
   and no-JS readers always get the full text. */
@media (scripting:enabled){.case:not(.is-revealed) .answer{display:none}}
.answer{padding:18px 14px 0;animation:answer-in .45s ease-out}
@keyframes answer-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.comment{display:grid;grid-template-columns:32px 1fr auto;gap:12px}
.comment>img{width:32px;height:32px;border-radius:999px;object-fit:cover}
.comment-body p{font-size:14px;line-height:1.55}
.comment-body p+p{margin-top:8px}
.comment-meta{font-size:13px!important}
.comment-meta b{font-weight:600}
.comment-meta span{color:var(--ig-mute);margin-left:4px}
.comment-body mark{background:rgba(199,128,45,.18);color:inherit;padding:0 2px;border-radius:2px;font-weight:600}
.comment-body a{color:#00376b}
.comment-like{display:flex;flex-direction:column;align-items:center;gap:2px;padding-top:4px;font-size:12px;color:var(--ig-mute)}
.comment-like svg{width:14px;height:14px}
.related{margin:16px 0 0 44px;padding:10px 12px;border-left:2px solid rgba(199,128,45,.5);background:rgba(199,128,45,.06);font-size:13px;line-height:1.55;color:#4a4a4a}
.related a{color:#6b4423;text-decoration:underline;text-decoration-color:rgba(107,68,35,.35);text-underline-offset:3px}

.post-foot{display:flex;flex-direction:column;gap:6px;padding:16px 14px 16px}
.post-foot a{font-size:14px;color:var(--ig-mute)}
.post-foot a:hover{color:var(--ig-ink)}
.post-foot time{font-size:11px;letter-spacing:.03em;text-transform:uppercase;color:var(--ig-mute)}

/* Wide screens: Instagram's desktop post view, photos left and everything else right. */
@media(min-width:960px){
  .case{display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr auto auto;
    grid-template-areas:"media head" "media caption" "media poll" "media answer" "media gap" "media actions" "media foot"}
  .post-media{grid-area:media;align-self:start;position:sticky;top:64px}
  .post-head{grid-area:head;border-bottom:1px solid #efefef;padding:14px 16px}
  .post-caption{grid-area:caption;padding:14px 16px 0}
  .poll{grid-area:poll;margin:16px 16px 0}
  .answer{grid-area:answer;padding:18px 16px 0}
  .post-actions{grid-area:actions;border-top:1px solid #efefef;margin-top:18px;padding:10px 16px 6px}
  .post-media .dots{top:auto;bottom:14px}
  .post-media .dots i{background:rgba(255,255,255,.6);box-shadow:0 0 3px rgba(0,0,0,.35)}
  .post-media .dots i.on{background:#fff}
  .post-foot{grid-area:foot;padding:8px 16px 16px}
}

.weekly{max-width:48rem;margin:72px auto 0;padding:0 24px;text-align:center}
.weekly p{font:400 16px/1.8 "Source Serif 4",serif;color:rgba(28,28,28,.82)}
.weekly a{display:inline-flex;align-items:center;gap:8px;margin-top:16px;min-height:44px;padding:10px 20px;border-radius:4px;background:#1c1c1c;color:#f8f4e6;font:600 15px "Cormorant Garamond",serif;letter-spacing:.02em;transition:background .2s}
.weekly a:hover{background:#333}

@media(prefers-reduced-motion:reduce){.answer{animation:none}.slides{scroll-behavior:auto}}

/* Photo reuse line under the sign-off; target of the image license URL in the JSON-LD. */
.signoff .rights{margin-top:4px;font-size:12px;color:rgba(28,28,28,.45);scroll-margin-top:96px}
