.article-page { overflow: clip; background: #FCFDFF; color: #1A1A2E; }
.article-shell { width: var(--site-content-width); margin-inline: auto; }
.article-page h1, .article-page h2, .article-page h3, .article-page p { margin-top: 0; }
.article-hero { padding: 124px 0 64px; border-bottom: 1px solid #4A90E229; background: #FCFDFF; }
.article-hero .site-breadcrumb { margin-bottom: 34px; }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); align-items: center; gap: clamp(42px, 6vw, 88px); }
.article-eyebrow { margin: 0 0 var(--eyebrow-space); color: var(--eyebrow-color); font-size: var(--section-eyebrow-size); font-weight: var(--eyebrow-weight); line-height: var(--eyebrow-line-height); letter-spacing: var(--eyebrow-letter-spacing); }
.section-kicker { margin: 0 0 16px; color: #4A90E2; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .13em; }
.article-hero h1 { max-width: var(--page-hero-title-max); margin: 0; font-size: var(--page-hero-title-size); font-weight: var(--page-hero-title-weight); line-height: var(--page-hero-title-line-height); letter-spacing: var(--page-hero-title-letter-spacing); }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: var(--page-hero-copy-gap); }
.article-meta span, .article-meta time { padding: 8px 11px; border: 1px solid #4A90E23D; border-radius: 999px; background: #F8F9FA; color: #1A1A2E; font-size: 12px; font-weight: 600; line-height: 1.3; }
.hero-visual { margin: 0; overflow: hidden; border: 1px solid #4A90E252; border-radius: 22px; background: #F8F9FA; box-shadow: 0 24px 54px #1A1A2E14; }
.hero-visual img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-visual figcaption { padding: 12px 16px; color: #1A1A2E; font-size: 12px; line-height: 1.5; opacity: .68; }

.article-body { min-width: 0; }
.article-body p, .article-body li { color: #1A1A2E; font-size: 17px; line-height: 1.78; }
.article-body p { margin-bottom: 20px; }
.article-body code { border-radius: 4px; background: #4A90E214; padding: 2px 5px; font-family: Consolas, "Courier New", monospace; font-size: .88em; }
.article-intro { scroll-margin-top: 100px; }
.lead-paragraph { font-size: 23px !important; font-weight: 600; line-height: 1.55 !important; letter-spacing: -.012em; }
.section-heading { margin-top: 60px; }
.section-heading h2, .steps-heading h2, .closing-section h2 { margin: 0 0 22px; color: #1A1A2E; font-size: clamp(32px, 4vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -.038em; }
.article-body blockquote { margin: 28px 0; padding: 22px 24px; border-left: 3px solid #4A90E2; background: #F8F9FA; color: #1A1A2E; font-size: 19px; font-weight: 600; line-height: 1.6; }
.reference-visual { margin: 34px 0; overflow: hidden; border: 1px solid #4A90E23D; border-radius: 18px; background: #F8F9FA; }
.reference-visual img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.reference-visual figcaption { padding: 14px 18px; color: #1A1A2E; font-size: 13px; line-height: 1.55; opacity: .72; }
.reference-visual figcaption strong { color: #1A1A2E; }

.steps-heading { margin: 76px 0 26px; padding-top: 12px; }
.steps-heading > p:last-child { max-width: 600px; margin-bottom: 0; opacity: .68; }
.article-step { scroll-margin-top: 94px; border-top: 1px solid #4A90E252; }
.article-step:last-of-type { border-bottom: 1px solid #4A90E252; }
.article-step summary { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 24px; align-items: center; gap: 14px; min-height: 88px; padding: 18px 4px; color: #1A1A2E; cursor: pointer; list-style: none; }
.article-step summary::-webkit-details-marker { display: none; }
.article-step summary:hover .step-title { color: #4A90E2; }
.step-number { color: #4A90E2; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.step-title { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.016em; transition: color .2s; }
.step-time { padding: 6px 9px; border-radius: 999px; background: #4A90E214; color: #4A90E2; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.article-step summary svg { width: 20px; height: 20px; fill: none; stroke: #4A90E2; stroke-width: 1.8; transition: transform .25s var(--ease); }
.article-step[open] summary svg { transform: rotate(180deg); }
.article-step[open] summary { border-bottom: 1px solid #4A90E229; }
.step-content { padding: 32px 4px 44px 56px; }
.step-content > :last-child { margin-bottom: 0; }
.definition-grid { display: grid; gap: 12px; margin: 28px 0; }
.definition-grid > div { padding: 19px 20px; border: 1px solid #4A90E23D; border-radius: 12px; background: #F8F9FA; }
.definition-grid h3 { margin: 0 0 6px; color: #4A90E2; font-size: 14px; line-height: 1.4; }
.definition-grid p { margin: 0; font-size: 15px; line-height: 1.62; }
pre { position: relative; max-width: 100%; margin: 22px 0 28px; overflow: auto; border: 1px solid #4A90E252; border-radius: 14px; background: #1A1A2E; color: #FCFDFF; }
pre code { display: block; min-width: max-content; padding: 22px 54px 22px 22px !important; background: transparent !important; color: inherit; font-size: 13px !important; line-height: 1.65; white-space: pre; }
.copy-code { position: sticky; top: 10px; float: right; z-index: 1; margin: 10px 10px -44px 0; padding: 7px 9px; border: 1px solid #4A90E266; border-radius: 7px; background: #1A1A2E; color: #FCFDFF; font-size: 11px; font-weight: 700; cursor: pointer; }
.copy-code:hover { border-color: #4A90E2; color: #4A90E2; }
.article-note { margin: 28px 0; padding: 18px 20px; border: 1px solid #4A90E252; border-radius: 12px; background: #4A90E214; color: #1A1A2E; font-size: 15px; line-height: 1.65; }
.article-note strong { color: #4A90E2; }
.key-principle { margin: 30px 0 !important; padding: 23px; border-radius: 14px; background: #1A1A2E; color: #FCFDFF !important; }
.key-principle span { display: block; margin-bottom: 7px; color: #4A90E2; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.key-principle strong { color: #FCFDFF; font-size: 18px; }
.instruction-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 28px 0; overflow: hidden; border: 1px solid #4A90E23D; border-radius: 14px; background: #4A90E23D; }
.instruction-list div { display: grid; gap: 5px; padding: 20px; background: #F8F9FA; }
.instruction-list strong { color: #4A90E2; font-size: 14px; }
.instruction-list span { font-size: 14px; line-height: 1.55; }
.risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.risk-grid > div { padding: 18px; border: 1px solid #4A90E23D; border-radius: 12px; background: #F8F9FA; }
.risk-grid span { color: #4A90E2; font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.risk-grid h3 { margin: 8px 0; font-size: 19px; }
.risk-grid p { margin: 0; font-size: 13px; line-height: 1.55; }
.test-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.test-checklist li { position: relative; padding: 17px 17px 17px 46px; border: 1px solid #4A90E23D; border-radius: 11px; background: #F8F9FA; font-size: 14px; line-height: 1.5; }
.test-checklist li::before { position: absolute; top: 17px; left: 17px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #4A90E2; color: #FFFFFF; content: '✓'; font-size: 11px; font-weight: 700; }

.closing-section { scroll-margin-top: 94px; margin-top: 84px; padding-top: 12px; }
.closing-section + .closing-section { padding-top: 74px; border-top: 1px solid #4A90E252; }
.inline-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 25px 0 28px; padding: 19px; border: 1px solid #4A90E23D; border-radius: 14px; background: #F8F9FA; }
.inline-flow span { padding: 8px 11px; border-radius: 7px; background: #FFFFFF; color: #1A1A2E; font-size: 13px; font-weight: 600; box-shadow: 0 1px 0 #4A90E23D; }
.inline-flow i { color: #4A90E2; font-style: normal; }
.inline-flow.multi span { font-size: 11px; }
.final-section { margin-bottom: 0; }
.final-section > p:nth-last-of-type(-n+2) { font-weight: 600; }
.back-to-academy { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 13px 17px; border: 1px solid #2F75D5; border-radius: 8px; background: #2F75D5; color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; }
.back-to-academy:hover { background: #2364BA; }

@media (max-width: 980px) {
 .article-hero-grid { grid-template-columns: 1fr; }
 .hero-visual { max-width: 680px; }
 .article-body p, .article-body li { font-size: 16px; }
 .step-content { padding-left: 34px; }
}

@media (max-width: 760px) {
 .article-hero { padding: 112px 0 42px; }
 .article-hero .site-breadcrumb { margin-bottom: 26px; }
 .article-layout { display: block; padding-block: 52px 78px; }
 .steps-heading { margin-top: 62px; }
 .article-step summary { grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 10px; min-height: 80px; }
 .step-time { display: none; }
 .step-title { font-size: 19px; }
 .step-content { padding: 26px 0 38px; }
 .risk-grid { grid-template-columns: 1fr; }
 .closing-section { margin-top: 68px; }
}

@media (max-width: 520px) {
 .article-meta { gap: 7px; }
 .article-meta span, .article-meta time { font-size: 11px; }
 .hero-visual { border-radius: 16px; }
 .lead-paragraph { font-size: 20px !important; }
 .section-heading h2, .steps-heading h2, .closing-section h2 { font-size: 32px; }
 .article-body blockquote { padding: 18px 19px; font-size: 17px; }
 .reference-visual { margin-inline: 0; }
 .instruction-list, .test-checklist { grid-template-columns: 1fr; }
 pre { margin-inline: 0; }
 .inline-flow { align-items: flex-start; flex-direction: column; }
 .inline-flow i { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) { .article-step summary svg { transition: none; } }

/* Editorial article layout: shared header edges, full-width banner and related reading. */
.article-shell { width: auto; margin-inline: var(--site-edge); }
.article-hero { padding-bottom: 58px; }
.article-hero-grid { display: block; }
.article-hero-copy { max-width: 980px; margin-inline: auto; text-align: center; }
.article-hero h1 { max-width: var(--page-hero-title-max); }
.article-hero .site-breadcrumb ol { justify-content: center; }
.article-hero .article-meta { justify-content: center; }
.hero-visual { max-width: none; margin-top: 42px; border-radius: 22px; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; object-position: center; }
.hero-visual figcaption { padding: 12px 18px; }

.article-layout {
 display: grid;
 grid-template-columns: minmax(0, 820px) minmax(280px, 340px);
 align-items: start;
 justify-content: space-between;
 gap: clamp(38px, 4vw, 72px);
 padding-block: 72px 108px;
}
.article-body { width: 100%; max-width: 820px; }
.reference-visual { background: #FFFFFF; }
.reference-visual img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }

.suggested-sidebar { min-width: 0; }
.suggested-sticky { position: sticky; top: 98px; }
.suggested-sidebar h2 { margin: 0 0 24px; color: #1A1A2E; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.suggested-list { display: grid; gap: 22px; }
.suggested-card { display: grid; color: #1A1A2E; text-decoration: none; }
.suggested-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; margin-bottom: 13px; border: 1px solid #4A90E23D; border-radius: 12px; object-fit: contain; background: #F8F9FA; transition: transform .3s var(--ease), box-shadow .3s; }
.suggested-card span { margin-bottom: 7px; color: #4A90E2; font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; }
.suggested-card strong { color: #1A1A2E; font-size: 16px; font-weight: 600; line-height: 1.42; letter-spacing: -.012em; }
.suggested-card:hover img { transform: translateY(-3px); box-shadow: 0 12px 30px #1A1A2E14; }
.suggested-card:hover strong { color: #4A90E2; }
.all-articles-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: #1A1A2E; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.all-articles-link span { color: #4A90E2; }
.all-articles-link:hover { color: #4A90E2; }

@media (max-width: 1020px) {
 .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 38px; }
 .suggested-sidebar h2 { font-size: 26px; }
}

@media (max-width: 820px) {
 .article-layout { display: block; }
 .article-body { max-width: 760px; }
 .suggested-sidebar { margin-top: 76px; padding-top: 56px; border-top: 1px solid #4A90E252; }
 .suggested-sticky { position: static; }
 .suggested-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
}

@media (max-width: 520px) {
 .article-hero { padding-bottom: 40px; }
 .hero-visual { margin-top: 30px; border-radius: 14px; }
 .hero-visual figcaption { padding: 10px 13px; }
 .reference-visual { margin-inline: 0; border: 1px solid #4A90E23D; border-radius: 12px; }
 .suggested-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
 .article-hero-copy { text-align: left; }
 .article-hero h1 { margin-inline: 0; font-size: var(--page-hero-title-size); }
 .article-hero .site-breadcrumb ol, .article-hero .article-meta { justify-content: flex-start; }
 .article-meta { margin-top: var(--page-hero-copy-gap); }
}
