/* EmbWin Studio UX — light-first, themeable */

:root,
html[data-emb-theme="light"] {
  --emb-ink: #1a2332;
  --emb-navy: #1f3a5f;
  --emb-accent: #0e7490;
  --emb-accent-soft: rgba(14, 116, 144, 0.12);
  --emb-stitch: #0e7490;
  --emb-warn: #c2410c;
  --emb-muted: #5b6b7c;
  --emb-linen: #eef4f8;
  --emb-linen-2: #e2ebf2;
  --emb-paper: #f7fafc;
  --emb-card: #ffffff;
  --emb-line: rgba(31, 58, 95, 0.12);
  --emb-shadow: 0 12px 32px rgba(31, 58, 95, 0.08);
  --emb-chip-bg: rgba(255, 255, 255, 0.96);
  --emb-chip-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  --emb-hero-bg:
    radial-gradient(900px 420px at 12% -20%, rgba(56, 189, 248, 0.28), transparent 55%),
    radial-gradient(700px 380px at 92% 0%, rgba(45, 212, 191, 0.22), transparent 50%),
    linear-gradient(165deg, #e8f4fb 0%, #f4fbfa 55%, #f7fafc 100%);
  --emb-hero-fg: #1a2332;
  --emb-hero-muted: rgba(26, 35, 50, 0.72);
  --emb-radius: 12px;
  --emb-font-display: "Fraunces", Georgia, serif;
  --emb-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

html[data-emb-theme="dark"] {
  --emb-ink: #f1f5f9;
  --emb-navy: #e2e8f0;
  --emb-accent: #5eead4;
  --emb-accent-soft: rgba(94, 234, 212, 0.18);
  --emb-stitch: #5eead4;
  --emb-warn: #fb923c;
  --emb-muted: #cbd5e1;
  --emb-linen: #0b1220;
  --emb-linen-2: #15202b;
  --emb-paper: #0f172a;
  --emb-card: #1e293b;
  --emb-line: rgba(226, 232, 240, 0.16);
  --emb-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  --emb-chip-bg: rgba(30, 41, 59, 0.96);
  --emb-chip-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  --emb-hero-bg:
    radial-gradient(900px 420px at 12% -20%, rgba(94, 234, 212, 0.2), transparent 55%),
    radial-gradient(700px 380px at 92% 0%, rgba(56, 189, 248, 0.16), transparent 50%),
    linear-gradient(165deg, #0f172a 0%, #15202b 60%, #0b1220 100%);
  --emb-hero-fg: #f8fafc;
  --emb-hero-muted: rgba(248, 250, 252, 0.78);
  color-scheme: dark;
}

body.embwin-studio {
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(900px 400px at 94% 0%, rgba(45, 212, 191, 0.1), transparent 52%),
    linear-gradient(180deg, var(--emb-linen) 0%, var(--emb-paper) 240px, var(--emb-paper) 100%);
  color: var(--emb-ink);
  font-family: var(--emb-font-body);
  transition: background 0.25s ease, color 0.25s ease;
}

html[data-emb-theme="dark"] body.embwin-studio {
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(45, 212, 191, 0.08), transparent 55%),
    radial-gradient(900px 400px at 94% 0%, rgba(56, 189, 248, 0.06), transparent 52%),
    linear-gradient(180deg, var(--emb-linen) 0%, var(--emb-paper) 100%);
}

body.embwin-studio .magpal-site-container {
  background: transparent;
}

/* ——— Theme toggle ——— */
.embwin-theme-toggle {
  position: fixed;
  z-index: 9999;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--emb-line);
  border-radius: 999px;
  background: var(--emb-card);
  color: var(--emb-ink);
  box-shadow: var(--emb-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.embwin-theme-toggle:hover {
  transform: scale(1.05);
  color: var(--emb-accent);
}

/* ——— Hero ——— */
.embwin-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.25rem;
  padding: clamp(2.4rem, 5vw, 4.2rem) 1.25rem;
  background: var(--emb-hero-bg);
  color: var(--emb-hero-fg);
  border-bottom: 1px solid var(--emb-line);
}

.embwin-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-radius: 50%;
  border: 1px solid rgba(14, 116, 144, 0.18);
  box-shadow: inset 0 0 0 28px rgba(45, 212, 191, 0.08);
  pointer-events: none;
  animation: embwin-orbit 14s ease-in-out infinite;
}

@keyframes embwin-orbit {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(-12px, -18px, 0) scale(1.04); opacity: 1; }
}

