/* MCR Stories single - V3 design, 2026-08-10.
 *
 * Lifted from story-single-preview-v3.html. Same tokens, same class names, same
 * measurements. Two changes were required to put it inside WordPress:
 *
 *  1. Everything is scoped under .mcr-v3 so it cannot leak into the shared
 *     header, sidebar-nav, mobile navigation, footer or any other template.
 *     The preview styled bare `body`, `a`, `img`, `p` and `button`; those rules
 *     are now scoped to .mcr-v3 and its descendants.
 *  2. The preview's page background lived on `body`. It now lives on .mcr-v3
 *     itself, which is what paints the light canvas inside .CENTRE.
 *
 * Nothing else about the design was altered. No shared stylesheet is touched.
 * Loaded only on mcr_story and post singles.
 */

.mcr-v3 {
  --bg:#FAFAFA;
  --card:#FFFFFF;
  --card-border:rgba(17,17,20,.08);
  --ink:#111114;
  --ink2:#4a4a52;
  --muted:#8f8f97;
  --accent:#7C3AED;
  --shadow-sm:0 1px 2px rgba(17,17,20,.05);
  --shadow-md:0 10px 26px -10px rgba(17,17,20,.16), 0 2px 6px rgba(17,17,20,.05);
  --shadow-lg:0 22px 48px -14px rgba(17,17,20,.22), 0 4px 12px rgba(17,17,20,.06);
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --sans-tight:'Inter Tight',var(--sans);
  --r-lg:20px;
  --r-md:14px;
  --content-w:700px;
  --wide-w:900px;

  position:relative;
  background:var(--bg);
  color:var(--ink2);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
}

.mcr-v3 *{box-sizing:border-box;}
.mcr-v3 a{color:inherit;text-decoration:none;}
.mcr-v3 img{max-width:100%;display:block;}
.mcr-v3 button{font-family:inherit;cursor:pointer;}
.mcr-v3 p{margin:0;}
.mcr-v3 svg{display:block;}

.mcr-v3 .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;}

/* ============================================================
   CARD SYSTEM - restrained. One consistent hover (lift + shadow
   deepen), no per-card rotation gimmicks. The single deliberate
   3D moment lives only on the hero image (see .tilt-3d below).
   ============================================================ */
.mcr-v3 .card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-sm);
  transition:transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1), border-color .3s;
}
.mcr-v3 .card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:rgba(17,17,20,.12);}

/* the one deliberate 3D showpiece - cursor-follow tilt */
.mcr-v3 .tilt-3d{
  transform-style:preserve-3d;
  transform:perspective(1400px);
  transition:transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
  will-change:transform;
}
.mcr-v3 .tilt-3d:hover{box-shadow:var(--shadow-lg);}
.mcr-v3 .tilt-3d [data-layer]{transition:transform .5s cubic-bezier(.22,1,.36,1);transform:translateZ(0) scale(1);}
.mcr-v3 .tilt-3d:hover [data-layer]{transform:translateZ(26px) scale(1.02);}
.mcr-v3 .tilt-3d:hover.card{transform:perspective(1400px);}

/* reveal-on-scroll */
.mcr-v3 .reveal{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease;}
.mcr-v3 .reveal.is-visible{opacity:1;transform:translateY(0);}

/* ============================================================
   TOP BAR - compact
   ============================================================ */
.mcr-v3 .v3-topbar{
  position:fixed;top:0;left:0;right:0;z-index:150;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:11px 24px;
  background:rgba(250,250,250,.92);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--card-border);
  transform:translateY(-100%);opacity:0;
  transition:transform .28s ease,opacity .28s ease;
  pointer-events:none;
}
.mcr-v3 .v3-topbar.is-visible{transform:translateY(0);opacity:1;pointer-events:auto;}

