/**
 * Header/footer bridge only — keep Ace content templates working.
 * STRX landing look comes from strx-style.css.
 */

/* Sticky footer shell — no white gap under short pages */
html {
  height: 100%;
  background: var(--body-color, #151521);
}

body.ace-theme,
body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--body-color, #151521) !important;
  background-color: var(--body-color, #151521) !important;
}

.lucky-site.strx-site,
#page.lucky-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--body-color, #151521);
  color: var(--text-color, hsl(240, 12%, 72%));
  font-family: var(--body-font, "Poppins", sans-serif);
}

body.admin-bar .lucky-site.strx-site,
body.admin-bar #page.lucky-site {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .lucky-site.strx-site,
  body.admin-bar #page.lucky-site {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* Ace used its own header — hide it so STRX .header is the only chrome */
.lucky-site-header {
  display: none !important;
}

/* Content grows; footer stays at the bottom */
.lucky-site-content {
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
}

.footer.section,
.footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  background: var(--body-color, #151521);
}

.lucky-site-main {
  padding-top: 7.5rem !important;
}
/* Homepage: clear fixed header on mobile; desktop uses .home__content padding */
body.strx-front-page .lucky-site-main,
body.strx-front-page .main {
  padding-top: 0 !important;
}
@media screen and (max-width: 766px) {
  body.strx-front-page .strx-home .home,
  body.strx-front-page .home.container {
    padding-top: 5.5rem !important;
  }
  body.strx-front-page .home__img,
  body.strx-front-page .strx-home .home__img {
    display: block !important;
    height: 220px !important;
    width: auto !important;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }
  body.strx-front-page .home__subtitle {
    display: block !important;
    text-align: center !important;
    color: var(--info, #4ae8a8) !important;
  }
  body.strx-front-page .home__data {
    align-items: center !important;
    text-align: center !important;
  }
  body.strx-front-page .home__title {
    text-align: center !important;
  }
  .header .nav__toggle {
    color: var(--link, #3e97ff) !important;
  }
}

/*
 * Admin bar: on desktop, offset header below the bar.
 * On mobile WP hides the admin bar while scrolling — keeping top:46px
 * leaves an empty gap with page content showing above the navbar. So
 * keep the header flush to the top on small screens.
 */
.header {
  top: 0 !important;
  margin-top: 0 !important;
}
@media screen and (min-width: 783px) {
  body.admin-bar .header {
    top: 32px !important;
  }
}

/* Logo */
.nav__logo-img {
  width: 125px !important;
  height: auto !important;
  display: block;
  max-width: 100%;
}

/*
 * Hamburger + close — Ace main.css styles all `button` elements (solid fill).
 * Reset so mobile menu matches original STRX X / toggle icons.
 */
.header .nav__toggle,
.header .nav__close {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--link, #3e97ff) !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.header .nav__toggle:hover,
.header .nav__close:hover,
.header .nav__toggle:focus,
.header .nav__close:focus {
  background: transparent !important;
  color: var(--link, #3e97ff) !important;
  box-shadow: none !important;
  outline: none;
}
.header .nav__toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  z-index: 5;
}
.header .nav__close {
  position: absolute !important;
  top: 0.5rem !important;
  right: 0.7rem !important;
  z-index: 20 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.8rem;
}
.header .nav__close .icon,
.header .nav__close svg,
.header .nav__toggle svg {
  width: 1.8rem !important;
  height: 1.8rem !important;
  display: block !important;
  fill: currentColor !important;
  pointer-events: none;
}
.header .nav__toggle svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

/* Mobile menu popup — match original STRX overlay */
@media screen and (max-width: 766px) {
  .header .nav__toggle {
    display: inline-flex !important;
  }
  .header .nav__menu {
    position: fixed !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: -150% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 4rem 1.5rem 2.5rem !important;
    margin: 0 !important;
    background: var(--container-color, #1e1e2d) !important;
    border-radius: 0 0 1.5rem 1.5rem !important;
    box-shadow: none !important;
    transition: top 0.4s ease !important;
    z-index: 200 !important;
    display: block !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header .nav__menu.show-menu {
    top: 0 !important;
  }
  .header .nav__close {
    display: inline-flex !important;
    position: absolute !important;
    top: 0.75rem !important;
    right: 1rem !important;
    z-index: 210 !important;
    color: var(--link, #3e97ff) !important;
    background: transparent !important;
    border: none !important;
  }
  .header .nav__list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    row-gap: 1.5rem !important;
    column-gap: 0 !important;
    margin: 0 !important;
    padding: 0.5rem 0 0 !important;
    list-style: none !important;
    width: 100%;
  }
  .header .nav__list .nav__item,
  .header .nav__list .menu-item {
    margin: 0 !important;
    list-style: none !important;
    width: auto;
    text-align: center;
  }
  .header .nav__list .nav__link,
  .header .nav__list a:not(.button),
  .header .nav__list span.nav__link {
    display: inline-block !important;
    color: var(--link, #3e97ff) !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .header .nav__list .nav__link:hover,
  .header .nav__list a:not(.button):hover {
    color: var(--text-color, #b0b0c0) !important;
  }
  .header .nav__list .button--ghost,
  .header .nav__menu > .button--ghost {
    margin-top: 0.25rem;
    color: var(--link, #3e97ff) !important;
    border-color: var(--link, #3e97ff) !important;
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
  }
}

/* Desktop: match original — logo left, links + Stake right, 3rem gaps */
@media screen and (min-width: 767px) {
  .header .nav.container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
    height: calc(var(--header-height, 3.5rem) + 1.5rem);
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .header .nav__logo {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
  .header .nav__menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center;
    column-gap: 0;
    z-index: 1;
  }
  .header .nav__list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
    row-gap: 0;
    column-gap: 3rem !important;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .header .nav__list .nav__item,
  .header .nav__list .menu-item {
    margin: 0;
    list-style: none;
  }
  .header .nav__list .nav__link,
  .header .nav__list a:not(.button) {
    color: var(--link, #3e97ff) !important;
    text-transform: initial !important;
    font-weight: 500 !important;
    font-size: var(--normal-font-size, 1rem);
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .header .nav__list .nav__link:hover,
  .header .nav__list a:not(.button):hover {
    color: var(--title-color, #ffffff) !important;
  }
  .header .nav__menu > .button--ghost,
  .header .nav__list .button--ghost {
    flex-shrink: 0;
  }
  .header .nav__close,
  .header .nav__toggle {
    display: none !important;
  }
}

/*
 * Stake / ghost CTA — match original index.html (pill outline, blue text).
 * Must beat Ace .button solid fill from main.css.
 */
.header .nav__list .button--ghost,
.header .nav__menu > .button--ghost,
.header .button.button--ghost,
.nav__list .button.button--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--link, #3e97ff) !important;
  border: 2px solid var(--link, #3e97ff) !important;
  border-radius: 3rem !important;
  padding: 0.75rem 1.5rem !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-weight: 500;
  line-height: 1;
  cursor: default;
}
.header .nav__list a.button--ghost,
.header .nav__menu > a.button--ghost {
  cursor: pointer;
}
.header .nav__list .button--ghost:hover,
.header .nav__menu > .button--ghost:hover,
.header .button.button--ghost:hover,
.nav__list .button.button--ghost:hover {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--link, #3e97ff) !important;
  border-color: var(--link, #3e97ff) !important;
  box-shadow: none !important;
}

/* Footer menus from Appearance → Menus */
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 0.35rem;
}
.footer__links .menu-item {
  margin: 0;
}

/* Footer column titles — must stay light on dark STRX footer */
.footer .footer__title,
.footer h3.footer__title,
.footer .footer__logo {
  color: var(--title-color, #ffffff) !important;
  font-weight: 600;
}
.footer .footer__description,
.footer .footer__copy {
  color: var(--text-color, #b0b0c0);
}
.footer .footer__link,
.footer .footer__links a,
.footer .footer__links span.footer__link {
  color: var(--text-color, #b0b0c0);
}
.footer .footer__link:hover,
.footer .footer__links a:hover {
  color: var(--title-color, #ffffff);
}

/* Homepage custom HTML: cards + exact STRX landing look */
.strx-front-page .main {
  overflow: visible;
  background: var(--body-color, #151521);
  color: var(--text-color, #b0b0c0);
  font-family: var(--body-font, "Poppins", sans-serif);
}

/* FAQ illustration pokes outside the rounded panel */
.strx-front-page .section.faq,
.strx-front-page .faq__container {
  overflow: visible !important;
}
.strx-front-page .faq__img {
  position: relative;
  z-index: 2;
  max-width: none;
}

/* Kill Ace entry chrome on static front page */
.strx-front-page .lucky-entry-header,
.strx-front-page .lucky-page-header,
.strx-front-page .entry-header,
.strx-front-page .wp-block-post-title {
  display: none !important;
}

.strx-front-page .main h1,
.strx-front-page .main h2,
.strx-front-page .main h3,
.strx-front-page .main h4 {
  font-family: var(--body-font, "Poppins", sans-serif);
  margin-top: 0;
}

.strx-front-page .home__subtitle {
  color: var(--info, #4ae8a8) !important;
  font-size: var(--h3-font-size, 1.25rem) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  margin-bottom: 1rem !important;
}

.strx-front-page .home__title {
  color: var(--title-color, #ffffff) !important;
  font-size: var(--biggest-font-size, 2rem) !important;
  font-weight: 900 !important;
  line-height: 109% !important;
  text-transform: uppercase;
  margin-bottom: 1rem !important;
}

@media screen and (min-width: 992px) {
  .strx-front-page .home__title {
    font-size: 4rem !important;
  }
}

.strx-front-page .home__buttons {
  text-align: left;
}
.strx-front-page .home__buttons img {
  display: inline-block;
  width: 100px;
  height: auto;
  max-width: 100%;
}

.strx-front-page .section__title,
.strx-front-page .faq__title,
.strx-front-page .about__title {
  color: var(--title-color, #ffffff) !important;
  text-align: center;
  font-weight: 700 !important;
}

.strx-front-page .about__title {
  text-align: initial;
}

.strx-front-page .category__title,
.strx-front-page .trick__title {
  color: var(--title-color, #ffffff) !important;
  font-weight: 600 !important;
}

.strx-front-page .category__description,
.strx-front-page .trick__subtitle,
.strx-front-page .about__description,
.strx-front-page .faq__data .p5 {
  color: var(--text-color, #b0b0c0) !important;
}

/* Feature / steps cards — 3 across like original (no Swiper required) */
.strx-front-page .new__container .swiper,
.strx-front-page .new__container .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  overflow: visible;
}
.strx-front-page .new__content {
  position: relative;
  background: var(--container-color, #1e1e2d) !important;
  width: 100%;
  max-width: 310px;
  flex: 0 1 310px;
  padding: 2rem 1rem 1.5rem !important;
  border-radius: 1rem !important;
  text-align: center;
  box-sizing: border-box;
}
.strx-front-page .new__content .category__img,
.strx-front-page .new__content .trick__img {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}
.strx-front-page .category__img {
  width: 120px;
  height: auto;
  margin-bottom: 0.75rem;
}
@media screen and (min-width: 992px) {
  .strx-front-page .category__img {
    width: 200px;
  }
}
.strx-front-page .trick__img {
  width: 90px;
  height: auto;
}
@media screen and (min-width: 992px) {
  .strx-front-page .trick__img {
    width: 110px;
  }
}

/* FAQ banner */
.strx-front-page .faq__container {
  background: var(--container-color, #1e1e2d) !important;
  border-radius: 1rem;
}
@media screen and (min-width: 767px) {
  .strx-front-page .faq__container {
    border-radius: 3rem;
  }
}
.strx-front-page .faq__data img {
  display: inline-block;
  width: 100px;
  height: auto;
  margin: 0 0.35rem 0.5rem 0;
  vertical-align: middle;
}

/* About */
.strx-front-page .about__img {
  width: 200px;
  max-width: 100%;
  height: auto;
  justify-self: center;
}
@media screen and (min-width: 992px) {
  .strx-front-page .about__img {
    width: 350px;
  }
}

.lucky-skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--link, #3e97ff);
  color: #fff;
}

/* ==========================================================================
   Sticky STRX header (Ace sticky targeted .lucky-site-header which is hidden)
   ========================================================================== */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  margin: 0 !important;
  z-index: 100;
}
body.has-sticky-header .header {
  position: fixed !important;
}
@media screen and (min-width: 783px) {
  body.admin-bar .header {
    top: 32px !important;
  }
}

/* ==========================================================================
   No breadcrumbs / author meta trail on pages
   ========================================================================== */
body.page .lucky-breadcrumb-nav,
body.page .yoast-breadcrumb,
body.page .yoast-breadcrumbs,
body.page .wpseo-breadcrumb,
body.page #breadcrumbs,
body.page .rank-math-breadcrumb,
body.page .wp-block-yoast-seo-breadcrumbs,
body.page .breadcrumb,
body.page .breadcrumbs,
body.page .lucky-author-meta,
body.page .lucky-entry-header .lucky-author-meta {
  display: none !important;
}

/* Match page/post content width to STRX footer .container (968px) */
.lucky-site-main > .lucky-container {
  max-width: 968px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box;
}
.lucky-site-main > .lucky-container.lucky-container--fullwidth {
  max-width: 968px !important;
}

/* ==========================================================================
   Pages / posts content — dark STRX look (headings, tables, meta)
   ========================================================================== */
.lucky-site-main {
  background: transparent;
  color: var(--text-color, #b0b0c0);
}

.lucky-site-main .lucky-content-area,
.lucky-site-main article.post,
.lucky-site-main article.page,
.lucky-site-main article.type-page,
.lucky-site-main article.type-post {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.lucky-site-main .lucky-entry-title,
.lucky-site-main .lucky-page-title,
.lucky-site-main article .entry-title {
  color: var(--title-color, #ffffff) !important;
  font-family: var(--body-font, "Poppins", sans-serif);
  font-weight: var(--lucky-h1-weight, 600) !important;
  margin-bottom: 2rem !important;
}

.lucky-site-main .lucky-entry-header {
  margin-bottom: 1.5rem;
}

.lucky-site-main .lucky-entry-content > h1:first-child,
.lucky-site-main .lucky-entry-content > .wp-block-heading:first-child {
  margin-top: 0 !important;
  margin-bottom: 1.75rem !important;
}

.lucky-site-main .lucky-entry-content,
.lucky-site-main .lucky-entry-content p,
.lucky-site-main .lucky-entry-content li {
  color: var(--text-color, #b0b0c0);
}

.lucky-site-main .lucky-content-area,
.lucky-site-main article.post,
.lucky-site-main article.page,
.lucky-site-main .lucky-entry-content {
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.lucky-site-main .lucky-entry-content p,
.lucky-site-main .lucky-entry-content li,
.lucky-site-main .lucky-entry-content h1,
.lucky-site-main .lucky-entry-content h2,
.lucky-site-main .lucky-entry-content h3,
.lucky-site-main .lucky-entry-content h4,
.lucky-site-main .lucky-entry-content h5,
.lucky-site-main .lucky-entry-content h6,
.lucky-site-main .lucky-entry-content a,
.lucky-site-main .lucky-entry-content code,
.lucky-site-main .lucky-entry-content pre {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lucky-site-main .lucky-entry-content img,
.lucky-site-main .lucky-entry-content video,
.lucky-site-main .lucky-entry-content iframe,
.lucky-site-main .lucky-entry-content figure,
.lucky-site-main .lucky-entry-content .wp-block-image,
.lucky-site-main .lucky-entry-content .wp-block-embed {
  max-width: 100% !important;
  height: auto;
}

.lucky-site-main .lucky-entry-content h1,
.lucky-site-main .lucky-entry-content h2,
.lucky-site-main .lucky-entry-content h3,
.lucky-site-main .lucky-entry-content h4,
.lucky-site-main .lucky-entry-content h5,
.lucky-site-main .lucky-entry-content h6,
.lucky-site-main .lucky-entry-content .wp-block-heading {
  color: var(--title-color, #ffffff) !important;
  font-family: var(--body-font, "Poppins", sans-serif);
}
.lucky-site-main .lucky-entry-content h1,
.lucky-site-main .lucky-entry-content h1.wp-block-heading {
  margin-top: 2.25rem !important;
  margin-bottom: 1.25rem !important;
  line-height: 1.25 !important;
}
.lucky-site-main .lucky-entry-content h2,
.lucky-site-main .lucky-entry-content h2.wp-block-heading {
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}
.lucky-site-main .lucky-entry-content h3,
.lucky-site-main .lucky-entry-content h4,
.lucky-site-main .lucky-entry-content h5,
.lucky-site-main .lucky-entry-content h6 {
  margin-top: 1.75rem !important;
  margin-bottom: 0.85rem !important;
}
.lucky-site-main .lucky-entry-content h1 { font-weight: var(--lucky-h1-weight, 600) !important; }
.lucky-site-main .lucky-entry-content h2 { font-weight: var(--lucky-h2-weight, 600) !important; }
.lucky-site-main .lucky-entry-content h3 { font-weight: var(--lucky-h3-weight, 500) !important; }
.lucky-site-main .lucky-entry-content h4 { font-weight: var(--lucky-h4-weight, 500) !important; }
.lucky-site-main .lucky-entry-content h5 { font-weight: var(--lucky-h5-weight, 500) !important; }
.lucky-site-main .lucky-entry-content h6 { font-weight: var(--lucky-h6-weight, 500) !important; }

.lucky-site-main .lucky-entry-content a {
  color: var(--link, #3e97ff);
}
.lucky-site-main .lucky-entry-content a:hover {
  color: var(--info, #4ae8a8);
}

/* Author / updated meta (pages hide this; posts use .lucky-post-meta below) */
.lucky-site-main .lucky-author-meta,
.lucky-site-main .lucky-author-details,
.lucky-site-main .lucky-author-date {
  color: var(--text-color, #b0b0c0) !important;
}

/* ==========================================================================
   Single post — H1 → meta → featured (1200×700) → content → Recent Articles
   ========================================================================== */
body.single-post .lucky-entry-header {
  margin-bottom: 0;
}

body.single-post .lucky-entry-title {
  margin: 0 0 1.25rem !important;
}

body.single-post .lucky-post-meta,
body.single-post .lucky-author-meta.lucky-post-meta,
body.single-post .lucky-entry-header .lucky-author-meta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 0 0 1.5rem !important;
}

body.single-post .lucky-post-meta .lucky-author-photo {
  flex: 0 0 auto;
  line-height: 0;
}

body.single-post .lucky-post-meta .lucky-author-photo img,
body.single-post .lucky-post-meta .lucky-author-photo .avatar {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
}

/* One inline sentence: by Name | Category | Date */
body.single-post .lucky-post-meta-trail,
body.single-post .lucky-author-details.lucky-post-meta-trail,
body.single-post .lucky-post-meta .lucky-author-details {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-color, #b0b0c0) !important;
}

body.single-post .lucky-post-meta-by,
body.single-post .lucky-post-meta-cat,
body.single-post .lucky-post-meta .lucky-meta-sep,
body.single-post .lucky-post-meta .lucky-author-date,
body.single-post .lucky-post-meta .lucky-meta-author-name {
  display: inline !important;
  vertical-align: baseline;
}

body.single-post .lucky-post-meta-by {
  color: var(--text-color, #b0b0c0) !important;
}

body.single-post .lucky-post-meta .lucky-meta-author-name,
body.single-post .lucky-post-meta a.lucky-meta-author-name,
body.single-post .lucky-post-meta-cat,
body.single-post .lucky-post-meta a.lucky-post-meta-cat {
  color: #3e97ff !important;
  font-weight: 500;
  text-decoration: none !important;
}

body.single-post .lucky-post-meta .lucky-meta-author-name:hover,
body.single-post .lucky-post-meta-cat:hover {
  color: #6bb3ff !important;
}

body.single-post .lucky-post-meta .lucky-meta-sep {
  width: auto !important;
  height: auto !important;
  margin: 0 0.35em !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  color: #6d6d80 !important;
  opacity: 1;
  font-weight: 400;
}

body.single-post .lucky-post-meta .lucky-author-date {
  font-weight: 400 !important;
  font-size: inherit !important;
  color: var(--text-color, #b0b0c0) !important;
}

body.single-post .lucky-featured-image {
  margin: 0 0 2rem !important;
  padding: 0;
  width: 100%;
  aspect-ratio: 1200 / 700;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--container-color, #1e1e2d);
}

body.single-post .lucky-featured-image .lucky-featured-img,
body.single-post .lucky-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 0;
}

body.single-post .lucky-entry-content {
  margin-top: 0;
}

body.single-post .lucky-entry-content > *:first-child {
  margin-top: 0;
}

/* Recent Articles + shared archive cards */
.ace-recent-articles {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--secondary, #323248);
}

.ace-recent-articles__title {
  margin: 0 0 1.5rem !important;
  color: var(--title-color, #ffffff) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  font-family: var(--body-font, "Poppins", sans-serif);
}

.ace-post-cards-grid,
.ace-recent-articles__grid,
.lucky-post-cards-grid.ace-post-cards-grid,
.lucky-post-cards-grid.has-columns-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ace-post-card {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--container-color, #1e1e2d) !important;
  border: 1px solid var(--secondary, #323248) !important;
  border-radius: 0.5rem;
  box-shadow: none !important;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ace-post-card:hover {
  border-color: var(--link, #3e97ff) !important;
  transform: translateY(-2px);
}

.ace-post-card__media {
  display: block;
  text-decoration: none !important;
  line-height: 0;
}

.ace-post-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--body-color, #151521);
}

.ace-post-card__img,
.ace-post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ace-post-card__placeholder {
  background: linear-gradient(135deg, #1e1e2d 0%, #323248 100%);
}

.ace-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1rem 1.2rem;
  flex: 1;
  min-width: 0;
}

.ace-post-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.ace-post-card__avatar {
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none !important;
}

.ace-post-card__avatar img,
.ace-post-card__avatar .avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
}

.ace-post-card__meta-text {
  display: block;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-color, #b0b0c0);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ace-post-card__author,
.ace-post-card__cat,
a.ace-post-card__author,
a.ace-post-card__cat {
  color: #3e97ff !important;
  font-weight: 500;
  text-decoration: none !important;
}

.ace-post-card__author:hover,
.ace-post-card__cat:hover,
a.ace-post-card__author:hover,
a.ace-post-card__cat:hover {
  color: #6bb3ff !important;
  text-decoration: underline !important;
}

.ace-post-card__sep {
  margin: 0 0.25em;
  color: #6d6d80;
}

.ace-post-card__date {
  color: var(--text-color, #b0b0c0);
}

.ace-post-card__title {
  margin: 0 !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  font-family: var(--body-font, "Poppins", sans-serif);
}

.ace-post-card__title-link {
  color: var(--title-color, #ffffff) !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ace-post-card__title-link:hover {
  color: #3e97ff !important;
}

.ace-post-card__excerpt {
  margin: 0 !important;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ace-post-card__excerpt-link {
  color: var(--text-color, #b0b0c0) !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ace-post-card__excerpt-link:hover {
  color: var(--title-color, #ffffff) !important;
}

/* Larger cards on archive / blog listings */
.lucky-site-main--archive .ace-post-cards-grid {
  gap: 1.75rem !important;
}

.lucky-site-main--archive .ace-post-card__thumb {
  aspect-ratio: 1200 / 700;
}

.lucky-site-main--archive .ace-post-card__body {
  gap: 0.85rem;
  padding: 1.35rem 1.35rem 1.5rem;
}

.lucky-site-main--archive .ace-post-card__avatar img,
.lucky-site-main--archive .ace-post-card__avatar .avatar {
  width: 34px !important;
  height: 34px !important;
}

.lucky-site-main--archive .ace-post-card__meta-text {
  font-size: 0.8125rem;
}

.lucky-site-main--archive .ace-post-card__title {
  font-size: 1.35rem !important;
}

.lucky-site-main--archive .ace-post-card__excerpt {
  font-size: 0.9375rem;
}

.lucky-site-main--archive .ace-post-card__excerpt-link {
  -webkit-line-clamp: 4;
}

.lucky-site-main--archive .lucky-page-header {
  margin-bottom: 1.75rem;
}

.lucky-site-main--archive .lucky-page-title,
.lucky-site-main--archive .lucky-author-name,
.lucky-site-main--archive .ace-archive-term,
.ace-archive-term {
  color: #ffffff !important;
  margin: 0 0 0.5rem !important;
}

.lucky-site-main--archive .ace-archive-term,
.ace-archive-term {
  margin: 0 !important;
}

.lucky-no-posts {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 12rem;
  padding: 3rem 1.5rem;
  margin: 0;
  box-sizing: border-box;
}

.lucky-no-posts p {
  margin: 0;
  color: var(--text-color, #b0b0c0);
  font-size: 1.05rem;
  line-height: 1.5;
}

.lucky-site-main--archive .lucky-archive-description,
.lucky-site-main--archive .lucky-articles-counter,
.lucky-site-main--archive .lucky-author-bio-refined {
  color: var(--text-color, #b0b0c0);
}

.lucky-site-main--archive .lucky-author-header-simple {
  margin-bottom: 2rem;
}

.lucky-site-main--archive .lucky-author-profile-grid {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.lucky-site-main--archive .lucky-author-avatar-big img,
.lucky-site-main--archive .lucky-author-avatar-big .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.lucky-pagination-nav {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-color, #b0b0c0);
}

.lucky-pagination-nav a,
.lucky-pagination-nav span {
  color: var(--title-color, #ffffff);
  margin: 0 0.25rem;
  text-decoration: none;
}

.lucky-pagination-nav a:hover {
  color: #3e97ff;
}

@media screen and (max-width: 1024px) {
  .ace-post-cards-grid,
  .ace-recent-articles__grid,
  .lucky-post-cards-grid.ace-post-cards-grid,
  .lucky-post-cards-grid.has-columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 782px) {
  body.single-post .lucky-entry-title {
    margin: 0 0 1rem !important;
    line-height: 1.25 !important;
    word-break: break-word;
  }

  body.single-post .lucky-post-meta,
  body.single-post .lucky-author-meta.lucky-post-meta,
  body.single-post .lucky-entry-header .lucky-author-meta {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    margin: 0 0 1.25rem !important;
  }

  body.single-post .lucky-post-meta .lucky-author-photo {
    margin-top: 0.15rem;
  }

  body.single-post .lucky-post-meta .lucky-author-photo img,
  body.single-post .lucky-post-meta .lucky-author-photo .avatar {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
  }

  body.single-post .lucky-post-meta-trail,
  body.single-post .lucky-author-details.lucky-post-meta-trail,
  body.single-post .lucky-post-meta .lucky-author-details {
    display: block !important;
    flex-direction: unset !important;
    align-items: unset !important;
    gap: 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  body.single-post .lucky-post-meta .lucky-meta-sep {
    display: inline !important;
    margin: 0 0.3em !important;
  }

  body.single-post .lucky-featured-image {
    margin: 0 0 1.5rem !important;
    border-radius: 0.4rem;
  }

  body.single-post .lucky-entry-content {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .ace-recent-articles {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .ace-post-cards-grid,
  .ace-recent-articles__grid,
  .lucky-post-cards-grid.ace-post-cards-grid,
  .lucky-post-cards-grid.has-columns-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .ace-post-card__title {
    font-size: 1.05rem !important;
  }
}

@media screen and (min-width: 783px) and (max-width: 1024px) {
  .ace-post-cards-grid,
  .ace-recent-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ---- Tables: normal bordered format, first row bold ---- */
.lucky-site-main .lucky-entry-content .wp-block-table,
.lucky-site-main .lucky-entry-content .lucky-table-scroll {
  background: transparent !important;
  border: 1px solid var(--secondary, #323248) !important;
  border-radius: 0.5rem;
  overflow-x: auto;
  box-shadow: none !important;
}

.lucky-site-main .lucky-entry-content .wp-block-table table,
.lucky-site-main .lucky-entry-content .lucky-table-scroll table,
.lucky-site-main .lucky-entry-content > table,
.lucky-site-main .lucky-entry-content table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: var(--container-color, #1e1e2d) !important;
  color: var(--text-color, #b0b0c0) !important;
  border: 1px solid var(--secondary, #323248) !important;
  border-radius: 0.5rem;
  overflow: hidden;
  min-width: 0 !important;
}

.lucky-site-main .lucky-entry-content table th,
.lucky-site-main .lucky-entry-content table td,
.lucky-site-main .lucky-entry-content .wp-block-table th,
.lucky-site-main .lucky-entry-content .wp-block-table td,
.lucky-site-main .lucky-entry-content .lucky-table-scroll th,
.lucky-site-main .lucky-entry-content .lucky-table-scroll td {
  padding: 12px 16px !important;
  border: 1px solid var(--secondary, #323248) !important;
  background: var(--container-color, #1e1e2d) !important;
  color: var(--text-color, #b0b0c0) !important;
  font-weight: 400 !important;
  text-align: left;
  vertical-align: top;
  white-space: normal !important;
}

/* First row — bold only, no background fill */
.lucky-site-main .lucky-entry-content table thead th,
.lucky-site-main .lucky-entry-content table thead td,
.lucky-site-main .lucky-entry-content .wp-block-table thead th,
.lucky-site-main .lucky-entry-content .wp-block-table thead td,
.lucky-site-main .lucky-entry-content table:not(:has(thead)) > tbody > tr:first-child > th,
.lucky-site-main .lucky-entry-content table:not(:has(thead)) > tbody > tr:first-child > td,
.lucky-site-main .lucky-entry-content .wp-block-table table:not(:has(thead)) tbody tr:first-child td,
.lucky-site-main .lucky-entry-content .wp-block-table table:not(:has(thead)) tbody tr:first-child th {
  font-weight: 700 !important;
  color: var(--title-color, #ffffff) !important;
  background: transparent !important;
}

.lucky-site-main .lucky-entry-content table tbody tr:nth-child(even) td,
.lucky-site-main .lucky-entry-content .wp-block-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--container-color, #1e1e2d) 85%, #000) !important;
}

.lucky-site-main .lucky-entry-content table:not(:has(thead)) tbody tr:first-child:nth-child(even) td,
.lucky-site-main .lucky-entry-content .wp-block-table table:not(:has(thead)) tbody tr:first-child td {
  background: transparent !important;
}

.lucky-site-main .lucky-entry-content blockquote {
  background: var(--container-color, #1e1e2d);
  border-left-color: var(--link, #3e97ff);
  color: var(--text-color, #b0b0c0);
}

/* Back to top — match original, above header z-index */
.scrollup,
a.scrollup {
  position: fixed !important;
  right: 1rem !important;
  bottom: -30% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.35rem !important;
  border-radius: 0.25rem !important;
  background: var(--container-color, #1e1e2d) !important;
  color: var(--title-color, #ffffff) !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  z-index: 110 !important;
  opacity: 0.85;
  transition: bottom 0.4s ease, opacity 0.4s ease;
  line-height: 0;
}
.scrollup .scrollup__icon,
.scrollup svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
  fill: currentColor !important;
  color: inherit !important;
  display: block !important;
}
.scrollup:hover {
  opacity: 1 !important;
  background: var(--container-color, #1e1e2d) !important;
  color: var(--title-color, #ffffff) !important;
}
.scrollup.show-scroll {
  bottom: 3rem !important;
}
