/*
Theme Name: Reel Spin Fortune Midnight
Template: astra
Text Domain: reelf
Version: 1.0.6
*/

/* Reel Spin Fortune — child theme styles: Astra layout neutralisation, dark
   shell, header with hover dropdowns, footer takeover (the parent white
   credit bar is hidden and the dark theme footer fills the bottom). */

/* Tokens */
:root {
  --rf-paper: #101725;
  --rf-surface: #182032;
  --rf-text: #e8ecf5;
  --rf-muted: #aab3c5;
  --rf-indigo: #3b5bdb;
  --rf-copper: #d9822b;
  --rf-radius: 10px;
  --rf-font-head: "Fraunces", Georgia, serif;
  --rf-font-body: "Source Sans 3", Arial, sans-serif;
  --rf-maxw: 1240px;
}

/* Base */
html, body {
  background: var(--rf-paper);
  color: var(--rf-text);
  font-family: var(--rf-font-body);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rf-font-head);
  color: var(--rf-text);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
a { color: var(--rf-indigo); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--rf-copper); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
li { margin-bottom: 0.35em; }

/* Anti-Astra: neutralise parent layout wrappers */
#content .ast-container, .ast-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}
#primary, .site-main, #main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  margin-inline: auto !important;
}

/* ---- FOOTER TAKEOVER ----------------------------------------------
   The parent Astra footer (white bar + "Powered by Astra" credit) is
   hidden at every known wrapper/element variant. The dark theme footer
   (#rf-site-footer) is the only visible footer. */
.ast-main-header-wrap, #masthead,
.ast-footer-wrap, #colophon, footer.site-footer,
.ast-small-footer-wrap, .ast-small-footer-section-1, .ast-small-footer-section-2,
.ast-footer-widget-area, .footer-adv-overlay, .ast-footer-overlay,
.site-footer-bar, .ast-footer-copyright,
footer#colophon, footer[role="contentinfo"]:not(#rf-site-footer),
.ast-footer-html, .ast-footer-html-1, .ast-footer-html-2,
.site-footer .ast-builder-layout-element,
.site-footer .site-footer-primary-section,
.site-footer .site-footer-bottom,
.site-footer {
  display: none !important;
  background: var(--rf-paper) !important;
}
.site-footer a[href*="wpastra.com"] { display: none !important; }

/* One width for everything: every flow block shares the same edges */
.site-content, .entry-content {
  max-width: var(--rf-maxw);
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}
.rf-wrap, .rf-hero, .rf-sec, .rf-toc, .rf-crumbs, .rf-faq, .rf-links,
.rf-aside, .rf-table-wrap, .rf-fig, .rf-comp, .rf-comp-note, .rf-calc,
.rfb-wrap, .rfb-title, .rfb-lead, .rfb-note {
  max-width: var(--rf-maxw);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-inline: 0;
  box-sizing: border-box;
  width: 100%;
}

/* Site header (theme prints its own; parent masthead is hidden) */
#rf-site-header {
  background: var(--rf-surface);
  border-bottom: 1px solid rgba(232, 236, 245, 0.12);
}
.rf-header-inner {
  max-width: var(--rf-maxw);
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.rf-header-inner > * { min-width: 0; }
.rf-brand { display: flex; flex-direction: column; min-width: 0; flex: 0 0 auto; }
.rf-brand a {
  font-family: var(--rf-font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--rf-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-brand .rf-tagline {
  font-size: 13px;
  color: var(--rf-muted);
  white-space: nowrap;
}
.rf-nav { margin-left: auto; }
.rf-nav > ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
}
.rf-nav > ul > li { position: relative; }
.rf-nav a {
  color: var(--rf-text);
  text-decoration: none;
  padding: 7px 8px;
  border-radius: var(--rf-radius);
  font-size: 13px;
  white-space: nowrap;
  display: block;
}
.rf-nav > ul > li > a { font-weight: 600; }
.rf-nav a:hover, .rf-nav a:focus { background: rgba(59, 91, 219, 0.25); color: var(--rf-text); }

/* Dropdowns: hub children open on hover and keyboard focus */
.rf-nav .rf-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--rf-surface);
  border: 1px solid rgba(232, 236, 245, 0.15);
  border-radius: var(--rf-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  padding: 8px;
  margin: 0;
  list-style: none;
  display: none;
  flex-direction: column;
  z-index: 50;
}
.rf-nav li:hover > .rf-sub,
.rf-nav li:focus-within > .rf-sub { display: flex; }
.rf-nav li:hover::after,
.rf-nav li:focus-within::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}
.rf-nav .rf-sub li { width: 100%; margin-bottom: 0; }
.rf-nav .rf-sub a {
  white-space: normal;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 7px;
}