.mcr-v3 .pill-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 13px;border-radius:100px;
  background:var(--card);border:1px solid var(--card-border);
  font-size:.76rem;font-weight:600;color:var(--ink);
  transition:border-color .18s ease, background .18s ease;
}
.mcr-v3 .pill-btn:hover{border-color:rgba(17,17,20,.2);}
.mcr-v3 .pill-btn:active{transform:scale(.97);}
.mcr-v3 .pill-btn.icon-only{padding:8px;width:36px;height:36px;justify-content:center;}
.mcr-v3 .pill-btn.is-active{background:var(--ink);border-color:var(--ink);color:#fff;}
.mcr-v3 .pill-btn:focus-visible,
.mcr-v3 a:focus-visible,
.mcr-v3 button:focus-visible,
.mcr-v3 input:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

.mcr-v3 .topbar-title{
  font-family:var(--sans-tight);font-weight:700;font-size:.8rem;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:center;
}
.mcr-v3 .topbar-actions{display:flex;gap:6px;flex-shrink:0;}

.mcr-v3 .v3-progress-bar{position:fixed;top:0;left:0;height:2px;width:0%;background:var(--ink);z-index:999;transition:width .08s linear;}

/* ============================================================
   PAGE / HERO - compact, no colour blobs, no dot texture
   ============================================================ */
.mcr-v3 .v3-page{max-width:1080px;margin:0 auto;padding:32px 24px 0;}
@media(max-width:700px){.mcr-v3 .v3-page{padding-top:18px;}}
.mcr-v3 .hero-block{display:flex;flex-direction:column;gap:18px;}
@media(max-width:700px){.mcr-v3 .hero-block{flex-direction:column-reverse;gap:14px;}}
.mcr-v3 .hero-wrap{max-width:var(--content-w);margin:0 auto;padding:0;width:100%;}

.mcr-v3 .v3-crumb{display:flex;gap:8px;align-items:center;font-size:.74rem;color:var(--muted);margin-bottom:14px;}
.mcr-v3 .v3-crumb a:hover{color:var(--ink);}

.mcr-v3 .eyebrow-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 11px 5px 9px;border-radius:100px;
  background:transparent;border:1px solid var(--card-border);
  font-size:.66rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink2);
  margin-bottom:14px;
}
.mcr-v3 .eyebrow-pill .dot{width:5px;height:5px;border-radius:50%;background:var(--accent);}

.mcr-v3 .headline{
  font-family:var(--sans-tight);font-weight:700;
  font-size:clamp(1.7rem,3.4vw,2.6rem);
  line-height:1.12;letter-spacing:-.02em;color:var(--ink);
  margin:0 0 12px;
  text-wrap:balance;
}
.mcr-v3 .standfirst{
  font-size:clamp(.94rem,1.3vw,1.03rem);line-height:1.55;color:var(--muted);
  max-width:58ch;margin:0 0 18px;
}
.mcr-v3 .meta-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;margin-bottom:22px;}
.mcr-v3 .meta-actions{display:flex;gap:6px;}

/* byline - real author, real dates, real reading time */
.mcr-v3 .v3-byline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.78rem;color:var(--muted);}
.mcr-v3 .v3-byline-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#eee;}
.mcr-v3 .v3-byline-name{font-weight:600;color:var(--ink);}
.mcr-v3 a.v3-byline-name:hover{text-decoration:underline;text-underline-offset:3px;}
.mcr-v3 .v3-byline-sep{color:var(--card-border);}
.mcr-v3 .v3-byline-updated{color:var(--ink2);}

/* Mobile: pull the eyebrow tag and the save/share buttons onto one
   compact top row via grid-area, no markup changes needed. */
@media(max-width:700px){
  .mcr-v3 .hero-wrap{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    column-gap:10px;
    grid-template-areas:
      "crumb crumb"
      "eyebrow actions"
      "headline headline"
      "standfirst standfirst"
      "byline byline";
  }
  .mcr-v3 .v3-crumb{grid-area:crumb;margin-bottom:6px;}
  .mcr-v3 .eyebrow-pill{grid-area:eyebrow;margin-bottom:0;}
  .mcr-v3 .headline{grid-area:headline;margin-top:10px;}
  .mcr-v3 .standfirst{grid-area:standfirst;}
  .mcr-v3 .meta-row{display:contents;}
  .mcr-v3 .v3-byline{grid-area:byline;margin-bottom:18px;}
  .mcr-v3 .meta-actions{grid-area:actions;justify-self:end;}
}

/* hero image - the one showcase 3D moment */
.mcr-v3 .hero-image-outer{max-width:var(--wide-w);margin:0 auto;width:100%;}
.mcr-v3 .hero-image-card{border-radius:var(--r-lg);overflow:hidden;aspect-ratio:16/9;position:relative;}
.mcr-v3 .hero-image-card img{width:100%;height:100%;object-fit:cover;}
.mcr-v3 .hero-image-badge{
  position:absolute;left:16px;bottom:16px;z-index:2;
  padding:7px 13px;border-radius:100px;
  background:rgba(255,255,255,.92);backdrop-filter:blur(6px);
  font-size:.7rem;font-weight:600;color:var(--ink);
  max-width:calc(100% - 32px);
}
/* iOS-only hint: motion access needs a real tap before it can be
   requested, so we surface that instead of leaving the tilt silent. */
