@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

.archive-shortcode-button__link {
  background-color: var(--archive-sc-bg, #3958d9);
  color: var(--archive-sc-fg, #fff);
}

/* Entry content: styles moved from removed WP/utility classes */
.entry-content > p > span[itemtype*="ImageObject"] > img,
.entry-content p > span[itemtype*="ImageObject"] > img,
.entry-content > p > a > span[itemtype*="ImageObject"] > img,
.entry-content p > a > span[itemtype*="ImageObject"] > img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin: 0 auto 1rem;
  clear: both;
  --ec-border: #ddd;
  --ec-head-bg: #021969;
  --ec-head-fg: #fff;
  --ec-cell-pad: 0.5rem;
}

.entry-content table thead th,
.entry-content table thead td {
  background-color: var(--ec-head-bg);
  color: var(--ec-head-fg);
  font-weight: 700;
  padding: var(--ec-cell-pad);
  text-align: left;
  vertical-align: middle;
  border: 1px solid var(--ec-border);
}

.entry-content table tbody td,
.entry-content table tbody th {
  padding: var(--ec-cell-pad);
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--ec-border);
}

.entry-content table tbody tr:nth-child(odd) > * {
  background-color: #fff;
}

.entry-content table tbody tr:nth-child(even) > * {
  background-color: #f3f3f6;
}

