/* v1.2.1: Separate stories with space; reserve lines for controls and tables. */
body .site-header .masthead{grid-template-columns:minmax(0,1fr) 280px;min-height:132px;gap:36px;padding-block:30px;text-align:left}
body .site-header .brand{justify-self:start;max-width:100%}
body .site-header .site-search{width:100%;max-width:none;border:0;background:#f2f5f8;border-radius:12px;padding:2px 12px}
body .site-header .site-search input,body .site-header .site-search button{font-size:18px}
body .site-header .primary-nav{border-top:0;border-bottom:1px solid #e2e8ef}
body .site-header .primary-nav .shell{gap:4px;padding-bottom:14px}
body .site-header .primary-nav a{border:0;border-radius:8px;font-size:19px;padding:12px 10px;min-height:52px}
body .content-main{padding-top:40px}
.mag-lead-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.mag-lead-heading .mag-overline{font-size:24px;margin:0}
.mag-lead-heading>a{font-size:19px}
body .mag-top,body .mag-secondary,body .mag-picture,body .mag-card--compact,body .mag-topic-head,body .mag-topic-list li,body .mag-topic-list img{border:0}
body .mag-card--lead{padding-bottom:48px;gap:44px}
body .mag-card--lead h1{font-size:40px;line-height:1.4;letter-spacing:-.035em}
body .mag-card--lead .mag-card-copy>p{font-size:22px;line-height:1.8;color:#46596c}
body .mag-secondary{padding-top:0;gap:36px}
body .mag-secondary .mag-card{border:0}
body .mag-card h3{font-size:25px;line-height:1.55;letter-spacing:-.025em}
body .mag-card .kicker,body .content-main .kicker,body .mag-date{font-size:18px;line-height:1.6;color:#46596c;letter-spacing:0}
body .mag-date{margin-top:12px}
body .mag-shortcuts{border:0;background:#f2f5f8;border-radius:16px;gap:20px;padding:26px 28px;margin:34px 0 64px}
body .mag-shortcuts a,body .mag-shortcuts a:first-child{padding:6px 0;justify-content:center}
body .mag-shortcuts a+a{border:0}
body .mag-shortcuts strong{font-size:21px;line-height:1.55}
body .section-heading{border:0;padding:0;margin-bottom:26px;gap:18px}
body .section-heading h2{font-size:29px;line-height:1.5}
body .content-main .section-heading a{font-size:18px;color:#46596c}
body .mag-card--compact{padding:0;margin-bottom:32px;gap:26px;grid-template-columns:144px minmax(0,1fr)}
body .mag-latest .section-heading{margin-bottom:28px}
body .mag-middle{grid-template-columns:minmax(0,1fr) 320px;gap:56px;margin-bottom:70px}
body .news-grid{gap:48px}
body .rail,body .mag-middle .rail{border:0;padding:0}
body .rail .rail-section{border:0;margin:0 0 40px;padding:0}
body .rail .rail-section h2{font-size:26px;line-height:1.5;margin-bottom:20px}
body .rail .sln-popular{background:#f2f5f8;border-radius:16px;padding:26px}
body .rail .sln-popular-period,body .rail .sln-popular-empty,body .rail .sln-popular-method summary,body .rail .sln-popular-method p,body .rail .small-link{font-size:18px;line-height:1.75;color:#46596c}
body .rail .sln-popular-method summary{min-height:44px}
body .rail .sln-popular-list li,body .rail .sln-pick-list li{border:0;font-size:20px;line-height:1.7;padding:0;margin:0 0 22px}
body .rail .sln-popular-list a,body .rail .sln-pick-list a{color:#24364b}
body .rail .sln-popular-rank{font-size:26px;color:#315f8c}
body .rail .category-index li{border:0}
body .rail .category-index a{font-size:19px;min-height:50px}
body .mag-topics{margin-top:64px}
body .mag-topic-grid{gap:56px 64px}
body .mag-topic-head{margin-bottom:18px;padding:0}
body .mag-topic-head h3{font-size:27px;letter-spacing:-.025em}
body .mag-topic-head>a{font-size:18px}
body .mag-topic-list li+li{margin-top:4px}
body .mag-topic-list a{font-size:21px;line-height:1.7;font-weight:600;padding:12px 0;gap:24px}
body .mag-topic-list li:first-child a{font-size:23px;padding-top:0;min-height:140px}
body .mag-reader{border:0;border-radius:16px;background:#f2f5f8;padding:32px;margin-top:64px}
body .mag-reader h2{font-size:28px}
body .mag-reader p,body .mag-reader>a{font-size:20px}
body .content-main .breadcrumb,body .content-main .post-meta{font-size:18px;line-height:1.75;color:#46596c}
body .content-main .breadcrumb{margin-bottom:24px}
body .story-head{border:0;padding-bottom:0;margin-bottom:30px}
body .story-title{letter-spacing:-.035em;line-height:1.5}
body .story .story-body{font-size:22px;line-height:1.9;max-width:36em}
body .story .story-body h2{font-size:30px;margin-top:2em}
body .story .story-body h3{font-size:25px}
body .story .story-body figcaption,body .story-image figcaption,body .story .story-body small{font-size:18px;line-height:1.8}
body .story .story-body table{font-size:20px;line-height:1.8}
body .story .story-body blockquote,body .story .correction-note{border:0;border-radius:12px}
body .story .correction-note{font-size:19px;line-height:1.9;padding:24px;margin-top:48px}
body .article-list>li{border:0;padding:0;margin-bottom:44px}
body .news-card h2,body .news-card h3{font-size:27px;line-height:1.5}
body .news-card p{font-size:20px;line-height:1.8}
body .sln-reading-tools{border:0;gap:10px;font-size:18px;padding:0;margin:24px 0}
body .sln-reading-tools button{border:1px solid #b5c3d1;color:#24364b;border-radius:8px;min-height:48px;padding:10px 15px}
body .sln-reading-tools button:hover{background:#eaf2fa}
body .sln-reading-toc{border:0;background:#f2f5f8;border-radius:12px;padding:20px 24px;margin-bottom:36px}
body .sln-reading-toc summary{font-size:22px}
body .sln-reading-toc ol{list-style:none;padding-left:0}
body .sln-reading-toc a{font-size:20px;line-height:1.8;color:#315f8c;text-decoration:none}
body .sln-reading-toc a:hover{text-decoration:underline}
body .story .lab-paths-top{border:0;font-size:18px;padding:0;margin-bottom:30px}
body .story .lab-paths-top a{min-height:44px}
body .story .lab-paths{border:0;padding-top:0;margin-top:52px}
body .story .lab-paths .lab-paths-card{border:0;background:#f2f5f8}
body .story .lab-paths .lab-paths-kicker,body .story .lab-paths-reason,body .story .lab-paths-read{font-size:18px;line-height:1.75}
body .story .lab-paths-card-title{font-size:22px;line-height:1.6}
body .story .lab-paths .lab-paths-hub{border:0;font-size:20px}
/* Speaker labels were authored inline at 14px. */
body .story .sln-comic-speaker{font-size:18px!important;line-height:1.5!important}
body .footer{border:0;background:#f3f6f9;padding-top:12px}
body .footer .footer-top,body .footer .footer-policy-grid{border:0}
body .footer .footer-top{padding:24px 0 0}
body .footer .footer-brand{font-size:27px;margin-bottom:8px}
body .footer .footer-policy-grid{grid-template-columns:1fr 2fr 1fr;gap:32px;padding-bottom:12px}
body .footer .footer-section-title{font-size:21px;margin:26px 0 12px}
body .footer .footer-nav,body .footer .footer-nav a{font-size:18px;line-height:1.7}
body .footer .footer-nav{gap:8px 24px}
body .footer .footer-nav a{min-height:48px}
body .footer .footer-bottom,body .footer .footer-bottom .operator{font-size:18px;line-height:1.85}
body .footer .footer-bottom{padding-top:24px}
body .footer .footer-bottom p{margin-bottom:12px}
@media(max-width:1080px){
  body .site-header .masthead{grid-template-columns:minmax(0,1fr) 250px;gap:24px}
  body .site-header .primary-nav a{font-size:18px;padding-inline:8px;white-space:normal;text-align:center}
  body .mag-card--lead h1{font-size:34px}
  body .mag-middle{grid-template-columns:minmax(0,1fr) 270px;gap:36px}
  body .news-grid{gap:32px}
  body .mag-card--compact{grid-template-columns:112px minmax(0,1fr);gap:22px}
  body .mag-card h3{font-size:24px}
}
@media(max-width:800px){
  body .site-header .masthead{grid-template-columns:1fr;gap:20px;padding:26px 0;min-height:0}
  body .site-header .brand{justify-self:center}
  body .site-header .site-search{max-width:460px;margin-inline:auto}
  body .site-header .primary-nav .shell{padding:0 14px 14px;gap:4px}
  body .site-header .primary-nav a{min-height:52px;font-size:18px;line-height:1.5}
  body .content-main{padding-top:30px}
  .mag-lead-heading{margin-bottom:22px;gap:12px}
  .mag-lead-heading .mag-overline{font-size:23px}
  .mag-lead-heading>a{font-size:18px}
  body .mag-card--lead{gap:24px;padding-bottom:28px}
  body .mag-card--lead h1{font-size:32px}
  body .mag-card--lead .mag-picture img{aspect-ratio:4/3;max-height:none}
  body .mag-secondary{gap:6px}
  body .mag-secondary .mag-card{padding:24px 0;grid-template-columns:110px minmax(0,1fr);gap:20px}
  body .mag-card h3{font-size:23px}
  body .mag-shortcuts{margin:26px 0 48px;padding:18px 24px}
  body .mag-shortcuts a,body .mag-shortcuts a:first-child{padding:12px 0}
  body .mag-shortcuts a+a{border:0}
  body .mag-middle .rail,body .rail{margin-top:44px;padding:0;display:block}
  body .rail .rail-section{margin-bottom:36px}
  body .section-heading h2{font-size:27px}
  body .mag-topic-grid{gap:42px}
  body .mag-topic-head h3{font-size:25px}
  body .mag-topic-list li:first-child a{font-size:22px}
  body .mag-topic-list a{font-size:21px;gap:20px}
  body .mag-reader{padding:26px;margin-top:44px}
  body .footer .footer-policy-grid{grid-template-columns:1fr;gap:0}
  body .footer .footer-nav{gap:8px 22px}
}
@media(max-width:480px){
  body .mag-card--lead h1{font-size:30px}
  body .mag-card--lead .mag-card-copy>p{font-size:21px}
  body .mag-card--compact,body .mag-secondary .mag-card{grid-template-columns:88px minmax(0,1fr);gap:18px}
  body .mag-card h3{font-size:22px}
  body .mag-topic-head{gap:12px;flex-wrap:wrap}
  body .story-title{font-size:31px}
  body .story .story-body{font-size:21px}
  body .story .story-body h2{font-size:28px}
  body .story .story-body h3{font-size:24px}
  body .news-card h2,body .news-card h3{font-size:24px}
  body .sln-reading-tools{gap:8px}
  body .sln-reading-toc{padding:18px 20px}
  body .footer .footer-brand{font-size:25px}
}
@media print{
  body .story .story-body{font-size:12pt;line-height:1.7}
  body .story .story-body h2{font-size:17pt}
  body .story .story-body h3{font-size:15pt}
  body .story .story-body table,body .story .story-body small{font-size:11pt}
}

/* v1.2.2: Clear category groups and readable labels without row dividers. */
body .content-main .sln-category-badge{display:inline-flex;align-items:center;max-width:100%;min-height:42px;padding:6px 12px;background:#e5eff8;color:#264e73;border:0;border-radius:7px;font-size:18px;font-weight:700;line-height:1.55;letter-spacing:0;text-decoration:none;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
body .content-main a.sln-category-badge{min-height:44px}
body .content-main a.sln-category-badge:hover{background:#d5e5f4;text-decoration:underline;text-underline-offset:4px}
body .content-main .breadcrumb{align-items:center}
body .content-main .news-card .kicker{display:block}
body .mag-topic-grid{gap:28px;align-items:stretch}
body .mag-topic{padding:28px;background:#eef3f8;border:1px solid #d2dfe9;border-radius:16px}
body .mag-topic-head{flex-wrap:wrap;gap:6px 16px;align-items:center;margin-bottom:18px}
body .mag-topic-head h3{color:#264e73;line-height:1.5;word-break:keep-all}
body .mag-topic-head>a{font-weight:650;text-decoration:underline;text-underline-offset:4px}
body .mag-topic-list a{gap:20px}
body .mag-topic-list img{width:104px;border-radius:8px;background:#fff}
body .mag-topic-list li:first-child a{min-height:120px}
@media(max-width:800px){
  body .mag-topic-grid{gap:24px}
  body .mag-topic{padding:24px}
}
@media(max-width:480px){
  body .mag-topic{padding:20px}
  body .mag-topic-head{gap:2px 12px}
  body .mag-topic-list a{gap:14px}
  body .mag-topic-list img{width:80px}
  body .mag-topic-list li:first-child a{min-height:100px}
}

/* v1.2.3: Mobile browsing starts with a legible, uncropped thumbnail. */
@media(max-width:800px){
  body .content-main .article-list .news-card{display:flex;flex-direction:column;gap:18px;min-width:0}
  body .content-main .article-list .news-card>div{width:100%;min-width:0}
  body .content-main .article-list .news-card>a{order:-1;display:block;width:100%;border:0;border-radius:12px;overflow:hidden;background:#f2f5f8}
  body .content-main .article-list .news-card img{display:block;width:100%;max-width:100%;height:auto;max-height:360px;aspect-ratio:4/3;object-fit:contain;background:#f2f5f8}
  body .content-main.sln-worksheet-archive .article-list .news-card img{aspect-ratio:1}
  body .content-main .article-list .news-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:20px;line-height:1.65;margin-bottom:12px}
  body .content-main .article-list .news-card h2,body .content-main .article-list .news-card h3{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:24px;line-height:1.5}
  body .content-main .article-list .news-card .post-meta>span:first-child{display:inline}
  body .content-main .article-list .news-card .post-meta>span:last-child{display:none}
  body .content-main .article-list>li{margin-bottom:40px}
  body .content-main .mag-secondary .mag-card,body .content-main .mag-card--compact{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:0;margin-bottom:36px}
  body .content-main .mag-secondary{gap:0}
  body .content-main .mag-secondary .mag-picture,body .content-main .mag-card--compact .mag-picture{width:100%;margin:0;border-radius:12px;background:#f2f5f8}
  body .content-main .mag-secondary .mag-picture img,body .content-main .mag-card--compact .mag-picture img{width:100%;height:auto;max-height:360px;aspect-ratio:4/3;object-fit:contain;background:#f2f5f8}
  body .content-main .mag-topic-list li:first-child a{display:flex;flex-direction:column;align-items:stretch;gap:16px;min-height:0;padding-bottom:18px}
  body .content-main .mag-topic-list li:first-child img{width:100%;height:auto;max-height:320px;aspect-ratio:4/3;object-fit:contain;background:#fff;border-radius:10px}
  body .content-main .mag-topic-list li:first-child span{width:100%}
}