/* Hamburger button, shown only at narrow widths */
.rf-burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(232, 236, 245, 0.3);
  border-radius: var(--rf-radius);
  color: var(--rf-text);
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}
.rf-nav-open .rf-nav > ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--rf-surface);
  border-bottom: 1px solid rgba(232, 236, 245, 0.15);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
  padding: 10px 20px 16px;
  z-index: 60;
}
.rf-nav-open .rf-nav { position: relative; }
.rf-nav-open .rf-nav .rf-sub {
  position: static;
  display: none;
  box-shadow: none;
  border: 0;
  padding: 0 0 0 14px;
  min-width: 0;
}
.rf-nav-open .rf-nav li:hover > .rf-sub,
.rf-nav-open .rf-nav li:focus-within > .rf-sub,
.rf-nav-open .rf-nav li.rf-open > .rf-sub { display: flex; }
.rf-nav-open .rf-nav li:hover::after,
.rf-nav-open .rf-nav li:focus-within::after { content: none; }

/* Hero: centred composition */
.rf-hero { padding: 44px 0 26px; text-align: center; }
.rf-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  margin: 0 auto 0.35em;
}
.rf-hero .rf-standfirst, .rf-hero p {
  font-size: 19px;
  color: var(--rf-muted);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumbs */
.rf-crumbs {
  font-size: 14px;
  color: var(--rf-muted);
  padding: 18px 0 0;
}
.rf-crumbs a { color: var(--rf-muted); text-decoration: none; }
.rf-crumbs a:hover { color: var(--rf-copper); }
.rf-crumbs .rf-sep, .rf-crumbs span + span::before { content: " › "; color: var(--rf-muted); }
.rf-crumbs > * + *::before { content: " › "; color: var(--rf-muted); }

/* Contents bar */
.rf-toc {
  background: var(--rf-surface);
  border: 1px solid rgba(232, 236, 245, 0.12);
  border-radius: var(--rf-radius);
  padding: 14px 16px;
  margin: 24px auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.rf-toc-title {
  font-family: var(--rf-font-head);
  font-weight: 700;
  font-size: 15px;
  margin: 0 8px 0 0;
  color: var(--rf-muted);
}
.rf-toc a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(59, 91, 219, 0.5);
  border-radius: 999px;
  font-size: 14px;
  color: var(--rf-text);
  text-decoration: none;
}
.rf-toc a:hover { background: rgba(59, 91, 219, 0.3); color: var(--rf-text); }

/* Sections */
.rf-sec { margin: 0 auto 36px; scroll-margin-top: 20px; }
.rf-sec h2 { font-size: 30px; margin-top: 0.2em; }
.rf-sec h3 { font-size: 22px; }

/* Figures */
.rf-fig {
  border: 1px solid rgba(232, 236, 245, 0.15);
  border-radius: var(--rf-radius);
  background: var(--rf-surface);
  padding: 16px;
  margin: 0 auto 36px;
}
.rf-fig svg { display: block; width: 100%; height: auto; }
.rf-fig figcaption {
  font-size: 14px;
  color: var(--rf-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(232, 236, 245, 0.12);
  margin-top: 12px;
}

/* Tables */
.rf-table-wrap {
  overflow-x: auto;
  margin: 0 auto 36px;
  border: 1px solid rgba(232, 236, 245, 0.15);
  border-radius: var(--rf-radius);
  background: var(--rf-surface);
}
.rf-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  min-width: 560px;
}
.rf-table th, .rf-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(232, 236, 245, 0.1);
}
.rf-table thead th {
  font-family: var(--rf-font-head);
  color: var(--rf-text);
  background: rgba(59, 91, 219, 0.2);
}
.rf-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.rf-table td:first-child, .rf-table th:first-child { padding-inline-start: 16px; }

/* Comparison table */
.rf-comp {
  margin: 0 auto 12px;
  border: 1px solid rgba(232, 236, 245, 0.15);
  border-radius: var(--rf-radius);
  background: var(--rf-surface);
  overflow: hidden;
}
.rf-comp table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  min-width: 640px;
}
.rf-comp th, .rf-comp td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(232, 236, 245, 0.1);
}
.rf-comp thead th { background: rgba(59, 91, 219, 0.2); font-family: var(--rf-font-head); }
.rf-comp tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.rf-comp .rf-comp-head th { color: var(--rf-text); }
.rf-comp-note {
  font-size: 14px;
  color: var(--rf-muted);
  margin: 0 auto 36px;
}