.entry-content > ul > li:has(> ul) {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.entry-content > ul > li > ul {
  list-style: disc;
  margin: 0.35em 0 0.5em;
  padding-left: 1.25em;
}

/* Pros / cons block (replaces expert-review pluses/minuses) */
.content-pros-cons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.content-pros-cons > div {
  flex: 1 1 220px;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
}

.content-pros-cons > div:first-child {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.content-pros-cons > div:last-child {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.content-pros-cons ul {
  margin: 0;
  padding-left: 1.15rem;
}

.content-pros-cons li + li {
  margin-top: 0.35em;
}

/* FAQ accordion (replaces expert-review-faq) */
.faq-container {
  margin: 1.5rem 0;
}

.faq-container > h2:first-child {
  margin-bottom: 0.75rem;
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.85rem 1rem;
  background: #f5f5f8;
  user-select: none;
}

.faq-item.is-open .faq-question {
  background: #e8ecf8;
}

.faq-question h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.faq-arrow {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-arrow {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  padding: 0 1rem;
}

.faq-item.is-open .faq-answer {
  max-height: 3200px;
  padding: 0.75rem 1rem 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.entry-content ul ul li > p {
  margin: 0;
}

/* Header main nav: sub-menus (e.g. BD) are display:none in theme without a :hover rule */
@media (min-width: 992px) {
  .main-navigation ul.menu > li.menu-item-has-children {
    position: relative;
  }
  .main-navigation ul.menu > li.menu-item-has-children:hover > .sub-menu,
  .main-navigation ul.menu > li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }
}

/* Mobile: when burger menu is open, show nested items (no hover on touch) */
@media (max-width: 991px) {
  body.archive-menu-open .main-navigation ul li .sub-menu {
    display: block;
    position: static;
    left: auto;
    margin: 0.25rem 0 0.5rem 0.75rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    z-index: auto;
  }
  body.archive-menu-open .main-navigation ul li .sub-menu li > a,
  body.archive-menu-open .main-navigation ul li .sub-menu li > span {
    padding: 0.5rem 0.75rem;
    white-space: normal;
  }
}

/* === Glory archive: modern iGaming affiliate (mobile-first, light casino) === */
body.glory-archive-theme {
  --gc-ink: #0f1733;
  --gc-ink-soft: #3d4a6f;
  --gc-surface: #f4f6fb;
  --gc-surface-2: #ffffff;
  --gc-line: rgba(15, 23, 51, 0.08);
  --gc-accent: #2a4bff;
  --gc-accent-2: #6b21c7;
  --gc-hot: #e11d48;
  --gc-glow: 0 12px 40px rgba(26, 54, 180, 0.12);
  --gc-radius: 14px;
  --gc-radius-sm: 10px;
  --gc-content-max: 910px;
  --gc-title-max: 1175px;
  --gc-header-h: 56px;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--gc-ink-soft);
  background-color: var(--gc-surface);
  background-image:
    radial-gradient(1200px 600px at 50% -8%, rgba(90, 110, 255, 0.14), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(225, 29, 72, 0.06), transparent 50%);
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  body.glory-archive-theme *,
  body.glory-archive-theme *::before,
  body.glory-archive-theme *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body.glory-archive-theme .site {
  isolation: isolate;
}

body.glory-archive-theme .fixed {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 3.5vw, 28px);
  padding-right: clamp(12px, 3.5vw, 28px);
  box-sizing: border-box;
}

/* — Header — */
body.glory-archive-theme .site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--gc-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.glory-archive-theme .site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  min-height: var(--gc-header-h);
  padding-top: 8px;
  padding-bottom: 8px;
}

body.glory-archive-theme .site-branding {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
  justify-content: flex-start;
}

body.glory-archive-theme .site-logotype img {
  display: block;
  height: auto;
  width: auto;
  max-height: clamp(36px, 10vw, 48px);
  max-width: min(200px, 52vw);
}

body.glory-archive-theme .header-html-1,
body.glory-archive-theme .header-html-2 {
  flex: 0 0 auto;
}

body.glory-archive-theme .header-html-1 .btn-box,
body.glory-archive-theme .header-html-2 .btn-box {
  margin: 0;
}

/* Base theme positions .humburger absolute — breaks flex row and stacks over the logo on mobile */
body.glory-archive-theme .humburger {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  -webkit-transform: none;
  -ms-transform: none;
  z-index: 2;
  order: -1;
  flex-shrink: 0;
  align-self: center;
  margin-right: 8px;
  border-radius: 10px;
  padding: 10px 8px;
  background: rgba(42, 75, 255, 0.06);
  border: 1px solid var(--gc-line);
}

body.glory-archive-theme .humburger span {
  background: var(--gc-ink);
}

@media (min-width: 992px) {
  body.glory-archive-theme .humburger {
    display: none;
  }

  body.glory-archive-theme .site-header-inner {
    flex-wrap: nowrap;
  }

  body.glory-archive-theme .site-branding {
    flex: 0 0 auto;
  }
}

/* — Primary CTAs — */
body.glory-archive-theme .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  box-shadow: 0 4px 14px rgba(42, 75, 255, 0.22);
}

body.glory-archive-theme .btn:active {
  transform: translateY(1px);
}

body.glory-archive-theme .btn--signup {
  color: #fff !important;
  border-color: transparent;
  background-image: linear-gradient(105deg, #f43f5e 0%, #db2777 32%, #4f46e5 88%, #312e81 100%) !important;
  background-color: transparent !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

body.glory-archive-theme .btn--signup:hover,
body.glory-archive-theme .btn--signup:focus-visible {
  filter: brightness(1.05);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.35);
  outline: none;
}

body.glory-archive-theme .btn--signup:focus-visible {
  outline: 2px solid var(--gc-accent);
  outline-offset: 3px;
}

body.glory-archive-theme .btn--download-app {
  color: var(--gc-accent) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(42, 75, 255, 0.45);
  box-shadow: 0 2px 10px rgba(15, 23, 51, 0.06);
}

body.glory-archive-theme .btn--download-app:hover,
body.glory-archive-theme .btn--download-app:focus-visible {
  background-color: #fff !important;
  border-color: var(--gc-accent);
  color: #1d2f8a !important;
  outline: none;
}

body.glory-archive-theme .archive-shortcode-button .btn {
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 23, 51, 0.12);
}

/* — Main nav — */
body.glory-archive-theme .main-navigation {
  position: sticky;
  top: var(--gc-header-h);
  z-index: 110;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--gc-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
  /* Reboot theme hides .main-navigation below 992px; we need the wrapper visible for the slide-out inner menu */
  body.glory-archive-theme .main-navigation {
    display: block;
    top: 0;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: none;
    box-shadow: var(--gc-glow);
  }

  body.glory-archive-theme .main-navigation .main-navigation-inner {
    display: none;
    padding-top: 10px;
    padding-bottom: 16px;
  }

  body.archive-menu-open .main-navigation .main-navigation-inner,
  body.glory-archive-theme .main-navigation.is-open .main-navigation-inner {
    display: block !important;
  }
}

body.glory-archive-theme .main-navigation ul.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

body.glory-archive-theme .main-navigation ul.menu > li {
  margin: 0;
}

body.glory-archive-theme .main-navigation ul.menu > li > a,
body.glory-archive-theme .main-navigation ul.menu > li > span.removed-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gc-ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.glory-archive-theme .main-navigation ul.menu > li > a:hover,
body.glory-archive-theme .main-navigation ul.menu > li > a:focus-visible {
  background: rgba(42, 75, 255, 0.08);
  color: var(--gc-ink);
  outline: none;
}

body.glory-archive-theme .main-navigation ul.menu > li.current-menu-item > a,
body.glory-archive-theme .main-navigation ul.menu > li.current-menu-ancestor > a {
  background: linear-gradient(105deg, rgba(244, 63, 94, 0.12), rgba(79, 70, 229, 0.15));
  border-color: rgba(79, 70, 229, 0.25);
  color: var(--gc-ink);
}

body.glory-archive-theme .main-navigation .sub-menu {
  border-radius: var(--gc-radius-sm);
  border: 1px solid var(--gc-line);
  box-shadow: var(--gc-glow);
  background: #fff;
  padding: 6px 0;
  min-width: 200px;
}

body.glory-archive-theme .main-navigation .sub-menu a {
  border-radius: 8px;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
}

/* — Content shell — */
body.glory-archive-theme .site-content {
  padding-top: clamp(12px, 2.5vw, 28px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

body.glory-archive-theme .site-main {
  width: 100%;
}

body.glory-archive-theme .article-post {
  margin: 0;
}

body.glory-archive-theme .entry-title {
  max-width: var(--gc-title-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  padding: 0 clamp(4px, 1.5vw, 8px);
  box-sizing: border-box;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 4.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--gc-ink);
  text-wrap: balance;
}

body.glory-archive-theme .entry-content {
  max-width: var(--gc-content-max);
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2.8vw, 1.0625rem);
}

body.glory-archive-theme .entry-content > p:first-of-type {
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  line-height: 1.55;
  color: var(--gc-ink);
}

body.glory-archive-theme .entry-content > p:has(img) {
  margin: clamp(1rem, 3vw, 1.75rem) 0;
  padding: clamp(8px, 2vw, 14px);
  border-radius: calc(var(--gc-radius) + 4px);
  background: linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
  border: 1px solid var(--gc-line);
  box-shadow: var(--gc-glow);
}

body.glory-archive-theme .entry-content > p:has(img) img {
  border-radius: var(--gc-radius);
}

body.glory-archive-theme .entry-content h2 {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0.75rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--gc-ink);
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-style: solid;
  border-width: 0 0 0 4px;
  border-color: transparent;
  background-image: linear-gradient(transparent, transparent), linear-gradient(180deg, #f43f5e, #4f46e5);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  scroll-margin-top: calc(var(--gc-header-h) + 72px);
}

body.glory-archive-theme .entry-content h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  color: var(--gc-ink);
}

body.glory-archive-theme .entry-content a {
  color: var(--gc-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.glory-archive-theme .entry-content a:hover {
  color: #1d2f8a;
}

body.glory-archive-theme .entry-content ul > li,
body.glory-archive-theme .entry-content ol > li {
  margin-bottom: 0.4em;
}

body.glory-archive-theme .entry-content blockquote.warning {
  margin: 1.75rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--gc-radius-sm);
  background: linear-gradient(120deg, rgba(15, 23, 51, 0.04), rgba(79, 70, 229, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.2);
  font-size: 0.9rem;
  color: var(--gc-ink-soft);
}

body.glory-archive-theme .entry-content blockquote.warning p {
  margin: 0;
}

/* — TOC (in-page anchors) — */
body.glory-archive-theme .site-toc {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  border-radius: var(--gc-radius);
  background: var(--gc-surface-2);
  border: 1px solid var(--gc-line);
  box-shadow: 0 8px 30px rgba(15, 23, 51, 0.06);
}

body.glory-archive-theme .site-toc__label {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gc-ink);
}

body.glory-archive-theme .site-toc__face {
  border-radius: 8px;
  border-color: rgba(42, 75, 255, 0.35);
}

body.glory-archive-theme .site-toc__nav a {
  color: var(--gc-accent);
  font-weight: 500;
  text-decoration: none;
}

body.glory-archive-theme .site-toc__nav a:hover {
  text-decoration: underline;
}

/* — Footer nav + footer — */
body.glory-archive-theme .site-footer-container {
  border-top: 1px solid var(--gc-line);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.glory-archive-theme .footer-navigation {
  border-bottom: 1px solid var(--gc-line);
}

body.glory-archive-theme .footer-navigation ul.menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin: 0;
  padding: 10px 0 12px;
  list-style: none;
}

body.glory-archive-theme .footer-navigation ul.menu > li {
  flex: 0 0 auto;
}

body.glory-archive-theme .footer-navigation ul.menu a,
body.glory-archive-theme .footer-navigation ul.menu span.removed-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gc-ink-soft);
  text-decoration: none;
  border: 1px solid var(--gc-line);
  background: #fff;
}

