/* Page-level styles. Shared across pages to keep requests low (one cached file). */

/* ================================================================ HOME */
.hero { padding: var(--s-16) 0 var(--s-12); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-12); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-sub { font-size: var(--fs-lg); color: var(--cn-text-2); margin-top: var(--s-5); max-width: 52ch; }
.hero-cta { margin-top: var(--s-8); }
.hero-stats { display: flex; gap: var(--s-10); margin: var(--s-10) 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: var(--fs-xs); color: var(--cn-text-3); text-transform: uppercase; letter-spacing: .06em; }
.hero-stats dd { margin: 0; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; }
.demo-card { background: var(--cn-surface); border: 1px solid var(--cn-border); border-radius: var(--cn-r-xl); padding: 10px; box-shadow: var(--cn-shadow-lg); }
.demo-swatches { display: flex; height: 380px; border-radius: 18px; overflow: hidden; }
.demo-sw { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding: 18px 4px; transition: background .5s var(--ease), flex .3s var(--ease); position: relative; min-width: 0; }
.demo-sw:hover { flex: 1.35; }
.demo-hex { background: none; border: 0; color: inherit; font: 700 14px var(--font-mono); letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; }
.demo-hex:hover { background: rgba(127,127,127,.18); }
.demo-name { font-size: 11px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.demo-lock { position: absolute; top: 14px; background: none; border: 0; color: inherit; opacity: 0; transition: opacity .2s; padding: 6px; border-radius: 8px; }
.demo-sw:hover .demo-lock, .demo-lock.on, .demo-lock:focus-visible { opacity: .85; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 4px; font-size: 13px; gap: 8px; flex-wrap: wrap; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .demo-swatches { height: 260px; } .hero h1 { max-width: none; } }
@media (max-width: 640px) { .hero-stats { gap: var(--s-6); } .hero-cta .btn-lg { width: 100%; } }

.featured-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-5); }
.feature-tile { display: flex; flex-direction: column; gap: 10px; }
.feature-tile.big { grid-row: span 2; }
.feature-sw { flex: 1; display: flex; border-radius: var(--cn-r-lg); overflow: hidden; min-height: 150px; box-shadow: var(--cn-shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.feature-tile:hover .feature-sw { transform: translateY(-3px); box-shadow: var(--cn-shadow-lg); }
.feature-sw span { flex: 1; }
.feature-tile.big .feature-sw { min-height: 340px; flex-direction: column; }
.feature-meta { display: flex; flex-direction: column; font-size: var(--fs-sm); }
.feature-meta .subtle { font-family: var(--font-mono); font-size: 11px; }
@media (max-width: 860px) { .featured-grid { grid-template-columns: 1fr 1fr; } .feature-tile.big { grid-column: 1 / -1; grid-row: auto; } .feature-tile.big .feature-sw { min-height: 200px; flex-direction: row; } }

.random-band, .extract-band { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-10); align-items: center; background: var(--cn-surface); border: 1px solid var(--cn-border); border-radius: var(--cn-r-xl); padding: var(--s-10); }
@media (max-width: 860px) { .random-band, .extract-band { grid-template-columns: 1fr; padding: var(--s-6); } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-4); }
.cat-tile { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--cn-r-lg); background: var(--cn-surface); border: 1px solid var(--cn-border); transition: all .2s var(--ease); font-size: var(--fs-sm); }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--cn-shadow-md); }
.cat-tile .strip { height: 56px; border-radius: 10px; }
.strip i { flex: 1; display: block; }

.mood-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
.mood-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--cn-r-lg); background: var(--cn-surface); border: 1px solid var(--cn-border); font-weight: 600; font-size: var(--fs-sm); transition: all .2s; }
.mood-tile:hover { border-color: var(--cn-border-strong); box-shadow: var(--cn-shadow-sm); }
.mood-dots { display: flex; }
.mood-dots i { width: 20px; height: 20px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px var(--cn-surface); }
.mood-dots i:first-child { margin-left: 0; }
@media (max-width: 860px) { .mood-grid { grid-template-columns: repeat(2, 1fr); } }

