/* EMD Casino Info System – frontend.
   All colours come from CSS variables printed by Theme::css() – change them in Admin → Appearance & Colors. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --radius: 14px; --radius-sm: 8px; --gap: 20px;
  --muted-color: color-mix(in srgb, var(--text-color) 68%, transparent);
  --soft-bg: color-mix(in srgb, var(--text-color) 5%, transparent);
  --tint: color-mix(in srgb, var(--primary-color) 8%, var(--card-background));
  --tint-strong: color-mix(in srgb, var(--primary-color) 16%, var(--card-background));
  --shadow: 0 10px 30px -14px color-mix(in srgb, var(--secondary-color) 45%, transparent);
  --shadow-sm: 0 2px 10px -4px color-mix(in srgb, var(--secondary-color) 30%, transparent);
  --grad: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  --font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--background-color); color: var(--text-color); font: 16px/1.7 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link-color); text-underline-offset: 2px; }
a:hover { color: var(--button-hover-color); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--text-color); font-weight: 700; }
h1 { font-size: clamp(1.55rem, 3vw, 2rem); }
h2 { font-size: clamp(1.25rem, 2.3vw, 1.5rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.15rem); font-weight: 650; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--button-color); color: var(--button-text-color); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: min(900px, var(--container-width)); }
.center { text-align: center; }
.section { padding: 14px 0; }
.page-top { padding-top: 22px; }
.lead { font-size: 1.05rem; color: var(--muted-color); }
.meta { color: var(--muted-color); font-size: .88rem; margin-bottom: .4em; }
.fine { font-size: .8rem; color: var(--muted-color); }

/* ===== Header (coloured) ===== */
.notice-bar { background: var(--accent-color); color: #1b1300; text-align: center; font-size: .84rem; font-weight: 600; padding: 6px 12px; }
.site-header { position: sticky; top: 0; z-index: 50; color: var(--header-text-color);
  background: linear-gradient(100deg, var(--header-background) 0%, color-mix(in srgb, var(--header-background) 72%, var(--primary-color)) 100%);
  box-shadow: 0 4px 18px -8px rgba(0, 0, 0, .45); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color)); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--header-text-color); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.logo:hover { color: var(--header-text-color); }
.logo-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-size: 15px; font-weight: 900; letter-spacing: 0;
  background: var(--accent-color); color: #1b1300; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5); }
.logo-text { color: var(--header-text-color); }
.site-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; color: var(--header-text-color); text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; opacity: .92; transition: background .15s, opacity .15s; }
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, .13); opacity: 1; color: var(--header-text-color); }
.site-nav a[aria-current] { background: rgba(255, 255, 255, .16); opacity: 1; box-shadow: inset 0 -2px 0 var(--accent-color); }

