/*
 * Claude Design transfer, "docs" family: guides, glossary terms, how-to-defend playbooks, free tools.
 * Source of truth: design-v2 "Library Entry.dc.html" (guide / term / playbook / tool modes) and design-v2/CLAUDE.md.
 * Everything is scoped under .dcd. Loaded only by single-bd_guide / _term / _defend / _tool (inc/dc-docs.php).
 * Type: Urbanist for text, JetBrains Mono (var(--bd-font-mono)) for labels, codes and small caps.
 * Motion: none beyond hover and the + of the questions. prefers-reduced-motion switches transitions off.
 */

.dcd {
    --dc-navy: #000313;
    --dc-navy-2: #0b1236;
    --dc-ink: #11193f;
    --dc-body: #2b3350;
    --dc-ink-2: #4b5563;
    --dc-mute: #6b7591;
    --dc-coral: #ff5247;
    --dc-coral-ink: #d63a30;
    --dc-on-dark: #a6b0d2;
    --dc-on-dark-2: #8b97c4;
    --dc-line: #e3e7ef;
    --dc-line-2: #dfe4ea;
    --dc-line-3: #eceff3;
    --dc-paper: #f6f8f9;
    --dc-ease: cubic-bezier(.16, 1, .3, 1);
    --dc-mono: var(--bd-font-mono, 'JetBrains Mono', ui-monospace, monospace);

    position: relative;
    overflow-x: clip;
    background: #fff;
    color: var(--dc-ink);
    font-family: var(--bd-font-body, Urbanist, 'Helvetica Neue', Arial, sans-serif);
    -webkit-font-smoothing: antialiased;
}

.dcd *,
.dcd *::before,
.dcd *::after { box-sizing: border-box; }

.dcd :where(h1, h2, h3, p, ul, ol, li, dl, dd, figure) { margin: 0; padding: 0; }
.dcd :where(ul, ol) { list-style: none; }
.dcd i { font-style: normal; }
.dcd a { text-decoration: none; }

/* ------------------------------------------------------------ progress bar */
.dcd-progress { position: fixed; z-index: 60; left: 0; top: 0; right: 0; height: 3px; pointer-events: none; }
.dcd-progress i { display: block; height: 100%; width: 0; background: var(--dc-coral); }

/* ------------------------------------------------------------ hero */
.dcd-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(45% 55% at 80% 0%, rgb(255 82 70 / .24) 0%, rgb(3 8 36 / 0) 100%),
        url(../../img/uc/bg-digital-red.jpg) right bottom / 110% auto no-repeat,
        var(--dc-navy);
    color: #fff;
    padding: clamp(108px, 9vw, 128px) clamp(16px, 2.5vw, 32px) clamp(36px, 4vw, 56px);
}

.dcd-hero__in {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px clamp(29px, 5vw, 64px);
    align-items: end;
}

.dcd-hero__copy { flex: 7 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.dcd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--dc-on-dark-2); }
.dcd-crumbs a { color: var(--dc-on-dark); }
.dcd-crumbs a:hover { color: #fff; }
.dcd-crumbs [aria-current] { color: #fff; }

.dcd-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--dc-mono); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--dc-on-dark); }
.dcd-eyebrow i { width: 8px; height: 8px; background: var(--dc-coral); }

.dcd-h1 {
    font-size: clamp(31px, 4.69vw, 60px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.03em;
    text-wrap: balance;
    color: #fff;
}

.dcd-lead { max-width: 36em; font-size: 17px; line-height: 1.55; color: var(--dc-on-dark); }

.dcd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dcd-chips li {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 8px;
    background: rgb(255 255 255 / .07); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08);
    font-size: 13.5px; font-weight: 600; color: #fff;
}
.dcd-chips li i { width: 7px; height: 7px; border-radius: 50%; background: var(--dc-on-dark-2); }
.dcd-chips li.is-first i { background: var(--dc-coral); }

