/* XRPL Canada — main styles. Mobile first; desktop from 900px. */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--ink: #0E0F13;
	--ink-deep: #0A0B0D;
	--surface: #17181E;
	--surface-2: #1A1B22;
	--line: #23242C;
	--line-2: #2A2B33;
	--line-3: #3A3B45;
	--paper: #F4F2EE;
	--text: #F4F2EE;
	--text-2: #D4D4DB;
	--text-3: #B9B9C2;
	--muted: #A3A3AD;
	--muted-2: #8E8E99;
	--signal: #FF1744;
	--red: #D50032;
	--red-text: #FF4D6A;
	--wine: #1D0B11;
	--radius: 20px;
	--radius-sm: 14px;
	--pad: 20px;
	--wrap: 1200px;
	--sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Merriweather", Georgia, "Times New Roman", serif;
	--header-h: 64px;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; border-radius: 6px; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xc-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.xc-skip:focus { left: 8px; }
.xc-muted { color: var(--muted); }
.xc-small { font-size: 13px; }
.xc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.xc-main { padding-bottom: 120px; min-height: 60vh; }

/* ---------- Type ---------- */
.xc-eyebrow { margin: 0 0 14px; font-weight: 600; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--red-text); display: flex; align-items: center; gap: 8px; }
.xc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 23, 68, .18); }
.xc-display { font-weight: 900; font-size: clamp(40px, 9vw, 72px); line-height: .98; letter-spacing: -.04em; margin: 0 0 18px; text-wrap: balance; }
.xc-display--md { font-size: clamp(36px, 7.5vw, 56px); }
.xc-lead { font-size: 17px; line-height: 1.6; color: var(--text-3); max-width: 640px; margin: 0 0 20px; }
.xc-h2xl { font-weight: 900; font-size: clamp(32px, 6vw, 48px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 16px; }
.xc-h2 { font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.xc-h3 { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.xc-kicker { font-weight: 600; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--red-text); }
.xc-kicker .xc-muted, .xc-kicker--muted { color: var(--muted-2); }
.xc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--red-text); }
.xc-link:hover { color: #FF8095; }
.xc-empty { color: var(--muted); padding: 24px 0; }

/* ---------- Buttons ---------- */
.xc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.xc-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.xc-btn--lg { height: 52px; padding: 0 24px; }
.xc-btn--primary { background: var(--red); color: #fff; }
.xc-btn--primary:hover { background: #B0002A; color: #fff; }
.xc-btn--light { background: var(--paper); color: var(--ink); }
.xc-btn--light:hover { background: #fff; color: var(--ink); }
.xc-btn--ghost { border-color: var(--line-3); color: var(--text); background: transparent; }
.xc-btn--ghost:hover { border-color: var(--muted); color: var(--text); }
.xc-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.xc-btn-row .xc-btn { flex: 1 1 140px; }
.xc-iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.xc-iconbtn:hover { background: #24252D; }
.xc-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.xc-pill:hover { color: #fff; }
.xc-pill--sm { height: 22px; font-size: 10.5px; padding: 0 8px; align-self: flex-start; }
.xc-tag { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 12px; }

/* ---------- Header ---------- */
.xc-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 15, 19, .92); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.xc-header__inner { max-width: var(--wrap); margin: 0 auto; height: var(--header-h); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.xc-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.2px; color: var(--text); }
.xc-brand img { width: 32px; height: auto; }
.xc-brand--lg { font-weight: 800; font-size: 22px; }
.xc-brand--lg img { width: 48px; }
.xc-brand:hover { color: var(--text); }
.xc-desknav { display: none; }
.xc-header__end { display: flex; align-items: center; gap: 8px; }
.xc-desk-only { display: none; }

.xc-lang { display: flex; border: 1px solid #2E2F38; border-radius: 999px; padding: 3px; }
.xc-lang a { height: 30px; min-width: 38px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--muted); }
.xc-lang a.is-current { background: var(--paper); color: var(--ink); }
.xc-lang--full a { height: 38px; padding: 0 16px; font-size: 13px; font-weight: 600; }

/* ---------- Menu sheet ---------- */
.xc-menu { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: flex; flex-direction: column; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.xc-menu[hidden] { display: none; }
.xc-menu__top { height: var(--header-h); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex: none; }
.xc-menu .xc-search { margin: 16px; }
.xc-menu__nav { padding: 4px 16px; display: flex; flex-direction: column; }
.xc-menu__nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.xc-menu__nav span { font-weight: 800; font-size: 30px; letter-spacing: -.6px; }
.xc-menu__nav small { font-size: 12px; font-weight: 500; color: var(--muted-2); }
.xc-menu__row { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 0; color: var(--muted); font-size: 14px; }
.xc-menu__cta { margin-top: auto; padding: 24px 16px 28px; display: flex; gap: 10px; }
.xc-menu__cta .xc-btn { flex: 1; height: 52px; }
body.xc-menu-open { overflow: hidden; }

/* ---------- Search field ---------- */
.xc-search { height: 50px; border-radius: 14px; background: var(--surface-2); border: 1px solid #2E2F38; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.xc-search:focus-within { border-color: var(--muted-2); }
.xc-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--text); }
.xc-search input::placeholder { color: var(--muted-2); }
.xc-search--inline { max-width: 520px; margin-top: 8px; }

/* ---------- Tab bar (mobile) ---------- */
.xc-tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; height: 66px; border-radius: 22px; background: rgba(26, 27, 34, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid #2E2F38; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.xc-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.xc-tabbar a.is-current { color: var(--text); font-weight: 600; }

/* ---------- Sections ---------- */
.xc-section { padding-top: 32px; padding-bottom: 32px; }
.xc-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.xc-section__head--tight { margin: 28px 0 4px; }
.xc-pagehead { padding-top: 40px; padding-bottom: 24px; position: relative; }
.xc-pagehead--art { overflow: hidden; isolation: isolate; }
.xc-pagehead__art { position: absolute; z-index: -1; width: 240px; right: -80px; top: -30px; opacity: .5; }
.xc-artband { height: 300px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(0deg, rgba(244, 242, 238, .05) 0 1px, transparent 1px 22px); }
.xc-artband img { width: 300px; height: 300px; }
.xc-measure { max-width: 720px; }
.xc-measure-wide { max-width: 860px; }
.xc-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero / home ---------- */
.xc-hero { padding-top: 44px; padding-bottom: 24px; display: grid; gap: 32px; }
.xc-hero .xc-btn-row { margin-top: 8px; }
.xc-lead-card { display: block; border-radius: 24px; background: var(--surface); border: 1px solid #26272F; overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s; }
.xc-lead-card:hover { border-color: var(--line-3); color: var(--text); }
.xc-lead-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.xc-lead-card__title { font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -.3px; }
.xc-lead-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--text-3); }
.xc-lead-card--wide { margin-bottom: 8px; }

.xc-cover { position: relative; height: 210px; overflow: hidden; background-color: var(--ink-deep); background-image: repeating-linear-gradient(0deg, rgba(244, 242, 238, .05) 0 1px, transparent 1px 22px); border-bottom: 1px solid #26272F; }
.xc-cover .xc-pill { position: absolute; left: 20px; top: 20px; }
.xc-cover__mark { position: absolute; width: 96px; right: 20px; top: 20px; }
.xc-cover__title { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--signal); padding-left: 12px; }
.xc-cover__date { font-weight: 600; font-size: 13px; color: var(--muted); }
.xc-cover__name { font-weight: 900; font-size: 32px; line-height: .95; letter-spacing: -1px; color: var(--text); }

.xc-why { display: grid; gap: 8px; }
.xc-why__art img { width: min(340px, 100%); margin: 0 auto; }
.xc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xc-stat { border-radius: 16px; border: 1px solid #26272F; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.xc-stat__num { font-weight: 900; font-size: 30px; letter-spacing: -1px; line-height: 1.1; }
.xc-stat__label { font-weight: 700; font-size: 14px; }
.xc-stat__desc { font-size: 13px; line-height: 1.45; color: var(--muted); }

.xc-hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 var(--pad) 4px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; max-width: var(--wrap); margin: 0 auto; }
.xc-hscroll::-webkit-scrollbar { display: none; }
.xc-card-post { flex: none; width: 272px; scroll-snap-align: start; border-radius: 20px; background: var(--surface); border: 1px solid #26272F; overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.xc-card-post:hover { border-color: var(--line-3); color: var(--text); }
.xc-card-post__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.xc-card-post__title { font-weight: 700; font-size: 17px; line-height: 1.3; }

/* Post art (thumbs, cards) */
.xc-art { flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface); }
.xc-art img { width: 100%; height: 100%; object-fit: cover; }
.xc-art--thumb { width: 76px; height: 76px; border-radius: 14px; border: 1px solid var(--line-2); }
.xc-art--card { width: 100%; aspect-ratio: 16 / 9; }
.xc-art--roundup { background: var(--ink-deep); }
.xc-art--roundup img { width: 62%; height: auto; object-fit: contain; }
.xc-art--icon.xc-art--card { background: var(--surface-2); }

.xc-rows { display: flex; flex-direction: column; }
.xc-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.xc-row:hover .xc-row__title { color: var(--red-text); }
.xc-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xc-row__title { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--text); transition: color .15s; }
.xc-row__dek { font-size: 14px; line-height: 1.45; color: var(--muted); }

.xc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xc-tile { min-height: 108px; border-radius: 18px; background: var(--surface); border: 1px solid #26272F; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; font-size: 15px; color: var(--text); }
.xc-tile:hover { border-color: var(--line-3); color: var(--text); }

/* ---------- Events ---------- */
.xc-event { border-radius: 24px; background: var(--surface); border: 1px solid #26272F; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.xc-event__head { display: flex; gap: 14px; align-items: flex-start; }
.xc-date-block { flex: none; width: 64px; height: 72px; border-radius: 14px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.xc-date-block__day { font-weight: 800; font-size: 28px; line-height: 1; }
.xc-date-block__mon { font-weight: 600; font-size: 11px; letter-spacing: 1px; }
.xc-event__meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.xc-event__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.xc-event__desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.xc-event-grid { display: grid; gap: 12px; margin: 16px 0; }
.xc-linkcard { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.xc-past { display: flex; flex-direction: column; margin-top: 8px; }
.xc-past__row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.xc-past__date { flex: none; width: 92px; font-weight: 700; font-size: 13px; line-height: 1.4; color: var(--muted-2); }
.xc-past__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xc-past__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.xc-past__body p { margin: 0; font-size: 14px; line-height: 1.5; }
.xc-past__img { margin-top: 6px; width: 100%; max-width: 520px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 14px; }
.xc-cta-dashed { margin: 32px 0 0; border-radius: 20px; border: 1px dashed var(--line-3); padding: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.xc-cta-dashed strong { font-size: 16px; }
.xc-cta-dashed span { font-size: 14px; color: var(--muted); }
.xc-cta-dashed .xc-btn { align-self: flex-start; }

/* ---------- Chips ---------- */
.xc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--pad) 20px; scrollbar-width: none; max-width: var(--wrap); margin: 0 auto; }
.xc-chips::-webkit-scrollbar { display: none; }
.xc-chip { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #33343D; background: transparent; color: var(--text-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; cursor: pointer; }
.xc-chip:hover { color: var(--text); border-color: var(--muted-2); }
.xc-chip.is-on { background: var(--paper); border-color: var(--paper); color: var(--ink); font-weight: 600; }

/* ---------- Resources ---------- */
.xc-groups { display: flex; flex-direction: column; gap: 10px; }
.xc-group { border-radius: 18px; background: var(--surface); border: 1px solid #26272F; overflow: hidden; }
.xc-group summary { list-style: none; min-height: 62px; padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; cursor: pointer; }
.xc-group summary::-webkit-details-marker { display: none; }
.xc-group summary::after { content: "+"; grid-row: 1 / span 2; grid-column: 2; font-size: 24px; color: var(--red-text); width: 24px; text-align: center; }
.xc-group[open] summary::after { content: "−"; }
.xc-group__title { font-weight: 700; font-size: 16px; }
.xc-group__count { grid-column: 1; font-size: 12px; font-weight: 500; color: var(--muted-2); }
.xc-group__items { padding: 0 16px 8px; display: grid; }
.xc-res { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.xc-res__body { display: flex; flex-direction: column; gap: 3px; }
.xc-res__name { font-weight: 600; font-size: 15px; }
.xc-res__desc { font-size: 13px; line-height: 1.45; color: var(--muted); }
.xc-res svg { flex: none; }
.xc-group[hidden], .xc-res[hidden] { display: none; }

/* ---------- News ---------- */
.xc-pinned { display: flex; gap: 14px; align-items: center; border-radius: 18px; background: var(--wine); border: 1px solid #4A1424; padding: 16px; margin-bottom: 8px; max-width: 720px; }
.xc-pinned img { width: 40px; flex: none; }
.xc-pinned > span { display: flex; flex-direction: column; gap: 4px; }
.xc-pinned__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.xc-feed { max-width: 720px; }
.xc-feed__day { padding: 24px 0 6px; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }
.xc-feed__item { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.xc-feed__item[hidden] { display: none; }
.xc-feed__body { display: flex; flex-direction: column; gap: 8px; }
.xc-feed__meta { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.xc-feed__title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.xc-feed__item svg { flex: none; margin-top: 4px; }
.xc-feed__also { font-size: 13px; color: var(--muted); }
.xc-feed__item.is-pinned { border-bottom-color: #4A1424; }
.xc-tag--red { background: var(--wine); color: #FF4D6A; }
.xc-tag--ca { background: transparent; box-shadow: inset 0 0 0 1px #4A1424; color: #FF4D6A; }
.xc-pager { display: flex; gap: 10px; margin-top: 24px; }
.xc-pager .xc-btn { flex: 1; max-width: 340px; }
.xc-disclaimer { margin-top: 20px; }

/* ---------- Forms ---------- */
.xc-newsletter { border-radius: 24px; background: var(--paper); color: var(--ink); padding: 26px 20px; display: grid; gap: 14px; }
.xc-newsletter h2 { font-weight: 900; font-size: 28px; line-height: 1.02; letter-spacing: -.8px; margin: 0 0 8px; }
.xc-newsletter p { font-size: 15px; line-height: 1.55; color: #45454F; margin: 0; }
.xc-form { display: flex; flex-direction: column; gap: 10px; }
.xc-label { font-size: 13px; font-weight: 600; }
.xc-input { width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid #C9C7C0; background: #fff; color: var(--ink); padding: 0 14px; font-size: 16px; }
textarea.xc-input { padding: 12px 14px; min-height: 140px; resize: vertical; }
.xc-input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.xc-form .xc-btn { height: 52px; }
.xc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xc-notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.xc-notice--ok { background: #E3F4E8; color: #0D5223; }
.xc-notice--err { background: #FDE3E7; color: #8A0020; }
.xc-newsletter .xc-label { color: #2B2B33; }

/* Dark variant (footer) */
.xc-footer .xc-form { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.xc-footer .xc-form .xc-label { position: absolute; left: -9999px; }
.xc-footer .xc-input { flex: 1 1 200px; min-height: 46px; background: var(--surface-2); border-color: #2E2F38; color: var(--text); }
.xc-footer .xc-form .xc-btn { height: 46px; }

/* ---------- Footer ---------- */
.xc-footer { border-top: 1px solid var(--line); padding: 36px var(--pad) 120px; }
.xc-footer__inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 28px; }
.xc-footer__brand p { font-size: 14px; color: var(--muted); margin: 16px 0 0; max-width: 380px; }
.xc-footer__nl { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.xc-footer__nl strong { font-size: 15px; }
.xc-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.xc-footer__nav a { padding: 10px 0; font-size: 15px; }
.xc-footer__legal { max-width: var(--wrap); margin: 22px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted-2); }
.xc-footer__legal a { color: var(--muted); }

/* ---------- Pages ---------- */
.xc-page-content { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.xc-page-content h2 { font-weight: 800; font-size: 26px; letter-spacing: -.5px; color: var(--text); margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.xc-page-content h2:first-child { margin-top: 0; }
.xc-page-content h3 { font-weight: 700; font-size: 19px; color: var(--text); margin: 28px 0 10px; }
.xc-page-content a { color: var(--red-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.xc-page-content ul { padding-left: 20px; margin: 0 0 1.2em; }
.xc-page-content li { margin-bottom: 8px; }
.xc-page-content strong { color: var(--text); }
.xc-page-content em { color: var(--muted); font-style: normal; font-size: 14px; }
.xc-page-content .wp-block-shortcode, .xc-page-content > p:empty { margin: 0; }
.xc-cards { display: grid; gap: 12px; margin: 8px 0 12px; }
.xc-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid #26272F; color: var(--text) !important; text-decoration: none !important; }
.xc-card:hover { border-color: var(--line-3); }
.xc-card strong { font-size: 17px; }
.xc-card span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.xc-page-content .xc-stats { margin: 16px 0; }
.xc-page-content .xc-stat__num { color: var(--red-text); font-size: 26px; }
.xc-ledgers { margin: 16px 0; border-radius: 18px; border: 1px solid #26272F; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.xc-ledgers__row { display: flex; align-items: center; }
.xc-ledgers__row i { flex: 1; height: 2px; background: var(--line-3); }
.xc-ledgers__row i.is-hot { background: var(--red); }
.xc-ledger { flex: none; width: 58px; height: 58px; border-radius: 12px; border: 1px solid var(--line-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9.5px; font-weight: 600; color: var(--muted-2); letter-spacing: .3px; }
.xc-ledger b { font-size: 14px; font-weight: 800; color: var(--text-2); }
.xc-ledger.is-hot { background: var(--red); border-color: var(--red); color: #FFD7DE; }
.xc-ledger.is-hot b { color: #fff; }
.xc-ledgers figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); }
.xc-page-content--about .xc-form--contact { background: var(--paper); color: var(--ink); padding: 22px 18px; border-radius: 24px; margin-top: 16px; }
.xc-page-content--about .xc-form--contact .xc-label { color: #2B2B33; }
.xc-highlight { border-radius: 16px; background: var(--wine); border: 1px solid #4A1424; padding: 18px; margin: 0 0 20px; }
.xc-highlight p { margin: 0; color: var(--text); }

.xc-seg { display: inline-flex; border: 1px solid #2E2F38; border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.xc-seg a { height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; font-size: 13px; color: var(--muted); }
.xc-seg a[aria-current] { background: var(--paper); color: var(--ink); }
.xc-legal { display: grid; gap: 24px; }

.xc-toc { border-radius: 16px; border: 1px solid var(--line-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; align-self: start; }
.xc-toc .xc-kicker { padding-bottom: 6px; }
.xc-toc a { padding: 7px 0; font-size: 15px; line-height: 1.35; color: var(--text); }
.xc-toc a:hover { color: var(--red-text); }

/* Confirmation + 404 */
.xc-confirm { position: relative; isolation: isolate; overflow: hidden; padding-top: 48px; padding-bottom: 32px; max-width: 760px; }
.xc-confirm__art { position: absolute; z-index: -1; width: 240px; right: -60px; top: 10px; opacity: .55; }
.xc-confirm__check { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.xc-ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.xc-ticks li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; display: flex; gap: 12px; align-items: center; }
.xc-ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.xc-mini-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid #26272F; margin-bottom: 24px; max-width: 520px; }
.xc-mini-card__title { font-weight: 800; font-size: 18px; color: var(--text); }
.xc-notfound { padding-top: 24px; padding-bottom: 24px; display: grid; gap: 16px; max-width: 980px; }
.xc-notfound__art { width: 230px; margin: 0 auto; }
.xc-notfound .xc-search { margin-bottom: 8px; }
.xc-linklist { display: flex; flex-direction: column; }
.xc-linklist a { display: flex; justify-content: space-between; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.xc-linklist a span { color: var(--red-text); }
.xc-readnext { padding-top: 16px; }

/* Article progress (shown on posts) */
.xc-progress { position: fixed; left: 0; right: 0; top: var(--header-h); height: 3px; z-index: 49; pointer-events: none; }
.admin-bar .xc-progress { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px)); }
.xc-progress span { display: block; height: 100%; width: 0; background: var(--red); }
.xc-sharebar { position: fixed; left: 12px; right: 12px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 55; height: 60px; border-radius: 20px; background: rgba(26, 27, 34, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid #2E2F38; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transform: translateY(160%); transition: transform .25s; }
.xc-sharebar.is-on { transform: none; }
.xc-sharebar__progress { font-weight: 600; font-size: 12px; color: var(--muted); }
.xc-sharebar__actions { display: flex; gap: 4px; align-items: center; }
.xc-sharebar .xc-iconbtn { background: transparent; }
.xc-toast { position: fixed; left: 50%; bottom: 170px; transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 120; }

/* ============================== Desktop ============================== */
@media (min-width: 640px) {
	:root { --pad: 28px; }
	.xc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.xc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.xc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.xc-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xc-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xc-newsletter { grid-template-columns: 1.1fr 1fr; align-items: end; padding: 36px; gap: 32px; }
	.xc-newsletter h2 { font-size: 34px; }
	.xc-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.xc-notfound { grid-template-columns: 280px 1fr; align-items: center; gap: 48px; }
	.xc-notfound__art { width: 280px; }
}

@media (min-width: 900px) {
	:root { --header-h: 72px; --pad: 40px; }
	.xc-main { padding-bottom: 40px; }
	.xc-tabbar { display: none; }
	.xc-desknav { display: flex; gap: 4px; }
	.xc-desknav a { padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--text-2); }
	.xc-desknav a:hover { color: var(--text); background: var(--surface-2); }
	.xc-desknav a[aria-current] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
	.xc-desk-only { display: inline-flex; }
	.xc-menu-toggle { display: none; }
	.xc-header__inner { padding: 0 var(--pad); }
	.xc-footer { padding-bottom: 40px; }
	.xc-footer__inner { grid-template-columns: 1.2fr 1fr; gap: 64px; }
	.xc-sharebar { left: auto; right: 24px; bottom: 24px; width: 320px; }
	.xc-toast { bottom: 100px; }

	.xc-section { padding-top: 48px; padding-bottom: 48px; }
	.xc-pagehead { padding-top: 64px; padding-bottom: 36px; }
	.xc-pagehead__art { width: 420px; right: -40px; top: -60px; opacity: .45; }
	.xc-hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 40px; }
	.xc-hero .xc-btn-row .xc-btn { flex: 0 0 auto; }
	.xc-lead-card--wide { display: grid; grid-template-columns: 1.1fr 1fr; }
	.xc-lead-card--wide .xc-cover { height: 100%; min-height: 260px; border-bottom: 0; border-right: 1px solid #26272F; }
	.xc-lead-card--wide .xc-lead-card__body { justify-content: center; padding: 32px; }
	.xc-lead-card--wide .xc-lead-card__excerpt { font-size: 17px; }
	.xc-cover__mark { width: 128px; top: 50%; transform: translateY(-50%); right: 28px; }
	.xc-hero .xc-cover__mark { width: 104px; top: 22px; transform: none; }
	.xc-why { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
	.xc-why__art img { width: 460px; }
	.xc-hscroll { padding-left: var(--pad); padding-right: var(--pad); }
	.xc-card-post { width: calc((min(100vw, var(--wrap)) - 2 * var(--pad) - 24px) / 3); }
	.xc-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
	.xc-split > .xc-section { padding-left: 0; padding-right: 0; }
	.xc-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.xc-rows--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
	.xc-chips { flex-wrap: wrap; overflow: visible; }
	.xc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.xc-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xc-past__row { gap: 32px; }
	.xc-past__date { width: 160px; font-size: 14px; }
	.xc-legal { grid-template-columns: 240px minmax(0, 720px); gap: 56px; align-items: start; }
	.xc-legal .xc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
	.xc-artband { height: 380px; }
	.xc-artband img { width: 380px; height: 380px; }
	.xc-confirm { padding-top: 80px; }
	.xc-confirm__art { width: 420px; right: -80px; }
}

@media (min-width: 1200px) {
	.xc-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