.cotd { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--cn-r-xl); overflow: hidden; border: 1px solid var(--cn-border); background: var(--cn-surface); }
.cotd-swatch { padding: var(--s-10); min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.cotd-info { padding: var(--s-8); display: flex; flex-direction: column; gap: var(--s-5); justify-content: center; }
.cotd .strip button { flex: 1; }
.pair-mini { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .cotd { grid-template-columns: 1fr; } .cotd-swatch { min-height: 220px; padding: var(--s-6); } }

.grad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.grad-tile { display: flex; flex-direction: column; gap: 8px; }
.grad-sw { display: block; height: 150px; border-radius: var(--cn-r-lg); box-shadow: var(--cn-shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.grad-sw:hover { transform: translateY(-2px); box-shadow: var(--cn-shadow-md); }
@media (max-width: 860px) { .grad-grid { grid-template-columns: repeat(2, 1fr); } }

.combo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); }
.combo { border-radius: var(--cn-r-lg); padding: 14px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.combo-aa { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.combo-foot { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font: 600 10.5px var(--font-mono); }
.combo-foot button { background: none; border: 0; padding: 0; font: inherit; }
.combo-foot .badge { color: #17171c; }
@media (max-width: 960px) { .combo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .combo-grid { grid-template-columns: repeat(2, 1fr); } }

.tool-card { display: flex; flex-direction: column; gap: 8px; padding: var(--s-5); }
.tool-card h3 { font-size: 16px; }
.tool-card p { font-size: 13.5px; color: var(--cn-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--cn-primary-50); color: var(--cn-primary); }

.mini-drop { display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 4px; min-height: 260px; border: 1.5px dashed var(--cn-border-strong); border-radius: var(--cn-r-lg); padding: var(--s-6); cursor: pointer; transition: border-color .2s, background .2s; background: var(--cn-surface-2); }
.mini-drop.drag, .mini-drop:hover { border-color: var(--cn-primary); background: var(--cn-primary-50); }
.mini-drop [data-mini-empty] { display: flex; flex-direction: column; gap: 4px; }
.mini-drop .strip button { flex: 1; }

/* ============================================================ EXPLORE */
.explore-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--s-8); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: var(--s-5); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 4px; }
.filter-group h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--cn-text-3); margin-bottom: 10px; }
.family-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.family-dots button { aspect-ratio: 1; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; transition: transform .15s; }
.family-dots button:hover { transform: scale(1.1); }
.family-dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cn-bg), 0 0 0 4px var(--cn-text); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); flex-wrap: wrap; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .explore-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 80vh; background: var(--cn-surface); z-index: 80; padding: var(--s-5); border-radius: var(--cn-r-xl) var(--cn-r-xl) 0 0; box-shadow: var(--cn-shadow-lg); transform: translateY(105%); transition: transform .3s var(--ease); }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
}
.pager { display: flex; justify-content: center; gap: 6px; margin-top: var(--s-10); flex-wrap: wrap; }

/* ============================================================== DETAIL */
.detail-hero { display: flex; height: min(56vh, 460px); border-radius: var(--cn-r-xl); overflow: hidden; box-shadow: var(--cn-shadow-md); }
.detail-hero > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; gap: 2px; transition: flex .3s var(--ease); cursor: pointer; min-width: 0; }
.detail-hero > div:hover { flex: 1.3; }
.detail-hero strong { font: 700 15px var(--font-mono); }
.detail-hero span { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .detail-hero { flex-direction: column; height: auto; } .detail-hero > div { min-height: 76px; flex-direction: row; align-items: center; justify-content: space-between; } }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-8); margin-top: var(--s-8); align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.color-rows { display: flex; flex-direction: column; }
.color-row { display: grid; grid-template-columns: 52px 1fr repeat(3, auto); gap: var(--s-4); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--cn-border); font-size: var(--fs-sm); }
.color-row .swatch { width: 52px; height: 52px; border-radius: 12px; }
.color-row .mono { font-size: 13px; }
@media (max-width: 720px) { .color-row { grid-template-columns: 44px 1fr; } .color-row > :nth-child(n+3) { grid-column: 2; } }
.meter { height: 8px; border-radius: 99px; background: var(--cn-bg-subtle); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--cn-text); border-radius: inherit; }
.contrast-matrix { border-collapse: separate; border-spacing: 4px; font-size: 11px; }
.contrast-matrix td, .contrast-matrix th { width: 56px; height: 44px; text-align: center; border-radius: 8px; font-weight: 600; }
.contrast-matrix th { padding: 0; }
.contrast-matrix th div { width: 100%; height: 100%; border-radius: 8px; }

/* =========================================================== GENERATOR */
body.gen-page .site-footer { display: none; }
.gen-wrap { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); min-height: 520px; }
.gen-toolbar { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-5); border-bottom: 1px solid var(--cn-border); background: var(--cn-surface); flex-wrap: wrap; }
.gen-toolbar .spacer { flex: 1; }
.gen-cols { flex: 1; display: flex; min-height: 0; }
.gen-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 24px 6px 36px; position: relative; transition: background .35s var(--ease), flex .25s var(--ease); min-width: 0; }
.gen-col:hover { flex: 1.12; }
.gen-col .hex-input { width: min(140px, 92%); background: transparent; border: 0; text-align: center; font: 700 clamp(15px, 1.7vw, 24px) var(--font-mono); color: inherit; text-transform: uppercase; padding: 4px; border-radius: 8px; }
.gen-col .hex-input:focus { outline: none; background: rgba(127,127,127,.16); }
.gen-col .cname { font-size: 12px; opacity: .78; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92%; }
.gen-col-tools { display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .2s; margin-bottom: auto; }
.gen-col:hover .gen-col-tools, .gen-col:focus-within .gen-col-tools { opacity: 1; }
.gen-col-tools button, .gen-col-tools label { background: none; border: 0; color: inherit; padding: 8px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; position: relative; }
.gen-col-tools button:hover, .gen-col-tools label:hover { background: rgba(127,127,127,.2); }
.gen-col-tools input[type=color] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.gen-col .lock-btn { background: none; border: 0; color: inherit; padding: 8px; border-radius: 10px; opacity: .55; }
.gen-col .lock-btn.on { opacity: 1; }
.gen-col .lock-btn:hover { background: rgba(127,127,127,.2); opacity: 1; }
.gen-col .shade-strip { position: absolute; inset: 0; display: none; flex-direction: column; z-index: 2; }
.gen-col .shade-strip.open { display: flex; }
.gen-col .shade-strip button { flex: 1; border: 0; font: 600 12px var(--font-mono); }
.gen-col[draggable="true"] { cursor: grab; }
.gen-col.drag-over { box-shadow: inset 4px 0 0 var(--cn-text); }
.gen-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; opacity: .65; pointer-events: none; }
.gen-wrap.fullscreen { position: fixed; inset: 0; z-index: 120; height: 100vh; }
.gen-wrap.fullscreen .gen-toolbar { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transition: opacity .2s; z-index: 3; }
.gen-wrap.fullscreen:hover .gen-toolbar { opacity: 1; }
@media (max-width: 720px) { .gen-cols { flex-direction: column; } .gen-col { flex-direction: row; justify-content: space-between; padding: 8px 16px; } .gen-col-tools { flex-direction: row; opacity: 1; margin: 0; order: 3; } .gen-col .hex-input { text-align: left; width: 110px; } .gen-hint { display: none; } }
.gen-side { position: fixed; right: 16px; top: calc(var(--header-h) + 64px); width: 320px; max-height: calc(100vh - var(--header-h) - 96px); overflow: auto; z-index: 40; box-shadow: var(--cn-shadow-lg); }

/* ============================================================ EXTRACT */
.extract-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-8); align-items: start; }
@media (max-width: 960px) { .extract-layout { grid-template-columns: 1fr; } }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 380px; border: 1.5px dashed var(--cn-border-strong); border-radius: var(--cn-r-xl); background: var(--cn-surface); cursor: pointer; transition: all .2s; padding: var(--s-6); position: relative; overflow: hidden; }
.dropzone.drag, .dropzone:hover { border-color: var(--cn-primary); background: var(--cn-primary-50); }
.dropzone img, .dropzone canvas { max-width: 100%; max-height: 520px; border-radius: var(--cn-r-lg); }
.dropzone.has-image { padding: 10px; cursor: crosshair; border-style: solid; }
.extracted { display: flex; flex-direction: column; gap: 8px; }
.ex-row { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--cn-surface); border: 1px solid var(--cn-border); }
.ex-row .swatch { width: 48px; height: 48px; position: relative; overflow: hidden; }
.ex-row .swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.loupe { position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--cn-shadow-lg); pointer-events: none; display: none; image-rendering: pixelated; z-index: 5; }

/* ============================================================ GRADIENT */
.grad-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--s-6); align-items: start; }
@media (max-width: 960px) { .grad-layout { grid-template-columns: 1fr; } }
.grad-preview { height: 420px; border-radius: var(--cn-r-xl); box-shadow: var(--cn-shadow-md); position: relative; }
.grad-track { position: relative; height: 34px; border-radius: 10px; margin: 26px 10px 18px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); cursor: copy; }
.grad-stop { position: absolute; top: 50%; width: 20px; height: 42px; transform: translate(-50%, -50%); border-radius: 8px; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); cursor: grab; touch-action: none; }
.grad-stop.active { outline: 2px solid var(--cn-text); outline-offset: 2px; }
.stop-row { display: grid; grid-template-columns: 42px 1fr 70px 32px; gap: 8px; align-items: center; }
.code-block { position: relative; background: var(--cn-surface-2); border: 1px solid var(--cn-border); border-radius: var(--cn-r-md); padding: 14px 16px; font: 12.5px/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-all; }
.code-block .btn { position: absolute; top: 8px; right: 8px; }