/* FAQ */
.rf-faq { margin: 0 auto 10px; }
.rf-faq details {
  background: var(--rf-surface);
  border: 1px solid rgba(232, 236, 245, 0.15);
  border-radius: var(--rf-radius);
  margin-bottom: 10px;
}
.rf-faq summary {
  cursor: pointer;
  font-family: var(--rf-font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--rf-text);
  padding: 14px 44px 14px 16px;
  position: relative;
  list-style: none;
}
.rf-faq summary::-webkit-details-marker { display: none; }
.rf-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--rf-copper);
  font-family: var(--rf-font-body);
}
.rf-faq details[open] summary::after { content: "−"; }
.rf-faq .rf-faq-a {
  padding: 0 16px 14px;
  color: var(--rf-muted);
  font-size: 16px;
}

/* Onward links */
.rf-links { margin: 0 auto 36px; }
.rf-links h2 { font-size: 26px; }
.rf-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rf-links a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--rf-surface);
  border: 1px solid rgba(59, 91, 219, 0.5);
  border-radius: var(--rf-radius);
  color: var(--rf-text);
  text-decoration: none;
  font-size: 15px;
}
.rf-links a:hover { background: rgba(59, 91, 219, 0.3); color: var(--rf-text); }

/* Licence aside */
.rf-aside {
  border-left: 3px solid var(--rf-copper);
  background: rgba(24, 32, 50, 0.7);
  border-radius: 0 var(--rf-radius) var(--rf-radius) 0;
  padding: 14px 18px;
  margin: 0 auto 36px;
  color: var(--rf-muted);
  font-size: 15px;
}
.rf-aside p { margin: 0 0 0.5em; }
.rf-aside p:last-child { margin-bottom: 0; }

/* Board: capsule bars */
.rfb-wrap { margin: 0 auto 12px; }
.rfb-title { font-size: 30px; margin-top: 0.2em; }
.rfb-lead { color: var(--rf-muted); max-width: 70ch; margin-bottom: 18px; }
.rfb-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--rf-surface);
  border: 1px solid rgba(232, 236, 245, 0.15);
  border-radius: var(--rf-radius);
  padding: 16px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
.rfb-rank {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rf-indigo);
  color: #ffffff;
  font-family: var(--rf-font-head);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rfb-main { flex: 1 1 auto; min-width: 0; }
.rfb-name {
  font-family: var(--rf-font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--rf-text);
}
.rfb-offer { color: var(--rf-muted); font-size: 15px; margin: 4px 0 8px; }
.rfb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rfb-chip {
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(59, 91, 219, 0.6);
  border-radius: 999px;
  color: var(--rf-text);
  white-space: nowrap;
}
.rfb-cta { flex: 0 0 auto; }
.rfb-cta a,
a.rfb-cta-btn {
  display: inline-block;
  background: var(--rf-copper);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--rf-radius);
  white-space: nowrap;
  text-align: center;
}
.rfb-cta a:hover, .rfb-cta a:focus,
a.rfb-cta-btn:hover, a.rfb-cta-btn:focus { background: #c06f1c; color: #ffffff; }
.rfb-score {
  flex: 0 0 auto;
  width: 90px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--rf-muted);
}
.rfb-score-track {
  height: 5px;
  border-radius: 3px;
  background: rgba(232, 236, 245, 0.15);
  overflow: hidden;
  margin-bottom: 4px;
}
.rfb-score-fill {
  display: block;
  height: 100%;
  background: var(--rf-indigo);
  border-radius: 3px;
}
.rfb-note { font-size: 14px; color: var(--rf-muted); margin: 0 auto 36px; }