.site-nav .header-btn { padding: 8px 18px; font-size: 14px; background: var(--accent-color); border-color: var(--accent-color); color: #1b1300; box-shadow: 0 6px 16px -8px var(--accent-color); }
.site-nav .header-btn:hover { background: color-mix(in srgb, var(--accent-color) 85%, #fff); border-color: color-mix(in srgb, var(--accent-color) 85%, #fff); color: #1b1300; }
.header-search { display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 30px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.header-search input { border: 0; background: transparent; color: var(--header-text-color); padding: 7px 12px; width: 140px; font: inherit; font-size: .9rem; }
.header-search input::placeholder { color: var(--header-text-color); opacity: .7; }
.header-search input:focus { outline: none; }
.header-search button, .theme-toggle { border: 0; background: transparent; color: var(--header-text-color); padding: 7px 10px; cursor: pointer; display: grid; place-items: center; }
.theme-toggle { border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; width: 36px; height: 36px; padding: 0; }
.nav-toggle { display: none; margin-left: auto; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; border-radius: 2px; background: var(--header-text-color); }
.header-centered .header-inner { flex-direction: column; padding: 14px 20px 10px; gap: 8px; }
.header-centered .site-nav { margin-left: 0; }
.header-minimal .site-nav { display: none; }
.header-minimal .nav-toggle { display: flex; }
.header-minimal.nav-open .site-nav { display: flex; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--button-color); color: var(--button-text-color); border: 2px solid var(--button-color);
  padding: 10px 22px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--button-hover-color); border-color: var(--button-hover-color); color: var(--button-text-color); transform: translateY(-1px); }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-secondary { background: var(--accent-color); border-color: var(--accent-color); color: #1b1300; }
.btn-secondary:hover { background: color-mix(in srgb, var(--accent-color) 85%, #000); border-color: color-mix(in srgb, var(--accent-color) 85%, #000); color: #1b1300; }
.btn-outline { background: transparent; color: var(--text-color); border-color: var(--border-color); }
.btn-outline:hover { background: var(--soft-bg); color: var(--text-color); border-color: var(--primary-color); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--tint-strong); color: var(--secondary-color); }
.tag.muted { background: var(--soft-bg); color: var(--muted-color); }

/* ===== Cards ===== */
.card { background: var(--card-background); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cards-sharp { --radius: 2px; --radius-sm: 2px; }
.cards-elevated .card { border-color: transparent; box-shadow: var(--shadow); }
.cards-bordered .card { box-shadow: none; border-width: 2px; }
.card-body { padding: 16px 18px 18px; }
.card-title { margin: 0 0 6px; font-size: 1.05rem; }
.card-title a { color: var(--text-color); text-decoration: none; }
.card-title a:hover { color: var(--primary-color); }
.content-card { padding: 36px 40px; }

/* ===== Hero (gradient) ===== */
.hero { padding: 22px 0 6px; }
.hero-box { position: relative; overflow: hidden; display: grid; gap: 34px; align-items: center; padding: 42px 44px;
  border-radius: calc(var(--radius) + 4px); background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.hero-box::before, .hero-box::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-box::before { width: 420px; height: 420px; right: -120px; top: -180px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 45%, transparent), transparent 70%); }
.hero-box::after { width: 320px; height: 320px; left: -120px; bottom: -170px; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); }
.hero-box > * { position: relative; z-index: 1; }
.hero-box.has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero-title { margin: 0 0 14px; line-height: 1; text-transform: uppercase; color: #fff; }
.hero-line { display: block; font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 900; letter-spacing: -.01em; }
.hero-line-1 { color: var(--accent-color); }
.hero-line-2 { color: #fff; }
.hero-line + .hero-line { margin-top: 4px; }
.hero-intro { font-size: 1.02rem; color: rgba(255, 255, 255, .88); margin-bottom: 22px; max-width: 620px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-primary { background: var(--accent-color); border-color: var(--accent-color); color: #1b1300; box-shadow: 0 10px 22px -10px var(--accent-color); }
.hero .btn-primary:hover { background: color-mix(in srgb, var(--accent-color) 85%, #fff); border-color: color-mix(in srgb, var(--accent-color) 85%, #fff); }
.hero .btn-secondary { background: #fff; border-color: #fff; color: var(--secondary-color); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, .88); border-color: transparent; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.hero-fine { margin: 12px 0 0; color: rgba(255, 255, 255, .7); }
.hero-chips { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.hero-chips li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 8px 12px; backdrop-filter: blur(4px); }
.hero-chips span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.hero-chips strong { font-size: .9rem; }
.hero-media img { width: 100%; border-radius: var(--radius); object-fit: cover; border: 4px solid rgba(255, 255, 255, .2); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55); }

/* ===== Long-form content ===== */
.prose { overflow-wrap: break-word; }
.prose > :last-child { margin-bottom: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.9em; padding-bottom: 10px; position: relative; scroll-margin-top: 90px; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.prose h3 { margin-top: 1.4em; color: var(--secondary-color); scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; } .prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--primary-color); font-weight: 700; }
.prose strong { color: color-mix(in srgb, var(--text-color) 92%, var(--secondary-color)); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.5em; font-size: .93rem; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color); }
.prose tr > * + * { border-left: 1px solid var(--border-color); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--grad); color: #fff; font-weight: 700; border-left-color: rgba(255, 255, 255, .15); }
.prose tbody tr:nth-child(even) td { background: var(--tint); }
.prose tbody tr:hover td { background: var(--tint-strong); }
.prose tbody td:first-child { font-weight: 600; }
.prose blockquote { border-left: 4px solid var(--primary-color); margin: 0 0 1.5em; padding: 6px 18px; color: var(--muted-color); background: var(--tint); border-radius: 0 10px 10px 0; }
.prose img { border-radius: var(--radius-sm); }
.prose code { background: var(--soft-bg); padding: 1px 6px; border-radius: 4px; }
.prose a.btn { color: var(--button-text-color); text-decoration: none; margin: 4px 0; }
.prose a.btn:hover { color: var(--button-text-color); }
.prose a.btn-secondary, .prose a.btn-secondary:hover { color: #1b1300; }
.prose hr { border: 0; height: 2px; margin: 2em 0; background: linear-gradient(90deg, transparent, var(--border-color), transparent); }
.prose u { text-decoration-color: var(--accent-color); text-decoration-thickness: 2px; }
/* numbered steps */
.prose ol.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 10px; }
.prose ol.steps > li { counter-increment: step; position: relative; margin: 0; padding: 12px 16px 12px 62px; background: var(--tint); border: 1px solid var(--border-color); border-radius: 12px; min-height: 52px; }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 12px -6px var(--primary-color); }
/* check lists */
.prose ul.checklist { list-style: none; padding: 0; }
.prose ul.checklist > li { position: relative; padding-left: 34px; }
.prose ul.checklist > li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: .75rem; font-weight: 900; background: color-mix(in srgb, #1a9a5a 16%, transparent); color: #168a50; }
.prose ul.checklist.callout-warn > li::before { content: "✕"; background: color-mix(in srgb, #d23f3f 14%, transparent); color: #c23434; }
/* callouts */
.callout { border-radius: 12px; padding: 14px 18px; margin: 0 0 1.4em; border: 1px solid; border-left-width: 5px; }
.callout > :last-child { margin-bottom: 0; }
.callout, .callout.callout-info { background: var(--tint); border-color: color-mix(in srgb, var(--primary-color) 35%, transparent); border-left-color: var(--primary-color); }
.callout.callout-warn { background: color-mix(in srgb, var(--accent-color) 12%, var(--card-background)); border-color: color-mix(in srgb, var(--accent-color) 45%, transparent); border-left-color: var(--accent-color); }
.callout.callout-success { background: color-mix(in srgb, #1a9a5a 10%, var(--card-background)); border-color: color-mix(in srgb, #1a9a5a 35%, transparent); border-left-color: #1a9a5a; }
/* feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.6em; }
.feature-card { position: relative; background: var(--card-background); border: 1px solid var(--border-color); border-radius: 14px; padding: 18px 18px 14px; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.feature-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color)); }
.prose .feature-card h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.feature-card p { font-size: .93rem; color: var(--muted-color); margin-bottom: .6em; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; background: var(--tint-strong); }

/* ===== Lists of articles / reviews ===== */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 4px; } .section-head p { margin: 0; color: var(--muted-color); }
.see-all { font-weight: 700; white-space: nowrap; text-decoration: none; }
.card-grid { display: grid; gap: var(--gap); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.article-card:hover { transform: translateY(-3px); }
.article-thumb img { aspect-ratio: 16 / 8.4; object-fit: cover; width: 100%; }
.read-more { font-weight: 700; text-decoration: none; }
.review-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.review-card > p { margin: 0; color: var(--muted-color); }
.review-head { display: flex; gap: 14px; align-items: center; }
.review-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.review-logo.lg { width: 96px; height: 96px; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.rating { color: var(--accent-color); font-weight: 800; }

/* ===== FAQ ===== */
.faq-box { padding: 36px 40px; }
.faq-box > h1, .faq-box > h2 { position: relative; padding-bottom: 10px; }
.faq-box > h1::after, .faq-box > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.faq-list { display: grid; gap: 10px; margin-top: 18px; }
.faq-item { border: 1px solid var(--border-color); border-radius: 12px; background: var(--card-background); transition: background .15s, border-color .15s; }
.faq-item[open] { background: var(--tint); border-color: color-mix(in srgb, var(--primary-color) 35%, var(--border-color)); }
.faq-item summary { cursor: pointer; padding: 14px 54px 14px 18px; font-weight: 650; list-style: none; position: relative; }
.faq-item summary:hover { color: var(--primary-color); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; background: var(--tint-strong); color: var(--primary-color); transition: background .15s, color .15s; }
.faq-item[open] summary::after { content: "–"; background: var(--primary-color); color: #fff; }
.faq-item .prose { padding: 0 18px 14px; color: color-mix(in srgb, var(--text-color) 88%, transparent); }

/* ===== Inner pages ===== */
.page-header { margin-bottom: 20px; }
.page-header h1 { margin-bottom: .3em; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.sidebar-left .with-sidebar { grid-template-columns: 300px minmax(0, 1fr); }
.sidebar-left .with-sidebar .sidebar { order: -1; }
.with-sidebar:not(:has(.sidebar)) { grid-template-columns: minmax(0, 1fr); }
.hero-img { margin-bottom: 20px; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); }
.review-header { display: flex; gap: 20px; padding: 28px; align-items: flex-start; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.pros-cons .card { padding: 20px 24px; } .pros-cons h2 { font-size: 1.1rem; }
.pros-cons ul { margin: 0; padding-left: 1.2em; }
.pros h2 { color: #168a50; } .cons h2 { color: #c23434; }
.related { margin-top: 30px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.share span { font-weight: 700; color: var(--muted-color); }
.share a, .share button { padding: 5px 12px; border: 1px solid var(--border-color); border-radius: 20px; text-decoration: none; color: var(--text-color); font: inherit; font-size: .85rem; background: var(--card-background); cursor: pointer; }
.breadcrumbs { padding-top: 16px; font-size: .86rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted-color); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted-color); text-decoration: none; } .breadcrumbs a:hover { color: var(--link-color); }
.page-top > .container > .page-header, .page-top .main-col > .page-header { background: var(--card-background); padding: 26px 40px; border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 4px solid var(--primary-color); }
.page-top .main-col > .page-header { margin-bottom: 20px; }
.main-col > .card + .card, .main-col > .card + .pros-cons { margin-top: 20px; }
.empty-state { padding: 30px; text-align: center; color: var(--muted-color); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { padding: 7px 13px; border: 1px solid var(--border-color); border-radius: 8px; text-decoration: none; color: var(--text-color); background: var(--card-background); }
.pager span[aria-current] { background: var(--primary-color); color: var(--on-primary-color); border-color: var(--primary-color); }

/* Sidebar */
.sidebar { display: grid; gap: 20px; min-width: 0; }
.sidebar .card { min-width: 0; overflow: hidden; }
.widget { padding: 22px; }
.widget-title { display: block; font-size: 1rem; margin: 0 0 12px; color: var(--secondary-color); }
.input-row { display: flex; gap: 6px; }
.input-row input { width: 100%; }
.input-row input, .search-big input, .newsletter-form input[type=email] { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--background-color); color: var(--text-color); font: inherit; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.link-list a { text-decoration: none; }
.responsible-widget p { font-size: .9rem; color: var(--muted-color); }

/* Search + newsletter */
.search-big { display: flex; gap: 8px; margin-bottom: 22px; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.search-results a { display: flex; gap: 14px; align-items: center; padding: 14px 18px; text-decoration: none; color: var(--text-color); }
.search-results img { width: 96px; height: 60px; object-fit: cover; flex-shrink: 0; border-radius: 8px; }
.search-results small { color: var(--muted-color); }
.newsletter { padding: 32px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--tint-strong), var(--card-background)); }
.newsletter h2 { margin-bottom: 6px; } .newsletter p { margin: 0; color: var(--muted-color); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form .fine { width: 100%; }
.form-msg { width: 100%; margin: 4px 0 0; font-weight: 600; } .form-msg.ok { color: #168a50; } .form-msg.err { color: #c23434; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Footer ===== */
.site-footer { position: relative; margin-top: 26px; padding: 28px 0 24px; font-size: 14.5px; color: var(--footer-text-color);
  background: linear-gradient(160deg, var(--footer-background), color-mix(in srgb, var(--footer-background) 80%, var(--primary-color))); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color)); }
.site-footer a { color: var(--footer-text-color); text-decoration: none; opacity: .88; } .site-footer a:hover { opacity: 1; color: var(--accent-color); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 14px 0 26px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 10px; color: inherit; }
.footer-about p { opacity: .8; max-width: 420px; }
.footer-logo { font-size: 20px; color: var(--footer-text-color) !important; margin-bottom: 8px; }
.footer-bottom { text-align: center; }
.footer-cols + .footer-bottom { border-top: 1px solid color-mix(in srgb, var(--footer-text-color) 15%, transparent); padding-top: 20px; }
.footer-bottom p { margin: 0 0 8px; }
.footer-bottom .sep { opacity: .4; margin: 0 4px; }
.responsible { font-size: .8rem; opacity: .72; }
.age { display: inline-grid; place-items: center; border: 2px solid var(--accent-color); color: var(--accent-color); border-radius: 50%; width: 26px; height: 26px; font-weight: 800; font-size: .66rem; margin-right: 4px; vertical-align: middle; }
.big-404 { font-size: 5rem; font-weight: 900; line-height: 1; margin: 0 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.maintenance { display: grid; place-items: center; min-height: 100vh; }

/* ===== Responsive ===== */
/* Language switcher (header, right after the dark / light button) */
.lang-switch { position: relative; }
.lang-switch > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 8px; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; cursor: pointer; color: var(--header-text-color); font-size: 13px; font-weight: 700; letter-spacing: .02em; user-select: none; transition: background .15s; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover, .lang-switch[open] > summary { background: rgba(255, 255, 255, .13); }
.lang-switch .lang-caret { opacity: .8; transition: transform .15s; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-switch .flag { width: 22px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); flex: none; }
.lang-switch .flag-emoji, .lang-switch .flag-none { font-size: 18px; line-height: 1; box-shadow: none; width: auto; }
.site-nav .lang-menu, .lang-menu { display: block; position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; max-height: min(70vh, 460px); overflow-y: auto; list-style: none; margin: 0; padding: 6px;
  background: var(--card-background); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow); z-index: 60; }
.site-nav .lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-color); text-decoration: none; font-size: 14px; font-weight: 600; opacity: 1; }
.site-nav .lang-menu a:hover { background: var(--soft-bg); color: var(--text-color); }
.site-nav .lang-menu a.is-current { background: var(--tint-strong); box-shadow: none; }
.site-nav .lang-menu a.is-current::after { content: "✓"; margin-inline-start: auto; color: var(--primary-color); }

/* Right-to-left languages (Urdu, Arabic, Persian, Hebrew …) */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, var(--font); }
[dir="rtl"] .site-nav, [dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .header-centered .site-nav { margin-right: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol, [dir="rtl"] .pros-cons ul { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; }
[dir="rtl"] .prose tr > * + * { border-left: 0; border-right: 1px solid var(--border-color); }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 4px solid var(--primary-color); border-radius: 10px 0 0 10px; }
[dir="rtl"] .prose h2::after, [dir="rtl"] .faq-box > h1::after, [dir="rtl"] .faq-box > h2::after { left: auto; right: 0; }
[dir="rtl"] .prose ul.checklist > li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .prose ul.checklist > li::before { left: auto; right: 0; }
[dir="rtl"] .callout { border-left-width: 1px; border-right-width: 5px; }
[dir="rtl"] .callout, [dir="rtl"] .callout.callout-info { border-right-color: var(--primary-color); }
[dir="rtl"] .callout.callout-warn { border-right-color: var(--accent-color); }
[dir="rtl"] .callout.callout-success { border-right-color: #1a9a5a; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 14px; }
[dir="rtl"] .breadcrumbs li + li::before { content: "‹"; margin-right: 0; margin-left: 6px; }
[dir="rtl"] .age { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .read-more .arrow, [dir="rtl"] .see-all { unicode-bidi: plaintext; }
[dir="rtl"] .read-more .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .skip-link { left: auto; right: -999px; }
[dir="rtl"] .skip-link:focus { left: auto; right: 8px; }
[dir="rtl"] .hp { left: auto; right: -10000px; }
html[dir="rtl"] { overflow-x: hidden; }

@media (max-width: 960px) {
  .with-sidebar, .sidebar-left .with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sidebar-left .with-sidebar .sidebar { order: 0; }
  .card-grid.three, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-box.has-image { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-inner { min-height: 62px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-background); border-top: 1px solid rgba(255, 255, 255, .12);
    flex-direction: column; align-items: stretch; padding: 10px 14px 16px; margin: 0; gap: 8px; box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .5); }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a:not(.btn) { border-radius: 10px; padding: 11px 14px; }
  .site-nav .header-btn { width: 100%; padding: 11px 18px; }
  .header-search { width: 100%; } .header-search input { width: 100%; }
  .header-centered .header-inner { flex-direction: row; padding: 0 20px; }
  .theme-toggle { align-self: flex-start; }
  .lang-switch { align-self: stretch; }
  .lang-switch > summary { width: 100%; height: 42px; border-radius: 10px; justify-content: flex-start; font-size: 15px; }
  .lang-switch > summary .lang-caret { margin-inline-start: auto; }
  .site-nav .lang-menu { position: static; margin-top: 8px; max-height: none; box-shadow: none; }
}
@media (max-width: 768px) {
  .content-card, .faq-box, .newsletter { padding: 24px 18px; }
  .hero-box { padding: 26px 20px; gap: 22px; }
  .page-top > .container > .page-header, .page-top .main-col > .page-header { padding: 22px 18px; }
  .container { padding: 0 12px; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .card-grid.three, .pros-cons, .newsletter, .feature-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .review-header { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr; }
  .search-big, .input-row { flex-direction: column; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .hero-chips { grid-template-columns: 1fr 1fr; }
  .logo { font-size: 19px; } .logo-mark { width: 36px; height: 36px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
