:root,
[data-theme="light"],
[data-theme="dark"] {
  --imodirect-blue: #2563ff;
  --imodirect-cyan: #00e5ff;
  --imodirect-navy: #0b1a2b;
  --imodirect-slate: #111827;
  --imodirect-grey: #94a3b8;
  --imodirect-white: #f8fafc;
  --imodirect-orange: #ff6b00;
  --background-color: #ffffff;
  --primary-foreground-color: #334155;
  --secondary-foreground-color: #0f172a;
  --primary-subtle-color: #2563ff;
  --secondary-subtle-color: #eef6ff;
  --titles-color: #0f172a;
  --link-color: #2563ff;
  --footer-background-color: #050a12;
  --primary-border-color: rgba(148, 163, 184, 0.28);
  --secondary-border-color: rgba(148, 163, 184, 0.16);
  --article-shadow-normal: 0 18px 50px rgba(15, 23, 42, 0.08);
  --article-shadow-hover: 0 26px 70px rgba(37, 99, 255, 0.18);
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
}

body {
  background: #ffffff !important;
  color: var(--imodirect-slate) !important;
}

body.imogirls-modal-open,
html.imogirls-modal-open {
  overflow: hidden;
}

#announcement-bar-root,
.gh-announcement-bar,
.gh-portal-triggerbtn,
.m-subscribe-section,
.m-subscribe-section__form,
.m-subscribe__form,
form[data-members-form],
a[href*="/signup"],
a[href*="#/portal/signup"],
a[href*="/signin"],
a[href*="podcasts.apple.com"],
a[href*="spotify.com"],
a[href*="music.youtube.com"] {
  display: none !important;
}

:is(div, section, nav, aside):has(a[href*="podcasts.apple.com"]):has(a[href*="spotify.com"]),
:is(div, section, nav, aside):has(a[href*="spotify.com"]):has(a[href*="music.youtube.com"]) {
  display: none !important;
}

.imogirls-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.imogirls-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(3, 7, 18, 0.98);
  color: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.imogirls-header__inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.imogirls-header__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.imogirls-header__brand img {
  width: min(230px, 52vw);
  max-height: 74px;
  display: block;
  object-fit: contain;
}

.imogirls-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.imogirls-header__search,
.imogirls-header__contact,
.imogirls-button,
.imogirls-card__button,
.imogirls-modal__permalink {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.imogirls-header__search {
  min-height: 44px;
  padding: 0 16px;
  color: var(--imodirect-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.imogirls-header__search:hover,
.imogirls-header__contact:hover,
.imogirls-button:hover,
.imogirls-card__button:hover,
.imogirls-modal__permalink:hover {
  transform: translateY(-2px);
}

.imogirls-header__contact,
.imogirls-button--primary,
.imogirls-card__button,
.imogirls-modal__permalink {
  color: #ffffff;
  background: linear-gradient(135deg, var(--imodirect-cyan), var(--imodirect-blue));
  box-shadow: 0 12px 30px rgba(37, 99, 255, 0.28);
}

.imogirls-header__contact {
  min-height: 44px;
  padding: 0 18px;
}

.imogirls-main {
  background: #ffffff;
  display: block;
  flex: 1 0 auto;
}

.imogirls-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(0, 229, 255, 0.12), transparent 30%),
    radial-gradient(circle at 0% 0%, rgba(37, 99, 255, 0.08), transparent 26%),
    #ffffff;
  padding: clamp(42px, 7vw, 88px) 0 34px;
}

.imogirls-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.imogirls-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--imodirect-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.imogirls-eyebrow span {
  width: 34px;
  height: 2px;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--imodirect-cyan), var(--imodirect-blue));
}

.imogirls-hero h1 {
  margin: 0;
  color: #050a12;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.imogirls-hero h1 strong {
  display: block;
  color: var(--imodirect-blue);
  font-weight: 800;
}

.imogirls-hero__text {
  max-width: 590px;
  margin: 26px 0 0;
  color: #334155;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.6;
}

.imogirls-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.imogirls-button {
  min-height: 52px;
  padding: 0 22px;
  font-size: 0.96rem;
}

.imogirls-button--secondary {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.imogirls-hero__media {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--imodirect-navy);
  box-shadow: 0 24px 70px rgba(11, 26, 43, 0.24);
  border: 1px solid rgba(11, 26, 43, 0.08);
}

.imogirls-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 -90px 120px rgba(0, 0, 0, 0.18);
}

.imogirls-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.36 / 1;
  object-fit: cover;
}

.imogirls-categories {
  background: #ffffff;
  padding: 16px 0 10px;
}

.imogirls-categories__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.imogirls-filter-button,
.imogirls-filter-reset {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.imogirls-filter-button:hover,
.imogirls-filter-reset:hover {
  transform: translateY(-2px);
}

.imogirls-filter-button {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.imogirls-filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--imodirect-cyan), var(--imodirect-blue));
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(37, 99, 255, 0.22);
}

