/**
 * GlobalMoneyMonitor PRIME v3.5.0 — Homepage editorial.
 * Isolated to homepage; external market widgets, plugins and advertisements
 * use their original markup/styles from the installed parent theme.
 */
.gmmprime-home-phase2 .gmm3-shell { padding-bottom: 10px; }
.gmmprime-home-phase2 .gmm3-pulse { margin: 0 0 25px; }
.gmmprime-home-phase2 .gmm3-quicknav { margin-top: 22px; }
.gmmprime-home-phase2 .gmm3-dashboard { margin-top: 29px; }
.gmmprime-home-phase2 .gmm3-latest { margin-top: 40px; }
.gmmprime-home-phase2 .gmm3-tools { margin-top: 38px; }

/* Section header: editorial hierarchy with purposeful whitespace. */
.gmmprime-editorial { margin-top: 12px; min-width: 0; }
.gmmprime-editorial__heading {
  display: flex; align-items: end; justify-content: space-between;
  gap: 28px; margin-bottom: 21px;
}
.gmmprime-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gmm-blue); font-size: 10px; font-weight: 900;
  letter-spacing: .145em; text-transform: uppercase;
}
.gmmprime-eyebrow__dot { width: 8px; height: 8px; border-radius: 99px; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.11); }
.gmmprime-editorial__heading h1,
.gmmprime-editorial__heading h2 {
  max-width: 960px; margin: 12px 0 0; color: var(--gmm-heading);
  font-size: clamp(29px,3.6vw,48px); line-height: 1.08;
  letter-spacing: -.05em; font-weight: 850; text-wrap: balance;
}
.gmmprime-editorial__heading p { max-width: 790px; margin: 10px 0 0; font-size: 14px; color: var(--gmm-muted); line-height: 1.65; }
.gmmprime-editorial__jump {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex: none; padding: 11px 14px; border: 1px solid var(--prime-border);
  border-radius: 10px; background: var(--gmm-surface); color: var(--gmm-blue);
  font-size: 12px; font-weight: 800; transition: background .2s ease, border-color .2s ease;
}
.gmmprime-editorial__jump:hover { background: var(--gmm-surface-3); border-color: var(--gmm-blue); }

/* Lead, three secondary reports and a text-first editorial rail. */
.gmmprime-editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, .98fr) minmax(246px, .75fr);
  align-items: stretch; gap: 14px;
}
.gmmprime-editorial__grid > * { min-width: 0; }
.gmmprime-editorial__lead .gmm3-story {
  display: flex; flex-direction: column; height: 100%; border-radius: 19px;
  box-shadow: var(--prime-card-shadow);
}
.gmmprime-editorial__lead .gmm3-story__media { aspect-ratio: 16 / 10; }
.gmmprime-editorial__lead .gmm3-story__body {
  display: flex; flex: 1; flex-direction: column; padding: 21px 22px 18px;
}
.gmmprime-editorial__lead .gmm3-story__title { font-size: clamp(22px,2.12vw,34px); line-height: 1.18; }
.gmmprime-editorial__lead .gmm3-story__excerpt { display: block; font-size: 13px; line-height: 1.62; }
.gmmprime-editorial__lead .gmm3-story__meta { margin-top: auto; padding-top: 16px; }

.gmmprime-editorial__secondary { display: grid; grid-template-rows: repeat(3, minmax(0,1fr)); gap: 12px; }
.gmmprime-editorial__secondary .gmm3-story {
  display: grid; grid-template-columns: 42% minmax(0,1fr);
  min-height: 0; border-radius: 14px;
}
.gmmprime-editorial__secondary .gmm3-story__media { height: 100%; min-height: 148px; }
.gmmprime-editorial__secondary .gmm3-story__body { min-width: 0; display: flex; flex-direction: column; padding: 12px 11px; }
.gmmprime-editorial__secondary .gmm3-story__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: clamp(12px,1.1vw,15px); line-height: 1.34; }
.gmmprime-editorial__secondary .gmm3-story__meta { margin-top: auto; padding-top: 8px; font-size: 10px; }
.gmmprime-editorial__secondary .gmm3-badge { font-size: 8px; padding: 3px 5px; align-self: flex-start; }

