/*!
 * mpo-explore.css — visual-sitemap / explore page styles for the Joomla
 * Custom HTML module. All rules are scoped under #mpo-ex-root / .mpo-ex-*
 * so they don't collide with the host template's Bootstrap or other CSS.
 *
 * Accent colors per audience are passed in via inline style="--bg:#xxx"
 * from the renderer JS so this stylesheet stays static.
 */
#mpo-ex-root {
  --mpo-ex-primary:       #000666;
  --mpo-ex-primary-dark:  #000444;
  --mpo-ex-text:          #1f2937;
  --mpo-ex-muted:         #6b7280;
  --mpo-ex-surface:       #ffffff;
  --mpo-ex-surface-alt:   #f8f9fa;
  --mpo-ex-border:        #e5e7eb;

  font-family: inherit;
  color: var(--mpo-ex-text);
  width: 100%;
  max-width: 100%;
  line-height: 1.45;
}

#mpo-ex-root *,
#mpo-ex-root *::before,
#mpo-ex-root *::after { box-sizing: border-box; }

#mpo-ex-root.mpo-ex-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

#mpo-ex-error {
  display: none;
  padding: 12px 16px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin: 16px 0;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.mpo-ex-hero {
  background: linear-gradient(135deg, #000666 0%, #0a0f5c 40%, #001a8c 100%);
  color: #fff;
  padding: 56px 24px 64px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .mpo-ex-hero { padding: 72px 24px 80px; }
}
#mpo-ex-root .mpo-ex-hero-welcome {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 12px;
  opacity: .85;
}
#mpo-ex-root .mpo-ex-hero-heading {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -.01em;
  color: #fff;
}
@media (min-width: 768px) {
  #mpo-ex-root .mpo-ex-hero-heading { font-size: 48px; }
}
#mpo-ex-root .mpo-ex-hero-subheading {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* Audience grid in hero */
.mpo-ex-hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 32px;
}
@media (min-width: 768px) {
  .mpo-ex-hero-cards { grid-template-columns: repeat(4, 1fr); }
}
/* Specificity boosted with #mpo-ex-root to beat the host template's `a` rules
   that otherwise force black text on these dark-tinted hero tiles. */
#mpo-ex-root a.mpo-ex-audience-card,
#mpo-ex-root a.mpo-ex-audience-card:link,
#mpo-ex-root a.mpo-ex-audience-card:visited,
#mpo-ex-root a.mpo-ex-audience-card:hover,
#mpo-ex-root a.mpo-ex-audience-card:active {
  color: #fff;
  text-decoration: none;
}
.mpo-ex-audience-card {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.mpo-ex-audience-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
#mpo-ex-root .mpo-ex-audience-icon {
  font-size: 44px;
  display: block;
  margin: 0 auto 10px;
  line-height: 1;
  color: #fff;
}
#mpo-ex-root .mpo-ex-audience-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 4px;
  color: #fff;
}
#mpo-ex-root .mpo-ex-audience-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
}

/* Hero search box */
.mpo-ex-search-wrap {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.mpo-ex-search-input {
  width: 100%;
  padding: 15px 56px 15px 18px;
  font-size: 16px;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: #fff;
  color: var(--mpo-ex-text);
  outline: none;
  font-family: inherit;
}
.mpo-ex-search-input:focus { border-color: #a5f3fc; }
.mpo-ex-search-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--mpo-ex-primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.mpo-ex-search-btn:hover { background: var(--mpo-ex-primary-dark); }

.mpo-ex-ac {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
}
.mpo-ex-ac.open { display: block; }
.mpo-ex-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.mpo-ex-ac-item:last-child { border-bottom: none; }
.mpo-ex-ac-item:hover,
.mpo-ex-ac-item.selected { background: #f4f6f9; }
.mpo-ex-ac-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mpo-ex-ac-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}
.mpo-ex-ac-badge-page     { background: #dbeafe; color: #1d4ed8; }
.mpo-ex-ac-badge-document { background: #fef3c7; color: #92400e; }
.mpo-ex-ac-badge-youtube  { background: #fee2e2; color: #991b1b; }
.mpo-ex-ac-badge-agenda   { background: #d1fae5; color: #065f46; }
.mpo-ex-ac-badge-podcast  { background: #ede9fe; color: #5b21b6; }
.mpo-ex-ac-badge-esri     { background: #e0f2fe; color: #075985; }

/* ── Audience sections (after hero) ───────────────────────────── */
.mpo-ex-section {
  padding: 48px 0;
  margin: 0 -24px;        /* extend gradient to module edges */
  padding-left: 24px;
  padding-right: 24px;
  scroll-margin-top: 80px;
}
.mpo-ex-section-public  { background: linear-gradient(180deg, #f0fdff 0%, #f8f9fa 100%); }
.mpo-ex-section-pro     { background: linear-gradient(180deg, #eef2ff 0%, #f8f9fa 100%); }
.mpo-ex-section-media   { background: linear-gradient(180deg, #f5f3ff 0%, #f8f9fa 100%); }
.mpo-ex-section-vendor  { background: linear-gradient(180deg, #fffbeb 0%, #f8f9fa 100%); }
.mpo-ex-section-default { background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%); }

.mpo-ex-section-inner { max-width: 1140px; margin: 0 auto; }
.mpo-ex-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.mpo-ex-section-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  background: var(--mpo-ex-section-color, #000666);
}
.mpo-ex-section-icon .material-symbols-outlined { font-size: 26px; }
.mpo-ex-section-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  color: var(--mpo-ex-text);
}
.mpo-ex-section-sub {
  font-size: 14px;
  color: var(--mpo-ex-muted);
  margin: 2px 0 0;
}
.mpo-ex-section-rule {
  height: 4px;
  border-radius: 999px;
  margin: 18px 0 28px;
  background: var(--mpo-ex-section-color, #000666);
  opacity: .25;
}

.mpo-ex-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .mpo-ex-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .mpo-ex-cards { grid-template-columns: repeat(3, 1fr); }
}

.mpo-ex-task {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--mpo-ex-border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.mpo-ex-task:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #c7d2fe;
  text-decoration: none;
  color: inherit;
}
.mpo-ex-task-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mpo-ex-task-bg, #e5e7eb);
}
.mpo-ex-task-icon .material-symbols-outlined {
  font-size: 22px;
  color: var(--mpo-ex-section-color, #000666);
}
.mpo-ex-task-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--mpo-ex-text);
}
.mpo-ex-task-desc {
  font-size: 14px;
  color: var(--mpo-ex-muted);
  flex: 1;
  line-height: 1.4;
}
.mpo-ex-task-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mpo-ex-section-color, #000666);
  margin-top: 4px;
}
.mpo-ex-task-cta .material-symbols-outlined { font-size: 14px; }

/* Hide stray Material Symbols ligature text while font is loading */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
