/* ──────────────────────────────────────────────────────────────────────────
   RASA — Nourishment Journal (nourishment.html)
   Dark-Luxury weekly nourishment portrait: animated rings, nutrient bars,
   dish strip, AI-gap hand-off. Tokens from styles.css (:root). No native emoji.
   ────────────────────────────────────────────────────────────────────────── */

.nj-wrap {
  max-width: 1080px;
  margin: 0 auto;
  /* top pad clears the ~95px fixed nav AND leaves real breathing room below it
     so the kicker isn't tucked tight under the header */
  padding: 188px 24px 96px;
}

.nj-hero {
  text-align: center;
  margin-bottom: 44px;
}
.nj-hero__kicker {
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.85;
}
.nj-hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  color: var(--color-cream, #faf5f0);
  margin: 12px 0 10px;
}
.nj-hero__sub {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: rgba(242, 221, 208, 0.6);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Stage (swaps between empty / portrait states) ── */
.nj-stage {
  min-height: 320px;
}

/* ── Head: week switcher + streak ── */
.nj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.nj-head__weeks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.nj-week-pill {
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid rgba(245, 166, 35, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(242, 221, 208, 0.6);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nj-week-pill:hover {
  border-color: rgba(245, 166, 35, 0.4);
  color: var(--color-cream, #faf5f0);
  transform: translateY(-1px);
}
.nj-week-pill--on {
  background: linear-gradient(135deg, #f5a623, #d4891a);
  color: #080c14;
  border-color: transparent;
  font-weight: 700;
}
.nj-week-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  color: rgba(242, 221, 208, 0.4);
  padding-left: 6px;
}
.nj-streak {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.14);
}

/* ── Portrait card ── */
.nj-portrait {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(245, 166, 35, 0.12);
  border-radius: 26px;
  padding: 38px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.nj-portrait__lead {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ── Rings ── */
.nj-rings {
  flex-shrink: 0;
}
.nj-rings__svg {
  width: 180px;
  height: 180px;
  overflow: visible;
}
.nj-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 10;
}
.nj-ring-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 90px 90px;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.25));
}
.nj-rings__cal-num {
  fill: var(--color-cream, #faf5f0);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  text-anchor: middle;
}
.nj-rings__cal-unit {
  fill: rgba(242, 221, 208, 0.45);
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-anchor: middle;
}

/* ── Lead copy ── */
.nj-lead-copy {
  flex: 1;
  min-width: 260px;
}
.nj-lead-kicker {
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 166, 35, 0.8);
}
.nj-lead-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--color-cream, #faf5f0);
  margin: 6px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.nj-lead-num em {
  font-style: normal;
  font-size: 0.95rem;
  color: rgba(242, 221, 208, 0.5);
}
.nj-lead-line {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  line-height: 1.5;
  color: rgba(242, 221, 208, 0.82);
  max-width: 460px;
}

/* ── Chips ── */
.nj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.nj-chip {
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(127, 183, 126, 0.08);
  border: 1px solid rgba(127, 183, 126, 0.2);
  color: #9ccb9b;
}

/* ── Nutrient bars ── */
.nj-nutrients {
  margin-top: 34px;
  display: grid;
  gap: 20px;
}
.nj-nut__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.nj-nut__label {
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 221, 208, 0.8);
}
.nj-nut__val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: var(--color-cream, #faf5f0);
}
.nj-nut__val em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(242, 221, 208, 0.45);
}
.nj-nut__bar {
  height: 9px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.nj-nut__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.nj-nut-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(245, 166, 35, 0.05);
  border: 1px dashed rgba(245, 166, 35, 0.2);
}
.nj-nut-lock span {
  flex: 1;
  min-width: 200px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.98rem;
  color: rgba(242, 221, 208, 0.62);
}

/* ── Dish strip ── */
.nj-block {
  margin-top: 34px;
}
.nj-subhead {
  display: block;
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 166, 35, 0.7);
  margin-bottom: 14px;
}
.nj-dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.nj-dish {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.24s ease;
}
.nj-dish:hover {
  background: rgba(245, 166, 35, 0.05);
  border-color: rgba(245, 166, 35, 0.22);
  transform: translateY(-1px);
}
.nj-dish__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.5);
}
.nj-dish__dot--untracked {
  background: rgba(242, 221, 208, 0.3);
  box-shadow: none;
}
.nj-dish__name {
  flex: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: rgba(242, 221, 208, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nj-dish__cal {
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  flex-shrink: 0;
}
.nj-dish__cal--soft {
  color: rgba(242, 221, 208, 0.35);
}
.nj-note {
  margin-top: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(242, 221, 208, 0.42);
}

/* ── AI gap hand-off ── */
.nj-below {
  margin-top: 20px;
}
.nj-gap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(245, 166, 35, 0.02));
  border: 1px solid rgba(245, 166, 35, 0.18);
}
.nj-gap__icon {
  flex-shrink: 0;
}
.nj-gap__copy {
  flex: 1;
  min-width: 220px;
}
.nj-gap__kicker {
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 166, 35, 0.8);
}
.nj-gap__line {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.12rem;
  line-height: 1.45;
  color: rgba(242, 221, 208, 0.85);
  margin-top: 5px;
}
.nj-gap__line strong {
  color: var(--color-cream, #faf5f0);
  font-weight: 600;
}

/* ── Buttons ── */
.nj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.28s, box-shadow 0.28s, background 0.28s;
}
.nj-btn--sm {
  padding: 9px 18px;
  font-size: 0.6rem;
}
.nj-btn--gold {
  background: linear-gradient(135deg, #f5a623, #d4891a);
  color: #080c14;
}
.nj-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.28);
}
.nj-btn--ghost {
  background: transparent;
  border-color: rgba(245, 166, 35, 0.3);
  color: var(--color-cream, #faf5f0);
}
.nj-btn--ghost:hover {
  border-color: rgba(245, 166, 35, 0.6);
  transform: translateY(-2px);
}

/* ── Empty / signed-out states ── */
.nj-empty {
  text-align: center;
  max-width: 540px;
  margin: 30px auto 0;
  padding: 48px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(245, 166, 35, 0.1);
  border-radius: 24px;
}
.nj-empty__mark {
  display: inline-flex;
  padding: 16px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.14);
  margin-bottom: 20px;
}
.nj-empty__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--color-cream, #faf5f0);
  margin-bottom: 12px;
}
.nj-empty__body {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(242, 221, 208, 0.6);
  margin-bottom: 24px;
}
.nj-empty__steps {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.nj-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  color: rgba(242, 221, 208, 0.7);
}
.nj-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  color: var(--color-accent);
  font-family: var(--font-primary, "Syne", sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
}
.nj-empty__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nj-wrap { padding: 100px 16px 72px; }
  .nj-portrait { padding: 26px 20px; }
  .nj-portrait__lead { gap: 24px; justify-content: center; text-align: center; }
  .nj-lead-copy { text-align: center; }
  .nj-lead-num { justify-content: center; }
  .nj-lead-line { margin: 0 auto; }
  .nj-chips { justify-content: center; }
}

/* Respect reduced-motion: no count-up jitter, fills appear instantly. */
@media (prefers-reduced-motion: reduce) {
  .nj-ring-fill,
  .nj-nut__fill { transition: none !important; }
}
