/* CartolaNews MotoGP — all rules scoped under .cnmgp-wrap. Theme-aware: LIGHT
 * is the default look (matches every other page on the site); DARK only
 * applies when the site's own dark-mode toggle is on (Foxiz stamps
 * body[data-theme="dark"], no page reload). Brand accent colors come from
 * inline CSS vars set in hub.php from plugin settings and stay constant
 * across both themes — only surface/text/border tokens change. */

.cnmgp-wrap, .cnmgp-wrap-outer {
	font-family: "Inter", Roboto, Arial, sans-serif;
	--cnmgp-bg: #f3f5fa;
	--cnmgp-surface: #ffffff;
	--cnmgp-surface-2: #eef1f8;
	--cnmgp-text: #101828;
	--cnmgp-text-muted: #5b6b82;
	--cnmgp-text-faint: #8592a6;
	--cnmgp-border: rgba(16,24,40,.10);
	--cnmgp-border-strong: rgba(16,24,40,.16);
	--cnmgp-shadow: 0 4px 16px rgba(16,24,40,.06);
	--cnmgp-row-hover: rgba(20,75,155,.05);
	--cnmgp-row-leader: rgba(20,75,155,.08);
	--cnmgp-accent-text: var(--cnmgp-blue, #144b9b);
}
body[data-theme="dark"] .cnmgp-wrap, body[data-theme="dark"] .cnmgp-wrap-outer {
	--cnmgp-bg: var(--cnmgp-dark, #1c1c1c);
	--cnmgp-surface: var(--cnmgp-dark-2, #232323);
	--cnmgp-surface-2: var(--cnmgp-dark-3, #2b2b24);
	--cnmgp-text: #ffffff;
	--cnmgp-text-muted: #b7bdc6;
	--cnmgp-text-faint: #8f96a3;
	--cnmgp-border: rgba(255,255,255,.10);
	--cnmgp-border-strong: rgba(255,255,255,.18);
	--cnmgp-shadow: none;
	--cnmgp-row-hover: rgba(255,255,255,.03);
	--cnmgp-row-leader: rgba(20,75,155,.20);
	--cnmgp-accent-text: var(--cnmgp-blue-light, #7494c4);
}

.cnmgp-wrap { background: var(--cnmgp-bg); color: var(--cnmgp-text); position: relative; max-width: 100%; overflow-x: hidden; }
.cnmgp-wrap * { box-sizing: border-box; min-width: 0; }
.cnmgp-wrap a { color: inherit; text-decoration: none; }
.cnmgp-wrap img { max-width: 100%; height: auto; display: block; }
.cnmgp-container { max-width: 1440px; margin: 0 auto; padding: 0 20px 32px; }
@media (min-width: 782px) { .cnmgp-container { padding-left: 28px; padding-right: 28px; } }
.cnmgp-sr-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cnmgp-wrap h2, .cnmgp-wrap h3, .cnmgp-wrap h4 { font-family: inherit; font-weight: 800; letter-spacing: .2px; margin: 0; color: var(--cnmgp-text); }
.cnmgp-wrap p { color: var(--cnmgp-text); }
.cnmgp-section-title { font-size: clamp(19px, 2.2vw, 24px); margin-bottom: 14px; }
.cnmgp-card-title { font-size: 13px; letter-spacing: .6px; color: var(--cnmgp-text-muted); margin-bottom: 14px; text-transform: uppercase; }
.cnmgp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.cnmgp-link-small { font-size: 12px; color: var(--cnmgp-accent-text); white-space: nowrap; font-weight: 600; }
.cnmgp-link-small:hover { text-decoration: underline; }
.cnmgp-block-link { display: block; margin-top: 12px; text-align: center; }
.cnmgp-empty-state { color: var(--cnmgp-text-muted); font-size: 13.5px; padding: 10px 0; }
.cnmgp-flag { font-size: 18px; line-height: 1; }

.cnmgp-card {
	background: var(--cnmgp-surface);
	border: 1px solid var(--cnmgp-border);
	box-shadow: var(--cnmgp-shadow);
	border-radius: 14px;
	padding: 18px 20px;
	transition: transform 200ms ease, border-color 200ms ease;
}
.cnmgp-card:hover { transform: translateY(-2px); border-color: var(--cnmgp-border-strong); }
.cnmgp-table-scroll { overflow-x: auto; max-width: 100%; }

/* ---------------------------------------------------------------- Hero */
.cnmgp-hero { position: relative; padding: 40px 0 30px; overflow: hidden; color: #fff; }
.cnmgp-hero.no-image { background: linear-gradient(120deg, #1c1c1c 0%, #0b2c61 100%); }
.cnmgp-hero.has-image::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(100deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.78) 40%, rgba(10,10,12,.30) 72%, rgba(10,10,12,.08) 100%);
}
.cnmgp-hero-media { position: absolute; inset: 0; z-index: 0; }
.cnmgp-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.cnmgp-hero-media--mobile { display: none; }
.cnmgp-hero-track { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .06;
	background: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 42px);
}
.cnmgp-hero-moto { position: absolute; right: 0; bottom: -6px; width: 220px; opacity: .14; z-index: 0; pointer-events: none; }
.cnmgp-hero-moto svg { width: 100%; height: auto; }
.cnmgp-hero-inner { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 782px) { .cnmgp-hero-inner { padding: 0 28px; } }
.cnmgp-hero-content { max-width: 640px; }
.cnmgp-hero-kicker {
	display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #fff;
	background: var(--cnmgp-red, #e2231a); padding: 5px 12px; border-radius: 5px; margin: 0 0 14px;
}
.cnmgp-hero-title { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.14; font-weight: 900; margin: 0 0 12px; color: #fff; }
.cnmgp-hero-desc { color: #dbe1ea; font-size: 15px; line-height: 1.6; max-width: 520px; margin: 0 0 22px; }
.cnmgp-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.cnmgp-badge {
	display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #fff;
	background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 8px 12px;
	backdrop-filter: blur(4px);
}
.cnmgp-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cnmgp-green, #1a9f6a); display: inline-block; animation: cnmgp-pulse 1.8s infinite; }
.cnmgp-badge-icon { width: 14px; height: 14px; flex-shrink: 0; }
.cnmgp-badge-api { font-weight: 800; gap: 8px; }
.cnmgp-badge-api span { font-weight: 500; opacity: .85; }
@keyframes cnmgp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* --------------------------------------------------------------- Nav */
.cnmgp-nav { position: sticky; top: 0; z-index: 20; background: var(--cnmgp-surface); border-bottom: 1px solid var(--cnmgp-border); box-shadow: 0 1px 0 var(--cnmgp-border); }
.cnmgp-nav-row { max-width: 1440px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 8px; }
@media (min-width: 782px) { .cnmgp-nav-row { padding: 0 28px; } }
.cnmgp-nav-links { display: flex; align-items: center; gap: 4px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.cnmgp-nav-links::-webkit-scrollbar { display: none; }
.cnmgp-nav-link {
	display: inline-flex; align-items: center; gap: 7px; padding: 13px 14px; font-size: 13px; font-weight: 700;
	color: var(--cnmgp-text-muted); border-bottom: 2px solid transparent; flex-shrink: 0;
}
.cnmgp-nav-icon { width: 16px; height: 16px; display: inline-flex; }
.cnmgp-nav-icon svg { width: 100%; height: 100%; }
.cnmgp-nav-link:hover, .cnmgp-nav-link:focus-visible, .cnmgp-nav-link.is-active { color: var(--cnmgp-accent-text); border-color: var(--cnmgp-blue, #144b9b); }
.cnmgp-search-wrap { position: relative; margin-left: auto; padding: 8px 0; flex: 0 0 210px; }
.cnmgp-search-input { width: 100%; background: var(--cnmgp-surface-2); border: 1px solid var(--cnmgp-border); color: var(--cnmgp-text); border-radius: 20px; padding: 8px 14px; font-size: 12.5px; }
.cnmgp-search-input::placeholder { color: var(--cnmgp-text-faint); }
.cnmgp-search-results { position: absolute; top: 100%; right: 0; width: 260px; background: var(--cnmgp-surface); border: 1px solid var(--cnmgp-border); border-radius: 8px; margin-top: 6px; padding: 6px; z-index: 30; max-height: 320px; overflow-y: auto; box-shadow: 0 12px 28px rgba(16,24,40,.14); }
.cnmgp-search-results a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--cnmgp-text); }
.cnmgp-search-results a:hover { background: var(--cnmgp-surface-2); }
.cnmgp-search-type { font-size: 10px; color: var(--cnmgp-text-faint); text-transform: uppercase; margin-right: 6px; }

/* ------------------------------------------------------------- Rows */
.cnmgp-row { margin-top: 16px; display: grid; gap: 14px; align-items: start; }
.cnmgp-row-3col { grid-template-columns: 1fr 1fr 1fr; }

/* ------------------------------------------------------- Next event */
.cnmgp-next-event-name { font-weight: 800; font-size: 19px; margin: 0 0 4px; }
.cnmgp-next-event-circuit { color: var(--cnmgp-text-muted); font-size: 12.5px; margin: 0 0 4px; }
.cnmgp-next-event-dates { color: var(--cnmgp-text-muted); font-size: 11.5px; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.cnmgp-cal-icon { width: 13px; height: 13px; display: inline-flex; }
.cnmgp-cal-icon svg { width: 100%; height: 100%; }
.cnmgp-circuit-trace { position: absolute; top: 16px; right: 16px; width: 90px; height: 54px; color: var(--cnmgp-blue, #144b9b); opacity: .5; }
.cnmgp-next-event { position: relative; }
.cnmgp-circuit-trace svg { width: 100%; height: 100%; }
.cnmgp-countdown { text-align: center; background: var(--cnmgp-surface-2); border-radius: 10px; padding: 14px 10px; margin: 10px 0 12px; }
.cnmgp-countdown-grid { display: flex; justify-content: center; gap: 14px; }
.cnmgp-countdown-grid > div { display: flex; flex-direction: column; align-items: center; min-width: 42px; }
.cnmgp-countdown-value { font-size: 24px; font-weight: 900; color: var(--cnmgp-blue, #144b9b); font-variant-numeric: tabular-nums; }
.cnmgp-countdown-unit { font-size: 9px; letter-spacing: .6px; color: var(--cnmgp-text-muted); margin-top: 3px; }
.cnmgp-event-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--cnmgp-green, #1a9f6a); background: var(--cnmgp-surface-2); border-radius: 20px; padding: 6px 12px; }
.cnmgp-event-status--live { color: var(--cnmgp-red, #e2231a); }
.cnmgp-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cnmgp-red, #e2231a); display: inline-block; animation: cnmgp-pulse 1.6s infinite; }

/* -------------------------------------------------------- Standings */
.cnmgp-standings-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 420px; }
.cnmgp-standings-table th { text-align: left; color: var(--cnmgp-text-faint); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--cnmgp-border); font-size: 10px; letter-spacing: .4px; white-space: nowrap; }
.cnmgp-standings-table td { padding: 9px 6px; border-bottom: 1px solid var(--cnmgp-border); vertical-align: middle; }
.cnmgp-standings-table tr.cnmgp-row-leader td { background: var(--cnmgp-row-leader); }
.cnmgp-standings-table tr:hover td { background: var(--cnmgp-row-hover); }
.cnmgp-rider-link { display: flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; }
.cnmgp-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cnmgp-avatar-placeholder { display: inline-flex; align-items: center; justify-content: center; background: var(--cnmgp-surface-2); padding: 4px; }
.cnmgp-avatar-placeholder .cnmgp-helmet-icon { width: 100%; height: 100%; }
.cnmgp-avatar-lg { width: 64px; height: 64px; padding: 10px; }
.cnmgp-avatar-xl { width: 100px; height: 100px; border-radius: 14px; padding: 16px; }
.cnmgp-trend { display: inline-block; width: 12px; font-weight: 800; }
.cnmgp-trend--up { color: var(--cnmgp-green, #1a9f6a); }
.cnmgp-trend--down { color: var(--cnmgp-red, #e2231a); }
.cnmgp-trend--flat { color: var(--cnmgp-text-faint); }

.cnmgp-standings-tabs { display: flex; gap: 6px; margin-top: 14px; background: var(--cnmgp-surface-2); border-radius: 9px; padding: 4px; }
.cnmgp-tab { flex: 1; border: none; background: transparent; color: var(--cnmgp-text-muted); font-size: 12.5px; font-weight: 700; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.cnmgp-tab.is-active { background: var(--cnmgp-blue, #144b9b); color: #fff; }
.cnmgp-standings-panel { margin-top: 12px; }
.cnmgp-simple-standings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cnmgp-simple-standings li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cnmgp-simple-pos { width: 20px; color: var(--cnmgp-text-faint); font-weight: 700; }
.cnmgp-simple-name { flex: 1; font-weight: 700; }
.cnmgp-simple-points { font-weight: 800; color: var(--cnmgp-accent-text); }

/* ---------------------------------------------------------- Brazil */
.cnmgp-brazil-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cnmgp-brazil-photo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cnmgp-brazil-name { font-size: 17px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cnmgp-brazil-number { color: var(--cnmgp-accent-text); font-size: 14px; }
.cnmgp-brazil-team { color: var(--cnmgp-text-muted); font-size: 12.5px; margin: 4px 0 0; }
.cnmgp-brazil-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.cnmgp-brazil-stats > div { text-align: center; background: var(--cnmgp-surface-2); border-radius: 9px; padding: 8px 4px; }
.cnmgp-stat-value { display: block; font-size: 16px; font-weight: 900; color: var(--cnmgp-accent-text); }
.cnmgp-stat-label { display: block; font-size: 8.5px; color: var(--cnmgp-text-faint); margin-top: 3px; letter-spacing: .3px; }
.cnmgp-brazil-subtitle { font-size: 10.5px; letter-spacing: .5px; color: var(--cnmgp-text-faint); margin: 4px 0 8px; text-transform: uppercase; }
.cnmgp-brazil-recent { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cnmgp-result-badge { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 7px; background: var(--cnmgp-surface-2); color: var(--cnmgp-text); }
.cnmgp-result-badge--is-podium { background: rgba(26,159,106,.14); color: var(--cnmgp-green, #1a9f6a); }
.cnmgp-result-badge--is-dnf { background: rgba(226,35,26,.12); color: var(--cnmgp-red, #e2231a); }
.cnmgp-brazil-next { font-size: 12px; color: var(--cnmgp-text-muted); margin: 0; }
.cnmgp-brazil-next-label { font-weight: 800; color: var(--cnmgp-text); }

/* ------------------------------------------------------------ Buttons */
.cnmgp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 8px; padding: 10px 18px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cnmgp-btn-primary { background: var(--cnmgp-blue, #144b9b); color: #fff; }

/* --------------------------------------------------------- Carousel */
.cnmgp-carousel-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.cnmgp-carousel { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scroll-behavior: smooth; scrollbar-width: none; }
.cnmgp-carousel::-webkit-scrollbar { display: none; }
.cnmgp-rider-mini { flex: 0 0 110px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; background: var(--cnmgp-surface-2); border-radius: 12px; padding: 12px 8px; }
.cnmgp-rider-mini-number { font-size: 11px; font-weight: 800; color: var(--cnmgp-accent-text); display: flex; align-items: center; gap: 4px; }
.cnmgp-rider-mini-name { font-size: 11.5px; font-weight: 700; color: var(--cnmgp-text); line-height: 1.25; }
.cnmgp-rider-mini-team { font-size: 10px; color: var(--cnmgp-text-faint); }
.cnmgp-carousel-btn { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--cnmgp-border-strong); background: var(--cnmgp-surface); color: var(--cnmgp-text); font-size: 16px; cursor: pointer; line-height: 1; }
.cnmgp-carousel-btn:hover { background: var(--cnmgp-surface-2); }

/* ------------------------------------------------------------ Calendar */
.cnmgp-calendar-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 420px; }
.cnmgp-calendar-table th { text-align: left; color: var(--cnmgp-text-faint); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--cnmgp-border); font-size: 10px; letter-spacing: .4px; white-space: nowrap; }
.cnmgp-calendar-table td { padding: 9px 6px; border-bottom: 1px solid var(--cnmgp-border); white-space: nowrap; }
.cnmgp-status-done { color: var(--cnmgp-green, #1a9f6a); font-weight: 700; }
.cnmgp-status-live { color: var(--cnmgp-red, #e2231a); font-weight: 700; }
.cnmgp-status-next { color: var(--cnmgp-text-faint); font-weight: 700; }

/* -------------------------------------------------------- Champions */
.cnmgp-champions-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cnmgp-champions-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.cnmgp-champion-rank { width: 26px; font-weight: 800; text-align: center; }
.cnmgp-champion-name { flex: 1; font-weight: 700; }
.cnmgp-champion-titles { font-size: 11.5px; color: var(--cnmgp-text-muted); font-weight: 700; }

/* ---------------------------------------------------------- Records */
.cnmgp-records-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cnmgp-record-tile { background: var(--cnmgp-surface-2); border-radius: 10px; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.cnmgp-record-tile-label { font-size: 9.5px; letter-spacing: .4px; color: var(--cnmgp-text-faint); text-transform: uppercase; }
.cnmgp-record-tile-value { font-size: 22px; font-weight: 900; color: var(--cnmgp-accent-text); }
.cnmgp-record-tile-name { font-size: 11px; color: var(--cnmgp-text-muted); font-weight: 600; }
.cnmgp-record-tile-empty { font-size: 11px; color: var(--cnmgp-text-faint); margin-top: auto; }

/* --------------------------------------------------------- Circuits */
.cnmgp-circuits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cnmgp-circuit-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--cnmgp-surface-2); border-radius: 10px; padding: 14px 8px; text-align: center; }
.cnmgp-circuit-trace-sm { width: 60px; height: 36px; color: var(--cnmgp-blue, #144b9b); opacity: .6; }
.cnmgp-circuit-trace-sm svg { width: 100%; height: 100%; }
.cnmgp-circuit-tile-name { font-size: 11.5px; font-weight: 700; color: var(--cnmgp-text); }
.cnmgp-circuit-tile-length { font-size: 10px; color: var(--cnmgp-text-faint); }

/* -------------------------------------------------------------- News */
.cnmgp-news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cnmgp-news-item { display: block; border-radius: 10px; overflow: hidden; background: var(--cnmgp-surface-2); }
.cnmgp-news-thumb { display: block; height: 76px; background-size: cover; background-position: center; background-color: var(--cnmgp-surface-2); }
.cnmgp-news-title { display: block; font-size: 11.5px; font-weight: 700; padding: 8px 9px 2px; line-height: 1.3; color: var(--cnmgp-text); }
.cnmgp-news-date { display: block; font-size: 10px; color: var(--cnmgp-text-faint); padding: 0 9px 9px; }

/* -------------------------------------------------------- Footer badges */
.cnmgp-footer-badges { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: var(--cnmgp-surface); border: 1px solid var(--cnmgp-border); border-radius: 14px; padding: 18px 20px; }
.cnmgp-footer-badge { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.cnmgp-footer-badge-icon { font-size: 20px; flex-shrink: 0; }
.cnmgp-footer-badge strong { display: block; font-size: 12.5px; color: var(--cnmgp-text); }
.cnmgp-footer-badge small { display: block; color: var(--cnmgp-text-faint); font-size: 10.5px; margin-top: 2px; }

/* ---------------------------------------------------------- History */
.cnmgp-history { margin-top: 20px; }
.cnmgp-history-lead { color: var(--cnmgp-text-muted); font-size: 13.5px; margin: 0 0 16px; }
.cnmgp-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cnmgp-timeline-title { font-weight: 800; margin: 0 0 6px; color: var(--cnmgp-accent-text); font-size: 15px; }
.cnmgp-timeline-body { font-size: 13.5px; color: var(--cnmgp-text-muted); margin: 0; line-height: 1.6; }
.cnmgp-timeline-body p { margin: 0; color: inherit; }

/* --------------------------------------------------- Brazil history */
.cnmgp-brazil-history { margin-top: 18px; }
.cnmgp-legends-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 6px; }
.cnmgp-legend-tile { background: var(--cnmgp-surface-2); border-radius: 12px; padding: 16px; }
.cnmgp-legend-name { font-weight: 800; margin: 8px 0 2px; font-size: 14px; }
.cnmgp-legend-name small { font-weight: 500; color: var(--cnmgp-text-faint); }
.cnmgp-legend-achievement { font-size: 12px; color: var(--cnmgp-accent-text); font-weight: 700; margin: 0 0 6px; }
.cnmgp-legend-body { font-size: 12.5px; color: var(--cnmgp-text-muted); line-height: 1.55; margin: 0; }

/* --------------------------------------------------------------- Guide */
.cnmgp-guide { margin-top: 18px; }
.cnmgp-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 6px; }
.cnmgp-guide-item { background: var(--cnmgp-surface-2); border-radius: 10px; padding: 12px 14px; }
.cnmgp-guide-item summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--cnmgp-text); }
.cnmgp-guide-item summary::marker { color: var(--cnmgp-accent-text); }
.cnmgp-guide-answer { margin-top: 8px; font-size: 13px; color: var(--cnmgp-text-muted); line-height: 1.6; }
.cnmgp-guide-answer p { margin: 0; color: inherit; }

/* -------------------------------------------------------------- Sources */
.cnmgp-sources { margin-top: 18px; font-size: 11.5px; color: var(--cnmgp-text-faint); }
.cnmgp-sources summary { cursor: pointer; color: var(--cnmgp-accent-text); }

/* ----------------------------------------------------------- Single */
.cnmgp-single { padding-top: 24px; }
.cnmgp-breadcrumb { font-size: 12px; color: var(--cnmgp-text-faint); margin-bottom: 16px; }
.cnmgp-breadcrumb a { color: var(--cnmgp-accent-text); }
.cnmgp-profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.cnmgp-profile-photo { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.cnmgp-profile-flag { font-size: 13px; color: var(--cnmgp-text-muted); margin: 0 0 4px; }
.cnmgp-profile-name { font-size: clamp(24px,3.8vw,32px); font-weight: 900; margin: 0; color: var(--cnmgp-text); }
.cnmgp-profile-sub { font-size: 13px; color: var(--cnmgp-text-muted); margin: 6px 0 0; }
.cnmgp-profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 10px; margin-bottom: 20px; }
.cnmgp-profile-stat { background: var(--cnmgp-surface); border: 1px solid var(--cnmgp-border); box-shadow: var(--cnmgp-shadow); border-radius: 10px; padding: 14px; text-align: center; }
.cnmgp-profile-stat-value { display: block; font-size: 20px; font-weight: 900; color: var(--cnmgp-accent-text); }
.cnmgp-profile-stat-label { display: block; font-size: 10.5px; color: var(--cnmgp-text-faint); margin-top: 4px; text-transform: uppercase; }
.cnmgp-single .cnmgp-card { margin-bottom: 16px; }
.cnmgp-season-select { margin: 10px 0 18px; }
.cnmgp-season-select select {
	appearance: none; background: var(--cnmgp-blue, #144b9b); color: #fff; border: none; border-radius: 8px;
	padding: 10px 34px 10px 14px; font-weight: 700; font-size: 12.5px; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
	background-position: calc(100% - 16px) center, calc(100% - 11px) center; background-size: 5px 5px; background-repeat: no-repeat;
}

/* ---------------------------------------------------------------- Focus */
.cnmgp-wrap a:focus-visible, .cnmgp-wrap button:focus-visible, .cnmgp-wrap select:focus-visible, .cnmgp-wrap input:focus-visible { outline: 2px solid var(--cnmgp-blue, #144b9b); outline-offset: 2px; }
.cnmgp-wrap button, .cnmgp-wrap .cnmgp-nav-link, .cnmgp-wrap .cnmgp-tab { min-height: 32px; }

@media (prefers-reduced-motion: reduce) {
	.cnmgp-wrap * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1200px) {
	.cnmgp-row-3col { grid-template-columns: 1fr 1fr; }
	.cnmgp-row-3col > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.cnmgp-hero-media--desktop { display: none; }
	.cnmgp-hero-media--mobile { display: block; }
	.cnmgp-hero { padding: 32px 0 26px; }
	.cnmgp-legends-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.cnmgp-row-3col { grid-template-columns: 1fr; }
	.cnmgp-row-3col > *:first-child { grid-column: auto; }
	.cnmgp-footer-badges { grid-template-columns: 1fr 1fr; }
	.cnmgp-records-grid, .cnmgp-circuits-grid { grid-template-columns: repeat(2, 1fr); }
	.cnmgp-news-list { grid-template-columns: 1fr; }
	.cnmgp-brazil-stats { grid-template-columns: repeat(2, 1fr); }
	.cnmgp-nav-row { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
	.cnmgp-nav-links { flex-basis: 100%; order: 1; }
	.cnmgp-search-wrap { flex-basis: 100%; order: 2; margin-left: 0; padding: 4px 0 6px; }
	.cnmgp-profile-head { flex-wrap: wrap; }
}
@media (max-width: 480px) {
	.cnmgp-footer-badges { grid-template-columns: 1fr; }
	.cnmgp-records-grid, .cnmgp-circuits-grid { grid-template-columns: 1fr 1fr; }
	.cnmgp-legends-grid { grid-template-columns: 1fr; }
	.cnmgp-countdown-grid { gap: 8px; }
}