.imogirls-filter-reset {
  color: var(--imodirect-blue);
  background: rgba(37, 99, 255, 0.08);
  border: 1px solid rgba(37, 99, 255, 0.22);
}

.imogirls-filter-reset[hidden] {
  display: none !important;
}

.imogirls-posts {
  background: #ffffff;
  padding: 38px 0 clamp(56px, 8vw, 96px);
}

.imogirls-section-head {
  margin-bottom: 24px;
}

.imogirls-section-head p {
  margin: 0 0 6px;
  color: var(--imodirect-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.imogirls-section-head h2 {
  margin: 0;
  color: #050a12;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.imogirls-featured-grid,
.imogirls-secondary-grid,
.imogirls-tile-grid {
  display: grid;
  gap: 24px;
}

.imogirls-featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 26px;
}

.imogirls-secondary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
}

.imogirls-tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.imogirls-tile-grid:empty,
.imogirls-secondary-grid:empty,
.imogirls-featured-grid.is-empty,
.imogirls-secondary-grid.is-empty,
.imogirls-tile-grid.is-empty {
  display: none;
}

.imogirls-card.is-filtered-out {
  display: none;
}

.imogirls-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.imogirls-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 72px rgba(37, 99, 255, 0.16);
  border-color: rgba(37, 99, 255, 0.26);
}

.imogirls-card__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eaf2ff;
}

.imogirls-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.imogirls-card:hover .imogirls-card__image img {
  transform: scale(1.035);
}

.imogirls-card--large .imogirls-card__image {
  height: clamp(250px, 25vw, 330px);
}

.imogirls-card--medium .imogirls-card__image {
  height: 150px;
}

.imogirls-card--tile .imogirls-card__image {
  height: 145px;
}

.imogirls-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px;
}

.imogirls-card--large .imogirls-card__content {
  padding: 24px;
}

.imogirls-card__meta,
.imogirls-modal__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.imogirls-card__tag,
.imogirls-modal__meta span:first-child {
  color: #ffffff;
  background: linear-gradient(135deg, var(--imodirect-cyan), var(--imodirect-blue));
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.imogirls-card__title {
  margin: 15px 0 0;
  color: #050a12;
  font-size: 1.1rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.imogirls-card--large .imogirls-card__title {
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
}

.imogirls-card__excerpt {
  margin: 14px 0 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
}

.imogirls-card__button {
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding: 0 16px;
  font-size: 0.88rem;
}

.imogirls-card__excerpt + .imogirls-card__button {
  margin-top: 20px;
}

.imogirls-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.imogirls-modal.is-open {
  display: flex;
}

.imogirls-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(10px);
}

.imogirls-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(90vh, 980px);
  overflow: auto;
  border-radius: 28px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  outline: none;
}

.imogirls-modal__close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(3, 7, 18, 0.82);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.imogirls-modal__cover {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: var(--imodirect-navy);
}

.imogirls-modal__body {
  padding: clamp(26px, 5vw, 54px);
}

.imogirls-modal__body h2 {
  margin: 16px 0 26px;
  color: #050a12;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.imogirls-modal__content {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding-bottom: 0 !important;
}

.imogirls-modal__content figure.kg-width-full,
.imogirls-modal__content figure.kg-width-wide {
  width: 100% !important;
  margin-left: 0 !important;
  transform: none !important;
}

.imogirls-modal__permalink {
  min-height: 46px;
  margin-top: 30px;
  padding: 0 18px;
}

.imogirls-empty-state {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: #ffffff;
  padding: 40px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.imogirls-empty-state h2 {
  margin: 0 0 10px;
  color: #050a12;
}

.imogirls-pagination {
  margin-top: 34px;
}

.imogirls-pagination .l-wrapper {
  width: 100%;
  padding: 0;
}

.imogirls-pagination .m-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 0;
}

.imogirls-pagination .m-pagination__text {
  color: #64748b;
  font-weight: 700;
}

.imogirls-pagination .m-icon-button {
  background: linear-gradient(135deg, var(--imodirect-cyan), var(--imodirect-blue));
  color: #ffffff;
}

.imodirect-footer {
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 229, 255, 0.1), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(37, 99, 255, 0.12), transparent 30%),
    #050a12;
  color: var(--imodirect-white);
  padding: clamp(54px, 6vw, 86px) 0 30px;
  overflow-x: clip;
}

.imodirect-footer__inner {
  width: min(1540px, calc(100% - 112px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 1.02fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr) minmax(230px, 0.9fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
  box-sizing: border-box;
}

.imodirect-footer__logo {
  display: inline-flex;
  margin: 0 0 34px;
}

.imodirect-footer__logo img {
  width: min(330px, 74vw);
  max-height: 92px;
  object-fit: contain;
  display: block;
}

.imodirect-footer__brand p {
  max-width: 440px;
  margin: 0 0 28px;
  color: rgba(248, 250, 252, 0.74);
  font-size: clamp(1.04rem, 1.1vw, 1.28rem);
  line-height: 1.65;
}

.imodirect-footer__contactlines,
.imodirect-footer__certs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.imodirect-footer__contactlines {
  display: grid;
  gap: 16px;
  color: rgba(248, 250, 252, 0.62);
  font-size: clamp(0.98rem, 1vw, 1.12rem);
}

.imodirect-footer__contactlines li,
.imodirect-footer__certs li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.imodirect-footer__contactlines a {
  color: inherit;
}

.imodirect-footer__line-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--imodirect-cyan);
}

