/*
Theme Name: ATLAS Bettbit — Full Brand
Author: ATLAS
Description: Bettbit-forward design: system-sans typography, charcoal interfaces, red interactive accents, gold highlights, rounded controls. Based on ATLAS Compact Editorial 1.2.0 / Bettbit 1.3.0.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atlas-bettbit-full-brand
Tags: blog, news, two-columns, translation-ready
*/
:root {
  --navy: #192c42;
  --navy-light: #3f5367;
  --ink: #1b2c3c;
  --muted: #697987;
  --accent: #087b85;
  --accent-strong: #056b73;
  --warm: #e2b65d;
  --border: #e4e9ed;
  --surface: #f6f8f9;
  --white: #ffffff;
  --max-width: 1180px;
  --reading-width: 750px;
  --shadow: 0 14px 32px rgba(23, 41, 55, 0.06);
  --page-bg: #ffffff;
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --home-band-bg: #f4f7f7;
  --article-hero-bg: #f6f8f9;
  --footer-bg: #f5f7f8;
  --footer-border: #dfe6e9;
  --input-border: #c4cfd7;
  --input-placeholder: #7e8b97;
  --nav-text: #344a5d;
  --story-excerpt: #5f6e7b;
  --story-separator: #c1cbd3;
  --snapshot-count: #70848b;
  --article-ink: #273849;
  --article-link: #066baf;
  --article-link-hover: #034c7d;
  --code-bg: #f2f5f6;
  --lead-bg: #192c42;
  --lead-ink: #ffffff;
  --lead-meta: #afc2ca;
  --lead-category: #e9c782;
  --lead-hover: #f2daaa;
  --lead-text: #d8e1e8;
  --lead-link: #f5d7a4;
  --badge-bg: #192c42;
  --badge-ink: #ffffff;
  --current-ink: #ffffff;
  --lang-active-bg: #192c42;
  --lang-active-ink: #ffffff;
  --search-bg: #ffffff;
  color-scheme: light;
}

