.tech-detail-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 16px; margin-top:18px; border:1px solid currentColor; border-radius:8px; font-size:14px; font-weight:600; text-decoration:none; }
.tech-detail-button:hover { text-decoration:underline; }
.tech-detail-button:focus-visible { outline:3px solid #8575dc; outline-offset:4px; }
.tech-detail-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:24px; margin-block:24px; }
.tech-detail-grid article { padding:26px; border:1px solid #dce2ef; border-radius:14px; background:#fff; color:#193547; overflow-wrap:anywhere; }
.tech-detail-grid h2 { font-size:24px; }
.tech-detail-grid p { line-height:1.8; }
.tech-detail .ai-hero nav { font-size:14px; margin-bottom:30px; }
.tech-detail .ai-hero nav a { text-decoration:underline; }
.bt-tech .tech-ai-card>a.tech-detail-button { color:#5146ad; font-size:14px; }
.bt-tech .home-projects .tech-detail-button { color:#fff; }

/* Topic pages share typography and accessible primitives, not a page-body template. */
.tech-detail { --topic-accent:#5146b7; --topic-soft:#f2f0fc; }
.tech-story { padding-block:16px 48px; }
.tech-story-section { padding-block:56px; border-bottom:1px solid #dce2ef; scroll-margin-top:32px; }
.tech-story-section:last-child { border-bottom:0; }
.tech-story-section>h2 { max-width:850px; margin-bottom:30px; }
.tech-story-section>p { max-width:900px; font-size:18px; }
.tech-story h3 { font-size:21px; }
.tech-story .tech-label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.12em; font-weight:700; margin-bottom:16px; }
.tech-story ul { padding-left:22px; }
.tech-checks li { margin-block:12px; padding-left:5px; }
.tech-story .tech-checks li::marker { color:var(--topic-accent); }
.tech-story blockquote { margin:20px 0; padding:18px 22px; border-left:3px solid var(--topic-accent); background:var(--topic-soft); font-size:20px; }
.tech-story :is(figure,dl) { margin:0; }
.tech-story :is(dt,th) { font-weight:650; }
.tech-story dd { margin:4px 0 20px; }
.tech-story :is(.tech-flow,.tech-release-timeline) { list-style:none; padding:0; }
.tech-flow { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:20px; margin-block:24px 0; }
.tech-flow li { padding:20px; background:#f4f7fa; border-top:3px solid var(--topic-accent); }
.tech-step { display:block; font-size:12px; letter-spacing:.1em; font-weight:700; color:var(--topic-accent); margin-bottom:15px; }
.tech-table-scroll { overflow-x:auto; margin-block:24px; border:1px solid #dce2ef; border-radius:12px; }
.tech-table-scroll:focus-visible { outline:3px solid #8575dc; outline-offset:4px; }
.tech-table-scroll table { width:100%; border-collapse:collapse; text-align:left; font-size:15px; }
.tech-table-scroll caption { text-align:left; padding:18px 22px; font-weight:600; background:#f0f4f8; }
.tech-table-scroll :is(th,td) { padding:18px 22px; vertical-align:top; border-top:1px solid #dce2ef; min-width:150px; }
.tech-table-scroll thead { background:#18364c; color:#fff; }
.tech-table-scroll tbody th { width:24%; color:#18364c; }
.tech-table-scroll tbody tr:nth-child(even) { background:#f8fafc; }
.tech-disclosure { padding:22px 0; border-bottom:1px solid #dce2ef; }
.tech-disclosure summary { cursor:pointer; font-size:19px; font-weight:600; padding:4px 0; }
.tech-disclosure summary::marker { color:var(--topic-accent); }
.tech-disclosure summary:focus-visible { outline:3px solid #8575dc; outline-offset:5px; }
.tech-disclosure p { max-width:850px; padding-left:20px; }
.tech-note-panel { padding:28px 32px; border-left:4px solid var(--topic-accent); background:var(--topic-soft); margin-top:28px; }
.tech-code { overflow:hidden; border-radius:12px; color:#e4edf4; background:#112b3c; }
.tech-code figcaption { padding:14px 20px; border-bottom:1px solid #ffffff26; color:#c5d9e9; font-size:12px; letter-spacing:.04em; }
.tech-code pre { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; padding:24px; font-size:14px; line-height:1.9; tab-size:2; }
.tech-story .tech-reference { font-size:13px; margin-top:24px; }
.tech-project-output { background:#edf2f7; padding:48px 0; }
.tech-project-output p:not(.ai-eyebrow) { max-width:800px; }
.tech-story :is(.tech-chat-workbench,.tech-document-desk,.tech-evidence-board,.tech-fork,.tech-web-layers,.tech-split-editorial,.tech-dual-track,.tech-sdk-book,.tech-ios-showcase,.tech-rag-layout) { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start; }
.tech-story :is(.tech-boundary-map,.tech-component-gallery,.tech-signal-columns) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.tech-story :is(.tech-chat-workbench,.tech-document-desk,.tech-evidence-board,.tech-fork,.tech-budget-board,.tech-ios-showcase,.tech-rag-layout) { padding:36px; background:#f0f4f8; border-radius:20px; }
.tech-story :is(.tech-chat-workbench,.tech-document-desk,.tech-evidence-board,.tech-ios-showcase,.tech-rag-layout) { align-items:center; }
.tech-story :is(.tech-tool-receipt,.tech-paper,.tech-evidence-fields,.tech-fork-path,.tech-track,.tech-sdk-notes,.tech-component-specimen,.tech-answer-sheet) { padding:28px; background:white; border:1px solid #dce2ef; border-radius:12px; }
.tech-tool-receipt dl { display:grid; grid-template-columns:auto 1fr; gap:10px 20px; margin-top:22px; font-size:14px; }
.tech-tool-receipt dd { margin:0; overflow-wrap:anywhere; }
.tech-document-desk { background:#f3efe7!important; }
.tech-paper { box-shadow:8px 10px 0 #dbd4c5; min-height:310px; }
.tech-paper mark { display:block; background:#fff0ad; color:#453a14; padding:16px; margin-top:24px; }
.tech-margin-notes { border-left:2px dashed #b6a890; padding-left:28px; }
.tech-evidence-board { background:#eef4f1!important; }
.tech-scan { background:#fffdf7; padding:32px; border:1px solid #d6d7c9; transform:rotate(-2deg); box-shadow:8px 10px 0 #d8e2dc; }
.tech-scan-lines { height:60px; background:repeating-linear-gradient(to bottom,transparent 0,transparent 16px,#d1d6d2 17px,#d1d6d2 18px); margin-top:20px; }
.tech-boundary-map { padding:28px; background:#eaf1f8; border:1px dashed #7d9cba; border-radius:16px; }
.tech-boundary { padding:24px; background:white; border:2px solid #a8bed2; border-radius:10px; }
.tech-cloud-route { border-left:4px solid #d48b31; padding:0 0 0 24px; }
.tech-cloud-route .tech-flow li { background:#fff5e8; border-color:#c27e20; }
.tech-fork-path:first-child { border-top:5px solid #558c9c; }
.tech-fork-path:last-child { border-top:5px solid #8672af; }
.tech-browser-shell { border:1px solid #b9c7d3; border-radius:14px; overflow:hidden; box-shadow:0 14px 35px #19354712; }
.tech-browser-bar { background:#edf2f7; padding:14px 24px; border-bottom:1px solid #cfd9e3; font-size:13px; }
.tech-web-layers { padding:28px; }
.tech-web-screen { padding:20px; }
.tech-job-console { background:#152d36; color:#e3eeeb; padding:32px; border-radius:12px; border-top:5px solid #8dbf9e; }
.tech-job-console ol { padding-left:25px; font-family:monospace; }
.tech-job-console li { padding-block:13px; border-bottom:1px solid #ffffff20; }
.tech-job-console strong { display:block; margin-top:24px; color:#c6e7cd; }
.tech-onion { padding:24px; background:#f1edf9; border-radius:80px 12px; max-width:800px; margin-inline:auto; }
.tech-onion-ring { border:1px solid #baacd9; padding:24px; border-radius:60px 10px; }
.tech-onion-ring>span { display:block; text-align:center; font-size:14px; margin-bottom:16px; }
.tech-onion-core { padding:26px; background:#5d4b87; color:#fff; border-radius:40px 8px; text-align:center; }
.tech-track:first-child { border-top:6px solid #d48842; }
.tech-track:last-child { border-top:6px solid #6889a9; }
.tech-state-diagram { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.tech-state { padding:24px; border:1px solid #ccd7df; border-radius:24px; min-height:230px; }
.tech-state:nth-child(2) { background:#eaf4ec; border-color:#9ebba4; }
.tech-state:nth-child(3) { background:#f5f2e9; }
.tech-state:nth-child(4) { background:#fbefeb; }
.tech-lifecycle { padding:32px; border-left:4px solid #9c6549; background:#fcf3ed; }
.tech-budget-board { display:grid; grid-template-columns:1.2fr 1fr; gap:40px; background:#18364c!important; color:#fff; }
.tech-budget-board dl { border-left:1px solid #ffffff40; padding-left:32px; }
.tech-budget-board dt { color:#c6dcd2; }
.tech-budget-board dd { font-size:14px; }
.tech-schema { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; padding:28px; border:1px solid #dce2ef; background:#f4f7fa; }
.tech-entity h3 { margin-bottom:16px; }
.tech-schema-link { font-size:14px; font-weight:600; }
.tech-route-map { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border:1px solid #d5dfdd; border-radius:16px; overflow:hidden; }
.tech-route-stop { padding:30px; border-bottom:5px solid #668a80; background:#eef5f1; }
.tech-route-stop:nth-child(2) { background:#fbf1ec; border-color:#b7836b; }
.tech-route-stop:nth-child(3) { background:#f0eef7; border-color:#8975ac; }
.tech-ffi { display:grid; grid-template-columns:1fr .8fr 1fr; gap:20px; align-items:center; }
.tech-ffi-side { padding:28px; border:1px solid #dce2ef; }
.tech-ffi-contract { text-align:center; padding:28px 14px; border-block:2px dashed #7b94a4; }
.tech-definition-ledger { display:grid; grid-template-columns:1fr 1.5fr; gap:22px 40px; padding:32px; background:#f1f5f7; }
.tech-definition-ledger dd { margin:0; }
.tech-ios-showcase { grid-template-columns:310px 1fr!important; gap:64px!important; background:linear-gradient(125deg,#e4edf5,#f3f0fa)!important; padding:48px!important; }
.tech-phone { width:100%; max-width:290px; background:#fff; border:9px solid #173548; border-radius:40px; padding:22px; box-shadow:16px 22px 40px #18364c24; }
.tech-phone-speaker { display:block; height:7px; width:65px; background:#173548; border-radius:8px; margin:0 auto 28px; }
.tech-phone .tech-label { font-size:9px; }
.tech-phone h3 { font-size:24px; margin-bottom:24px; }
.tech-phone>strong { font-size:17px; }
.tech-phone p { font-size:13px; }
.tech-phone-task { padding:15px 12px; margin-top:16px; background:#edf4f1; border-radius:10px; font-size:13px; }
.tech-phone-sync { font-size:12px; padding:14px 8px; margin-top:22px; border-top:1px solid #dce2ef; text-align:center; color:#76551d; }
.tech-ios-caption h3 { font-size:clamp(24px,3vw,34px); }
.tech-release-timeline { display:grid; grid-template-columns:1fr 1fr; gap:32px; counter-reset:release; }
.tech-release-timeline li { padding:22px 0 22px 62px; border-top:2px solid #9cb3c4; position:relative; counter-increment:release; }
.tech-release-timeline li::before { content:counter(release,decimal-leading-zero); position:absolute; left:0; top:20px; font-size:24px; color:#6c8293; }
.tech-api-exchange { display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.tech-api-exchange .tech-code { border-radius:10px 0 0 10px; }
.tech-api-exchange .tech-code:last-child { background:#20483f; border-radius:0 10px 10px 0; }
.tech-hub-map { display:grid; grid-template-columns:1fr 1.25fr 1fr; gap:20px; align-items:center; padding:32px; background:#eef3f8; border-radius:20px; }
.tech-hub-node { padding:22px; background:white; border:1px solid #bfcfdb; }
.tech-hub-center { grid-column:2; grid-row:1 / 3; padding:28px; background:#254b62; color:#fff; text-align:center; border-radius:50px; }
.tech-event-rail { border-left:3px solid #8ba4ad; padding-left:28px; display:grid; gap:16px; }
.tech-event { padding:24px; background:#edf6f1; border:1px solid #c3d9cd; border-radius:8px; }
.tech-event-repeat { background:#f4f2fa; border-style:dashed; }
.tech-event-held { background:#fcf3e6; border-color:#ddc9a9; }
.tech-sdk-book { background:#eaf0f5; padding:28px; border-radius:12px; }
.tech-sdk-notes { border-left:4px solid #7b97ad!important; }
.tech-component-gallery { padding:28px; background:#f2f0f7; border-radius:18px; }
.tech-component-specimen { padding:22px!important; }
.tech-sample-button { display:block; padding:12px 18px; background:#5146b7; color:white; border-radius:8px; text-align:center; font-weight:600; }
.tech-sample-pending { background:#e3e0f1; color:#4c4665; border:1px dashed #857fa2; }
.tech-sample-error { display:block; padding:12px; background:#f8eae8; color:#8a302c; font-size:14px; border-left:3px solid #ac514a; }
.tech-token-ledger { display:grid; grid-template-columns:180px 1fr; gap:20px 36px; padding:32px; border:1px solid #dce2ef; }
.tech-token-ledger dd { margin:0; }
.tech-terminal { background:#0e2533; color:#e1edf1; border-radius:12px; padding:28px; }
.tech-terminal .tech-code { background:transparent; border:1px solid #ffffff28; }
.tech-terminal>p { font-size:14px; color:#bdcdd5; }
.tech-storage-shelves { display:grid; gap:12px; }
.tech-storage-drawer { display:grid; grid-template-columns:180px 1fr 1.4fr; gap:24px; align-items:center; padding:28px; background:#eff4f5; border-left:8px solid #5f8d91; }
.tech-storage-drawer .tech-label,.tech-storage-drawer p { margin:0; }
.tech-lineage { padding:28px; background:#faf4e9; border-radius:20px; }
.tech-lineage .tech-flow li { background:white; border-color:#b18f4b; }
.tech-search-demo { border:1px solid #cbd7df; border-radius:16px; overflow:hidden; }
.tech-search-query { background:#edf4f8; padding:22px 28px; font-size:19px; border-bottom:1px solid #cbd7df; }
.tech-search-demo ol { margin:0; padding:16px 28px 16px 54px; }
.tech-search-demo li { padding:20px 10px; border-bottom:1px solid #dce2ef; }
.tech-search-demo li:last-child { border:0; color:#6e5e56; }
.tech-cloud-zones { padding:24px; background:#edf3fa; border:1px dashed #8ca6c1; border-radius:16px; }
.tech-zone { padding:24px; border:1px solid #b6c8db; margin:16px; background:white; }
.tech-zone.application { margin-inline:50px; background:#edf5f3; }
.tech-zone.data { margin-inline:90px; background:#e4eef6; }
.tech-release-gates { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.tech-gate { padding:24px; border-left:3px solid #618977; background:#eef4f0; }
.tech-rollback { padding:28px; background:#fbf1e6; border-left:4px solid #bb8847; }
.tech-incident-console { background:#152e40; color:#e5edf4; padding:32px; border-radius:14px; }
.tech-incident-heading { padding-bottom:28px; border-bottom:1px solid #ffffff35; margin-bottom:28px; }
.tech-incident-heading .tech-label { color:#ebc48b; }
.tech-signal-columns>div { padding-top:20px; border-top:3px solid #8cb6bd; }
.tech-authorization-matrix .tech-table-scroll { border:2px solid #a6b6cf; }
.tech-access-checks { padding:22px; border:1px solid #d3dbe4; border-radius:14px; }
.tech-risk-pyramid { display:flex; flex-direction:column; align-items:center; gap:14px; }
.tech-risk-tier { width:100%; padding:26px; background:#eef4f8; border:1px solid #b8cbda; text-align:center; }
.tech-risk-tier.critical { width:65%; background:#fbefeb; border-color:#dbbcb1; }
.tech-risk-tier.contracts { width:82%; background:#f4f0fa; border-color:#cbbce1; }
.tech-playbook { display:grid; grid-template-columns:.8fr 1.6fr; gap:40px; padding:32px; background:#f2f4f6; border-top:5px solid #9c6d54; }
.tech-playbook aside { padding:24px; background:#fff; border:1px solid #dce2ef; align-self:start; }
.tech-playbook ol { margin:0; padding-left:25px; }
.tech-playbook li { padding:0 0 24px 12px; border-bottom:1px solid #d0d9df; margin-bottom:24px; }
.tech-source-stack>div { padding:18px; margin-top:16px; background:white; border-left:5px solid #859ab2; box-shadow:4px 5px 0 #dae2eb; }
.tech-answer-sheet blockquote { font-size:16px; }
.tech-agent-machine { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:28px; background:#f1f2f8; }
.tech-agent-state { padding:26px; background:white; border:1px solid #ccd2df; border-radius:12px; }
.tech-agent-state.gate { border:2px dashed #9c86ac; }
.tech-agent-state.terminal { background:#e6efeb; grid-column:2 / 4; }
.tech-eval-scoreboard { padding:28px; background:#eaf1ed; border-radius:16px; }
.tech-eval-scoreboard .tech-table-scroll { margin-bottom:0; background:white; }
.tech-eval-casebook { border-left:4px solid #769b8e; padding-left:28px; }
.tech-latency-strip { display:grid; grid-template-columns:1.3fr 1.8fr 1.4fr 1fr; gap:4px; }
.tech-latency-part { padding:26px; background:#e7eef6; border-top:5px solid #6f8caa; }
.tech-latency-part:nth-child(2) { background:#eee8f6; border-color:#9075ac; }
.tech-latency-part:nth-child(3) { background:#e6f1ed; border-color:#6d9b8c; }
.tech-latency-part:nth-child(4) { background:#faf0e3; border-color:#b3956b; }
.tech-page-ios .ai-hero { background:radial-gradient(ellipse at top right,#536987,transparent 65%),#193446; }
.tech-page-sql .ai-hero,.tech-page-python .ai-hero { background:radial-gradient(ellipse at top right,#3f7166,transparent 65%),#183b35; }
.tech-page-claude-and-anthropic .ai-hero { background:radial-gradient(ellipse at top right,#976f58,transparent 65%),#49372f; }
.tech-page-api-design-and-engineering .ai-hero,.tech-page-c-plus-plus-and-specialized-ecosystems .ai-hero { background:radial-gradient(ellipse at top right,#426e86,transparent 65%),#102733; }
.tech-page-design-systems .ai-hero,.tech-page-swift .ai-hero { background:radial-gradient(ellipse at top right,#80718f,transparent 65%),#3b344e; }
@media(max-width:1000px) {
 .tech-state-diagram,.tech-release-gates,.tech-latency-strip { grid-template-columns:1fr 1fr; }
 .tech-boundary-map,.tech-component-gallery { grid-template-columns:1fr!important; }
 .tech-ios-showcase { grid-template-columns:270px 1fr!important; gap:30px!important; padding:30px!important; }
 .tech-storage-drawer { grid-template-columns:1fr 1.5fr; }
 .tech-storage-drawer .tech-label { grid-column:1 / -1; }
 .tech-ffi { grid-template-columns:1fr; }
 .tech-ffi-contract { padding:18px; }
}
@media(max-width:720px) {
 .tech-story-section { padding-block:36px; }
 .tech-story :is(.tech-chat-workbench,.tech-document-desk,.tech-evidence-board,.tech-fork,.tech-web-layers,.tech-split-editorial,.tech-dual-track,.tech-sdk-book,.tech-ios-showcase,.tech-rag-layout,.tech-budget-board,.tech-schema,.tech-route-map,.tech-api-exchange,.tech-hub-map,.tech-signal-columns,.tech-playbook,.tech-agent-machine,.tech-definition-ledger,.tech-token-ledger) { grid-template-columns:1fr!important; }
 .tech-story :is(.tech-chat-workbench,.tech-document-desk,.tech-evidence-board,.tech-fork,.tech-budget-board,.tech-ios-showcase,.tech-rag-layout) { padding:22px!important; gap:28px!important; }
 .tech-ios-showcase .tech-phone { margin-inline:auto; }
 .tech-story :is(.tech-hub-center,.tech-agent-state.terminal) { grid-column:auto; grid-row:auto; }
 .tech-hub-center { border-radius:12px; }
 .tech-budget-board dl { border-left:0; border-top:1px solid #ffffff40; padding:24px 0 0; }
 .tech-release-timeline { grid-template-columns:1fr; }
 .tech-cloud-zones { padding:12px; }
 .tech-zone,.tech-zone.application,.tech-zone.data { margin:12px 0; }
 .tech-api-exchange .tech-code { border-radius:10px!important; }
 .tech-story :is(.tech-component-gallery,.tech-lineage,.tech-eval-scoreboard,.tech-playbook,.tech-sdk-book,.tech-incident-console) { padding:20px; }
 .tech-risk-tier.critical { width:84%; }
 .tech-risk-tier.contracts { width:92%; }
}
@media(max-width:450px) {
 .tech-state-diagram,.tech-release-gates,.tech-latency-strip,.tech-storage-drawer { grid-template-columns:1fr; }
 .tech-story .tech-tool-receipt dl { grid-template-columns:1fr; }
 .tech-tool-receipt dd { margin-bottom:12px; }
 .tech-onion,.tech-onion-ring { padding:15px; border-radius:25px 8px; }
 .tech-code pre { padding:16px; font-size:12px; }
}
