/**
 * Ember Protocol tokens — overlay for the live Forge catalog.
 * Load after nf-glass.css / nf-sota.css. Does not replace catalog JS.
 */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #070709;
  --bg2: #0c0c10;
  --card: #121218;
  --line: #2a241c;
  --tx: #f4f1ea;
  --mut: #9c9588;
  --dim: #6e665c;
  --gold: #f59e0b;
  --cyan: #f97316;
  --live: #34d399;
  --display: "IBM Plex Sans", system-ui, sans-serif;
  --aurora: linear-gradient(90deg, #b45309, #f59e0b 42%, #f97316);
  --nf-bg: #070709;
  --nf-bg2: #0c0c10;
  --nf-card: rgba(18, 18, 24, 0.58);
  --nf-card-solid: #121218;
  --nf-line: rgba(245, 158, 11, 0.2);
  --nf-tx: #f4f1ea;
  --nf-mut: #9c9588;
  --nf-gold: #f59e0b;
  --nf-atmosphere: url(/assets/brand/atmosphere-ember.jpg);
}

body,
body.nf-glass,
.nf-glass-body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--tx);
  background-color: var(--bg);
}

body.nf-glass {
  background-image:
    linear-gradient(180deg, rgba(7, 7, 9, 0.78), rgba(7, 7, 9, 0.93)),
    url(/assets/brand/atmosphere-ember.jpg) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center !important;
}

body::before {
  background: var(--aurora) !important;
}

.brand {
  font-family: "IBM Plex Sans", system-ui, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-weight: 600 !important;
}

h1 {
  font-family: "IBM Plex Sans", system-ui, sans-serif !important;
  text-transform: none !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
}

.section h2 {
  font-family: "IBM Plex Sans", system-ui, sans-serif !important;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #1a1205 !important;
}

a { color: #f59e0b; }

.chip.live,
#nf-explorer-stats .stat b {
  color: var(--live) !important;
}

.chip.live { border-color: #1a4a3a !important; }

.card,
.pillar,
.explorer-shell {
  border-color: var(--line) !important;
}

.card:hover,
.pillar:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12) !important;
}

.nf-glass-banner { display: none !important; }

.wrap.nf-shell { max-width: 1200px; padding-top: 0.5rem; }

.hero#moments {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 5.5rem);
  padding: 1.4rem 0 2.6rem !important;
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}
.hero#moments::before {
  content: "";
  position: absolute;
  inset: 0 0 0 38%;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 42%),
    url(/assets/brand/hero-circuit.jpg) right center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.ember-stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .ember-stage { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: end; gap: 2.5rem; }
}

.ember-h1 {
  font-family: "Big Shoulders Display", "IBM Plex Sans", system-ui, sans-serif !important;
  font-size: clamp(3.1rem, 8.6vw, 6.05rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 0.88 !important;
  text-transform: uppercase !important;
  max-width: 11ch !important;
  margin: 0 0 1.1rem !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}
.ember-h1 span { color: #f59e0b !important; }
.ember-lede {
  font-size: 1.12rem !important;
  max-width: 34rem !important;
  color: var(--mut) !important;
  margin: 0 0 1.6rem !important;
}
.ember-lede em { color: var(--tx); font-style: normal; font-weight: 650; }

.moment-prompt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--tx);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.moment-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.moment-stamp {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  height: 2.45rem;
  padding: 0 0.95rem !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: rgba(12, 12, 16, 0.72) !important;
  color: var(--tx) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
}
.moment-stamp[aria-pressed="true"],
.moment-stamp:hover {
  border-color: #f59e0b !important;
  color: var(--tx) !important;
  background: rgba(245, 158, 11, 0.1) !important;
}
.moment-stamp svg { width: 14px !important; height: 14px !important; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }

.ember-featured {
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.92), rgba(8, 8, 10, 0.94));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.15rem;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12), 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 48px rgba(245, 158, 11, 0.12);
}
.ember-featured-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.ember-featured-mark {
  width: 44px !important; height: 44px !important; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.ember-featured h3 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
  color: var(--tx);
}
.ember-live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 650; color: #34d399;
  white-space: nowrap;
}
.ember-live::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.ember-featured-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.85rem 0 0.9rem; }
.ember-featured-chips span {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; padding: 0.28rem 0.55rem;
  border-radius: 999px; border: 1px solid var(--line); color: var(--mut);
}
.ember-featured p { margin: 0; color: var(--mut); font-size: 0.92rem; line-height: 1.5; }
.ember-featured-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: 1.15rem;
}
.ember-explore {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 2.55rem; padding: 0 1rem;
  border-radius: 12px; border: 1px solid var(--line);
  color: var(--tx) !important; font-weight: 650; font-size: 0.88rem;
  text-decoration: none !important;
}
.ember-explore:hover { border-color: #f59e0b; }
.ember-meta { font-size: 0.75rem; color: var(--dim); }

.btn-signin {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 2.5rem; padding: 0 0.95rem;
  border-radius: 12px; border: 1px solid #b45309;
  color: var(--tx) !important; font-weight: 650; font-size: 0.82rem;
  text-decoration: none !important;
}
.btn-signin:hover { border-color: #f59e0b; color: #f59e0b !important; }

.shortlist-head, .finder-jump { position: relative; z-index: 1; }
.hero#moments .eyebrow { display: none; }

@media (max-width: 959px) {
  body.nf-glass,
  body.nf-glass-body {
    background-attachment: scroll !important;
    background-size: cover !important;
  }
  .hero#moments {
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0.85rem 0 1.35rem !important;
  }
  .hero#moments::before { display: none; }
  .ember-h1 {
    font-size: clamp(2.05rem, 11.5vw, 3.1rem) !important;
    max-width: none !important;
    line-height: 0.94 !important;
    letter-spacing: 0 !important;
  }
  .ember-lede { font-size: 0.98rem !important; margin-bottom: 1.1rem !important; }
  .ember-stage { gap: 1.1rem; }
  .ember-featured { padding: 1rem 1rem 0.95rem; }
  .moment-stamp { min-height: 44px; height: auto !important; }
  .wrap.nf-shell { padding-left: 1rem; padding-right: 1rem; }
  .btn-signin { display: none !important; }
}

@media (max-width: 860px) {
  .nf-nav-links a.btn-signin { display: none !important; }
}

.nf-nav-shell {
  background: rgba(7, 7, 9, 0.86) !important;
  border-bottom-color: #2a241c !important;
}
.nf-nav-links a.btn-signin {
  border: 1px solid #b45309 !important;
  border-radius: 12px !important;
  padding: 0.42rem 0.9rem !important;
  color: var(--tx, #f4f1ea) !important;
}
.nf-nav-links a.btn-signin:hover {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
  background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  body.nf-glass { background-attachment: scroll !important; }
}
