/* Editorial pages reuse the shared header, typography and product actions. */
.article-disclosure { font-size: 13px; color: #7b6d83; padding: 16px 0; }
.comparison-featured { background: #f2eaf6; }
.comparison-featured th { color: #530a60; }
.comparison-featured small { display: block; font-size: 12px; line-height: 1.5; margin-top: 7px; font-weight: 400; }
[data-editorial-section="choice"] .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-walkthrough { margin: 36px 0; padding: 26px; border: 1px solid #dcd4e3; background: #f0eaf4; border-radius: 20px; }
.article-walkthrough-heading { margin-bottom: 24px; }
.article-walkthrough-heading > span { display: block; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #7c5a88; margin-bottom: 9px; }
.article-walkthrough-heading > strong { font-size: 25px; line-height: 1.25; color: #302038; display: block; }
.article-walkthrough-layout { min-width: 0; }
.article-walkthrough.is-portrait .article-walkthrough-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 25px; align-items: center; }
.article-walkthrough .lesson-screen { margin: 0; padding: 0; min-width: 0; background: none; border: 0; }
.article-walkthrough .annotated-screen { width: 100%; max-width: none; margin: 0; border-radius: 8px; background: #fff; }
.article-walkthrough .annotated-screen > img { display: block; border-radius: 8px; width: 100%; height: auto; }
.article-screen-mark { position: absolute; border: 2px solid #8d3cb6; border-radius: 4px; pointer-events: none; box-shadow: 0 0 0 2px #fff9; }
.article-walkthrough .screen-pin { width: 28px; height: 28px; font-size: 12px; min-height: 0; }
.article-walkthrough .screen-callout { z-index: 12; font-size: 14px; line-height: 1.6; }
.editorial-body .article-enlarge { width: 100%; margin-top: 12px; padding: 12px; color: #5b1d70; background: #fff; border: 1px solid #d8c7e2; border-radius: 9px; font-size: 13px; font-weight: 600; }
.article-walkthrough figcaption { font-size: 14px; line-height: 1.7; color: #6d5d76; }
.article-walkthrough figcaption p { margin: 0 0 16px; }
.article-walkthrough.is-wide figcaption { margin-top: 18px; }
.article-pin-hint { font-size: 12px; }
.media-canvas .article-screen-mark { border-width: 3px; }
.article-calculator { margin: 30px 0; padding: 28px; background: #eee6f3; border-radius: 18px; }
.calculator-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.calculator-fields label { font-size: 13px; font-weight: 600; line-height: 1.5; }
.calculator-fields input { display: block; width: 100%; margin-top: 8px; min-height: 48px; padding: 12px; border: 1px solid #cdbbd7; border-radius: 9px; background: #fff; color: #302038; font: inherit; font-size: 17px; }
.calculator-fields input[aria-invalid="true"] { border-color: #b83b55; }
.calculator-reset { font-size: 13px; color: #68347d; padding: 16px 0; display: block; background: none; }
.calculator-error { color: #8c2440; font-size: 14px; margin-top: 15px; }
.calculator-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid #d5c3de; }
.calculator-result dl { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; font-size: 14px; }
.calculator-result dt, .calculator-result dd { margin: 0; padding: 6px 0; }
.calculator-result dd { font-weight: 600; text-align: right; }
.calculator-result > p { font-size: 13px; }
.calculator-result .calculator-total { font-size: 30px; font-weight: 700; color: #530a60; margin: 15px 0; line-height: 1.3; }
@media(max-width:600px) {
 [data-editorial-section="choice"] .editorial-grid { grid-template-columns: 1fr; }
 .article-walkthrough, .article-calculator { padding: 18px; }
 .article-walkthrough.is-portrait .article-walkthrough-layout { display: block; }
 .article-walkthrough.is-portrait .lesson-screen { max-width: 320px; margin: 0 auto; }
 .article-walkthrough figcaption { margin-top: 20px; }
 .article-walkthrough-heading > strong { font-size: 22px; }
 .calculator-fields { gap: 14px 10px; }
 .calculator-result .calculator-total { font-size: 25px; }
}
@media(prefers-reduced-motion:reduce) { .article-walkthrough * { animation: none !important; transition: none !important; } }
.editorial-page { padding-top: 42px; padding-bottom: 78px; }
.editorial-category { font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #775185; }
.editorial-hub-hero { max-width: 850px; padding: 28px 0 58px; }
.editorial-hub-hero h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.08; letter-spacing: -2.7px; margin: 22px 0 27px; }
.editorial-hub-hero h1 span { color: #96829f; }
.editorial-hub-hero > p:not(.editorial-category) { max-width: 640px; font-size: 18px; line-height: 1.8; color: #6c5e75; }
.editorial-hub-hero .text-link { display: inline-flex; margin-top: 25px; font-size: 13px; gap: 14px; }
.editorial-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.editorial-section-heading h2, .editorial-related > h2 { font-size: 32px; line-height: 1.2; letter-spacing: -1px; }
.editorial-section-heading > span { font-size: 12px; color: #786b7f; }
.editorial-section-heading .editorial-category { margin-bottom: 12px; }
.editorial-section-heading .text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 13px; white-space: nowrap; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.editorial-card { display: flex; flex-direction: column; border: 1px solid #e1d7e7; border-radius: 20px; overflow: hidden; background: #fff; transition: border-color .15s ease; }
.editorial-card:hover { border-color: #9f7caf; }
.editorial-cover { padding: 12px 12px 0; }
.editorial-cover img { width: 100%; height: auto; border-radius: 12px; }
.editorial-card-body { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.editorial-card h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.5px; margin: 12px 0 16px; }
.editorial-card p { font-size: 14px; line-height: 1.75; color: #74677c; margin: 0 0 26px; }
.editorial-read { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #530a60; font-size: 13px; font-weight: 700; margin-top: auto; }
.editorial-read svg { width: 20px; height: 20px; }
.editorial-hub-note { margin-top: 55px; padding: 36px; background: #eee6f2; border-radius: 22px; }
.editorial-hub-note h2 { font-size: 29px; line-height: 1.2; letter-spacing: -.6px; }
.editorial-hub-note p { max-width: 700px; margin: 20px 0; font-size: 16px; color: #706076; }
.editorial-hub-note a { display: inline-flex; gap: 15px; font-size: 13px; }
.editorial-heading { max-width: 960px; padding-bottom: 38px; }
.editorial-back { display: inline-block; padding: 8px 0; margin-bottom: 26px; font-size: 13px; color: #70517d; }
.editorial-heading h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.13; letter-spacing: -1.8px; margin: 17px 0 23px; }
.editorial-lead { max-width: 815px; font-size: 19px; line-height: 1.75; color: #786680; }
.editorial-byline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; color: #81728a; font-size: 12px; }
.editorial-layout { display: grid; grid-template-columns: 235px minmax(0, 780px); gap: 60px; align-items: start; border-top: 1px solid var(--line); padding-top: 40px; }
.editorial-sidebar { position: sticky; top: 114px; max-height: calc(100dvh - 140px); overflow-y: auto; padding: 0 12px 10px 0; }
.editorial-sidebar nav { display: block; font-size: 13px; font-weight: 400; }
.editorial-sidebar h2 { font-size: 14px; margin: 0 0 18px; }
.editorial-sidebar ol, .editorial-mobile-toc ol { list-style: none; padding: 0; margin: 0; }
.editorial-sidebar li { border-bottom: 1px solid var(--line); }
.editorial-sidebar li a { display: block; padding: 10px 0; line-height: 1.6; color: #75657e; }
.editorial-sidebar li a:hover { color: #530a60; }
.editorial-sidebar-link { display: block; padding-top: 25px; color: #80708a; font-size: 12px; }
.editorial-sidebar-link strong { display: block; color: #530a60; margin-top: 7px; }
.editorial-mobile-toc { display: none; }
.editorial-body { min-width: 0; font-size: 17px; line-height: 1.85; color: #44394b; overflow-wrap: break-word; }
.editorial-body > h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.6px; color: #241e28; margin: 50px 0 22px; scroll-margin-top: 115px; }
.editorial-body > p { margin: 0 0 20px; }
.editorial-body a:not(.button) { color: #652577; text-decoration: underline; text-decoration-color: #c8add6; text-underline-offset: 4px; }
.editorial-body a:not(.button):hover { text-decoration-color: currentColor; }
.editorial-body ul, .editorial-body ol { padding-left: 25px; margin: 22px 0; }
.editorial-body li { padding-left: 4px; margin-bottom: 14px; }
.editorial-body li p { margin: 5px 0 0; }
.article-takeaway { background: #ece4f1; border-left: 3px solid #89579c; padding: 25px 28px; border-radius: 0 17px 17px 0; }
.article-takeaway > strong { display: block; font-size: 20px; color: #4b2059; margin-bottom: 7px; line-height: 1.4; }
.article-takeaway p { font-size: 16px; line-height: 1.8; margin: 0; }
.article-note { margin: 26px 0; padding: 24px 27px; border: 1px solid #e0d4e6; border-radius: 16px; font-size: 15px; }
.article-note p { margin-top: 8px; }
.article-figure { margin: 30px 0; }
.article-figure img { width: 100%; height: auto; border-radius: 15px; }
.article-diagram-button { display: block; padding: 0; width: 100%; background: none; text-align: right; }
.article-diagram-button span { display: block; font-size: 12px; color: #652577; padding: 9px 2px 0; }
.article-table-hint { display: none; }
.article-figure figcaption { font-size: 13px; line-height: 1.65; margin-top: 12px; color: #7b6d83; }
.article-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid #e2d9e7; border-radius: 14px; margin: 28px 0; background: #fff; }
.article-table-wrap:focus-visible { outline: 2px solid #89579c; outline-offset: 4px; }
.article-table-wrap table { border-collapse: collapse; width: 100%; min-width: 580px; text-align: left; font-size: 14px; line-height: 1.6; }
.article-table-wrap caption { text-align: left; font-size: 14px; font-weight: 700; padding: 18px; }
.article-table-wrap th, .article-table-wrap td { padding: 14px 18px; vertical-align: top; border-bottom: 1px solid #ece5f0; }
.article-table-wrap thead, .article-table-wrap tfoot { background: #eee7f3; color: #4f205f; }
.article-table-wrap tbody th { font-weight: 600; }
.article-table-wrap .estimate-example { min-width: 550px; }
.estimate-example td { white-space: nowrap; }
.estimate-example td:not(:first-child), .estimate-example thead th:not(:first-child) { text-align: right; }
.estimate-example tfoot td { font-size: 18px; font-weight: 700; }
.editorial-body .article-checklist { list-style: none; padding: 0; }
.article-checklist li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid #e8e1ed; margin: 0; }
.article-checklist li::before { content: '✓'; position: absolute; left: 0; color: #81528e; font-weight: 700; }
.article-formula { padding: 30px; background: #eee6f2; border-radius: 18px; margin: 27px 0; text-align: center; }
.article-formula span { display: block; font-size: 14px; }
.article-formula strong { display: block; font-size: clamp(22px, 2.6vw, 33px); line-height: 1.3; color: #530a60; margin: 15px 0; }
.article-formula p { font-size: 14px; max-width: 450px; margin: 0 auto; }
.article-app-figure { display: grid; grid-template-columns: 185px 1fr; gap: 35px; align-items: center; padding: 28px; margin: 30px 0; border-radius: 20px; background: #eee6f2; }
.article-screen-button { position: relative; padding: 5px; background: #c2adcd; border-radius: 17px; }
.article-screen-button img { width: 100%; height: auto; border-radius: 12px; }
.article-screen-button span { position: absolute; bottom: 16px; left: 9px; right: 9px; padding: 8px 6px; color: #530a60; background: #fffffff2; border-radius: 18px; font-size: 11px; }
.article-app-figure figcaption { font-size: 14px; line-height: 1.8; }
.article-app-figure figcaption > strong { font-size: 23px; line-height: 1.25; display: block; }
.article-app-figure figcaption p { margin: 18px 0; }
.editorial-cta { margin-top: 50px; padding: 34px; border-radius: 21px; background: #370842; color: #fff; }
.editorial-cta h2 { font-size: 30px; line-height: 1.2; margin-bottom: 17px; letter-spacing: -.6px; }
.editorial-cta p { color: #d9c5e1; font-size: 16px; margin: 0 0 23px; }
.editorial-cta .button { background: #ecdff3; color: #440d54; white-space: normal; }
.editorial-body .editorial-cta-secondary { display: block; width: fit-content; margin-top: 18px; font-size: 13px; color: #dbc5e5; }
.editorial-related { border-top: 1px solid var(--line); margin-top: 65px; padding-top: 40px; }
.editorial-related > h2 { margin-bottom: 26px; }
.editorial-related .editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-related .editorial-card { flex-direction: column; align-items: stretch; }
.editorial-related .editorial-cover { width: 100%; align-self: center; flex-shrink: 0; padding: 12px 12px 0; }
.editorial-related .editorial-card h3 { font-size: 21px; }
.editorial-related .editorial-card p { display: none; }
.editorial-related .editorial-card h3 { margin-bottom: 24px; }
.home-editorial .editorial-section-heading h2 { font-size: clamp(30px, 3.7vw, 46px); }
.editorial-topic-section { margin-top: 42px; scroll-margin-top: 115px; }
.editorial-topic-section > h2 { font-size: 25px; letter-spacing: -.5px; margin: 0 0 22px; }
.editorial-topic-nav { display: flex; flex-wrap: wrap; gap: 8px 25px; padding-bottom: 10px; }
.editorial-search { display: flex; align-items: center; gap: 15px; padding: 16px 20px; background: white; border: 1px solid #dcd0e4; border-radius: 13px; }
.editorial-search svg { width: 20px; color: #8e6d9e; }
.editorial-search input { min-width: 0; width: 100%; border: 0; background: none; font: inherit; color: #493551; }
.editorial-search:focus-within { outline: 2px solid #9567aa; outline-offset: 2px; }
.editorial-search input:focus-visible { outline: none; }
.editorial-topic-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.editorial-topic-filters button { min-height: 43px; padding: 10px 16px; border: 1px solid #ded1e6; border-radius: 24px; background: transparent; color: #70537d; font-size: 12px; font-weight: 600; }
.editorial-topic-filters button[aria-pressed="true"] { background: #530a60; border-color: #530a60; color: white; }
.editorial-search-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #7c6b83; font-size: 12px; margin: 18px 0 0; }
.editorial-search-status button { background: none; color: #652577; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.editorial-search-empty { padding: 32px; background: #eee6f2; border-radius: 16px; margin-top: 25px; }
@media (max-width: 1050px) {
  .editorial-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .editorial-card-body { padding: 20px; }
  .editorial-card h3 { font-size: 21px; }
  .editorial-related .editorial-card { flex-direction: column; }
  .editorial-related .editorial-cover { width: 100%; padding: 12px 12px 0; }
}
@media (max-width: 760px) {
  .editorial-topic-section { margin-top: 31px; scroll-margin-top: 95px; }
  .editorial-topic-section > h2 { font-size: 24px; }
  .editorial-search { padding: 13px 15px; }
  .editorial-search input { font-size: 14px; }
  .editorial-topic-filters { gap: 7px; }
  .editorial-topic-filters button { padding: 10px 12px; font-size: 11px; }
  .editorial-body .article-table-hint { display: block; font-size: 12px; line-height: 1.6; color: #775185; margin: 22px 0 -16px; }
  .editorial-page { padding-top: 23px; padding-bottom: 40px; }
  .editorial-hub-hero { padding: 15px 0 35px; }
  .editorial-hub-hero h1 { letter-spacing: -1.5px; margin: 19px 0 23px; }
  .editorial-hub-hero > p:not(.editorial-category) { font-size: 16px; }
  .editorial-hub-hero .text-link { font-size: 12px; align-items: center; }
  .editorial-section-heading { display: block; margin-bottom: 21px; }
  .editorial-section-heading h2, .editorial-related > h2 { font-size: 27px; }
  .editorial-section-heading > span, .editorial-section-heading > a { display: inline-block; margin-top: 12px; }
  .editorial-grid, .editorial-related .editorial-grid { grid-template-columns: 1fr; gap: 18px; }
  .editorial-card h3 { font-size: 25px; }
  .editorial-card-body { padding: 23px; }
  .editorial-hub-note { padding: 25px; margin-top: 30px; }
  .editorial-hub-note h2 { font-size: 25px; }
  .editorial-hub-note p { font-size: 15px; }
  .editorial-layout { display: block; padding-top: 23px; }
  .editorial-sidebar { display: none; }
  .editorial-mobile-toc { display: block; padding: 0 18px; margin-bottom: 22px; border: 1px solid #e0d4e6; border-radius: 12px; background: #f0eaf4; }
  .editorial-mobile-toc summary { padding: 15px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
  .editorial-mobile-toc nav { display: block; }
  .editorial-mobile-toc ol { padding: 0 0 10px; margin: 0; }
  .editorial-mobile-toc li { margin: 0; padding: 0; }
  .editorial-mobile-toc li a { display: block; padding: 9px 0; font-weight: 400; }
  .editorial-heading { padding-bottom: 24px; }
  .editorial-back { margin-bottom: 16px; font-size: 12px; }
  .editorial-heading h1 { letter-spacing: -1.1px; margin: 16px 0 20px; }
  .editorial-lead { font-size: 16px; line-height: 1.8; }
  .editorial-byline { font-size: 11px; }
  .editorial-body { font-size: 16px; line-height: 1.85; }
  .editorial-body > h2 { font-size: 26px; margin: 37px 0 18px; scroll-margin-top: 95px; }
  .article-takeaway { padding: 22px; }
  .article-takeaway > strong { font-size: 19px; }
  .article-takeaway p { font-size: 15px; }
  .article-note { padding: 20px; }
  .article-formula { padding: 24px 16px; }
  .article-app-figure { grid-template-columns: 1fr; padding: 25px; gap: 25px; }
  .article-screen-button { width: 185px; justify-self: center; }
  .article-app-figure figcaption > strong { font-size: 24px; }
  .editorial-cta { padding: 25px; margin-top: 32px; }
  .editorial-cta h2 { font-size: 26px; }
  .editorial-cta p { font-size: 15px; }
  .editorial-cta .button { width: 100%; padding-inline: 17px; font-size: 13px; }
  .editorial-related { margin-top: 40px; padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .editorial-card { transition: none; } }
@media print {
  .site-header, .knowledge-footer, .quick-links, .editorial-sidebar, .editorial-mobile-toc, .editorial-related, .editorial-cta, .editorial-back { display: none !important; }
  .container { width: 100%; }
  .editorial-page { padding: 0; }
  .editorial-layout { display: block; border: 0; }
  .editorial-body, .editorial-lead { color: #222; font-size: 11pt; }
  .editorial-heading h1 { font-size: 28pt; }
  .editorial-body > h2 { font-size: 18pt; break-after: avoid; }
  .article-table-wrap { overflow: visible; }
  .article-table-wrap table, .article-table-wrap .estimate-example { min-width: 0; }
}