/* Calculator */
.rf-calc {
  background: var(--rf-surface);
  border: 1px solid rgba(232, 236, 245, 0.15);
  border-radius: var(--rf-radius);
  padding: 20px;
  margin: 0 auto 36px;
}
.rf-calc h2, .rf-calc h3 { margin-top: 0; }
.rf-calc label {
  display: block;
  font-size: 14px;
  color: var(--rf-muted);
  margin-bottom: 4px;
}
.rf-calc input[type="number"],
.rf-calc select {
  width: 100%;
  box-sizing: border-box;
  background: var(--rf-paper);
  border: 1px solid rgba(232, 236, 245, 0.25);
  border-radius: var(--rf-radius);
  color: var(--rf-text);
  padding: 10px 12px;
  font-family: var(--rf-font-body);
  font-size: 16px;
  margin-bottom: 12px;
}
.rf-calc input:focus, .rf-calc select:focus {
  outline: 2px solid var(--rf-indigo);
  outline-offset: 1px;
}
.rf-calc .rf-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0 14px;
}
.rf-calc button,
.rf-calc input[type="submit"] {
  background: var(--rf-copper);
  color: #ffffff;
  border: 0;
  border-radius: var(--rf-radius);
  font-family: var(--rf-font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  cursor: pointer;
}
.rf-calc button:hover, .rf-calc button:focus { background: #c06f1c; }
.rf-calc .rf-calc-result {
  background: rgba(59, 91, 219, 0.15);
  border: 1px solid rgba(59, 91, 219, 0.5);
  border-radius: var(--rf-radius);
  padding: 14px 16px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.rf-calc .rf-calc-result strong { font-size: 22px; font-family: var(--rf-font-head); }
.rf-calc .rf-calc-note {
  font-size: 13px;
  color: var(--rf-muted);
  margin-top: 10px;
}

/* Footer (theme's own dark footer) */
#rf-site-footer {
  background: var(--rf-surface);
  border-top: 1px solid rgba(232, 236, 245, 0.12);
  margin-top: 48px;
  position: relative;
  z-index: 5;
}
.rf-footer-inner {
  max-width: var(--rf-maxw);
  margin-inline: auto;
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
  color: var(--rf-muted);
  box-sizing: border-box;
}
.rf-footer-inner a { color: var(--rf-muted); }
.rf-footer-inner a:hover { color: var(--rf-copper); }
.rf-colophon { width: 100%; font-size: 13px; margin: 0; }
.reelf-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
}
.rf-footer-copy { width: 100%; font-size: 13px; color: var(--rf-muted); margin: 0; }

/* Responsive */
@media (max-width: 1500px) {
  .rf-brand .rf-tagline { display: none; }
}
@media (max-width: 1280px) {
  .rf-nav a { padding: 7px 5px; font-size: 12px; }
  .rf-brand a { font-size: 20px; }
}
@media (max-width: 900px) {
  .rf-burger { display: block; }
  .rf-nav { display: none; }
  .rf-nav-open .rf-nav {
    display: block;
    flex: 1 1 100%;
    order: 3;
  }
  .rf-header-inner { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .rf-hero h1 { font-size: 34px; }
  .rf-hero { padding-top: 28px; }
  .rf-sec h2 { font-size: 26px; }
  .rfb-bar { gap: 12px; padding: 14px; }
  .rfb-score { width: 64px; }
}
@media (max-width: 600px) {
  .rf-brand .rf-tagline { display: none; }
  .rfb-bar { flex-wrap: wrap; }
  .rfb-main { flex: 1 1 100%; order: 2; }
  .rfb-rank { order: 1; }
  .rfb-score { order: 3; }
  .rfb-cta { order: 4; flex: 1 1 100%; }
  .rfb-cta a { display: block; width: 100%; box-sizing: border-box; }
  .rf-calc .rf-calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .rf-hero h1 { font-size: 29px; }
  .rf-brand a { font-size: 21px; }
  .rfb-name { font-size: 18px; }
  .rf-table { min-width: 480px; }
}

/* Dark paper onto the parent theme's content shell */
body, #page, .site, #content, #primary, .site-main, #main, .entry-content,
.ast-container, .ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,
.ast-separate-container .comments-count-wrapper, .ast-separate-container .ast-comment-list li.depth-1,
.ast-page-builder-template .entry-header, .entry-header {
	background: var(--rf-paper);
}

/* Headings override */
h1, h2, h3, h4, h5, h6, .entry-content h1, .entry-content h2, .entry-content h3,
.ast-container h1, .ast-container h2, .site-main h1, .site-main h2 {
	color: var(--rf-text) !important;
}

/* Remove the parent theme's duplicate page title above our hero H1 */
.entry-header, .ast-entry-header, .page-header, .entry-title, .ast-single-post .entry-header,
.ast-page-builder-template .entry-header .ast-archive-title {
	display: none !important;
}

/* Shared measure inside the parent shell */
.entry-content > * {
	max-width: var(--rf-maxw);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Print safety */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }