/* ComixUnlimited — ported from the Lovable "cx-light" discovery theme */

:root {
	--cx-bg: hsl(0 0% 100%);
	--cx-fg: hsl(0 0% 8%);
	--cx-elevated: hsl(0 0% 97%);
	--cx-secondary: hsl(0 0% 96%);
	--cx-muted: hsl(0 0% 42%);
	--cx-border: hsl(0 0% 89%);
	--cx-primary: hsl(356 78% 48%);
	--cx-primary-fg: #fff;
	--cx-ink: hsl(0 0% 7%);
	--cx-ink-fg: hsl(0 0% 98%);
	--cx-indie: hsl(268 60% 16%);
	--cx-indie-accent: hsl(268 84% 68%);
	--cx-success: hsl(152 60% 32%);
	--cx-radius: 10px;
	--cx-max: 1400px;
	--cx-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--cx-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
	margin: 0;
	font-family: var(--cx-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--cx-fg);
	background: var(--cx-bg);
	font-feature-settings: "cv11", "ss01", "ss03";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cx-primary); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.018em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cx-primary); outline-offset: 2px; }
:where(svg[aria-hidden="true"]) { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; clip: auto; width: auto; height: auto; padding: 8px 12px; background: #fff; color: var(--cx-fg); }

.cx-wrap { max-width: var(--cx-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .cx-wrap { padding: 0 24px; } }
.cx-main { padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 768px) { .cx-main { padding-top: 32px; } }

/* ---------- Header ---------- */
.cx-header { position: sticky; top: 0; z-index: 50; background: var(--cx-ink); color: var(--cx-ink-fg); }
.admin-bar .cx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cx-header { top: 0; } }
.cx-header__bar { display: flex; align-items: center; gap: 24px; height: 56px; }
@media (min-width: 768px) { .cx-header__bar { height: 64px; } }
.cx-logo { font-weight: 900; letter-spacing: -0.02em; font-size: 17px; white-space: nowrap; flex-shrink: 0; color: #fff; }
.cx-logo:hover { color: #fff; }
.cx-logo span { color: var(--cx-primary); }
@media (min-width: 768px) { .cx-logo { font-size: 19px; } }
.cx-logo img { max-height: 36px; width: auto; }
.cx-nav { display: none; flex: 1; }
.cx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
.cx-nav a { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.7); transition: color .15s; }
.cx-nav a:hover, .cx-nav .current-menu-item > a { color: #fff; }
@media (min-width: 1024px) { .cx-nav { display: block; } }
.cx-header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (min-width: 768px) { .cx-header__actions { gap: 12px; } }
.cx-icon-btn { height: 36px; width: 36px; display: grid; place-items: center; border-radius: 6px; color: rgba(255,255,255,.8); background: transparent; border: 0; }
.cx-icon-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.cx-icon-btn svg { width: 18px; height: 18px; }
.cx-menu-btn { display: grid; }
@media (min-width: 1024px) { .cx-menu-btn { display: none; } }
.cx-header .cx-btn--primary { display: none; }
@media (min-width: 640px) { .cx-header .cx-btn--primary { display: inline-flex; } }
.cx-header__search, .cx-header__mobile { border-top: 1px solid rgba(255,255,255,.1); background: var(--cx-ink); }
.cx-header__search[hidden], .cx-header__mobile[hidden] { display: none; }
.cx-header__search form { padding: 12px 0; }
.cx-header__search input { width: 100%; height: 44px; padding: 0 16px; border-radius: 6px; border: 0; background: rgba(255,255,255,.1); color: #fff; font: inherit; outline: none; }
.cx-header__search input::placeholder { color: rgba(255,255,255,.4); }
.cx-header__search input:focus { box-shadow: 0 0 0 2px var(--cx-primary); }
.cx-header__mobile ul { list-style: none; margin: 0; padding: 12px 0; }
.cx-header__mobile li a { display: block; padding: 12px 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.1); }
.cx-header__mobile .cx-btn { width: 100%; margin: 16px 0; height: 44px; }

/* ---------- Buttons, chips ---------- */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--cx-border); background: #fff; color: var(--cx-fg); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; transition: filter .15s, border-color .15s; }
.cx-btn:hover { border-color: var(--cx-fg); color: var(--cx-fg); }
.cx-btn--primary { background: var(--cx-primary); color: var(--cx-primary-fg); border-color: var(--cx-primary); }
.cx-btn--primary:hover { filter: brightness(1.1); color: #fff; border-color: var(--cx-primary); }
.cx-btn--light { background: #fff; color: var(--cx-indie); border-color: #fff; }
.cx-btn--lg { height: 48px; padding: 0 32px; font-size: 13px; }
.cx-btn--md { height: 44px; padding: 0 24px; font-size: 12px; }
.cx-btn--block { width: 100%; }

.cx-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: -4px; scroll-snap-type: x mandatory; max-width: 100%; }
.cx-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cx-border); background: transparent; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(20,20,20,.7); white-space: nowrap; transition: color .15s, border-color .15s; scroll-snap-align: start; }
.cx-chip:hover { border-color: var(--cx-fg); color: var(--cx-fg); }
.cx-chip--active, .cx-chip--active:hover { background: var(--cx-fg); color: var(--cx-bg); border-color: var(--cx-fg); }
.cx-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- Typography helpers ---------- */
.cx-rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--cx-fg); padding-bottom: 8px; margin-bottom: 16px; }
.cx-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cx-kicker svg { width: 16px; height: 16px; color: var(--cx-primary); flex-shrink: 0; }
.cx-more { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--cx-primary); white-space: nowrap; }
.cx-more:hover { text-decoration: underline; }
.cx-more svg { width: 12px; height: 12px; }
.cx-meta { font-family: var(--cx-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-muted); }
.cx-meta-inline { font-family: var(--cx-mono); font-size: 12px; color: var(--cx-muted); }
.cx-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-muted); }
.cx-accent { color: var(--cx-primary); }
.cx-muted { color: var(--cx-muted); }
.cx-page-title { font-size: 32px; font-weight: 900; letter-spacing: -0.03em; }
@media (min-width: 768px) { .cx-page-title { font-size: 44px; } }
.cx-page-head { padding: 28px 0 20px; border-bottom: 1px solid var(--cx-border); background: var(--cx-elevated); }
.cx-page-head p { margin: 8px 0 0; color: var(--cx-muted); max-width: 720px; }
.cx-page-head .cx-chips { margin-top: 16px; }
.cx-section { margin-top: 40px; }
@media (min-width: 768px) { .cx-section { margin-top: 56px; } }

