/* ChinaEVReport — site styles */
:root {
  --ink: #111418;
  --ink-2: #23272F;
  --text-2: #3D424C;
  --muted: #545A66;
  --line: #E4E4E0;
  --surface: #F4F4F2;
  --placeholder: #E9E9E5;
  --red: #C8211A;
  --red-dark: #9E1A14;
  --red-on-dark: #FF5A4F;
  --white: #FFFFFF;
  --radius: 14px;
  --wrap: 1280px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

body.cer { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.cer a { color: inherit; text-decoration: none; }
.cer a:hover { color: var(--red); }
.cer img { max-width: 100%; height: auto; display: block; }
.cer .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.cer :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Utility bar */
.topbar { background: var(--ink); color: #D5D8DE; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #D5D8DE; }
.topbar a:hover { color: #fff; }
.topbar__date { color: #9AA0AB; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 46px; width: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 600; font-size: 15px; }
.nav__list a { display: inline-block; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__list .current-menu-item > a, .nav__list .current-cat > a, .nav__list a:hover { color: var(--ink); border-bottom-color: var(--red); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--red); color: #fff !important; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; font-family: var(--font); }
.btn:hover { background: var(--red-dark); }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #000; }
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; }
.search-panel form { display: flex; gap: 10px; }
.search-panel input[type="search"] { flex: 1; height: 46px; border-radius: 23px; border: 1px solid #C9CBD0; padding: 0 18px; font-size: 16px; font-family: var(--font); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink) !important; }

/* Common type */
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }
.kicker--partner { color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); margin: 0 0 24px; }
.section-title h2, .section-title .h { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.01em; }
.section-title--sm .h { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.section-title a { font-weight: 600; font-size: 15px; }

/* Thumbs */
.thumb { border-radius: var(--radius); overflow: hidden; background: var(--placeholder); aspect-ratio: 3 / 2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.thumb--empty { display: flex; align-items: center; justify-content: center; color: #8A8F99; }
.thumb--empty svg { width: 42px; height: 42px; }
.thumb--hero { aspect-ratio: 16 / 9; border-radius: 18px; background: #1B1F26; }
.thumb--hero.thumb--empty { color: #5B616D; }
.thumb--hero.thumb--empty svg { width: 90px; height: 90px; }
.thumb--sm { width: 104px; height: 76px; aspect-ratio: auto; flex-shrink: 0; border-radius: 10px; }
.thumb--sm svg { width: 28px; height: 28px; }
.card:hover .thumb img { transform: scale(1.03); }
.card:hover .card__title { color: var(--red); }

/* Main */
.site-main { padding: 32px 0 0; }
.stack { display: flex; flex-direction: column; gap: 56px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 32px; }
.hero__lead { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__lead .card__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.02em; }
.hero__dek { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 720px; }
.hero__side { flex: 1 1 320px; min-width: 0; }
.mini { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini__body { display: flex; flex-direction: column; gap: 5px; }
.mini .card__title { font-weight: 700; font-size: 16px; line-height: 1.3; margin: 0; }

/* Tariff strip */
.tariffs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 14px; }
.tariffs__label { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tariffs__item { color: var(--muted); }
.tariffs__item strong { color: var(--ink); }
.tariffs__more { margin-left: auto; font-weight: 600; color: var(--red) !important; }

/* Layout with sidebar */
.with-side { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.with-side__main { flex: 999 1 560px; min-width: 0; }
.with-side__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 28px; }

/* Grid of cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 28px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .card__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.card__excerpt { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.5; }

/* Ranked list */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; border-bottom: 1px solid var(--line); }
.ranked a { display: flex; gap: 16px; padding: 14px 0; align-items: baseline; font-weight: 600; line-height: 1.35; }
.ranked a::before { content: counter(r); font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--red); width: 22px; flex-shrink: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.plain-list a { font-weight: 600; line-height: 1.35; }

/* Partner (native, subtle) */
.partner-card { display: flex; flex-direction: column; gap: 10px; }
.partner-card .thumb { aspect-ratio: 16 / 9; border-radius: 12px; }
.partner-label { font-size: 12px; color: var(--muted); }
.partner-label b { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.partner-card .card__title { font-family: var(--font); font-size: 17px; font-weight: 700; line-height: 1.3; }
.partner-inline { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); }
.partner-inline .thumb { width: 72px; height: 56px; aspect-ratio: auto; border-radius: 8px; flex-shrink: 0; }
.partner-inline .thumb svg { width: 22px; height: 22px; }
.partner-inline .card__title { font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.3; }

/* Regular columns */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.column { border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 170px; }
.column--red { background: var(--red); color: #fff !important; }
.column--ink { background: var(--ink); color: #fff !important; }
.column--light { background: var(--surface); }
.column:hover { filter: brightness(1.06); }
.column__when { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.column__title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.column__text { font-size: 15px; line-height: 1.5; opacity: .9; }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brands a { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; }
.brands a span { color: #8A8F99; }
.brands a:hover { border-color: var(--ink); color: var(--ink); }

/* Newsletter */
.newsletter { background: var(--ink); color: #fff; border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.newsletter__title { margin: 0; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1.05; letter-spacing: -.02em; }
.newsletter__title span { color: var(--red-on-dark); }
.newsletter p { margin: 12px 0 0; color: #C3C7CE; }
.newsletter form { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input[type="email"] { flex: 1 1 220px; height: 52px; border-radius: 26px; border: 0; padding: 0 22px; font-size: 16px; font-family: var(--font); }
.newsletter .btn { height: 52px; padding: 0 28px; border-radius: 26px; font-size: 16px; }
.newsletter__note { flex-basis: 100%; font-size: 13px; color: #9AA0AB; }

/* Empty state */
.empty { border: 1px dashed #C9CBD0; border-radius: 18px; padding: 48px 28px; text-align: center; color: var(--muted); }
.empty strong { display: block; font-family: var(--display); font-size: 24px; color: var(--ink); margin-bottom: 6px; }

/* Single article */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article-head { max-width: 860px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.article-head h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 54px); line-height: 1.04; letter-spacing: -.025em; }
.article-head .dek { margin: 0; font-size: 20px; line-height: 1.5; color: var(--text-2); }
.byline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.byline strong { color: var(--ink); }
.partner-notice { background: var(--surface); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.article-hero { margin-bottom: 36px; }
.article-hero .thumb { aspect-ratio: 21 / 9; border-radius: 20px; }
.article-hero figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-body { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.article-body > * { margin: 0 0 22px; }
.article-body h2 { margin: 38px 0 14px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
.article-body h3 { margin: 30px 0 10px; font-family: var(--display); font-weight: 700; font-size: 23px; color: var(--ink); }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { margin-left: 0; padding: 4px 0 4px 22px; box-shadow: inset 3px 0 0 var(--red); font-size: 20px; color: var(--ink); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.article-body figure img { border-radius: 12px; }
.article-body figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.article-body strong { color: var(--ink); }
.source-box { max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 32px; }
.source-box a { color: var(--ink); text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.side-sticky { position: sticky; top: 110px; }

/* Archive */
.archive-head { margin-bottom: 28px; }
.archive-head h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.02em; }
.archive-head p { margin: 0; color: var(--text-2); font-size: 18px; max-width: 720px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Page */
.page-head h1 { margin: 0 0 24px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.02em; }

/* Footer */
.site-footer { background: var(--ink); color: #C3C7CE; margin-top: 72px; }
.site-footer a { color: #C3C7CE; }
.site-footer a:hover { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding: 48px 0 32px; }
.footer__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.footer__brand img { height: 50px; width: auto; }
.footer__brand p { margin: 0; max-width: 340px; font-size: 15px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__cols h2 { margin: 0 0 12px; font-size: 15px; color: #fff; font-weight: 700; }
.footer__bottom { border-top: 1px solid #2A2F38; padding: 20px 0 32px; font-size: 13px; line-height: 1.6; color: #9AA0AB; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .site-header { position: static; }
  .brand img { height: 38px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .nav__list { flex-wrap: nowrap; white-space: nowrap; }
  .newsletter { padding: 28px; }
  .newsletter__title { font-size: 28px; }
  .tariffs__more { margin-left: 0; }
  .side-sticky { position: static; }
}
