/* ===== INDUSTRIAL THEME — Granat, bursztyn, ostry, profesjonalny ===== */
/* @import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&family=Barlow+Condensed:wght@400;500;600;700;800&family=Barlow:wght@400;500;600&family=Oswald:wght@400;500;600;700&display=swap'); — fonts loaded via <link> in layout.php */

:root {
  --c-primary:   #1A237E;
  --c-primary-d: #0D1757;
  --c-accent:    #FF8F00;
  --c-accent-d:  #E65100;
  --c-bg:        #F4F5F7;
  --c-bg-card:   #FFFFFF;
  --c-text:      #1C2833;
  --c-text-muted:#6B7280;
  --c-border:    #DDE1E8;
  --c-success:   #16A34A;
  --c-danger:    #DC2626;
  --shadow:      0 2px 12px rgba(26,35,126,.1);
  --shadow-hover:0 6px 24px rgba(26,35,126,.18);
  --font-h: 'Roboto Condensed', sans-serif;
  --font-b: 'Roboto', sans-serif;
  --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-b); color: var(--c-text); background: var(--c-bg); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-family: var(--font-h); font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); }
p { margin-bottom: 1rem; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.75rem; min-height: 44px; font-family: var(--font-h); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; border: 2px solid transparent; cursor: pointer; transition: var(--transition); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.btn--primary { background: var(--c-accent); color: #1A1A1A; border-color: var(--c-accent); }
.btn--primary:hover { background: var(--c-accent-d); color: #1A1A1A; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,143,0,.35); }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--lg { padding: .9rem 2.25rem; font-size: 1rem; }

/* ---- TOPBAR ---- */
.topbar { background: var(--c-primary); color: rgba(255,255,255,.75); font-size: .8rem; padding: .4rem 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--c-accent); }

/* ---- NAV ---- */
.site-nav { background: var(--c-bg-card); border-bottom: 3px solid var(--c-accent); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-h); font-weight: 700; font-size: 1.35rem; color: var(--c-primary); text-transform: uppercase; letter-spacing: .05em; }
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; list-style: none; gap: 0; align-items: center; }
.nav-links a { display: block; font-family: var(--font-h); font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text); padding: 1.5rem 1.1rem; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: var(--transition); }
.nav-links a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.nav-cta { background: var(--c-accent) !important; color: #fff !important; padding: .65rem 1.25rem !important; margin-left: .75rem; border-bottom: none !important;  align-self: center;}
.nav-cta:hover { background: var(--c-accent-d) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--c-text); }

/* ---- HERO (split layout diagonal) ---- */
.hero { background: var(--c-primary); min-height: 540px; position: relative; overflow: hidden; margin-bottom: 0; }
.hero::after { content: ''; position: absolute; top: 0; right: 0; width: 58%; height: 100%; background: var(--c-primary-d); clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.hero::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--c-accent); z-index: 2; }
/* Bridge: smooth gradient from stats-strip/hero to first section */
.stats-strip + .section { box-shadow: inset 0 8px 16px -8px rgba(255,143,0,.25); }
.hero + .section { box-shadow: inset 0 8px 16px -8px rgba(26,35,126,.2); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 520px; position: relative; z-index: 1; }
.hero__left { padding: 4rem 0; }
.hero__badge { display: inline-block; background: var(--c-accent); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .9rem; margin-bottom: 1.25rem; }
.hero__left h1 { color: #fff; margin-bottom: 1rem; }
.hero__left h1 span { color: var(--c-accent); }
.hero__left p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 440px; margin-bottom: 1.25rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.hero__trust span { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 600; padding: .3rem .8rem; border-radius: 4px; }
.hero__trust .sep { background: transparent; opacity: .35; }
.hero__benefits { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.hero__benefits li { color: rgba(255,255,255,.88); font-size: .92rem; display: flex; align-items: center; gap: .6rem; list-style: none; }
.hero__benefits li::before { content: '✓'; color: var(--c-accent); font-weight: 700; }
.hero__right { padding: 3rem 2rem 3rem 4rem; position: relative; }
.hero__img { border-radius: 2px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); aspect-ratio: 4/3; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- STATS STRIP ---- */
.stats-strip { background: var(--c-accent); padding: 1.5rem 0; }
.stats-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.stat { text-align: center; color: #1A1A1A; }
.stat__num { font-family: var(--font-h); font-weight: 700; font-size: 2rem; display: block; line-height: 1; }
.stat__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; display: block; margin-top: .2rem; }

/* ---- SECTIONS ---- */
.section { padding: 72px 0; background: var(--c-bg); }
.section--alt { background: #fff; }
.section--dark { background: var(--c-primary); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.78); }
.section__header { margin-bottom: 2.5rem; }
.section__header h2 { position: relative; padding-bottom: .75rem; }
.section__header h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--c-accent); margin-top: .75rem; }
.section__header p { color: var(--c-text-muted); max-width: 540px; margin-top: .75rem; }