.dcd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.dcd-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 8px;
    font-size: 16px; font-weight: 700; transition: background .2s, color .2s;
}
.dcd-btn--primary { background: var(--dc-coral); color: #fff; }
.dcd-btn--primary:hover { background: #ff6b61; color: #fff; }
.dcd-btn--ghost { background: #fff; color: var(--dc-navy); font-weight: 600; }
.dcd-btn--ghost:hover { background: #e6eaf2; color: var(--dc-navy); }

.dcd-facts {
    flex: 4 1 320px; min-width: 0; padding: 8px 24px; border-radius: 14px;
    background: rgb(255 255 255 / .07); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.dcd-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid rgb(255 255 255 / .08); }
.dcd-facts > div:first-child { border-top: 0; }
.dcd-facts dt { font-family: var(--dc-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dc-on-dark-2); }
.dcd-facts dd { font-size: 15px; font-weight: 500; color: #fff; overflow-wrap: anywhere; }

/* Scan box in the hero (free tools): same form, restyled for the dark panel */
.dcd-toolbox { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.dcd-toolbox__meta { font-size: 13.5px; color: var(--dc-on-dark-2); }
.dcd-toolbox .hp-scanbox { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.dcd-toolbox .hp-scanbox__label { font-size: 14px; font-weight: 600; color: var(--dc-on-dark); }
.dcd-toolbox .hp-scanbox__field {
    display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 6px 6px 6px 22px; border-radius: 8px;
    background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
}
.dcd-toolbox .hp-scanbox__input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; }
.dcd-toolbox .hp-scanbox__input::placeholder { color: var(--dc-on-dark-2); }
.dcd-toolbox .hp-scanbox__field:focus-within { box-shadow: inset 0 0 0 2px var(--dc-coral); }
.dcd-toolbox .hp-scanbox__submit,
.dcd-toolbox .hp-scanbox__open {
    height: 46px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--dc-coral); color: #fff;
    font: 700 15px/1 inherit; cursor: pointer; white-space: nowrap;
}
.dcd-toolbox .hp-scanbox__open { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; font-size: 16px; align-self: flex-start; }
.dcd-toolbox .hp-scanbox__submit:hover,
.dcd-toolbox .hp-scanbox__open:hover { background: #ff6b61; color: #fff; }
.dcd-toolbox .hp-scanbox__error { font-size: 14px; color: #ffb4ae; }
.dcd-toolbox .hp-scanbox__note { font-size: 13.5px; color: var(--dc-on-dark-2); }

/* ------------------------------------------------------------ body grid */
.dcd-body { padding: clamp(43px, 5.63vw, 72px) clamp(16px, 2.5vw, 32px) 0; }
.dcd-body__in {
    max-width: 1120px; margin: 0 auto; display: grid;
    grid-template-columns: 200px minmax(0, 1fr); gap: clamp(29px, 5vw, 64px); align-items: start;
}
.dcd-body__in > article, .dcd-body__in > .dcd-prose { max-width: 760px; }
.dcd-body__in--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }

.dcd-toc { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 140px); overflow-y: auto; }
.dcd-toc__title { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--dc-mute); }
.dcd-toc a { display: grid; grid-template-columns: 2px minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 13.5px; line-height: 1.35; font-weight: 400; color: var(--dc-mute); }
.dcd-toc a i { border-radius: 1px; background: var(--dc-line-2); }
.dcd-toc a:hover { color: var(--dc-ink); }
.dcd-toc a.is-current { font-weight: 600; color: var(--dc-ink); }
.dcd-toc a.is-current i { background: var(--dc-coral); }

.dcd-article { min-width: 0; font-size: 17px; line-height: 1.7; color: var(--dc-body); }

/* In Short */
.dcd-short { padding: 24px 28px; border-radius: 12px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line); }
.dcd-short__label { display: flex; align-items: center; gap: 10px; font-family: var(--dc-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dc-ink); }
.dcd-short__label i { width: 8px; height: 8px; background: var(--dc-coral); }
.dcd-short__text { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--dc-ink); }
.dcd-short__points { margin-top: 14px; }
.dcd-short__text + .dcd-short__points { margin-top: 14px; }
.dcd-short__points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--dc-line); font-size: 15px; line-height: 1.5; color: var(--dc-ink-2); }
.dcd-short__label + .dcd-short__points li:first-child { border-top: 0; }
.dcd-short__points li i { width: 6px; height: 6px; margin-top: 9px; background: var(--dc-coral); }
.dcd-updated { display: block; margin-top: 14px; font-size: 13px; color: var(--dc-mute); }
.dcd-meta:empty { display: none; }
.dcd-meta { margin-top: 18px; }