.gmmprime-editorial__rail-inner {
  height: 100%; min-height: 100%; display: flex; flex-direction: column;
  padding: 18px 16px; border: 1px solid var(--prime-border);
  border-radius: 15px; background: var(--gmm-surface);
  box-shadow: var(--prime-card-shadow);
}
.gmmprime-editorial__rail-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--gmm-line); }
.gmmprime-editorial__rail-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; color: var(--gmm-heading); }
.gmmprime-editorial__rule { width: 4px; height: 22px; border-radius: 5px; background: var(--gmm-blue); }
.gmmprime-editorial__brief { display: grid; grid-template-columns: 21px minmax(0,1fr); gap: 9px; padding: 15px 0; border-bottom: 1px solid var(--gmm-line); }
.gmmprime-editorial__brief-number { color: var(--gmm-blue); font-size: 12px; font-weight: 900; }
.gmmprime-editorial__brief-category { display: block; color: var(--gmm-muted); font-size: 9px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.gmmprime-editorial__brief h4 { margin: 5px 0 6px; font-size: 13px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.gmmprime-editorial__brief h4 a { color: var(--gmm-heading); }
.gmmprime-editorial__brief h4 a:hover { color: var(--gmm-blue); }
.gmmprime-editorial__brief time { color: var(--gmm-muted); font-size: 10px; }
.gmmprime-editorial__tool {
  display: flex; flex-direction: column; gap: 6px; margin-top: auto;
  padding: 15px; border-radius: 11px; background: linear-gradient(135deg,#0c2340,#144f7b);
  color: #dceeff; border: 1px solid rgba(125,203,246,.24);
}
.gmmprime-editorial__tool:hover { color: #fff; background: linear-gradient(135deg,#14365c,#1b6599); }
.gmmprime-editorial__tool-kicker { color: #7ddbea; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.gmmprime-editorial__tool strong { color: #fff; font-size: 14px; line-height: 1.3; }
.gmmprime-editorial__tool > span:not(.gmmprime-editorial__tool-kicker) { font-size: 11px; line-height: 1.45; }
.gmmprime-editorial__tool b { font-size: 11px; color: #95e4fa; }
.gmmprime-editorial__empty { padding: 35px; border: 1px solid var(--prime-border); border-radius: 15px; background: var(--gmm-surface); }

/* Market and news sections retain parent data sources, shortcodes and slots. */
.gmmprime-home-phase2 .gmm3-dashboard__grid { gap: 12px; }
.gmmprime-home-phase2 .gmm3-dashboard-card { border-radius: 14px; }
.gmmprime-home-phase2 .gmm3-latest__grid { gap: 16px; }
.gmmprime-home-phase2 .gmm3-sectionhead { border-bottom: 1px solid var(--prime-border); padding-bottom: 13px; }
.gmmprime-home-phase2 .gmm3-sectionhead__tag { background: var(--gmm-surface-3); color: var(--gmm-blue); }

/* Original Globe+live market cards are below the newspaper-style front page. */
.gmmprime-platform-region { margin-top: 46px; }
.gmmprime-platform-heading { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.gmmprime-platform-heading p { margin: 0; color: var(--gmm-muted); font-size: 13px; }
.gmmprime-home-phase2 .gmmprime-platform-region .gmm3-intro { min-height: 365px; }
.gmmprime-home-phase2 .gmmprime-platform-region .gmm3-intro--markets h1 { font-size: clamp(30px,3.7vw,50px); }
.gmmprime-home-phase2 .gmmprime-platform-region .gmm3-intro--markets .gmm3-motion-stage { min-height: 335px; }

@media (max-width: 1160px) {
  .gmmprime-editorial__grid { grid-template-columns: minmax(0,1.35fr) minmax(0,.9fr); }
  .gmmprime-editorial__rail { grid-column: 1 / -1; }
  .gmmprime-editorial__rail-inner { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 12px; padding: 14px; }
  .gmmprime-editorial__rail-heading { width: 100%; padding-bottom: 5px; }
  .gmmprime-editorial__brief { flex: 1 1 150px; display: flex; border-bottom: 0; padding: 6px 5px; border-right: 1px solid var(--prime-border); }
  .gmmprime-editorial__tool { flex: 1 1 190px; margin-top: 0; }
}
@media (max-width: 860px) {
  .gmmprime-editorial__heading { align-items: flex-start; }
  .gmmprime-editorial__grid { grid-template-columns: minmax(0,1fr) minmax(0,.95fr); }
  .gmmprime-editorial__lead .gmm3-story__body { padding: 15px; }
  .gmmprime-editorial__lead .gmm3-story__title { font-size: clamp(20px,3vw,29px); }
  .gmmprime-editorial__secondary .gmm3-story__media { min-height: 125px; }
}
@media (max-width: 690px) {
  .gmmprime-home-phase2 .gmm3-pulse { margin-bottom: 18px; }
  .gmmprime-editorial__heading { gap: 14px; }
  .gmmprime-editorial__heading h1, .gmmprime-editorial__heading h2 { font-size: clamp(28px,7vw,38px); }
  .gmmprime-editorial__heading p { font-size: 13px; }
  .gmmprime-editorial__jump { padding: 9px; font-size: 11px; }
  .gmmprime-editorial__grid { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .gmmprime-editorial__lead .gmm3-story__media { aspect-ratio: 16/9; }
  .gmmprime-editorial__lead .gmm3-story__title { font-size: clamp(23px,6vw,31px); }
  .gmmprime-editorial__secondary { grid-template-rows: none; gap: 9px; }
  .gmmprime-editorial__secondary .gmm3-story { grid-template-columns: 38% minmax(0,1fr); }
  .gmmprime-editorial__secondary .gmm3-story__media { min-height: 115px; }
  .gmmprime-editorial__secondary .gmm3-story__title { font-size: 15px; }
  .gmmprime-editorial__rail-inner { display: block; padding: 15px; }
  .gmmprime-editorial__brief { display: grid; border-right: 0; border-bottom: 1px solid var(--prime-border); padding: 12px 0; }
  .gmmprime-editorial__tool { margin-top: 14px; }
  .gmmprime-home-phase2 .gmm3-latest__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .gmmprime-home-phase2 .gmm3-story--latest { min-width: 0; flex-basis: auto; }
  .gmmprime-platform-region { margin-top: 33px; }
  .gmmprime-home-phase2 .gmmprime-platform-region .gmm3-intro { padding: 18px; }
  .gmmprime-home-phase2 .gmmprime-platform-region .gmm3-intro--markets .gmm3-motion-stage { min-height: 310px; }
}
@media (max-width: 460px) {
  .gmmprime-editorial__heading { display: block; }
  .gmmprime-editorial__jump { margin-top: 12px; }
  .gmmprime-editorial__secondary .gmm3-story__media { min-height: 108px; }
  .gmmprime-editorial__secondary .gmm3-story__body { padding: 10px; }
  .gmmprime-editorial__secondary .gmm3-story__title { font-size: 13px; -webkit-line-clamp: 3; }
  .gmmprime-home-phase2 .gmm3-latest__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 9px; }
  .gmmprime-home-phase2 .gmm3-story--latest .gmm3-story__body { padding: 10px; }
  .gmmprime-home-phase2 .gmm3-story--latest .gmm3-story__title { font-size: 13px; }
  .gmmprime-home-phase2 .gmm3-story--latest .gmm3-story__meta { font-size: 9px; }
  .gmmprime-home-phase2 .gmm3-story--latest .gmm3-badge { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .gmmprime-editorial__jump { transition: none; }
}
/* Keep the category chip intrinsic-width in the flex lead article. */
.gmmprime-editorial__lead .gmm3-badge { align-self: flex-start; }