.embwin-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.embwin-hero__brand {
  font-family: var(--emb-font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  line-height: 1.05;
  color: var(--emb-navy);
  /* solid color only — clipped gradients were unreadable on dark */
  background: none;
  -webkit-text-fill-color: currentColor;
}

.embwin-hero__title {
  font-family: var(--emb-font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--emb-hero-fg);
}

.embwin-hero__lede {
  margin: 0 auto 1.35rem;
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--emb-hero-muted);
}

.embwin-hero__trust {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--emb-muted);
}

/* Quick explore chips — keep people moving deeper */
.embwin-explore {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto 1.15rem;
  padding: 0 1rem;
}

.embwin-explore__chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--emb-line);
  background: var(--emb-card);
  color: var(--emb-ink) !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.embwin-explore__chip:hover {
  transform: translateY(-1px);
  border-color: var(--emb-accent);
  background: var(--emb-accent-soft);
}

.embwin-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.embwin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.embwin-btn:hover {
  transform: translateY(-1px);
}

.embwin-btn--primary {
  background: var(--emb-accent);
  color: #fff !important;
}

.embwin-btn--primary:hover {
  background: #0c5f75;
  color: #fff !important;
}

html[data-emb-theme="dark"] .embwin-btn--primary {
  color: #0f141b !important;
}

html[data-emb-theme="dark"] .embwin-btn--primary:hover {
  background: #5eead4;
  color: #0f141b !important;
}

.embwin-btn--ghost {
  background: transparent;
  color: var(--emb-navy) !important;
  border: 1px solid var(--emb-line);
}

.embwin-btn--ghost:hover {
  background: var(--emb-accent-soft);
  color: var(--emb-navy) !important;
}

/* ——— Strips ——— */
.embwin-strip {
  max-width: 1180px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.embwin-strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.embwin-strip__title {
  font-family: var(--emb-font-display);
  font-size: 1.45rem;
  margin: 0;
  color: var(--emb-navy);
}

.embwin-strip__more {
  font-weight: 700;
  color: var(--emb-stitch) !important;
  text-decoration: none !important;
}

.embwin-strip__note {
  color: var(--emb-muted);
  font-size: 0.92rem;
}

.embwin-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .embwin-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .embwin-strip__grid { grid-template-columns: 1fr; }
}

.embwin-guide-card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--emb-line);
  border-radius: var(--emb-radius);
  background: var(--emb-card);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.embwin-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--emb-shadow);
  border-color: rgba(14, 116, 144, 0.35);
}

.embwin-guide-card__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emb-stitch);
  margin-bottom: 0.35rem;
}

.embwin-guide-card__title {
  display: block;
  color: var(--emb-ink);
  font-weight: 700;
  line-height: 1.3;
  font-size: 0.98rem;
}

