/* One shared presentation system. Load after legacy page/layout CSS. */
/* 1차 문서 화면만 선택 적용. 다른 53개 화면의 치수·색 토큰은 유지한다. */
.renewal-page { margin: 0; background: var(--page-paper); color: var(--page-muted); font-family: var(--font-sans); font-size: var(--page-body); line-height: 1.75; overflow-wrap: anywhere; }
.renewal-page * { box-sizing: border-box; }
.renewal-page :is(h1,h2,h3,h4,p) { margin: 0; }
.renewal-page a { color: var(--page-accent); text-underline-offset: 5px; }
.renewal-page :is(a,button,input,summary,[tabindex]):focus-visible { outline: 2px solid var(--page-accent); outline-offset: 4px; }
.renewal-page .animated-bg, .renewal-page .lm-fx-layer { display: none !important; }
.renewal-page .site-nav { background: var(--page-paper) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.renewal-page .container { max-width: calc(var(--page-max) + 2 * var(--page-gutter)); margin: 0 auto; padding: 100px var(--page-gutter) var(--page-section); }
.renewal-page .header { margin: 0 0 var(--page-section); padding: 0; text-align: left; }
.renewal-page .header-badge { display: block; margin-bottom: 20px; color: var(--page-accent); font-size: var(--page-body); font-weight: 700; }
.renewal-page .header h1 { font-size: var(--page-title); line-height: 1.2; letter-spacing: -.045em; font-weight: 800; color: var(--page-ink); margin-bottom: 24px; }
.renewal-page .header p { max-width: 800px; }
.renewal-page :is(h2,.section-title) { font-size: var(--page-heading); line-height: 1.35; letter-spacing: -.035em; font-weight: 800; color: var(--page-ink); margin-bottom: 28px; }
.renewal-page :is(h3,h4) { font-size: var(--page-subheading); line-height: 1.5; font-weight: 700; color: var(--page-ink); margin-bottom: 12px; }
.renewal-page .section { margin-bottom: var(--page-section); }
.renewal-page :is(.cta-button,.buy-btn,.free-section > a,:where(#otpSendBtn,#otpVerifyBtn)) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 24px; border: 0; border-radius: var(--radius-xl); background: var(--page-accent) !important; color: var(--page-paper) !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.renewal-page button:disabled { opacity: .5; cursor: not-allowed; }
.renewal-page .back-button { display: inline-flex; gap: 8px; padding: 12px var(--page-gutter); min-height: 44px; margin-top: 16px; text-decoration: none; }
.renewal-page > a[href$="-en"] { position: absolute !important; color: var(--page-accent) !important; background: none !important; min-height: 44px; }
.renewal-page .view-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; }
@media (max-width: 640px) {
  .renewal-page .container { padding-top: 56px; }
  .renewal-page :is(h3,h4) { font-size: var(--page-subheading); }
}


.renewal-page :is(.mobile-tab-bar,.site-nav-dropdown,.more-sheet) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.renewal-page .site-footer { background: var(--page-paper); color: var(--page-muted); border-top: 1px solid var(--page-rule); }
.renewal-page .site-footer :is(.footer-disclaimer,.footer-biz,.footer-copy,.footer-engine,.footer-links a) { background: none; color: var(--page-muted); font-size: var(--page-body); opacity: 1; }
.renewal-page .site-footer .footer-biz > span:first-child { color: var(--page-ink) !important; }
.renewal-page .site-footer a { color: var(--page-accent) !important; }
.renewal-page .site-footer .footer-disclaimer { border: 0; padding: 0; }
.renewal-pricing .popular .pack-name::after { content: 'BEST'; margin-left: 16px; font-size: var(--page-body); }

/* Surface, typography and spacing. Native app controllers keep their state styles. */
body.ds-page { background: var(--page-paper); color: var(--page-muted); font-family: var(--font-sans); font-size: var(--page-body); line-height: var(--page-prose-leading); opacity: 1 !important; word-break: normal; overflow-wrap: anywhere; }
.ds-page *, .ds-page *::before, .ds-page *::after { box-sizing: border-box; }
.ds-page :is(.animated-bg,.lm-fx-layer,.grid-pattern,.grain) { display: none !important; }
.ds-page :is(.container,.wrap) { width: 100%; max-width: none; margin: 0; padding: 0 0 var(--page-section); }
.ds-page :is(.container,.wrap) > :not(.ds-hero) { width: calc(100% - 2 * var(--page-gutter)); max-width: var(--page-max); margin-left: auto; margin-right: auto; }
.ds-page.renewal-article .container > :not(.ds-hero) { max-width: var(--page-reading); }
.ds-page :is(h1,h2,h3,h4) { color: var(--page-ink); text-align: left; text-wrap: pretty; }
.ds-page :is(h2,.section-title,.section-label) { display: block; font-size: var(--page-heading); line-height: 1.3; font-weight: var(--page-title-weight); letter-spacing: -.04em; margin-bottom: 32px; background: none; }
.ds-page .section-title::before { display: none; }
.ds-page :is(h3,h4) { font-size: var(--page-subheading); font-weight: 700; line-height: 1.5; margin: 0 0 12px; }
.ds-page :is(p,li,td,th,label,.sub,.disclaimer,.notice,.step-desc,.detail-content,.hero-description) { font-size: var(--page-body); line-height: var(--page-prose-leading); }
.ds-page :is(.section,.profile-section,.cta-section,.free-section,.info-card) { margin-bottom: var(--page-section); }
.ds-page p { max-width: 65ch; }
.ds-page :is(.keyword-card,.trust-card,.step-card,.info-card,.law-card,.faq-item,.highlight-card,.compare-card,.custody-card,.element-card,.identity-box,.solve-item,.expertise-item) { min-width: 0; background: var(--page-tint); color: var(--page-muted); border: 1px solid var(--page-rule); border-radius: var(--page-radius); padding: 28px; box-shadow: none; transform: none; backdrop-filter: none; text-align: left; }
.ds-page :is(.keyword-card,.trust-card,.info-card,.law-card,.faq-item,.identity-box,.solve-item,.expertise-item) :is(p,li) { color: var(--page-muted); }
.ds-page :is(.keyword-card,.trust-card,.info-card,.law-card,.faq-item,.identity-box,.solve-item,.expertise-item) :is(h3,h4) { color: var(--page-ink); }
.ds-page :is(.keyword-grid,.trust-grid,.law-grid,.highlight-grid,.compare-grid,.element-grid) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.ds-page :is(.keyword-card,.trust-card) { display: block; }
.ds-page :is(.steps-container,.steps-grid,.solve-grid) { display: grid; gap: 24px; }
.ds-page .step-card { gap: 20px; align-items: start; }
.ds-page .hero-text { text-align: left; font-weight: 400; color: var(--page-muted); font-size: var(--page-lead); line-height: var(--page-prose-leading); }
.ds-page .ds-icon { display: block; width: 40px; height: 40px; flex: 0 0 40px; margin: 0 0 24px; color: var(--page-accent); fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.ds-page .trust-card { padding: 32px; }
.ds-page .trust-card p { margin: 12px 0 0; font-weight: 400; }
.ds-page :is(.faq-item,.law-card,.info-card) { margin-block: 24px; }
.ds-page :is(.keyword-grid,.law-grid) > * { margin: 0; }
.ds-page .step-card > .ds-icon { margin: 0; }

/* One full-width photo scene. Existing photos, one title and one lead. */
body.ds-page .ds-hero { position: relative; isolation: isolate; display: flex; align-items: center; width: 100%; max-width: none; min-height: var(--page-hero-height); margin: 0 0 var(--page-section); padding: 72px var(--page-gutter); border: 0; border-radius: 0; text-align: left; background: var(--brand-950); color: var(--page-photo-ink); animation: none; overflow: hidden; }
body.ds-page .ds-hero > .page-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
body.ds-page .ds-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--page-photo-scrim); }
body.ds-page .ds-hero .photo-copy { width: 100%; max-width: var(--page-max); margin: 0 auto; }
body.ds-page .ds-hero h1 { display: block; max-width: 1000px; font-size: var(--page-title); font-weight: var(--page-title-weight); line-height: var(--page-title-leading); letter-spacing: -.045em; color: var(--page-photo-ink); margin: 0 0 28px; background: none; -webkit-text-fill-color: currentColor; }
body.ds-page .ds-hero :is(p,.lead,.date,.header-badge,.pricing-claim,.meta) { max-width: 65ch; font-size: var(--page-lead); color: var(--page-photo-ink); line-height: 1.75; background: none; border: 0; padding: 0; }
body.ds-page .ds-hero .header-badge { display: block; width: auto; margin: 0 0 24px; font-weight: 600; }
body.ds-page .ds-hero h1 > .material-symbols-outlined { display: none; }
body.ds-page .ds-hero :is(.cta-button,.photo-copy > a) { margin-top: 28px; background: var(--page-photo-ink) !important; color: var(--brand-900) !important; }
body.ds-page .ds-hero :is(a,button):focus-visible { outline-color: var(--page-photo-ink); }
body.ds-page > :is(.back-button,.lang-link,.lang-toggle) { font-size: var(--page-body); min-height: 48px; }
body.ds-page > .back-button { position: relative; inset: auto; margin: 0; padding: 16px var(--page-gutter); background: var(--page-paper); color: var(--page-accent); box-shadow: none; border: 0; border-radius: 0; transform: none; }
body.ds-page.ai-leaders > .header { width: 100%; max-width: none; margin: 0; padding: 0; }
.ds-page.ai-leaders .back-button { margin: 0; padding: 16px var(--page-gutter); }
.ds-page.ai-leaders .header-content { display: block; }
.ds-page.renewal-article > .nav { max-width: var(--page-reading); padding: 0 var(--page-gutter); }
.ds-page.ai-clevel .executive-card { padding-block: 56px; margin-bottom: 40px; }
.ds-page.ai-leader-profile .hero-section { padding-top: 32px; padding-bottom: var(--page-section); }
.ds-page.ai-leader-profile .hero-content { align-items: center; }
.ds-page.ai-leader-profile .hero-profile-img { width: 320px; height: 400px; flex-basis: 320px; border-radius: var(--page-radius); }
.ds-page.ai-leader-profile .hero-name { font-size: var(--page-title); }
.ds-page.ai-leader-profile .hero-statement { font-size: var(--page-lead); line-height: var(--page-prose-leading); }
.ds-page .about-leaders :is(.leader-field,.leader-kind) { font-size: var(--page-body); }
.ds-page.ai-leaders :is(.leader-card,.clevel-card) { padding-block: 36px; }
.ds-page.ai-leaders :is(.leader-profile,.clevel-profile,.leader-role,.clevel-role) { font-size: var(--page-body); line-height: var(--page-prose-leading); }

/* Primary actions and secondary actions have distinct, consistent silhouettes. */
body:is(.ds-page,.ds-home) :is(.ds-action,.rel-link,.source-link,.view-link,.leaders-all,.hub-author-link,.leader-chat-btn,.leader-exam-btn,.cta-secondary,.landing-text-link,.story-ask-link,.en-link-label) { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--page-control); max-width: 100%; padding: 12px 24px; margin-right: 0 !important; border: 1px solid var(--page-accent); border-radius: var(--page-pill); color: var(--page-accent); background: var(--page-paper); font-size: var(--page-body); font-weight: 700; line-height: 1.5; text-decoration: none !important; text-align: center; white-space: normal; box-shadow: none; vertical-align: middle; }
body:is(.ds-page,.ds-home) :is(.ds-action,.rel-link,.source-link,.view-link,.leaders-all,.hub-author-link,.leader-chat-btn,.leader-exam-btn,.cta-secondary,.landing-text-link,.story-ask-link,.en-link-label) * { text-decoration: none; }
body:is(.ds-page,.ds-home) :is(.ds-action,.rel-link,.source-link,.view-link,.leaders-all,.hub-author-link,.leader-chat-btn,.leader-exam-btn,.cta-secondary,.landing-text-link,.story-ask-link,.en-link-label):hover { background: var(--page-tint); text-decoration: none; }
body :is(a,button,summary,input,textarea,select):focus-visible { outline: 3px solid var(--page-accent); outline-offset: 4px; }
body.ds-page :is(.cta-button,.buy-btn,.free-section > a,.ds-hero .photo-copy > a,.cta > a,.btn:not(.ghost),.cta-hero) { min-height: var(--page-control); border-radius: var(--page-pill) !important; padding: 14px 28px; font-size: var(--page-body) !important; font-weight: 700; line-height: 1.5; text-decoration: none; background: var(--page-accent) !important; color: var(--page-paper) !important; box-shadow: none; white-space: normal; }
body.ds-page :is(.cta-secondary,.btn.ghost) { background: var(--page-paper) !important; color: var(--page-accent) !important; border: 1px solid var(--page-accent); }
.ds-page :is(.actions,.cta-section,.ds-actions) { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ds-page .ds-actions { margin-top: 28px; }
.ds-page .ds-actions > a { margin: 0; }
.ds-home :is(.story-ask-link,.landing-text-link) { color: var(--brand-900); background: var(--page-photo-ink); border-color: var(--page-photo-ink); font-size: var(--page-body); }
body.ds-home .document-copy .landing-text-link { display: inline-flex; font-size: var(--page-body); color: var(--brand-900); }
.ds-home :is(.story-ask-link,.landing-text-link):hover { background: var(--neutral-100); }
/* Linked reading rows stay whole; prose citations stay conventional inline links. */
body.ds-page .note-item { padding-block: 32px; text-decoration: none; transition: background-color .15s; }
body.ds-page .note-item:hover { background: var(--page-tint); }
body.ds-page .note-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--page-rule); border-radius: var(--page-pill); padding: 8px 16px; color: var(--page-accent); text-decoration: none; }
body.ds-page .note-item:has(.note-pic) { padding-left: 184px; min-height: 264px; }
body.ds-page .note-item .note-pic { width: 160px; height: 200px; }
body.ds-page .hub-author-link { margin-top: 8px; }
.ds-home :is(.reading-links,.story-links,.en-reading-list,.en-path-grid) > a { text-decoration: none; }
.ds-home .landing-path-nav .vf-path b::after, .ds-home .daily-hub :is(.reading-links,.story-links) > a::after { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--page-rule); border-radius: var(--page-pill); top: 28px; }
.ds-home .landing-path-nav .vf-path { padding-right: 60px; }
.ds-home .daily-hub :is(.reading-links,.story-links) > a { padding-right: 60px; }
.ds-page .filter-tab { border-radius: var(--page-pill); padding: 10px 18px; min-height: 48px; border: 1px solid var(--page-rule); }
.ds-page .filter-tab.active { background: var(--page-accent); color: var(--page-paper); border-color: var(--page-accent); }
.ds-page :is(input,textarea,select) { font-size: var(--page-body); border-radius: var(--radius-lg); }
.ds-page.ai-leader-chat .chat-viewport { padding-top: 24px; }
.ds-page.ai-leader-chat .welcome-msg { border: 1px solid var(--page-rule); border-radius: var(--page-radius); padding: 28px; background: var(--page-tint); }
.ds-page.ai-leader-chat .profile-link { min-width: 44px; min-height: 44px; }

