/**
 * The Money Game - Webflow-Exact Header & Navigation Menu Overlay
 * Scoped to header elements and overlay menu only.
 */

/* -------------------------------------------------------------
 * 1. Fonts (Mona Sans & Hubot Sans)
 * ------------------------------------------------------------- */
@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/MonaSans-Regular.woff2') format('woff2'),
       url('../fonts/MonaSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monasans';
  src: url('../fonts/MonaSans-Regular.woff2') format('woff2'),
       url('../fonts/MonaSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/MonaSans-Medium.woff2') format('woff2'),
       url('../fonts/MonaSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monasans';
  src: url('../fonts/MonaSans-Medium.woff2') format('woff2'),
       url('../fonts/MonaSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/MonaSans-SemiBold.woff2') format('woff2'),
       url('../fonts/MonaSans-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monasans';
  src: url('../fonts/MonaSans-SemiBold.woff2') format('woff2'),
       url('../fonts/MonaSans-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/MonaSans-Bold.woff2') format('woff2'),
       url('../fonts/MonaSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monasans';
  src: url('../fonts/MonaSans-Bold.woff2') format('woff2'),
       url('../fonts/MonaSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hubot Sans';
  src: url('../fonts/HubotSans-Regular.woff2') format('woff2'),
       url('../fonts/HubotSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hubotsans';
  src: url('../fonts/HubotSans-Regular.woff2') format('woff2'),
       url('../fonts/HubotSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hubot Sans';
  src: url('../fonts/HubotSans-Medium.woff2') format('woff2'),
       url('../fonts/HubotSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hubotsans';
  src: url('../fonts/HubotSans-Medium.woff2') format('woff2'),
       url('../fonts/HubotSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hubot Sans';
  src: url('../fonts/HubotSans-SemiBold.woff2') format('woff2'),
       url('../fonts/HubotSans-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hubotsans';
  src: url('../fonts/HubotSans-SemiBold.woff2') format('woff2'),
       url('../fonts/HubotSans-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hubotsansexpanded';
  src: url('../fonts/HubotSansExpanded-Bold.otf') format('opentype'),
       url('../fonts/HubotSansExpanded-ExtraBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hubotsansexpanded';
  src: url('../fonts/HubotSansExpanded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hubotsansexpanded';
  src: url('../fonts/HubotSansExpanded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hubotsansexpanded';
  src: url('../fonts/HubotSansExpanded-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hubotsansexpanded';
  src: url('../fonts/HubotSansExpanded-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hubot Sans Expanded';
  src: url('../fonts/HubotSansExpanded-Bold.otf') format('opentype'),
       url('../fonts/HubotSansExpanded-ExtraBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------
 * 2. Header Bar Container & Layout
 * ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fffcf0;
  border-bottom: 1px solid rgba(16, 15, 15, 0.08);
  padding: 1.5rem 0;
  min-height: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
}

.site-header .container-default {
  max-width: 1286px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 1rem;
  box-sizing: border-box;
  width: 100%;
}

/* Ensure article sections have no horizontal padding so article .container-default aligns flush with header .container-default */
.tmg-article .section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-header .header-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Brand / Logo */
.site-header .brand.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #100f0f;
  margin: 0;
  padding: 0;
}

.site-header .logo-text,
.logo-text {
  letter-spacing: -1px;
  text-transform: uppercase;
  font-family: Hubotsansexpanded, 'Hubot Sans Expanded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: #100f0f;
  margin: 0;
  padding: 0;
}

.logo-text.white,
.site-footer .logo-text,
.footer-brand {
  color: #fffcf0 !important;
}

/* Header Buttons Group */
.site-header .header-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------------
 * 3. Theme Toggle Switch (Exact Webflow Markup & SVGs)
 * ------------------------------------------------------------- */
.site-header .nav-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-header .toggle-theme {
  position: relative;
  width: 2.2rem;
  height: 1.4rem;
  display: inline-block;
}

.site-header .toggleTheme-label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.site-header .toggleTheme {
  position: absolute;
  border: 1px solid #100F0F;
  margin: auto;
  right: 0;
  top: 0;
  bottom: 0;
  cursor: pointer;
  height: 1.4rem;
  background-color: transparent;
  transition: .4s;
  border-radius: 4rem;
  width: 2.2rem;
  padding: 2px;
  background-repeat: no-repeat;
  background-size: cover;
  box-sizing: border-box;
}

.site-header .toggleTheme:before {
  position: absolute;
  content: '';
  height: 1rem;
  width: 1rem;
  background-color: #100F0F;
  text-align: center;
  transition: transform .4s, background-image .4s, background-color .4s;
  border-radius: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' viewBox='2.5 2 25 26'%3E%3Cpath fill='%23FFFCF1' d='M16 4a1.714 1.714 0 110 3.429A1.714 1.714 0 0116 4zM24.485 7.515a1.714 1.714 0 11-2.424 2.424 1.714 1.714 0 012.424-2.424zM7.429 16A1.714 1.714 0 104 16a1.714 1.714 0 003.429 0zM26.286 14.286a1.714 1.714 0 110 3.428 1.714 1.714 0 010-3.428zM9.94 24.485a1.714 1.714 0 10-2.425-2.424 1.714 1.714 0 002.424 2.424zM24.485 22.06a1.714 1.714 0 11-2.424 2.425 1.714 1.714 0 012.424-2.424zM16 24.571A1.714 1.714 0 1116 28a1.714 1.714 0 010-3.429zM9.94 7.515a1.714 1.714 0 10-2.425 2.424 1.714 1.714 0 002.424-2.424zM22 16a6 6 0 11-12 0 6 6 0 0112 0z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 11px;
  top: 2px;
  left: 2px;
}

.site-header input[type="checkbox"] {
  display: none;
}

.site-header input:checked + .toggleTheme {
  background-color: #FFFCF1;
}

.site-header input:checked + .toggleTheme:before {
  content: '';
  transform: translateX(calc(2.2rem - 1.4rem));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='%23FFFCF1' viewBox='2.5 2 25 26'%3E%3Cpath fill='%23FFFCF1' d='M25.955 16.163a8 8 0 01-10.91-10.91C9.97 5.732 6 10.005 6 15.206c0 5.523 4.477 10 10 10 5.2 0 9.474-3.97 9.955-9.044z'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------
 * 4. Subscribe Button (Webflow Button Style)
 * ------------------------------------------------------------- */
.site-header .btn-primary.small {
  border: 1px solid #100f0f;
  background-color: #100f0f;
  color: #fffcf0;
  text-align: center;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  padding: 12px 22px;
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.143em;
  text-decoration: none;
  transition: border-color .3s, background-color .3s, transform .3s, color .3s;
  display: inline-flex;
  cursor: pointer;
  white-space: nowrap;
}

.site-header .btn-primary.small:hover {
  background-color: #fffcf0;
  color: #100f0f;
  transform: translate3d(0, -2px, .01px);
}

/* -------------------------------------------------------------
 * 5. Hamburger Button & Bars Animation
 * ------------------------------------------------------------- */
.site-header .menu-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.site-header .btn-menu-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 30px;
  height: 18px;
  position: relative;
  margin: 0;
  padding: 0;
}

.site-header .hamburger-menu-bar-2 {
  background-color: #121212;
  border-radius: 20px;
  height: 2px;
  transition: transform .3s ease, opacity .25s ease, width .3s ease, background-color .3s ease;
  transform-origin: center;
  display: block;
}

.site-header .hamburger-menu-bar-2.top {
  width: 30px;
  margin: 0;
}

.site-header .hamburger-menu-bar-2.medium {
  width: 30px;
  margin: 0;
}

.site-header .hamburger-menu-bar-2.bottom {
  width: 16px;
  margin: 0;
}

/* Open state: hamburger transforms into "X" */
.site-header .menu-button.is-active .btn-menu-wrapper {
  align-items: center;
  justify-content: center;
}

.site-header .menu-button.is-active .hamburger-menu-bar-2.top {
  transform: translateY(2px) rotate(45deg);
  width: 26px;
}

.site-header .menu-button.is-active .hamburger-menu-bar-2.medium {
  opacity: 0;
  transform: scaleX(0);
}

.site-header .menu-button.is-active .hamburger-menu-bar-2.bottom {
  transform: translateY(-2px) rotate(-45deg);
  width: 26px;
}

/* -------------------------------------------------------------
 * 6. Navigation Menu Overlay Panel (Open State)
 * ------------------------------------------------------------- */
.nav-menu-panel {
  width: 100%;
  background-color: #fffcf0;
  border-bottom: 1px solid rgba(16, 15, 15, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  animation: fadeInMenu 0.25s ease forwards;
}

.nav-menu-panel[hidden] {
  display: none !important;
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu-panel-inner {
  max-width: 1286px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem 3.5rem 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Category Chips */
.search-categories-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 2.5rem;
  box-sizing: border-box;
}

.search-categories-row .c-checkbox-field {
  border: 1px solid #100f0f;
  background-color: transparent;
  color: var(--cat-color, #100f0f);
  cursor: pointer;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  height: 40px;
  padding: 8px 14px;
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  display: inline-flex;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.search-categories-row .c-checkbox-field:hover {
  background-color: rgba(16, 15, 15, 0.04);
  transform: translateY(-1px);
}

.search-categories-row .c-checkbox-label-category {
  font-size: inherit;
  font-weight: inherit;
  color: var(--cat-color, inherit);
  text-decoration: none;
}

@media screen and (min-width: 1200px) and (max-width: 1286px) {
  .search-categories-row .c-checkbox-field {
    padding: 8px 10px;
  }
}

@media screen and (max-width: 1199px) {
  .search-categories-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .search-categories-row .c-checkbox-field {
    padding: 8px 14px;
    flex-shrink: 1;
  }
}

/* Centered Search Input */
.search-cms.menu {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2.5rem;
}

.search-input-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.menu-search-input {
  width: 100%;
  min-height: 60px;
  height: 60px;
  border: 1px solid #cecdc3;
  background-color: #fffcf0;
  border-radius: 3px;
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 16px 20px;
  color: #100f0f;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.menu-search-input::placeholder {
  color: #b7b5ac;
  opacity: 1;
  font-weight: 400;
}

.menu-search-input:hover {
  border-color: #9c9a92;
}

.menu-search-input:focus {
  border-color: #100f0f;
  background-color: #fff;
  box-shadow: 0 0 0 1px #100f0f;
}

/* Live Search Results List */
.search-results-section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.articles-footer-wrapper.search {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.articles-footer-wrapper.search.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.article-link-2.footer-article {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: #100f0f;
  padding: 0;
  border: none !important;
  transition: opacity .2s, transform .2s;
  width: 100%;
}

.article-link-2.footer-article:hover {
  opacity: 0.85;
  transform: translateX(3px);
}

.modal-image-wrapper.footer-article-image.search {
  min-width: 130px;
  max-width: 130px;
  min-height: 130px;
  max-height: 130px;
  width: 130px;
  height: 130px;
  border-radius: 3px;
  overflow: hidden;
  background-color: transparent;
  flex-shrink: 0;
}

.modal-image-wrapper.footer-article-image.search img.article-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-picture.placeholder {
  width: 100%;
  height: 100%;
  background-color: #ded6c7;
}

.inner-container.search-article {
  flex: 1;
  min-width: 0;
}

.inner-container.search-article .article-title {
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: #100f0f;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Hubot Sans', Hubotsans, sans-serif;
  font-size: 14px;
  line-height: 1.2;
}

.search-cat-label {
  font-family: 'Hubot Sans', Hubotsans, sans-serif;
  font-weight: 500;
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
}

.divider-dot-2 {
  background-color: #b7b5ac;
  border-radius: 50%;
  min-width: 4px;
  max-width: 4px;
  min-height: 4px;
  max-height: 4px;
  display: inline-block;
}

.search-date {
  color: #6f6e69;
  font-size: 14px;
  font-weight: 400;
}

.search-empty {
  text-align: center;
  font-family: 'Mona Sans', Monasans, sans-serif;
  color: #6f6e69;
  font-size: 14px;
  padding: 1.5rem 0;
}

/* -------------------------------------------------------------
 * 7. Responsive Breakpoints (991px, 767px & 479px)
 * ------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .nav-menu-panel-inner {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
}

@media screen and (max-width: 767px) {
  .site-header .container-default,
  .nav-menu-panel-inner.container-default,
  .nav-menu-panel-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 479px) {
  .site-header {
    padding: 1rem 0;
  }

  .site-header .header-buttons {
    gap: 10px;
  }

  .site-header .logo-text {
    font-size: 15px;
  }

  .site-header .btn-primary.small {
    padding: 8px 14px;
    font-size: 13px;
  }

  .search-categories-row {
    gap: 8px;
  }

  .search-categories-row .c-checkbox-field {
    min-height: 38px;
    height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .search-input-box {
    max-width: 100%;
  }

  .menu-search-input {
    min-height: 52px;
    height: 52px;
    font-size: 15px;
    padding: 12px 16px;
  }

  .search-results-section {
    max-width: 100%;
  }

  .article-link-2.footer-article {
    gap: 14px;
  }

  .modal-image-wrapper.footer-article-image.search {
    min-width: 90px;
    max-width: 90px;
    min-height: 90px;
    max-height: 90px;
    width: 90px;
    height: 90px;
  }

  .inner-container.search-article .article-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .meta-row-search {
    font-size: 12px;
  }

  .search-cat-label {
    font-size: 12px;
  }

  .search-date {
    font-size: 12px;
  }
}

/* -------------------------------------------------------------
 * 8. Dark Mode Overrides (html[data-theme="dark"])
 * ------------------------------------------------------------- */
html[data-theme="dark"] .site-header {
  background-color: #100f0f;
  border-bottom-color: rgba(255, 252, 240, 0.12);
  color: #fffcf0;
}

html[data-theme="dark"] .site-header .brand.logo-link {
  color: #fffcf0;
}

html[data-theme="dark"] .site-header .logo-text,
html[data-theme="dark"] .logo-text {
  color: #fffcf0;
}

html[data-theme="dark"] .site-header .btn-primary.small {
  border-color: #fffcf0;
  background-color: #100f0f;
  color: #fffcf0;
}

html[data-theme="dark"] .site-header .btn-primary.small:hover {
  background-color: #fffcf0;
  color: #100f0f;
}

html[data-theme="dark"] .site-header .hamburger-menu-bar-2 {
  background-color: #fffcf0;
}

html[data-theme="dark"] .site-header .toggleTheme {
  border-color: #fffcf0;
}

html[data-theme="dark"] .nav-menu-panel {
  background-color: #100f0f;
  border-bottom: 1px solid rgba(255, 252, 240, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .search-categories-row .c-checkbox-field {
  border-color: rgba(255, 252, 240, 0.3);
  background-color: transparent;
}

html[data-theme="dark"] .search-categories-row .c-checkbox-field:hover {
  border-color: rgba(255, 252, 240, 0.6);
  background-color: rgba(255, 252, 240, 0.06);
}

html[data-theme="dark"] .search-categories-row .c-checkbox-label-category {
  filter: brightness(140%);
}

html[data-theme="dark"] .menu-search-input {
  border-color: rgba(255, 252, 240, 0.18);
  background-color: #100f0f;
  color: #fffcf0;
}

html[data-theme="dark"] .menu-search-input::placeholder {
  color: #6f6e69;
}

html[data-theme="dark"] .menu-search-input:focus {
  border-color: rgba(255, 252, 240, 0.5);
  background-color: #181716;
  box-shadow: 0 0 0 1px rgba(255, 252, 240, 0.5);
}

html[data-theme="dark"] .article-link-2.footer-article {
  color: #fffcf0;
}

html[data-theme="dark"] .inner-container.search-article .article-title {
  color: #fffcf0;
}

html[data-theme="dark"] .modal-image-wrapper.footer-article-image.search {
  background-color: transparent;
}

html[data-theme="dark"] .search-cat-label {
  filter: brightness(140%);
}

html[data-theme="dark"] .search-date {
  color: #a6a39a;
}

html[data-theme="dark"] .divider-dot-2 {
  background-color: #6f6e69;
}

html[data-theme="dark"] .search-empty {
  color: #a6a39a;
}