/* A to Z strip (glossary) */
.dcd-az { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); max-width: 460px; gap: 2px 2px; margin-bottom: 20px; font-family: var(--dc-mono); font-size: 13px; }
.dcd-az a, .dcd-az span { display: inline-grid; place-items: center; width: 100%; max-width: 32px; height: 28px; border-radius: 6px; color: var(--dc-mute); }
.dcd-az span { opacity: .4; }
.dcd-az a { font-weight: 600; color: var(--dc-ink); }
.dcd-az a:hover { background: var(--dc-paper); color: var(--dc-coral); }
.dcd-az a.is-current { background: var(--dc-ink); color: #fff; }

/* ------------------------------------------------------------ headings and sections */
.dcd-sec { scroll-margin-top: 112px; margin-top: 56px; }
.dcd-sec--flow { margin-top: 0; }
.dcd-sec--flow > .dcd-prose > :first-child { margin-top: 28px; }
.dcd-h2 { margin: 0 0 14px; font-size: 32px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; color: var(--dc-ink); text-wrap: balance; }
.dcd-h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -.015em; color: var(--dc-ink); }
.dcd-h2s { font-size: clamp(28px, 3.13vw, 40px); font-weight: 500; line-height: 1.06; letter-spacing: -.025em; color: var(--dc-ink); }
.dcd-h2s--sm { margin-bottom: 24px; font-size: 32px; letter-spacing: -.02em; }

