/* DPIT Notes — original theme, deliberately quiet. */
:root {
    --paper: #fafaf8;
    --surface: #f0f1ed;
    --surface-raised: #fff;
    --ink: #25272c;
    --muted: #686d75;
    --faint: #777d85;
    --line: #e1e3de;
    --accent: #3458c5;
    --accent-soft: #e9edf9;
    --code-bg: #20242d;
    --code-text: #e5eaf5;
    --sans: var(--gh-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif);
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
}
:root[data-theme="dark"] {
    --paper: #15171b;
    --surface: #1d2026;
    --surface-raised: #20232a;
    --ink: #eceef2;
    --muted: #a0a5ae;
    --faint: #999fa9;
    --line: #30343b;
    --accent: #a5baff;
    --accent-soft: #252f48;
    --code-bg: #101318;
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--accent); color: var(--paper); }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button, input { font: inherit; }
button { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { touch-action: manipulation; }
img, video { max-width: 100%; height: auto; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--gh-font-heading, var(--sans)); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
.shell { width: min(800px, calc(100% - 64px)); margin-inline: auto; }
.site-frame { min-height: 100svh; display: flex; flex-direction: column; }
.site-frame > main { flex: 1; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 8px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { padding-top: 48px; }
.identity-row { display: flex; justify-content: space-between; align-items: center; }
.identity { display: flex; flex-direction: column; align-items: flex-start; }
.wordmark { font-size: 37px; font-weight: 750; line-height: 1.1; letter-spacing: -2px; }
.brand-dot { color: var(--accent); }
.identity-label { color: var(--muted); margin-top: 5px; font-size: 13px; }
.site-logo { width: auto; max-width: 220px; max-height: 48px; }
.identity-mark { width: 54px; height: 54px; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line); border-radius: 50%; }
.identity-mark svg { width: 38px; height: 38px; }
.navigation-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 66px; margin-top: 21px; border-bottom: 1px solid var(--line); }
.site-navigation { min-width: 0; }
.nav { list-style: none; display: flex; align-items: center; gap: 27px; margin: 0; padding: 0; }
.nav li { flex-shrink: 0; }
.nav a { color: var(--muted); display: block; padding: 12px 0; font-size: 14px; font-weight: 550; }
.nav a:hover, .nav-current a { color: var(--ink); }
.nav-current a { position: relative; }
.nav-current a::after { content: ""; display: block; width: 15px; height: 2px; border-radius: 1px; position: absolute; bottom: 3px; left: 0; background: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-button, .search-button { height: 38px; border: 0; border-radius: 7px; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.icon-button { width: 38px; }
.icon-button svg, .search-button svg { width: 19px; height: 19px; }
.icon-button:hover, .search-button:hover { background: var(--surface); }
.search-button { gap: 10px; padding: 0 7px; }
kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font: 11px/20px var(--sans); padding: 0 5px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
.intro { padding: 62px 0 53px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 10px/1.6 var(--mono); letter-spacing: 1.8px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.intro h1 { max-width: 630px; margin-top: 19px; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.13; letter-spacing: -1.9px; font-weight: 650; text-wrap: balance; }
.intro > p { max-width: 645px; color: var(--muted); line-height: 1.8; font-size: 16px; margin-top: 23px; }
.text-link { display: inline-flex; align-items: center; gap: 13px; color: var(--accent); font-size: 13px; font-weight: 550; }
.text-link:hover { text-decoration: underline; }
.intro .text-link { margin-top: 22px; }
.section-label { font: 10px/1.6 var(--mono); color: var(--muted); letter-spacing: 1.7px; }
.featured-section > .section-label { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.small-spark { font: 18px/1 var(--sans); color: var(--accent); }
.featured-post { border: 1px solid var(--line); background: var(--surface); border-radius: 13px; overflow: hidden; }
.featured-link { display: grid; grid-template-columns: minmax(0, 1fr) 218px; gap: 22px; align-items: center; padding: 28px 30px; }
.feature-topic { color: var(--accent); font: 10px/1.6 var(--mono); letter-spacing: .6px; }
.featured-copy h2 { font-size: 24px; font-weight: 620; line-height: 1.28; letter-spacing: -.65px; margin: 10px 0; text-wrap: balance; }
.featured-copy > p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.feature-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 12px; font-weight: 600; }
.featured-link:hover .feature-cta { color: var(--accent); }
.featured-link:hover .feature-cta > span { transform: translate(2px, -2px); }
.feature-cta > span { transition: transform 160ms ease; }
.featured-image { width: 100%; aspect-ratio: 1.9; object-fit: contain; border-radius: 7px; }
.feature-art { color: var(--accent); width: 100%; }
.service-diagram { width: 100%; height: auto; }
.diagram-grid { stroke: var(--line); stroke-dasharray: 2 4; opacity: .8; }
.diagram-wire { stroke: var(--accent); stroke-width: 1.5; opacity: .55; }
.diagram-node { fill: var(--paper); stroke: var(--line); stroke-width: 1.2; }
.accent-node { fill: var(--accent-soft); stroke: var(--accent); }
.diagram-glyph { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diagram-junction { fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; }
.diagram-caption { fill: var(--muted); font: 8px var(--mono); letter-spacing: 1px; }
.article-feed { margin-top: 53px; scroll-margin-top: 32px; }
.section-heading { display: flex; gap: 20px; align-items: baseline; justify-content: space-between; }
.section-heading > h2 { font-size: 21px; font-weight: 600; letter-spacing: -.6px; }
.section-count { color: var(--muted); font: 11px/1.6 var(--mono); }
.topic-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 21px 0 7px; }
.topic-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; color: var(--muted); }
.topic-pill > span { font: 9px var(--mono); opacity: .85; }
.topic-pill.selected { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.topic-pill:hover:not(.selected) { background: var(--surface); color: var(--ink); }
.post-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 20px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.post-row > time { color: var(--muted); font: 10px/27px var(--mono); text-transform: uppercase; letter-spacing: .5px; }
.post-row-link { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.post-row h3 { font-size: 18px; font-weight: 550; letter-spacing: -.4px; line-height: 1.45; }
.post-row-link:hover h3 { color: var(--accent); }
.row-arrow { color: var(--faint); margin-top: 4px; }
.row-arrow svg { width: 16px; height: 16px; }
.post-row-content > p { color: var(--muted); font-size: 13px; line-height: 1.85; margin-top: 7px; max-width: 610px; }
.post-row-meta { margin-top: 10px; display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 10px; }
.post-row-meta a:hover { text-decoration: underline; }
.meta-dot { color: var(--faint); }
.empty-state { padding: 32px 0; color: var(--muted); }
.pagination { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 35px; color: var(--muted); font-size: 12px; }
.pagination a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding-top: 26px; padding-bottom: 35px; margin-top: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer > div { display: flex; align-items: center; gap: 18px; }
.footer-brand { font-size: 21px; letter-spacing: -1px; font-weight: 700; }
.footer-note { color: var(--muted); font-size: 10px; }
.footer-links { font-size: 10px; color: var(--muted); }
.footer-links a { display: flex; gap: 4px; align-items: center; }
.footer-links svg { width: 12px; height: 12px; }
.footer-links a:hover { color: var(--ink); }
.archive-header { padding: 54px 0 35px; }
.archive-header h1 { font-size: 39px; font-weight: 620; letter-spacing: -1.4px; line-height: 1.2; margin-top: 16px; }
.archive-header > p { color: var(--muted); margin-top: 18px; max-width: 620px; }
.back-link { display: inline-block; color: var(--muted); font-size: 12px; margin-bottom: 32px; }
.back-link:hover { color: var(--accent); }
.archive-header .back-link { margin-bottom: 25px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.topic-card { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.topic-card h2 { margin-top: 10px; font-size: 21px; font-weight: 580; letter-spacing: -.4px; display: flex; justify-content: space-between; }
.topic-card h2 > span { color: var(--accent); }
.topic-card p { color: var(--muted); font-size: 13px; margin-top: 10px; }
.topic-card:hover { border-color: var(--accent); }
.article-header { padding-top: 43px; }
.article-kicker { display: flex; gap: 10px; color: var(--muted); font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .9px; }
.article-kicker a { color: var(--accent); }
.article-header h1 { font-size: clamp(31px, 4vw, 45px); letter-spacing: -1.7px; font-weight: 650; line-height: 1.17; max-width: 760px; margin-top: 17px; text-wrap: balance; }
.article-lede { color: var(--muted); font-size: 18px; line-height: 1.7; margin-top: 22px; max-width: 720px; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 25px; color: var(--muted); font-size: 11px; }
.article-byline a:hover { color: var(--accent); }
.author-monogram { background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: -1px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.article-cover { margin-top: 35px; }
.article-cover img { width: 100%; border-radius: 10px; }
.article-cover figcaption { font-size: 12px; color: var(--muted); text-align: center; padding-top: 10px; }
.article-layout { width: min(800px, calc(100% - 64px)); margin: 39px auto 0; position: relative; display: flex; flex-direction: column; }
.article-content { min-width: 0; font-size: 17px; line-height: 1.95; overflow-wrap: break-word; }
.article-content > * + * { margin-top: 24px; }
.article-content h2 { font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: -.7px; margin-top: 49px; scroll-margin-top: 30px; }
.article-content h3 { font-size: 20px; font-weight: 580; line-height: 1.5; letter-spacing: -.35px; margin-top: 32px; scroll-margin-top: 30px; }
.article-content h4, .article-content h5, .article-content h6 { font-size: 17px; line-height: 1.5; margin-bottom: 0; }
.article-content > :first-child { margin-top: 0; }
.article-content a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent), transparent 60%); }
.article-content a:hover { text-decoration-color: currentColor; }
.article-content ul, .article-content ol { padding-left: 24px; }
.article-content li { padding-left: 4px; margin-top: 6px; }
.article-content strong { font-weight: 650; }
.article-content code { font: .81em/1.6 var(--mono); padding: 3px 6px; border-radius: 4px; background: var(--surface); }
.article-content pre { overflow-x: auto; background: var(--code-bg); color: var(--code-text); border-radius: 8px; padding: 21px 24px; font: 12px/1.85 var(--mono); tab-size: 4; white-space: pre; }
.article-content pre code { padding: 0; background: none; color: inherit; font: inherit; white-space: pre; border-radius: 0; }
.code-block { border-radius: 9px; background: var(--code-bg); color: var(--code-text); overflow: hidden; margin: 27px 0; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px 10px 24px; border-bottom: 1px solid #ffffff15; color: #aab4c7; font: 10px/1.6 var(--mono); }
.copy-code { padding: 3px 8px; border: 1px solid #ffffff2b; border-radius: 4px; background: transparent; color: #cbd3e2; font: 10px/1.6 var(--mono); min-width: 65px; }
.copy-code:hover { background: #ffffff12; }
.code-block pre { margin: 0; border-radius: 0; }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #95a1b5; }
.token.punctuation { color: #c3cee0; }
.token.property, .token.tag, .token.constant, .token.symbol { color: #e6a5ae; }
.token.boolean, .token.number { color: #e4b97e; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin { color: #b2d3a5; }
.token.operator, .token.entity, .token.url { color: #a4c9e8; }
.token.atrule, .token.attr-value, .token.keyword { color: #b8adf1; }
.token.function, .token.class-name { color: #a0c6f3; }
.token.regex, .token.important, .token.variable { color: #e1c28d; }
.token.deleted { color: #e6a5ae; }
.token.inserted { color: #b2d3a5; }
.article-content blockquote { margin-inline: 0; border-left: 2px solid var(--accent); padding: 5px 0 5px 23px; color: var(--muted); font-size: 18px; }
.article-content blockquote > p + p { margin-top: 16px; }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.article-content th, .article-content td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-content th { font-weight: 600; background: var(--surface); }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 7px; }
.table-scroll table { margin: 0; min-width: 520px; }
.article-content .kg-card { max-width: 100%; }
.article-content .kg-width-wide { width: 100%; }
.article-content .kg-width-full { width: 100%; }
.article-content .kg-image { display: block; margin: 0 auto; border-radius: 7px; }
.article-content figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.article-content iframe { max-width: 100%; border: 0; }
.article-content .kg-embed-card { position: relative; }
.article-content .kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.article-content .kg-gallery-row { display: flex; gap: 10px; }
.article-content .kg-gallery-image { flex: 1; min-width: 0; }
.article-content .kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-content .kg-bookmark-container { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; color: var(--ink); text-decoration: none; }
.article-content .kg-bookmark-content { padding: 22px; flex: 1; min-width: 0; }
.article-content .kg-bookmark-title { font-size: 15px; font-weight: 600; }
.article-content .kg-bookmark-description { font-size: 12px; color: var(--muted); margin-top: 8px; }
.article-content .kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 10px; margin-top: 15px; }
.article-content .kg-bookmark-icon { width: 16px; height: 16px; }
.article-content .kg-bookmark-thumbnail { flex: 0 0 28%; }
.article-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.article-content .kg-callout-card, .callout { padding: 20px 23px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.article-content .kg-toggle-card { border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.article-content .kg-button-card { display: flex; }
.article-content .kg-button-card.kg-align-center { justify-content: center; }
.article-content .kg-button-card .kg-btn { background: var(--accent); color: var(--paper); border-radius: 6px; padding: 8px 18px; text-decoration: none; font-size: 14px; }
.article-content .kg-file-card a { border: 1px solid var(--line); border-radius: 8px; padding: 20px; text-decoration: none; color: var(--ink); }
.article-content .kg-header-card h2 { margin-top: 0; }
.article-content .kg-header-card-content { padding: 30px; }
.article-content .kg-product-card-container { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 25px; }
.article-aside { order: -1; margin-bottom: 32px; }
.article-toc { border: 1px solid var(--line); border-radius: 7px; padding: 14px 18px; }
.article-toc summary { font: 9px/1.6 var(--mono); letter-spacing: 1.2px; color: var(--muted); }
.article-toc nav { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding-top: 17px; }
.article-toc a { font-size: 11px; line-height: 1.65; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.article-toc a.toc-sub { padding-left: 22px; font-size: 10px; }
.article-toc a:hover, .article-toc a.active { color: var(--accent); border-color: var(--accent); }
.article-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 25px; border-top: 1px solid var(--line); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { font-size: 10px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; }
.article-tags a:hover { color: var(--accent); }
.related-posts { margin-top: 57px; }
.reading-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); width: 100%; z-index: 40; pointer-events: none; }
.page-detail .article-content { margin-top: 5px; }
.error-page { padding-top: 80px; padding-bottom: 80px; }
.error-page h1 { margin-top: 20px; font-size: 46px; line-height: 1.2; letter-spacing: -1.8px; font-weight: 600; }
.error-page p { margin-top: 25px; color: var(--muted); max-width: 480px; }
.error-page .text-link { margin-top: 30px; }
@media (min-width: 1280px) {
    .article-layout { display: block; }
    .article-aside { position: absolute; top: 0; left: calc(100% + 35px); width: 155px; height: 100%; margin-bottom: 0; }
    .article-toc { position: sticky; top: 38px; border: 0; border-radius: 0; padding: 0; max-height: calc(100vh - 70px); overflow-y: auto; }
    .article-toc summary { list-style: none; pointer-events: none; font-size: 8px; }
    .article-toc summary::-webkit-details-marker { display: none; }
}
@media (max-width: 700px) {
    .shell, .article-layout { width: calc(100% - 40px); }
    .site-header { padding-top: 29px; }
    .identity-mark { width: 46px; height: 46px; }
    .identity-mark svg { width: 32px; height: 32px; }
    .wordmark { font-size: 33px; }
    .navigation-row { margin-top: 14px; }
    .nav { gap: 21px; }
    .nav a { font-size: 12px; }
    .header-actions { gap: 3px; }
    .search-button kbd { display: none; }
    .search-button { width: 35px; padding: 0; }
    .intro { padding-top: 43px; padding-bottom: 40px; }
    .intro h1 { font-size: 37px; letter-spacing: -1.4px; max-width: 460px; }
    .intro > p { font-size: 15px; }
    .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
    .featured-link { grid-template-columns: minmax(0, 1fr) 145px; padding: 23px; gap: 16px; }
    .featured-copy h2 { font-size: 22px; }
    .feature-art { align-self: center; }
    .featured-copy > p { font-size: 12px; }
    .article-feed { margin-top: 40px; }
    .post-row { grid-template-columns: 57px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
    .post-row > time { font-size: 9px; }
    .post-row h3 { font-size: 17px; }
    .post-row-content > p { font-size: 12px; }
    .site-footer { margin-top: 55px; }
    .site-footer > div { gap: 12px; }
    .footer-note { max-width: 150px; font-size: 9px; line-height: 1.5; }
    .footer-links { gap: 12px !important; }
    .article-header h1 { letter-spacing: -1.1px; }
    .article-lede { font-size: 16px; }
    .article-content { font-size: 16px; line-height: 1.9; }
    .article-content h2 { font-size: 24px; }
    .article-content pre { padding: 18px; font-size: 11px; }
    .code-toolbar { padding-left: 18px; }
    .article-bottom { align-items: flex-start; flex-direction: column; }
    .archive-header h1 { font-size: 32px; }
    .topic-grid { gap: 12px; }
    .topic-card { padding: 20px; }
}
@media (max-width: 480px) {
    .featured-link { grid-template-columns: minmax(0, 1fr); }
    .feature-art { display: none; }
    .featured-image { aspect-ratio: 2; }
    .featured-copy h2 { max-width: 290px; font-size: 23px; }
    .intro h1 { font-size: 34px; }
    .section-count { font-size: 9px; }
    .section-heading > h2 { font-size: 20px; }
    .nav { gap: 17px; }
    .topic-pill { padding-inline: 9px; font-size: 10px; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-note { display: none; }
    .article-content .kg-bookmark-thumbnail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    :root { --paper: #fff; --ink: #111; --muted: #444; --line: #ddd; }
    .site-header, .site-footer, .article-aside, .reading-progress, .article-bottom, .related-posts, .copy-code, .preview-notice { display: none !important; }
    .shell, .article-layout { width: 100%; }
    .article-header { padding-top: 0; }
    .article-header .back-link { display: none; }
    .article-content { font-size: 11pt; }
    .article-content pre { white-space: pre-wrap; color: #111; background: #f2f2f2; }
    .code-toolbar { color: #444; }
    .code-block { background: #f2f2f2; break-inside: avoid; }
}