/* ---- CARDS ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card { background: var(--c-bg-card); padding: 1.75rem; box-shadow: var(--shadow); border: none; border-radius: 0; border-left: 4px solid var(--c-accent); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-left-color: var(--c-primary); }
.card__icon { width: 48px; height: 48px; background: var(--c-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card__icon svg { width: 24px; height: 24px; fill: var(--c-accent); }
.card h3 { margin-bottom: .5rem; font-size: 1rem; }
.card p { font-size: .88rem; color: var(--c-text-muted); margin: 0; }

/* ---- HOW IT WORKS ---- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem; background: var(--c-bg-card); box-shadow: var(--shadow); counter-increment: step; }
.step::before { content: '0' counter(step); font-family: var(--font-h); font-weight: 700; font-size: 3.5rem; color: rgba(26,35,126,.08); position: absolute; top: .5rem; right: 1rem; line-height: 1; }
.step h3 { color: var(--c-accent); margin-bottom: .5rem; font-size: .95rem; }
.step p { font-size: .88rem; color: var(--c-text-muted); margin: 0; }

/* ---- BLOG ---- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--c-bg-card); box-shadow: var(--shadow); border-left: 4px solid var(--c-accent); display: flex; flex-direction: column; transition: var(--transition); }
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateX(4px); }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; gap: .75rem; font-size: .78rem; color: var(--c-text-muted); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.post-card__cat { color: var(--c-accent); font-weight: 700; }
.post-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--c-text); }
.post-card h3 a:hover { color: var(--c-accent); }
.post-card p { font-size: .85rem; color: var(--c-text-muted); flex: 1; margin: 0; }
.post-card__link { margin-top: .75rem; font-family: var(--font-h); font-weight: 700; font-size: .82rem; color: var(--c-accent); text-transform: uppercase; letter-spacing: .04em; }

/* ---- CTA ---- */
.cta-banner { background: var(--c-primary); padding: 4rem; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; background: var(--c-accent); opacity: .1; border-radius: 50%; }
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.78); max-width: 500px; margin-bottom: 2rem; }

