/* ─── HOMEPAGE EDITORIALE (front-page.twig) ─────────────────────────────── */

/* wrapper principale dentro .em-with-sidebar */
.em-home-main {
  min-width: 0;
}

/* hero ibrido stile to_copy.jsx */
.em-hero-home {
  padding: 24px 0 20px;
  background: var(--bg-primary);
}

.em-hero-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  grid-template-areas:
    "left right"
    "newsletter right";
  column-gap: 40px;
  row-gap: 22px;
  align-items: start;
}

.em-hero-home-left {
  grid-area: left;
  position: relative;
  padding-right: 20px;
}

.em-hero-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.em-hero-home-kicker-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.em-hero-home-title {
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.em-hero-home-title em {
  color: var(--brand-primary);
  font-style: italic;
}

.em-hero-home-subtitle {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 15px;
  max-width: 420px;
}

.em-hero-home-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.em-hero-home-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.em-hero-home-points li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  background: var(--brand-subtle);
  border: 1px solid color-mix(in srgb, var(--brand-light) 50%, transparent);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-subtle) 60%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border-radius:50%;
  color: var(--brand-mid);
}

.em-hero-home-newsletter {
  grid-area: newsletter;
  padding: 18px 18px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.em-hero-home-newsletter-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 10px 0 12px;
}

.em-hero-home-newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.em-hero-home-newsletter-btn {
  padding: 10px 12px;
  border: none;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}

.em-hero-home-newsletter-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.em-input {
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-default);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  flex: 1;
  min-width: 0;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}

.em-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 16%, transparent);
  background: var(--bg-surface);
}

.em-hero-home-newsletter-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 7px;
}

.em-hero-home-right {
  grid-area: right;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.em-hero-carousel-main {
  position: relative;
  min-height: 260px;
  flex: 1;
  overflow: hidden;
}

.em-hero-carousel-main-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg,
      #0f2027 0%,
      #1b4332 50%,
      #2d6a4f 100%);
  transform: scale(1.02);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.em-hero-carousel-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.5) 55%,
      rgba(0, 0, 0, 0.14) 100%);
}

.em-hero-carousel-main-link {
  position: relative;
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.em-hero-carousel-main-content {
  position: absolute;
  inset: 0;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

.em-hero-carousel-main-top {
  margin-bottom: 10px;
}

.em-hero-carousel-main-title {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.em-hero-carousel-main-excerpt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.em-hero-carousel-main-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.em-hero-carousel-main-cta {
  margin-left: auto;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.em-hero-carousel-main:hover .em-hero-carousel-main-bg.is-active {
  transform: scale(1.06);
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEW: Slider Elements (Dots, Progress Bar, Active states) 
   ───────────────────────────────────────────────────────────────────────────── */

#em-hero-main-bgs,
#em-hero-main-contents {
  position: absolute;
  inset: 0;
}

#em-hero-main-bgs .em-hero-carousel-main-bg {
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#em-hero-main-bgs .em-hero-carousel-main-bg.is-active {
  opacity: 1;
}

#em-hero-main-contents .em-hero-carousel-main-link {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 2;
}

#em-hero-main-contents .em-hero-carousel-main-link.is-active {
  opacity: 1;
  pointer-events: auto;
}

.em-mobile-only {
  display: none;
}

.em-desktop-only {
  display: inline-flex;
}

@media (max-width: 640px) {
  .em-desktop-only {
    display: none !important;
  }

  .em-mobile-only {
    display: flex !important;
  }

}

.em-hero-carousel-indicators {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
}

.em-hero-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius:3px;
  border: none;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.em-hero-carousel-dot.is-active {
  width: 22px;
  background: #fff;
}

.em-hero-carousel-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 4;
}

.em-hero-carousel-progress-bar {
  height: 100%;
  background: var(--brand-light);
  transform-origin: left;
  transform: scaleX(0);
}

/* thumbs sotto l’articolo principale */
.em-hero-carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.em-hero-carousel-thumb {
  position: relative;
  min-height: 120px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.em-hero-carousel-thumb-link {
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.em-hero-carousel-thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #2d1b69 0%, #1b4332 100%);
  transform: scale(1.01);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.em-hero-carousel-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.55) 55%,
      rgba(0, 0, 0, 0.24) 100%);
}