/* ------------------------------------------------------------ prose (chapters, glossary text, playbook sections) */
.dcd-prose { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.7; color: var(--dc-body); }
.dcd-prose > * { margin: 0; }
.dcd-prose p, .dcd-prose li { overflow-wrap: break-word; }
.dcd-prose a:not(.bdb-link):not([data-bd-card]) { color: var(--dc-ink); text-decoration: underline; text-decoration-color: #c9d0de; text-underline-offset: 4px; }
.dcd-prose a:not(.bdb-link):hover { color: var(--dc-coral); text-decoration-color: var(--dc-coral); }
.dcd-prose a[data-bd-card], .dcd-prose a.bd-term { color: var(--dc-ink); text-decoration: underline; text-decoration-color: rgb(255 82 70 / .5); text-underline-offset: 4px; }
.dcd-prose strong { font-weight: 600; color: var(--dc-ink); }
.dcd-prose h3 { margin-top: 12px; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--dc-ink); }
.dcd-prose h4 { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--dc-ink); }
.dcd .dcd-prose.blog-detail-content > ul, .dcd .dcd-prose.blog-detail-content > ol { list-style: none; margin-left: 0; display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.dcd-prose > ul > li { position: relative; padding-left: 22px; }
.dcd-prose > ul > li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; background: var(--dc-coral); }
.dcd-prose > ol { counter-reset: dcn; }
.dcd-prose > ol > li { position: relative; padding-left: 34px; counter-increment: dcn; }
.dcd-prose > ol > li::before { content: counter(dcn); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--dc-ink); color: #fff; font: 600 12.5px/1 var(--dc-mono); }
.dcd-prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--dc-coral); color: var(--dc-ink); font-size: 18px; }
.dcd-prose code { padding: 2px 6px; border-radius: 4px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line); font-family: var(--dc-mono); font-size: .88em; overflow-wrap: anywhere; }
.dcd-prose pre { padding: 18px 20px; overflow-x: auto; border-radius: 10px; background: var(--dc-navy-2); color: #c6cdd7; font: 14px/1.6 var(--dc-mono); }
.dcd-prose pre code { padding: 0; background: none; box-shadow: none; color: inherit; }
.dcd-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.dcd-prose hr { border: 0; border-top: 1px solid var(--dc-line-3); }

/* Tables: navy header, hairline rows */
.dcd-prose .hp-kb-table,
.dcd-prose table {
    width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.45;
    border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--dc-line);
}
.dcd-prose .table-wrap, .dcd-prose .hp-kb-tablewrap { overflow-x: auto; }
.dcd-prose table th { padding: 14px 16px; background: var(--dc-navy); color: #fff; font-weight: 600; text-align: left; vertical-align: top; }
.dcd-prose table td { padding: 14px 16px; border-top: 1px solid var(--dc-line-3); color: var(--dc-ink-2); vertical-align: top; }
.dcd-prose table td:first-child { color: var(--dc-ink); font-weight: 600; }
.dcd-prose table tr:first-child td { border-top: 0; }
@media (max-width: 720px) {
    .dcd-prose table { display: block; overflow-x: auto; white-space: normal; }
    .dcd-prose table th, .dcd-prose table td { min-width: 140px; }
}

/* Blocks placed with the article shortcodes (bdb-*): restyled in the design language. Their own sheet is scoped
   to .blog-detail-content, so these selectors carry the same weight plus .dcd. */
.dcd .dcd-prose.blog-detail-content .bdb { max-width: 100%; margin: 8px 0; font-family: inherit; font-size: 16px; color: var(--dc-body); }
.dcd .dcd-prose.blog-detail-content .bdb .bdb__title { margin: 0 0 14px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--dc-ink); }
.dcd .dcd-prose.blog-detail-content .bdb--timeline,
.dcd .dcd-prose.blog-detail-content .bdb--facts,
.dcd .dcd-prose.blog-detail-content .bdb--flow,
.dcd .dcd-prose.blog-detail-content .bdb--figures,
.dcd .dcd-prose.blog-detail-content .bdb--hub { padding: 24px 26px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--dc-line); }

/* Steps: rows with a coral dot (playbook timeline) or numbered (guides) */
.dcd .dcd-prose.blog-detail-content .bdb--steps { padding: 0; background: transparent; border: 0; box-shadow: none; }
.dcd .dcd-prose.blog-detail-content .bdb--steps .bdb-steps { counter-reset: dcs; border-top: 1px solid var(--dc-line-3); }
.dcd .dcd-prose.blog-detail-content .bdb--steps .bdb-steps__item {
    position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 0 16px 34px; border: 0; border-bottom: 1px solid var(--dc-line-3);
    background: transparent; counter-increment: dcs;
}
.dcd .dcd-prose.blog-detail-content .bdb--steps .bdb-steps__item::before {
    content: counter(dcs); position: absolute; left: 0; top: 17px; width: 24px; height: 24px; display: grid; place-items: center;
    border-radius: 6px; background: var(--dc-ink); color: #fff; font: 600 12.5px/1 var(--dc-mono); transform: none; border-color: transparent;
}
.dcd .dcd-prose.blog-detail-content .bdb--steps .bdb-steps__title { font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--dc-ink); }
.dcd .dcd-prose.blog-detail-content .bdb--steps .bdb-steps__text { font-size: 14.5px; line-height: 1.5; color: var(--dc-ink-2); }
.dcd .dcd-prose.blog-detail-content .bdb--steps .bdb-steps__item::after { content: none; }

.dcd-defend--timeline .dcd-prose.blog-detail-content .bdb--steps .bdb-steps__item { padding-left: 30px; }
.dcd-defend--timeline .dcd-prose.blog-detail-content .bdb--steps .bdb-steps__item::before {
    content: ''; top: 22px; left: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--dc-coral); box-shadow: 0 0 0 4px rgb(255 82 70 / .15);
}
.dcd .hp-defend-owner { display: block; margin-bottom: 2px; font-family: var(--dc-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dc-coral-ink); }

