:root {
  --paper: #0a090f;
  --surface: #161616;
  --surface-deep: #0d0d10;
  --ink: #f0f0f0;
  --muted: #b6aaaa;
  --dim: #777;
  --line: rgba(255, 255, 255, .09);
  --signal: #d91a01;
  --signal-soft: #ff8070;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 15, .86);
  backdrop-filter: blur(16px);
}
.brand-logo { display: block; width: 152px; height: 24px; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.header-nav { display: flex; gap: 30px; color: var(--muted); font: 12px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.header-nav a { padding: 31px 0 28px; border-bottom: 2px solid transparent; }
.header-nav a:hover, .header-nav a.active { color: var(--signal-soft); }
.header-nav a:hover { border-bottom-color: var(--signal); }
.articles-page .header-nav a.active { border-bottom-color: var(--signal); }

.articles-shell { width: min(920px, 90vw); margin: 0 auto; padding: 78px 0 120px; }
.articles-kicker { margin: 0 0 13px; color: var(--signal-soft); font: 10px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.25; letter-spacing: -.045em; }
.articles-shell h1 { font-size: clamp(38px, 5vw, 58px); }
.articles-lede { max-width: 540px; margin: 21px 0 42px; color: var(--muted); font-size: 15px; line-height: 2; }
.language-switch {
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b6aaaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  color: var(--muted);
  cursor: pointer;
  font: 600 12px/1 "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: .06em;
  padding: 6px 27px 6px 10px;
  transition: color .2s, border-color .2s;
}
.language-switch:hover { border-color: rgba(255,255,255,.34); color: var(--ink); }
.language-switch:focus { outline: none; border-color: rgba(255,128,112,.65); }
.language-switch option { background: #1a1a1a; color: var(--ink); }
.article-list { display: grid; gap: 14px; margin-top: 25px; }
.article-list-card { border: 1px solid rgba(255,128,112,.26); background: var(--surface); box-shadow: 6px 6px 0 rgba(217,26,1,.15); transition: border-color .18s ease, transform .18s ease; }
.article-list-card:hover { border-color: rgba(217,26,1,.85); transform: translate(-2px, -2px); }
.article-list-card a { display: block; padding: 28px 30px; }
.article-list-meta { display: flex; gap: 9px; color: #888; font: 10px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; }
.article-list-card h2 { margin: 15px 0 10px; color: var(--ink); font-size: 25px; letter-spacing: -.04em; }
.article-list-card p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.article-list-link { display: inline-block; margin-top: 21px; color: var(--signal-soft); font: 10px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .09em; }
.article-list-empty { margin: 25px 0 0; padding: 32px; border: 1px dashed rgba(255,128,112,.3); color: var(--muted); font-size: 14px; }

.reading-progress { position: fixed; top: 82px; left: 0; z-index: 11; width: 100%; height: 3px; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--signal); transition: width .08s linear; }
.article-shell { max-width: 920px; margin: 0 auto; padding: 70px 5vw 100px; }
.article-heading { max-width: 780px; padding: 45px 0 72px; }
.lede { max-width: 650px; margin: 28px 0 25px; color: var(--muted); font-size: 15px; line-height: 2; letter-spacing: .02em; }
.article-meta { display: flex; gap: 13px; align-items: center; color: var(--dim); font: 11px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.meta-separator { color: var(--signal); font-size: 17px; }
.prose { max-width: 760px; color: var(--muted); font-size: 16px; line-height: 2.15; letter-spacing: .025em; }
.prose p { margin: 0 0 24px; }
.intro-copy { margin-bottom: 70px !important; color: #e8e1df; font-size: 18px; line-height: 2.05; }
.prose h2 { margin: 72px 0 21px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink); font-size: 27px; line-height: 1.5; letter-spacing: -.04em; }
.prose h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; line-height: 1.5; letter-spacing: -.025em; }
.inline-link { color: var(--signal-soft); text-decoration: underline; text-decoration-color: rgba(255,128,112,.48); text-underline-offset: 4px; }
.technical-note { padding: 16px 18px; border-left: 2px solid var(--signal); background: rgba(217,26,1,.07); color: var(--muted); font: 12px/1.9 "SFMono-Regular", Consolas, monospace; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 28px; padding: 0; list-style: none; }
.prose ul li { position: relative; margin: 0 0 13px; padding-left: 21px; }
.prose ul li::before { position: absolute; top: .82em; left: 3px; width: 5px; height: 5px; background: var(--signal-soft); content: ""; }
.prose ul li:last-child { margin-bottom: 0; }
.reason-list { margin: 35px 0 64px; border-top: 1px solid var(--line); }
.reason-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.reason-item p { margin: 0; font-size: 14px; line-height: 1.85; }

.code-card { overflow: hidden; margin: 35px 0 56px; border: 1px solid #4a2b26; border-radius: 6px; background: #161111; box-shadow: 9px 9px 0 rgba(217,26,1,.2); color: #f2e3df; }
.code-toolbar { display: flex; height: 43px; align-items: center; gap: 11px; padding: 0 16px; background: #211414; color: #cdaea7; font: 10px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.code-dots { display: flex; gap: 5px; }.code-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #76534d; }.code-dots i:first-child { background: var(--signal); }
.code-filename { margin-right: auto; }.copy-button { padding: 5px 9px; border: 1px solid #70453d; background: transparent; color: #f0cfc8; cursor: pointer; font: inherit; }.copy-button:hover { background: #43201a; }
.code-card pre { overflow-x: auto; margin: 0; padding: 22px 21px 25px; font: 13px/1.85 "SFMono-Regular", Consolas, monospace; }.code-card code { white-space: pre; }

.system-figure { margin: 70px 0; padding: 21px; border: 1px solid rgba(255,128,112,.25); background: #121113; }
.figure-header { display: flex; justify-content: space-between; color: var(--signal-soft); font: 9px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.system-map { position: relative; min-height: 300px; margin: 20px 0 8px; background-image: linear-gradient(rgba(217,26,1,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(217,26,1,.08) 1px, transparent 1px); background-size: 24px 24px; }
.diagram-boundary, .data-plane-box { position: absolute; border: 1px solid rgba(217,26,1,.45); background: rgba(10,9,15,.2); }
.diagram-boundary { inset: 9% 3% 8% 3%; }.data-plane-box { top: 15%; right: 4%; width: 28%; height: 70%; }
.diagram-label { position: absolute; z-index: 2; padding: 0 7px; background: #161616; color: var(--signal-soft); font: 9px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.platform-label { top: -10px; left: 11px; }.control-label { top: 13%; left: 40%; }.data-label { top: -10px; left: 10px; }.region-label { top: 10px; left: 10px; color: #f24022; }
.map-node { position: absolute; z-index: 3; display: flex; width: 145px; min-height: 92px; flex-direction: column; align-items: center; justify-content: center; padding: 15px 12px; border: 1px solid rgba(255,128,112,.35); background: #202020; box-shadow: 4px 4px 0 rgba(217,26,1,.12); text-align: center; }
.map-node strong, .map-node small { display: block; }.map-node strong { margin-top: 8px; color: var(--ink); font-size: 12px; }.map-node small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }.node-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: rgba(217,26,1,.18); color: var(--signal-soft); font-weight: 800; }
.map-user { top: 35%; left: 4%; }.map-kamui { top: 34%; left: 39%; border-color: var(--signal); background: var(--surface-deep); }.diagram-logo { width: 112px; height: auto; }.map-kamui strong { margin-top: 6px; }.map-k8s { top: 17%; left: 50%; width: 75%; min-height: 78px; transform: translateX(-50%); }.map-data { bottom: 10%; left: 50%; width: 75%; min-height: 68px; transform: translateX(-50%); }
.map-line { position: absolute; z-index: 2; height: 1px; background: var(--signal-soft); opacity: .75; }.line-one { top: 50%; left: 24%; width: 16%; }.line-two { top: 50%; left: 56%; width: 17%; }.map-line::after { position: absolute; top: -3px; right: -1px; width: 6px; height: 6px; border-top: 1px solid var(--signal-soft); border-right: 1px solid var(--signal-soft); content: ""; transform: rotate(45deg); }.map-line span { position: absolute; top: -16px; left: 50%; color: var(--signal-soft); font: 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; transform: translateX(-50%); white-space: nowrap; }
.system-figure figcaption { color: var(--muted); font-size: 11px; line-height: 1.8; }
.edge-figure { margin: 70px 0; padding: 21px; border: 1px solid rgba(255,128,112,.25); background: #121113; }
.edge-figure figcaption { margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.edge-diagram-scroll { max-width: 100%; margin-top: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: rgba(255,128,112,.55) #121113; scrollbar-width: thin; }
.edge-diagram-scroll:focus-visible { outline: 1px solid var(--signal-soft); outline-offset: 4px; }
.edge-architecture { display: grid; min-width: 940px; min-height: 290px; grid-template-columns: 120px 48px 390px 48px 334px; gap: 0; align-items: center; padding: 22px; background-image: linear-gradient(rgba(217,26,1,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(217,26,1,.08) 1px, transparent 1px); background-size: 24px 24px; }
.edge-zone { position: relative; min-height: 224px; padding: 38px 16px 16px; border: 1px solid rgba(255,128,112,.38); background: rgba(10,9,15,.34); }
.edge-zone-label { position: absolute; top: -8px; left: 11px; padding: 0 7px; background: #121113; color: var(--signal-soft); font: 9px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.edge-node { display: flex; min-height: 90px; flex-direction: column; align-items: center; justify-content: center; padding: 12px 10px; border: 1px solid rgba(255,128,112,.36); background: #202020; box-shadow: 4px 4px 0 rgba(217,26,1,.12); text-align: center; }
.edge-node strong { display: block; margin-top: 8px; color: var(--ink); font-size: 12px; }.edge-node small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }.edge-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: rgba(217,26,1,.18); color: var(--signal-soft); font-weight: 800; }
.edge-client { min-width: 120px; }.edge-worker { border-color: var(--signal); background: var(--surface-deep); }.edge-cloudflare { display: grid; grid-template-columns: 145px 32px 145px; align-items: center; gap: 10px; }.edge-split { display: flex; height: 96px; flex-direction: column; justify-content: space-around; }.edge-split i { display: block; height: 1px; background: var(--signal-soft); }.edge-static, .edge-tunnel { min-height: 82px; }.edge-cloudflare .edge-static { grid-column: 3; grid-row: 1; }.edge-cloudflare .edge-tunnel { grid-column: 3; grid-row: 2; }.edge-cloudflare .edge-worker { grid-column: 1; grid-row: 1 / span 2; }.edge-cloudflare .edge-split { grid-column: 2; grid-row: 1 / span 2; }
.edge-origin { display: grid; grid-template-columns: 126px 20px 126px; align-items: center; gap: 10px; }.edge-router, .edge-app { min-height: 104px; }.edge-arrow { position: relative; height: 1px; background: var(--signal-soft); opacity: .8; }.edge-arrow::after { position: absolute; top: -3px; right: -1px; width: 6px; height: 6px; border-top: 1px solid var(--signal-soft); border-right: 1px solid var(--signal-soft); content: ""; transform: rotate(45deg); }.edge-arrow span { position: absolute; top: -16px; left: 50%; color: var(--signal-soft); font: 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; transform: translateX(-50%); white-space: nowrap; }.edge-arrow-app { width: 100%; }.edge-arrow-app span { display: none; }
.request-trace { display: grid; min-width: 970px; grid-template-columns: 150px 52px 220px 52px 155px 52px 180px; align-items: center; padding: 26px 22px; background-image: linear-gradient(rgba(217,26,1,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(217,26,1,.08) 1px, transparent 1px); background-size: 24px 24px; }.trace-node { position: relative; display: flex; min-height: 126px; flex-direction: column; justify-content: center; padding: 21px 15px 15px; border: 1px solid rgba(255,128,112,.36); background: #202020; box-shadow: 4px 4px 0 rgba(217,26,1,.12); }.trace-node strong { color: var(--ink); font-size: 13px; }.trace-node small { margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.55; }.trace-label { position: absolute; top: 9px; left: 12px; color: var(--signal-soft); font: 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }.trace-worker { border-color: var(--signal); background: var(--surface-deep); }.trace-tunnel { background: #1b1b1b; }.trace-router { background: #1a1819; }.trace-arrow { position: relative; height: 1px; background: var(--signal-soft); opacity: .84; }.trace-arrow::after { position: absolute; top: -3px; right: -1px; width: 6px; height: 6px; border-top: 1px solid var(--signal-soft); border-right: 1px solid var(--signal-soft); content: ""; transform: rotate(45deg); }.trace-arrow span { position: absolute; top: -18px; left: 50%; color: var(--signal-soft); font: 8px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; text-align: center; transform: translateX(-50%); white-space: nowrap; }
.update-map { display: grid; min-width: 0; gap: 18px; padding: 22px; background-image: linear-gradient(rgba(217,26,1,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(217,26,1,.08) 1px, transparent 1px); background-size: 24px 24px; }.update-lane { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 14px; align-items: center; padding: 16px; border: 1px solid rgba(255,128,112,.31); background: rgba(17,15,17,.72); }.update-lane > strong { color: var(--ink); font-size: 12px; line-height: 1.55; }.update-steps { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr); align-items: center; }.update-steps span { display: flex; min-width: 0; min-height: 57px; align-items: center; justify-content: center; padding: 8px; border: 1px solid rgba(255,128,112,.34); background: #202020; color: #d8d1cf; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; text-align: center; }.update-steps i { position: relative; display: block; height: 1px; background: var(--signal-soft); opacity: .82; }.update-steps i::after { position: absolute; top: -3px; right: -1px; width: 6px; height: 6px; border-top: 1px solid var(--signal-soft); border-right: 1px solid var(--signal-soft); content: ""; transform: rotate(45deg); }
.edge-flow-figure { padding-bottom: 22px; }.edge-steps { display: grid; margin: 28px 0 0; padding: 0; grid-template-columns: repeat(4, 1fr); list-style: none; }.edge-steps li { position: relative; min-height: 150px; padding: 22px 17px 16px; border: 1px solid rgba(255,128,112,.27); background: rgba(32,32,32,.72); }.edge-steps li + li { border-left: 0; }.edge-step-number { display: block; margin-bottom: 22px; color: var(--signal-soft); font: 10px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }.edge-steps strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.55; }.edge-steps small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }

/* Workers KV / Cache optimization article */
.prose p code, .prose li code { padding: .08em .36em; border: 1px solid rgba(255,128,112,.2); border-radius: 3px; background: rgba(217,26,1,.08); color: #ffaaa0; font: .88em/1.5 "SFMono-Regular", Consolas, monospace; }
.cache-figure { overflow-x: auto; }.cache-overview-figure { overflow: hidden; }.cache-overview-figure .edge-diagram-scroll { overflow-x: auto; }
.cache-overview { display: grid; min-width: 1040px; padding: 28px; grid-template-columns: 118px 34px 168px 34px 150px 34px 142px 42px 150px; grid-template-rows: repeat(2, 94px); align-items: stretch; background-image: linear-gradient(rgba(217,26,1,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(217,26,1,.07) 1px, transparent 1px); background-size: 24px 24px; }
.cache-node { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 14px 10px; border: 1px solid rgba(255,128,112,.34); background: rgba(28,27,28,.96); text-align: center; box-shadow: 4px 4px 0 rgba(217,26,1,.1); }
.cache-node > span { position: absolute; top: 9px; left: 10px; color: var(--signal-soft); font: 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }.cache-node strong { color: var(--ink); font-size: 12px; line-height: 1.45; }.cache-node small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.cache-client { grid-column: 1; grid-row: 1 / 3; }.cache-static-cache { grid-column: 3; grid-row: 1 / 3; border-color: rgba(111,215,177,.45); }.cache-route-cache { grid-column: 5; grid-row: 1 / 3; border-color: rgba(255,190,101,.48); }.cache-kv { grid-column: 7; grid-row: 1 / 3; border-color: var(--signal); }.cache-static-store { grid-column: 9; grid-row: 1; }.cache-origin { grid-column: 9; grid-row: 2; }
.cache-connector { position: relative; align-self: center; height: 1px; background: var(--signal-soft); }.cache-connector::after, .cache-negative-flow > i::after, .cache-order-arrow::after, .cache-merge-arrow::after { position: absolute; top: -3px; right: 0; width: 6px; height: 6px; border-top: 1px solid var(--signal-soft); border-right: 1px solid var(--signal-soft); content: ""; transform: rotate(45deg); }.cache-connector:nth-of-type(1) { grid-column: 2; grid-row: 1 / 3; }.cache-connector:nth-of-type(2) { grid-column: 4; grid-row: 1 / 3; }.cache-connector:nth-of-type(3) { grid-column: 6; grid-row: 1 / 3; }
.cache-branch-lines { position: relative; grid-column: 8; grid-row: 1 / 3; }.cache-branch-lines::before { position: absolute; top: 50%; left: 0; width: 50%; height: 1px; background: var(--signal-soft); content: ""; }.cache-branch-lines i { position: absolute; left: 50%; width: 50%; border-top: 1px solid var(--signal-soft); }.cache-branch-lines i:first-child { top: 25%; height: 25%; border-right: 0; border-left: 1px solid var(--signal-soft); }.cache-branch-lines i:last-child { top: 50%; height: 25%; border-bottom: 1px solid var(--signal-soft); border-left: 1px solid var(--signal-soft); }.cache-branch-lines i::after { position: absolute; right: -1px; width: 6px; height: 6px; border-top: 1px solid var(--signal-soft); border-right: 1px solid var(--signal-soft); content: ""; transform: rotate(45deg); }.cache-branch-lines i:first-child::after { top: -4px; }.cache-branch-lines i:last-child::after { bottom: -4px; }

.cache-before-grid { display: grid; gap: 16px; padding: 24px; grid-template-columns: repeat(2, 1fr); }.cache-before-grid > section { padding: 20px; border: 1px solid rgba(255,128,112,.3); background: #1b1a1b; }.cache-domain-label, .cache-sequence-label { display: block; margin-bottom: 10px; color: var(--signal-soft); font: 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .11em; }.cache-before-grid strong { display: block; color: var(--ink); font-size: 13px; }.cache-before-grid small { display: block; margin-top: 13px; color: var(--muted); font-size: 10px; }.cache-read-chain { display: flex; margin-top: 18px; align-items: center; }.cache-read-chain b { padding: 10px 12px; border: 1px solid var(--signal); color: #ffc0b8; font: 9px/1 "SFMono-Regular", Consolas, monospace; }.cache-read-chain i { width: 28px; height: 1px; background: var(--signal-soft); }

.cache-decision-tree { display: grid; gap: 14px; padding: 24px; grid-template-columns: repeat(3, 1fr); }.cache-decision-question { grid-column: 1 / 4; justify-self: center; width: min(420px, 80%); padding: 17px; border: 1px solid var(--signal); background: #201c1d; text-align: center; }.cache-decision-question strong, .cache-decision-question small { display: block; }.cache-decision-question strong { color: var(--ink); font-size: 13px; }.cache-decision-question small { margin-top: 7px; color: var(--muted); font-size: 9px; }.cache-decision-split { position: relative; grid-column: 1 / 4; height: 24px; margin: 0 16.66%; border-top: 1px solid var(--signal-soft); }.cache-decision-split::before, .cache-decision-split::after, .cache-decision-split i { position: absolute; top: 0; width: 1px; height: 24px; background: var(--signal-soft); content: ""; }.cache-decision-split::before { left: 0; }.cache-decision-split::after { right: 0; }.cache-decision-split i:first-child { left: 50%; }.cache-decision-result { padding: 17px; border: 1px solid rgba(111,215,177,.37); background: #1b1d1c; text-align: center; }.cache-decision-result > span { color: #77d9b7; font: 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }.cache-decision-result strong, .cache-decision-result small, .cache-decision-result b { display: block; }.cache-decision-result strong { margin-top: 9px; color: var(--ink); font-size: 11px; }.cache-decision-result small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }.cache-decision-result b { margin-top: 11px; color: #77d9b7; font: 9px/1 "SFMono-Regular", Consolas, monospace; }.cache-decision-custom { border-color: rgba(255,128,112,.4); background: #201b1c; }.cache-decision-custom > span, .cache-decision-custom b { color: var(--signal-soft); }

.cache-kv-merge { display: grid; gap: 20px; padding: 25px; grid-template-columns: 1fr 56px 1fr; align-items: center; }.cache-kv-old, .cache-kv-new { display: grid; gap: 10px; }.cache-kv-old > span, .cache-kv-new > span, .cache-order-compare section > span { color: var(--signal-soft); font: 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }.cache-kv-old section, .cache-kv-new section { padding: 16px; border: 1px solid rgba(255,128,112,.28); background: #1b1a1b; }.cache-kv-new section { border-color: var(--signal); background: #211b1d; }.cache-kv-old strong, .cache-kv-old small, .cache-kv-new strong, .cache-kv-new small { display: block; }.cache-kv-old strong, .cache-kv-new strong { color: var(--ink); font-size: 12px; }.cache-kv-old small, .cache-kv-new small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.55; }.cache-merge-arrow, .cache-order-arrow { position: relative; color: var(--signal-soft); font: 25px/1 "SFMono-Regular", Consolas, monospace; text-align: center; }.cache-merge-arrow::after, .cache-order-arrow::after { display: none; }

.cache-order-compare { display: grid; gap: 20px; padding: 24px; grid-template-columns: 1fr 50px 1fr; align-items: center; }.cache-order-compare section { padding: 18px; border: 1px solid rgba(255,128,112,.27); background: #1b1a1b; }.cache-order-compare ol { margin: 15px 0 0; padding-left: 29px; counter-reset: cache-order; }.cache-order-compare li { margin: 0; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.07); color: var(--muted); font-size: 11px; }.cache-order-after { border-color: rgba(111,215,177,.4) !important; }.cache-order-after li:first-child { color: #77d9b7; }

.cache-sequence-grid { display: grid; gap: 12px; padding: 22px; }.cache-sequence-grid section { padding: 17px; border: 1px solid rgba(255,128,112,.28); background: #1b1a1b; }.cache-sequence-grid section > div { display: flex; align-items: center; }.cache-sequence-grid b { flex: 1; padding: 11px 7px; border: 1px solid rgba(255,128,112,.3); color: var(--ink); font: 9px/1.35 "SFMono-Regular", Consolas, monospace; text-align: center; }.cache-sequence-grid i { width: 22px; height: 1px; background: var(--signal-soft); }.cache-sequence-hit { border-color: rgba(111,215,177,.35) !important; }.cache-sequence-hit b:nth-of-type(3) { border-color: rgba(111,215,177,.45); color: #77d9b7; }

.cache-negative-flow { display: grid; gap: 0; padding: 25px; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; }.cache-negative-flow section { min-height: 140px; padding: 18px; border: 1px solid rgba(255,128,112,.3); background: #1b1a1b; text-align: center; }.cache-negative-flow section > span { color: var(--signal-soft); font: 9px/1 "SFMono-Regular", Consolas, monospace; }.cache-negative-flow section strong, .cache-negative-flow section small, .cache-negative-flow section b { display: block; }.cache-negative-flow section strong { margin-top: 13px; color: var(--ink); font-size: 12px; }.cache-negative-flow section small { margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }.cache-negative-flow section b { margin-top: 12px; color: #ffaaa0; font: 9px/1 "SFMono-Regular", Consolas, monospace; }.cache-negative-flow > i { position: relative; height: 1px; background: var(--signal-soft); }.cache-negative-store { border-color: rgba(255,190,101,.46) !important; }.cache-negative-hit { border-color: rgba(111,215,177,.45) !important; }.cache-negative-hit b { color: #77d9b7 !important; }


.cache-product-compare { display: grid; gap: 16px; padding: 24px; grid-template-columns: repeat(2, 1fr); }.cache-product-compare > section { padding: 19px; border: 1px solid rgba(255,128,112,.3); background: #1b1a1b; }.cache-product-compare > section > span { color: var(--signal-soft); font: 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }.cache-product-compare h3 { margin: 10px 0 15px; color: var(--ink); font-size: 14px; }.cache-product-path { display: flex; align-items: center; }.cache-product-path b { flex: 1; padding: 10px 5px; border: 1px solid rgba(255,128,112,.28); color: var(--muted); font: 8px/1.35 "SFMono-Regular", Consolas, monospace; text-align: center; }.cache-product-path i { width: 14px; height: 1px; background: var(--signal-soft); }.cache-product-compare p { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.cache-rollout { display: grid; margin: 0; padding: 24px; grid-template-columns: repeat(5, 1fr); list-style: none; counter-reset: rollout; }.cache-rollout li { position: relative; min-height: 120px; padding: 38px 13px 14px; border: 1px solid rgba(255,128,112,.3); background: #1b1a1b; color: var(--muted); font-size: 10px; line-height: 1.55; text-align: center; }.cache-rollout li + li { border-left: 0; }.cache-rollout li::before { position: absolute; top: 13px; left: 50%; color: var(--signal-soft); font: 9px/1 "SFMono-Regular", Consolas, monospace; counter-increment: rollout; content: "0" counter(rollout); transform: translateX(-50%); }.cache-rollout li > span { display: none; }.cache-rollout strong, .cache-rollout small { display: block; }.cache-rollout strong { color: var(--ink); font-size: 11px; }.cache-rollout small { margin-top: 7px; color: var(--muted); font-size: 9px; }.cache-summary-list { display: grid; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }.cache-summary-list li { position: relative; display: grid; margin: 0; padding: 15px 17px 15px 52px; border: 1px solid rgba(255,128,112,.23); background: rgba(32,32,32,.58); }.cache-summary-list li > span { position: absolute; top: 17px; left: 17px; color: var(--signal-soft); font: 9px/1.5 "SFMono-Regular", Consolas, monospace; }.cache-summary-list strong, .cache-summary-list small { display: block; }.cache-summary-list strong { color: var(--ink); font-size: 12px; }.cache-summary-list small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.article-footer { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }.footer-label { display: block; margin-bottom: 8px; color: #888; font: 9px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }.article-footer strong { font-size: 12px; }
.site-footer { padding: 40px 5vw; border-top: 1px solid var(--line); background: #0a090f; }
.footer-inner { display: flex; max-width: 1280px; margin: 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-logo { display: block; line-height: 0; }.footer-logo img { width: auto; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }.footer-links a { color: #888; font-size: 12px; transition: color .2s; }.footer-links a:hover { color: var(--ink); }
.footer-copy { width: 100%; color: #666; font: 10px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }

@media (max-width: 820px) {
  .site-header { height: 68px; padding: 0 22px; }.brand-logo { width: 132px; height: auto; }.header-actions { gap: 14px; }.header-nav { gap: 16px; font-size: 10px; }.header-nav a { padding: 25px 0 22px; }.language-switch { padding: 5px 23px 5px 8px; font-size: 11px; }.reading-progress { top: 68px; }
  .articles-shell { width: auto; padding: 52px 22px 80px; }.article-list-card a { padding: 24px 21px; }.article-list-card h2 { font-size: 22px; }
  .article-shell { padding: 42px 22px 70px; }.article-heading { padding: 32px 0 63px; }.prose { font-size: 15px; }.intro-copy { font-size: 16px; }.prose h2 { margin-top: 57px; font-size: 23px; }.footer-inner { flex-direction: column; align-items: flex-start; }.footer-links { gap: 16px; }
  .system-figure { overflow: hidden; padding: 13px; }.system-map { min-width: 500px; transform: scale(.67); transform-origin: center; margin: -48px -91px; }.system-figure figcaption { margin-top: 12px; }
  .edge-figure { padding: 13px; }.edge-diagram-scroll { margin-top: 16px; }.edge-architecture { min-width: 940px; padding: 22px; }.request-trace { min-width: 970px; }.update-map { min-width: 0; padding: 16px; }.update-lane { grid-template-columns: 1fr; gap: 12px; padding: 16px; }.update-steps { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr); }.update-steps span { min-width: 0; overflow-wrap: anywhere; }.edge-flow-figure { overflow-x: auto; }.edge-steps { min-width: 580px; transform: none; margin-bottom: 0; }.edge-figure figcaption { margin-top: 13px; }
}

@media (max-width: 520px) {
  .update-map { padding: 13px; }
  .update-lane { padding: 13px; }
  .update-steps { grid-template-columns: 1fr; gap: 10px; }
  .update-steps i { width: 1px; height: 18px; justify-self: center; }
  .update-steps i::after { top: auto; right: -3px; bottom: -1px; transform: rotate(135deg); }
}

@media (max-width: 820px) {
  .cache-overview { min-width: 1040px; }
  .cache-before-grid, .cache-product-compare { grid-template-columns: 1fr; }
  .cache-decision-tree { min-width: 650px; }
  .cache-kv-merge, .cache-order-compare { min-width: 620px; }
  .cache-sequence-grid, .cache-negative-flow, .cache-rollout { min-width: 690px; }
}

@media (max-width: 520px) {
  .cache-before-grid, .cache-decision-tree, .cache-kv-merge, .cache-order-compare, .cache-sequence-grid, .cache-negative-flow, .cache-product-compare, .cache-rollout { padding: 15px; }
}
