/* Silk Road — Where East meets West. Sibling of the CACSR Holo design:
   same HUD bones, bolder voice. Void black, signal cyan, silk gold (the logo's gold),
   a touch of the logo's terracotta for live signals. English, LTR, no WebGL. */
:root { color-scheme: dark; }
html, body { margin: 0; padding: 0; background: #060910; }
.cx {
  --sky: #060910; --sky-2: #0C121C; --sky-3: #121A28;
  --cyan: #22D3EE; --cyan-hi: #7CE9F7; --cyan-dim: #0E7490;
  --gold: #D9A441; --gold-hi: #F2C76B;
  --rust: #C8472F; --rust-hi: #E8674D;
  --text: #E8EEF5; --dim: #8E9AAD; --hud: #B8C7D9;
  --line: rgba(124,233,247,.14); --line-hi: rgba(124,233,247,.36);
  --glass: rgba(12,18,28,.76); --glass-hi: rgba(18,26,40,.9);
  --f-display: "Space Grotesk","Inter","Segoe UI",system-ui,sans-serif;
  --f-body: "Inter","Segoe UI",system-ui,sans-serif;
  --f-mono: "JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
  --ring-a: 34,211,238; --ring-b: 217,164,65; --ring-hud: 184,199,217; --ring-gold: 217,164,65; --ring-glow: 34,211,238;
  --top-h: 66px; --tab-h: 0px;
  color-scheme: dark; position: relative; isolation: isolate; overflow-x: clip;
  background: var(--sky); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.cx *, .cx *::before, .cx *::after { box-sizing: border-box; }
.cx a { color: inherit; text-decoration: none; }
.cx button { font: inherit; color: inherit; cursor: pointer; }
.cx h1,.cx h2,.cx h3,.cx p,.cx dl,.cx dd,.cx ol { margin: 0; padding: 0; }
.cx ol { list-style: none; }
.cx img { max-width: 100%; }
.cx :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }
.cx-mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cx-hl { color: var(--cyan); }
.cx-select { user-select: all; color: var(--text); }

/* fixed layers */
.cx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(34,211,238,.10), transparent 55%), radial-gradient(ellipse at 15% 80%, rgba(217,164,65,.08), transparent 50%), var(--sky); }
.cx-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(124,233,247,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(124,233,247,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); }
.cx-frame { position: fixed; inset: 10px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(232,238,245,.012) 0 1px, transparent 1px 3px); }
.cx-frame i { position: absolute; width: 26px; height: 26px; border: 2px solid var(--cyan); opacity: .7; }
.cx-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cx-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cx-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cx-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* route labels riding the canvas network */
.cx-ring-nodes { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.cx-ring-node { position: absolute; left: 0; top: 0; width: var(--nw, 140px); margin: -8px 0 0 calc(var(--nw, 140px) / -2); text-align: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--cyan-hi); opacity: .85;
  text-transform: uppercase; transition: opacity .3s; text-shadow: 0 0 10px rgba(6,9,16,.95), 0 0 2px rgba(6,9,16,1); }
.cx-ring-node.r { color: var(--gold-hi); }

/* top bar */
.cx-top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; height: calc(var(--top-h) + env(safe-area-inset-top,0px));
  padding: env(safe-area-inset-top,0px) max(28px, env(safe-area-inset-right,0px)) 0 max(28px, env(safe-area-inset-left,0px));
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(to bottom, rgba(6,9,16,.94), rgba(6,9,16,.6) 70%, transparent); }
.cx-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cx-brand img { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; padding: 1px; box-shadow: 0 0 0 1px var(--line-hi), 0 0 18px rgba(34,211,238,.25); }
.cx-brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cx-brand b { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: .02em; white-space: nowrap; text-transform: uppercase; }
.cx-brand small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--cyan); white-space: nowrap; text-transform: uppercase; }
.cx-nav { display: flex; gap: 4px; margin-left: auto; }
.cx-nav a { white-space: nowrap; padding: 8px 14px; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: var(--dim); border: 1px solid transparent; transition: color .2s, border-color .2s; }
.cx-nav a:hover { color: var(--text); }
.cx-nav a.on { color: var(--cyan-hi); border-color: var(--line); background: rgba(34,211,238,.07); }
.cx-clocks { display: flex; gap: 14px; white-space: nowrap; }
.cx-clocks b { color: var(--gold-hi); font-weight: 500; font-variant-numeric: tabular-nums; }
.cx-sister { flex: none; padding: 7px 12px; border: 1px solid var(--line-hi); background: rgba(12,18,28,.6); color: var(--gold-hi); font-size: 10.5px; }
.cx-sister:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(217,164,65,.25); }