/* Checklist: cards with a navy tick */
.dcd .dcd-prose.blog-detail-content .bdb--checklist, .dcd .dcd-prose.blog-detail-content .bdb--steps { padding: 0; border: 0; background: transparent; }
.dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps__item::after { content: none; }
.dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps { counter-reset: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; border-top: 0; }
.dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps__item {
    padding: 18px 18px 18px 56px; border: 0; border-radius: 10px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line);
}
.dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps__item::before {
    content: ''; left: 18px; top: 18px; width: 28px; height: 28px; border-radius: 6px; background: var(--dc-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
    margin: 0; border: 0;
}
.dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps__title { font-size: 15.5px; line-height: 1.3; }
.dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps__text { font-size: 14px; }

/* Flow: numbered steps side by side */
.dcd .dcd-prose.blog-detail-content .bdb--flow { background: var(--dc-paper); }
.dcd .dcd-prose.blog-detail-content .bdb--flow .bdb-flow__num { font-family: var(--dc-mono); font-weight: 600; color: var(--dc-coral-ink); }
.dcd .dcd-prose.blog-detail-content .bdb--flow .bdb-flow__title { font-weight: 600; color: var(--dc-ink); }
.dcd .dcd-prose.blog-detail-content .bdb--flow .bdb-flow__text { color: var(--dc-ink-2); }

/* Callouts, facts, figures, timeline, hub keep their own layout; only the surface is aligned */
.dcd .dcd-prose.blog-detail-content .bdb--facts .bdb-facts__row { border-color: var(--dc-line-3); }
.dcd .dcd-prose.blog-detail-content .bdb--facts dt { font-family: var(--dc-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-mute); }
.dcd .dcd-prose.blog-detail-content .bdb--figures .bdb-figs__value { font-family: BDDigits, var(--bd-font-body), sans-serif; font-weight: 300; color: var(--dc-ink); }
.dcd .dcd-prose.blog-detail-content .bdb--callout, .dcd .dcd-prose.blog-detail-content .bdb--tip, .dcd .dcd-prose.blog-detail-content .bdb--warning { border-radius: 10px; }
.dcd .dcd-prose.blog-detail-content .bdb--compare .bdb-cmp { border-radius: 10px; overflow: hidden; }
.dcd .dcd-prose.blog-detail-content .bdb-tl__item::before { border-color: var(--dc-coral); }

/* ------------------------------------------------------------ resource parts (free templates) */
.dcd .hp-res-frameworks, .dcd .hp-res-diagram { margin-top: 28px; padding: 22px 24px; border-radius: 12px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line); }
.dcd .hp-res-frameworks__label, .dcd .hp-res-kicker { font-family: var(--dc-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dc-coral-ink); }
.dcd .hp-res-frameworks__list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 15px; color: var(--dc-ink-2); }
.dcd .hp-res-frameworks__list a { border-bottom: 0; }
.dcd .hp-res-frameworks__list strong { color: var(--dc-ink); }
.dcd .hp-res-diagram img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.dcd .hp-res-diagram figcaption { margin-top: 12px; font-size: 14px; color: var(--dc-mute); display: flex; flex-direction: column; gap: 4px; }
.dcd .hp-res-download, .dcd .hp-res-cite, .dcd .hp-res-changelog { margin-top: 56px; scroll-margin-top: 112px; }
.dcd .hp-res-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: 14px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line); }
.dcd .hp-res-title { margin: 6px 0 8px; font-size: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--dc-ink); }
.dcd .hp-res-title--small { margin-top: 0; font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.dcd .hp-res-text { max-width: 34em; font-size: 15.5px; line-height: 1.6; color: var(--dc-ink-2); }
.dcd .hp-res-download__files { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.dcd .hp-res-download__files li { display: flex; align-items: center; gap: 10px; }
.dcd .hp-res-download__size { font-size: 13px; color: var(--dc-mute); }
.dcd .hp-res-download .hp-btn, .dcd .hp-res-cite .hp-btn {
    display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border: 0; border-radius: 8px; font: 700 15px/1 inherit; cursor: pointer;
    background: var(--dc-ink); color: #fff; box-shadow: 0 10px 24px -10px rgb(17 25 63 / .55);
}
.dcd .hp-res-download .hp-btn:hover, .dcd .hp-res-cite .hp-btn:hover { background: var(--dc-coral); color: #fff; }
.dcd .hp-res-cite__text { margin: 10px 0 14px; padding: 16px 18px; border-radius: 8px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line); font: 14px/1.6 var(--dc-mono); color: var(--dc-ink-2); overflow-wrap: anywhere; }
.dcd .hp-res-changelog__list { border-top: 1px solid var(--dc-line-3); }
.dcd .hp-res-changelog__list li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--dc-line-3); font-size: 15px; }
.dcd .hp-res-changelog__ver { font-family: var(--dc-mono); font-size: 13px; font-weight: 600; color: var(--dc-ink); }
.dcd .hp-res-changelog__text { color: var(--dc-ink-2); }
.dcd .hp-res-badge { display: inline-block; }

