/* ==========================================================================
   Miss Pepper AI — Base
   Reset, document defaults, typography, layout primitives, buttons, panels.
   Namespaced with `mp-` so nothing collides with plugin / block markup.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--mp-navy);
  color: var(--mp-ink);
  font-family: var(--mp-body);
  font-size: 100%;
  line-height: 1.6;
}

body { overflow-x: hidden; }

img, svg, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Accessible focus ring, brand-consistent */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

/* Skip link */
.mp-skip-link {
  position: absolute;
  left: -999px; top: 0;
  z-index: 999;
  padding: 0.75rem 1.15rem;
  background: var(--mp-surface);
  color: var(--mp-ink);
  border: 1px solid var(--mp-panel-border);
  border-radius: 0 0 0.5rem 0;
}
.mp-skip-link:focus { left: 0; }

/* --- Layout primitives ----------------------------------------------- */
.mp-shell {
  width: min(100% - 2.7rem, var(--mp-shell-max));
  margin-inline: auto;
}

.mp-section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--mp-navy);
}

/* --- Eyebrow / section labels (DM Sans, uppercase, wide tracking) ----- */
.mp-eyebrow {
  margin: 0;
  font-family: var(--mp-body);
  font-size: clamp(0.72rem, 0.82vw, 0.86rem);
  text-transform: uppercase;
  letter-spacing: var(--mp-tracking-copy);
  color: var(--mp-muted);
}

/* --- Headings --------------------------------------------------------- */
.mp-h2 {
  margin: 0.6rem 0 0;
  font-family: var(--mp-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  text-transform: uppercase;
}

/* --- Primary CTA (Art Bible: Button Style) --------------------------- */
.mp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-width: clamp(17rem, 21vw, 25rem);
  height: clamp(4.2rem, 5.5vw, 5.55rem);
  padding: 0 2.4rem;
  border: 1px solid var(--mp-cta-border);
  border-radius: var(--mp-radius-cta);
  background: var(--mp-cta-grad);
  box-shadow: var(--mp-cta-glow);
  color: #fff;
  text-transform: uppercase;
  font-family: var(--mp-body);
  font-size: clamp(1rem, 1.1vw, 1.24rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform .22s var(--mp-ease), box-shadow .22s var(--mp-ease),
              filter .22s var(--mp-ease), border-color .22s var(--mp-ease);
}
.mp-cta__arrow { font-size: 1.9rem; line-height: 1; transition: transform .22s var(--mp-ease); }
.mp-cta:hover {
  transform: translateY(-2px);
  filter: saturate(1.04) brightness(1.04);
  border-color: rgba(255, 177, 88, 0.95);
  box-shadow: 0 1.45rem 4.3rem rgba(255, 100, 0, 0.3),
              0 0 1.6rem rgba(255, 119, 20, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.27);
}
.mp-cta:hover .mp-cta__arrow { transform: translateX(3px); }
.mp-cta:active {
  transform: translateY(0);
  box-shadow: 0 .75rem 2.2rem rgba(255, 100, 0, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Secondary — glass, blue-white border, orange only on hover */
.mp-cta--ghost {
  background: rgba(7, 27, 43, 0.4);
  border-color: var(--mp-panel-border);
  box-shadow: none;
  backdrop-filter: blur(var(--mp-panel-blur));
}
.mp-cta--ghost:hover {
  border-color: var(--mp-cta-border);
  filter: none;
}

/* --- Glass panel (Art Bible: Glass Panels and Data UI) --------------- */
.mp-panel {
  border: 1px solid var(--mp-panel-border);
  border-radius: var(--mp-radius-panel);
  background: linear-gradient(180deg, var(--mp-panel-fill-1), var(--mp-panel-fill-2));
  box-shadow: var(--mp-shadow-panel);
  backdrop-filter: blur(var(--mp-panel-blur));
  padding: clamp(1.15rem, 1.45vw, 1.55rem);
}
.mp-panel__title {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--mp-display);
  font-size: clamp(.72rem, .72vw, .9rem);
  font-weight: 800;
  text-transform: uppercase;
}

/* --- WP content safety net (for injected page content) --------------- */
.mp-content { line-height: 1.7; }
.mp-content a { color: var(--mp-blue-active); }
.mp-content a:hover { color: var(--mp-orange-hot); }

/* --- Glossary entity hub (theme-enhanced /glossary/) ----------------- */
/* Deep-link anchors clear the fixed topbar. */
.mp-content [id^="term-"],
.mp-content [id^="section-"] { scroll-margin-top: calc(var(--mp-topbar-h) + 1.25rem); }

/* Section jump-nav */
.mp-gloss-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--mp-panel-border);
  border-radius: var(--mp-radius-panel);
  background: var(--mp-panel-fill-1);
}
.mp-gloss-nav__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--mp-muted);
  margin-right: 0.25rem;
}
.mp-gloss-nav a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--mp-blue-active);
  border: 1px solid var(--mp-panel-border);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.mp-gloss-nav a:hover {
  color: var(--mp-navy);
  background: var(--mp-orange);
  border-color: var(--mp-orange);
}