/* sections */
.cx-main { position: relative; z-index: 3; padding-inline: max(28px, env(safe-area-inset-left,0px)) max(28px, env(safe-area-inset-right,0px)); padding-bottom: 40px; }
.cx-sec { position: relative; max-width: 1320px; margin: 0 auto; padding-block: 110px; }
.cx-sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-bottom: 44px; }
.cx-sec-head h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.cx-sec-head p { color: var(--dim); font-size: 17px; max-width: 56ch; }
.cx-sec-head .cx-mono { color: var(--cyan); display: flex; align-items: center; }

/* hero */
.cx-hero { min-height: 94vh; min-height: 94svh; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-top: calc(var(--top-h) + 30px); }
.cx-hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.cx-eyebrow { color: var(--cyan); display: flex; align-items: center; letter-spacing: .14em; }
.cx-hero-copy > *, .cx-stats, .cx-scrollcue { animation: cx-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.cx-hero-copy > :nth-child(2) { animation-delay: .12s; }
.cx-hero-copy > :nth-child(3) { animation-delay: .24s; }
.cx-hero-copy > :nth-child(4) { animation-delay: .36s; }
.cx-stats { animation-delay: .5s; }
@keyframes cx-rise { from { opacity: 0; transform: translateY(14px); } }
.cx-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(50px, 7.4vw, 116px); line-height: .94; letter-spacing: -.035em; text-wrap: balance; }
.cx-hero h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 28px rgba(34,211,238,.45); position: relative; }
.cx-hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--gold) 70%, transparent); animation: cx-scan 2.6s ease-in-out infinite; }
@keyframes cx-scan { 0%,100% { transform: scaleX(.3); transform-origin: left; opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
.cx-lead { font-size: 19px; color: var(--dim); max-width: 52ch; }
.cx-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; border-block: 1px solid var(--line); width: fit-content; max-width: 100%; }
.cx-stats div { padding: 16px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.cx-stats div:first-child { padding-left: 0; }
.cx-stats div:last-child { border-right: 0; }
.cx-stats dd { font-family: var(--f-mono); font-size: 30px; font-weight: 700; color: var(--cyan-hi); text-shadow: 0 0 18px rgba(34,211,238,.35); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cx-stats dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.cx-scrollcue { display: flex; align-items: center; gap: 12px; animation-delay: .7s; }
.cx-scrollcue em { font-style: normal; }
.cx-scrollcue span { width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); animation: cx-cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cx-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.cx-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rust-hi); margin-right: 9px; animation: cx-blink 1.3s steps(2,start) infinite; box-shadow: 0 0 10px var(--rust-hi); }
.cx-live.ok { background: var(--cyan); animation: none; box-shadow: 0 0 10px var(--cyan); }
@keyframes cx-blink { to { visibility: hidden; } }

/* buttons, chips */
.cx-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  background: var(--cyan); border: 1px solid var(--cyan-hi); color: #041017;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background .2s, box-shadow .2s, transform .2s; }
.cx-btn:hover { background: var(--cyan-hi); box-shadow: 0 0 28px rgba(34,211,238,.45); }
.cx a.cx-btn { color: #041017; }
.cx-btn.ghost, .cx a.cx-btn.ghost { background: rgba(12,18,28,.6); border-color: var(--line-hi); color: var(--text); }
.cx-btn.ghost:hover { border-color: var(--cyan); color: var(--cyan-hi); box-shadow: none; }
.cx-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.cx-chip { display: inline-block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--cyan); color: var(--cyan-hi); white-space: nowrap; }
.cx-chip.r { border-color: var(--rust-hi); color: var(--rust-hi); }
.cx-chip.g { border-color: var(--gold); color: var(--gold-hi); }
.cx-src { color: var(--gold); margin-left: auto; letter-spacing: .08em; text-transform: none; }

/* glass panel with HUD corners */
.cx-panel { position: relative; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.cx-panel::before, .cx-panel::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); pointer-events: none; z-index: 2; }
.cx-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cx-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* filters + cards */
.cx-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: none; }
.cx-filters button { padding: 7px 13px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; background: rgba(12,18,28,.6); border: 1px solid var(--line); color: var(--dim); transition: all .2s; }
.cx-filters button:hover { color: var(--text); border-color: var(--line-hi); }
.cx-filters button[aria-pressed="true"] { color: #041017; background: var(--cyan); border-color: var(--cyan-hi); font-weight: 700; }
.cx-filters button b { font-weight: 400; font-size: 10px; color: var(--gold-hi); margin-left: 7px; }
.cx-filters button[aria-pressed="true"] b { color: #06333d; }
.cx-study-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 24px; }
.cx-study { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s, box-shadow .3s; }
.cx-study.seen { opacity: 1; transform: none; }
.cx-study:hover { box-shadow: 0 24px 70px -30px rgba(34,211,238,.45), 0 0 0 1px rgba(34,211,238,.35); }
.cx-panel-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cx-panel-bar .cx-mono { font-size: 10.5px; }
.cx-cover { position: relative; margin: 0 -22px; aspect-ratio: 21/9; overflow: hidden; background: var(--sky-2); border-block: 1px solid var(--line); }
.cx-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.7) contrast(1.15) brightness(.85); transform: scale(1.03); transition: filter .7s, transform 1s; }
.cx-cover::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, var(--cyan-dim) 0%, #0C2A3A 50%, var(--gold) 100%); mix-blend-mode: color; opacity: .6; transition: opacity .7s; }
.cx-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(6,9,16,.22) 0 1px, transparent 1px 3px), linear-gradient(to top, rgba(6,9,16,.55), transparent 50%); }
.cx-study:hover .cx-cover img, .cx-reader-cover img { filter: none; transform: scale(1); }
.cx-study:hover .cx-cover::before, .cx-reader-cover::before { opacity: .15; }
.cx-study-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.cx-study-title a:hover { color: var(--cyan-hi); }
.cx-rule { height: 1px; background: linear-gradient(to right, var(--cyan), transparent 70%); }
.cx-study-ex { color: #B9C3D1; font-size: 15px; line-height: 1.7; }
.cx-study .cx-actions { margin-top: auto; padding-top: 6px; }
.cx-study .cx-btn { padding: 9px 16px; font-size: 14px; }
.cx-empty { color: var(--dim); padding: 40px 0; }
.cx-more { margin-top: 34px; }
.cx-slot { display: contents; }
.cx-slot[hidden] { display: none; }

/* wire */
.cx-wire-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.cx-lead-card { display: flex; flex-direction: column; overflow: hidden; }
.cx-lead-cover { margin: 0; aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--sky-2); border-bottom: 1px solid var(--line); }
.cx-lead-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) saturate(1.1); transition: transform 1.2s; }
.cx-lead-card:hover .cx-lead-cover img { transform: scale(1.04); }
.cx-lead-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,9,16,.75), transparent 55%), repeating-linear-gradient(0deg, rgba(6,9,16,.16) 0 1px, transparent 1px 3px); }
.cx-lead-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 24px; }
.cx-lead-body h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -.02em; }
.cx-lead-card:hover h3 { color: var(--cyan-hi); }
.cx-lead-body .cx-mono { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-feedlist { border-top: 1px solid var(--line); }
.cx-feedlist li { border-bottom: 1px solid var(--line); }
.cx-feedlist a { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; align-items: baseline; padding: 14px 12px; background: rgba(6,9,16,.5); transition: background .2s; border-left: 2px solid transparent; }
.cx-feedlist a:hover { background: rgba(34,211,238,.08); border-left-color: var(--cyan); }
.cx-feed-title { font-size: 15.5px; line-height: 1.5; min-width: 0; grid-column: 2; font-weight: 500; }
.cx-ts { font-variant-numeric: tabular-nums; color: var(--gold); font-size: 10.5px; white-space: nowrap; }
.cx-feed-src { grid-column: 2; font-size: 10px; color: var(--dim); text-transform: none; letter-spacing: .06em; }
.cx-feedlist-wide { max-width: 900px; }
.cx-feedlist-wide a { padding: 16px 14px; }
.cx-feedlist-wide .cx-feed-title { font-size: 17px; }

/* desk */
.cx-desklist { display: grid; }

/* pipeline */
.cx-stages { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); position: relative; }
.cx-stages::before { content: ""; position: absolute; top: 34px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.cx-stages li { padding: 52px 24px 0 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.cx-stages li::before { content: ""; position: absolute; top: 28px; left: 0; width: 12px; height: 12px; transform: rotate(45deg); background: var(--sky); border: 2px solid var(--cyan); }
.cx-stages li:nth-child(even)::before { border-color: var(--gold); }
.cx-stages b { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.cx-stages p { color: var(--dim); font-size: 14.5px; }
.cx-stages .cx-mono { position: absolute; top: 0; color: var(--cyan); }

/* end */
.cx-end { min-height: 76vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; gap: 12px; padding-bottom: 110px; }
.cx-end img { width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 0 0 1px var(--line-hi), 0 0 40px rgba(34,211,238,.25); }
.cx-word-ar { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 4vw, 56px); letter-spacing: .06em; text-transform: uppercase; }
.cx-word-en { font-family: var(--f-mono); letter-spacing: .22em; font-size: 12px; color: var(--cyan); text-transform: uppercase; }
.cx-tagline { font-family: var(--f-display); font-size: 21px; margin-top: 10px; }
.cx-end p { color: var(--dim); max-width: 60ch; }
.cx-end a { color: var(--cyan-hi); }

/* ticker */
.cx-ticker { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: calc(34px + env(safe-area-inset-bottom,0px)); padding-bottom: env(safe-area-inset-bottom,0px);
  display: flex; align-items: center; background: rgba(6,9,16,.9); border-top: 1px solid var(--line); overflow: hidden; }
.cx-ticker > b { flex: none; padding: 0 16px; color: #041017; background: var(--cyan); height: 100%; display: flex; align-items: center; font-weight: 700; position: relative; z-index: 1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 24px; }
.cx-ticker-track { overflow: hidden; flex: 1; }
.cx-ticker-track > div { display: flex; width: max-content; animation: cx-tick 90s linear infinite; }
.cx-ticker span { padding: 0 28px; font-size: 13px; color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.cx-ticker span i { width: 6px; height: 6px; background: var(--cyan); transform: rotate(45deg); flex: none; }
.cx-ticker span i.r { background: var(--gold); }
.cx-ticker a:hover { color: var(--text); }
@keyframes cx-tick { to { transform: translateX(-50%); } }

/* search */
.cx-ask { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; background: rgba(12,18,28,.6); border: 1px solid var(--line); color: var(--dim); font-size: 13px; min-width: 200px; transition: border-color .2s, color .2s; }
.cx-ask:hover { border-color: var(--cyan); color: var(--text); }
.cx-ask svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.cx-ask kbd { margin-left: auto; font-family: var(--f-mono); font-size: 10.5px; color: var(--cyan); border: 1px solid rgba(34,211,238,.4); padding: 0 6px; }
:root:has(.cx-search:not([hidden])) { overflow: hidden; }
.cx-search { position: fixed; inset: 0; z-index: 12; background: rgba(3,5,9,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: flex-start; padding: calc(var(--top-h) + 24px) max(16px, env(safe-area-inset-right,0px)) 24px max(16px, env(safe-area-inset-left,0px)); }
.cx-search-box { width: min(760px, 100%); max-height: calc(100svh - var(--top-h) - 60px); display: flex; flex-direction: column; animation: cx-pop .25s cubic-bezier(.2,.8,.2,1); }
@keyframes cx-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.cx-search-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cx-search-field > svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.8; flex: none; }
.cx-search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 20px/1.4 var(--f-display); }
.cx-search-field input::placeholder { color: rgba(142,154,173,.6); }
.cx-search-field input::-webkit-search-cancel-button { display: none; }
.cx-x { width: 38px; height: 38px; display: grid; place-content: center; background: none; border: 1px solid var(--line); flex: none; }
.cx-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cx-x:hover { border-color: var(--rust-hi); color: var(--rust-hi); }
.cx-search-meta { padding: 10px 18px; color: var(--gold); }
.cx-results { overflow-y: auto; padding: 0 8px 10px; }
.cx-results li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 10px; cursor: pointer; border-left: 2px solid transparent; }
.cx-results li:hover { background: rgba(34,211,238,.1); border-left-color: var(--cyan); }
.cx-res-t { font-size: 15.5px; line-height: 1.45; font-weight: 500; }
.cx-res-k { font-size: 10px; white-space: nowrap; color: var(--cyan); }
.cx-none { color: var(--dim); cursor: default !important; }

/* reader / article */
.cx-article { position: relative; z-index: 3; }
.cx-reader-progress { position: fixed; z-index: 7; top: 0; left: 0; right: 0; height: 3px; background: rgba(232,238,245,.06); }
.cx-reader-progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), var(--gold)); box-shadow: 0 0 12px rgba(34,211,238,.6); }
.cx-reader-doc { max-width: 780px; margin: 0 auto; padding: calc(var(--top-h) + 40px) 0 140px; display: flex; flex-direction: column; gap: 22px; }
.cx-reader-doc h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.cx-reader-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.cx-reader-cover { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--sky-2); }
.cx-reader-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.cx-reader-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, var(--cyan-dim), transparent 60%); mix-blend-mode: color; opacity: .15; pointer-events: none; }
.cx-reader-cover figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--dim); padding: 8px 12px; border-top: 1px solid var(--line); }
.cx-reader-body { font-size: 18px; line-height: 1.8; color: #D3DBE6; overflow-wrap: break-word; }
.cx .cx-reader-body > * { margin: 0; }
.cx .cx-reader-body > * + * { margin-top: 1.15em; }
.cx .cx-reader-body > h2, .cx .cx-reader-body > h3, .cx .cx-reader-body > h4 { margin-top: 1.7em; margin-bottom: .55em; }
.cx-reader-body h2, .cx-reader-body h3, .cx-reader-body h4 { font-family: var(--f-display); color: var(--text); line-height: 1.2; letter-spacing: -.015em; margin-top: 1.6em; }
.cx-reader-body h2 { font-size: 30px; } .cx-reader-body h3 { font-size: 24px; }
.cx-reader-body a { color: var(--cyan-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(34,211,238,.5); }
.cx-reader-body img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.cx-reader-body figure, .cx-reader-body .wp-caption { margin: 1.4em 0; max-width: 100%; }
.cx-reader-body figcaption, .cx-reader-body .wp-caption-text { font-size: 13px; color: var(--dim); padding-top: 6px; }
.cx-reader-body .aligncenter { margin-inline: auto; display: block; }
.cx-reader-body blockquote { margin: 1.4em 0; padding: 6px 22px; border-left: 3px solid var(--cyan); color: var(--text); font-family: var(--f-display); font-size: 20px; }
.cx-reader-body table { display: block; overflow-x: auto; border-collapse: collapse; }
.cx-reader-body td, .cx-reader-body th { border: 1px solid var(--line); padding: 6px 10px; }
.cx-reader-body iframe, .cx-reader-body video { max-width: 100%; border: 1px solid var(--line); }
.cx-reader-body iframe { aspect-ratio: 16/9; width: 100%; height: auto; }
.cx-reader-body hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.cx-reader-body ul, .cx-reader-body ol { padding-left: 1.4em; }
.cx-reader-body li + li { margin-top: .4em; }
.cx-reader-body .sr-sourcebox { border: 1px solid var(--line-hi); background: var(--glass); padding: 16px 20px; font-size: 15px; color: var(--hud); }
.cx-reader-body .sr-sourcebox b { color: var(--gold-hi); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.cx-source { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px; }
.cx-source b { font-family: var(--f-display); font-size: 20px; }
.cx-source .cx-btn { margin-left: auto; }
.cx-reader-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 30px; border-top: 1px solid var(--line); margin-top: 20px; }
.cx-reader-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cx-next { text-align: left; background: var(--glass); border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s; }
.cx-next:hover { border-color: var(--cyan); }
.cx-next b { font-family: var(--f-display); font-size: 17px; font-weight: 600; line-height: 1.3; }
.cx-taglist { display: flex; flex-wrap: wrap; gap: 8px; }

/* archive pages */
.cx-archive-page { padding-top: calc(var(--top-h) + 60px); }
.cx-pagination { margin-top: 40px; position: relative; z-index: 3; }
.cx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); color: var(--dim); background: rgba(12,18,28,.6); font-family: var(--f-mono); font-size: 13px; }
.cx-pagination .page-numbers.current { color: #041017; background: var(--cyan); border-color: var(--cyan-hi); font-weight: 700; }
.cx-pagination a.page-numbers:hover { color: var(--text); border-color: var(--cyan); }

/* footer strip */
.cx-footbar { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  max-width: 1320px; margin: 0 auto; padding: 18px max(28px, env(safe-area-inset-right,0px)) 60px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
.cx-footbar a { color: var(--hud); }
.cx-footnav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cx-footnav a { color: var(--dim); }
.cx-footnav a:hover { color: var(--cyan-hi); }

/* comments + forms */
.cx-comments { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.cx-comments-title, .comment-reply-title { font-family: var(--f-display); font-size: 22px; margin: 0; }
.cx-comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cx-comment-list .comment-body { background: var(--glass); border: 1px solid var(--line); padding: 14px 16px; font-size: 15px; }
.cx-comment-list .comment-meta { font-size: 12.5px; color: var(--dim); margin-bottom: 8px; }
.cx-comment-list .children { list-style: none; padding-left: 24px; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.cx-comment-list .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form label { font-size: 13px; color: var(--dim); display: block; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.cx-reader-body input[type="text"], .cx-reader-body input[type="email"], .cx-reader-body input[type="password"], .cx-reader-body input[type="url"], .cx-reader-body textarea, .cx-reader-body select {
  width: 100%; background: rgba(12,18,28,.7); border: 1px solid var(--line); color: var(--text); padding: 10px 12px; font: inherit; }
.comment-form input:focus, .comment-form textarea:focus, .cx-reader-body input:focus, .cx-reader-body textarea:focus { outline: none; border-color: var(--cyan); }
.comment-form .submit, .cx-reader-body input[type="submit"], .cx-reader-body button[type="submit"] {
  display: inline-flex; padding: 12px 20px; font-family: var(--f-display); font-size: 15px; font-weight: 600; background: var(--cyan); border: 1px solid var(--cyan-hi); color: #041017; cursor: pointer; }

/* mobile tabs */
.cx-tabs { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom,0px));
  padding: 0 max(8px, env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(8px, env(safe-area-inset-left,0px));
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); background: rgba(6,9,16,.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cx-tabs a, .cx-tabs button { display: flex; background: none; border: 0; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--dim); position: relative; }
.cx-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cx-tabs a.on { color: var(--text); }
.cx-tabs a.on svg { stroke: var(--cyan); }
.cx-tabs a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* inner pages: calmer canvas */
.cx.is-inner .cx-frame { opacity: .5; }
.cx.is-inner .cx-grid { opacity: .3; }

@media (max-width: 1400px) {
  .cx-clocks { display: none; }
}
@media (max-width: 1560px) {
  .cx.is-inner .cx-clocks { display: none; }
}
@media (max-width: 1240px) {
  .cx-ask { min-width: 0; }
  .cx-ask span, .cx-ask kbd { display: none; }
}
@media (max-width: 980px) {
  .cx-wire-grid { grid-template-columns: minmax(0,1fr); }
  .cx-stages { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 30px; }
}
@media (max-width: 860px) {
  .cx { --top-h: 58px; --tab-h: 62px; font-size: 15px; }
  .cx-frame, .cx-nav, .cx-ask, .cx-scrollcue, .cx-sister { display: none; }
  .cx-ring-node { --nw: 90px; font-size: 9px; }
  .cx-tabs[hidden] { display: grid !important; }
  .cx-top { padding-inline: max(16px, env(safe-area-inset-left,0px)) max(16px, env(safe-area-inset-right,0px)); gap: 12px; }
  .cx-brand img { width: 32px; height: 32px; }
  .cx-brand b { font-size: 14px; }
  .cx-brand small { font-size: 8.5px; }
  .cx-main { padding-inline: max(16px, env(safe-area-inset-left,0px)) max(16px, env(safe-area-inset-right,0px)); padding-bottom: calc(var(--tab-h) + 50px); }
  .cx-sec { padding-block: 64px; }
  .cx-hero { min-height: 0; justify-content: flex-start; gap: 22px; padding-top: 42svh; padding-bottom: 40px; }
  .cx-hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .cx-lead { font-size: 16px; }
  .cx-stats { grid-template-columns: repeat(4, minmax(0,1fr)); width: 100%; }
  .cx-stats div { padding: 10px 6px; }
  .cx-stats dd { font-size: 19px; }
  .cx-stats dt { font-size: 9px; line-height: 1.3; }
  .cx-sec-head { margin-bottom: 26px; padding: 18px; background: var(--glass); border: 1px solid var(--line); }
  .cx-sec-head p { font-size: 15px; }
  .cx-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding-inline: 18px; scrollbar-width: none; }
  .cx-filters button { flex: none; }
  .cx-study { padding: 18px 18px 20px; }
  .cx-cover { margin-inline: -18px; aspect-ratio: 16/9; }
  .cx-cover img { filter: grayscale(.2) contrast(1.08); }
  .cx-cover::before { opacity: .35; }
  .cx-study .cx-actions .cx-btn { flex: 1 1 auto; justify-content: center; }
  .cx-feedlist a { padding: 14px 8px; }
  .cx-stages { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .cx-stages::before { top: 0; bottom: 0; width: 1px; height: auto; left: 5px; right: auto; background: linear-gradient(var(--cyan), var(--gold)); }
  .cx-stages li { padding: 0 0 0 32px; }
  .cx-stages li::before { top: 6px; }
  .cx-stages .cx-mono { position: static; }
  .cx-end { min-height: 70svh; padding-bottom: calc(var(--tab-h) + 40px); }
  .cx-ticker { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom,0px)); height: 32px; padding-bottom: 0; }
  .cx-reader-doc { padding-top: calc(var(--top-h) + 24px); }
  .cx-reader-doc h1 { font-size: 30px; }
  .cx-reader-body { font-size: 17px; }
  .cx-reader-nav { grid-template-columns: 1fr; }
  .cx-source .cx-btn { margin-left: 0; width: 100%; justify-content: center; }
  .cx-archive-page { padding-top: calc(var(--top-h) + 30px); }
  .cx-footbar { padding-bottom: calc(var(--tab-h) + 60px); }
  .cx-search { padding-top: calc(env(safe-area-inset-top,0px) + 12px); }
  .cx-results li { grid-template-columns: auto minmax(0,1fr); }
  .cx-res-k { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .cx *, .cx *::before, .cx *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cx-ticker-track > div { animation: none !important; }
}
