/*!
Theme Name: Casino Review Finders - Kadence Child
Theme URI: https://casinoreviewfinders.com/
Description: A lightweight Kadence child theme that recreates the Casino Review Finders Airo navigation, footer, and guide/single-post design while keeping Elementor Free compatibility.
Author: Casino Review Finders
Template: kadence
Version: 1.0.1
Text Domain: crf-kadence
Requires at least: 6.3
Requires PHP: 7.4
*/

:root {
  --crf-bg: #1a0a2e;
  --crf-fg: #f5f5f5;
  --crf-card: #2a1a42;
  --crf-card-2: #2e204c;
  --crf-primary: #ffd900;
  --crf-primary-fg: #575757;
  --crf-secondary: #50c2f7;
  --crf-muted: #a79ac1;
  --crf-border: #3e2b5f;
  --crf-success: #10b981;
  --crf-danger: #ef4444;
  --crf-header-height: 80px;
  --crf-radius: 8px;
  --crf-radius-lg: 16px;
  --crf-max: 1280px;
  --crf-article: 768px;
  --crf-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --crf-font-heading: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------
   Base / Kadence normalization
   --------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body,
body.custom-background,
#wrapper,
#inner-wrap,
.site,
.site-main {
  background: var(--crf-bg) !important;
  color: var(--crf-fg);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--crf-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.crf-menu-open {
  overflow: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--crf-primary);
}

a:hover,
a:focus {
  color: var(--crf-secondary);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: var(--crf-font-heading) !important;
}

#inner-wrap {
  width: 100%;
  min-height: 65vh;
}

/* Preserve a clear keyboard focus state. */
.crf-site-header a:focus-visible,
.crf-site-header button:focus-visible,
.crf-site-footer a:focus-visible,
.crf-entry-content a:focus-visible,
.crf-entry-content summary:focus-visible {
  outline: 2px solid var(--crf-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   Header / Navigation - based on Airo Header.tsx
   --------------------------------------------------------- */
.crf-site-header {
  position: fixed;
  z-index: 9998;
  top: 0;
  right: 0;
  left: 0;
  height: var(--crf-header-height);
  border-bottom: 1px solid transparent;
  background: rgba(26, 10, 46, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.crf-site-header.is-scrolled,
body.crf-menu-open .crf-site-header {
  border-bottom-color: rgba(62, 43, 95, 0.45);
  background: rgba(26, 10, 46, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

body.admin-bar .crf-site-header {
  top: 32px;
}

.crf-header-inner {
  width: min(100% - 32px, var(--crf-max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.crf-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  font-family: var(--crf-font-heading);
}

.crf-brand:hover,
.crf-brand:focus {
  color: inherit;
}

.crf-brand-chip {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  background: var(--crf-primary);
  color: var(--crf-primary-fg);
  font: 700 14px/1 var(--crf-font-heading);
  box-shadow: 0 0 12px rgba(255, 217, 0, .5);
}

.crf-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  white-space: nowrap;
}

.crf-brand-main {
  color: var(--crf-primary);
  font: 700 18px/1.05 var(--crf-font-heading);
  letter-spacing: .025em;
}

.crf-brand-sub {
  margin-top: 2px;
  color: var(--crf-secondary);
  font: 600 13px/1.05 var(--crf-font-heading);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.crf-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.crf-nav-list,
.crf-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crf-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.crf-nav-list > li {
  margin: 0;
  padding: 0;
}

.crf-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--crf-muted);
  text-decoration: none;
  font: 500 14px/1 var(--crf-font-heading);
  letter-spacing: .05em;
  white-space: nowrap;
  transition: color .18s ease, transform .18s ease, background-color .18s ease;
}

.crf-nav-list > li > a:hover,
.crf-nav-list > li.current-menu-item > a,
.crf-nav-list > li.current_page_item > a,
.crf-nav-list > li.current-menu-ancestor > a {
  color: var(--crf-primary);
}

/* Final navigation item is the Airo "EXPLORE OFFERS" CTA. */
.crf-nav-list > li:last-child > a {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--crf-primary);
  color: var(--crf-primary-fg) !important;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 0 16px rgba(255, 217, 0, .35);
}

.crf-nav-list > li:last-child > a:hover,
.crf-nav-list > li:last-child > a:focus-visible {
  transform: translateY(-1px);
  background: #ffe128;
}

.crf-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--crf-primary);
  cursor: pointer;
}

.crf-menu-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

.crf-menu-toggle .crf-icon-close {
  display: none;
}

.crf-menu-toggle[aria-expanded="true"] .crf-icon-menu {
  display: none;
}

.crf-menu-toggle[aria-expanded="true"] .crf-icon-close {
  display: block;
}

.crf-mobile-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  max-height: calc(100vh - var(--crf-header-height));
  overflow-y: auto;
  border-top: 1px solid rgba(62, 43, 95, .35);
  background: var(--crf-bg);
  box-shadow: 0 18px 35px rgba(0,0,0,.35);
}

.crf-mobile-panel.is-open {
  display: block;
}

.crf-mobile-nav {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
  padding: 16px 0 22px;
}

.crf-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crf-mobile-nav-list > li > a {
  display: block;
  padding: 13px 12px;
  border-radius: 8px;
  color: var(--crf-muted);
  text-decoration: none;
  font: 500 16px/1.2 var(--crf-font-heading);
  letter-spacing: .05em;
}

.crf-mobile-nav-list > li > a:hover,
.crf-mobile-nav-list > li.current-menu-item > a,
.crf-mobile-nav-list > li.current_page_item > a {
  color: var(--crf-primary);
  background: rgba(255,255,255,.025);
}

.crf-mobile-nav-list > li:last-child > a {
  margin-top: 10px;
  padding: 14px 16px;
  text-align: center;
  color: var(--crf-primary-fg) !important;
  background: var(--crf-primary);
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 0 16px rgba(255, 217, 0, .35);
}

/* ---------------------------------------------------------
   Single post / Guides
   --------------------------------------------------------- */
body.single-post #inner-wrap {
  padding-top: 0;
}

.crf-single-post {
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 96px;
  background: var(--crf-bg);
}

.crf-post-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}