/* Term label emphasis */
.mp-content .mp-gloss-term { color: var(--mp-orange-hot); }

/* "Explore our {silo}" hub link under each section heading */
.mp-gloss-explore {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.mp-gloss-explore a {
  color: var(--mp-blue-active);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.mp-gloss-explore a:hover {
  color: var(--mp-orange-hot);
  border-bottom-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .mp-gloss-nav a { transition: none; }
}

/* Entity links — glossary terms auto-linked in body content (native tooltip). */
.mp-content a.mp-entity {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--mp-blue-active);
  transition: color 0.18s ease, border-color 0.18s ease;
}
/* SU wraps the entity link in a trigger span — keep it inline so the underline
   and hover affordance read as one word, not a boxed control. */
.mp-content .su-tooltip-button { cursor: pointer; border: 0; padding: 0; }
.mp-content a.mp-entity:hover,
.mp-content a.mp-entity:focus {
  color: var(--mp-orange-hot);
  border-bottom-color: var(--mp-orange-hot);
  border-bottom-style: solid;
}
@media (prefers-reduced-motion: reduce) {
  .mp-content a.mp-entity { transition: none; }
}

/* FAQ accordion — the in-content "Common questions" Q&A, restyled from plain
   h3/p pairs into accessible native <details> panels (inc/faq.php). */
.mp-content .mp-faq { margin: 2.75rem 0 1.25rem; }
.mp-content .mp-faq__title { margin-bottom: 1.25rem; }
.mp-content .mp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.mp-content .mp-faq__item {
  border: 1px solid rgba(244, 247, 251, 0.12);
  border-radius: var(--mp-radius-panel);
  background: rgba(244, 247, 251, 0.03);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.mp-content .mp-faq__item[open] {
  border-color: rgba(255, 107, 0, 0.55);
  background: rgba(255, 107, 0, 0.05);
}
.mp-content .mp-faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-family: var(--mp-font-display, inherit);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--mp-ink);
  cursor: pointer;
  list-style: none;
}
.mp-content .mp-faq__q::-webkit-details-marker { display: none; }
.mp-content .mp-faq__q::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--mp-orange);
  transition: transform 0.2s ease;
}
.mp-content .mp-faq__item[open] .mp-faq__q::after { content: "\2212"; } /* minus */
.mp-content .mp-faq__q:hover { color: var(--mp-orange-hot); }
.mp-content .mp-faq__q:focus-visible { outline: 2px solid var(--mp-orange); outline-offset: -2px; }
.mp-content .mp-faq__a {
  padding: 0 1.35rem 1.2rem;
  color: var(--mp-muted);
}
.mp-content .mp-faq__a > :first-child { margin-top: 0; }
.mp-content .mp-faq__a > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .mp-content .mp-faq__item,
  .mp-content .mp-faq__q::after { transition: none; }
}