.mcr-v3 .tilt-hint{
  display:none;
  position:absolute;top:14px;right:14px;z-index:2;
  padding:6px 12px;border-radius:100px;
  background:rgba(17,17,20,.72);backdrop-filter:blur(6px);
  font-family:var(--sans-tight);font-size:.68rem;font-weight:700;color:#fff;
  letter-spacing:.02em;
  animation:v3-tilt-hint-pulse 1.8s ease-in-out infinite;
}
.mcr-v3 .tilt-hint.is-visible{display:block;}
@keyframes v3-tilt-hint-pulse{0%,100%{opacity:1;}50%{opacity:.55;}}

/* ============================================================
   QUICK NAV - compact chip row
   ============================================================ */
.mcr-v3 .quick-nav{max-width:var(--content-w);margin:32px auto 0;}
.mcr-v3 .quick-nav-label{
  font-size:.64rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin-bottom:10px;
}
.mcr-v3 .quick-nav-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
@media(max-width:700px){
  .mcr-v3 .quick-nav-grid{grid-template-columns:repeat(2,1fr);gap:6px;}
  .mcr-v3 .nav-tile{padding:9px 10px;gap:3px;}
  .mcr-v3 .nav-tile-num{font-size:.6rem;}
  .mcr-v3 .nav-tile-title{font-size:.7rem;}
}
.mcr-v3 .nav-tile{display:flex;flex-direction:column;gap:6px;padding:12px 13px;cursor:pointer;}
.mcr-v3 .nav-tile-num{font-family:var(--sans-tight);font-weight:600;font-size:.66rem;color:var(--muted);}
.mcr-v3 .nav-tile-title{font-size:.76rem;font-weight:600;color:var(--ink);line-height:1.3;}
.mcr-v3 .nav-tile.is-active{border-color:var(--ink);}
.mcr-v3 .nav-tile.is-active .nav-tile-num{color:var(--accent);}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.mcr-v3 .article-col{max-width:var(--content-w);margin:0 auto;padding:36px 0 0;}
.mcr-v3 .lede p:first-child{font-size:1.06rem;line-height:1.75;color:var(--ink2);}
.mcr-v3 .lede strong{color:var(--ink);font-weight:600;}

.mcr-v3 .chapter{scroll-margin-top:88px;margin-top:2em;}
.mcr-v3 .chapter-eyebrow{display:flex;align-items:baseline;gap:8px;margin-bottom:8px;}
.mcr-v3 .chapter-index{font-family:var(--sans-tight);font-weight:600;font-size:.68rem;color:var(--muted);letter-spacing:.02em;}
.mcr-v3 .chapter-kicker{font-size:.64rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);}
.mcr-v3 .chapter-title{
  font-family:var(--sans-tight);font-weight:700;font-size:clamp(1.2rem,2.2vw,1.5rem);
  line-height:1.28;color:var(--ink);margin:0 0 .6em;letter-spacing:-.01em;
}
.mcr-v3 .article-body p{font-size:1rem;line-height:1.8;color:var(--ink2);margin:0 0 1.3em;}
.mcr-v3 .article-body a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.mcr-v3 .article-body strong{color:var(--ink);font-weight:600;}
.mcr-v3 .article-body h3{font-family:var(--sans-tight);font-weight:700;font-size:1.1rem;line-height:1.3;color:var(--ink);margin:1.6em 0 .5em;}
.mcr-v3 .article-body ul,
.mcr-v3 .article-body ol{margin:0 0 1.3em;padding-left:1.3em;}
.mcr-v3 .article-body li{font-size:1rem;line-height:1.8;color:var(--ink2);margin-bottom:.45em;}
.mcr-v3 .article-body img{border-radius:var(--r-md);margin:1.6em 0;}

/* Quote - the design's quote card, applied to real blockquotes the editor wrote */
.mcr-v3 .article-body blockquote,
.mcr-v3 .quote-card{
  margin:1.8em 0;padding:24px 26px;
  background:var(--card);border:1px solid var(--card-border);
  border-radius:var(--r-md);box-shadow:var(--shadow-sm);
  position:relative;
}
.mcr-v3 .article-body blockquote::before,
.mcr-v3 .quote-card .quote-mark{
  content:"\201C";
  font-family:Georgia,serif;font-size:2.4rem;font-weight:700;line-height:1;
  color:var(--card-border);display:block;margin-bottom:6px;
}
.mcr-v3 .article-body blockquote p,
.mcr-v3 .quote-text{
  font-family:var(--sans-tight);font-weight:600;font-size:clamp(1.05rem,1.9vw,1.25rem);
  line-height:1.5;color:var(--ink);letter-spacing:-.005em;margin:0;
}