.crf-post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,217,0,.07) 0%, transparent 70%);
}

.crf-article-shell {
  position: relative;
  width: min(100% - 32px, var(--crf-article));
  margin-inline: auto;
}

.crf-breadcrumbs {
  margin: 0 0 32px;
  color: var(--crf-muted);
  font: 600 12px/1.5 var(--crf-font-heading);
  letter-spacing: .02em;
}

.crf-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crf-breadcrumbs a {
  color: var(--crf-muted);
  text-decoration: none;
}

.crf-breadcrumbs a:hover,
.crf-breadcrumbs a:focus {
  color: var(--crf-primary);
}

.crf-breadcrumb-separator {
  opacity: .4;
}

.crf-breadcrumb-current {
  color: var(--crf-secondary);
}

.crf-section-label,
.crf-post-type-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--crf-secondary);
  font: 600 12px/1.2 var(--crf-font-heading);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.crf-section-label::before,
.crf-post-type-label::before {
  content: "";
  width: 40px;
  height: 4px;
  flex: 0 0 40px;
  border-radius: 999px;
  background: var(--crf-primary);
}

.crf-post-title {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--crf-fg);
  font: 700 clamp(2.35rem, 5.4vw, 3rem)/1.05 var(--crf-font-heading) !important;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.crf-post-intro {
  max-width: 672px;
  margin: 0;
  color: var(--crf-muted);
  font-size: 18px;
  line-height: 1.7;
}

.crf-post-content-wrap {
  width: min(100% - 32px, var(--crf-article));
  margin-inline: auto;
}

.crf-entry-content {
  color: var(--crf-muted);
  font: 400 16px/1.75 var(--crf-font-body);
}

.crf-entry-content > *:first-child {
  margin-top: 0;
}

.crf-entry-content > *:last-child {
  margin-bottom: 0;
}

.crf-entry-content p {
  margin: 0 0 20px;
}

.crf-entry-content h2,
.crf-entry-content h3,
.crf-entry-content h4,
.crf-entry-content h5,
.crf-entry-content h6 {
  color: var(--crf-fg);
  scroll-margin-top: 110px;
}