body.glory-archive-theme .footer-navigation ul.menu a:hover {
  border-color: rgba(42, 75, 255, 0.35);
  color: var(--gc-accent);
}

body.glory-archive-theme .footer-navigation .current_page_item span.removed-link,
body.glory-archive-theme .footer-navigation .current-menu-item span.removed-link {
  background: linear-gradient(105deg, rgba(244, 63, 94, 0.12), rgba(79, 70, 229, 0.15));
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--gc-ink);
}

body.glory-archive-theme .site-footer {
  background: transparent;
}

body.glory-archive-theme .footer-info {
  font-size: 0.875rem;
  color: var(--gc-ink-soft);
  padding: 0.5rem 0 1rem;
}

/* — Scroll to top — */
body.glory-archive-theme .scrolltop {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: #312e81;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5.5L5 14h14L12 5.5z' fill='%23ffffff'/%3E%3C/svg%3E"),
    linear-gradient(145deg, #4f46e5, #312e81);
  background-repeat: no-repeat, no-repeat;
  background-position: center calc(50% - 2px), center;
  background-size: 22px 22px, 100% 100%;
  box-shadow: 0 10px 28px rgba(49, 46, 129, 0.35);
  cursor: pointer;
}

body.glory-archive-theme .scrolltop.is-visible:hover {
  filter: brightness(1.08);
}

/* — FAQ / pros-cons harmonize — */
body.glory-archive-theme .faq-item {
  border-radius: var(--gc-radius-sm);
  border-color: var(--gc-line);
}

body.glory-archive-theme .faq-question {
  background: rgba(255, 255, 255, 0.9);
  font-family: "Outfit", system-ui, sans-serif;
}

body.glory-archive-theme .content-pros-cons > div {
  border-radius: var(--gc-radius-sm);
}

body.glory-archive-theme .entry-content table {
  --ec-border: rgba(15, 23, 51, 0.1);
  --ec-head-bg: #1e1b4b;
  --ec-head-fg: #fff;
  border-radius: var(--gc-radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 51, 0.06);
}

body.glory-archive-theme .entry-content table thead th,
body.glory-archive-theme .entry-content table thead td {
  background: linear-gradient(120deg, #1e1b4b, #312e81);
  color: #fff;
}

@media (max-width: 480px) {
  body.glory-archive-theme {
    --gc-header-h: 52px;
  }

  body.glory-archive-theme .site-header-inner {
    justify-content: flex-start;
  }

  body.glory-archive-theme .header-html-1,
  body.glory-archive-theme .header-html-2 {
    flex: 1 1 calc(50% - 6px);
  }

  body.glory-archive-theme .header-html-1 .btn,
  body.glory-archive-theme .header-html-2 .btn {
    width: 100%;
    font-size: 0.8125rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