/* Pills (print button, related, A to Z) */
.dcd-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: #fff;
    box-shadow: inset 0 0 0 1px var(--dc-line-2); color: var(--dc-ink); font: 600 15px/1 inherit; cursor: pointer; transition: background .2s, color .2s;
}
.dcd-pill:hover { background: var(--dc-ink); color: #fff; }

/* ------------------------------------------------------------ sample, checks, steps, notes (free tools) */
.dcd-sample { margin-top: 28px; }
.dcd-sample img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 40px rgb(17 25 63 / .1); }
.dcd-sample figcaption { margin-top: 10px; font-size: 14px; color: var(--dc-mute); }
.dcd-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 8px; }
.dcd-checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px; border-radius: 10px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line); }
.dcd-checks__tick { width: 28px; height: 28px; border-radius: 6px; background: var(--dc-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dcd-checks b, .dcd-steps b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--dc-ink); }
.dcd-checks li > span > span, .dcd-steps li > span > span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--dc-ink-2); }
.dcd-steps { border-top: 1px solid var(--dc-line-3); margin-top: 8px; }
.dcd-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--dc-line-3); }
.dcd-steps li > i { font-family: var(--dc-mono); font-size: 13px; font-weight: 600; color: var(--dc-coral-ink); padding-top: 3px; }
.dcd-steps b { font-size: 16.5px; }
.dcd-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 8px; }
.dcd-note { padding: 20px 22px; border-radius: 10px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line); font-size: 15.5px; line-height: 1.6; color: var(--dc-ink-2); }
.dcd-note small { display: block; margin-bottom: 6px; font-family: var(--dc-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dc-coral-ink); }
.dcd-sec + .dcd-note, .dcd-faq + .dcd-note { margin-top: 32px; }
.dcd-article > .dcd-note { margin-top: 32px; }

/* ------------------------------------------------------------ aliases (glossary) */
.dcd-aliases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.dcd-aliases li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--dc-line); }
.dcd-aliases small { font-family: var(--dc-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dc-coral-ink); }
.dcd-aliases b { font-size: 16.5px; font-weight: 600; color: var(--dc-ink); }

/* ------------------------------------------------------------ questions */
.dcd-faq__list { border-bottom: 1px solid var(--dc-line-2); }
.dcd-faq__list > li { border-top: 1px solid var(--dc-line-2); }
.dcd-faq__item summary { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 20px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.dcd-faq__item summary::-webkit-details-marker { display: none; }
.dcd-faq__item summary h3 { font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--dc-ink); transition: color .2s; }
.dcd-faq__item summary:hover h3 { color: var(--dc-coral); }
.dcd-faq__item summary > span { color: var(--dc-coral); font-size: 22px; font-weight: 400; text-align: center; transition: transform .3s; }
.dcd-faq__item[open] summary > span { transform: rotate(45deg); }
.dcd-faq__item summary:focus-visible { outline: 2px solid var(--dc-coral); outline-offset: 2px; border-radius: 4px; }
.dcd-faq__a { padding: 0 clamp(29px, 3.75vw, 48px) 20px 0; font-size: 15.5px; line-height: 1.6; color: var(--dc-ink-2); }
.dcd-faq__a > * { font-size: inherit; }