@media (max-width: 720px) {
 .ds-page :is(.keyword-grid,.trust-grid,.law-grid,.highlight-grid,.compare-grid,.element-grid) { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .ds-page :is(.keyword-card,.trust-card,.info-card,.law-card,.faq-item,.highlight-card,.compare-card,.custody-card,.element-card,.identity-box,.solve-item,.expertise-item) { padding: 24px; }
 body.ds-page .ds-hero { min-height: 520px; padding-block: 48px; }
 body.ds-page .ds-hero h1 { font-size: var(--page-title); }
 .ds-page :is(.actions,.cta-section,.ds-actions) { align-items: stretch; flex-direction: column; }
 body:is(.ds-page,.ds-home) :is(.ds-action,.rel-link,.source-link,.view-link,.leaders-all,.hub-author-link,.leader-chat-btn,.leader-exam-btn,.cta-secondary,.landing-text-link,.en-link-label) { width: 100%; }
 .ds-page :is(.actions,.cta-section) > a { width: 100%; }
 .ds-page.ai-leader-profile .hero-profile-img { width: 240px; height: 300px; flex-basis: auto; }
 .ds-page.ai-leader-profile .hero-content { align-items: flex-start; }
 body.ds-page .note-item:has(.note-pic) { padding-left: 112px; min-height: 184px; }
 body.ds-page .note-item .note-pic { width: 96px; height: 120px; }
 .ds-page .hub-author { margin-top: 24px; }
 .ds-page .hub-author-link { padding-inline: 12px; }
 .ds-page .ds-icon { width: 36px; height: 36px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ds-page *, .ds-home .ds-action { scroll-behavior: auto; transition: none; } }
@media print {
 body.ds-page .ds-hero { min-height: 0; padding: 24px; }
 body.ds-page .ds-hero::before, body.ds-page .ds-hero > .page-photo { display: none; }
}
/* A label is still readable inside the home's compact answer demonstration. */
.ds-home .demo-phone :is(.vf-a,.vf-cite,.vf-note,.vf-detail,.vf-checks li),
.ds-home .demo-phone .vf-detail[open] .vf-a { font-size: var(--page-body); }
.ds-page .feature-ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.ds-page .feature-ul li { display: block; padding: 24px; border: 1px solid var(--page-rule); border-radius: var(--page-radius); background: var(--page-tint); }
.ds-page .feature-ul li > .material-symbols-outlined { position: static; display: block; font-size: var(--page-heading); margin-bottom: 16px; color: var(--page-accent); }
.ds-page :is(.solve-icon,.expertise-icon,.detail-icon) { display: block; font-size: var(--page-heading); line-height: 1; color: var(--page-accent); margin-bottom: 20px; }
@media (max-width: 720px) { .ds-page .feature-ul { grid-template-columns: minmax(0,1fr); } }
.ds-page :is(.solve-icon,.expertise-icon,.detail-icon) .ds-icon { margin-bottom: 0; }
body:is(.ds-page,.ds-home) :is(.view-link,.leaders-all,.ds-action,.landing-text-link) > [aria-hidden="true"] { flex-shrink: 0; }
.ds-home .story-hero-copy p, .ds-home .story-intro p { font-size: var(--page-body); }
.ds-home .main-canvas:has(#landing-content:not(.hidden)) .landing-input-note { font-size: var(--page-body); }
.ds-page .step-card + .step-card { margin-top: 20px; }
.ds-page .rel-wrap { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 720px) { .ds-page .rel-wrap { flex-direction: column; } }
.ds-page .step-content > .ds-icon { width: 32px; height: 32px; margin-bottom: 16px; }
.ds-home .document-copy p { font-size: var(--page-body); }
.ds-home .daily-hub p { font-size: var(--page-body) !important; }

/* Selected operations portraits: CSS crop only; source files stay intact.
   The crop keeps the upper body and matches the specialist cards' face scale. */
body.ds-page :is(.leader-photo,.note-pic,.clevel-avatar img,.executive-avatar img)[src="/images/clevel/cso-seoyeon-look-7.jpg"] { object-view-box: inset(0 12% 24% 12%); object-position: 50% 0%; }
body.ds-page :is(.leader-photo,.note-pic,.clevel-avatar img,.executive-avatar img)[src="/images/clevel/cto-jiyu-look-10.jpg"] { object-view-box: inset(0 12% 24% 12%); object-position: 48% 2%; }
body.ds-page :is(.leader-photo,.note-pic,.clevel-avatar img,.executive-avatar img)[src="/images/clevel/cco-yuna-look-11.jpg"] { object-view-box: inset(0 12% 24% 12%); object-position: 52% 0%; }
body.ds-page .note-foot { flex-wrap: wrap; gap: 8px 16px; }

/* Round 27: public reading/tool pages use the landing's scale and section rhythm. */
body.ds-editorial,
html.dark-mode body.ds-editorial, body.dark-mode.ds-editorial {
 --text-primary: var(--page-ink); --text-secondary: var(--page-muted);
 --bg-card: var(--page-paper); --card: var(--page-paper); --border: var(--page-rule);
 --accent: var(--page-accent); --accent-2: var(--page-accent); --ink: var(--page-ink);
 --code-bg: var(--page-tint);
}
body.ds-editorial :is(.container,.wrap,.ex-container) { width: 100%; max-width: none; padding: 0 0 var(--page-section); margin: 0; }
body.ds-editorial :is(.container,.wrap,.ex-container) > :not(.ds-hero) { width: calc(100% - 2 * var(--page-gutter)); max-width: var(--page-max); margin-inline: auto; }
body.ds-editorial :is(.page-nav,.crumb) { padding-block: 20px; font-size: var(--page-caption); }
body.ds-editorial :is(.section,.blk,.card,.start-card,.step,.issue-item,.qa-summary,.notice,.note) { color: var(--page-muted); background: var(--page-paper); border: 1px solid var(--page-rule); border-radius: var(--page-radius); box-shadow: none; }
body.ds-editorial :is(.section,.blk,.card) { padding: 32px; margin-block: 0 var(--page-section); }
body.ds-editorial :is(.start-card,.step,.issue-item,.qa-summary,.notice,.note) { padding: 24px; margin-bottom: 24px; }
body.ds-editorial :is(.section,.blk,.card) > :last-child { margin-bottom: 0; }
body.ds-editorial :is(h2,h3,h4) { color: var(--page-ink); background: none; -webkit-text-fill-color: currentColor; }
body.ds-editorial :is(p,li,td,th,label,.sub,.lede,.step-desc,.detail-content,.answer,.rationale,.isu-body,.explain) { font-size: var(--page-body); line-height: var(--page-prose-leading); }
body.ds-editorial :is(.meta,.dates,.badge,.track,.status,.stat,.ex-kicker,.hero-kicker,.law-ref,.src,.chip,.tag,.legend,.hint) { font-size: var(--page-caption); line-height: 1.6; }
body.ds-editorial :is(p,.sub,.lede) + :is(p,ul,ol) { margin-top: 20px; }
body.ds-editorial :is(.card,.blk,.section) > :is(ul,ol) { padding-left: 24px; }
body.ds-editorial :is(.feature-ul,.law-list) { list-style: none; padding: 0; }
body.ds-editorial .law-list > li { padding: 20px 24px; margin-block: 12px; border-left: 3px solid var(--page-accent); background: var(--page-tint); border-radius: var(--radius-lg); }
body.ds-editorial .law-list > li > a { font-weight: 650; text-underline-offset: 5px; }
body.ds-editorial .law-list > li :is(.meta,.status) { display: block; margin-top: 8px; }
body.ds-editorial :is(.adr-card,.result-card,.exam-card,.start-card) { background: var(--page-tint); color: var(--page-muted); border: 1px solid var(--page-rule); border-radius: var(--page-radius); padding: 28px; box-shadow: none; text-decoration: none; }
body.ds-editorial :is(.adr-title,.result-title,.exam-card h3,.start-card h3) { color: var(--page-ink); font-size: var(--page-subheading); }
body.ds-editorial :is(.btn-primary,.link-arrow,.notes-link,.cta-hero,.chip-link) { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--page-control); padding: 12px 24px; border: 1px solid var(--page-accent); border-radius: var(--page-pill); background: var(--page-paper); color: var(--page-accent); font-size: var(--page-body); font-weight: 700; text-decoration: none; white-space: normal; }
body.ds-editorial :is(button,.filter-btn,.filter-tab,.ex-btn) { min-height: 44px; font-family: inherit; font-size: var(--page-caption); }
body.ds-editorial :is(pre,code) { font-size: var(--page-caption); overflow-wrap: anywhere; }
body.ds-editorial pre { max-width: 100%; overflow: auto; white-space: pre-wrap; padding: 24px; border-radius: var(--radius-lg); background: var(--page-tint); color: var(--page-ink); }
body.ds-editorial details { border: 1px solid var(--page-rule); border-radius: var(--page-radius); background: var(--page-tint); margin-block: 20px; }
body.ds-editorial summary { cursor: pointer; padding: 20px 24px; font-size: var(--page-body); font-weight: 650; color: var(--page-ink); min-height: var(--page-control); }
body.ds-editorial details[open] > summary { border-bottom: 1px solid var(--page-rule); margin-bottom: 20px; }
body.ds-editorial :is(.map-scroll,.table-wrap) { overflow-x: auto; max-width: 100%; }
body.ds-editorial :is(table,.search-box,input,textarea,select) { max-width: 100%; }
body.ds-editorial .ds-hero :is(.badge,.hero-kicker,.ex-kicker,.lede,.dates,.track,.status,.adr-id-lg,.by-name,.by-role) { color: var(--page-photo-ink); background: none; }
body.ds-page .ds-hero :is(.hero-actions,.cta-wrap) { margin: 28px 0 0; padding: 0; }
body.ds-page .ds-hero :is(.cta-hero,.cta-button,.btn-primary,.link-arrow) { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 0; min-height: var(--page-control); border: 1px solid var(--page-photo-ink); border-radius: var(--page-pill); padding: 14px 28px; color: var(--brand-900) !important; background: var(--page-photo-ink) !important; font-size: var(--page-body); text-decoration: none; font-weight: 700; line-height: 1.5; white-space: normal; }
body.ds-page .ds-hero .link-arrow { color: var(--page-photo-ink) !important; background: none !important; }
body.ds-page .ds-hero :is(.notice,.disclaimer) { color: var(--page-photo-ink); background: none; border: 1px solid var(--page-photo-ink); padding: 20px 24px; font-size: var(--page-caption); margin-top: 24px; }
body.ds-page .ds-hero .byline { margin-top: 24px; display: flex; align-items: center; gap: 20px; }
body.ds-page .ds-hero .byline img { width: 96px; height: 120px; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); }
body.ds-page .ds-hero .photo-copy > p { margin-inline: 0; }
body.ds-page.renewal-hub .ds-hero .photo-copy > p { max-width: 54ch; }
body.ds-page.renewal-hub .cov-summary { margin-top: 0; padding-block: 0 32px; }
body.ds-page.renewal-about .keyword-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
body.ds-page.renewal-about .step-card { margin-top: 0; padding: 28px; }
body.ds-page.ai-leaders .clevel-profile { font-size: var(--page-caption); font-weight: 400; line-height: 1.7; color: var(--page-muted); }
body.ds-page .feature-ul > :last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Legal copy keeps a consistent reading scale below the photo band. */
body.ds-page.ds-legal .container { max-width: var(--page-reading); margin: auto; padding: 48px var(--page-gutter) var(--page-section); }
body.ds-page.ds-legal .container > * { width: 100%; }
/* Legal photo bands span the viewport; the original reading width stays intact. */
body.ds-page.ds-legal .container:has(> .ds-hero) { max-width: none; padding: 0 0 var(--page-section); }
body.ds-page.ds-legal .container:has(> .ds-hero) > :not(.ds-hero) { width: calc(100% - 2 * var(--page-gutter)); max-width: calc(var(--page-reading) - 2 * var(--page-gutter)); }
body.ds-page.ds-legal .ds-hero .photo-copy > div:not(.header-badge) { display: block !important; max-width: 65ch; margin: 0; padding: 0 !important; border: 0 !important; background: none !important; color: var(--page-photo-ink) !important; font-size: var(--page-lead) !important; line-height: 1.75; }
body.ds-page.ds-legal .ds-hero .header-badge { box-shadow: none; border-radius: 0; letter-spacing: normal; }
body.ds-legal .header { text-align: left; margin-bottom: 48px; }
body.ds-legal .header h1 { font-size: var(--page-title); color: var(--page-ink); }
body.ds-legal :is(.article-card,.refund-form) { background: var(--page-paper); color: var(--page-muted); border: 1px solid var(--page-rule); box-shadow: none; border-radius: var(--page-radius); padding: 28px; margin-block: 24px; }
body.ds-legal :is(p,li,td,th,.article-content,.effective-date,.footer-nav a) { font-size: var(--page-body); line-height: var(--page-prose-leading); color: var(--page-muted); }
body.ds-legal :is(.header-badge,.law-ref) { font-size: var(--page-caption); }
body.ds-legal :is(h2,.article-title) { font-size: var(--page-subheading); color: var(--page-ink); }
body.ds-legal ul, body.ds-legal ol { padding-left: 24px; }
body.ds-legal table { display: block; max-width: 100%; overflow-x: auto; }
/* The conversation remains inside its existing scroller, including the photo. */
body.ds-page.ai-leader-chat .profile-header { position: relative; isolation: isolate; flex-wrap: wrap; min-height: 240px; padding: 28px 24px; background: var(--brand-950); color: var(--page-photo-ink); overflow: hidden; }
body.ds-page.ai-leader-chat .chat-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
body.ds-page.ai-leader-chat .profile-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--page-photo-scrim); }
body.ds-page.ai-leader-chat .profile-header :is(.name,.specialty-badge,.leader-meta,.back-btn,.profile-link) { color: var(--page-photo-ink); }
body.ds-page.ai-leader-chat .leader-avatar-img { width: 112px; height: 140px; border-radius: var(--radius-lg); }
body.ds-page.ai-leader-chat :is(.welcome-msg p,.message-content,.suggestion-btn) { font-size: var(--page-body); }
body.ds-page.ai-leader-chat :is(.input-hint,.specialty-badge,.meta) { font-size: var(--page-caption); }
body.ds-exam-profile .hero-profile-img { width: 240px; height: 300px; object-fit: cover; object-position: center top; border-radius: var(--page-radius); }
body.ds-exam-profile .hero-content { max-width: var(--page-max); padding-block: 56px; align-items: center; }
body.ds-exam-profile .hero-name { font-size: var(--page-title); }
body.ds-exam-profile :is(.hero-sub,.content p,.content li) { font-size: var(--page-body); }
@media (max-width: 720px) {
 body.ds-editorial :is(.section,.blk,.card) { padding: 24px 20px; }
 body.ds-editorial :is(.starts,.steps,.stats-grid) { grid-template-columns: minmax(0,1fr); }
 body.ds-editorial :is(.hero-actions,.search-box) { flex-wrap: wrap; }
 body.ds-editorial :is(.search-box input,.search-box select) { min-width: 0; width: 100%; }
 body.ds-page .ds-hero :is(.cta-hero,.cta-button,.btn-primary,.link-arrow) { width: 100%; }
 body.ds-editorial .law-list > li { padding: 20px; }
 body.ds-legal :is(.article-card,.refund-form) { padding: 24px 20px; }
 body.ds-exam-profile .hero-content { align-items: flex-start; }
 body.ds-page.ai-leader-chat .profile-header { gap: 12px; padding-inline: 16px; }
 body.ds-page.ai-leader-chat .leader-avatar-img { width: 88px; height: 110px; }
 body.ds-page.ai-leader-chat .leader-info { min-width: 120px; }
}
body.ds-page { word-break: keep-all; overflow-wrap: anywhere; }
body.ds-editorial :is(.flow-body,.stage-content) > .ds-icon { width: 32px; height: 32px; margin-bottom: 16px; }
body.ds-editorial .adr-item { display: block; text-decoration: none; padding: 28px; border: 1px solid var(--page-rule); border-radius: var(--page-radius); background: var(--page-tint); margin-bottom: 20px; }
body.ds-editorial .adr-item p { color: var(--page-muted); }