.embwin-picks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.embwin-pick {
  display: block;
  text-decoration: none !important;
  border-radius: var(--emb-radius);
  overflow: hidden;
  background: var(--emb-card);
  border: 1px solid var(--emb-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.embwin-pick:hover {
  transform: translateY(-3px);
  box-shadow: var(--emb-shadow);
}

.embwin-pick__media {
  display: block;
  aspect-ratio: 1;
  background: center/cover no-repeat;
}

.embwin-pick--text {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 0.75rem 0.85rem;
}

.embwin-pick--text .embwin-pick__title {
  padding: 0;
}

.embwin-pick__title {
  display: block;
  padding: 0.55rem 0.65rem 0.7rem;
  color: var(--emb-ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
}

/* MagPal grid: no empty grey “no image” blocks */
body.embwin-studio .magpal-grid-post-thumbnail-default {
  display: none !important;
}

/* ——— One brand header: hide MagPal EmbWin logo on home (hero is the brand) ——— */
body.embwin-studio-home .magpal-header-layout-logo,
body.embwin-studio-home .site-branding,
body.embwin-studio-home .magpal-logo-info,
body.embwin-studio-home .magpal-site-title,
body.embwin-studio-home .magpal-site-description {
  display: none !important;
}

body.embwin-studio-home #magpal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--emb-paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--emb-line);
  box-shadow: none;
}

body.embwin-studio-home .magpal-header-inside-container {
  justify-content: flex-end;
  min-height: 56px;
}

/* ——— Pinterest-like design wall ——— */
body.embwin-studio .magpal-posts-wrapper .magpal-outer-wrapper {
  max-width: 1280px;
}

body.embwin-studio .magpal-posts-header {
  margin: 0.5rem 0 1rem;
}

body.embwin-studio-home .magpal-posts-header {
  margin: 1.25rem 0 1rem;
  text-align: left;
}

body.embwin-studio-home .magpal-posts-heading,
body.embwin-studio .magpal-posts-wrapper .magpal-posts-heading {
  font-family: var(--emb-font-display) !important;
  color: var(--emb-navy) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
  text-align: left !important;
  background: transparent !important;
}

body.embwin-studio-home .magpal-posts-heading .magpal-posts-heading-inside,
body.embwin-studio .magpal-posts-wrapper .magpal-posts-heading .magpal-posts-heading-inside {
  display: inline-block !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: var(--emb-navy) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* Hide old mid-page email widget + its MagPal title bar */
body.embwin-studio-home .magpal-home-fullwidth-widgets,
body.embwin-studio-home #magpal-home-fullwidth-widgets,
body.embwin-studio-home .magpal-fullwidth-widgets-outer-wrapper,
body.embwin-studio-home #custom_html-6,
body.embwin-studio-home .widget_custom_html.magpal-main-widget,
body.embwin-studio-home .embwin-header-wrapper {
  display: none !important;
}

/* ——— Subscribe (under hero) ——— */
.embwin-subscribe {
  max-width: 1180px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.embwin-subscribe__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--emb-line);
  border-radius: 16px;
  background: var(--emb-card);
  box-shadow: var(--emb-shadow);
}

.embwin-subscribe__title {
  margin: 0 0 0.2rem;
  font-family: var(--emb-font-display);
  font-size: 1.25rem;
  color: var(--emb-navy);
}

.embwin-subscribe__lede {
  margin: 0;
  color: var(--emb-muted);
  font-size: 0.95rem;
}

.embwin-subscribe__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 420px;
  justify-content: flex-end;
}

.embwin-subscribe__form input[type="text"],
.embwin-subscribe__form input[type="email"] {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--emb-line);
  border-radius: 999px;
  background: var(--emb-paper);
  color: var(--emb-ink);
  font: inherit;
  min-width: 120px;
  flex: 1 1 120px;
}

.embwin-subscribe__form input[type="email"] {
  flex: 1 1 180px;
}

.embwin-subscribe__btn {
  border: 0;
  cursor: pointer;
}

.embwin-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Footer: EmbWin only, no ThemesDNA credit ——— */
body.embwin-studio .magpal-credit,
body.embwin-studio .magpal-credit a {
  display: none !important;
}

body.embwin-studio .magpal-copyright-area-inside-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: center;
  color: var(--emb-muted);
  font-size: 0.92rem;
}

body.embwin-studio .magpal-copyright,
body.embwin-studio .magpal-copyright a {
  color: var(--emb-muted) !important;
  text-decoration: none !important;
}

body.embwin-studio #magpal-copyright-area,
body.embwin-studio .magpal-copyright-area-inside {
  background: var(--emb-linen);
  border-top: 1px solid var(--emb-line);
  padding: 1.1rem 1rem;
}

body.embwin-studio .embwin-footer-note {
  color: var(--emb-muted);
  font-size: 0.9rem;
}

/* Load more — engagement without infinite-scroll cost */
.embwin-loadmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 1.5rem 0 0.75rem;
  padding: 0 1rem;
}

.embwin-loadmore__btn {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--emb-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--emb-shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}

html[data-emb-theme="dark"] .embwin-loadmore__btn {
  color: #0f141b;
}

.embwin-loadmore__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #0c5f75;
}

.embwin-loadmore__btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.embwin-loadmore__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--emb-muted);
}

body.embwin-studio .navigation.pagination.embwin-pagination--secondary {
  opacity: 0.72;
  font-size: 0.92rem;
}

/* Soft fade-in for new grid cards after Load more */
@keyframes embwin-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

body.embwin-studio .magpal-grid-post {
  animation: embwin-card-in 0.35s ease both;
}

/* Hide MagPal featured duplicate strip on home — our Picks + Top 100 cover discovery */
body.embwin-studio-home .magpal-featured-posts-area,
body.embwin-studio-home #magpal-featured-posts-area,
body.embwin-studio-home .magpal-top-wrapper-outer {
  display: none !important;
}