/* ------------------------------------------------------------ lists: sources, research */
.dcd-list { border-bottom: 1px solid var(--dc-line-3); }
.dcd-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-top: 1px solid var(--dc-line-3); font-size: 14.5px; line-height: 1.5; }
.dcd-list__n { font-family: var(--dc-mono); font-size: 12.5px; color: #7a8299; padding-top: 2px; }
.dcd-list a { color: var(--dc-ink); text-decoration: underline; text-decoration-color: #c9d0de; text-underline-offset: 4px; overflow-wrap: anywhere; }
.dcd-list a:hover { color: var(--dc-coral); text-decoration-color: var(--dc-coral); }
.dcd-list--rich a { font-weight: 600; text-decoration: none; }
.dcd-list--rich small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dc-mute); }

.dcd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dcd-pills a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border-radius: 8px; background: var(--dc-paper); box-shadow: inset 0 0 0 1px var(--dc-line); color: var(--dc-ink); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.dcd-pills a small { font-family: var(--dc-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #c0332a; }
.dcd-pills a:hover { background: var(--dc-ink); color: #fff; }

/* ------------------------------------------------------------ bridge and pager */
.dcd-bridge {
    position: relative; overflow: hidden; margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    padding: 28px 30px; border-radius: 14px; color: #fff;
    background: radial-gradient(60% 90% at 50% 0%, rgb(255 82 70 / .24), rgb(3 9 37 / 0) 70%), var(--dc-navy);
}
.dcd-bridge__copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dcd-bridge__copy small { font-family: var(--dc-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dc-on-dark-2); }
.dcd-bridge__copy b { font-size: 21px; font-weight: 600; line-height: 1.25; }
.dcd-bridge__copy > span { font-size: 14.5px; line-height: 1.5; color: var(--dc-on-dark); }
.dcd-bridge__btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 8px; background: var(--dc-coral); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.dcd-bridge__btn:hover { background: #ff6b61; color: #fff; }

.dcd-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 16px; }
.dcd-pager__a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--dc-line); color: var(--dc-ink); transition: box-shadow .2s; }
.dcd-pager__a:hover { box-shadow: inset 0 0 0 1px var(--dc-ink); color: var(--dc-ink); }
.dcd-pager__a--next { text-align: right; }
.dcd-pager__a small { font-family: var(--dc-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dc-mute); }
.dcd-pager__a b { font-size: 16px; font-weight: 600; line-height: 1.3; }

/* ------------------------------------------------------------ band under the article */
.dcd-foot { margin-top: clamp(62px, 8.75vw, 112px); padding: clamp(64px, 7.5vw, 96px) clamp(16px, 2.5vw, 32px) clamp(64px, 9.38vw, 120px); background: var(--dc-paper); }
.dcd-foot__in { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(25px, 4.38vw, 56px); }
.dcd-more__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dcd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.dcd-grid--dark { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.dcd-card {
    display: flex; flex-direction: column; gap: 8px; min-height: 170px; padding: 24px; border-radius: 12px; background: #fff; color: var(--dc-ink);
    box-shadow: 0 18px 40px rgb(17 25 63 / .06), inset 0 0 0 1px var(--dc-line-3); transition: transform .25s;
}
.dcd-card:hover { color: var(--dc-ink); transform: translateY(-3px); }
.dcd-card small { font-family: var(--dc-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dc-coral-ink); }
.dcd-card b { font-size: 19px; font-weight: 600; line-height: 1.25; }
.dcd-card > span { flex: 1 1 auto; font-size: 14.5px; line-height: 1.5; color: var(--dc-ink-2); }
.dcd-card em { font-style: normal; font-size: 14px; font-weight: 600; }
.dcd-card--dark { min-height: 190px; gap: 10px; color: #fff; background: radial-gradient(67% 45% at 50% 0%, rgb(255 82 70 / .16) 0%, rgb(3 9 37 / 0) 100%), var(--dc-navy); box-shadow: none; }
.dcd-card--dark:hover { color: #fff; }
.dcd-card--dark small { color: var(--dc-on-dark-2); }
.dcd-card--dark > span { color: var(--dc-on-dark); font-size: 14px; }
.dcd-lib { display: flex; flex-wrap: wrap; gap: 8px; }
.dcd-lib a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--dc-line-2); color: var(--dc-ink); font-size: 15px; font-weight: 600; transition: background .2s, color .2s; }
.dcd-lib a small { font-family: BDDigits, var(--bd-font-body), sans-serif; font-size: 12px; color: var(--dc-mute); }
.dcd-lib a:hover { background: var(--dc-ink); color: #fff; }
.dcd-lib a:hover small { color: var(--dc-on-dark); }

/* ------------------------------------------------------------ narrow screens */
@media (max-width: 960px) {
    .dcd-body__in { grid-template-columns: minmax(0, 1fr); }
    .dcd-toc { display: none; }
}
@media (max-width: 600px) {
    .dcd-hero { padding-top: 104px; }
    .dcd-facts > div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
    .dcd-h2 { font-size: 26px; }
    .dcd-short { padding: 20px; }
    .dcd-pager__a--next { text-align: left; }
    .dcd .hp-res-changelog__list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .dcd-toolbox .hp-scanbox__field { flex-wrap: wrap; border-radius: 14px; padding: 8px; }
    .dcd-toolbox .hp-scanbox__input { flex: 1 1 100%; padding: 10px 12px; }
    .dcd-toolbox .hp-scanbox__submit { flex: 1 1 100%; }
}

@media print {
    .dcd-progress, .dcd-toc, .dcd-meta, .dcd-foot, .dcd-bridge { display: none; }
    .dcd-hero { background: #fff; color: #11193f; padding-top: 24px; }
    .dcd-h1, .dcd-lead, .dcd-crumbs a, .dcd-crumbs span { color: #11193f; }
}

@media (prefers-reduced-motion: reduce) {
    .dcd * { transition: none !important; animation: none !important; }
}

/* Hub diagram: centre box keeps light text on navy */
.dcd .dcd-prose.blog-detail-content .bdb-hub__core { background: var(--dc-navy, #000313); color: #fff; }
.dcd .dcd-prose.blog-detail-content .bdb-hub__core strong { color: #fff; }
.dcd .dcd-prose.blog-detail-content .bdb-hub__core span { color: #a6b0d2; }

/* v3 review: checklist cards fill their rows (no empty cell) */
@media (min-width: 760px) {
    .dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
    .dcd .dcd-prose.blog-detail-content .bdb--checklist .bdb-steps:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
}

/* owner sol S1/S7a: scroll-spy must not change the TOC box (bold made links wrap and the sticky TOC grow) */
.dcd-toc a, .dcd-toc a.is-current { font-weight: 500; }
.dcd-toc a.is-current { text-shadow: .4px 0 0 currentColor; }

/* Safari: progress bar animates by transform (no layout per frame); sticky side panels get their own layer. */
.dcd-progress i { width: 100%; transform: scaleX(0); transform-origin: left center; will-change: transform; }
.dcd-toc { will-change: transform; }

/* owner G2 width */
/* docs body = header width: TOC on the left edge, blocks fill to the right edge; running text keeps its 760 measure */
.dcd-body__in { max-width: var(--bd-wrap-max, 1280px); }
.dcd-body__in > article, .dcd-body__in > .dcd-prose { max-width: none; }
.dcd-prose > p, .dcd-prose > ul, .dcd-prose > ol, .dcd-prose > h3, .dcd-prose > h4, .dcd-prose > blockquote { max-width: 760px; }
.dcd-body__in--solo { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