/* ---------- Today bar ---------- */
.cx-today { border-bottom: 1px solid var(--cx-border); background: var(--cx-elevated); }
.cx-today__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.cx-today__date { margin: 8px 0 0; font-size: 13px; color: var(--cx-muted); }

/* ---------- Layout grids ---------- */
.cx-split { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .cx-split { grid-template-columns: 1fr 360px; gap: 40px; } }
@media (min-width: 1280px) { .cx-split { grid-template-columns: 1fr 400px; } }
.cx-three { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .cx-three { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.cx-grid { display: grid; gap: 16px; }
.cx-grid--covers { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cx-grid--covers { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cx-grid--covers { grid-template-columns: repeat(5, 1fr); } }
.cx-grid--wide { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cx-grid--wide { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cx-grid--wide { grid-template-columns: repeat(6, 1fr); } }
.cx-grid--cards { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cx-grid--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cx-grid--cards { grid-template-columns: repeat(4, 1fr); } }
.cx-grid--two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cx-grid--two { grid-template-columns: repeat(2, 1fr); } }
.cx-grid--three { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cx-grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cx-grid--three { grid-template-columns: repeat(3, 1fr); } }

/* Desktop main tabs */
.cx-subtabs { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--cx-border); padding-bottom: 8px; margin-bottom: 16px; }
.cx-subtab { padding: 6px 12px; border: 0; border-radius: 2px; background: transparent; font-family: var(--cx-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-muted); }
.cx-subtab:hover { color: var(--cx-fg); }
.cx-subtab[aria-selected="true"] { background: var(--cx-primary); color: #fff; font-weight: 700; }
[data-cx-panel][hidden] { display: none; }

/* ---------- Cover card ---------- */
.cx-cover { position: relative; display: block; }
.cx-cover__img { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; background: var(--cx-secondary); border: 1px solid var(--cx-border); }
.cx-cover__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cx-cover:hover .cx-cover__img img { transform: scale(1.04); }
.cx-cover__none { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--cx-muted); padding: 8px; text-align: center; }
.cx-cover__body { padding-top: 10px; }
.cx-cover__title { font-weight: 700; font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.cx-cover__title span { color: var(--cx-muted); }
.cx-cover:hover .cx-cover__title { color: var(--cx-primary); }
.cx-cover__meta { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cx-cover__meta .cx-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-cover__price { font-family: var(--cx-mono); font-size: 11px; color: rgba(20,20,20,.7); }
.cx-cover__badge { position: absolute; top: 8px; left: 8px; z-index: 2; }
.cx-cover__pull { position: absolute; top: 8px; right: 8px; z-index: 2; opacity: 0; transition: opacity .15s; }
.cx-cover:hover .cx-cover__pull, .cx-cover__pull:focus-within, .cx-cover__pull [aria-pressed="true"] { opacity: 1; }
.cx-cover__pull:has([aria-pressed="true"]) { opacity: 1; }
.cx-ribbon { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 3px; background: hsl(40 80% 55%); color: #1a1205; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Pull / follow buttons */
.cx-pull, .cx-follow { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--cx-border); background: #fff; color: var(--cx-fg); font-size: 13px; font-weight: 600; transition: border-color .15s, background .15s; }
.cx-pull:hover, .cx-follow:hover { border-color: var(--cx-primary); }
.cx-pull[aria-pressed="true"], .cx-follow[aria-pressed="true"] { background: var(--cx-primary); border-color: var(--cx-primary); color: #fff; }
.cx-pull[aria-pressed="true"] svg { fill: currentColor; }
.cx-pull--full { width: 100%; height: 40px; background: var(--cx-fg); color: #fff; border-color: var(--cx-fg); }
.cx-pull--icon { width: 32px; height: 32px; padding: 0; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.cx-pull--icon .cx-pull__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Lists (wire / trending / coming next) ---------- */
.cx-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--cx-border); }
.cx-list > li + li { border-top: 1px solid var(--cx-border); }
.cx-list__row { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; }
.cx-list__row:hover .cx-list__title { color: var(--cx-primary); }
.cx-list__thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 4px; object-fit: cover; border: 1px solid var(--cx-border); }
.cx-list__cover { width: 44px; height: 64px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: var(--cx-secondary); border: 1px solid var(--cx-border); }
.cx-list__cover img { width: 100%; height: 100%; object-fit: cover; }
.cx-list__title { font-size: 13px; font-weight: 700; line-height: 1.35; transition: color .15s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cx-list__title--plain { font-weight: 500; -webkit-line-clamp: 2; }
.cx-list__time { font-family: var(--cx-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-primary); }
.cx-list__src { margin-top: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-muted); }
.cx-list__rank { width: 24px; text-align: center; font-size: 20px; font-weight: 900; color: rgba(107,107,107,.4); flex-shrink: 0; }
.cx-list__kicker { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--cx-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-muted); }
.cx-list__kicker strong { color: var(--cx-primary); font-weight: 800; }
.cx-empty-line { padding: 12px 0; font-size: 14px; color: var(--cx-muted); }

/* Trend card */
.cx-trend { display: block; height: 100%; border: 1px solid var(--cx-border); border-radius: 8px; padding: 16px; background: #fff; transition: border-color .15s; }
.cx-trend:hover { border-color: hsla(356, 78%, 48%, .4); color: inherit; }
.cx-trend__inner { display: flex; gap: 12px; align-items: flex-start; }
.cx-trend__rank { font-size: 24px; font-weight: 900; color: rgba(107,107,107,.4); width: 28px; flex-shrink: 0; }
.cx-trend__type { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--cx-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-primary); }
.cx-trend__type span + span { color: var(--cx-muted); }
.cx-trend h3 { margin-top: 8px; font-size: 15px; font-weight: 900; line-height: 1.2; }
.cx-trend:hover h3 { color: var(--cx-primary); }
.cx-trend p { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--cx-muted); }
.cx-trend__stats { margin-top: 12px; display: flex; gap: 8px; font-family: var(--cx-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-muted); }

/* Indie spotlight */
.cx-spotlight { margin-top: 40px; border-radius: 12px; overflow: hidden; background: var(--cx-indie); color: #fff; }
@media (min-width: 768px) { .cx-spotlight { margin-top: 56px; } }
.cx-spotlight__grid { padding: 24px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .cx-spotlight__grid { padding: 40px; grid-template-columns: 240px 1fr; gap: 40px; } }
.cx-spotlight__full { grid-column: 1 / -1; }
.cx-spotlight .cx-kicker { color: var(--cx-indie-accent); }
.cx-spotlight .cx-kicker svg { color: var(--cx-indie-accent); }
.cx-spotlight__cover { aspect-ratio: 2/3; max-width: 240px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.cx-spotlight__cover img { width: 100%; height: 100%; object-fit: cover; }
.cx-spotlight__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.cx-spotlight h3 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
@media (min-width: 768px) { .cx-spotlight h3 { font-size: 36px; } }
.cx-spotlight h3 span { color: rgba(255,255,255,.5); }
.cx-spotlight__desc { font-size: 15px; color: rgba(255,255,255,.7); max-width: 42rem; line-height: 1.6; }
.cx-spotlight__facts { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.cx-spotlight__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.cx-spotlight__foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cx-spotlight__foot strong { display: block; font-size: 18px; font-weight: 900; }
.cx-spotlight__foot p { margin: 0; color: rgba(255,255,255,.6); font-size: 14px; }

/* Campaign card */
.cx-campaign { display: block; border: 1px solid var(--cx-border); border-radius: 8px; overflow: hidden; transition: border-color .15s; }
.cx-campaign:hover { border-color: var(--cx-fg); color: inherit; }
.cx-campaign__img { aspect-ratio: 16/10; background: var(--cx-secondary); overflow: hidden; }
.cx-campaign__img img { width: 100%; height: 100%; object-fit: cover; }
.cx-campaign__body { padding: 12px; }
.cx-campaign__name { font-size: 13px; font-weight: 700; line-height: 1.25; }
.cx-campaign:hover .cx-campaign__name { color: var(--cx-primary); }
.cx-progress { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--cx-secondary); overflow: hidden; }
.cx-progress span { display: block; height: 100%; background: var(--cx-primary); }
.cx-campaign__stats { margin-top: 6px; display: flex; justify-content: space-between; font-family: var(--cx-mono); font-size: 11px; color: var(--cx-muted); }
.cx-campaign__stats strong { color: var(--cx-primary); }

/* CTA band */
.cx-cta { background: var(--cx-ink); color: #fff; text-align: center; }
.cx-cta .cx-wrap { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px) { .cx-cta .cx-wrap { padding-top: 80px; padding-bottom: 80px; } }
.cx-cta h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
@media (min-width: 768px) { .cx-cta h2 { font-size: 48px; } }
.cx-cta p { margin: 12px 0 0; color: rgba(255,255,255,.6); font-size: 15px; }
.cx-cta .cx-btn { margin-top: 28px; }
.cx-cta__links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.cx-cta__links a { color: rgba(255,255,255,.6); }
.cx-cta__links a:hover { color: #fff; }

/* ---------- Footer ---------- */
.cx-footer { border-top: 1px solid var(--cx-border); background: var(--cx-bg); }
.cx-footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 768px) { .cx-footer__grid { grid-template-columns: repeat(5, 1fr); } }
.cx-footer__brand { grid-column: span 2; }
@media (min-width: 768px) { .cx-footer__brand { grid-column: span 1; } }
.cx-footer .cx-logo { color: var(--cx-fg); }
.cx-footer__brand p { margin: 8px 0 0; font-size: 13px; color: var(--cx-muted); }
.cx-footer h2 { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--cx-muted); }
.cx-footer ul { list-style: none; margin: 12px 0 0; padding: 0; }
.cx-footer li + li { margin-top: 8px; }
.cx-footer li a { font-size: 13px; }
.cx-footer__bottom { border-top: 1px solid var(--cx-border); }
.cx-footer__bottom .cx-wrap { padding-top: 20px; padding-bottom: 20px; font-size: 11px; color: var(--cx-muted); }

/* ---------- Issue detail ---------- */
.cx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.cx-crumbs a:hover { color: var(--cx-fg); }
.cx-crumbs .sep { opacity: .4; }
.cx-crumbs .cur { color: var(--cx-fg); }
.cx-issue { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .cx-issue { grid-template-columns: 300px 1fr; gap: 32px; } }
.cx-issue__aside > * + * { margin-top: 12px; }
.cx-issue__cover { position: relative; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: var(--cx-secondary); box-shadow: 0 0 0 1px var(--cx-border); max-width: 360px; }
.cx-issue__cover img { width: 100%; height: 100%; object-fit: cover; }
.cx-issue__cover .cx-ribbon { position: absolute; top: 12px; left: 12px; }
.cx-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-btn-row > * { width: 100%; }
.cx-surface { background: #fff; border: 1px solid var(--cx-border); border-radius: var(--cx-radius); }
.cx-keyinfo { padding: 14px; }
.cx-keyinfo .cx-meta { padding-bottom: 6px; border-bottom: 1px solid var(--cx-border); margin-bottom: 8px; display: block; }
.cx-keyinfo__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.cx-keyinfo__row dd { margin: 0; font-family: var(--cx-mono); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.cx-keyinfo__row dt { font-family: var(--cx-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--cx-muted); }
.cx-saved { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-family: var(--cx-mono); font-size: 12px; color: var(--cx-muted); }
.cx-saved strong { color: var(--cx-fg); }
.cx-heat { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid hsla(356,78%,48%,.4); background: hsla(356,78%,48%,.1); color: var(--cx-primary); font-family: var(--cx-mono); font-size: 11px; }
.cx-issue__main { min-width: 0; }
.cx-issue__main > * + * { margin-top: 24px; }
.cx-issue h1 { font-size: 30px; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
@media (min-width: 768px) { .cx-issue h1 { font-size: 48px; } }
.cx-issue__series { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cx-signal svg { fill: currentColor; }
.cx-issue__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.cx-issue__sub .dot { opacity: .3; }
.cx-signals { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-signal { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid hsla(356,78%,48%,.4); background: hsla(356,78%,48%,.1); color: var(--cx-primary); font-size: 12px; font-weight: 500; }
.cx-why { padding: 16px; border-left: 2px solid var(--cx-primary); }
.cx-why ul { margin: 10px 0 0; padding: 0; list-style: none; }
.cx-why li { display: flex; gap: 8px; font-size: 14px; }
.cx-why li + li { margin-top: 6px; }
.cx-why li::before { content: "•"; color: var(--cx-primary); }
.cx-h2 { font-size: 16px; font-weight: 600; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--cx-border); display: flex; align-items: center; gap: 6px; }
.cx-h2 svg { width: 14px; height: 14px; }
.cx-prose { font-size: 15px; line-height: 1.7; color: rgba(20,20,20,.9); }
.cx-prose > *:last-child { margin-bottom: 0; }
.cx-prose a { color: var(--cx-primary); text-decoration: underline; }
.cx-prose img { border-radius: 8px; margin: 1.5em 0; }
.cx-prose h2 { font-size: 24px; margin: 1.5em 0 .5em; }
.cx-prose h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.cx-prose blockquote { margin: 1.5em 0; padding-left: 16px; border-left: 3px solid var(--cx-primary); color: var(--cx-muted); }
.cx-small { font-size: 13px; color: var(--cx-muted); line-height: 1.6; }
.cx-details { display: grid; grid-template-columns: 1fr; gap: 0 24px; font-size: 14px; }
@media (min-width: 640px) { .cx-details { grid-template-columns: 1fr 1fr; } }
.cx-details__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid hsla(0,0%,89%,.4); }
.cx-details__line > :last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .cx-people { grid-template-columns: repeat(3, 1fr); } }
.cx-person { display: flex; align-items: center; gap: 10px; padding: 10px; }
.cx-avatar { width: 36px; height: 36px; border-radius: 999px; overflow: hidden; background: var(--cx-secondary); box-shadow: 0 0 0 1px var(--cx-border); flex-shrink: 0; }
.cx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cx-person__name { font-size: 13px; font-weight: 500; line-height: 1.2; }
.cx-credits > a, .cx-credits > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; }
.cx-credits > * + * { border-top: 1px solid var(--cx-border); }
.cx-credits__who { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 500; }
.cx-credits .cx-avatar { width: 28px; height: 28px; }

/* Archive / series / publishers */
.cx-pub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cx-pub-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cx-pub-grid { grid-template-columns: repeat(5, 1fr); } }
.cx-pub { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--cx-border); border-radius: 8px; transition: border-color .15s, transform .15s; }
.cx-pub:hover { border-color: var(--cx-fg); color: inherit; transform: translateY(-2px); }
.cx-pub img { height: 32px; width: auto; object-fit: contain; object-position: left; }
.cx-pub strong { font-size: 15px; font-weight: 800; }
.cx-letter { scroll-margin-top: 90px; }

.cx-weekhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cx-weeknav { display: flex; gap: 8px; }

.cx-pagination { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cx-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--cx-border); border-radius: 6px; font-size: 13px; font-weight: 600; }
.cx-pagination .current { background: var(--cx-fg); color: #fff; border-color: var(--cx-fg); }

/* News */
.cx-news-card { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cx-news-card__img { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--cx-secondary); border: 1px solid var(--cx-border); }
.cx-news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cx-news-card:hover .cx-news-card__img img { transform: scale(1.03); }
.cx-news-card h3 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.cx-news-card:hover h3 { color: var(--cx-primary); }
.cx-news-card p { margin: 0; font-size: 13px; color: var(--cx-muted); }
.cx-lead { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .cx-lead { grid-template-columns: 3fr 2fr; } }
.cx-lead .cx-news-card h3 { font-size: 26px; font-weight: 900; }
.cx-article { max-width: 760px; margin: 0 auto; }
.cx-article h1 { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
@media (min-width: 768px) { .cx-article h1 { font-size: 46px; } }
.cx-article__hero { margin: 24px 0; border-radius: 10px; overflow: hidden; }

/* Forms / notices */
.cx-form { display: grid; gap: 16px; max-width: 760px; }
.cx-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cx-form input[type=text], .cx-form input[type=email], .cx-form input[type=url], .cx-form input[type=date], .cx-form select, .cx-form textarea, .cx-input {
	width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--cx-border); border-radius: 6px; font: 400 15px/1.4 var(--cx-font); text-transform: none; letter-spacing: 0; background: #fff; color: var(--cx-fg);
}
.cx-form textarea { height: auto; padding: 10px 12px; }
.cx-form input:focus, .cx-form select:focus, .cx-form textarea:focus, .cx-input:focus { outline: none; border-color: var(--cx-primary); box-shadow: 0 0 0 3px hsla(356,78%,48%,.15); }
.cx-form input[type=file] { font: 400 13px var(--cx-font); text-transform: none; letter-spacing: 0; }
.cx-form__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cx-form__row { grid-template-columns: 1fr 1fr; } }
.cx-form .cx-btn { justify-self: start; }
.cx-hp { position: absolute; left: -9999px; }
.cx-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.cx-notice--ok { background: hsl(152 60% 95%); color: var(--cx-success); border: 1px solid hsl(152 40% 80%); }
.cx-notice--err { background: hsl(356 78% 96%); color: var(--cx-primary); border: 1px solid hsl(356 60% 85%); }
.cx-empty { border: 1px dashed var(--cx-border); border-radius: 8px; padding: 32px; text-align: center; color: var(--cx-muted); }
.cx-empty .cx-btn { margin: 4px; }
.cx-searchbar { display: flex; gap: 8px; max-width: 640px; margin-top: 16px; }
.cx-pull-week + .cx-pull-week { margin-top: 40px; }

/* Comments */
.cx-comments { max-width: 760px; margin: 48px auto 0; }
.cx-comments ol { list-style: none; padding: 0; }
.cx-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--cx-border); }
.cx-comments textarea, .cx-comments input[type=text], .cx-comments input[type=email], .cx-comments input[type=url] { width: 100%; padding: 10px 12px; border: 1px solid var(--cx-border); border-radius: 6px; font: inherit; }
.cx-comments .submit { background: var(--cx-primary); color: #fff; border: 0; border-radius: 6px; height: 40px; padding: 0 20px; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }

/* WP alignment / blocks */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image figcaption, .wp-caption-text { font-size: 12px; color: var(--cx-muted); }

/* Skeleton shimmer */
.cx-shimmer { position: relative; overflow: hidden; background: var(--cx-secondary); }
.cx-shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(0,0,0,.04), transparent); animation: cx-shimmer 1.4s infinite; }
@keyframes cx-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }

/* Buttons and chips inside post content keep their own look. */
.cx-prose a.cx-chip, .cx-prose a.cx-btn { text-decoration: none; }
.cx-prose a.cx-chip { color: rgba(20,20,20,.7); }
.cx-prose a.cx-chip--active { color: var(--cx-bg); }
.cx-prose a.cx-btn--primary { color: #fff; }
