/* Insight article pages — shared layout for /insights/<slug>/ */

/* The breadcrumb block above carries the clearance for the fixed header, so the
   hero only adds the gap between the trail and the kicker. */
.article-hero{padding:26px 0 72px;background:linear-gradient(160deg,#1b3764 0%,#12294c 62%,#0d1f3b 100%);color:#fff}
.article-hero .narrow{max-width:840px}
.article-kicker{display:inline-flex;align-items:center;gap:9px;margin-bottom:22px;color:#8fe0d8;font-size:12.5px;font-weight:600;letter-spacing:.07em}
.article-hero h1{max-width:20ch;color:#fff;font-size:clamp(32px,4.6vw,52px);font-weight:300;line-height:1.12;letter-spacing:-.02em;text-wrap:balance}
.article-hero h1 b{font-weight:600}
.article-dek{max-width:62ch;margin-top:24px;color:rgba(255,255,255,.78);font-size:clamp(16px,1.7vw,19px);line-height:1.6;text-wrap:pretty}
.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:34px;padding-top:24px;border-top:1px solid rgba(255,255,255,.18);color:rgba(255,255,255,.6);font-size:13px}
.article-meta span+span::before{content:"·";margin-right:10px}
.article-meta a{color:rgba(255,255,255,.82);text-underline-offset:4px}

.article-figure{margin:0;background:#dbe5ec}
.article-figure img{display:block;width:100%;height:clamp(220px,34vw,420px);object-fit:cover;filter:saturate(.76) contrast(1.06)}
.article-figure figcaption{max-width:1080px;margin:0 auto;padding:14px 32px 0;color:var(--grey);font-size:12.5px;line-height:1.5}

.article-body{padding:78px 0 24px}
.article-layout{display:grid;grid-template-columns:minmax(0,210px) minmax(0,1fr);gap:clamp(32px,5vw,64px);align-items:start}
.article-content{max-width:760px;min-width:0}
.article-content>*+*{margin-top:24px}

/* Sticky table of contents. 88px clears the fixed header. */
.article-toc{position:sticky;top:96px;padding-right:8px;border-left:2px solid var(--line)}
.article-toc>p{margin:0 0 12px 18px;color:var(--teal);font-size:11.5px;font-weight:600;letter-spacing:.08em}
.article-toc ol{list-style:none;margin:0;padding:0;counter-reset:toc}
.article-toc li{counter-increment:toc}
.article-toc a{display:block;padding:7px 0 7px 18px;margin-left:-2px;border-left:2px solid transparent;color:var(--grey);font-size:13px;line-height:1.45;text-decoration:none;transition:color .2s,border-color .2s}
.article-toc a:hover{color:var(--dark);border-left-color:var(--teal)}
.article-toc a[aria-current="true"]{color:var(--dark);font-weight:600;border-left-color:var(--teal)}

.article-cred{padding:20px 22px;border:1px solid var(--line);border-radius:12px;background:#fff}
.article-cred p{margin:0;color:var(--grey);font-size:14px;line-height:1.65}
.article-cred strong{display:block;margin-bottom:5px;color:var(--dark);font-size:15px}
.article-cred a{color:var(--teal);text-underline-offset:3px}
.article-cred__meta{margin-top:12px!important;padding-top:12px;border-top:1px solid var(--line);font-size:12.5px;color:#657388}

.article-references{padding:0 0 88px}
.article-references .narrow{max-width:760px}
.article-references h2{margin:0 0 22px;font-size:clamp(20px,2.2vw,26px);font-weight:300;color:var(--dark);letter-spacing:-.012em}
.article-references ol{margin:0;padding-left:20px}
.article-references li{margin-top:12px;color:var(--grey);font-size:14px;line-height:1.65}
.article-references li::marker{color:var(--teal);font-weight:600}
.article-references a{color:var(--dark);font-weight:600;text-underline-offset:3px}
.article-references a:hover{color:var(--teal)}

.answer-learn-label{margin:18px 0 8px!important;color:var(--teal);font-size:11.5px;font-weight:600;letter-spacing:.08em}
.answer-box .answer-learn{margin:0;padding-left:20px}
.answer-box .answer-learn li{margin-top:7px;font-size:15px;line-height:1.6;color:var(--ink)}
.answer-box .answer-learn li::marker{color:var(--teal)}
.article-body h2{margin:58px 0 0;font-size:clamp(23px,2.6vw,31px);font-weight:300;line-height:1.24;letter-spacing:-.012em;color:var(--dark);text-wrap:balance}
.article-body h2 b{font-weight:600}
.article-body h3{margin:38px 0 0;font-size:clamp(17px,1.9vw,20px);font-weight:600;line-height:1.35;color:var(--dark)}
.article-body p{font-size:16.5px;line-height:1.78;color:var(--ink);text-wrap:pretty}
.article-body a{color:var(--teal);text-underline-offset:3px}
.article-body a:hover{color:var(--dark)}
.article-body strong{font-weight:600;color:var(--dark)}
.article-body ul,.article-body ol{padding-left:22px;color:var(--ink)}
.article-body li{margin-top:11px;font-size:16.5px;line-height:1.72;text-wrap:pretty}
.article-body li::marker{color:var(--teal)}
.article-body ol li::marker{font-weight:600}

.answer-box{padding:26px 28px;background:#eef4f8;border-left:4px solid var(--teal);border-radius:0 12px 12px 0}
.answer-box p{margin:0;font-size:17px;line-height:1.7}
.answer-box p+p{margin-top:14px}
.answer-box .answer-label{display:block;margin-bottom:10px;color:var(--teal);font-size:11.5px;font-weight:600;letter-spacing:.08em}

.callout{padding:24px 26px;background:var(--mist);border:1px solid var(--line);border-radius:12px}
.callout p{margin:0;font-size:15.5px;line-height:1.7;color:var(--grey)}
.callout p strong{color:var(--dark)}

.takeaways{padding:30px 32px;background:var(--dark);border-radius:14px;color:#fff}
.takeaways h2{margin:0 0 18px;color:#fff;font-size:19px;font-weight:600;letter-spacing:0}
.takeaways ol{margin:0;padding-left:20px}
.takeaways li{margin-top:12px;color:rgba(255,255,255,.82);font-size:15.5px;line-height:1.65}
.takeaways li::marker{color:#8fe0d8;font-weight:600}
.takeaways li strong{color:#fff}

.article-table{width:100%;margin:0;border-collapse:collapse;font-size:15px}
.article-table caption{margin-bottom:12px;color:var(--grey);font-size:13px;text-align:left}
.article-table th,.article-table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;line-height:1.6}
.article-table thead th{color:var(--dark);font-size:12.5px;font-weight:600;letter-spacing:.04em;border-bottom:2px solid var(--dark)}
.article-table tbody th{color:var(--dark);font-weight:600}
.article-table td{color:var(--grey)}
.table-scroll{overflow-x:auto}

.article-faq{padding:16px 0 88px}
.article-faq .narrow{max-width:760px}
.article-faq h2{margin:0 0 8px;font-size:clamp(23px,2.6vw,31px);font-weight:300;color:var(--dark);letter-spacing:-.012em}
.article-faq h2 b{font-weight:600}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item h3{margin:0;padding:24px 0 8px;font-size:17px;font-weight:600;line-height:1.4;color:var(--dark)}
.faq-item p{margin:0;padding-bottom:24px;font-size:15.5px;line-height:1.74;color:var(--grey);text-wrap:pretty}

.article-practice{padding:0 0 92px}
.article-practice .narrow{max-width:760px}
.article-practice__card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;padding:30px 32px;background:#eef4f8;border-radius:14px}
.article-practice__card p{margin:0;color:var(--grey);font-size:15px;line-height:1.7}
.article-practice__card strong{display:block;margin-bottom:8px;color:var(--dark);font-size:16px}
.article-practice__card a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border-radius:999px;background:var(--dark);color:#fff;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .2s,transform .2s}
.article-practice__card a:hover{background:#26497e;transform:translateY(-2px)}

.article-related{padding:88px 0;background:var(--mist)}
.article-related h2{margin:0 0 34px;font-size:clamp(24px,2.8vw,34px);font-weight:300;color:var(--dark);letter-spacing:-.015em}
.article-related h2 b{font-weight:600}
.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.related-card{position:relative;display:flex;flex-direction:column;padding:26px;background:#fff;border:1px solid var(--line);border-radius:12px;transition:transform .3s cubic-bezier(.22,1,.36,1),border-color .25s}
.related-card:hover{transform:translateY(-4px);border-color:#b9cbd9}
.related-card span{margin-bottom:12px;color:var(--teal);font-size:12px;font-weight:600}
.related-card h3{margin:0;font-size:17px;font-weight:600;line-height:1.38;color:var(--dark);text-wrap:balance}
.related-card h3 a{color:inherit;text-decoration:none}
.related-card h3 a::after{content:"";position:absolute;inset:0}
.related-card p{margin:12px 0 0;color:var(--grey);font-size:14px;line-height:1.6}
.related-back{display:inline-flex;align-items:center;min-height:44px;margin-top:34px;color:var(--dark);font-size:14px;font-weight:600;text-decoration:none;text-underline-offset:4px}
.related-back:hover{color:var(--teal)}

/* Below this width the sidebar has no room, so the contents list becomes a
   compact block above the article instead of a sticky rail beside it. */
@media(max-width:1000px){
  .article-layout{grid-template-columns:1fr;gap:34px}
  .article-content{max-width:none}
  .article-toc{position:static;padding:18px 20px;border:1px solid var(--line);border-left:1px solid var(--line);border-radius:12px;background:var(--mist)}
  .article-toc>p{margin-left:0}
  .article-toc ol{columns:2;column-gap:28px}
  .article-toc a{padding:6px 0;border-left:0;margin-left:0}
  .article-toc a:hover,.article-toc a[aria-current="true"]{border-left:0}
}
@media(max-width:900px){
  .related-grid{grid-template-columns:1fr 1fr}
  .article-practice__card{grid-template-columns:1fr;gap:20px}
  .article-practice__card a{justify-self:start}
}
@media(max-width:620px){
  .article-toc ol{columns:1}
  .article-hero{padding:22px 0 56px}
  .article-body{padding:56px 0 16px}
  .article-body h2{margin-top:44px}
  .article-body p,.article-body li{font-size:16px}
  .related-grid{grid-template-columns:1fr}
  .article-related{padding:64px 0}
  .answer-box,.callout{padding:22px}
  .takeaways{padding:26px 24px}
}
@media(max-width:420px){
  .article-figure figcaption{padding:14px 20px 0}
}
@media(prefers-reduced-motion:reduce){
  .related-card,.article-practice__card a{transition:none}
  .related-card:hover,.article-practice__card a:hover{transform:none}
}