/* ---- ARTICLE ---- */
.page-header { background: var(--c-primary); color: #fff; padding: 2.5rem 0; border-bottom: 4px solid var(--c-accent); }
.page-header h1 { color: #fff; }
.page-header p { color: rgba(255,255,255,.75); margin-top: .5rem; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.article-body { background: var(--c-bg-card); padding: 2.5rem; box-shadow: var(--shadow); }
.article-body h2 { margin: 2rem 0 1rem; color: var(--c-primary); border-left: 4px solid var(--c-accent); padding-left: .75rem; }
.article-body h3 { margin: 1.5rem 0 .75rem; color: var(--c-text); }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--c-primary); }
.article-body a { color: var(--c-accent); text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--c-accent); padding: 1rem 1.5rem; background: var(--c-bg); margin: 1.5rem 0; font-style: italic; color: var(--c-text-muted); }
.article-header { margin-bottom: 2rem; }
.reading-time{font-size:.78rem;color:var(--c-text-muted,#888)}
.article-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .82rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.article-meta .tag { background: var(--c-primary); color: #fff; padding: .2rem .6rem; font-weight: 700; font-size: .72rem; }

/* FAQ */
.faq { margin: 2rem 0; }
.faq__item { border-bottom: 2px solid var(--c-border); }
.faq__q { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; cursor: pointer; font-family: var(--font-h); font-weight: 700; font-size: .95rem; gap: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.faq__q::after { content: '+'; font-size: 1.4rem; color: var(--c-accent); flex-shrink: 0; }
.faq__item.open .faq__q::after { content: '−'; }
.faq__a { display: none; padding: 0 0 1rem; color: var(--c-text-muted); font-size: .9rem; }
.faq__item.open .faq__a { display: block; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: var(--c-bg-card); padding: 1.5rem; box-shadow: var(--shadow); border-top: 3px solid var(--c-accent); }
.sidebar-widget h3 { font-size: .9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary); }
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { padding: .4rem 0; border-bottom: 1px solid var(--c-border); font-size: .88rem; }
.sidebar-widget ul li:last-child { border: none; }
.sidebar-cta { background: var(--c-primary) !important; color: #fff; border-top-color: var(--c-accent) !important; }
.sidebar-cta h3 { color: var(--c-accent) !important; }
.sidebar-cta p { color: rgba(255,255,255,.78); font-size: .88rem; margin-bottom: 1rem; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* ---- RANKING ---- */
.ranking-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;font-size:.82rem}
.ranking-methodology summary{cursor:pointer;color:var(--c-primary,#0077cc);font-weight:600;list-style:none}
.ranking-methodology summary::marker,.ranking-methodology summary::-webkit-details-marker{display:none}
.ranking-methodology p{margin-top:.5rem;color:var(--c-text-muted,#666);font-size:.8rem;max-width:600px}
.ranking-updated{color:var(--c-text-muted,#888);font-size:.75rem;white-space:nowrap}
.ranking-table-note { font-size: .78rem; color: var(--c-text-muted, #888); padding: .5rem 1rem .75rem; margin: 0; text-align: right; font-style: italic; }
.ranking-table-wrap { overflow-x: auto; box-shadow: var(--shadow); margin: 2rem 0; }
.ranking-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ranking-table th { background: var(--c-primary); color: #fff; padding: .75rem .85rem; text-align: center; font-family: var(--font-h); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ranking-table td { padding: .7rem .85rem; text-align: center; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.ranking-table .col-platform { text-align: left; }
.row--winner td { background: rgba(255,143,0,.06); border-left: 3px solid var(--c-accent); }
.row--winner td:first-child { border-left: 3px solid var(--c-accent); }
.feat--yes { color: var(--c-success); font-size: 1.1rem; font-weight: 700; }
.feat--no  { color: var(--c-danger);  font-size: 1.1rem; }
.badge { display: inline-block; padding: .15rem .5rem; font-size: .7rem; font-weight: 700; margin-left: .3rem; background: #FFF3CD; color: #856404; border: 1px solid #FFCE00; text-transform: uppercase; }
.platform-link { color: var(--c-accent); font-weight: 700; text-decoration: underline; }
.rating-block { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; text-align: left; }
.rating-item { display: flex; align-items: center; gap: .3rem; white-space: nowrap; }
.rating-logo { height: 14px; width: auto; }
.stars { display: inline-flex; gap: 1px; }
.star { font-size: .82rem; }
.star--full, .star--half { color: #F59E0B; }
.star--empty { color: #D1D5DB; }
.no-data { font-style: italic; color: var(--c-text-muted); font-size: .78rem; }
.btn-ranking { display: inline-block; padding: .45rem 1.1rem; background: var(--c-accent); color: #fff; font-size: .82rem; font-weight: 700; font-family: var(--font-h); letter-spacing: .04em; text-transform: uppercase; }
.btn-ranking:hover { background: var(--c-accent-d); color: #fff; }
.no-link { color: var(--c-text-muted); }
.platform-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.platform-card { background: var(--c-bg-card); border-top: 4px solid var(--c-border); padding: 1.5rem; box-shadow: var(--shadow); }
.platform-card--winner { border-top-color: var(--c-accent); }
.platform-card__header { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.platform-card__rank { font-size: 1.5rem; }
.platform-card__name { font-size: 1.05rem; font-family: var(--font-h); font-weight: 700; text-transform: uppercase; }
.platform-card__ratings { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; margin-bottom: .75rem; }
.platform-card__desc { font-size: .85rem; color: var(--c-text-muted); margin-bottom: 1rem; }

/* BREADCRUMBS */
.breadcrumbs { padding: .6rem 0; font-size: .82rem; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; list-style: none; align-items: center; gap: .2rem; }
.breadcrumbs__item { display: flex; align-items: center; gap: .2rem; }
.breadcrumbs__item a { color: var(--c-accent); }
.breadcrumbs__item a:hover { text-decoration: underline; }
.breadcrumbs__sep { color: rgba(255,255,255,.5); }

/* FOOTER */
.site-footer { background: var(--c-primary-d); color: rgba(255,255,255,.65); padding: 3rem 0 1.5rem; margin-top: 4rem; border-top: 4px solid var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { color: rgba(255,255,255,.7); }
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; max-width: 240px; }
.footer-col h4 { color: var(--c-accent); font-family: var(--font-h); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-col ul li a:hover { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; display: flex; justify-content: space-between; font-size: .78rem; flex-wrap: wrap; gap: .75rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .hero__left { padding: 3rem 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--c-bg-card); padding: 1rem 24px; border-bottom: 3px solid var(--c-accent); box-shadow: 0 8px 24px rgba(0,0,0,.1); gap: .25rem; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { width: 100%; padding: .75rem 1rem; border-radius: 8px; border-bottom-color: transparent; justify-content: flex-start; }
  .nav-links a:hover { background: var(--c-bg, #f5f5f5); }
  .nav-toggle { display: block; }
  .cta-banner { margin: 0 12px; border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { justify-content: center; gap: 2rem; }
  .ranking-table-wrap { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- TABLE & CARD HOVER ---- */
.ranking-table tbody tr { transition: background .15s ease; }
.ranking-table tbody tr:hover td { background: rgba(0,0,0,.04) !important; }
.platform-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); border-color: var(--c-primary) !important; }

/* ---- STAT TILES (category blocks) ---- */
.stats-strip { padding: 2rem 0; }
.stats-inner { gap: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }
.stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: 1.35rem 1rem; transition: background .18s; }
.stat:hover { background: rgba(255,255,255,.22); }
.stat__num { font-size: 1.7rem; line-height: 1.1; }
.stat__label { font-size: .8rem; font-weight: 700; letter-spacing: .05em; margin-top: .3rem; }


/* ---- PLATFORM CARD SCORE BAND ---- */
.platform-card { overflow: hidden; display: flex; flex-direction: column; }
.platform-card__score-band { display: flex; align-items: center; gap: .5rem; padding: .65rem 1rem; color: #fff; }
.platform-card__score-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.platform-card__score-lbl { font-size: .72rem; opacity: .85; flex: 1; }
.platform-card__score-band .stars { font-size: .85rem; }
.platform-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.platform-card__google { font-size: .82rem; margin-bottom: .6rem; }
.platform-card__note { font-size: .78rem; color: var(--c-text-muted, #888); margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--c-border, #e5e7eb); }
.platform-card__desc { flex: 1; }
.platform-card { padding: 0; }
.platform-card--winner { border-top-style: none; }

/* ---- PLATFORM CARD BUTTON FIX ---- */
.platform-card__body .btn { display: flex; width: 100%; justify-content: center; box-sizing: border-box; margin-top: auto; }
.platform-card__body .btn--primary { color: var(--btn-text, #fff); }
.platform-card__note { text-align: center; }

/* ---- TABLE FIXES ---- */
.badge { white-space: nowrap; }
.col-platform { white-space: nowrap; }
.col-action { width: 1%; white-space: nowrap; text-align: center; }
.btn-ranking { white-space: nowrap; display: inline-block; min-width: 0; }
/* Fix nested stats-grid from render_stats_bar */
.stats-inner > .stats-grid { display: contents; }

.related-posts{margin-top:2rem;padding-top:1.5rem;border-top:2px solid var(--c-border,#e5e7eb)}
.related-posts__title{font-size:1rem;font-weight:700;margin-bottom:.75rem;color:var(--c-primary,#0077cc)}
.related-posts__list{list-style:none;padding:0;margin:0}
.related-posts__list li{padding:.45rem 0;border-bottom:1px solid var(--c-border,#e5e7eb)}
.related-posts__list li:last-child{border-bottom:none}
.related-posts__list a{color:var(--c-text,#333);font-size:.9rem;text-decoration:none}
.related-posts__list a:hover{color:var(--c-primary,#0077cc)}
/* ---- PAGE HEADER CONTRAST FIX ---- */
.page-header .article-meta,
.page-header .article-meta time,
.page-header .reading-time{color:rgba(255,255,255,.82)}
.page-header .article-meta .tag{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.25)}
.page-header .breadcrumbs__item a{color:rgba(255,255,255,.9)}
.page-header .breadcrumbs__sep{color:rgba(255,255,255,.45)}
.page-header .breadcrumbs__item span[aria-current]{color:#fff;font-weight:600}

/* ---- ARTICLE BODY: remove uppercase for readability ---- */
.article-body h2,.article-body h3{text-transform:none}
.article-body h2{letter-spacing:.01em}
.article-body h3{letter-spacing:normal;color:var(--c-text);font-size:1.15rem}
h1{letter-spacing:-.01em}
h3{font-weight:700}
