/* =============================================================
   ED Media – Public Styles
   Version: 1.0.0
   ============================================================= */

/* ── CSS Variables (inherit from theme where possible) ──── */
:root {
  --edm-blue:     #1a3a6b;
  --edm-orange:   #e8640a;
  --edm-green:    #16a34a;
  --edm-red:      #dc2626;
  --edm-amber:    #d97706;
  --edm-bg:       #f8f9fb;
  --edm-border:   rgba(26,58,107,0.12);
  --edm-radius:   8px;
  --edm-shadow:   0 2px 12px rgba(26,58,107,0.08);
}

/* ── Banner Display ─────────────────────────────────────── */
.edm-banner {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}
.edm-banner__link { display: block; }
.edm-banner__img {
  max-width: 100%;
  height: auto;
  border-radius: var(--edm-radius);
  display: inline-block;
}
.edm-banner__label {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.edm-banner--leaderboard {
  padding: 0.5rem 0;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}
.edm-banner--leaderboard .edm-banner__img {
  max-width: 728px;
  max-height: 90px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.edm-banner--box { margin: 0 0 1.5rem; }
.edm-banner--box .edm-banner__img {
  max-width: 300px;
  max-height: 250px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.edm-banner--inline {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--edm-border);
  border-bottom: 1px solid var(--edm-border);
}

/* ── Media Pack ─────────────────────────────────────────── */
.edm-media-pack { font-family: inherit; }

.edm-mp-hero {
  background: linear-gradient(135deg, #0f2347 0%, var(--edm-blue) 100%);
  color: #fff;
  border-radius: 12px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  text-align: center;
}
.edm-mp-hero__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 0.75rem; font-weight: 800; }
.edm-mp-hero__sub   { font-size: 1.05rem; opacity: 0.88; max-width: 600px; margin: 0 auto 2rem; }

.edm-mp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.edm-mp-stat {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  min-width: 130px;
}
.edm-mp-stat strong { display: block; font-size: 1.4rem; font-weight: 800; }
.edm-mp-stat span   { font-size: 0.8rem; opacity: 0.8; }

.edm-mp-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--edm-blue);
  margin: 0 0 0.5rem;
}
.edm-mp-intro { color: #64748b; margin-bottom: 1.5rem; }

.edm-mp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.edm-mp-card {
  background: #fff;
  border: 1px solid var(--edm-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--edm-shadow);
  transition: box-shadow 0.18s, transform 0.18s;
}
.edm-mp-card:hover { box-shadow: 0 6px 24px rgba(26,58,107,0.12); transform: translateY(-2px); }
.edm-mp-card--sold  { opacity: 0.65; }

.edm-mp-card__slot  { font-size: 0.8rem; font-weight: 700; color: var(--edm-blue); text-transform: uppercase; letter-spacing: 0.05em; }
.edm-mp-card__size  { font-size: 0.78rem; color: #64748b; background: var(--edm-bg); padding: 2px 8px; border-radius: 4px; display: inline-block; }
.edm-mp-card__price { font-size: 2rem; font-weight: 800; color: var(--edm-blue); line-height: 1; }
.edm-mp-card__price span { font-size: 0.85rem; font-weight: 400; color: #64748b; }
.edm-mp-card__features { list-style: none; margin: 0; padding: 0; flex: 1; }
.edm-mp-card__features li { font-size: 0.82rem; color: #374151; padding: 4px 0; display: flex; align-items: flex-start; gap: 6px; }
.edm-mp-card__features li::before { content: '✓'; color: var(--edm-green); font-weight: 700; flex-shrink: 0; }
.edm-mp-card__sold  { font-size: 0.82rem; color: var(--edm-amber); font-weight: 600; text-align: center; padding: 0.5rem; background: #fef3c7; border-radius: 6px; }

/* Guest post section */
.edm-mp-guest-post {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 2px solid var(--edm-orange);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
.edm-mp-gp__content { flex: 1; min-width: 240px; }
.edm-mp-gp__content h2 { color: var(--edm-blue); margin: 0 0 0.75rem; }
.edm-mp-gp__content ul { margin: 0.75rem 0 0 1.25rem; padding: 0; }
.edm-mp-gp__content li { font-size: 0.9rem; margin-bottom: 0.4rem; color: #374151; }
.edm-mp-gp__cta { text-align: center; }
.edm-mp-gp__price { font-size: 2.5rem; font-weight: 800; color: var(--edm-orange); line-height: 1; }
.edm-mp-gp__label { font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; }

/* ── Editorial Guidelines ───────────────────────────────── */
.edm-guidelines {}
.edm-guidelines__intro { font-size: 1.05rem; margin-bottom: 1.5rem; color: #374151; }
.edm-guidelines__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.edm-guideline-block {
  background: #fff;
  border: 1px solid var(--edm-border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--edm-shadow);
}
.edm-guideline-block h3 { font-size: 1rem; margin: 0 0 0.75rem; color: var(--edm-blue); }
.edm-guideline-block ul { margin: 0; padding-left: 1.2rem; }
.edm-guideline-block li { font-size: 0.875rem; margin-bottom: 0.5rem; color: #374151; line-height: 1.5; }
.edm-guidelines__cta {
  background: var(--edm-bg);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
}
.edm-guidelines__cta p { margin: 0 0 0.5rem; }
.edm-guidelines__cta p:last-child { margin: 0; }

/* ── Shared Buttons ─────────────────────────────────────── */
.edm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.edm-btn--primary  { background: var(--edm-orange); color: #fff; }
.edm-btn--primary:hover { background: #c9540a; color: #fff; }
.edm-btn--outline  { background: transparent; color: var(--edm-blue); border: 2px solid var(--edm-blue); }
.edm-btn--outline:hover { background: var(--edm-blue); color: #fff; }
.edm-btn--secondary { background: var(--edm-bg); color: var(--edm-blue); border: 1px solid var(--edm-border); }
.edm-btn--secondary:hover { background: #e2e8f0; }

/* ── Taxonomy banner groups ────────────────────────────────────────────────── */
.edm-mp-tax-group {
  margin-bottom: 2.5rem;
}
.edm-mp-tax-group__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #1a3a6b;
}
.edm-mp-tax-group__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a3a6b;
  margin: 0;
}
.edm-mp-tax-group__price {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* Term card grid — auto-fill as many as fit */
.edm-mp-tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.edm-mp-term-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s;
}
.edm-mp-term-card:hover {
  border-color: #1a3a6b;
}
.edm-mp-term-card--taken {
  background: #f8f9fb;
  border-color: #e2e8f0;
  opacity: 0.7;
}
.edm-mp-term-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0e1e35;
  line-height: 1.3;
}
.edm-mp-term-card__count {
  font-size: 0.78rem;
  color: #94a3b8;
}
.edm-mp-term-card__taken {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  text-align: center;
}
.edm-btn--sm {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  margin-top: 0.25rem;
}