/* Breakout image - the design's image card, applied to real figures */
.mcr-v3 .article-body figure,
.mcr-v3 .image-card{
  margin:1.8em 0;padding:10px;
  background:var(--card);border:1px solid var(--card-border);
  border-radius:var(--r-md);box-shadow:var(--shadow-sm);
}
.mcr-v3 .article-body figure img{border-radius:calc(var(--r-md) - 4px);margin:0;width:100%;}
.mcr-v3 .article-body figcaption,
.mcr-v3 .image-card figcaption{font-size:.76rem;color:var(--muted);padding:10px 6px 2px;}

/* Sources and corrections */
.mcr-v3 .v3-trust{margin:2.2em 0 0;padding:20px 22px;border-top:3px solid var(--accent);}
.mcr-v3 .v3-trust-title{font-family:var(--sans-tight);font-weight:700;font-size:.92rem;color:var(--ink);margin:0 0 10px;}
.mcr-v3 .v3-trust-text{font-size:.82rem;line-height:1.6;color:var(--ink2);margin:0 0 8px;}
.mcr-v3 .v3-trust-text:last-child{margin:0;}
.mcr-v3 .v3-trust-text a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.mcr-v3 .v3-trust-correction{color:var(--ink);}

/* Tags */
.mcr-v3 .tags-row{display:flex;flex-wrap:wrap;gap:7px;margin:2em 0 0;padding-top:1.6em;border-top:1px solid var(--card-border);}
.mcr-v3 .tag-pill{
  padding:7px 12px;border-radius:100px;background:var(--card);border:1px solid var(--card-border);
  font-size:.72rem;font-weight:600;color:var(--ink2);
  transition:border-color .18s,color .18s;
}
.mcr-v3 .tag-pill:hover{color:var(--ink);border-color:rgba(17,17,20,.2);}

/* Share row */
.mcr-v3 .share-row{display:flex;align-items:center;gap:8px;margin:1.6em 0 0;flex-wrap:wrap;}
.mcr-v3 .share-row-label{font-size:.7rem;color:var(--muted);font-weight:600;margin-right:2px;}

/* Author card */
.mcr-v3 .author-card{margin:2em 0 0;padding:20px 22px;display:flex;gap:14px;align-items:flex-start;}
.mcr-v3 .author-card:hover{transform:none;box-shadow:var(--shadow-sm);border-color:var(--card-border);}
.mcr-v3 .author-card-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#eee;flex-shrink:0;}
.mcr-v3 .author-card-name{font-family:var(--sans-tight);font-weight:700;font-size:.92rem;color:var(--ink);}
.mcr-v3 .author-card-role{font-size:.7rem;color:var(--muted);font-weight:600;margin:2px 0 8px;}
.mcr-v3 .author-card-bio{font-size:.82rem;line-height:1.6;color:var(--ink2);margin:6px 0 8px;}
.mcr-v3 .author-card-link{font-size:.76rem;font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:5px;text-decoration:underline;text-underline-offset:3px;}

/* Linked area / venues / events */
.mcr-v3 .v3-linked{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:2em 0 0;}
.mcr-v3 .v3-linked-col{padding:16px 18px;}
.mcr-v3 .v3-linked-col:hover{transform:none;box-shadow:var(--shadow-sm);border-color:var(--card-border);}
.mcr-v3 .v3-linked-item{display:block;padding:9px 0;border-bottom:1px solid var(--card-border);}
.mcr-v3 .v3-linked-item:last-child{border-bottom:0;padding-bottom:0;}
.mcr-v3 .v3-linked-item strong{display:block;font-size:.84rem;font-weight:600;color:var(--ink);line-height:1.3;}
.mcr-v3 .v3-linked-item span{display:block;font-size:.72rem;color:var(--muted);margin-top:3px;}
.mcr-v3 .v3-linked-item:hover strong{text-decoration:underline;text-underline-offset:3px;}

/* ============================================================
   NEXT / KEEP READING
   ============================================================ */
