/* skin-editorial-cards: body-only skin. Host owns H1. Sections are display wrappers, not new text.
   Important declarations are limited to properties overridden by blog v2 CSS. */
.skin-editorial-cards {
 --ed-accent:var(--color-primary,#385bd7);
 --ed-ink:var(--color-heading,#302f29);
 --ed-link:var(--color-link,#315f8f);
 --ed-line:#dce1e6;
 --ed-soft:var(--color-primary-light,#edf1f7);
 width:100%;box-sizing:border-box;background:transparent;color:var(--ed-ink);
 font-family:inherit;word-break:keep-all;overflow-wrap:anywhere;counter-reset:chapter;
}
.skin-editorial-cards *, .skin-editorial-cards *::before { box-sizing:border-box; }
.skin-editorial-cards > .opti-editorial-v1.oe-article {width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;}
.skin-editorial-cards > .opti-editorial-v1 > h1 {display:none;}
.skin-editorial-cards .oe-prose {margin:0;padding:0;background:transparent;border:0;}
.post-content.prose .skin-editorial-cards p {font-size:18px !important;line-height:1.9 !important;margin:0 0 20px;}
.post-content.prose .skin-editorial-cards h2 {font-size:27px !important;line-height:1.45 !important;color:var(--ed-ink) !important;font-weight:750 !important;letter-spacing:-.035em;background:transparent;border:0;padding:0;margin:0 0 22px;}
.skin-editorial-cards .ed-section {position:relative;counter-increment:chapter;min-width:0;}
.skin-editorial-cards .ed-section > h2::before {content:counter(chapter,decimal-leading-zero);position:absolute;color:var(--ed-accent);letter-spacing:-.04em;}
.post-content.prose .skin-editorial-cards strong {color:var(--color-strong,var(--ed-ink)) !important;background:none !important;}
.post-content.prose .skin-editorial-cards strong[data-reader-highlight="true"] {background:linear-gradient(180deg,transparent 68%,var(--color-primary-light,#fff0ad) 68%) !important;box-decoration-break:clone;-webkit-box-decoration-break:clone;}
.post-content.prose .skin-editorial-cards :is(.ed-intro,.ed-pullout) p :is(strong,a,em) {font-size:inherit !important;}
.skin-editorial-cards a[data-cite] {display:inline !important;color:var(--ed-link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;}
.skin-editorial-cards a:focus-visible {outline:3px solid var(--ed-link);outline-offset:3px;}
.skin-editorial-cards :is(.ed-table,.oe-table-scroll) {overflow-x:auto;max-width:100%;margin:24px 0;}
.post-content.prose .skin-editorial-cards table {width:100%;min-width:440px !important;border-collapse:collapse !important;line-height:1.75;}
.post-content.prose .skin-editorial-cards :is(th,td) {text-align:left;vertical-align:top;padding:16px 14px !important;border:0 !important;}
.post-content.prose .skin-editorial-cards td {font-size:16px !important;line-height:1.75 !important;background:transparent !important;border-bottom:1px solid var(--ed-line) !important;}
.post-content.prose .skin-editorial-cards td:first-child {color:var(--ed-accent) !important;font-weight:750 !important;}
.post-content.prose .skin-editorial-cards th {font-size:15px !important;line-height:1.7 !important;color:var(--ed-accent) !important;font-weight:750 !important;}
.skin-editorial-cards .ed-section > :last-child {margin-bottom:0;}
@media(max-width:600px) {
 .post-content.prose .skin-editorial-cards p {font-size:17px !important;line-height:1.9 !important;}
 .post-content.prose .skin-editorial-cards h2 {font-size:24px !important;}
 .post-content.prose .skin-editorial-cards :is(th,td) {padding:13px 11px !important;}
}

/* Cards restore individual chapters; no extra frame around the whole article. */
.skin-editorial-cards .ed-intro {background:var(--ed-accent);border-radius:20px;padding:30px 32px;margin:0 0 24px;}
.post-content.prose .skin-editorial-cards .ed-intro p {font-size:20px !important;line-height:1.9 !important;color:#fff !important;}
.post-content.prose .skin-editorial-cards .ed-intro :is(strong,a,em) {color:inherit !important;}
.post-content.prose .skin-editorial-cards .ed-intro strong[data-reader-highlight="true"] {background:linear-gradient(180deg,transparent 68%,#ffffff38 68%) !important;}
.skin-editorial-cards .ed-intro > :last-child {margin-bottom:0;}
.skin-editorial-cards .ed-section {padding:30px 28px;background:#fff;border:1px solid var(--ed-line);border-radius:20px;margin:0 0 20px;box-shadow:0 4px 16px #20304a06;}
.post-content.prose .skin-editorial-cards .ed-section > h2 {padding-left:58px;min-height:40px;}
.skin-editorial-cards .ed-section > h2::before {left:28px;top:30px;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--ed-soft);font-size:16px;font-weight:750;line-height:1;}
.post-content.prose .skin-editorial-cards table {border-radius:12px;overflow:hidden;}
.post-content.prose .skin-editorial-cards th {background:var(--ed-soft) !important;border-bottom:1px solid var(--ed-line) !important;}
.skin-editorial-cards .ed-pullout {margin:24px 0;padding:22px 24px;background:var(--ed-soft);border:0;border-radius:12px;}
.post-content.prose .skin-editorial-cards .ed-pullout p {color:var(--ed-ink) !important;}
@media(max-width:600px) {
 .skin-editorial-cards .ed-intro {padding:23px 20px;border-radius:16px;}
 .post-content.prose .skin-editorial-cards .ed-intro p {font-size:19px !important;}
 .skin-editorial-cards .ed-section {padding:24px 18px;border-radius:16px;}
 .post-content.prose .skin-editorial-cards .ed-section > h2 {padding-left:48px;}
 .skin-editorial-cards .ed-section > h2::before {left:18px;top:24px;width:34px;height:34px;font-size:14px;border-radius:10px;}
 .skin-editorial-cards .ed-pullout {padding:18px;}
}
/* Semantic reader aids: only Astra articles, never host navigation or legacy copy.
   Host typography has !important; overrides below are limited to reader aids. */
.post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-metrics,.oe-toc) {
 box-sizing:border-box;min-width:0;max-width:100%;margin:28px 0;padding:22px 24px;
 color:var(--color-heading,#263344);background:var(--color-primary-light,#f3f6fa);
 border:1px solid #dce3eb;border-radius:16px;font-style:normal;box-shadow:none;
}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-summary {border-top:3px solid var(--color-primary,#385bd7);}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-infobox {border-left:3px solid var(--color-primary,#385bd7);}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-metrics,.oe-toc)::before,
.post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-metrics,.oe-toc)::after {content:none;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-metrics,.oe-toc) p {
 font-size:17px !important;line-height:1.85 !important;color:var(--color-heading,#263344) !important;margin:0 0 12px;
}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-metrics,.oe-toc) > :last-child {margin-bottom:0;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-metrics,.oe-toc) p :is(strong,em,a) {font-size:inherit !important;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-metrics,.oe-toc) li {
 font-size:16px !important;line-height:1.8 !important;color:var(--color-heading,#263344) !important;
}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-metrics {padding:0;border:0;background:transparent;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-metrics :is(ul,ol) {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));
 gap:12px;list-style:none;margin:14px 0 0;padding:0;
}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-metrics li {
 display:block;min-width:0;margin:0;padding:18px 16px;list-style:none;
 border:1px solid #dce3eb;border-top:2px solid var(--color-primary,#385bd7);
 border-radius:12px;background:var(--color-primary-light,#f3f6fa);
}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-metrics li::before {content:none;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-metrics li strong:first-of-type {
 display:block;font-size:25px !important;line-height:1.4 !important;margin-bottom:8px;
 color:var(--color-primary,#385bd7) !important;background:none !important;
}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc {}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc :is(ul,ol) {display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc li {list-style:none;margin:0;padding:0;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc li::before {content:none;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc a {
 display:inline !important;font-size:16px !important;line-height:1.8 !important;
 color:var(--color-link,var(--color-primary,#385bd7)) !important;
 text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;
 background:none !important;border:0;padding:0;overflow-wrap:anywhere;
}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc a:focus-visible {outline:2px solid var(--color-primary,#385bd7);outline-offset:4px;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 [id] {scroll-margin-top:90px;}
@media(max-width:600px) {
 .post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-toc) {padding:18px 16px;margin:24px 0;}
 
 .post-content.prose .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox,.oe-metrics,.oe-toc) p {font-size:16px !important;}
 .post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-metrics li {padding:16px 12px;}
 .post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-metrics li strong:first-of-type {font-size:23px !important;}
}
/* Quiet table of contents: numbered navigation, not a second body section. */
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc {padding:20px !important;border:1px solid #e2e8f0;border-radius:12px;background:var(--color-primary-light,#f8fafc);}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc > strong {display:block;font-size:15px !important;letter-spacing:-.02em;color:var(--color-heading,#334155) !important;background:none !important;margin-bottom:10px;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc ol {counter-reset:toc-item;gap:0;margin:0;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc li {counter-increment:toc-item;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:baseline;border-bottom:1px solid #e2e8f0;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc li:last-child {border-bottom:0;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc li::before {content:counter(toc-item,decimal-leading-zero) !important;position:static;display:block;font-size:12px;color:var(--color-primary,#64748b);font-weight:600;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc a {display:block !important;min-height:44px;padding:11px 4px !important;font-size:15px !important;line-height:1.55 !important;color:var(--color-heading,#334155) !important;font-weight:400 !important;text-decoration:none !important;border-radius:5px;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc a:hover {text-decoration:underline !important;text-underline-offset:4px;}
.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc a:focus-visible {outline:2px solid var(--color-primary,#385bd7);outline-offset:2px;}
@media(max-width:600px){.post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc{padding:16px !important;} .post-content.prose .skin-editorial-cards .opti-editorial-v1 .oe-toc a{font-size:14px !important;}}

/* Original editorial-design-ab: neutral canvas, theme accents, fixed readable ink. */
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards{--ed-accent:var(--color-primary,#385bd7);--ed-ink:#20304a;--ed-line:#dce3ef;--ed-soft:#e8efff;background:#eef2f8;padding:32px 28px;color:var(--ed-ink)}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards :is(p,h2,h3,h4,li){color:var(--ed-ink)!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards strong{color:inherit!important;font-weight:750!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards a{color:var(--color-link,var(--ed-accent))!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .ed-intro{background:#fff;border:0;border-radius:0 0 26px 26px;padding:28px 32px;margin:0 0 24px}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .ed-intro :is(p,strong,em){color:var(--ed-ink)!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards :is(.oe-summary,.oe-infobox,.oe-toc,.ed-pullout){background:#fff!important;border-color:var(--ed-line)!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards th{background:var(--ed-soft)!important;color:var(--ed-accent)!important;border-top:0!important;border-bottom:1px solid var(--ed-line)!important;text-shadow:none!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards td{background:transparent!important;border-bottom:1px solid var(--ed-line)!important;color:var(--ed-ink)!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards td:first-child{color:var(--ed-accent)!important;font-weight:750!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .ed-section > h2::before{color:var(--ed-accent)!important;}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .opti-editorial-v1 .oe-toc li::before{color:var(--ed-accent)!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .opti-editorial-v1.oe-article strong[data-reader-highlight="true"]{color:var(--ed-ink)!important;background:linear-gradient(180deg,transparent 65%,#fff2bf 65%)!important;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .opti-editorial-v1 > .oe-prose{display:flex;flex-direction:column}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .opti-editorial-v1 > .oe-prose > .oe-summary{order:-2;background:var(--ed-accent)!important;color:#fff!important;border:0!important;border-radius:26px 26px 0 0!important;padding:28px 32px!important;margin:0!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .opti-editorial-v1 > .oe-prose > .ed-intro{order:-1}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .opti-editorial-v1 > .oe-prose > .oe-summary :is(p,strong,em,a){color:#fff!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .opti-editorial-v1 > .oe-prose > .oe-summary strong[data-reader-highlight="true"]{background:none!important}
.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .ed-section{background:#fff;border:1px solid var(--ed-line);border-radius:22px;margin:0 0 20px;box-shadow:none}
@media(max-width:600px){.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards{padding:20px 12px}.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .ed-intro{padding:22px 20px}.post-content .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards .opti-editorial-v1 > .oe-prose > .oe-summary{padding:22px 20px!important}}
/* Match links to surrounding reader text, including nested emphasis. */
.post-content.prose .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards :is(p,li,td,th) a,
.post-content.prose .skin-editorial-cards.skin-editorial-cards.skin-editorial-cards :is(p,li,td,th) a :is(span,strong,em) {font-size:inherit !important;line-height:inherit !important;}

/* v1 host compatibility: scope to legacy blog_body and Astra only. */
.blog_body .skin-editorial-cards .opti-editorial-v1 :is(.oe-summary,.oe-infobox) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.blog_body .skin-editorial-cards .opti-editorial-v1 .oe-toc li::before {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  position: static;
}
.blog_body .skin-editorial-cards .opti-editorial-v1 table:has(> thead) > tbody > tr:first-child > td {
  background-color: transparent;
  color: inherit;
}

/* FAQ questions retain heading weight despite host reset styles. */
.skin-editorial-cards .opti-editorial-v1 .oe-faq h3 { font-weight: 700; }