/* Stronger card hover = longer browse sessions */
body.embwin-studio .magpal-grid-post-inside:hover .magpal-grid-post-thumbnail-img {
  transform: scale(1.03);
}

body.embwin-studio .magpal-grid-post-thumbnail,
body.embwin-studio .magpal-grid-post-thumbnail-img {
  transition: transform 0.35s ease;
  overflow: hidden;
}

body.embwin-studio .magpal-grid-post-inside {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--emb-card);
  border: 0;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.embwin-studio .magpal-grid-post-inside:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(28, 36, 48, 0.14);
}

body.embwin-studio .magpal-grid-post-thumbnail,
body.embwin-studio .magpal-grid-post-thumbnail-link,
body.embwin-studio .magpal-grid-post-thumbnail-img {
  display: block;
  width: 100%;
}

body.embwin-studio .magpal-grid-post-thumbnail-img {
  border-radius: 0;
}

body.embwin-studio .magpal-grid-post-details {
  padding: 0.55rem 0.7rem 0.75rem !important;
}

body.embwin-studio .magpal-grid-post-title,
body.embwin-studio .magpal-grid-post-title a {
  font-family: var(--emb-font-body) !important;
  font-size: 0.88rem !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
  color: var(--emb-ink) !important;
}

/* Hide noisy meta on cards (Pinterest is image-first) */
body.embwin-studio .magpal-grid-post-details .magpal-grid-post-categories,
body.embwin-studio .magpal-grid-post-details .cat-links,
body.embwin-studio .magpal-grid-post-details .magpal-grid-cats,
body.embwin-studio .magpal-grid-post-snippet,
body.embwin-studio .magpal-grid-post-footer,
body.embwin-studio .magpal-grid-datebox,
body.embwin-studio .magpal-grid-post-thumbnail .magpal-grid-datebox {
  display: none !important;
}

.embwin-card-wrap {
  position: relative;
}

.embwin-pin-host {
  position: relative;
}

body.embwin-studio .magpal-grid-post-title {
  font-family: var(--emb-font-body);
  font-size: 0.98rem !important;
  line-height: 1.3;
}

body.embwin-studio .magpal-grid-post-snippet {
  display: none !important;
}

/* ——— Single: related + guide ——— */
.embwin-inline-guide {
  margin: 1.75rem 0 1.25rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--emb-accent);
  background: linear-gradient(90deg, var(--emb-accent-soft), transparent);
  border-radius: 0 var(--emb-radius) var(--emb-radius) 0;
}

.embwin-inline-guide__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emb-stitch);
}

.embwin-inline-guide__title {
  margin: 0 0 0.35rem;
  font-family: var(--emb-font-display);
  font-size: 1.2rem;
}

.embwin-inline-guide__title a {
  color: var(--emb-navy) !important;
  text-decoration: none !important;
}

.embwin-inline-guide__text {
  margin: 0;
  color: var(--emb-muted);
}

.embwin-related {
  margin: 2rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--emb-line);
}

.embwin-related__title {
  font-family: var(--emb-font-display);
  font-size: 1.4rem;
  margin: 0 0 0.9rem;
  color: var(--emb-navy);
}

.embwin-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .embwin-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.embwin-related__card {
  display: block;
  text-decoration: none !important;
  border: 1px solid var(--emb-line);
  border-radius: var(--emb-radius);
  overflow: hidden;
  background: var(--emb-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.embwin-related__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--emb-shadow);
}

.embwin-related__media {
  display: block;
  aspect-ratio: 1;
  background: center/cover no-repeat;
}

.embwin-related__card--text {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0.7rem 0.8rem;
}

.embwin-related__card--text .embwin-related__name {
  padding: 0;
}

