/* The blog. Scoped under .jr so none of it reaches the other pages; the
   design's token names are aliased to the ones style.css defines. */
.jr{--sub:var(--muted);--mute:#9A9CAB;--brand:var(--wine);--deep:var(--wine-dark);
    --tint:var(--blush);--quiet:#FBF6F7;--ok:#1F8A55;--fs:var(--heading);--fb:var(--body);
    --ease:cubic-bezier(.2,.7,.2,1);color:var(--ink);font-family:var(--fb)}
.jr a{color:inherit;text-decoration:none}
.jr img{max-width:100%;display:block}
.jr h1,.jr h2,.jr h3{font-family:var(--fs);font-weight:500;letter-spacing:-.022em;line-height:1.14;margin:0;text-wrap:balance}
.jr h1 .b,.jr h2 .b{color:var(--brand)}
.jr .wrap{max-width:1160px;margin:0 auto;padding:0 max(20px,env(safe-area-inset-left,0px))}
.jr .jr-cat{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--brand);background:var(--tint);border-radius:999px;padding:5px 11px}

/* article hero */
.jr-hero{padding:34px 0 30px;background:linear-gradient(180deg,var(--tint) 0,#fff 340px);margin-top:calc(-1 * var(--ftnav-h,77px));padding-top:calc(var(--ftnav-h,77px) + 30px)}
.jr-back{display:inline-block;font-size:13.5px;font-weight:600;color:var(--sub);margin-bottom:18px}
.jr-back:hover{color:var(--brand)}
.jr-hero h1{font-size:clamp(30px,4.6vw,52px);margin:16px 0 0;max-width:19ch}
.jr-lede{font-size:clamp(16px,1.5vw,19px);line-height:1.55;color:var(--sub);margin:16px 0 0;max-width:62ch}
.jr-by{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:22px;font-size:13px;color:var(--mute)}
.jr-by span{display:inline-flex;align-items:center;gap:8px}
.jr-by span+span::before{content:"";width:4px;height:4px;border-radius:50%;background:var(--line);margin-right:10px}

/* reading layout */
.jr-layout{display:grid;grid-template-columns:232px minmax(0,1fr);gap:60px;align-items:start;padding-top:40px;padding-bottom:20px;max-width:1060px}
.jr-toc{position:sticky;top:calc(var(--ftnav-h,77px) + 20px);display:grid;gap:3px;border-left:2px solid var(--line);padding-left:18px}
.jr-toch{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--brand);margin-bottom:8px}
.jr-toc a{font-size:13.5px;line-height:1.45;color:var(--sub);padding:5px 0;transition:color .18s}
.jr-toc a:hover,.jr-toc a.on{color:var(--brand);font-weight:600}
.jr-tocwa{margin-top:16px;font-size:13px;font-weight:600;color:#1F6B46 !important;background:#E9F6EF;border-radius:10px;padding:9px 11px;text-align:center}

.jr-prose{font-size:16.5px;line-height:1.72;color:#32354A;max-width:68ch}
.jr-prose section{margin-bottom:40px;scroll-margin-top:calc(var(--ftnav-h,77px) + 16px)}
.jr-prose h2{font-size:clamp(23px,2.5vw,29px);margin:0 0 16px;color:var(--deep)}
.jr-prose h3{font-size:19px;margin:28px 0 10px}
.jr-prose h4{font-family:var(--fb);font-size:15.5px;font-weight:600;margin:22px 0 8px}
.jr-prose p{margin:0 0 16px}
.jr-prose ul,.jr-prose ol{margin:0 0 18px;padding-left:22px;display:grid;gap:8px}
.jr-prose li::marker{color:var(--brand)}
.jr-prose a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.jr-prose strong{font-weight:600;color:var(--ink)}
.jr-prose code{font-size:14px;background:var(--quiet);border-radius:5px;padding:2px 6px;box-shadow:inset 0 0 0 1px var(--line)}
.jr-prose blockquote{margin:22px 0;padding:2px 0 2px 20px;border-left:2px solid var(--brand);font-family:var(--fs);font-size:20px;line-height:1.35;color:var(--deep)}
.jr-prose figure{margin:24px 0}
.jr-prose figure img{border-radius:14px;box-shadow:0 0 0 1px var(--line)}
.jr-prose .table-scroll{overflow-x:auto;margin:0 0 20px;border-radius:12px;box-shadow:0 0 0 1px var(--line)}
.jr-prose table{border-collapse:collapse;width:100%;font-size:14.5px;background:#fff}
.jr-prose th,.jr-prose td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line)}
.jr-prose th{background:var(--quiet);font-weight:600;font-size:13px;letter-spacing:.02em}
.jr-prose tr:last-child td{border-bottom:0}

.jr-src{margin-top:8px;background:var(--quiet);border-radius:18px;padding:22px;box-shadow:inset 0 0 0 1px var(--line)}
.jr-src h3{font-size:16px;margin-bottom:12px}
.jr-src a{display:block;font-size:14px;color:var(--brand);padding:4px 0;text-decoration:none}
.jr-src a:hover{text-decoration:underline}
.jr-by .jr-byw{display:inline-block}
.jr-by .jr-byname{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.jr-by .jr-byname:hover{color:var(--brand);text-decoration-color:currentColor}

/* author box at the end of every article */
.jr-author{display:grid;grid-template-columns:72px minmax(0,1fr);gap:18px;align-items:start;margin-top:28px;padding:22px;border-radius:18px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.jr-author img{width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:50% 16%;background:var(--tint)}
.jr-authk{display:block;font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--brand)}
.jr-prose .jr-author h3{font-size:19px;margin:6px 0 2px}
.jr-prose .jr-author h3 a{color:var(--ink);text-decoration:none}
.jr-prose .jr-author h3 a:hover{color:var(--brand)}
.jr-authr{display:block;font-size:13px;color:var(--sub)}
.jr-prose .jr-author p{font-size:14.5px;line-height:1.6;margin:10px 0 0}
.jr-authl{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px}
.jr-prose .jr-authl a{font-size:13.5px;font-weight:600;text-decoration:none}
.jr-prose .jr-authl a:hover{text-decoration:underline}
.jr-src p{font-size:12.5px;color:var(--mute);margin:12px 0 0;line-height:1.55}

/* closing CTA */
.jr-cta{background:linear-gradient(170deg,var(--tint),#fff);padding:62px 0;margin-top:34px;text-align:center}
.jr-cta h2{font-size:clamp(26px,3.4vw,38px)}
.jr-cta p{font-size:16px;color:var(--sub);margin:16px auto 0;max-width:56ch;line-height:1.6}
.jr-ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:24px}
.jr-btn{display:inline-flex;align-items:center;gap:9px;border-radius:12px;padding:13px 20px;font-weight:600;font-size:15px;min-height:46px;transition:transform .2s var(--ease),background-color .2s,box-shadow .2s}
.jr-btn:active{transform:scale(.97)}
.jr-btn span{transition:transform .25s var(--ease)}
.jr-btn:hover span{transform:translateX(4px)}
.jr-btn.wa{background:var(--ok);color:#fff}
.jr-btn.wa:hover{background:#1A7749}
.jr-btn.line{background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.jr-btn.line:hover{box-shadow:inset 0 0 0 1px var(--ink)}

/* keep reading */
.jr-more{padding:58px 0 10px}
.jr-moreh{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:24px}
.jr-moreh h2{font-size:clamp(22px,2.6vw,30px)}
.jr-moreh a{font-size:14px;font-weight:600;color:var(--brand)}
.jr-rels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.jr-rel{background:#fff;border-radius:18px;box-shadow:0 0 0 1px var(--line);overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s}
.jr-rel:hover{transform:translateY(-4px);box-shadow:0 0 0 1px var(--brand),0 26px 50px -40px rgba(119,21,46,.55)}
.jr-rel img{width:100%;height:auto;background:var(--quiet)}
.jr-rel>div{padding:16px}
.jr-rel span{display:block;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);margin-bottom:8px}
.jr-rel h3{font-size:17px;line-height:1.26}
.jr-rel em{display:block;font-style:normal;font-size:13px;font-weight:600;color:var(--sub);margin-top:10px}

/* index */
.jr-ihero{padding:40px 0 34px;background:linear-gradient(180deg,var(--tint) 0,#fff 360px);margin-top:calc(-1 * var(--ftnav-h,77px));padding-top:calc(var(--ftnav-h,77px) + 36px)}
.jr-ihero h1{font-size:clamp(32px,5vw,58px);margin-top:16px;max-width:16ch}
.jr-filter{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px;padding-bottom:26px}
.jr-chip{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13.5px;font-weight:600;color:var(--sub);background:#fff;border:0;box-shadow:inset 0 0 0 1px var(--line);border-radius:999px;padding:9px 14px;cursor:pointer;transition:box-shadow .2s,color .2s,background-color .2s}
.jr-chip em{font-style:normal;font-size:11px;font-weight:700;color:var(--mute)}
.jr-chip:hover{box-shadow:inset 0 0 0 1px var(--ink)}
.jr-chip.on{background:var(--brand);color:#fff;box-shadow:none}
.jr-chip.on em{color:rgba(255,255,255,.72)}
.jr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-bottom:64px}
.jr-card{background:#fff;border-radius:20px;box-shadow:0 0 0 1px var(--line);overflow:hidden;display:grid;grid-template-rows:auto 1fr;transition:transform .3s var(--ease),box-shadow .3s}
.jr-card[hidden]{display:none}
.jr-card:hover{transform:translateY(-5px);box-shadow:0 0 0 1px var(--brand),0 30px 56px -42px rgba(119,21,46,.55)}
.jr-card img{width:100%;height:auto;background:var(--quiet);border-bottom:1px solid var(--line)}
.jr-card>div{padding:18px;display:grid;align-content:start;gap:9px}
.jr-card h2{font-size:19px;line-height:1.25}
.jr-card p{font-size:14px;color:var(--sub);line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.jr-card em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--mute);margin-top:2px}
.jr-card em b{color:var(--brand)}
.jr-empty{text-align:center;color:var(--sub);padding-bottom:64px}
.jr-empty button{font:inherit;font-weight:600;color:var(--brand);background:none;border:0;text-decoration:underline;cursor:pointer}

@media (max-width:1000px){
 .jr-layout{grid-template-columns:minmax(0,1fr);gap:28px}
 .jr-layout>*{min-width:0}
 .jr-toc a{overflow-wrap:anywhere}
 .jr-prose{overflow-wrap:break-word}
 .jr-prose li,.jr-prose p,.jr-prose a{overflow-wrap:anywhere}
 .jr-prose>*,.jr-prose section,.jr-prose .table-scroll{max-width:100%;min-width:0}
 .jr-toc{position:static;border-left:0;border-top:1px solid var(--line);padding:16px 0 0;background:var(--quiet);border-radius:14px;padding:16px}
 .jr-rels,.jr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
 .jr-author{grid-template-columns:56px minmax(0,1fr);gap:14px;padding:18px}
 .jr-author img{width:56px;height:56px}
 .jr-rels,.jr-grid{grid-template-columns:1fr}
 .jr-prose{font-size:16px}
 .jr-hero,.jr-ihero{padding-bottom:26px}
}
@media (prefers-reduced-motion:reduce){
 .jr *{transition:none !important}
}


/* The newest piece, run wide at the top of the grid. It is still a .jr-card
   with its own data-topic, so the topic filter and the empty state treat it
   like any other card; only the shape changes. */
.jr .jr-feat{grid-column:1/-1;grid-template-rows:none;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  align-items:stretch}
.jr .jr-feat img{height:100%;object-fit:cover;border-bottom:0;border-right:1px solid var(--line)}
.jr .jr-feat>div{align-content:center;padding:30px 34px}
.jr .jr-feat h2{font-size:clamp(22px,2.4vw,30px);line-height:1.18}
.jr .jr-feat p{font-size:15.5px;margin-top:10px}
.jr-flag{display:inline-block;margin-bottom:10px;font-size:10px;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;color:var(--wine);
  background:var(--blush);border-radius:999px;padding:4px 11px}
@media (max-width:900px){
 .jr .jr-feat{grid-template-columns:1fr;grid-template-rows:auto 1fr}
 .jr .jr-feat img{height:auto;object-fit:contain;border-right:0;border-bottom:1px solid var(--line)}
 .jr .jr-feat>div{padding:22px 24px 24px}
}

/* Phones: nothing in an article may push the page sideways (Aman Sir, 16 Nov: white strip on swipe). */
.jr{overflow-x:clip}

