/* Inherits the host font. Theme through --shortcuts-* custom properties. */
.section-shortcuts{display:grid;grid-template-columns:repeat(var(--shortcuts-columns,4),minmax(0,1fr));gap:0 18px;border-block:1px solid var(--shortcuts-line,#d5ddd3)}
.section-shortcuts a{box-sizing:border-box;display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 0;color:var(--shortcuts-color,#1f5c3f);font-size:13px;line-height:1.4;font-weight:500;text-decoration:none;overflow-wrap:anywhere}
.section-shortcuts a>span{font-size:10px;color:var(--shortcuts-muted,#5a665e);font-weight:400}
.section-shortcuts a:hover{text-decoration:underline;text-underline-offset:4px}
.section-shortcuts a:focus-visible{outline:2px solid var(--shortcuts-color,#1f5c3f);outline-offset:2px;border-radius:2px}
@media(max-width:700px){.section-shortcuts{grid-template-columns:repeat(var(--shortcuts-mobile-columns,2),minmax(0,1fr));gap:0 14px}.section-shortcuts a{font-size:12px;gap:7px}}

.article-reading-layout{max-width:1000px;display:grid;grid-template-columns:210px minmax(0,1fr);gap:65px;padding-block:55px 70px;align-items:start}
.article-toc{position:sticky;top:115px;border-left:2px solid var(--border);padding-left:20px;font-size:12px}
/* Five-link navigation: horizontal home, then animated sticky reading rail. */
.article-hero>.section-shortcuts,.article-hero>.docking-toc-home{margin-top:18px}
.article-hero .section-shortcuts{--shortcuts-columns:5;--shortcuts-color:var(--accent-text);--shortcuts-muted:var(--subtle);--shortcuts-line:var(--border);column-gap:14px}
.article-hero .section-shortcuts a{font-size:12px}
.article-hero:has(.docking-toc-home,.section-shortcuts)+.article-reading-layout{padding-top:30px}
.article-toc.docking-toc-rail{--shortcuts-color:var(--accent-text);--shortcuts-muted:var(--subtle);--toc-surface:var(--white);--toc-active:var(--panel-alt)}
@media(max-width:900px){.article-reading-layout:has(.docking-toc-rail){display:block}.article-hero .section-shortcuts{--shortcuts-columns:3;--shortcuts-mobile-columns:2}.article-hero>.section-shortcuts,.article-hero>.docking-toc-home{margin-top:14px}.article-hero:has(.docking-toc-home,.section-shortcuts)+.article-reading-layout{padding-top:24px}}

/* Inherits the host font. Theme through --shortcuts-* custom properties. */
.section-shortcuts{display:grid;grid-template-columns:repeat(var(--shortcuts-columns,4),minmax(0,1fr));gap:0 18px;border-block:1px solid var(--shortcuts-line,var(--border))}
.section-shortcuts a{box-sizing:border-box;display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 0;color:var(--shortcuts-color,var(--accent-text));font-size:13px;line-height:1.4;font-weight:500;text-decoration:none;overflow-wrap:anywhere}
.section-shortcuts a>span{font-size:10px;color:var(--shortcuts-muted,var(--subtle));font-weight:400}
.section-shortcuts a:hover{text-decoration:underline;text-underline-offset:4px}
.section-shortcuts a:focus-visible{outline:2px solid var(--shortcuts-color,var(--accent-text));outline-offset:2px;border-radius:2px}
@media(max-width:700px){.section-shortcuts{grid-template-columns:repeat(var(--shortcuts-mobile-columns,2),minmax(0,1fr));gap:0 14px}.section-shortcuts a{font-size:12px;gap:7px}}

.docking-toc-home{overflow-anchor:none}
.docking-toc-rail{overflow-anchor:none;position:sticky;align-self:start;z-index:5}
.docking-toc-rail[data-toc-state="home"]{visibility:hidden;pointer-events:none}
.docking-toc-rail[data-toc-state="docked"]{visibility:visible}
.docking-toc-rail nav.section-shortcuts{display:flex;flex-direction:column;gap:2px;border:0;overflow:visible}
.docking-toc-rail nav.section-shortcuts a{position:relative;min-height:40px;padding:9px 7px;font-size:12px;line-height:1.4;border-radius:5px;background:var(--toc-surface,var(--white));color:var(--shortcuts-muted,var(--subtle))}
.section-shortcuts[data-docking-ready] a{position:relative}
.section-shortcuts[data-docking-ready] a[aria-current="location"]{color:var(--shortcuts-color,var(--accent-text));font-weight:600}
.docking-toc-rail nav.section-shortcuts a[aria-current="location"]{background:var(--toc-active,var(--panel-alt))}
.docking-toc-rail nav.section-shortcuts a[aria-current="location"]::before{content:'';position:absolute;left:-22px;top:10px;bottom:10px;width:2px;background:var(--shortcuts-color,var(--accent-text));border-radius:2px}
@media(max-width:900px){.docking-toc-rail{display:none}}


.section-shortcuts a>span{flex:0 0 20px;white-space:nowrap}
@media(max-width:900px){.article-reading-layout{display:block}.article-toc{display:none}}

/* Keep FLIP movement and focus indicators outside a non-scrolling rail. */
.article-toc.docking-toc-rail{max-height:none;overflow:visible}

/* Keep the reference page typography, figures and reading widths. */
.reference-calque [hidden]{display:none!important}
.reference-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.reference-section-heading>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:8px;background:var(--soft);color:var(--green);font:600 12px/1 var(--body)}
.reference-calque .reference-section-heading h2{margin:0}
.reference-calque .newsletter-group-heading{align-items:center}
.reference-calque .newsletter-group-heading h2{margin:0}
.reference-calque .calque-toc-host{max-width:1000px;background:var(--white,#fff);margin-top:18px;z-index:15;overflow-anchor:none}
.reference-calque .calque-toc-host .section-shortcuts{--shortcuts-columns:5;--shortcuts-color:var(--green);--shortcuts-muted:var(--muted);--shortcuts-line:var(--line);gap:0 14px}
.reference-calque .calque-toc-host .section-shortcuts a{font-size:12px}
.reference-calque .article-toc.calque-toc-rail{overflow:visible}
.reference-calque .docking-toc-rail nav.section-shortcuts{display:flex;flex-direction:column;overflow:visible}
.reference-calque .article-body>section{scroll-margin-top:150px}
@media(max-width:900px){
 .reference-calque .calque-toc-host{position:sticky;top:var(--calque-header-bottom,80px);max-width:none;padding-top:8px;padding-bottom:8px;box-shadow:0 8px 12px -12px #1f5c3f55}
 .reference-calque .calque-toc-host .section-shortcuts{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:16px;scrollbar-width:thin;overscroll-behavior-x:contain}
 .reference-calque .calque-toc-host .section-shortcuts a{flex:0 0 180px;min-height:54px}
 .reference-calque .article-body>section{scroll-margin-top:180px}
 .reference-calque .article-reading-layout{display:block;padding-top:30px}
}

.reference-calque .calque-edition-actions{margin:20px 0 28px}
.reference-calque .calque-edition-actions .newsletter-actions{display:flex;flex-direction:column;align-items:flex-end;margin:0;padding:0;border:0}
.reference-calque .calque-edition-actions .newsletter-action-buttons{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.reference-calque .calque-edition-actions .newsletter-action-summary{order:-1}
.reference-calque .calque-edition-actions .newsletter-action{min-height:42px;padding:10px 15px;border-radius:10px;font-size:13px;line-height:1.35;white-space:nowrap}
.reference-calque .calque-edition-actions .newsletter-action-status:empty{display:none}
.reference-calque .calque-edition-actions .newsletter-share-fallback{width:min(100%,420px)}
.reference-calque .calque-edition-actions .newsletter-ai-summary{margin-top:18px}
.reference-calque .calque-related{margin:32px 0}
.reference-calque .calque-related h2{font-size:20px;margin:0 0 14px}
.reference-calque .calque-related-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.reference-calque .calque-related-links a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px;min-height:86px;border:1px solid var(--line,#d2ddd5);border-radius:12px;color:var(--green,#195c43);background:var(--soft,#f2f6f3);font-weight:600;line-height:1.5;text-decoration:none;transition:background .15s,border-color .15s}
.reference-calque .calque-related-links a:hover{background:#e8f0e9;border-color:var(--green,#195c43)}
.reference-calque .calque-related-links a:focus-visible,.reference-calque .newsletter-action:focus-visible{outline:3px solid #e9b73c;outline-offset:4px}
.reference-calque .calque-related-links a span{font-size:21px;flex:0 0 auto}
@media(max-width:600px){.reference-calque .calque-related-links{grid-template-columns:1fr}.reference-calque .calque-related-links a{min-height:72px;padding:15px 16px}}

/* Same shared button styles and right edge as the controls below the ranking. */
.reference-calque .article-reading-layout{padding-top:24px}
.reference-calque .calque-top-actions{margin:0 0 24px}
.reference-calque .calque-top-actions .newsletter-actions{min-height:42px}

/* Secondary date context belongs to the story, not to the section title. */
.reference-calque .newsletter-story > .newsletter-period{
 font-size:12px;
 line-height:1.55;
 font-weight:400;
 color:#627269;
 margin:0 0 8px;
 padding:0;
 border:0;
}

.reference-calque[data-editorial-kind="article"] .calque-toc-host .section-shortcuts{--shortcuts-columns:4}
.reference-calque[data-editorial-kind="article"] .section-shortcuts a,
.reference-calque[data-editorial-kind="article"] .article-toc a[href^="#"]{white-space:nowrap;overflow-wrap:normal;word-break:normal}

/* Show the complete conceptual scene instead of cropping it to the newsletter banner ratio. */
.reference-calque[data-editorial-kind="article"] .article-method-figure img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}

/* Generated rubric illustrations retain their full scene and measured ratio. */
.reference-calque[data-editorial-kind="newsletter"] .newsletter-inline-image img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