/* =============================================================== TOOLS */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); align-items: start; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; } }
.tool-app { min-height: 640px; } /* reserve space → no layout shift when the tool renders */
.tool-panel { display: grid; gap: var(--s-5); }
.tool-out { display: grid; gap: var(--s-3); }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fmt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--cn-border); border-radius: var(--cn-r-md); background: var(--cn-surface); font-size: var(--fs-sm); cursor: pointer; text-align: left; transition: border-color .15s; }
.fmt:hover { border-color: var(--cn-border-strong); }
.fmt .label { font-size: 11px; }
.swatches-row { display: flex; border-radius: var(--cn-r-md); overflow: hidden; min-height: 96px; }
.swatches-row button { flex: 1; border: 0; display: flex; align-items: flex-end; justify-content: center; padding: 8px 2px; font: 600 11px var(--font-mono); min-width: 0; }
.big-swatch { height: 180px; border-radius: var(--cn-r-lg); display: flex; align-items: flex-end; padding: 16px; font: 700 20px var(--font-mono); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.tool-index-group { margin-top: var(--s-10); }
.how-list { padding-left: 20px; margin: 0; display: grid; gap: 6px; color: var(--cn-text-2); font-size: var(--fs-sm); }
.wheel-wrap { position: relative; width: min(360px, 100%); aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; border-radius: 50%; cursor: crosshair; touch-action: none; }
.wheel-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); transform: translate(-50%, -50%); pointer-events: none; }
.bar-chart { display: grid; gap: 8px; }
.bar-chart .bar { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; font-size: var(--fs-sm); }

/* ============================================================= PREVIEW */
.preview-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-6); align-items: start; }
@media (max-width: 960px) { .preview-layout { grid-template-columns: 1fr; } }
.preview-stage { border-radius: var(--cn-r-xl); overflow: hidden; border: 1px solid var(--cn-border); box-shadow: var(--cn-shadow-md); background: var(--pv-bg); color: var(--pv-text); min-height: 560px; }
.role-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.role-row select { width: 120px; height: 34px; }

/* =========================================================== DASHBOARD */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-8); align-items: start; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 16px); }
.dash-nav button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 500; color: var(--cn-text-2); display: flex; gap: 10px; align-items: center; }
.dash-nav button[aria-selected="true"] { background: var(--cn-surface); color: var(--cn-text); box-shadow: var(--cn-shadow-sm); }
@media (max-width: 860px) { .dash-layout { grid-template-columns: 1fr; } .dash-nav { flex-direction: row; overflow-x: auto; position: static; } .dash-nav button { white-space: nowrap; } }

/* ============================================================ ARTICLES */
.prose { max-width: 760px; }
.prose h2 { margin: var(--s-12) 0 var(--s-4); font-size: var(--fs-2xl); }
.prose h3 { margin: var(--s-6) 0 var(--s-2); }
.prose p, .prose li { color: var(--cn-text-2); font-size: 1.02rem; line-height: 1.75; }
.prose p + p { margin-top: var(--s-4); }
.prose ul { padding-left: 20px; }

/* Reserve space for async-loaded grids (prevents CLS) */
.explore-layout [data-grid] { min-height: 1100px; }
[data-feed-grid] { min-height: 470px; }

/* Grid children default to min-width:auto, which lets long content push past the viewport on mobile. */
.hero-grid > *, .explore-layout > *, .detail-grid > *, .extract-layout > *, .grad-layout > *, .tool-layout > *, .preview-layout > *, .dash-layout > *, .random-band > *, .extract-band > *, .cotd > * { min-width: 0; }
.preview-stage { overflow-x: auto; }
@media (max-width: 960px) { .preview-layout aside { position: static !important; } }
@media (max-width: 640px) { .hero h1 { font-size: 2.3rem; overflow-wrap: anywhere; } .hero-stats { flex-wrap: wrap; } }

/* Tool articles & FAQ accordion */
.tool-article a { color: var(--cn-primary); text-decoration: underline; text-underline-offset: 2px; }
.faq { display: grid; gap: 10px; margin-top: var(--s-4); }
.faq details { background: var(--cn-surface); border: 1px solid var(--cn-border); border-radius: var(--cn-r-md); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--cn-text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--cn-text-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; }