.crf-entry-content h2 {
  position: relative;
  margin: 64px 0 16px;
  padding-top: 20px;
  font: 700 clamp(1.65rem, 3vw, 1.875rem)/1.22 var(--crf-font-heading) !important;
  letter-spacing: -.01em;
}

/* Gives ordinary editor-created H2s the same visual rhythm as Airo sections. */
.crf-entry-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--crf-primary);
}

.crf-entry-content .crf-section-label + h2 {
  margin-top: 0;
  padding-top: 0;
}

.crf-entry-content .crf-section-label + h2::before {
  display: none;
}

.crf-entry-content h3 {
  margin: 40px 0 12px;
  font: 700 clamp(1.25rem, 2.2vw, 1.5rem)/1.3 var(--crf-font-heading) !important;
}

.crf-entry-content h4 {
  margin: 30px 0 10px;
  font: 600 1.125rem/1.35 var(--crf-font-heading) !important;
}

.crf-entry-content h5,
.crf-entry-content h6 {
  margin: 26px 0 8px;
  font-weight: 700;
}

.crf-entry-content a {
  color: var(--crf-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.crf-entry-content a:hover,
.crf-entry-content a:focus {
  color: var(--crf-secondary);
  text-decoration: none;
}

.crf-entry-content strong,
.crf-entry-content b {
  color: var(--crf-fg);
  font-weight: 600;
}

.crf-entry-content ul,
.crf-entry-content ol {
  margin: 22px 0 24px;
  padding-left: 1.5rem;
}

.crf-entry-content li {
  margin: 0 0 9px;
  padding-left: 3px;
}

.crf-entry-content li::marker {
  color: var(--crf-primary);
}

.crf-entry-content blockquote,
.crf-callout {
  margin: 32px 0;
  padding: 24px 26px;
  border: 1px solid rgba(255,217,0,.2);
  border-left: 3px solid var(--crf-primary);
  border-radius: 16px;
  background: var(--crf-card);
  color: var(--crf-muted);
}

.crf-entry-content blockquote p:last-child,
.crf-callout > *:last-child {
  margin-bottom: 0;
}

.crf-card,
.crf-entry-content .wp-block-group.crf-card,
.crf-entry-content .wp-block-columns.crf-card {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(62,43,95,.65);
  border-radius: 16px;
  background: var(--crf-card);
}

.crf-note,
.crf-responsible-note {
  border: 1px solid rgba(62,43,95,.45);
  border-radius: 12px;
  background: rgba(46,32,76,.4);
}

.crf-note {
  margin: 28px 0;
  padding: 20px;
}

.crf-entry-content img,
.crf-entry-content figure img {
  display: block;
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
}

.crf-entry-content figure {
  margin: 28px 0;
}

.crf-entry-content figcaption {
  margin-top: 9px;
  color: rgba(167,154,193,.78);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.crf-entry-content .wp-block-image,
.crf-entry-content .wp-block-embed,
.crf-entry-content .wp-block-video {
  margin-top: 30px;
  margin-bottom: 30px;
}

.crf-entry-content table {
  width: 100%;
  margin: 28px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(62,43,95,.8);
  border-radius: 12px;
  background: var(--crf-card);
  color: var(--crf-muted);
  font-size: 14px;
}

.crf-entry-content th,
.crf-entry-content td {
  padding: 13px 15px;
  border-right: 1px solid rgba(62,43,95,.65);
  border-bottom: 1px solid rgba(62,43,95,.65);
  text-align: left;
  vertical-align: top;
}

.crf-entry-content th:last-child,
.crf-entry-content td:last-child {
  border-right: 0;
}

.crf-entry-content tr:last-child td {
  border-bottom: 0;
}

.crf-entry-content th {
  color: var(--crf-fg);
  background: rgba(46,32,76,.72);
  font: 700 14px/1.4 var(--crf-font-heading);
}

.crf-entry-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.crf-entry-content .wp-block-table table {
  min-width: 560px;
}

.crf-entry-content code {
  padding: .15em .38em;
  border-radius: 4px;
  background: var(--crf-card-2);
  color: var(--crf-fg);
  font-size: .9em;
}

.crf-entry-content pre {
  max-width: 100%;
  margin: 28px 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(62,43,95,.7);
  border-radius: 12px;
  background: var(--crf-card-2);
  color: var(--crf-fg);
}

.crf-entry-content pre code {
  padding: 0;
  background: none;
}

/* Native HTML / Gutenberg Details block becomes an Airo-like FAQ card. */
.crf-entry-content details,
.crf-entry-content .wp-block-details {
  margin: 14px 0;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(62,43,95,.65);
  border-radius: 16px;
  background: var(--crf-card);
}

.crf-entry-content details summary,
.crf-entry-content .wp-block-details summary {
  position: relative;
  padding: 20px 34px 20px 0;
  color: var(--crf-fg);
  cursor: pointer;
  list-style: none;
  font: 700 16px/1.35 var(--crf-font-heading);
}

.crf-entry-content details summary::-webkit-details-marker {
  display: none;
}

.crf-entry-content details summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--crf-primary);
  font: 600 24px/1 var(--crf-font-heading);
}

.crf-entry-content details[open] summary::after {
  content: "−";
}

.crf-entry-content details > :not(summary) {
  margin-bottom: 20px;
}

.crf-button,
.crf-entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--crf-primary);
  color: var(--crf-primary-fg) !important;
  text-decoration: none !important;
  font: 700 14px/1.2 var(--crf-font-heading);
  letter-spacing: .06em;
  box-shadow: 0 0 16px rgba(255,217,0,.25);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.crf-button:hover,
