/* ==========================================================================
   Betjara Blog — sports-magazine theme (mobile-first)
   Brand colours come from Admin → Settings (injected as --brand / --accent).
   ========================================================================== */

@font-face {
  font-family: "Display";
  src: url("../fonts/display.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --brand: #00c683;
  --accent: #00c683;
  --slate: #2b343b;
  --slate-2: #232b31;
  --slate-3: #1b2227;
  --ink: #111a1f;
  --ink-2: #3d4a52;
  --muted: #6d7b84;
  --line: #e2e7ea;
  --bg: #f2f4f5;
  --card: #ffffff;
  --soft: #f6f8f9;
  --on-brand: #06231a;
  --shadow: 0 1px 2px rgba(17, 26, 31, .05), 0 6px 18px rgba(17, 26, 31, .06);
  --shadow-lg: 0 4px 10px rgba(17, 26, 31, .08), 0 18px 40px rgba(17, 26, 31, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1240px;
  --header-h: 62px;
  --font: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Display", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: Charter, "Sitka Text", Cambria, Georgia, serif;
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e9eef1; --ink-2: #c1ccd2; --muted: #8b9aa3; --line: #2a343b;
  --bg: #12171a; --card: #1a2126; --soft: #20282e;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.3);
  --brand-ink: color-mix(in srgb, var(--brand) 85%, #fff);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9eef1; --ink-2: #c1ccd2; --muted: #8b9aa3; --line: #2a343b;
    --bg: #12171a; --card: #1a2126; --soft: #20282e;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.3);
    --brand-ink: color-mix(in srgb, var(--brand) 85%, #fff);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.hp { position: absolute; left: -9999px; }
.hide-xs { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 10px; font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none !important; white-space: nowrap; transition: transform .15s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }
.btn-accent, .btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-accent:hover, .btn-brand:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-dark { background: var(--slate); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(255,255,255,.1); }

/* ---------- Reading progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }
body:not(.page-post) .progress { display: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--slate-3); color: #9fb0b9; font-size: .78rem; }
.topbar-row { display: flex; align-items: center; gap: 16px; height: 32px; }
.topbar-rg b { display: inline-grid; place-items: center; min-width: 26px; height: 18px; border: 1.5px solid #e5484d; border-radius: 9px; color: #fff; font-size: .68rem; margin-right: 6px; }
.topbar-date, .topbar-links { display: none; }
.topbar-links { margin-left: auto; gap: 16px; }
.topbar-links a { color: #c9d4da; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--slate); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.header-row { display: flex; align-items: center; gap: 6px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none !important; margin-right: auto; flex-shrink: 0; }
.logo-img { height: 28px; width: auto; max-width: 180px; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font: 800 1.1rem var(--display); }
.logo-text { font: 800 1.25rem var(--display); letter-spacing: -.03em; color: #fff; }
.logo-text b { color: var(--brand); margin-left: 2px; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.header-actions .btn { margin-left: 6px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.search-panel { background: var(--slate-2); padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); }
.search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }

/* category strip (mobile) */
.cat-strip { background: var(--slate-2); position: sticky; top: var(--header-h); z-index: 40; }
.cat-strip .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cat-strip .wrap::-webkit-scrollbar { display: none; }
.cat-strip a { flex: 0 0 auto; scroll-snap-align: start; padding: 6px 13px; border-radius: 8px; color: #c9d4da; font-size: .84rem; font-weight: 600; text-decoration: none; }
.cat-strip a.is-active, .cat-strip a:hover { background: var(--brand); color: var(--on-brand); }

/* ticker */
.ticker { background: var(--card); border-bottom: 1px solid var(--line); }
.ticker-row { display: flex; align-items: center; gap: 12px; height: 42px; }
.ticker-label { flex: 0 0 auto; background: var(--brand); color: var(--on-brand); font: 800 .72rem var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; position: relative; }
.ticker-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.ticker-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 36px; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .9rem; font-weight: 600; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80; opacity: 0; transition: opacity .2s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; inset: 0 auto 0 0; width: min(86vw, 340px); background: var(--card); z-index: 90; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 18px; height: var(--header-h); background: var(--slate); color: #fff; flex-shrink: 0; }
.drawer-search { padding: 14px 18px 4px; }
.drawer-search input { width: 100%; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 14px; font: inherit; font-size: 16px; background: var(--soft); color: var(--ink); }
.drawer-list { list-style: none; margin: 0; padding: 8px 0; }
.drawer-list a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: var(--ink); font-weight: 600; text-decoration: none; }
.drawer-list a:hover { background: var(--soft); }
.drawer-list small { margin-left: auto; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chip, var(--brand)); flex-shrink: 0; }
.drawer-cta { padding: 16px 18px 24px; display: grid; gap: 10px; margin-top: auto; border-top: 1px solid var(--line); }
.rg-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* mobile header: burger left · logo centred · actions right */
@media (max-width: 1023px) {
  .header-row { position: relative; justify-content: space-between; }
  .site-header .logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  .site-header .logo-img { height: 26px; max-width: 150px; }
  .header-actions .theme-toggle { display: none; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .header-actions .btn { padding: 7px 12px; min-height: 34px; font-size: .82rem; margin-left: 2px; }
  .burger { background: transparent !important; margin-right: 0 !important; width: 38px; }
  .topbar-row { justify-content: center; height: 28px; }
}
@media (max-width: 359px) { .site-header .logo-img { height: 22px; max-width: 120px; } .header-actions .search-toggle { display: none; } }

/* burger + menu panel */
.burger { width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-content: center; gap: 5px; margin-right: 6px; }
.burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s, width .25s; }
.burger span:nth-child(2) { width: 14px; }
.burger:hover span:nth-child(2) { width: 20px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu-label { margin: 18px 20px 8px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu-tiles { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-tiles a { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--chip); color: var(--ink); text-decoration: none !important; min-height: 66px; justify-content: center; transition: transform .15s, background .15s; }
.menu-tiles a:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--chip) 10%, var(--card)); }
.menu-tiles b { font-size: .92rem; line-height: 1.2; }
.menu-tiles small { color: var(--muted); font-size: .74rem; }
.menu-links { list-style: none; margin: 0; padding: 0 16px; }
.menu-links a { display: block; padding: 11px 6px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------- Layout ---------- */
.site-main { min-height: 60vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 24px 48px; }
.content, .post-main { min-width: 0; }
.section { margin-bottom: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--chip, var(--brand)); }
.section-head h2 { font-size: 1.3rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--chip, var(--brand)); }
.section-more { font-size: .85rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.section-more:hover { color: var(--brand-ink); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
@media (hover: hover) { .card:hover .card-media img { transform: scale(1.05); } }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.08rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--brand-ink); }
.card-excerpt { color: var(--ink-2); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--muted); font-size: .8rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.read-more { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; color: var(--brand-ink); white-space: nowrap; transition: gap .2s; }
.card:hover .read-more { gap: 8px; }
.casino-band .read-more { color: var(--brand); }
.lead-cta { align-self: flex-start; margin-top: 4px; pointer-events: none; }
.li-more { display: block; padding: 12px 0 8px; font-weight: 800; font-size: .86rem; color: var(--brand-ink); }
.chip { align-self: flex-start; position: relative; z-index: 2; display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: color-mix(in srgb, var(--chip, var(--brand)) 14%, transparent); color: color-mix(in srgb, var(--chip, var(--brand)) 85%, #000); text-decoration: none !important; }
:root[data-theme="dark"] .chip { color: color-mix(in srgb, var(--chip) 55%, #fff); }
.kicker-link { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--chip, var(--brand)) 85%, #000); }
:root[data-theme="dark"] .kicker-link { color: color-mix(in srgb, var(--chip) 55%, #fff); }

.card-row { flex-direction: row; }
.card-row .card-media { flex: 0 0 40%; aspect-ratio: auto; min-height: 100%; }
.card-row .card-body { padding: 12px 14px; }
.card-row .card-title { font-size: 1rem; }
.card-row .card-excerpt { display: none; }

/* list item */
.li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li-thumb { flex: 0 0 104px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--soft); }
.li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.li-title { font-size: .98rem; margin: 0; line-height: 1.3; }
.li-title a { color: var(--ink); }
.li-title a:hover { color: var(--brand-ink); text-decoration: none; }

/* ---------- Homepage: hero ---------- */
.hero { padding-top: 20px; }
.hero-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.lead { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--slate); color: #fff; box-shadow: var(--shadow-lg); display: grid; }
.lead-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lead:hover .lead-media img { transform: scale(1.03); }
.lead-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.lead-title { font-size: clamp(1.45rem, 5.5vw, 2.3rem); line-height: 1.12; margin: 0; }
.lead-title a { color: #fff; }
.lead-title a::after { content: ""; position: absolute; inset: 0; }
.lead-title a:hover { text-decoration: none; color: var(--brand); }
.lead-excerpt { color: #c6d1d7; margin: 0; font-size: 1rem; }
.lead .meta { color: #9fb0b9; }
.lead .chip { background: var(--brand); color: var(--on-brand); }
.hero-side { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px; }
.hero-side-title { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 0 2px; margin: 0; font-family: var(--font); }
.hero-row { display: grid; gap: 18px; margin-top: 18px; }

/* promo banners (Betjara creative) */
.promo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.promo-strip::-webkit-scrollbar { display: none; }
.promo-strip a { scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--slate); display: block; }
.promo-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 516 / 240; }

/* category block */
.cat-block { display: grid; gap: 18px; }
.cat-block .li-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px; }

/* casino band */
.casino-band { background: radial-gradient(120% 140% at 0% 0%, #4a1636 0%, #23101f 45%, #120a12 100%); color: #fff; padding: 40px 0 44px; margin: 0; }
.casino-band .section-head { border-color: rgba(255,255,255,.12); }
.casino-band .section-head h2, .casino-band .section-more { color: #fff; }
.casino-band .card { background: rgba(255,255,255,.06); box-shadow: none; border: 1px solid rgba(255,255,255,.08); }
.casino-band .card-title a { color: #fff; }
.casino-band .card-excerpt { color: #cdbfc8; }
.casino-band .meta { color: #a8939f; }
.casino-band .chip { background: rgba(255,255,255,.12); color: #ffd1e6; }
.casino-intro { color: #d9c7d2; max-width: 60ch; margin: -6px 0 18px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination ol { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; background: var(--card); }
.pagination a:hover { border-color: var(--brand); color: var(--brand-ink); }
.pagination [aria-current] { background: var(--slate); color: #fff; border-color: var(--slate); }
.pg-gap { display: grid; place-items: center; color: var(--muted); }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 20px; align-content: start; }
.widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.widget-title { font-size: 1.05rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.widget-title::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--brand); }
.promo { background: var(--slate); color: #fff; padding: 0; overflow: hidden; }
.promo-img { display: block; aspect-ratio: 516 / 240; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-inner { padding: 16px 18px 18px; }
.promo-kicker { text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.promo-title { font-size: 1.25rem; color: #fff; }
.promo p { color: #c6d1d7; font-size: .92rem; }
.promo small { display: block; text-align: center; margin-top: 10px; color: #8fa0a9; font-size: .74rem; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ranked li:last-child { border: 0; }
.ranked .rank { flex: 0 0 auto; font: 800 1.6rem/1 var(--display); color: color-mix(in srgb, var(--brand) 60%, var(--line)); min-width: 26px; }
.ranked a { color: var(--ink); font-weight: 700; line-height: 1.3; display: block; }
.ranked a:hover { color: var(--brand-ink); }
.ranked small { color: var(--muted); font-size: .76rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a, .post-tags a { padding: 6px 12px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); font-size: .84rem; font-weight: 600; text-decoration: none; }
.tag-cloud a:hover, .post-tags a:hover { background: var(--slate); color: #fff; border-color: var(--slate); }
.nl-mini p { color: var(--ink-2); font-size: .9rem; }

/* ---------- Archive ---------- */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55vw; }
.breadcrumbs a { color: var(--muted); }
.archive-head { background: var(--slate); color: #fff; padding: 28px 0 30px; }
.archive-head .breadcrumbs a, .archive-head .breadcrumbs ol { color: #9fb0b9; }
.archive-head h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin-bottom: .3em; }
.kicker { text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: .72rem; color: var(--brand); margin-bottom: 6px; }
.archive-intro { color: #c6d1d7; max-width: 70ch; font-size: 1.05rem; }
.count { color: #9fb0b9; font-size: .88rem; margin: 0; }
.search-inline { max-width: 560px; margin: 16px 0; }
.empty { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* ---------- Article ---------- */
.post-hero { background: var(--slate); color: #fff; padding: 22px 0 26px; }
.post-hero .byline { margin-bottom: 0; }
.post-hero .breadcrumbs a, .post-hero .breadcrumbs ol { color: #9fb0b9; }
.post-header { max-width: 860px; }
.post-title { font-size: clamp(1.75rem, 6.5vw, 3rem); line-height: 1.1; margin: 12px 0 14px; color: #fff; }
.lead-para, .post-hero .lead { font-size: 1.12rem; color: #c6d1d7; line-height: 1.55; }
.byline { display: flex; align-items: center; gap: 12px; margin: 16px 0 22px; }
.avatar { border-radius: 50%; background: var(--soft); object-fit: cover; }
.byline-name { font-weight: 700; color: #fff; }
.post-hero .meta { color: #9fb0b9; }
.post-hero .chip { background: var(--brand); color: var(--on-brand); }
.logo-fallback[hidden] { display: none !important; }
.post-cover { margin: 0 -16px; position: relative; top: 0; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-cover + .post-body { border-radius: 0 0 var(--radius) var(--radius); }
.post-wrap { padding-top: 24px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.post-body { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; }
.post-cover { overflow: hidden; }
.share-rail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.share-label { font-size: .76rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.share { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; color: #fff; text-decoration: none; transition: transform .15s; }
.share:hover { transform: translateY(-2px); }
.share.wa { background: #25d366; } .share.x { background: #111; } .share.fb { background: #1877f2; } .share.tg { background: #229ed9; }
.share.copy, .share.native { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.share.copied { background: var(--brand); color: var(--on-brand); }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; }
.toc summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "▾"; transition: transform .2s; }
.toc:not([open]) summary::after { transform: rotate(-90deg); }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); font-size: .94rem; }
.toc a.is-active { color: var(--brand-ink); font-weight: 700; }
.toc-l3 { margin-left: 14px; list-style: circle; }

.prose { font-size: 1.075rem; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.55rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.22rem; margin: 1.5em 0 .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand-ink); font-weight: 700; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose blockquote { margin: 1.5em 0; padding: 6px 0 6px 18px; border-left: 4px solid var(--brand); font-family: var(--serif); font-size: 1.22rem; color: var(--ink-2); font-style: italic; }
.prose small { color: var(--muted); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--slate); color: #fff; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--soft); }
.prose .callout { background: color-mix(in srgb, var(--brand) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 14px 16px; }
.prose .callout strong:first-child { color: var(--brand-ink); }
.prose .tip-card { border: 2px solid var(--slate); border-radius: var(--radius); overflow: hidden; }
.prose .tip-card header { background: var(--slate); color: #fff; padding: 10px 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.prose .tip-card .tip-body { padding: 12px 16px; }
.prose .tip-card .odds { background: var(--brand); color: var(--on-brand); border-radius: 6px; padding: 2px 10px; font-weight: 800; }
.prose .tip-card p + p { margin-top: .5em; }
.prose code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.rg-box { margin-top: 32px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fff8e1; border: 1px solid #f3dd8c; color: #4a3b00; font-size: .9rem; }
:root[data-theme="dark"] .rg-box { background: #2a2408; border-color: #5a4b12; color: #f2e3a8; }
.rg-box a { font-weight: 700; color: inherit; text-decoration: underline; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cta-banner { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--slate); color: #fff; display: grid; gap: 14px; position: relative; overflow: hidden; }
.cta-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 35%, transparent); filter: blur(30px); }
.cta-banner h2 { font-size: 1.3rem; margin-bottom: 4px; color: #fff; }
.cta-banner p { margin: 0; color: #c6d1d7; }
.cta-banner .btn { position: relative; z-index: 1; }
.author-box { margin-top: 28px; display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.author-box h2 { font-size: 1.15rem; margin-bottom: 2px; }
.author-box h2 a { color: var(--ink); }
.author-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; font-weight: 700; }
.author-role { color: var(--brand-ink); font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.author-box p:last-child { margin: 0; font-size: .93rem; color: var(--ink-2); }
.avatar-lg { flex: 0 0 72px; }
.post-nav { display: grid; gap: 12px; margin-top: 28px; }
.pn { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none !important; background: var(--card); }
.pn small { display: block; color: var(--muted); font-weight: 700; font-size: .76rem; }
.pn span { color: var(--ink); font-weight: 700; }
.pn:hover { border-color: var(--brand); }
.pn.next { text-align: right; }
.related { padding-block: 16px 40px; }
.preview-bar { background: #fff4cc; color: #4a3b00; padding: 10px 16px; text-align: center; font-size: .9rem; border-bottom: 1px solid #f0dc8a; }
.preview-bar a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- Newsletter / footer ---------- */
.newsletter { background: linear-gradient(120deg, var(--slate) 0%, var(--slate-3) 100%); color: #fff; padding: 38px 0; position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 30%, transparent); filter: blur(50px); }
.nl-inner { display: grid; gap: 18px; position: relative; z-index: 1; }
.newsletter h2 { font-size: 1.5rem; margin-bottom: 4px; color: #fff; }
.newsletter p { color: #c6d1d7; margin: 0; }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.nl-form input[type="email"] { flex: 1 1 220px; height: 48px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.18); padding: 0 16px; font: inherit; font-size: 16px; background: rgba(255,255,255,.08); color: #fff; }
.nl-form input[type="email"]::placeholder { color: #9fb0b9; }
.nl-form input[type="email"]:focus { outline: none; border-color: var(--brand); }
.nl-form .btn { height: 48px; }
.form-msg { flex-basis: 100%; font-size: .9rem; font-weight: 600; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: var(--brand); }
.form-msg.err { color: #ff8a8a; }
.widget .nl-form input[type="email"] { background: var(--soft); color: var(--ink); border-color: var(--line); }
.widget .form-msg.ok { color: var(--brand-ink); }

.site-footer { background: var(--slate-3); color: #9fb0b9; padding: 0 0 calc(90px + env(safe-area-inset-bottom)); font-size: .93rem; }
.site-footer a { color: #dfe7eb; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }
.footer-cta { display: grid; gap: 16px; align-items: center; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-cta-kicker { margin: 0 0 2px; color: var(--brand); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-cta h2 { color: #fff; font-size: 1.35rem; margin: 0; }
.footer-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.22); color: #fff !important; background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand) !important; }
.footer-grid { display: grid; gap: 30px 24px; grid-template-columns: 1fr 1fr; padding: 34px 0 30px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .logo-img { height: 30px; }
.footer-brand p { margin: 14px 0 0; max-width: 42ch; line-height: 1.65; }
.footer-col h3 { color: #fff; font: 800 .74rem var(--font); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); display: inline-block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.social { display: flex !important; gap: 8px !important; margin-top: 18px !important; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); transition: background .15s, transform .15s; }
.social a:hover { background: var(--brand); color: var(--on-brand) !important; transform: translateY(-2px); }
.footer-rg { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.footer-rg p { margin: 0; font-size: .86rem; line-height: 1.55; }
.footer-rg strong { color: #fff; }
.footer-rg a { color: var(--brand); font-weight: 600; }
.badge-18 { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #e5484d; color: #fff; font-weight: 900; font-size: .85rem; }
.footer-legal { padding: 20px 0 6px; font-size: .78rem; color: #73858f; display: grid; gap: 4px; }
.footer-legal p { margin: 0; }
@media (min-width: 640px) {
  .footer-cta { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
}
.sticky-cta { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--slate-3); color: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: .9rem; transform: translateY(160%); transition: transform .3s ease; border: 1px solid rgba(255,255,255,.08); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta span { flex: 1; min-width: 0; }
.sticky-cta strong { color: var(--brand); }
.sticky-close { width: 34px; height: 34px; color: #9fb0b9; font-size: 1.4rem; }
.to-top { position: fixed; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 44; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--slate); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; }

.notfound { text-align: center; padding-block: 48px 24px; display: grid; justify-items: center; gap: 12px; }
.big404 { font: 800 clamp(5rem, 25vw, 9rem)/1 var(--display); margin: 0; color: var(--slate); letter-spacing: -.05em; }
:root[data-theme="dark"] .big404 { color: #fff; }
.big404 span { color: var(--brand); }
.notfound .search-inline { width: 100%; }

/* ==========================================================================
   ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .wrap { padding-inline: 24px; }
  .hide-xs { display: inline; }
  .topbar-date { display: inline; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-row { grid-template-columns: repeat(2, 1fr); }
  .promo-strip { grid-auto-columns: 46%; }
  .post-cover { margin-inline: 0; }
  .post-cover img { border-radius: var(--radius) var(--radius) 0 0; display: block; }
  .post-body { padding: 30px 32px; }
  .cta-banner { grid-template-columns: 1fr auto; align-items: center; padding: 26px 28px; }
  .post-nav { grid-template-columns: 1fr 1fr; }
  .pn.next:only-child { grid-column: 2; }
  .nl-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .cat-block { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .card-row .card-excerpt { display: -webkit-box; -webkit-line-clamp: 2; }
}

/* ==========================================================================
   ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 66px; }
  .topbar-links { display: flex; }
  .logo-img { height: 32px; }
  .main-nav { display: block; margin-left: 14px; margin-right: auto; min-width: 0; }
  .main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
  .main-nav a, .more-btn { display: block; padding: 8px 10px; border-radius: 8px; color: #dfe7eb; font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; background: none; border: 0; }
  .more-btn { display: inline-flex; align-items: center; gap: 4px; }
  .main-nav a:hover, .more-btn:hover, .main-nav a[aria-current] { background: rgba(255,255,255,.08); color: #fff; }
  .main-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--brand); }
  .has-more { position: relative; }
  .more-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--slate-2); border-radius: 12px; box-shadow: var(--shadow-lg); }
  .has-more:hover .more-menu, .has-more.is-open .more-menu, .has-more:focus-within .more-menu { display: block; }
  .more-menu a { padding: 10px 12px; }
  .logo { margin-right: 0; }
  .cat-strip { display: none; }
  .drawer { width: 460px; }
  .menu-tiles { grid-template-columns: 1fr 1fr; }

  .hero { padding-top: 26px; }
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .lead { grid-template-columns: 1.25fr 1fr; min-height: 380px; }
  .lead-media { aspect-ratio: auto; height: 100%; }
  .lead-body { padding: 28px 30px; }
  .hero-row { grid-template-columns: repeat(4, 1fr); }
  .promo-strip { grid-auto-flow: unset; grid-template-columns: repeat(3, 1fr); overflow: visible; }

  .layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding-block: 32px 64px; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 18px); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .casino-band .grid { grid-template-columns: repeat(4, 1fr); }

  .post-hero { padding-top: 30px; }
  .post-cover { max-width: none; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; }
  .prose { font-size: 1.12rem; }
  .sticky-cta { display: none; }
  .to-top { bottom: 24px; right: 24px; }
  .site-footer { padding-bottom: 36px; }
}

/* Header nav: never overflow. Items in the "More" menu duplicate hidden nav links. */
.more-dup { display: none; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav .nav-i2, .main-nav .nav-i3 { display: none; }
  .more-menu .more-i2, .more-menu .more-i3 { display: block; }
  .main-nav a, .more-btn { font-size: .88rem; padding: 8px 8px; }
}
@media (min-width: 1024px) and (max-width: 1139px) {
  .main-nav .nav-i1 { display: none; }
  .more-menu .more-i1 { display: block; }
  .header-actions .hide-xs { display: none; }
}

@media print {
  .site-header, .topbar, .ticker, .cat-strip, .share-rail, .sidebar, .newsletter, .sticky-cta, .to-top, .cta-banner, .site-footer, .progress { display: none !important; }
  body { color: #000; background: #fff; }
}
