/* Shared reading layout. Applied to Blog articles, including the older interactive guides. */
.blog-reader{--reader-width:72ch;font-size:1.125rem;line-height:1.7}
.blog-reader .reader-article{overflow-wrap:break-word;background:#fff;color:var(--navy)}
.blog-reader .reader-hero{position:static;z-index:auto;backdrop-filter:none;border:0;background:#fff;padding:2rem 0 1.75rem}
.reader-hero-inner{width:min(1180px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.8fr);grid-template-areas:"heading image" "summary image";gap:1.4rem 3rem;align-items:center}
.reader-heading{grid-area:heading;min-width:0}
.blog-reader .reader-heading .crumbs{margin:0 0 1rem;font-size:.875rem}
.blog-reader .reader-heading h1{font-size:clamp(2rem,3.6vw,3.2rem);line-height:1.12;font-weight:800;letter-spacing:-.035em;margin:0 0 1rem;max-width:25ch}
.blog-reader .reader-deck{font-size:1.125rem;line-height:1.55;font-weight:500;margin:0 0 .75rem;max-width:60ch}
.blog-reader .reader-byline{font-size:.8125rem;line-height:1.65;color:#58647a;margin:0 0 1rem}
.blog-reader .reader-lede{font-size:1.125rem;line-height:1.65;margin:0;max-width:65ch;font-weight:400}
.reader-glance{grid-area:summary;background:#edf4fa;border:1px solid #d8e3ef;border-radius:18px;padding:1.1rem 1.35rem;min-width:0}
.blog-reader .reader-glance h2{font-size:1rem;font-weight:600;letter-spacing:0;line-height:1.5;margin:0 0 .5rem}
.reader-glance ul{margin:0;padding-left:1.2rem;font-size:1rem;line-height:1.65}
.reader-glance li{padding-left:.15rem;margin:.3rem 0}
.blog-reader .reader-hero .topic-hero-picture{grid-area:image;min-width:0;margin:0;max-width:27rem;justify-self:center;width:100%;border:0;background:#fff;border-radius:16px;overflow:hidden}
.blog-reader .reader-hero .topic-hero-picture img{display:block;width:100%;height:auto;max-height:23rem;object-fit:contain;border-radius:14px;animation:none;transform:none;box-shadow:none;aspect-ratio:auto}
.blog-reader .reader-hero .topic-hero-picture figcaption{font-size:.75rem;line-height:1.5;color:#58647a;margin:0;padding:.5rem .25rem;text-align:center;border:0}
.reader-contents{width:min(var(--reader-width),calc(100% - 40px));margin:0 auto 1.5rem;padding:1rem 0;border-block:1px solid #dce3ec;font-size:.9375rem}
.reader-contents-desktop>p{font-size:.875rem;font-weight:600;margin:0 0 .65rem}
.blog-reader .reader-contents .chapter-links{display:flex;flex-wrap:wrap;gap:.45rem 1.35rem;min-height:0;width:auto;margin:0;overflow:visible;white-space:normal}
.blog-reader .reader-contents a{font-size:.9375rem;font-weight:400;line-height:1.5;padding:0;opacity:1;border:0;white-space:normal;text-decoration:underline;text-underline-offset:3px;color:#354b78}
.reader-contents a[aria-current]{font-weight:600!important;color:var(--navy)}
.reader-contents-mobile{display:none}
.reader-tools{margin-top:.65rem;display:flex;justify-content:flex-end}
.blog-reader .reader-tools .motion-toggle{font-size:.8125rem;padding:.35rem .65rem;margin:0;min-height:36px}
.blog-reader .reader-progress{height:2px;position:fixed;top:82px;inset-inline:0;z-index:45;background:transparent;pointer-events:none}
.reader-progress span{background:#8a9bb7}
.blog-reader .reader-section{padding:1.75rem 0;background:#fff;color:var(--navy);border:0}
.blog-reader .reader-section>.story-wrap{width:min(var(--reader-width),calc(100% - 40px));max-width:var(--reader-width);margin:auto}
.blog-reader .reader-section h2{font-size:clamp(1.55rem,2.6vw,2rem);line-height:1.25;letter-spacing:-.025em;font-weight:600;margin:0 0 1.25rem;max-width:36ch}
.blog-reader .reader-section h3{font-size:1.3rem;line-height:1.35;letter-spacing:-.015em;font-weight:600;margin:1.75rem 0 .85rem}
.blog-reader .reader-section h4{font-size:1.1rem;line-height:1.45;font-weight:600;letter-spacing:0;margin:1.25rem 0 .65rem}
.blog-reader .reader-section p{font-size:1.125rem;line-height:1.7;font-weight:400;max-width:68ch;margin:0 0 1.15rem}
.blog-reader .reader-section li{font-size:1.0625rem;line-height:1.7;margin:0 0 .5rem}
.reader-section ul,.reader-section ol{padding-left:1.4rem;margin:1rem 0 1.4rem}
.reader-section a,.reader-ending a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.reader-section a:hover,.reader-ending a:hover{text-decoration-thickness:2px}
.blog-reader .reader-subsection{padding:0;margin:1.5rem 0 0;background:transparent;border:0;color:var(--navy)}
.reader-subsection:first-of-type{margin-top:0}
.blog-reader .reader-subsection>.story-wrap{width:100%;max-width:none}
.blog-reader .reader-section .story-illustrated,.blog-reader .reader-section .story-split{display:grid;grid-template-columns:1fr;gap:1rem;margin:1rem 0 1.5rem}
.blog-reader .reader-section .inline-visual{max-width:100%;margin:0 auto;width:100%}
.blog-reader .reader-section .inline-visual img{max-height:23rem;object-fit:contain;padding:0}
.blog-reader .reader-section .app-visual{max-width:21rem}
.blog-reader .reader-section .app-visual img{max-height:34rem;padding:.5rem}
.blog-reader .reader-section .story-figure figcaption{font-size:.875rem;line-height:1.6;padding:.8rem 1rem}
.blog-reader .reader-section .story-cards{gap:1rem;margin:1.25rem 0}
.blog-reader .reader-section .story-cards>div{padding:1.1rem;background:#f7f9fc;border:1px solid #dce3ec;border-radius:14px}
.blog-reader .reader-section .story-cards :is(h3,h4){font-size:1.125rem;font-weight:600;margin:0 0 .65rem}
.blog-reader .reader-section .story-cards :is(p,li){font-size:1rem;line-height:1.65}
.blog-reader .reader-directory .story-cards{display:block}
.blog-reader .reader-directory .story-cards>div{padding:1.1rem 0;background:transparent;border:0;border-bottom:1px solid #e2e7ee;border-radius:0}
.blog-reader .reader-section .story-note{padding:1rem 1.2rem;margin:1.4rem 0;border-radius:0 12px 12px 0}
.blog-reader .reader-section .story-note strong{font-size:1.0625rem;font-weight:600;margin-bottom:.5rem}
.blog-reader .reader-section .story-note p{font-size:1.0625rem;margin-bottom:0}
.blog-reader .reader-section .topic-detail{padding:1rem 0}
.blog-reader .reader-section .topic-detail summary{font-size:1.0625rem;line-height:1.5;font-weight:500}
.blog-reader .reader-section .topic-detail p{font-size:1.0625rem;margin:1rem 0 0}
.reader-recipes .reader-subsection{padding-top:.5rem}
.blog-reader .reader-recipes .story-cards ul,.blog-reader .reader-recipes .story-cards ol{margin:0;padding-left:1.25rem}
.blog-reader .reader-ending{position:static;background:#f6f8fc;color:var(--navy);padding:1.75rem max(20px,calc((100% - 72ch)/2));border-top:1px solid #e2e7ee}
.reader-ending .reader-action{font-size:1.125rem;line-height:1.65;font-weight:500;margin:0 0 1rem;max-width:65ch}
.reader-ending nav{display:flex;flex-wrap:wrap;gap:.65rem 1.5rem;margin:0 0 1rem;font-size:1rem}
.reader-back{font-size:.9375rem}
.reader-reference-area{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #dce3ec}
.reader-sources{font-size:.875rem;line-height:1.65;overflow-wrap:anywhere}
.reader-sources summary{cursor:pointer;font-weight:500;padding:.35rem 0}
.reader-sources ul{padding-left:1.2rem;margin:1rem 0 0}
.reader-sources li{margin:.55rem 0}
.reader-sources .reader-checked{font-size:.875rem;margin:.75rem 0}
.reader-anchor{display:block;scroll-margin-top:110px}
.blog-reader :is(.reader-section,.reader-subsection,.reader-sources){scroll-margin-top:105px}
.blog-reader :is(a,summary,button,input,select):focus-visible{outline:3px solid #526fa0;outline-offset:4px}
/* Older learning articles retain their tools, diagrams, pictures and controls. */
.reader-guide .chapter-number,.reader-guide .chapter-label{display:none}
.blog-reader .reader-guide .chapter-heading{display:block;margin:0 0 1.25rem}
.blog-reader .reader-guide .chapter-heading h2{margin:0 0 1rem}
.blog-reader .reader-guide .opening-grid,.blog-reader .reader-guide .taste-grid,.blog-reader .reader-guide .faq-layout{display:grid;grid-template-columns:1fr;gap:1.4rem}
.reader-guide .chapter-aside{position:static}
.blog-reader .reader-guide .landscape{margin:1.25rem 0}
.blog-reader .reader-guide .landscape img{max-height:24rem;object-fit:contain;aspect-ratio:auto;background:#fff}
.blog-reader .reader-guide .definition-strip{padding:1rem 0;margin:1.25rem 0}
.blog-reader .reader-guide .definition-strip strong{font-size:1.5rem}
.blog-reader .reader-guide .flavour-notebook{transform:none;box-shadow:none;padding:1.25rem;color:var(--navy)}
.blog-reader .reader-guide .flavour-notebook :is(h3,p,summary){color:var(--navy)}
.blog-reader .reader-guide .topic-section-heading .eyebrow{display:none}
.blog-reader .reader-guide .reader-subsection .chapter-heading{margin-bottom:1rem}
@media(max-width:760px){
 .blog-reader .reader-hero{padding:1.3rem 0 1.25rem}
 .reader-hero-inner{grid-template-columns:1fr;grid-template-areas:"heading" "summary" "image";gap:1.2rem}
 .blog-reader .reader-heading h1{font-size:clamp(2rem,7.4vw,2.65rem);max-width:26ch}
 .blog-reader .reader-hero .topic-hero-picture{max-width:26rem}
 .blog-reader .reader-hero .topic-hero-picture img{max-height:12rem}
 .reader-glance{padding:1rem 1.1rem}
 .reader-contents-desktop{display:none}
 .reader-contents-mobile{display:block}
 .reader-contents-mobile summary{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.45rem 0;cursor:pointer;font-size:1rem;font-weight:500;list-style:none}
 .reader-contents-mobile summary::-webkit-details-marker{display:none}
 .reader-contents-mobile summary span{font-size:1.35rem;line-height:1}
 .reader-contents-mobile[open] summary span{transform:rotate(45deg)}
 .reader-contents-mobile nav{display:flex;flex-direction:column;gap:0;margin:.5rem 0 0}
 .blog-reader .reader-contents-mobile a{padding:.65rem 0}
 .reader-contents{margin-bottom:.5rem;padding:.55rem 0}
 .blog-reader .reader-section{padding:1.35rem 0}
 .blog-reader .reader-section h2{font-size:1.65rem}
 .blog-reader .reader-section h3{font-size:1.25rem}
 .blog-reader .reader-section .story-cards{grid-template-columns:1fr}
 .blog-reader .reader-section .story-cards>div{padding:1rem}
 .blog-reader .reader-directory .story-cards>div{padding:1rem 0}
 .blog-reader .reader-progress{top:72px}
 .blog-reader :is(.reader-section,.reader-subsection,.reader-sources){scroll-margin-top:90px}
 .reader-tools{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){.blog-reader *{scroll-behavior:auto!important;animation:none!important}}
