/* /ai-in-china (src/pages/ai-in-china.astro), on top of marketing.css, guides.css, travel.css and maps.css.
   Mobile first where it matters: the matrix turns into one card per service, the routes into steppers. */
.cn-page {
  --ok: #6ee7a8; --block: #ff8a7a; --none: #d6b8ff; --unsupported: #f2a96a; --limited: #f7c46c; --patchy: #f7c46c; --varies: #8fc4ff;
}
.cn-page main { width: min(1120px, calc(100% - 48px)); }

/* Hero: the night map of southern China behind the copy. */
.cn-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: 600px; margin-top: 20px; padding: 72px 56px 56px; border: 1px solid var(--border); border-radius: 28px; background: #0a0b0f; }
.cn-hero .nm--bleed::after { background: linear-gradient(90deg, #0a0b0f 0%, #0a0b0fe8 34%, #0a0b0f8c 60%, #0a0b0f1a 100%), linear-gradient(0deg, #0a0b0f 0%, #0a0b0f00 40%); }
.cn-hero-copy { max-width: 680px; }
.site .cn-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border: 1px solid #9fd3ff33; border-radius: 999px; background: #9fd3ff12; font: 600 13px var(--mono); letter-spacing: .01em; color: #b8defc; }
.site .cn-hero h1 { margin: 22px 0 0; font-size: clamp(38px, 5.4vw, 64px); font-weight: 690; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.site .cn-lead { margin: 22px 0 0; max-width: 54ch; font-size: clamp(18px, 1.7vw, 20px); line-height: 1.55; color: #d4d4de; text-wrap: pretty; }
.cn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cn-share { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: #ffffff08; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.cn-share:hover { background: #ffffff12; color: var(--text); }
.cn-share:focus-visible, .cn-link-button:focus-visible { outline: 2px solid #b8defc; outline-offset: 2px; }
.site .cn-checked { margin: 18px 0 0; font-size: 13px; color: var(--text-3); }

/* The short answer: four facts under the hero. */
.cn-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cn-fact { --t: var(--none); display: grid; align-content: start; gap: 6px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--t) 7%, #0b0c10); }
.cn-fact--block { --t: var(--block); }
.cn-fact--warn { --t: var(--limited); }
.cn-fact--law { --t: var(--varies); }
.cn-fact-label { display: flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.cn-fact-label:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t); box-shadow: 0 0 10px var(--t); }
.cn-fact strong { font-size: 22px; font-weight: 680; letter-spacing: -.015em; color: var(--t); }
.site .cn-fact p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* On this page: one scrolling row of chips. */
.cn-toc { margin: 28px -24px 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.cn-toc::-webkit-scrollbar { display: none; }
.cn-toc div { display: flex; gap: 8px; width: max-content; padding: 0 24px; }
.cn-toc a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: #ffffff05; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: background-color .15s, color .15s; }
.cn-toc a:hover { background: #ffffff0f; color: var(--text) !important; }

/* Sections */
.cn-section { padding-top: 112px; scroll-margin-top: 80px; }
.cn-head { max-width: 760px; }
.site .cn-kicker { margin: 0 0 14px; font: 600 13px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #c9b8ff; }
.site .cn-head h2 { margin: 0; font-size: clamp(30px, 3.8vw, 46px); font-weight: 680; line-height: 1.06; letter-spacing: -.038em; text-wrap: balance; }
.site .cn-head p:not(.cn-kicker) { margin: 18px 0 0; max-width: 66ch; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.site .cn-note { margin: 22px 0 0; max-width: 78ch; font-size: 15px; line-height: 1.6; color: var(--text-3); }
.site .cn-p { margin: 14px 0 0; max-width: 70ch; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.site .cn a:not(.button):not(.cn-hw-link):not(.source-chip):not(.cn-more), .site .cn-facts a:not(.source-chip) { color: #c9b8ff; text-decoration: underline; text-decoration-color: #c9b8ff55; text-underline-offset: 4px; }
/* Source chips (the shared .source-chip in marketing.css): where the rows sit on this page. */
.site .cn-head .source-chips { margin-top: 14px; }
.site .cn-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #c9b8ff; text-decoration: none; }
.site .cn-more:hover { color: var(--text); }
.cn-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: linear-gradient(145deg, #b096fa33, #7aa2ff1f); box-shadow: inset 0 0 0 1px #b096fa40; color: #cdbcff; }

/* Checklist */
.cn-check { margin-top: 36px; padding: 10px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(180deg, #ffffff07, #ffffff02); }
.cn-check ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.cn-check li { display: grid; align-content: start; margin: 0; border-radius: 16px; }
.site .cn-check-src { margin: -8px 0 0; padding: 0 18px 16px calc(18px + 24px + 14px + 42px + 14px); }
.cn-check-item { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px; align-items: start; height: 100%; padding: 18px; border-radius: 16px; cursor: pointer; transition: background-color .15s; }
.cn-check-item:hover { background: #ffffff07; }
.cn-check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cn-check-box { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 9px; border: 1.5px solid var(--border-strong); border-radius: 8px; color: transparent; transition: background-color .15s, border-color .15s, color .15s; }
.cn-check-item input:checked ~ .cn-check-box { border-color: var(--ok); background: var(--ok); color: #07130c; }
.cn-check-item input:focus-visible ~ .cn-check-box { outline: 2px solid #b8defc; outline-offset: 2px; }
.cn-check-item input:checked ~ .cn-check-icon { background: #6ee7a81f; box-shadow: inset 0 0 0 1px #6ee7a84d; color: var(--ok); }
.cn-check-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff14; color: var(--text-2); transition: background-color .15s, color .15s; }
.cn-check-copy { display: grid; gap: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.cn-check-copy strong { display: flex; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 620; color: var(--text); }
.cn-check-n { font: 600 12px var(--mono); color: var(--text-3); }
.cn-check-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 8px 0; padding: 14px 10px 10px; border-top: 1px solid #ffffff0d; }
.site .cn-check-count { margin: 0; font: 600 13px var(--mono); color: var(--text-3); }
.cn-check.is-done .cn-check-count { color: var(--ok); }
.cn-link-button { padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font: inherit; font-size: 14px; cursor: pointer; }
.cn-link-button:hover { background: #ffffff0a; color: var(--text); }

/* States, as a pill: icon, colour and words. */
.cn-state { --t: var(--ok); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 620; line-height: 1.3; color: var(--t); }
.cn-state svg { flex: none; }
.cn-state--block { --t: var(--block); }
.cn-state--unsupported { --t: var(--unsupported); }
.cn-state--limited { --t: var(--limited); }
.cn-state--patchy { --t: var(--patchy); }
.cn-state--varies { --t: var(--varies); }
.cn-legend { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.cn-legend li { margin: 0; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--t) 10%, transparent); font-size: 13px; }

/* The matrix */
.cn-matrix { margin-top: 16px; border: 1px solid var(--border); border-radius: 24px; background: #0b0c10; overflow: clip; }
.cn-row { display: grid; grid-template-columns: minmax(200px, 1.15fr) repeat(3, minmax(0, 1fr)); border-top: 1px solid #ffffff0d; }
.cn-row > * { min-width: 0; padding: 16px 18px; }
/* Pinned flush under the floating nav (14px + 60px), opaque and compact, with a soft edge so rows pass cleanly beneath it. */
.cn-row--head { position: sticky; top: 74px; z-index: 2; border-top: 0; background: #101117; box-shadow: 0 1px 0 #ffffff0f, 0 14px 24px -14px #000; }
.cn-row--head > * { padding-block: 12px; }
.cn-svc-head { align-self: center; font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.cn-col { display: flex; gap: 10px; align-items: flex-start; }
.cn-col-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: #ffffff0a; color: #b8defc; }
.cn-col strong { display: block; font-size: 15px; font-weight: 640; color: var(--text); }
.cn-col small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.cn-group { border-top: 1px solid #ffffff0d; background: #ffffff04; }
.cn-group span { display: block; padding: 10px 18px; font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #c9b8ff; }
.cn-svc { display: flex; align-items: center; gap: 12px; }
.cn-svc strong { font-size: 15.5px; font-weight: 620; line-height: 1.3; color: var(--text); }
.cn-cell { display: grid; align-content: start; gap: 4px; }
.cn-cell small { font-size: 13px; line-height: 1.45; color: var(--text-3); }
.cn-cell-where { display: none; }
.cn-cell--block { background: #ff8a7a08; }
.cn-cell--unsupported { background: #f2a96a07; }
.site .cn-cell .source-chips { margin-top: 4px; }

/* How data travels: three lanes of nodes with a moving packet between them. Text stays HTML, so it translates. */
.cn-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px 56px; align-items: start; }
.cn-split .cn-head { position: sticky; top: 96px; }
.cn-routes { display: grid; gap: 12px; margin: 0; }
.cn-lane { padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(180deg, #ffffff07, #ffffff02); }
.cn-lane-name { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; font-size: 15px !important; font-weight: 620; color: var(--text) !important; }
.cn-lane-name b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #b096fa29; font: 600 12px var(--mono); color: #d4c8ff; }
.cn-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.cn-node { position: relative; display: grid; align-content: center; gap: 2px; min-height: 64px; margin: 0; padding: 10px 12px; border: 1px solid #ffffff1c; border-radius: 14px; background: #0d0e14; font-size: 13.5px; line-height: 1.3; color: var(--text); }
.cn-node small { font-size: 12px; color: var(--text-3); }
.cn-node--wide { grid-column: span 2; }
.cn-node--net { border-color: #66b3fa55; background: #66b3fa12; color: #cfe8ff; }
.cn-node--you { border-color: #b096fa55; background: #b096fa12; }
.cn-node + .cn-node:before { content: ""; position: absolute; inset-inline-start: -27px; top: 50%; width: 26px; height: 2px; background: linear-gradient(90deg, #b096fa80, #66b3fa80); }
.cn-node + .cn-node:after { content: ""; position: absolute; inset-inline-start: -27px; top: calc(50% - 2px); width: 6px; height: 6px; border-radius: 50%; background: #e4ecff; box-shadow: 0 0 8px #9fd3ff; animation: cn-packet 2.4s linear infinite; }
.cn-lane:nth-child(2) .cn-node + .cn-node:after { animation-delay: .8s; }
.cn-lane:nth-child(3) .cn-node + .cn-node:after { animation-delay: 1.6s; }
@keyframes cn-packet { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(20px); opacity: 0; } }
[dir="rtl"] .cn-node + .cn-node:after { animation-name: cn-packet-rtl; }
@keyframes cn-packet-rtl { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(-20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cn-node + .cn-node:after { animation: none; opacity: 0; } }
.cn-routes figcaption { font-size: 14px; line-height: 1.55; color: var(--text-3); }

/* Cards */
.cn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.cn-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cn-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, #ffffff07, #ffffff02); }
.site .cn-card h3 { margin: 20px 0 0; font-size: 20px; font-weight: 640; letter-spacing: -.02em; }
.site .cn-tag { margin: 6px 0 0; font: 600 12.5px var(--mono); color: #b8defc; }
.site .cn-card p:not(.cn-tag) { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.cn-card ul { display: grid; gap: 10px; margin: 16px 0 0; padding-inline-start: 18px; }
.site .cn-card li { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.cn-card li::marker { color: #c9b8ff; }

/* Venue tips */
.cn-tips { display: grid; gap: 12px; }
.cn-tip { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, #ffffff07, #ffffff02); }
.site .cn-tip h3 { margin: 6px 0 0; font-size: 18px; font-weight: 620; letter-spacing: -.01em; }
.site .cn-tip p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* AI and developer tools */
.site .cn-sub { margin: 56px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -.025em; scroll-margin-top: 90px; }
.cn-term { margin: 22px 0 0; max-width: 860px; border: 1px solid var(--border); border-radius: 18px; background: #08090d; overflow: hidden; }
.cn-term figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: #ffffff04; font: 600 12px var(--mono); color: var(--text-3); }
.cn-term pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font: 14px/1.8 var(--mono); color: #ececf3; white-space: pre; }
.cn-term code { padding: 0; background: none; font: inherit; color: inherit; }
.cn-term .p { color: #b096fa; user-select: none; }
.cn-term .c { color: #8a8a9c; }
.cn-points { display: grid; gap: 12px; max-width: 78ch; margin: 24px 0 0; padding-inline-start: 20px; }
.site .cn-points li { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.cn-points strong { color: var(--text); font-weight: 620; }
.cn-points li::marker { color: #c9b8ff; }

/* Hardware: the steps beside Kilobat's device-network panel. */
.cn-hw { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 48px; align-items: start; margin-top: 40px; }
.cn-steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.cn-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; margin: 0; padding: 0 0 28px; }
.cn-steps li:not(:last-child):before { content: ""; position: absolute; inset-inline-start: 17px; top: 40px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #b096fa55, #ffffff0a); }
.cn-step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #b096fa24; font: 600 14px var(--mono); color: #d4c8ff; }
.site .cn-steps h3 { margin: 6px 0 0; font-size: 18px; font-weight: 620; }
.site .cn-steps p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.cn-hw-card { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--border-strong); border-radius: 22px; background: radial-gradient(90% 60% at 80% 0%, #7b5cf024, transparent 70%), #0d0e14; box-shadow: 0 40px 90px -40px #000; }
.site .cn-hw-kicker { margin: 0 0 12px; font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.cn-hw-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cn-hw-rows li, .cn-hw-device { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 14px; background: #ffffff06; }
.cn-hw-rows li.on { background: #6ee7a812; box-shadow: inset 0 0 0 1px #6ee7a833; }
.cn-hw-rows strong, .cn-hw-device strong { display: block; font-size: 14.5px; font-weight: 620; color: var(--text); }
.cn-hw-rows small, .cn-hw-device small { display: block; font-size: 12.5px; color: var(--text-3); }
.cn-hw-rows b { font: 600 12.5px var(--mono); color: var(--text-2); }
.cn-hw-rows li.on b { color: var(--ok); }
.cn-hw-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #ffffff0d; color: #cfe8ff; }
.cn-hw-device { grid-template-columns: auto minmax(0, 1fr); margin-top: 12px; }
.cn-hw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.cn-hw-chips li { margin: 0; padding: 4px 10px; border-radius: 999px; background: #ffffff0a; font-size: 12.5px; color: var(--text-2); }
.cn-hw-chips b { font: 600 12px var(--mono); color: #c9b8ff; }
.site .cn-hw-text { margin: 16px 2px 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.cn-hw-link { display: inline-flex; align-items: center; gap: 6px; margin: 12px 2px 2px; font-size: 14.5px; font-weight: 600; color: #c9b8ff; }
.cn-hw-link:hover { color: #e2d8ff !important; }

/* Mainland China, Hong Kong and Macao side by side */
.cn-compare { margin-top: 36px; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: #0b0c10; }
.cn-compare-row { display: grid; grid-template-columns: minmax(130px, .6fr) repeat(3, minmax(0, 1fr)); border-top: 1px solid #ffffff0d; }
.cn-compare-row > * { min-width: 0; padding: 16px 20px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.cn-compare-row > [role="rowheader"] { font-weight: 620; color: var(--text); }
.cn-compare-row--head { border-top: 0; background: #ffffff05; }
.cn-compare-row--head > * { font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }

/* What's legal and what isn't */
.cn-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.cn-rules-col { --t: var(--ok); padding: 24px; border: 1px solid color-mix(in srgb, var(--t) 26%, transparent); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--t) 9%, transparent), color-mix(in srgb, var(--t) 2%, transparent)); }
.cn-rules-col--no { --t: var(--block); }
.site .cn-rules h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; font-weight: 650; color: var(--t); }
.cn-rules ul { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.site .cn-rules li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid #ffffff0d; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.cn-rules li:first-child { border-top: 0; }
.cn-rules li svg { margin-top: 3px; color: var(--t); }

/* Troubleshooting */
.cn-fails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.cn-fail { --t: var(--none); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--t) 11%, transparent), transparent 70%), #0b0c10; }
.cn-fail--block { --t: var(--block); }
.cn-fail--slow { --t: var(--varies); }
.cn-fail .cn-icon { width: 38px; height: 38px; background: color-mix(in srgb, var(--t) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 30%, transparent); color: var(--t); }
.site .cn-fail h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 18px; font-weight: 640; line-height: 1.25; }
.site .cn-fail-label { margin: 20px 0 0; font: 600 11.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.site .cn-fail p:not(.cn-fail-label) { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.cn-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; margin-top: 14px; padding: 28px; border: 1px solid #b096fa38; border-radius: var(--radius); background: linear-gradient(180deg, #b096fa12, #b096fa04); }
.site .cn-why h3 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.site .cn-why-copy p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.cn-why-demo { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--border-strong); border-radius: 18px; background: #0c0d12; list-style: none; box-shadow: 0 30px 70px -40px #000; }
.cn-why-demo li { --t: var(--none); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--t) 7%, transparent); }
.cn-why--block { --t: var(--block) !important; }
.cn-why--slow { --t: var(--varies) !important; }
.cn-why-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--t) 16%, transparent); color: var(--t); }
.cn-why-demo strong { display: block; font-size: 14.5px; font-weight: 620; color: var(--text); }
.cn-why-demo small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-3); }

/* Questions, sources and the close */
.site.page .cn .faq { display: block; padding: 0; }
.cn .faq-list { max-width: 860px; margin: 28px 0 0; }
.cn-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 24px 0 0; padding: 0; list-style: none; }
.site .cn-sources li { display: grid; align-content: start; gap: 2px; margin: 0; padding: 12px 0; border-top: 1px solid #ffffff0d; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.cn-sources-kind { font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.site .cn .cn-sources a { color: var(--text-2); text-decoration-color: #ffffff30; }
.site .cn .cn-sources a:hover { color: var(--text); }
.cn-cta { margin-top: 112px; padding: 64px 28px; border: 1px solid var(--border); border-radius: 28px; text-align: center; background: radial-gradient(60% 80% at 50% 0, #7b5cf02e, transparent), #0b0c10; }
.site .cn-cta h2 { margin: 0 auto; max-width: 20ch; font-size: clamp(30px, 4vw, 46px); font-weight: 680; letter-spacing: -.04em; line-height: 1.06; text-wrap: balance; }
.site .cn-cta p { margin: 16px auto 0; max-width: 58ch; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.cn-cta .hero-actions { justify-content: center; margin-top: 28px; }
.cn-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }

@media (max-width: 1000px) {
  .cn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-split, .cn-hw, .cn-why { grid-template-columns: minmax(0, 1fr); }
  .cn-split .cn-head, .cn-hw-card { position: static; }
  .cn-cards, .cn-fails { grid-template-columns: minmax(0, 1fr); }
  .cn-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-hw-card { max-width: 480px; }
  .cn-compare-row > * { padding: 14px 14px; font-size: 14.5px; }
}

/* Phones: the matrix becomes one card per service, the routes become steppers. */
@media (max-width: 760px) {
  .cn-hero { min-height: 0; margin-top: 12px; padding: 40px 20px 28px; border-radius: 22px; }
  .cn-hero .nm--bleed::after { background: linear-gradient(180deg, #0a0b0fcc 0%, #0a0b0fe6 50%, #0a0b0f 100%); }
  .site .cn-hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .site .cn-lead { font-size: 17px; }
  .cn-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cn-actions .button { padding: 12px 8px; white-space: nowrap; font-size: 14.5px; }
  .cn-share { grid-column: 1 / -1; justify-content: center; }
  .cn-fact { padding: 16px; }
  .cn-fact strong { font-size: 19px; }
  .cn-section { padding-top: 80px; }
  .site .cn-head p:not(.cn-kicker) { font-size: 17px; }
  .cn-check { padding: 6px; border-radius: 20px; }
  .cn-check ol { grid-template-columns: minmax(0, 1fr); }
  .cn-check-item { grid-template-columns: auto minmax(0, 1fr); padding: 14px 12px; gap: 12px; }
  .cn-check-icon { display: none; }
  .cn-check-box { margin-top: 1px; }
  .site .cn-check-src { padding: 0 12px 14px 48px; }
  .cn-sources { grid-template-columns: minmax(0, 1fr); }
  .cn-matrix { border: 0; border-radius: 0; background: none; overflow: visible; display: grid; gap: 10px; }
  .cn-row--head { display: none; }
  .cn-group { margin-top: 14px; border: 0; background: none; }
  .cn-group span { padding: 0 2px; }
  .cn-row { grid-template-columns: minmax(0, 1fr); border: 1px solid var(--border); border-radius: 18px; background: #0b0c10; overflow: hidden; }
  .cn-row > * { padding: 12px 14px; }
  .cn-svc { padding-bottom: 10px; }
  .cn-cell { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; border-top: 1px solid #ffffff0d; }
  .cn-cell-where { display: block; font-size: 13.5px; color: var(--text-2); }
  .cn-cell .cn-state { justify-self: end; font-size: 13.5px; text-align: end; }
  .cn-cell small { grid-column: 1 / -1; }
  .cn-cell--repeat small { display: none; }
  .cn-path { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cn-node--wide { grid-column: auto; }
  .cn-node { min-height: 0; }
  .cn-node + .cn-node:before { inset-inline-start: 22px; top: -15px; width: 2px; height: 14px; background: linear-gradient(180deg, #b096fa80, #66b3fa80); }
  .cn-node + .cn-node:after { inset-inline-start: 20px; top: -15px; animation-name: cn-packet-down; }
  [dir="rtl"] .cn-node + .cn-node:after { animation-name: cn-packet-down; }
  @keyframes cn-packet-down { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(10px); opacity: 0; } }
  .cn-lane { padding: 14px; }
  .cn-cards--two, .cn-rules { grid-template-columns: minmax(0, 1fr); }
  .cn-card, .cn-fail, .cn-rules-col { padding: 20px; }
  .cn-tip { padding: 18px; gap: 14px; }
  .cn-tip .cn-icon { width: 36px; height: 36px; }
  .cn-term pre { font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .cn-compare { border: 0; border-radius: 0; background: none; overflow: visible; display: grid; gap: 10px; }
  .cn-compare-row--head { display: none; }
  .cn-compare-row { grid-template-columns: minmax(0, 1fr); border: 1px solid var(--border); border-radius: 16px; background: #0b0c10; }
  .cn-compare-row > [role="rowheader"] { grid-column: 1 / -1; padding-bottom: 0; }
  .cn-compare-row > [role="cell"] { padding-top: 8px; font-size: 14.5px; }
  .cn-compare-row > [role="cell"]:before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
  .cn-why { padding: 20px; }
  .cn-cta { margin-top: 80px; padding: 48px 18px; border-radius: 22px; }
  .cn-related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .cn-facts { grid-template-columns: minmax(0, 1fr); }
  .cn-fact { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; }
  .cn-fact-label { grid-column: 1; }
  .cn-fact strong { grid-column: 2; grid-row: 1; font-size: 16px; text-align: end; }
  .cn-fact p { grid-column: 1 / -1; }
}
.cn-rule-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cn-rule-notes > div { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #ffffff04; }
.site .cn-rule-notes p:not(.source-chips) { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.cn-rule-notes strong { display: block; margin-bottom: 6px; font-size: 16px; color: var(--text); }
@media (max-width: 1000px) { .cn-rule-notes { grid-template-columns: minmax(0, 1fr); } }

.site .cn-rules .source-chips, .site .cn-compare .source-chips { margin-top: 6px; }
.site .cn-card li .source-chips, .site .cn-points .source-chips { margin-top: 6px; }