body.ds-page .ds-hero .header-badge { box-shadow: none; border-radius: 0; }
body.ds-editorial :is(.start-meta,.step-meta,.mini-label,.mini-btn,.step-time,.adr-id,.track,.status) { font-size: var(--page-caption); }
/* Operations portraits fill their own column; avoid an undersized photo in empty space. */
body.ds-page.ai-clevel .executive-avatar { width: 320px; height: 400px; flex-basis: 320px; border-radius: var(--page-radius); }
body.ds-page .about-leaders .clevel-row .leader-photo { width: 100%; max-width: 320px; border-radius: var(--page-radius); }
@media (max-width: 720px) {
 body.ds-page.ai-clevel .executive-avatar { width: min(100%,320px); height: auto; aspect-ratio: 4 / 5; flex-basis: auto; }
 body.ds-page .about-leaders .clevel-row .leader-photo { width: min(100%,280px); }
}
/* Navigation and legal notices are supporting text, never 11–13px labels. */
body:is(.ds-page,.ds-home) .mobile-tab-bar .tab-label { font-size: var(--text-base); line-height: 1.2; letter-spacing: 0; }
body:is(.ds-page,.ds-home) :is(.site-nav-brand,.site-nav-btn,.sn-sheet-sec) { font-size: var(--text-base); }
body:is(.ds-page,.ds-home) .site-footer :is(.footer-disclaimer,.footer-biz,.footer-links a,.footer-engine,.footer-copy) { font-size: var(--page-caption); color: var(--page-muted); opacity: 1; }
body:is(.ds-page,.ds-home) .site-footer { background: var(--page-paper); border-color: var(--page-rule); }
body:is(.ds-page,.ds-home) .skip-to-content { background: var(--page-accent); color: var(--page-paper) !important; }
body.ds-home :is(.lang-toggle,.demo-phone .lbl,.demo-phone .vf-label,.en-demo-label) { font-size: var(--text-base) !important; }
body:is(.ds-page,.ds-home) .site-footer .footer-biz > span:first-child { color: var(--page-ink) !important; }
body:is(.ds-page,.ds-home) .site-footer a { color: var(--page-accent) !important; }
body.ds-home :is(.more-sheet-disclaimer,.more-sheet-biz,.more-sheet-copy) { font-size: var(--page-caption) !important; }
body.ds-editorial :is(.stage-num,.layer-id,.step-no,.meta-line,.law-tag,.lead-label,.flow-tag,.flow-num,.n,.scope-label) { font-size: var(--page-caption); }
body.ds-editorial :is(.scope-note,.note) { font-size: var(--page-body); line-height: var(--page-prose-leading); }
body.ds-editorial :is(.layer-id,.scope-label) { color: var(--page-accent) !important; }
body.ds-page.ds-exam-profile :is(.hero-badge,.blk-count,.ecard-badge,small) { font-size: var(--page-caption); }
body.ds-page.ds-exam-profile small { color: var(--page-muted); }
body.ds-editorial :is(.leader-id,.m-tr,.mchip,.m-n,.ref-grade,.by-role,.sum-lab,.src-cnt,.src-tags,.src-tag,.cite-chip,.isu-no,.src-label) { font-size: var(--page-caption); }
body.ds-editorial :is(.status,.sum-lab) { color: var(--page-accent); }
body.ds-editorial .disclaimer { background: var(--page-tint); color: var(--page-muted); padding: 24px; border-radius: var(--page-radius); }
body.ds-legal .header > div { background: var(--page-tint) !important; color: var(--page-muted) !important; border-color: var(--page-rule) !important; box-shadow: none; }
body.ds-legal .header > div:not(.header-badge) { font-size: var(--page-body) !important; line-height: var(--page-prose-leading); }
body.ds-legal a { color: var(--page-accent) !important; }
body.ds-legal .article-card { opacity: 1; transform: none; backdrop-filter: none; }
body.ds-legal .article-number { background: var(--page-accent); color: var(--page-paper); }
body.ds-legal .article-number h2 { color: var(--page-paper); }
body.ds-legal :is(.chapter-divider,.highlight-box,.info-box) { background: var(--page-tint); color: var(--page-muted); border-color: var(--page-rule); }
body.ds-legal .chapter-divider :is(h3,.chapter-label) { color: var(--page-ink); }
body.ds-legal .chapter-divider p { color: var(--page-muted); }
body.ds-editorial :is(.step-no,.law-tag,.lead-label,.case-link,.sum-lab,.ref-grade,.mchip) { color: var(--page-accent); background: var(--page-tint); }
body.ds-editorial :is(.case-link,.law-link,.law-no,.source-type) { font-size: var(--page-caption); }
body.ds-legal :is(.law-tag,.service-desc,.effective-date p,.biz-info,.biz-contact,.biz-links a,.biz-copy,.biz-disclaimer) { font-size: var(--page-caption) !important; line-height: 1.8; }
body.ds-legal .law-tag { background: var(--page-tint); color: var(--page-accent); }
body.ds-legal :is(.biz-name,.biz-disclaimer,.info-box strong) { color: var(--page-ink); }
body.ds-page.ai-leader-chat .profile-header .profile-link { width: auto; gap: 8px; padding: 10px 18px; border: 1px solid var(--page-photo-ink); border-radius: var(--page-pill); font-size: var(--page-caption); text-decoration: none; }
body.ds-page.ai-leader-chat .profile-link::after { content: attr(aria-label); }
body.ds-page.ai-leader-chat .welcome-msg .welcome-avatar { display: none; }
@media (max-width: 720px) { body.ds-page.ai-leader-chat .profile-header .profile-link { width: 100%; } }
body.ds-page.ds-legal .biz-footer { background: var(--page-paper); color: var(--page-muted); border-color: var(--page-rule); }
body.ds-page.ds-legal .biz-footer :is(span,div,a) { font-size: var(--page-caption); color: var(--page-muted); }
body.ds-page.ds-legal .article-card strong { color: var(--page-ink) !important; }
body.ds-page.ds-editorial .sum-lab { color: var(--page-accent) !important; background: var(--page-tint) !important; }
body.ds-editorial :is(.toc-cnt,.q-pts,.issue-pts,.src-lab,.src-where) { font-size: var(--page-caption); }
body.ds-editorial :is(.pt-tag,.ref-prec) { font-size: var(--page-caption); }
body.ds-editorial .ex-note { color: var(--page-muted); background: var(--page-tint); }
body.ds-editorial .ex-note a { color: var(--page-accent); }
body.ds-page.renewal-article .disclaimer { background: var(--page-tint); color: var(--page-muted); padding: 24px; border-radius: var(--page-radius); }
body.ds-page.renewal-hub :is(.ana-stat,.ana-law b) { font-size: var(--page-caption); color: var(--page-ink); background: var(--page-tint); }
body.ds-editorial .verdict { font-size: var(--page-caption); color: var(--page-accent); background: var(--page-tint); }
body.ds-page.ds-case-survival :is(.section-title,a,.tag) { color: var(--page-accent); }
body.ds-page.ds-case-survival :is(.nm,.changed-stmt) { font-size: var(--page-body); line-height: var(--page-prose-leading); overflow: visible; text-overflow: clip; white-space: normal; }
body.ds-page.ds-case-survival :is(.overruled,.cn-plain,.cn,.meta) { font-size: var(--page-caption); }
body.ds-page.ds-case-survival .overruled a { font-size: inherit; }