.imodirect-footer__line-icon svg,
.imodirect-footer__cert-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.imodirect-footer__certs {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.imodirect-footer__cert-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--imodirect-cyan);
  background: rgba(0, 229, 255, 0.09);
  border: 1px solid rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.08);
}

.imodirect-footer__cert-icon svg {
  width: 26px;
  height: 26px;
}

.imodirect-footer__certs strong,
.imodirect-footer__certs small {
  display: block;
}

.imodirect-footer__certs strong {
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.25;
}

.imodirect-footer__certs small {
  color: rgba(248, 250, 252, 0.58);
  font-size: 0.96rem;
  line-height: 1.3;
}

.imodirect-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.imodirect-footer__column h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.imodirect-footer__column a,
.imodirect-footer__column span,
.imodirect-footer__legal p {
  color: rgba(248, 250, 252, 0.66);
  font-size: clamp(0.98rem, 1vw, 1.12rem);
  line-height: 1.35;
}

.imodirect-footer__column a:hover,
.imodirect-footer__contactlines a:hover,
.imodirect-footer__bottom a:hover {
  color: var(--imodirect-cyan);
}

.imodirect-footer__legal p {
  width: 100%;
  max-width: 390px;
  margin: 26px 0 0;
  color: rgba(148, 163, 184, 0.72);
  line-height: 1.55;
  overflow-wrap: normal;
}

.imodirect-footer__bottom {
  width: min(1540px, calc(100% - 112px));
  margin: 76px auto 0;
  padding-top: 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.imodirect-footer__bottom nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(24px, 4vw, 58px);
}

.imodirect-footer__bottom a {
  color: rgba(148, 163, 184, 0.78);
}

.l-content,
.l-content.in-post,
.main-wrap {
  background: #ffffff;
}

body.post-template .m-hero,
body.page-template .m-hero {
  background-color: #ffffff;
}

@media (max-width: 1320px) {
  .imodirect-footer__inner {
    width: min(1180px, calc(100% - 56px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 70px;
  }

  .imodirect-footer__bottom {
    width: min(1180px, calc(100% - 56px));
  }
}

@media (max-width: 1100px) {
  .imogirls-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imodirect-footer__inner {
    width: min(1180px, calc(100% - 56px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imodirect-footer__bottom {
    width: min(1180px, calc(100% - 56px));
  }
}

@media (max-width: 860px) {
  .imogirls-hero__grid,
  .imogirls-featured-grid,
  .imogirls-tile-grid {
    grid-template-columns: 1fr;
  }

  .imogirls-hero__grid {
    gap: 34px;
  }

  .imogirls-hero h1 {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .imogirls-wrap,
  .imogirls-header__inner,
  .imodirect-footer__inner,
  .imodirect-footer__bottom {
    width: min(100% - 28px, 1180px);
  }

  .imogirls-header__inner {
    min-height: 82px;
    gap: 12px;
  }

  .imogirls-header__brand img {
    width: 160px;
    max-height: 62px;
  }

  .imodirect-footer__logo img {
    width: min(285px, 82vw);
    max-height: 82px;
  }

  .imogirls-header__actions {
    gap: 8px;
  }

  .imogirls-header__search {
    width: 44px;
    padding: 0;
  }

  .imogirls-header__search span:last-child {
    display: none;
  }

  .imogirls-header__contact {
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.85rem;
  }

  .imogirls-hero {
    padding-top: 34px;
  }

  .imogirls-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .imogirls-button {
    width: 100%;
  }

  .imogirls-secondary-grid {
    grid-template-columns: 1fr;
  }

  .imogirls-card--large .imogirls-card__image,
  .imogirls-card--medium .imogirls-card__image,
  .imogirls-card--tile .imogirls-card__image {
    height: 220px;
  }

  .imogirls-modal {
    padding: 10px;
  }

  .imogirls-modal__dialog {
    border-radius: 20px;
    max-height: 92vh;
  }

  .imogirls-modal__close {
    width: 40px;
    height: 40px;
  }

  .imodirect-footer__inner,
  .imodirect-footer__bottom {
    grid-template-columns: 1fr;
  }

  .imodirect-footer__bottom {
    display: grid;
    justify-content: start;
  }

  .imodirect-footer__bottom nav {
    justify-content: flex-start;
    gap: 18px;
  }
}

/* Ghost page option: when title and feature image are hidden, keep clean spacing below the dark header. */
.page-without-hero .l-wrapper.in-post {
  padding-top: 72px;
}
