/* ═══════════════════════════════════════════════════════════════
   search.css — MireonSpero™ Institutional Atlas (Search)
   All .se- namespaced. No collision with global.css, home.css,
   support.css, or first-impressions.css.
═══════════════════════════════════════════════════════════════ */


/* ── SHARED UTILITIES ────────────────────────────────────── */

.se-link-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ms-teal);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.15s;
}
.se-link-text::after { content: '→'; }
.se-link-text:hover { opacity: 0.72; }


/* ── HERO ────────────────────────────────────────────────── */
/* Canonical sub-page hero: top-down white fog overlay
   Matches first-impressions.html exactly per system spec.     */

.se-hero {
  position: relative;
  min-height: 620px;
  background: #e8e4dc;
  overflow: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.se-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.se-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  filter: brightness(1.14) saturate(1.06);
}

/* Canonical top-down fog overlay — matches first-impressions.html */
.se-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.70) 30%,
    rgba(255, 255, 255, 0.58) 55%,
    rgba(255, 255, 255, 0.28) 78%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.se-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 7rem 2rem;
  display: flex;
  justify-content: center;
}

.se-hero-text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.se-hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ms-navy);
  font-weight: 600;
}

.se-hero-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ms-navy);
  margin: 0;
}

.se-hero-heading em {
  font-style: italic;
  font-weight: 500;
  color: var(--ms-navy);
}

.se-hero-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ms-navy);
  line-height: 1.78;
  margin: 0;
}

.se-hero-cta {
  display: inline-block;
  width: fit-content;
  padding: 0.85rem 2rem;
  background: var(--ms-gold);
  color: var(--ms-navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.se-hero-cta:hover { background: var(--ms-teal); color: #fff; }


/* ── ORIENTATION STRIP ───────────────────────────────────── */

.se-orientation {
  background: var(--ms-cream);
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.se-orientation-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.se-orientation-label {
  padding: 3.5rem 2rem;
  border-right: 1px solid var(--ms-rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.se-orientation-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(29, 53, 87, 0.08);
  line-height: 1;
}

.se-orientation-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ms-gray);
  font-weight: 400;
}

.se-orientation-content {
  padding: 3.5rem 3rem 3.5rem 3.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.se-orientation-icon-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.se-orientation-compass {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  opacity: 0.75;
}

.se-orientation-narrative {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.se-orientation-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--ms-navy);
  line-height: 1.25;
  margin: 0;
  font-style: italic;
}

.se-orientation-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #4a5568;
  max-width: 580px;
  line-height: 1.78;
  margin: 0;
}


/* ── ATLAS BRANCHES WRAPPER ──────────────────────────────── */

.se-atlas-wrap {
  background: #fff;
  padding: 5rem 2rem;
  max-width: 100%;
  margin: 0;
}

.se-atlas-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}


/* ── INDIVIDUAL BRANCH ───────────────────────────────────── */

.se-branch {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--ms-rule);
}

.se-branch--last {
  border-bottom: none;
  padding-bottom: 0;
}

.se-branch-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ms-rule);
}

.se-branch-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--ms-navy);
  line-height: 1.2;
  margin: 0;
}

.se-branch-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ms-gray);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.se-branch-intro {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.72;
  max-width: 680px;
  margin: 0.9rem 0 1.75rem;
}


/* ── NODE GRID ───────────────────────────────────────────── */

.se-nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ms-rule);
}

.se-nodes-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}


/* ── INDIVIDUAL NODE ─────────────────────────────────────── */

.se-node {
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: background 0.15s ease;
  position: relative;
}

.se-node:hover {
  background: var(--ms-cream);
}

.se-node-locked {
  opacity: 0.62;
  cursor: default;
  pointer-events: none;
}

.se-node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  display: inline-block;
}

.se-dot-blue  { background: #1a5fa5; }
.se-dot-teal  { background: var(--ms-teal); }
.se-dot-gold  { background: var(--ms-gold); }
.se-dot-gray  { background: var(--ms-gray); }

.se-node-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.se-node-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--ms-navy);
  line-height: 1.3;
}

.se-node-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.80rem;
  color: #4a5568;
  line-height: 1.55;
}

.se-coming-pill {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.18rem 0.55rem;
  background: rgba(29, 53, 87, 0.05);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.60rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ms-gray);
}

.se-node-arrow {
  font-size: 0.80rem;
  color: rgba(29, 53, 87, 0.18);
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
  align-self: center;
  margin-left: 0.25rem;
}

.se-node:hover .se-node-arrow {
  color: var(--ms-teal);
  transform: translateX(3px);
}


/* ── CLOSING STATEMENT ───────────────────────────────────── */

.se-close {
  background: var(--ms-cream);
  max-width: 100%;
  margin: 0;
  padding: 3.5rem 2rem;
}

.se-close-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.se-close-rule {
  width: 3px;
  height: 38px;
  background: var(--ms-gold);
  flex-shrink: 0;
  border-radius: 2px;
}

.se-close-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ms-navy);
  line-height: 1.55;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 768px breakpoint
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Hero */
  .se-hero { min-height: unset; }
  .se-hero-content { padding: 4rem 1.5rem; }
  .se-hero-text { max-width: 100%; gap: 1.25rem; }
  .se-hero-heading { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  .se-hero-body { font-size: 0.93rem; }

  /* Orientation strip */
  .se-orientation-inner { grid-template-columns: 1fr; }
  .se-orientation-label {
    border-right: none;
    border-bottom: 1px solid var(--ms-rule);
    padding: 2rem 1.5rem 1.25rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .se-orientation-content {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
  }
  .se-orientation-icon-wrap { width: 52px; height: 52px; }
  .se-orientation-compass { width: 52px; height: 52px; }

  /* Atlas wrap */
  .se-atlas-wrap { padding: 3.5rem 1.5rem; }

  /* Branch header */
  .se-branch-header {
    flex-direction: column;
    gap: 0.4rem;
  }
  .se-branch-meta { margin-left: 0; }

  /* Node grids: single column on mobile */
  .se-nodes-grid { grid-template-columns: 1fr; }
  .se-nodes-grid--2col { grid-template-columns: 1fr; }

  /* Closing */
  .se-close { padding: 2.5rem 1.5rem; }

}