/* Night palette: all navigation, archives, articles, blocks and search use shared tokens. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #eaf2fc;
  --navy-light: #bbccdc;
  --ink: #e4edf8;
  --muted: #afc0d0;
  --accent: #6dd3dc;
  --accent-strong: #a1edf3;
  --border: #34485b;
  --surface: #1c2b3b;
  --white: #182839;
  --page-bg: #101b28;
  --header-bg: #162535;
  --card-bg: #192a3b;
  --home-band-bg: #192b3c;
  --article-hero-bg: #1a2b3c;
  --footer-bg: #162635;
  --footer-border: #34485b;
  --input-border: #647b8f;
  --input-placeholder: #b0bdcb;
  --nav-text: #d0e1ee;
  --story-excerpt: #c2d0dd;
  --story-separator: #7991a5;
  --snapshot-count: #afc0d0;
  --article-ink: #e0eaf5;
  --article-link: #93cbff;
  --article-link-hover: #c0e2ff;
  --code-bg: #243547;
  --lead-bg: #203b51;
  --lead-ink: #f6faff;
  --lead-meta: #c8d8e5;
  --lead-category: #efd58d;
  --lead-hover: #ffe7b7;
  --lead-text: #d8e4ed;
  --lead-link: #f3d698;
  --badge-bg: #294d66;
  --badge-ink: #f3faff;
  --current-ink: #0b2129;
  --lang-active-bg: #31536a;
  --lang-active-ink: #ffffff;
  --search-bg: #1d3144;
  --shadow: 0 15px 38px rgba(0, 0, 0, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page-bg); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img, video { max-width: 100%; height: auto; }
svg { display: inline-block; }
.container { width: min(calc(100% - 64px), var(--max-width)); margin-left: auto; margin-right: auto; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute !important; word-wrap: normal !important; }
.skip-link { position: fixed; left: 16px; top: -200px; z-index: 9999; padding: 12px 18px; background: #fff; color: #000; border: 2px solid var(--accent); }
.skip-link:focus { top: 12px; }
/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; min-height: 100px; }
.branding { min-width: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; }
.brand-mark { font-family: Georgia, 'Times New Roman', serif; display: inline-flex; align-items: center; justify-content: center; width: 49px; height: 49px; font-weight: 700; font-size: 32px; letter-spacing: -3px; background: var(--badge-bg); color: var(--badge-ink); line-height: 1; border-radius: 3px; }
.brand-mark-dot { color: var(--warm); }
.brand-text { font-size: clamp(20px, 2.15vw, 30px); line-height: 1.18; font-weight: 760; color: var(--navy); letter-spacing: -.035em; overflow-wrap: anywhere; }
.brand-tagline { display: block; margin: 7px 0 0 61px; text-transform: uppercase; font-size: 10px; color: var(--muted); letter-spacing: .135em; font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: 23px; }
.language-nav { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.language-item { font-size: 11px; letter-spacing: .08em; font-weight: 750; border: 1px solid var(--border); padding: 6px 9px; border-radius: 3px; }
.language-item.is-current { background: var(--lang-active-bg); color: var(--lang-active-ink); border-color: var(--lang-active-bg); }
.header-search { display: flex; align-items: center; border-bottom: 1px solid var(--input-border); }
.header-search input { width: 146px; color: var(--ink); padding: 9px 0; background: transparent; border: 0; font-size: 12px; outline: 0; }
.header-search input::placeholder { color: var(--input-placeholder); }
.header-search button { display: flex; justify-content: center; align-items: center; width: 32px; height: 35px; padding: 0; background: transparent; border: none; color: var(--navy); cursor: pointer; }
.header-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.category-nav { border-top: 1px solid var(--border); display: flex; gap: 27px; align-items: center; overflow-x: auto; scrollbar-width: thin; min-height: 55px; }
.category-nav a { color: var(--nav-text); flex: 0 0 auto; padding: 14px 0; font-size: 11px; font-weight: 780; text-transform: uppercase; letter-spacing: .045em; }
.category-nav .nav-latest { color: var(--accent); }
.category-nav a:hover { color: var(--accent); }
/* Homepage */
.home-hero-band { background: var(--home-band-bg); padding: 50px 0 48px; border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 770; color: var(--accent); margin: 0 0 12px; }
.eyebrow-line { display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 9px; }
.home-heading { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(31px, 4vw, 49px); font-weight: 700; color: var(--navy); margin: 0 0 10px; line-height: 1.14; letter-spacing: -.027em; }
.home-intro { margin: 0; font-size: 15px; color: var(--navy-light); }
.main-content { padding-top: 47px; padding-bottom: 80px; min-height: 45vh; }
.section-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 24px; }
.section-topline h2 { margin: 0; color: var(--navy); font-size: 20px; font-weight: 770; letter-spacing: -.018em; }
.section-counter { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .08em; font-weight: 700; }
.home-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lead-story { grid-column: span 2; background: var(--lead-bg); color: var(--lead-ink); padding: 39px 43px; min-height: 324px; display: flex; flex-direction: column; justify-content: center; border-radius: 3px; }
.lead-story .story-meta { color: var(--lead-meta); }
.lead-story .meta-category { color: var(--lead-category); }
.lead-title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(26px, 2.8vw, 37px); line-height: 1.22; letter-spacing: -.016em; margin: 14px 0 17px; max-width: 750px; }
.lead-title a:hover { color: var(--lead-hover); }
.lead-story p { margin: 0 0 21px; max-width: 690px; color: var(--lead-text); font-size: 15px; line-height: 1.68; }
.lead-link { color: var(--lead-link); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.lead-link:hover { color: #fff; }
.story-card { background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--accent); padding: 24px 24px 21px; border-radius: 2px; min-height: 242px; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.story-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; color: var(--muted); }
.meta-category { color: var(--accent); }
.meta-separator { color: var(--story-separator); }
.story-card-title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.37; font-weight: 700; letter-spacing: -.008em; color: var(--navy); margin: 12px 0 11px; overflow-wrap: anywhere; }
.story-card-excerpt { color: var(--story-excerpt); margin: 0 0 18px; line-height: 1.68; font-size: 13px; }
.story-card-more { color: var(--accent); margin-top: auto; font-weight: 760; font-size: 11px; text-transform: uppercase; letter-spacing: .055em; }
.story-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.empty-state { background: var(--surface); padding: 35px; border: 1px solid var(--border); }
/* Small category digest */
.category-snapshots { margin-top: 65px; }
.snapshots-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.snapshot { border-left: 2px solid var(--border); padding: 3px 0 0 17px; }
.snapshot h3 { margin: 0 0 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-size: 12px; }
.snapshot h3 span { color: var(--snapshot-count); }
.snapshot ul { list-style: none; padding: 0; margin: 0; }
.snapshot li { border-top: 1px solid var(--border); padding: 13px 0; line-height: 1.45; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: 700; }
/* Archives */
.archive-main { padding-top: 50px; }
.archive-header { margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.archive-header h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 4vw, 45px); color: var(--navy); line-height: 1.15; margin: 0; }
.archive-header .archive-description { font-size: 14px; color: var(--muted); max-width: 750px; margin-top: 12px; }
.archive-description p { margin: 0; }
/* Pagination */
.navigation.pagination { margin: 37px 0 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-links .page-numbers { padding: 9px 14px; border: 1px solid var(--border); border-radius: 2px; font-size: 13px; font-weight: 700; color: var(--navy); }
.nav-links .current { color: var(--current-ink); background: var(--accent); border-color: var(--accent); }
.nav-links a:hover { border-color: var(--accent); color: var(--accent); }
/* Article */
.article-hero { background: var(--article-hero-bg); border-bottom: 1px solid var(--border); padding: 54px 20px 47px; }
.article-reading-width { max-width: var(--reading-width); width: calc(100% - 48px); margin: 0 auto; }
.article-hero .article-reading-width { width: 100%; }
.article-title { margin: 13px 0 17px; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(33px, 4.4vw, 49px); line-height: 1.19; letter-spacing: -.024em; overflow-wrap: anywhere; }
.article-byline { margin: 0; color: var(--muted); font-size: 12px; }
.article-content { padding-top: 43px; padding-bottom: 28px; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.75; color: var(--article-ink); overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content p { margin: 0 0 22px; }
.article-content h2, .article-content h3, .article-content h4 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; color: var(--navy); letter-spacing: -.02em; line-height: 1.28; }
.article-content h2 { font-size: clamp(25px, 2.4vw, 29px); font-weight: 770; margin: 38px 0 17px; }
.article-content h3 { font-size: 21px; margin: 29px 0 14px; }
.article-content h4 { font-size: 18px; margin: 24px 0 11px; }
.article-content ul, .article-content ol { padding-left: 26px; margin: 0 0 23px; }
.article-content li { margin-bottom: 9px; }
.article-content blockquote { border-left: 3px solid var(--accent); padding: 3px 22px; margin: 31px 0; color: var(--navy-light); background: var(--surface); }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content a { color: var(--article-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content a:hover { color: var(--article-link-hover); }
.article-content img { border-radius: 3px; }
.article-content figure { max-width: 100%; }
.article-content figcaption { color: var(--muted); font-size: 12px; text-align: center; }
.article-content pre, .article-content code { font-size: .84em; white-space: pre-wrap; }
.article-content pre { overflow-x: auto; padding: 17px; background: var(--code-bg); }
.article-content table { width: 100%; border-collapse: collapse; font-family: -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 14px; }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.article-content table + * { margin-top: 20px; }
.article-content .wp-block-separator { border-color: var(--border); margin: 32px 0; }
.article-content .wp-block-columns { gap: 20px; }
.article-content .alignwide { max-width: 1050px; width: min(1050px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.article-content .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.article-content iframe { max-width: 100%; }
.article-bottom-bar { border-top: 1px solid var(--border); padding: 25px 0 40px; font-size: 12px; color: var(--accent); font-weight: 700; }
.related-stories { border-top: 1px solid var(--border); margin: 5px 0 85px; padding-top: 33px; }
.story-compact { border-left: 2px solid var(--accent); padding: 3px 18px 10px; }
.story-compact h3 { font: 700 18px/1.4 Georgia, 'Times New Roman', serif; margin: 10px 0; color: var(--navy); }
/* Footer */
.site-footer { border-top: 3px solid var(--navy); background: var(--footer-bg); padding-top: 30px; color: var(--navy-light); }
.footer-top { display: flex; justify-content: space-between; align-items: start; padding-bottom: 25px; }
.footer-brand { color: var(--navy); font-size: 20px; font-weight: 780; }
.footer-top p { margin: 5px 0; font-size: 12px; }
.footer-bottom { border-top: 1px solid var(--footer-border); display: flex; justify-content: space-between; gap: 10px; padding-top: 17px; padding-bottom: 22px; font-size: 11px; color: var(--muted); }
/* Misc */
.error-page { padding-top: 110px; padding-bottom: 160px; }
.error-page h1 { font: 700 37px/1.2 Georgia, 'Times New Roman', serif; color: var(--navy); }
.error-page p { max-width: 500px; }
.button-link { display: inline-block; background: var(--badge-bg); color: var(--badge-ink); padding: 11px 17px; margin-top: 12px; }
.button-link:hover { color: var(--current-ink); background: var(--accent); }
/* Wordpress utilities */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: 12px; }
.sticky { isolation: isolate; }
.gallery-caption { font-size: 12px; }
.bypostauthor { color: inherit; }

/* Theme switch: system preference on first visit; user selection is saved per browser. */
.theme-toggle { display: none; align-items: center; gap: 7px; min-height: 37px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--search-bg); color: var(--navy); font: 700 11px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: inline-flex; }
.theme-icon-moon, .theme-icon-sun { align-items: center; justify-content: center; }
:root[data-theme="dark"] ::selection { background: #5baeba; color: #071521; }
/* Core blocks and native form elements should not retain a glaring light surface. */
:root[data-theme="dark"] .article-content input,
:root[data-theme="dark"] .article-content select,
:root[data-theme="dark"] .article-content textarea { color: var(--ink); background: var(--card-bg); border-color: var(--border); }
:root[data-theme="dark"] .article-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--surface); }
:root[data-theme="dark"] .wp-block-quote, :root[data-theme="dark"] .wp-block-pullquote { color: var(--article-ink); }
:root[data-theme="dark"] .wp-block-search__input { color: var(--ink); background: var(--card-bg); border-color: var(--border); }
:root[data-theme="dark"] .wp-block-search__button { color: var(--current-ink); background: var(--accent); border: 0; }

@media (max-width: 1000px) {
  .container { width: min(calc(100% - 44px), var(--max-width)); }
  .category-nav { gap: 20px; }
  .header-search input { width: 120px; }
  .home-stories, .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-story { grid-column: span 2; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 30px); }
  .header-row { min-height: 90px; flex-wrap: wrap; padding: 15px 0; gap: 12px; }
  .brand-mark { width: 40px; height: 40px; font-size: 26px; }
  .brand-text { font-size: 21px; }
  .brand-tagline { margin-left: 52px; font-size: 9px; }
  .header-actions { justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 10px; }
  .theme-toggle { min-height: 34px; }
  .header-search { width: min(220px, 55%); }
  .header-search input { width: 100%; }
  .category-nav { min-height: 46px; gap: 18px; }
  .category-nav a { font-size: 10px; padding: 12px 0; }
  .home-hero-band { padding: 34px 0; }
  .home-intro { font-size: 14px; }
  .main-content { padding-top: 33px; padding-bottom: 58px; }
  .section-topline h2 { font-size: 19px; }
  .section-counter { display: none; }
  .home-stories, .story-grid, .related-grid, .snapshots-grid { grid-template-columns: 1fr; gap: 13px; }
  .lead-story { grid-column: span 1; padding: 26px 24px; min-height: auto; }
  .lead-title { font-size: 29px; }
  .lead-story p { font-size: 14px; }
  .story-card { padding: 20px; min-height: auto; }
  .article-hero { padding: 35px 0 31px; }
  .article-reading-width { width: calc(100% - 36px); }
  .article-title { font-size: 34px; }
  .article-content { font-size: 17px; line-height: 1.74; padding-top: 29px; }
  .article-content h2 { font-size: 25px; margin-top: 33px; }
  .article-content h3 { font-size: 20px; }
  .article-content .alignwide { width: calc(100vw - 28px); }
  .footer-top, .footer-bottom { flex-direction: column; gap: 12px; }
  .category-snapshots { margin-top: 49px; }
  .related-stories { margin-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-card { transition: none; }
  .story-card:hover { transform: none; }
}


/* -------------------------------------------------------------------------
 * ATLAS Compact Editorial 1.2 — presentation only, no publishing changes.
 * A restrained dark editorial palette. These are NOT verified Bettbit brand
 * hex values; official colors/logo may be substituted at a later review.
 * ------------------------------------------------------------------------- */
:root {
  --accent: #087a79;
  --accent-strong: #086666;
  --warm: #eab968;
  --max-width: 1260px;
  --reading-width: 820px;
  --navy: #18283a;
  --navy-light: #536579;
}
:root[data-theme="dark"] {
  --navy: #edf4fe;
  --navy-light: #b5c3d5;
  --ink: #e7eef8;
  --muted: #9eafc4;
  --accent: #7de0c4;
  --accent-strong: #b1f6df;
  --border: #344255;
  --surface: #1b2939;
  --white: #19283b;
  --page-bg: #101824;
  --header-bg: #131e2d;
  --card-bg: #1b293b;
  --home-band-bg: #182536;
  --article-hero-bg: #142131;
  --footer-bg: #101a28;
  --footer-border: #314156;
  --input-border: #71849a;
  --input-placeholder: #b1c0d0;
  --nav-text: #d9e3f0;
  --story-excerpt: #c1ccda;
  --story-separator: #8394a8;
  --snapshot-count: #a9bacd;
  --article-ink: #e2eaf4;
  --article-link: #9ccff9;
  --article-link-hover: #c7e7ff;
  --code-bg: #273448;
  --lead-bg: #203249;
  --lead-ink: #f6f9ff;
  --lead-meta: #c1d3e3;
  --lead-category: #f0ca8a;
  --lead-hover: #fff0d0;
  --lead-text: #d7e0ec;
  --lead-link: #eecb92;
  --badge-bg: #264e48;
  --badge-ink: #f2fff9;
  --current-ink: #12212a;
  --lang-active-bg: #295f59;
  --lang-active-ink: #f8fffd;
  --search-bg: #19283a;
  --shadow: 0 10px 25px rgba(0,0,0,.22);
}
/* Put articles above the fold: 62px masthead + 40px taxonomy rail. */
.header-row { min-height: 62px; gap: 20px; }
.brand-mark { width: 36px; height: 36px; font-size: 23px; letter-spacing: -2px; border-radius: 6px; }
.brand-link { gap: 10px; }
.brand-text { font-size: clamp(19px, 2vw, 23px); letter-spacing: -.025em; }
.brand-tagline { display: none; }
.header-actions { gap: 15px; }
.category-nav { min-height: 40px; gap: 23px; }
.category-nav a { font-size: 10px; letter-spacing: .06em; padding: 11px 0; }
.language-item { padding: 5px 8px; }
.theme-toggle { min-height: 32px; padding: 5px 9px; }
.header-search input { padding: 5px 0; width: 140px; }
.header-search button { height: 32px; }
/* No splash hero; a headline rail directly precedes stories. */
.main-content { padding-top: 23px; padding-bottom: 48px; min-height: 34vh; }
.section-topline { padding-bottom: 9px; margin-bottom: 15px; border-bottom: 1px solid var(--border); }
.section-topline h2 { font-size: 19px; }
.section-counter { text-transform: none; letter-spacing: .01em; font-size: 11px; }
.home-stories { gap: 12px; }
.lead-story { min-height: 215px; padding: 24px 28px; border-radius: 7px; position: relative; }
.lead-story::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 7px 7px 0 0; background: var(--warm); }
.lead-title { font-size: clamp(23px,2.2vw,30px); line-height: 1.22; margin: 10px 0 9px; }
.lead-story p { font-size: 13px; line-height: 1.5; margin: 0 0 10px; }
.story-card { padding: 17px 18px 15px; min-height: 187px; border-top: 2px solid var(--accent); border-radius: 6px; }
.story-card-title { font-size: clamp(17px,1.5vw,20px); line-height: 1.27; margin: 8px 0 8px; }
.story-card-excerpt { line-height: 1.47; margin-bottom: 10px; }
.category-snapshots { margin-top: 37px; }
.snapshots-grid { gap: 16px; }
.snapshot li { padding: 9px 0; }
/* Article body starts directly after a compact, non-hero title block. */
.article-hero { padding: 23px 20px 19px; }
.article-title { font-size: clamp(29px,3.2vw,40px); margin: 8px 0 10px; line-height: 1.17; }
.article-reading-width { max-width: var(--reading-width); }
.article-content { padding-top: 19px; padding-bottom: 14px; font-size: 17px; line-height: 1.63; }
.article-content p { margin: 0 0 15px; }
.article-content h2 { font-size: clamp(22px,2vw,26px); margin: 27px 0 11px; }
.article-content h3 { font-size: 20px; margin: 22px 0 9px; }
.article-content li { margin-bottom: 6px; }
.article-bottom-bar { padding: 18px 0 22px; }
.archive-main { padding-top: 25px; }
.archive-header { margin-bottom: 20px; padding-bottom: 13px; }
.archive-header h1 { font-size: clamp(26px,3.5vw,37px); }
.related-stories { margin: 0 0 44px; padding-top: 22px; }
.site-footer { border-top-width: 1px; padding-top: 16px; }
.footer-top { padding-bottom: 13px; }
.footer-bottom { padding-top: 12px; padding-bottom: 14px; }
/* Dark links are accessible; colored accent is limited to highlights. */
:root[data-theme="dark"] .lead-story a:hover { color: #ffffff; }
@media (max-width: 1000px) {
 .header-row { gap: 12px; }
 .category-nav { gap: 18px; }
 .lead-story { grid-column: span 2; }
}
@media (max-width: 680px) {
 .header-row { min-height: auto; padding: 10px 0; gap: 8px; }
 .brand-mark { width: 32px; height: 32px; font-size: 20px; }
 .brand-text { font-size: 20px; }
 .header-actions { gap: 8px; flex-wrap: wrap; }
 .theme-toggle { min-height: 29px; }
 .header-search { width: min(180px,47%); }
 .category-nav { min-height: 37px; gap: 15px; }
 .category-nav a { padding: 9px 0; }
 .main-content { padding-top: 17px; padding-bottom: 35px; }
 .section-topline h2 { font-size: 18px; }
 .lead-story { grid-column: span 1; padding: 19px 18px; min-height: 0; }
 .lead-title { font-size: 25px; }
 .story-card { padding: 15px 16px; min-height: 0; }
 .story-card-title { font-size: 19px; }
 .article-hero { padding: 18px 0 14px; }
 .article-reading-width { width: calc(100% - 34px); }
 .article-title { font-size: clamp(27px,8vw,33px); }
 .article-content { padding-top: 15px; font-size: 16.5px; line-height: 1.65; }
 .article-content h2 { font-size: 22px; margin-top: 23px; }
 .category-snapshots { margin-top: 27px; }
 .related-stories { margin-bottom: 28px; }
}


/* === Bettbit brand layer (v1.3.0) ===
   Selective design tokens from the user-supplied Bettbit stylesheet:
   darkbg #05090D, dark surface #0B1116, basered #DC190B, gold #E8CC80.
   Original logo pixel color #FE3231. The source's Tailwind reset/utility
   classes, embedded promotional backgrounds and animation rules are NOT
   imported (would conflict with WordPress/editor/plugin frontends).
   Retain existing compact template layout and theme toggle. */
:root {
  color-scheme: light;
  --bettbit-red: #fe3231;
  --bettbit-gold: #e8cc80;
  --accent: #a92121;
  --accent-strong: #871b1b;
  --warm: #bd2626;
  --navy: #15222c;
  --navy-light: #455665;
  --ink: #1b2833;
  --muted: #5a6875;
  --border: #dce2e6;
  --surface: #f1f3f5;
  --white: #ffffff;
  --page-bg: #fafafb;
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --home-band-bg: #f4f5f6;
  --article-hero-bg: #f3f4f6;
  --footer-bg: #f4f5f6;
  --footer-border: #dce2e6;
  --input-border: #8c9aa4;
  --input-placeholder: #667784;
  --nav-text: #324453;
  --story-excerpt: #50606d;
  --story-separator: #8f9da7;
  --snapshot-count: #647584;
  --article-ink: #22313c;
  --article-link: #9b2222;
  --article-link-hover: #771818;
  --code-bg: #eef1f3;
  --lead-bg: #1a2935;
  --lead-ink: #ffffff;
  --lead-meta: #cfdee7;
  --lead-category: #ffb2ab;
  --lead-hover: #ffdddd;
  --lead-text: #d5e2ea;
  --lead-link: #ffb5b1;
  --badge-bg: #ae2423;
  --badge-ink: #ffffff;
  --current-ink: #ffffff;
  --lang-active-bg: #a92121;
  --lang-active-ink: #ffffff;
  --search-bg: #ffffff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bettbit-red: #fe3231;
  --bettbit-gold: #e8cc80;
  --navy: #f1f5f8;
  --navy-light: #c6d2db;
  --ink: #e8eef4;
  --muted: #a8b9c6;
  --accent: #ff7873;
  --accent-strong: #ff9d98;
  --warm: #fe3231;
  --border: #30414c;
  --surface: #15212a;
  --white: #111d25;
  --page-bg: #0b1116;
  --header-bg: #0e151b;
  --card-bg: #121e27;
  --home-band-bg: #101920;
  --article-hero-bg: #101a22;
  --footer-bg: #0e151b;
  --footer-border: #30414c;
  --input-border: #718692;
  --input-placeholder: #adbec8;
  --nav-text: #dde5ec;
  --story-excerpt: #b9c8d2;
  --story-separator: #8599a7;
  --snapshot-count: #aebdc8;
  --article-ink: #e0e9ef;
  --article-link: #ff9893;
  --article-link-hover: #ffc6c3;
  --code-bg: #1a2a34;
  --lead-bg: #1b2a34;
  --lead-ink: #f7f9fb;
  --lead-meta: #c4d3df;
  --lead-category: #e8cc80;
  --lead-hover: #fff0de;
  --lead-text: #d5e1e8;
  --lead-link: #ffc4a9;
  --badge-bg: #fe3231;
  --badge-ink: #ffffff;
  --current-ink: #ffffff;
  --lang-active-bg: #b42525;
  --lang-active-ink: #ffffff;
  --search-bg: #172530;
  --shadow: 0 10px 28px rgba(0,0,0,.31);
}
/* Brand is an accessible image, not typographic approximation. */
.brand-link { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.bettbit-logo { display: block; width: 148px; height: auto; max-height: 47px; object-fit: contain; }
.bettbit-logo-edition { display: inline-block; padding-left: 12px; border-left: 1px solid var(--border); color: var(--navy-light); font-size: 10px; font-weight: 800; letter-spacing: .18em; line-height: 1.6; }
.bettbit-logo-footer { display: block; width: 134px; height: auto; max-height: 50px; object-fit: contain; }
.header-row { min-height: 64px; }
.site-header { border-bottom-color: var(--border); }
.category-nav { border-top-color: var(--border); }
.category-nav .nav-latest { color: var(--accent); }
.section-topline { border-bottom-color: var(--border); }
.lead-story { border: 1px solid var(--border); }
.lead-story::before { height: 3px; background: var(--bettbit-red); }
.story-card { border-top: 2px solid var(--bettbit-red); }
.meta-category, .story-card-more, .snapshot h3 { color: var(--accent); }
.language-item.is-current { box-shadow: inset 0 -2px 0 var(--bettbit-red); }
:root[data-theme="dark"] .header-search input,
:root[data-theme="dark"] .header-search button { color: var(--navy); }
:root[data-theme="dark"] ::selection { background: #b42525; color: #ffffff; }
:root[data-theme="light"] ::selection { background: #f2b4af; color: #17212b; }
@media (max-width: 680px) {
  .brand-link { gap: 8px; }
  .bettbit-logo { width: 127px; max-height: 42px; }
  .bettbit-logo-edition { padding-left: 8px; font-size: 9px; }
  .header-row { padding: 9px 0; }
}



/* v1.4.0 A — Full Bettbit Branding. Inspired by submitted Bettbit application CSS.
   CSS stays under theme component selectors; never imports Tailwind reset/classes. */
:root {
  --bettbit-red: #fe3231; --bettbit-gold: #e8cc80;
  --accent: #b32525; --accent-strong: #941b1e; --warm: #9a2727;
  --navy: #151a23; --navy-light: #49505b; --ink: #222730; --muted: #5d6872;
  --border: #d8dce1; --surface: #f0f2f4; --white: #fff;
  --page-bg: #fafafb; --header-bg: #fff; --card-bg: #fff;
  --home-band-bg: #f4f5f6; --article-hero-bg: #f1f3f5; --footer-bg: #f2f3f5;
  --footer-border: #d4dade; --nav-text: #333d48; --story-excerpt: #56616c;
  --article-ink: #222830; --article-link: #a51e24; --article-link-hover: #7d181d;
  --code-bg: #edf0f2; --lead-bg: #151e29; --lead-ink: #fff;
  --lead-meta: #d2dce6; --lead-category: #efd68f; --lead-link: #f0d48e;
  --lead-text: #e4e9ef; --lead-hover: #ffddba;
  --badge-bg: #b92d2e; --badge-ink: #fff; --current-ink: #fff;
  --lang-active-bg: #b32525; --lang-active-ink: #fff;
  --search-bg: #f2f4f6; --shadow: 0 12px 26px rgba(5,9,13,.12);
  --reading-width: 790px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #ff6761; --accent-strong: #ff9b93; --warm: #e8cc80;
  --navy: #f4f6f9; --navy-light: #bdcbd5; --ink: #e9eef3; --muted: #aebdc9;
  --border: #2a3640; --surface: #131d26; --white: #0e151b;
  --page-bg: #05090d; --header-bg: #0b1116; --card-bg: #0e151b;
  --home-band-bg: #0b1116; --article-hero-bg: #0e151b; --footer-bg: #0b1116;
  --footer-border: #26333f; --input-border: #677885; --input-placeholder: #a6b6c5;
  --nav-text: #d8e0e8; --story-excerpt: #c0ccd5; --story-separator: #788d9b;
  --snapshot-count: #aebdc9; --article-ink: #e0e8ef;
  --article-link: #ff918a; --article-link-hover: #ffc6c1; --code-bg: #17232d;
  --lead-bg: #121b23; --lead-ink: #f8fbff; --lead-meta: #c0ced8;
  --lead-category: #e8cc80; --lead-link: #e8cc80; --lead-hover: #ffe8b1;
  --lead-text: #dbe4ec; --badge-bg: #dd302f; --badge-ink: #fff;
  --current-ink: #070b10; --lang-active-bg: #b72d29; --lang-active-ink: #fff;
  --search-bg: #131e27; --shadow: 0 12px 32px rgba(0,0,0,.36);
}
/* Bettbit application uses a system sans stack; no external or invented font. */
body, .home-heading, .lead-title, .story-card-title, .snapshot li,
.archive-header h1, .article-title, .article-content, .story-compact h3,
.error-page h1, .article-content h2, .article-content h3, .article-content h4,
.article-content table, .theme-toggle {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body { font-size: 15px; line-height: 1.62; }
.site-header { border-bottom: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.045); }
:root[data-theme="dark"] .site-header { box-shadow: 0 4px 18px rgba(0,0,0,.22); }
.header-row { min-height: 70px; gap: 20px; }
.bettbit-logo { width: 158px; max-height: 52px; }
.bettbit-logo-edition { color: var(--navy-light); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.header-actions { gap: 12px; }
.language-item { border-radius: 9px; padding: 8px 11px; font-size: 11px; transition: border-color .18s, background-color .18s; }
.language-item:hover { border-color: var(--accent); }
.language-item.is-current { box-shadow: none; }
.theme-toggle { padding: 8px 12px; min-height: 38px; font-size: 11px; border-radius: 10px; background: var(--search-bg); }
.header-search { background: var(--search-bg); border: 1px solid var(--border); border-radius: 12px; padding: 0 11px 0 13px; }
.header-search:focus-within { border-color: var(--accent); }
.header-search input { width: 145px; padding: 9px 0; font-size: 12px; }
.category-nav { min-height: 48px; gap: 7px; }
.category-nav a { font-size: 11px; letter-spacing: .028em; text-transform: none; font-weight: 700; padding: 8px 12px; border-radius: 9px; transition: background-color .18s, color .18s; }
.category-nav a:hover { background: var(--surface); color: var(--accent); }
.category-nav .nav-latest { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.main-content { padding-top: 28px; padding-bottom: 48px; }
.section-topline { border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.section-topline h2 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.section-counter { font-size: 11px; }
.lead-story { padding: 28px 30px; border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(145deg, #172632 0%, #0b1116 95%); min-height: 240px; }
.lead-story::before { height: 3px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, #fe3231, #e8cc80); }
.lead-story .meta-category { color: var(--bettbit-gold); }
.lead-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.18; }
.lead-link { color: var(--bettbit-gold); font-weight: 800; }
.story-card { padding: 20px 21px 18px; border: 1px solid var(--border); border-top: 3px solid var(--bettbit-red); border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.035); }
.story-card-title { font-weight: 780; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -.02em; line-height: 1.30; }
.story-card-more { font-weight: 800; }
.story-meta { font-size: 10px; }
.snapshot { border-left: 3px solid var(--bettbit-red); }
.snapshot li { font-size: 15px; line-height: 1.45; font-weight: 680; }
.article-hero { border-top: 2px solid var(--bettbit-red); padding: 28px 20px 23px; }
.article-title { font-weight: 820; font-size: clamp(29px, 3.5vw, 43px); line-height: 1.16; letter-spacing: -.035em; }
.article-content { font-size: 17px; line-height: 1.74; padding-top: 23px; }
.article-content h2 { font-weight: 800; font-size: clamp(23px,2.5vw,28px); }
.article-content h3 { font-weight: 750; }
.article-content blockquote { border-left: 3px solid var(--bettbit-red); border-radius: 0 10px 10px 0; padding: 13px 20px; }
.article-content a { font-weight: 600; }
.article-content img { border-radius: 12px; }
.story-compact { border-left: 3px solid var(--bettbit-red); }
.nav-links .page-numbers { border-radius: 10px; }
.site-footer { border-top: 2px solid var(--bettbit-red); }
.button-link, .wp-block-button__link, .wp-element-button { border-radius: 12px; }
.button-link { background: var(--accent); color: #fff; }
.button-link:hover { background: var(--accent-strong); color: #fff; }
:root[data-theme="dark"] .button-link { background: #cd302e; color: #fff; }
:root[data-theme="dark"] .button-link:hover { background: #fe3231; color: #fff; }
:root[data-theme="dark"] ::selection { background: #a92829; color: #fff; }
@media(max-width:1000px) { .category-nav { gap: 3px; } .header-actions { gap: 7px; } }
@media(max-width:680px) {
  .header-row { min-height: auto; padding: 11px 0; }
  .bettbit-logo { width: 137px; } .category-nav { gap: 4px; }
  .category-nav a { padding: 8px 10px; font-size: 10px; }
  .header-search { width: min(185px, 48%); }
  .header-search input { width: 100%; }
  .lead-story { padding: 22px 20px; min-height: 0; }
  .lead-title { font-size: 26px; }
  .story-card { padding: 17px; }
  .article-content { font-size: 16.5px; }
}
@media(prefers-reduced-motion:reduce) { .language-item, .category-nav a { transition:none; } }



/* v1.4.1: category navigation usability; inherit all existing font and colour tokens. */
.category-nav-shell { display: flex; align-items: center; min-width: 0; position: relative; }
.category-nav-shell .category-nav { flex: 1 1 auto; min-width: 0; gap: 3px; overscroll-behavior-inline: contain; }
/* Maintain native scrollbars when JavaScript is unavailable. */
.js .category-nav-shell .category-nav { scrollbar-width: none; -ms-overflow-style: none; }
.js .category-nav-shell .category-nav::-webkit-scrollbar { display: none; }
.category-nav-arrow { display: none; flex: 0 0 30px; height: 34px; align-items: center; justify-content: center;
  padding: 0; margin: 0 3px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--search-bg); color: var(--nav-text); cursor: pointer; font: inherit; }
.category-nav-arrow span { font-size: 23px; line-height: 1; }
.js .category-nav-shell.has-overflow .category-nav-arrow { display: inline-flex; }
.category-nav-arrow:disabled { opacity: .25; cursor: default; }
.category-nav-arrow:not(:disabled):hover { color: var(--accent); border-color: var(--accent); }
.category-nav-arrow:focus-visible, .category-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media(max-width:680px) {
  /* Mobile remains swipeable; no control buttons consume narrow-screen space. */
  .js .category-nav-shell.has-overflow .category-nav-arrow { display: none; }
}
@media(prefers-reduced-motion:reduce) { .category-nav-shell .category-nav { scroll-behavior: auto; } }