.crf-button:focus-visible,
.crf-entry-content .wp-block-button__link:hover,
.crf-entry-content .wp-block-button__link:focus-visible {
  transform: translateY(-1px);
  background: #ffe128;
  box-shadow: 0 0 22px rgba(255,217,0,.32);
}

.crf-responsible-note {
  width: min(100% - 32px, var(--crf-article));
  margin: 64px auto 0;
  padding: 20px;
  color: var(--crf-muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.crf-responsible-note p {
  margin: 0;
}

.crf-responsible-note strong {
  color: var(--crf-primary);
}

.crf-responsible-note a {
  color: var(--crf-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crf-page-links {
  width: min(100% - 32px, var(--crf-article));
  margin: 40px auto 0;
  color: var(--crf-muted);
  font-size: 14px;
}

.crf-page-links a {
  color: var(--crf-secondary);
}

/* ---------------------------------------------------------
   Footer - Airo global footer
   --------------------------------------------------------- */
.crf-site-footer {
  border-top: 1px solid rgba(62,43,95,.35);
  background: var(--crf-card);
  color: var(--crf-muted);
}

.crf-footer-inner {
  width: min(100% - 32px, var(--crf-max));
  margin-inline: auto;
  padding: 40px 0;
}

.crf-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.crf-footer-brand .crf-brand-chip {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  box-shadow: none;
  font-size: 12px;
}

.crf-footer-brand .crf-brand-main {
  font-size: 14px;
}

.crf-footer-brand .crf-brand-sub {
  font-size: 12px;
}

.crf-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.crf-footer-nav a {
  color: var(--crf-muted);
  text-decoration: none;
  font: 500 14px/1.4 var(--crf-font-heading);
}

.crf-footer-nav a:hover,
.crf-footer-nav a:focus {
  color: var(--crf-primary);
}

.crf-footer-divider {
  width: 100%;
  height: 1px;
  margin: 0 0 24px;
  background: rgba(62,43,95,.45);
}

.crf-footer-legal {
  max-width: 768px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--crf-muted);
  font-size: 12px;
  line-height: 1.65;
}

.crf-footer-legal p {
  margin: 0 0 8px;
}

.crf-footer-legal p:last-child {
  margin-bottom: 0;
}

.crf-footer-legal strong {
  color: var(--crf-primary);
  font: 700 14px/1 var(--crf-font-heading);
}

.crf-footer-legal a {
  color: var(--crf-muted);
  text-decoration: underline;
}

.crf-footer-legal a:hover,
.crf-footer-legal a:focus {
  color: var(--crf-primary);
}

.crf-footer-copy {
  margin: 0;
  text-align: center;
  color: rgba(167,154,193,.55);
  font-size: 12px;
  line-height: 1.6;
}

.crf-footer-copy a {
  color: inherit;
  text-decoration: none;
}

.crf-footer-copy a:hover,
.crf-footer-copy a:focus {
  color: var(--crf-primary);
}

/* ---------------------------------------------------------
   Elementor Free compatibility
   --------------------------------------------------------- */
body.elementor-page .site-main,
body.elementor-page #inner-wrap,
.elementor-location-single,
.elementor-location-archive {
  background: var(--crf-bg);
}

.elementor-widget-html img {
  max-width: 100%;
  height: auto;
}

/* Prevent Kadence page title UI from unexpectedly appearing above Elementor pages. */
body.elementor-page .entry-hero-container-inner,
body.elementor-page .entry-hero-container-inner .entry-header {
  max-width: 100%;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1079px) {
  :root {
    --crf-header-height: 64px;
  }

  .crf-site-header {
    height: var(--crf-header-height);
  }

  .crf-desktop-nav {
    display: none;
  }

  .crf-menu-toggle {
    display: inline-flex;
  }

  .crf-brand-main {
    font-size: 16px;
  }

  .crf-brand-sub {
    font-size: 12px;
  }

  .crf-single-post {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .crf-post-hero {
    padding-top: 52px;
    padding-bottom: 56px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .crf-site-header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  .crf-header-inner,
  .crf-footer-inner,
  .crf-article-shell,
  .crf-post-content-wrap,
  .crf-responsible-note,
  .crf-page-links {
    width: min(100% - 32px, var(--crf-article));
  }

  .crf-post-hero {
    padding-top: 48px;
    padding-bottom: 50px;
  }

  .crf-breadcrumbs {
    margin-bottom: 28px;
  }

  .crf-post-title {
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
  }

  .crf-post-intro {
    font-size: 16px;
  }

  .crf-entry-content h2 {
    margin-top: 54px;
  }

  .crf-card,
  .crf-entry-content blockquote,
  .crf-callout {
    padding: 20px;
  }

  .crf-footer-top {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .crf-footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .crf-brand-chip {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .crf-post-hero {
    padding-top: 42px;
  }

  .crf-entry-content {
    font-size: 15.5px;
  }

  .crf-entry-content th,
  .crf-entry-content td {
    padding: 11px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------------------------------------------------
   Guide component fidelity patch v1.0.1
   Keeps existing guide HTML compatible while matching Airo
   card spacing/typography more closely.
   --------------------------------------------------------- */

/* Generic guide cards: reset article heading rhythm inside cards. */
.crf-entry-content .crf-card {
  margin: 20px 0;
  padding: 24px;
  border: 1px solid rgba(62,43,95,.40);
  border-radius: 16px;
  background: var(--crf-card);
}

.crf-entry-content .crf-card > :first-child { margin-top: 0; }
.crf-entry-content .crf-card > :last-child { margin-bottom: 0; }

.crf-entry-content .crf-card h2,
.crf-entry-content .crf-card h3,
.crf-entry-content .crf-card h4 {
  position: static;
  padding-top: 0;
  color: var(--crf-fg);
}

.crf-entry-content .crf-card h2::before,
.crf-entry-content .crf-card h3::before,
.crf-entry-content .crf-card h4::before {
  display: none !important;
  content: none !important;
}

.crf-entry-content .crf-card h2 {
  margin: 0 0 12px;
  font: 700 20px/1.3 var(--crf-font-heading) !important;
  letter-spacing: 0;
}

.crf-entry-content .crf-card h3 {
  margin: 0 0 6px;
  font: 700 15px/1.35 var(--crf-font-heading) !important;
}

.crf-entry-content .crf-card p {
  margin: 0 0 12px;
}

.crf-entry-content .crf-card p:last-child {
  margin-bottom: 0;
}

/* Exact Airo numbered boxes used by How to Choose a Casino. */
.crf-entry-content section[aria-label="Step-by-step guide"] {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 48px;
}

.crf-entry-content section[aria-label="Step-by-step guide"] > .crf-card {
  margin: 0;
}

.crf-entry-content .crf-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.crf-entry-content .crf-step-number {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--crf-primary);
  font: 700 24px/1 var(--crf-font-heading);
  letter-spacing: 0;
}

.crf-entry-content .crf-step > div {
  min-width: 0;
  flex: 1 1 auto;
}

.crf-entry-content .crf-step h2 {
  margin: 0 0 8px;
  padding: 0;
  color: var(--crf-fg);
  font: 700 18px/1.3 var(--crf-font-heading) !important;
}

.crf-entry-content .crf-step h2::before {
  display: none !important;
  content: none !important;
}

.crf-entry-content .crf-step p {
  margin: 0;
  color: var(--crf-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Red flags card. */
.crf-entry-content .crf-red-flags {
  margin: 0 0 48px;
  padding: 24px;
  border-color: rgba(239,68,68,.35);
}

.crf-entry-content .crf-red-flags h2 {
  margin: 0 0 16px;
  padding: 0;
  font: 700 20px/1.3 var(--crf-font-heading) !important;
}

.crf-entry-content .crf-red-flags h2::before {
  display: none !important;
  content: none !important;
}

.crf-entry-content .crf-red-flags ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crf-entry-content .crf-red-flags li {
  position: relative;
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--crf-muted);
  font-size: 14px;
  line-height: 1.55;
}

.crf-entry-content .crf-red-flags li::before {
  content: "✕";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--crf-danger);
  font-size: 13px;
  line-height: 1.55;
}

.crf-entry-content .crf-red-flags li::marker { content: ""; }

/* Centered Airo CTA card. */
.crf-entry-content .crf-cta {
  margin: 0 0 48px;
  padding: 32px;
  border-color: rgba(255,217,0,.30);
  text-align: center;
}

.crf-entry-content .crf-cta h2 {
  margin: 0 0 12px;
  padding: 0;
  font: 700 24px/1.25 var(--crf-font-heading) !important;
}

.crf-entry-content .crf-cta h2::before {
  display: none !important;
  content: none !important;
}

.crf-entry-content .crf-cta p {
  margin: 0 0 24px;
  color: var(--crf-muted);
  font-size: 14px;
  line-height: 1.65;
}

.crf-entry-content .crf-cta p:last-child {
  margin-bottom: 0;
}

.crf-entry-content .crf-cta .crf-button {
  padding-inline: 28px;
}

/* Responsible-gambling / small-note box inside post content. */
.crf-entry-content .crf-note {
  margin: 0 0 36px;
  padding: 20px;
  border: 1px solid rgba(62,43,95,.30);
  border-radius: 16px;
  background: rgba(46,32,76,.72);
  color: var(--crf-muted);
  font-size: 12px;
  line-height: 1.65;
}

.crf-entry-content .crf-note p { margin: 0; }
.crf-entry-content .crf-note strong { color: var(--crf-fg); }

/* FAQ wrapper used in the earlier generated guide HTML. */
.crf-entry-content .crf-faq {
  margin: 0 0 40px;
}

.crf-entry-content .crf-faq details {
  margin: 0 0 14px;
}

.crf-entry-content .crf-faq details:last-child {
  margin-bottom: 0;
}

/* Previous/next guide links generated in earlier HTML. */
.crf-entry-content .crf-post-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 0;
}

.crf-entry-content .crf-post-navigation a {
  font: 600 14px/1.45 var(--crf-font-heading);
}

/* Prevent the normal article H2 decoration from leaking into special boxes. */
.crf-entry-content .crf-red-flags h2,
.crf-entry-content .crf-cta h2,
.crf-entry-content .crf-step h2 {
  scroll-margin-top: 110px;
}

@media (max-width: 767px) {
  .crf-entry-content .crf-card {
    padding: 20px;
  }

  .crf-entry-content .crf-step {
    gap: 14px;
  }

  .crf-entry-content .crf-step-number {
    font-size: 21px;
  }

  .crf-entry-content .crf-step h2 {
    font-size: 17px !important;
  }

  .crf-entry-content .crf-cta {
    padding: 26px 20px;
  }

  .crf-entry-content .crf-post-navigation {
    flex-direction: column;
    align-items: flex-start;
  }
}