.mcr-v3 .next-section{max-width:var(--wide-w);margin:52px auto 0;}
.mcr-v3 .section-label{
  font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
  margin-bottom:14px;
}
.mcr-v3 .next-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
@media(max-width:860px){.mcr-v3 .next-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){.mcr-v3 .next-grid{grid-template-columns:1fr;}}
.mcr-v3 .next-tile{display:flex;flex-direction:column;overflow:hidden;}
.mcr-v3 .next-tile-img{aspect-ratio:4/3;overflow:hidden;border-radius:var(--r-md) var(--r-md) 0 0;}
.mcr-v3 .next-tile-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease;}
.mcr-v3 .next-tile:hover .next-tile-img img{transform:scale(1.04);}
.mcr-v3 .next-tile-body{padding:14px 15px 16px;}
.mcr-v3 .next-tile-cat{font-size:.63rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:6px;}
.mcr-v3 .next-tile-title{font-family:var(--sans-tight);font-weight:700;font-size:.92rem;line-height:1.3;color:var(--ink);margin:0 0 6px;}
.mcr-v3 .next-tile-teaser{font-size:.76rem;line-height:1.5;color:var(--muted);}
.mcr-v3 .next-tile-meta{font-size:.7rem;color:var(--muted);margin-top:8px;font-variant-numeric:tabular-nums;}

/* ============================================================
   FOOTER
   ============================================================ */
.mcr-v3 .footer-bar{
  max-width:1080px;margin:56px auto 0;padding:24px 0 50px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  border-top:1px solid var(--card-border);
}
.mcr-v3 .footer-back{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;font-weight:600;color:var(--ink);}
.mcr-v3 .footer-nl-form{display:flex;gap:8px;}
.mcr-v3 .footer-nl-input{
  padding:9px 14px;border-radius:100px;border:1px solid var(--card-border);
  background:var(--card);color:var(--ink);font-size:.8rem;font-family:inherit;outline:none;min-width:200px;
}
.mcr-v3 .footer-nl-input:focus{border-color:var(--ink);}
.mcr-v3 .footer-nl-btn{
  padding:9px 18px;border-radius:100px;border:none;
  background:var(--ink);color:#fff;font-weight:600;font-size:.8rem;
  transition:opacity .18s;
}
.mcr-v3 .footer-nl-btn:hover{opacity:.85;}
.mcr-v3 .v3-nl-done{font-size:.8rem;font-weight:600;color:var(--ink);}
@media(max-width:560px){.mcr-v3 .footer-nl-form{width:100%;}.mcr-v3 .footer-nl-input{flex:1;min-width:0;}}

/* ============================================================
   MOBILE STICKY BAR + BACK TO TOP
   ============================================================ */
.mcr-v3 .mobile-bar{display:none;}
@media(max-width:700px){
  .mcr-v3 .mobile-bar{
    display:flex;position:fixed;left:16px;right:16px;bottom:16px;z-index:150;
    align-items:center;justify-content:space-between;gap:10px;
    padding:9px 13px;border-radius:100px;
    background:rgba(255,255,255,.94);border:1px solid var(--card-border);
    backdrop-filter:blur(12px);box-shadow:var(--shadow-md);
    transform:translateY(140%);transition:transform .3s ease;
  }
  .mcr-v3 .mobile-bar.is-visible{transform:translateY(0);}
  .mcr-v3 .mobile-bar-pct{font-family:var(--sans-tight);font-weight:700;font-size:.74rem;color:var(--ink);display:flex;align-items:center;gap:7px;}
  .mcr-v3 .mobile-bar-ring{width:24px;height:24px;flex-shrink:0;}
  .mcr-v3 .mobile-bar-actions{display:flex;gap:6px;}
}
.mcr-v3 .back-to-top{
  position:fixed;right:22px;bottom:22px;z-index:140;
  width:42px;height:42px;border-radius:50%;
  background:var(--card);border:1px solid var(--card-border);color:var(--ink);
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm);
  opacity:0;transform:translateY(10px);pointer-events:none;
  transition:opacity .22s,transform .22s,background .18s,color .18s;
}
.mcr-v3 .back-to-top.is-visible{opacity:1;transform:translateY(0);pointer-events:auto;}
.mcr-v3 .back-to-top:hover{background:var(--ink);color:#fff;}
@media(max-width:700px){.mcr-v3 .back-to-top{bottom:82px;}}

@media(prefers-reduced-motion:reduce){
  .mcr-v3 *,
  .mcr-v3 *::before,
  .mcr-v3 *::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
  .mcr-v3 .tilt-3d{transform:none !important;}
}