.embwin-related__name {
  display: block;
  padding: 0.55rem 0.65rem 0.7rem;
  color: var(--emb-ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Soften loud promotional banners a bit without removing monetization */
body.embwin-studio .magpal-header-inside {
  backdrop-filter: saturate(1.05);
}

/* ========== Creative headers (MagPal → EmbWin) ========== */

/* MagPal paints black on .magpal-header-inside — override that layer */
body.embwin-studio #magpal-header,
body.embwin-studio .magpal-site-header,
body.embwin-studio #magpal-head-content,
body.embwin-studio .magpal-header-inside,
body.embwin-studio .magpal-header-inside-content,
body.embwin-studio .magpal-header-outer-wrapper,
body.embwin-studio .magpal-header-inside-container,
body.embwin-studio .magpal-primary-menu-container,
body.embwin-studio .magpal-primary-menu-container-inside {
  background: #f7fafc !important;
  background-color: #f7fafc !important;
  background-image: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%) !important;
  border-bottom: 1px solid rgba(31, 58, 95, 0.12) !important;
  box-shadow: 0 6px 20px rgba(31, 58, 95, 0.06) !important;
  color: #1a2332 !important;
}

html[data-emb-theme="dark"] body.embwin-studio #magpal-header,
html[data-emb-theme="dark"] body.embwin-studio .magpal-site-header,
html[data-emb-theme="dark"] body.embwin-studio #magpal-head-content,
html[data-emb-theme="dark"] body.embwin-studio .magpal-header-inside,
html[data-emb-theme="dark"] body.embwin-studio .magpal-header-inside-content,
html[data-emb-theme="dark"] body.embwin-studio .magpal-header-outer-wrapper,
html[data-emb-theme="dark"] body.embwin-studio .magpal-header-inside-container,
html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-menu-container,
html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-menu-container-inside {
  background: #1a222d !important;
  background-color: #1a222d !important;
  background-image: none !important;
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  color: #e8eef4 !important;
}

/* Brand title — high contrast on light header */
body.embwin-studio .magpal-site-title,
body.embwin-studio .magpal-site-title a,
body.embwin-studio .magpal-site-title a:hover,
body.embwin-studio .magpal-site-title a:focus,
body.embwin-studio .magpal-site-title a:active {
  font-family: var(--emb-font-display) !important;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-transform: none !important;
  color: #1f3a5f !important;
  text-shadow: none !important;
}

body.embwin-studio .magpal-site-description {
  color: #5b6b7c !important;
  font-family: var(--emb-font-body) !important;
  text-transform: none !important;
  text-shadow: none !important;
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-site-title,
html[data-emb-theme="dark"] body.embwin-studio .magpal-site-title a {
  color: #e8eef4 !important;
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-site-description {
  color: #94a3b8 !important;
}

/* Primary nav — dark readable text on light bar */
body.embwin-studio .magpal-primary-nav-menu > li > a,
body.embwin-studio .magpal-primary-nav-menu a {
  font-family: var(--emb-font-body) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #1a2332 !important;
  text-shadow: none !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px !important;
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease;
}

body.embwin-studio .magpal-primary-nav-menu > li > a:hover,
body.embwin-studio .magpal-primary-nav-menu > li > a:focus,
body.embwin-studio .magpal-primary-nav-menu > li > a:active,
body.embwin-studio .magpal-primary-nav-menu .current-menu-item > a,
body.embwin-studio .magpal-primary-nav-menu .current_page_item > a {
  background: rgba(14, 116, 144, 0.12) !important;
  color: #0e7490 !important;
  text-shadow: none !important;
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-nav-menu > li > a,
html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-nav-menu a {
  color: #e8eef4 !important;
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-nav-menu > li > a:hover,
html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-nav-menu .current-menu-item > a,
html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-nav-menu .current_page_item > a {
  background: rgba(45, 212, 191, 0.16) !important;
  color: #2dd4bf !important;
}

body.embwin-studio .magpal-primary-nav-menu .sub-menu,
body.embwin-studio .magpal-primary-nav-menu .children {
  background: #ffffff !important;
  border: 1px solid rgba(31, 58, 95, 0.12) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(31, 58, 95, 0.12);
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-nav-menu .sub-menu,
html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-nav-menu .children {
  background: #1a222d !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

body.embwin-studio .magpal-primary-nav-menu .sub-menu a,
body.embwin-studio .magpal-primary-nav-menu .children a {
  color: #1a2332 !important;
  border-color: rgba(31, 58, 95, 0.1) !important;
  background: transparent !important;
  text-shadow: none !important;
}

body.embwin-studio .magpal-primary-nav-menu .sub-menu a:hover,
body.embwin-studio .magpal-primary-nav-menu .children a:hover {
  background: rgba(14, 116, 144, 0.12) !important;
  color: #0e7490 !important;
}

body.embwin-studio .magpal-header-icons a,
body.embwin-studio .magpal-primary-responsive-menu-icon {
  color: #1a2332 !important;
  border: 1px solid rgba(31, 58, 95, 0.14) !important;
  background: #ffffff !important;
  text-shadow: none !important;
}

body.embwin-studio .magpal-header-icons a:hover,
body.embwin-studio .magpal-primary-responsive-menu-icon:hover {
  background: #0e7490 !important;
  color: #ffffff !important;
  border-color: #0e7490 !important;
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-header-icons a,
html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-responsive-menu-icon {
  color: #e8eef4 !important;
  background: #121820 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

/* Page / post titles — drop MagPal blue bubble */
body.embwin-studio .entry-header-title {
  text-align: left !important;
  margin: 0.5rem 0 1rem !important;
}

body.embwin-studio .entry-header-title .entry-title,
body.embwin-studio .entry-header-title .entry-title a {
  font-family: var(--emb-font-display) !important;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  color: var(--emb-navy) !important;
  text-shadow: none !important;
  text-align: left !important;
}

body.embwin-studio .entry-header-title .entry-title .singular-entry-title-inside {
  display: inline !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  position: relative;
}

body.embwin-studio .entry-header-title .entry-title .singular-entry-title-inside::after {
  content: "";
  display: block;
  width: min(7rem, 40%);
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emb-accent), rgba(45, 212, 191, 0.35));
}

/* Latest Designs + section heads */
body.embwin-studio .magpal-posts-wrapper .magpal-posts-header::after {
  display: none !important;
}

body.embwin-studio-home .magpal-posts-heading,
body.embwin-studio .magpal-posts-wrapper .magpal-posts-heading,
body.embwin-studio-home .magpal-posts-heading .magpal-posts-heading-inside,
body.embwin-studio .magpal-posts-wrapper .magpal-posts-heading .magpal-posts-heading-inside {
  font-family: var(--emb-font-display) !important;
  color: var(--emb-navy) !important;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
  text-align: left !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.embwin-studio .magpal-posts-wrapper .magpal-posts-heading .magpal-posts-heading-inside {
  position: relative;
  padding-bottom: 0.45rem !important;
}

body.embwin-studio .magpal-posts-wrapper .magpal-posts-heading .magpal-posts-heading-inside::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emb-accent), transparent);
}

/* Our strip titles — stitch accent */
.embwin-strip__title {
  position: relative;
  padding-bottom: 0.4rem;
}

.embwin-strip__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emb-accent), rgba(56, 189, 248, 0.25));
}

.embwin-hero__brand {
  position: relative;
  padding-bottom: 0;
}

/* keep solid brand color — no transparent clip */
html[data-emb-theme="light"] .embwin-hero__brand {
  color: #1f3a5f !important;
  -webkit-text-fill-color: #1f3a5f !important;
  background: none !important;
}

html[data-emb-theme="dark"] .embwin-hero__brand {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  background: none !important;
}

/* Announcement / promo bar — EmbWin teal instead of loud blue */
body.embwin-studio .ancr-group.ancr-pos-top,
body.embwin-studio .ancr-group.ancr-sticky,
body.embwin-studio .ancr,
body.embwin-studio [class*="ancr-"] .ancr {
  background: linear-gradient(105deg, #0e7490 0%, #1f3a5f 55%, #0f766e 100%) !important;
  border: 0 !important;
  color: #f0fdfa !important;
}

body.embwin-studio .ancr a,
body.embwin-studio .ancr-group a,
body.embwin-studio .ancr button,
body.embwin-studio .ancr .ancr-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0e7490 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  border: 0 !important;
}

/* Widget titles (if any still show) */
body.embwin-studio .magpal-widget-title,
body.embwin-studio .magpal-widget-title .magpal-widget-title-inside {
  font-family: var(--emb-font-display) !important;
  color: var(--emb-navy) !important;
  text-shadow: none !important;
  background: transparent !important;
  text-align: left !important;
}

body.embwin-studio .magpal-widget-title .magpal-widget-title-inside {
  padding: 0 0 0.4rem !important;
  border-radius: 0 !important;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--emb-accent), transparent) 1;
}

