/* vCloudOne blog pages. Generated pages link this after /assets/site.css. */
:root {
  --bg: #f6f7f9; --card: #ffffff; --ink: #111827; --ink2: #374151; --muted: #6b7280; --line: #e5e7eb; --soft: #f1f3f6;
  --accent: #0b6fb8; --accent-ink: #075a96; --orange: #ff9900;
  --evs: #e08600; --vmc: #0b6fb8; --vcf: #7c3aed; --site: #0f9f6e;
  --evs-bg: #fff3e0; --vmc-bg: #e6f2fb; --vcf-bg: #f1eafe; --site-bg: #e5f7ef;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 10px 30px rgba(16,24,40,.10);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0a1017; --card: #131c27; --ink: #eef1f5; --ink2: #c7ced8; --muted: #8b96a5; --line: #233041; --soft: #18222f;
    --accent: #5fb0ee; --accent-ink: #8cc7f3;
    --evs: #ffad33; --vmc: #5fb0ee; --vcf: #b392f7; --site: #3fd19b;
    --evs-bg: rgba(255,153,0,.14); --vmc-bg: rgba(95,176,238,.14); --vcf-bg: rgba(179,146,247,.15); --site-bg: rgba(63,209,155,.14);
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 12px 32px rgba(0,0,0,.4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Dark band at the top of each page ── */
.band { position: relative; overflow: hidden; background: #111a26; color: #fff; padding: 56px 0 44px; }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%); }
.band::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,153,0,.16), transparent 65%); pointer-events: none; }
.band .wrap { position: relative; z-index: 1; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
.band h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 16px; max-width: 820px; font-variation-settings: "opsz" 96; }
.band h1 em { font-style: normal; color: var(--orange); }
.band p.lede { color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.6; max-width: 660px; margin: 0; }
.band.home { padding-bottom: 120px; }
.band.slim { padding: 44px 0 36px; }
.band.slim h1 { font-size: clamp(30px, 4vw, 44px); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tabs a, .tabs button { font: 500 14px/1 var(--sans); color: rgba(255,255,255,.8); text-decoration: none; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.03); border-radius: 999px; padding: 9px 14px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; transition: all .15s; }
.tabs a:hover, .tabs button:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.tabs a.on, .tabs button.on { background: #fff; color: #111a26; border-color: #fff; font-weight: 600; }
.tabs .n { font-size: 12px; opacity: .55; font-weight: 500; }
.tabs .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── Layout ── */
.main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 72px; }
.main.lift { margin-top: -84px; position: relative; z-index: 2; padding-top: 0; }
.col { min-width: 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 48px 0 16px; }
.sec-h:first-child { margin-top: 0; }
.sec-h h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sec-h a { font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.sec-h a:hover { text-decoration: underline; }
.lift .sec-h h2 { color: var(--muted); }

/* ── Chips, meta ── */
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.meta .sep { opacity: .5; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: var(--soft); color: var(--ink2); white-space: nowrap; line-height: 1.4; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.evs { background: var(--evs-bg); color: var(--evs); } .chip.vmc { background: var(--vmc-bg); color: var(--vmc); }
.chip.vcf { background: var(--vcf-bg); color: var(--vcf); } .chip.site { background: var(--site-bg); color: var(--site); }
.topic { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
a.topic:hover { text-decoration: underline; }

/* ── Featured hero card ── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.hero:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(16,24,40,.14); }
.hero .txt { padding: 36px 36px 32px; display: flex; flex-direction: column; }
.hero .badge { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #111a26; background: var(--orange); border-radius: 6px; padding: 4px 8px; margin-bottom: 16px; }
.hero h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.015em; margin: 10px 0 14px; font-variation-settings: "opsz" 72; }
.hero p { color: var(--ink2); font-size: 17.5px; line-height: 1.6; margin: 0 0 22px; max-width: 640px; }
.hero .more { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 15px; }
.hero .art-pic { order: -1; background: #f4f6f9; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 34px 48px 26px; }
.hero .art-pic svg { max-width: 760px; }
.hero .art-pic svg { width: 100%; height: auto; display: block; }

/* ── Stream (front page, topic pages) ── */
.stream { display: grid; gap: 14px; }
.acard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.acard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-lg); }
.acard .kind { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.acard h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 8px 0 8px; letter-spacing: -0.01em; font-variation-settings: "opsz" 48; }
.acard p { color: var(--ink2); margin: 0 0 12px; font-size: 15.5px; }
.ulist { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.urow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .15s; }
.urow:first-child { border-top: 0; }
.urow:hover { background: var(--soft); }
.urow time { font-size: 13.5px; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.urow b { display: block; font-weight: 600; font-size: 16px; line-height: 1.4; margin-bottom: 4px; }
.urow:hover b { color: var(--accent); }
.urow span.ex { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.urow .chip { margin-top: 8px; }

/* ── Sidebar ── */
.side { display: grid; gap: 16px; position: sticky; top: 82px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); }
.box h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.me { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 20px; color: #fff; background: linear-gradient(135deg, #0b6fb8, #111a26); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--orange); }
.me b { display: block; font-size: 16px; } .me small { color: var(--muted); font-size: 13px; }
.box p { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.6; }
.box p a { font-weight: 500; }
.box a.item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14.5px; }
.box a.item:first-of-type { border-top: 0; padding-top: 2px; }
.box a.item b { font-weight: 600; display: block; } .box a.item small { color: var(--muted); font-size: 13px; display: block; }
.box a.item:hover b { color: var(--accent); }
.box a.item i { font-style: normal; color: var(--muted); align-self: center; transition: transform .15s; }
.box a.item:hover i { transform: translateX(3px); color: var(--accent); }

/* ── Updates timeline ── */
.month { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 44px 0 18px; }
.month::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.month:first-child { margin-top: 0; }
.tl { position: relative; padding-left: 28px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.post { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; margin-bottom: 18px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.post::before { content: ""; position: absolute; left: -27px; top: 28px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--muted); }
.post.evs::before { border-color: var(--evs); } .post.vmc::before { border-color: var(--vmc); } .post.vcf::before { border-color: var(--vcf); } .post.site::before { border-color: var(--site); }
.post:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,153,0,.25); }
.post h3 { font-size: 20px; line-height: 1.35; margin: 10px 0 12px; font-weight: 650; letter-spacing: -0.005em; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--accent); }
.post .perma { color: var(--muted); opacity: 0; text-decoration: none; font-weight: 400; margin-left: 6px; transition: opacity .15s; }
.post:hover .perma, .post .perma:focus { opacity: .7; }
.post p, .post li { color: var(--ink2); font-size: 16px; line-height: 1.7; }
.post p { margin: 0 0 14px; }
.post ul, .post ol { margin: 0 0 14px; padding-left: 22px; }
.post li { margin: 4px 0; }
.post li::marker { color: var(--muted); }
.post h4 { font-size: 15px; margin: 18px 0 6px; }
.post strong { color: var(--ink); }
.src { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.src b { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.src ul { list-style: none; margin: 0; padding: 0; }
.src li { margin: 4px 0; font-size: 14px; padding-left: 18px; position: relative; }
.src li::before { content: "↗"; position: absolute; left: 0; color: var(--muted); }
.src a { color: var(--accent); text-decoration: none; }
.src a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* ── Diagrams (kept on a light panel in both themes) ── */
.diag { margin: 20px 0; padding: 18px; background: #f7f9fb; border: 1px solid var(--line); border-radius: 12px; }
.diag svg { width: 100%; height: auto; display: block; }
.diag figcaption { font-size: 13px; color: #6b7280; text-align: center; margin-top: 10px; }

/* ── Article page ── */
.art-head .meta { color: rgba(255,255,255,.62); margin-top: 22px; font-size: 14px; }
.art-head .topic { color: var(--orange); }
.art-head p.lede { font-size: 20px; }
.art-grid { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: 56px; justify-content: center; padding-top: 48px; padding-bottom: 80px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink2); }
.prose > p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; color: var(--ink); font-weight: 600; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; margin: 48px 0 16px; scroll-margin-top: 84px; font-variation-settings: "opsz" 48; }
.prose h3 { color: var(--ink); font-size: 21px; margin: 34px 0 10px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 22px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--ink); }
.prose code { font-size: .88em; background: var(--soft); padding: 2px 6px; border-radius: 5px; }
.prose a { text-underline-offset: 3px; }
.prose .diag { margin: 30px -24px; }
.toc { position: sticky; top: 90px; font-size: 14px; }
.toc b { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); line-height: 1.4; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--orange); }
.endbox { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.author { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; }
.author p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.author b { color: var(--ink); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.pn a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.pn a small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.pn a:hover { border-color: var(--accent); }
.pn .next { text-align: right; grid-column: 2; }

/* ── Small pages ── */
.page-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px; box-shadow: var(--shadow); }
.page-card .prose > p:first-child::first-letter { all: unset; }
.empty { color: var(--muted); padding: 28px; text-align: center; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 10px; text-decoration: none; background: var(--orange); color: #111a26; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* ── Responsive ── */
@media (max-width: 1060px) { .art-grid { grid-template-columns: minmax(0, 720px); } .toc { display: none; } }
@media (max-width: 980px) {
  .main { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .art-pic { padding: 22px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .band { padding: 40px 0 32px; } .band.home { padding-bottom: 96px; }
  .band p.lede { font-size: 16.5px; }
  .main.lift { margin-top: -64px; }
  .hero .art-pic { display: none; }
  .hero .txt { padding: 24px 22px; }
  .side { grid-template-columns: 1fr; }
  .acard { padding: 20px; } .acard h3 { font-size: 21px; }
  .urow { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .tl { padding-left: 20px; } .tl::before { left: 3px; } .post::before { left: -23px; }
  .post { padding: 20px 18px; }
  .prose { font-size: 17px; } .prose .diag { margin: 24px 0; }
  .page-card { padding: 24px 20px; }
  .pn { grid-template-columns: 1fr; } .pn .next { grid-column: 1; }
}

.feedbox { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.feedbox code { font-size: 15px; background: rgba(255,255,255,.08); color: #fff; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); word-break: break-all; }
.feedbox button.btn { border: 0; cursor: pointer; font-family: inherit; }
.eyebrow .sep { color: rgba(255,255,255,.35); }
.sn-logo span { display: inline; }
.post code, .prose code { overflow-wrap: anywhere; word-break: break-word; }
.post code { font-size: .88em; background: var(--soft); padding: 2px 6px; border-radius: 5px; }
.post p, .post li, .prose p, .prose li { overflow-wrap: break-word; }

/* ── Front page header: name and one line, like a personal blog ── */
.band.home { padding: 40px 0 30px; }
.band.home::after { opacity: .6; }
.who { display: flex; gap: 20px; align-items: center; }
.who .avatar { width: 68px; height: 68px; font-size: 24px; box-shadow: 0 0 0 3px #111a26, 0 0 0 4px var(--orange); }
.who h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 4px; }
.who p { margin: 0; color: rgba(255,255,255,.72); font-size: 16.5px; line-height: 1.5; }
.who .who-links { margin-top: 8px; font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.who .who-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.who .who-links a:hover { color: var(--orange); }
.who .who-links span { color: rgba(255,255,255,.3); }
.band.home .tabs { margin-top: 22px; }
@media (max-width: 640px) { .who { gap: 14px; align-items: flex-start; } .who .avatar { width: 52px; height: 52px; font-size: 19px; } .band.home { padding: 28px 0 22px; } }