.em-hero-carousel-thumb-content {
  position: absolute;
  inset: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

.em-hero-carousel-thumb-cat {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.em-hero-carousel-thumb-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.em-hero-carousel-thumb-meta {
  margin-top: 6px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}

.em-hero-carousel-thumb:hover .em-hero-carousel-thumb-bg {
  transform: scale(1.05);
}

.em-hero-carousel-thumb {
  cursor: pointer;
}

.em-hero-carousel-thumb-meta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
}

/* strip "Top oggi" */
.em-home-strip {
  margin-top: 24px;
}

.em-home-strip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.em-home-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.em-home-strip-icon {
  font-size: 14px;
  color: var(--accent-primary);
}

.em-home-strip-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.em-home-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.em-home-top-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.em-home-top-card:hover {
  transform: translateY(-3px);
}

.em-home-top-link {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.em-home-top-image {
  width: 90px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.em-home-top-body {
  flex: 1;
  padding: 13px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.em-home-top-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.012em;
  margin-top: 6px;
}

.em-home-top-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* griglia "Esplora per argomento" */
.em-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.em-explore-card {
  --em-explore-bg: var(--bg-subtle);
  --em-explore-hover-bg: var(--bg-muted);
  --em-explore-border: var(--border-subtle);
  --em-explore-icon-bg: var(--bg-surface);
  --em-explore-icon-color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--em-explore-border);
  background: var(--em-explore-bg);
  text-decoration: none;
  color: inherit;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}

.em-explore-card--primary {
  grid-column: span 2;
  --em-explore-bg: var(--brand-subtle);
  --em-explore-hover-bg: color-mix(in srgb, var(--brand-subtle) 78%, white);
  --em-explore-border: color-mix(in srgb, var(--brand-light) 40%, transparent);
}

.em-explore-card:hover {
  background: var(--em-explore-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.em-explore-icon {
  width: 38px;
  height: 38px;
  background: var(--em-explore-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--em-explore-icon-color);
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.em-explore-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.em-explore-card--mercati .em-explore-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232D6A4F' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E");
}

.em-explore-card--etf .em-explore-icon::before,
.em-explore-card--risparmio .em-explore-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232D6A4F' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}

.em-explore-card--guide .em-explore-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232D6A4F' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

.em-explore-body {
  min-width: 0;
}

.em-explore-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.em-explore-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* colori specifici per le explore-card (come nel JSX) */
.em-explore-card--mercati {
  --em-explore-bg: var(--brand-subtle);
  --em-explore-hover-bg: color-mix(in srgb, var(--brand-subtle) 78%, white);
  --em-explore-border: color-mix(in srgb, var(--brand-light) 40%, transparent);
}

.em-explore-card--etf {
  --em-explore-bg: var(--accent-light);
  --em-explore-hover-bg: color-mix(in srgb, var(--accent-light) 82%, white);
  --em-explore-border: color-mix(in srgb, var(--accent-primary) 35%, transparent);
  --em-explore-icon-color: var(--accent-primary);
}

.em-explore-card--risparmio {
  --em-explore-bg: #dce9f7;
  --em-explore-hover-bg: #d1e1f2;
  --em-explore-border: color-mix(in srgb, #4f83b3 28%, transparent);
  --em-explore-icon-color: #365b86;
}

.em-explore-card--guide {
  --em-explore-bg: #f4ddd2;
  --em-explore-hover-bg: #edd1c4;
  --em-explore-border: color-mix(in srgb, #b97854 24%, transparent);
  --em-explore-icon-color: #8f5336;
}

html[data-theme="dark"] .em-explore-card--risparmio {
  --em-explore-bg: #172333;
  --em-explore-hover-bg: #203149;
  --em-explore-border: color-mix(in srgb, #6aa0d9 28%, transparent);
  --em-explore-icon-bg: rgba(255, 255, 255, 0.06);
  --em-explore-icon-color: #92bce8;
}

html[data-theme="dark"] .em-explore-card--guide {
  --em-explore-bg: #2b1f1a;
  --em-explore-hover-bg: #362822;
  --em-explore-border: color-mix(in srgb, #d28b62 24%, transparent);
  --em-explore-icon-bg: rgba(255, 255, 255, 0.06);
  --em-explore-icon-color: #f1ba96;
}

/* ─── ETF & Fondi layout (hero + 2 card) ───────────────────────────────── */
.em-etf-section .em-section-divider {
  margin-bottom: 20px;
}

.em-etf-section {
  margin-top: 0px !important;
}

.em-etf-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.em-etf-main-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.em-etf-main-image {
  height: 210px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg,
      #2c3e50 0%,
      #3498db 100%);
  position: relative;
}

.em-etf-main-image .em-cat-pill {
  position: absolute;
  top: 14px;
  left: 14px;
}

.em-etf-main-body {
  padding: 18px 20px 20px;
}

.em-etf-main-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.32;
  letter-spacing: -0.018em;
  margin-bottom: 10px;
}

.em-etf-main-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.em-etf-main-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

.em-etf-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.em-etf-side-card {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.em-etf-side-card .em-card-link {
  display: flex;
}

.em-etf-side-image {
  width: 110px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #3d1a08 0%, #c8993e 100%);
}

.em-etf-side-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.em-etf-side-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.38;
  letter-spacing: -0.01em;
  margin-top: 8px;
  margin-bottom: 4px;
}

.em-etf-side-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Brand banner "La promessa di easyinvesting" ──────────────────────────── */
.em-brand-banner {
  position: relative;
  padding: 26px 30px;
  background: var(--brand-primary);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: 24px;
  overflow: hidden;
}

.em-brand-banner::before,
.em-brand-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.em-brand-banner::before {
  width: 200px;
  height: 200px;
  right: -60px;
  top: -60px;
}

.em-brand-banner::after {
  width: 140px;
  height: 140px;
  right: -10px;
  top: -10px;
  border-color: rgba(255, 255, 255, 0.08);
}

.em-brand-banner-copy {
  position: relative;
}

.em-brand-banner-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.em-brand-banner-title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.em-brand-banner-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.em-brand-banner-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.em-brand-banner-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.em-brand-banner-point span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.em-brand-banner-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.em-brand-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  z-index: 2;
}
.em-brand-banner-link:hover {
  color:inherit;
  background-color: rgba(255, 255, 255, 0.24);
}
/* ─── Mercati & Economia + Guide stack ─────────────────────────────────── */
.em-markets-guides-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

.em-markets-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.em-markets-row {
  border-bottom: 1px solid var(--border-subtle);
}

.em-markets-row:last-child {
  border-bottom: none;
}

.em-markets-row .em-card-link {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
}

.em-markets-thumb {
  width: 56px;
  height: 56px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  flex-shrink: 0;
}

.em-markets-body {
  flex: 1;
  min-width: 0;
}

.em-markets-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 2px;
}

.em-markets-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.em-markets-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.em-guides-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.em-guides-card {
  background: var(--bg-surface);
  overflow: hidden;
  border-left: 2px solid var(--brand-primary);
}

.em-guides-card .em-card-link {
  display: flex;
}

.em-guides-image {
  width: 110px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #3d1a08 0%, #c8993e 100%);
}

.em-guides-body {
  padding: 14px 18px;
}

.em-guides-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-top: 8px;
  margin-bottom: 6px;
}

.em-guides-excerpt {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.em-guides-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.em-guides-all-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1.5px solid color-mix(in srgb, var(--brand-light) 40%, transparent);
  background: var(--brand-subtle);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-mid);
  text-decoration: none;
}

/* ─── Newsletter mid-page ───────────────────────────────────────────────── */
.em-newsletter-mid {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1.4fr minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
}

.em-newsletter-mid-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.em-newsletter-mid-icon {
  width: 32px;
  height: 32px;
  background: var(--brand-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-newsletter-mid-kicker span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

.em-newsletter-mid-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.em-newsletter-mid-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.68;
}

.em-newsletter-mid-formwrap {
  min-width: 0;
}

.em-newsletter-mid-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.em-newsletter-mid-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.em-newsletter-mid-btn {
  padding: 12px;
  border: none;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}

.em-newsletter-mid-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* Single article restyle inside sidebar layout */
.em-single-with-sidebar .em-single-hero {
  grid-column: 1 / -1;
}

.em-single-with-sidebar .em-single-body {
  padding: 40px 0 0;
  background: transparent;
}

.em-with-sidebar.em-archive-wrapper {
  background: var(--bg-primary);
}