/* MagPal surfaces follow EmbWin theme tokens */
html[data-emb-theme="dark"] body.embwin-studio,
html[data-emb-theme="dark"] body.embwin-studio.home,
html[data-emb-theme="dark"] body.embwin-studio.blog {
  background: var(--emb-paper) !important;
  color: var(--emb-ink) !important;
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-site-container,
html[data-emb-theme="dark"] body.embwin-studio .magpal-posts-wrapper,
html[data-emb-theme="dark"] body.embwin-studio .magpal-posts-wrapper-inside,
html[data-emb-theme="dark"] body.embwin-studio .magpal-outer-wrapper,
html[data-emb-theme="dark"] body.embwin-studio .magpal-main-wrapper,
html[data-emb-theme="dark"] body.embwin-studio .magpal-singular-wrapper,
html[data-emb-theme="dark"] body.embwin-studio .magpal-singular-content,
html[data-emb-theme="dark"] body.embwin-studio .magpal-post-content-wrapper,
html[data-emb-theme="dark"] body.embwin-studio .magpal-top-wrapper,
html[data-emb-theme="dark"] body.embwin-studio .magpal-featured-posts-area,
html[data-emb-theme="dark"] body.embwin-studio #magpal-content,
html[data-emb-theme="dark"] body.embwin-studio #magpal-main-wrapper,
html[data-emb-theme="dark"] body.embwin-studio .entry-content {
  background: var(--emb-paper) !important;
  background-color: var(--emb-paper) !important;
  color: var(--emb-ink);
}

html[data-emb-theme="dark"] body.embwin-studio #magpal-header,
html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-menu-container,
html[data-emb-theme="dark"] body.embwin-studio .magpal-footer,
html[data-emb-theme="dark"] body.embwin-studio #magpal-footer,
html[data-emb-theme="dark"] body.embwin-studio #magpal-copyright-area,
html[data-emb-theme="dark"] body.embwin-studio .magpal-copyright-area-inside {
  background: var(--emb-card) !important;
  color: var(--emb-ink);
  border-color: var(--emb-line);
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-grid-post,
html[data-emb-theme="dark"] body.embwin-studio .magpal-grid-post-inside,
html[data-emb-theme="dark"] body.embwin-studio .magpal-grid-post-details {
  background: var(--emb-card) !important;
  background-color: var(--emb-card) !important;
  border-color: var(--emb-line) !important;
  box-shadow: none !important;
  color: var(--emb-ink) !important;
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-grid-post-title,
html[data-emb-theme="dark"] body.embwin-studio .magpal-grid-post-title a {
  color: var(--emb-ink) !important;
}

html[data-emb-theme="dark"] body.embwin-studio .embwin-guide-card,
html[data-emb-theme="dark"] body.embwin-studio .embwin-pick,
html[data-emb-theme="dark"] body.embwin-studio .embwin-subscribe__inner,
html[data-emb-theme="dark"] body.embwin-studio .embwin-top-card,
html[data-emb-theme="dark"] body.embwin-studio .embwin-related__card,
html[data-emb-theme="dark"] body.embwin-studio .embwin-leaderboard__list,
html[data-emb-theme="dark"] body.embwin-studio .embwin-vote {
  background: var(--emb-card) !important;
  color: var(--emb-ink);
  border-color: var(--emb-line);
}

html[data-emb-theme="dark"] body.embwin-studio a {
  color: var(--emb-navy);
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-grid-post-title a,
html[data-emb-theme="dark"] body.embwin-studio .magpal-posts-heading,
html[data-emb-theme="dark"] body.embwin-studio .magpal-posts-heading .magpal-posts-heading-inside,
html[data-emb-theme="dark"] body.embwin-studio .magpal-site-title a {
  color: var(--emb-ink) !important;
  background: transparent !important;
  text-shadow: none !important;
}

html[data-emb-theme="dark"] body.embwin-studio .magpal-primary-nav a {
  color: var(--emb-ink) !important;
}

html[data-emb-theme="dark"] body.embwin-studio input,
html[data-emb-theme="dark"] body.embwin-studio textarea,
html[data-emb-theme="dark"] body.embwin-studio select {
  background: var(--emb-linen-2) !important;
  color: var(--emb-ink) !important;
  border-color: var(--emb-line) !important;
}

html[data-emb-theme="dark"] body.embwin-studio .embwin-vote-stack,
html[data-emb-theme="dark"] body.embwin-studio .embwin-vote-stack--bar {
  background: var(--emb-chip-bg) !important;
  color: var(--emb-ink) !important;
  border-color: var(--emb-line) !important;
}
