/* Goldy's Nourish (#/services/nourish). Prefix nr-. Dark premium: slate and brass, like the food photos.
   The cards are dark slate in both themes (the photos are dark and moody); the page around them follows the theme. */

/* Tokens also on the story overlay (rendered in a portal outside .nr). */
.nr, .nr-story {
  --nr-slate: #1E2226; --nr-slate-2: #262B30; --nr-slate-3: #30363C; --nr-line: rgba(231, 214, 178, 0.12);
  --nr-brass: #D3A84F; --nr-brass-2: #E8C77A; --nr-brass-deep: #9C7A2E;
  --nr-ink: #F3ECE0; --nr-ink-2: #C9C0B2; --nr-ink-3: #A39A8C;
  --nr-ok: #7FC79B; --nr-ok-tint: rgba(127, 199, 155, 0.16);
}
.nr-head { margin: var(--s1) 0 var(--s5); }
.nr-head .t-large { margin: 0 0 var(--s1); }
.nr-head .t-sub { margin: 0; }

.nr-card {
  position: relative; overflow: hidden; border-radius: var(--r-card); min-width: 0;
  background: linear-gradient(180deg, var(--nr-slate-2), var(--nr-slate)); color: var(--nr-ink);
  box-shadow: 0 0 0 1px var(--nr-line), 0 10px 28px -14px rgba(0, 0, 0, 0.55);
  padding: var(--s4);
}
.nr-card .t-foot, .nr-card .t-cap { color: var(--nr-ink-3); }
.nr-card .t-title3 { color: var(--nr-ink); margin: 0; }
.nr-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.nr-card__head .t-foot { margin: 2px 0 0; }
.nr-card__body { display: grid; gap: var(--s3); padding-top: var(--s4); }
.nr-eyebrow { display: block; font-size: var(--fs-12); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nr-brass-2); }
.nr-sub { margin: var(--s5) 0 var(--s2); font-size: var(--fs-15); font-weight: 650; color: var(--nr-ink); }

/* ---------- Today's plate ---------- */
.nr-plate { padding: 0; }
.nr-plate .nr-card__body { padding: var(--s4); }
.nr-plate__media { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--nr-slate-3); }
.nr-plate__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nr-plate__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 16, 18, 0) 38%, rgba(14, 16, 18, 0.88) 100%); }
.nr-plate__cap { position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4); display: grid; gap: 4px; justify-items: start; }
.nr-plate__title { margin: 0; font-size: var(--fs-24); font-weight: 700; letter-spacing: -0.01em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.nr-plate__time { font-weight: 500; font-size: var(--fs-17); color: var(--nr-ink-2); }
.nr-perfect {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--nr-brass-2), var(--nr-brass)); color: #2A1F0A; font-size: var(--fs-13); font-weight: 700;
  box-shadow: 0 4px 14px -4px rgba(211, 168, 79, 0.7); animation: nr-pop 420ms var(--ease) both;
}
.nr-plate__items { margin: 0; font-size: var(--fs-17); font-weight: 600; line-height: 1.35; color: var(--nr-ink); overflow-wrap: anywhere; }
.nr-booked { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--nr-ok-tint); color: var(--nr-ok); font-size: var(--fs-12); font-weight: 650; vertical-align: 2px; }
.nr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nr-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: 600; background: rgba(243, 236, 224, 0.08); color: var(--nr-ink); box-shadow: inset 0 0 0 1px var(--nr-line); }
.nr-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: currentColor; opacity: 0.9; }
.nr-tag--iron::before { background: #E07B67; }
.nr-tag--protein::before { background: var(--nr-brass-2); }
.nr-tag--fibre::before { background: #8CCB7E; }
.nr-tag--calcium::before { background: #EDE6D8; }
.nr-tag--energy::before { background: #F0A85A; }
.nr-tag--hydration::before { background: #6FB6E8; }
.nr-tag--gut::before { background: #C49BE0; }
.nr-why { display: flex; gap: var(--s2); align-items: flex-start; margin: 0; padding: var(--s3); border-radius: var(--r-input); background: rgba(211, 168, 79, 0.1); color: var(--nr-ink); font-size: var(--fs-15); line-height: 1.4; }
.nr-why .icon { flex: none; margin-top: 2px; color: var(--nr-brass-2); }

/* Segmented control on slate */
.nr .nr-seg { background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px var(--nr-line); width: 100%; }
.nr .nr-seg .segmented__opt { color: var(--nr-ink-2); flex: 1; }
.nr .nr-seg .segmented__opt[aria-checked="true"] { background: var(--nr-slate-3); color: var(--nr-brass-2); box-shadow: 0 0 0 1px var(--nr-line), 0 2px 6px rgba(0, 0, 0, 0.3); }

/* ---------- Tips (rings + stories) ---------- */
.nr-seen { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--nr-ok-tint); color: var(--nr-ok); font-size: var(--fs-12); font-weight: 650; white-space: nowrap; }
.nr-rings { list-style: none; margin: 0 0 var(--s4); padding: 2px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
.nr-ring { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: var(--nr-ink-2); cursor: pointer; font: inherit; min-height: var(--touch); }
.nr-ring__pic { width: 100%; max-width: 60px; aspect-ratio: 1; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, var(--nr-brass-2), var(--nr-brass-deep), var(--nr-brass-2)); }
.nr-ring__pic img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--nr-slate); background: var(--nr-slate-3); }
.nr-ring.is-seen .nr-ring__pic { background: var(--nr-slate-3); }
.nr-ring__label { font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nr-ring:active .nr-ring__pic { transform: scale(0.95); }
.nr-watch.btn--primary { background: linear-gradient(120deg, var(--nr-brass-2), var(--nr-brass)); color: #2A1F0A; }
.nr-watch.btn--primary:hover { background: linear-gradient(120deg, #F0D28E, var(--nr-brass-2)); }

.nr-story { position: fixed; inset: 0; z-index: 90; background: #0E1012; color: #fff; display: grid; outline: none; overflow: hidden; }
@media (min-width: 600px) { .nr-story { inset: 24px auto 24px 50%; width: min(420px, calc(100vw - 48px)); transform: translateX(-50%); border-radius: 24px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.7); } }
.nr-story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: nr-zoom 7s linear both; }
.nr-story__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0.1) 45%, rgba(10,11,13,0.94) 78%); }
.nr-story__bars { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.nr-story__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.nr-story__bars b { display: block; height: 100%; background: #fff; border-radius: 2px; transition: width 100ms linear; }
.nr-story__top { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 12px); left: 12px; right: 8px; display: flex; align-items: center; gap: 4px; z-index: 3; }
.nr-story__theme { flex: 1; min-width: 0; font-size: var(--fs-13); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nr-brass-2); text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.nr-story__btn { width: var(--touch); height: var(--touch); display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.25); color: #fff; cursor: pointer; }
.nr-story__tap { position: absolute; top: 80px; bottom: 45%; width: 40%; border: 0; background: transparent; z-index: 1; cursor: pointer; }
.nr-story__tap--prev { left: 0; }
.nr-story__tap--next { right: 0; width: 60%; }
.nr-story__text { position: relative; z-index: 2; align-self: end; padding: var(--s5) var(--s5) max(var(--s5), env(safe-area-inset-bottom)); display: grid; gap: var(--s3); animation: nr-rise 360ms var(--ease) both; }
.nr-story__title { margin: 0; font-size: var(--fs-28); line-height: 1.15; font-weight: 750; letter-spacing: -0.01em; }
.nr-story__text p { margin: 0; font-size: var(--fs-17); line-height: 1.45; color: #EDE6DA; }
.nr-story__next { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); padding: 0 18px; border: 0; border-radius: var(--r-pill); background: linear-gradient(120deg, var(--nr-brass-2), var(--nr-brass)); color: #2A1F0A; font: inherit; font-weight: 700; cursor: pointer; }
.nr-story .nr-story__foot { font-size: var(--fs-12); color: rgba(237, 230, 218, 0.7); }

/* ---------- Plate points ---------- */
.nr-score { display: grid; justify-items: end; line-height: 1; }
.nr-score__n { font-size: var(--fs-28); font-weight: 750; color: var(--nr-brass-2); animation: nr-pop 360ms var(--ease) both; }
.nr-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.nr-day { display: grid; justify-items: center; gap: 4px; }
.nr-day__dot { width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: var(--fs-13); font-weight: 700; color: var(--nr-ink-3); background: rgba(243, 236, 224, 0.06); box-shadow: inset 0 0 0 1px var(--nr-line); }
.nr-day__dow { font-size: var(--fs-12); color: var(--nr-ink-3); font-weight: 600; }
.nr-day--1 .nr-day__dot { background: rgba(211, 168, 79, 0.18); color: var(--nr-brass-2); }
.nr-day--2 .nr-day__dot { background: rgba(211, 168, 79, 0.36); color: #FBEFD2; }
.nr-day--3 .nr-day__dot { background: rgba(211, 168, 79, 0.6); color: #2A1F0A; }
.nr-day--4 .nr-day__dot { background: linear-gradient(140deg, var(--nr-brass-2), var(--nr-brass)); color: #2A1F0A; box-shadow: 0 3px 10px -3px rgba(211, 168, 79, 0.7); }
.nr-day.is-today .nr-day__dot { outline: 2px solid var(--nr-brass-2); outline-offset: 2px; }
.nr-day.is-today .nr-day__dow { color: var(--nr-brass-2); }
.nr-day.is-future .nr-day__dot { background: transparent; box-shadow: inset 0 0 0 1px rgba(243, 236, 224, 0.08); }
.nr-streak { display: flex; align-items: center; gap: 6px; margin: var(--s3) 0 var(--s2); font-size: var(--fs-15); font-weight: 600; color: var(--nr-ink); }
.nr-streak .icon { color: #F0A85A; }

.nr-habits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.nr-habit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3); border-radius: var(--r-input); background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1px var(--nr-line); transition: background var(--t-med) var(--ease); }
.nr-habit.is-done { background: rgba(211, 168, 79, 0.1); }
.nr-habit__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--nr-slate-3); color: var(--nr-brass-2); }
.nr-habit__main { min-width: 0; display: grid; gap: 2px; }
.nr-habit__title { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-weight: 650; font-size: var(--fs-15); color: var(--nr-ink); }
.nr-pts { padding: 0 8px; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 700; background: rgba(243, 236, 224, 0.08); color: var(--nr-ink-3); }
.nr-habit.is-done .nr-pts { background: var(--nr-brass); color: #2A1F0A; animation: nr-pop 360ms var(--ease) both; }
.nr-check { width: var(--touch); height: var(--touch); border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 2px rgba(243, 236, 224, 0.28); color: transparent; cursor: pointer; transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.nr-check:active { transform: scale(0.92); }
.nr-check.is-on { background: var(--nr-brass); box-shadow: none; color: #2A1F0A; animation: nr-pop 320ms var(--ease) both; }
.nr-check--static { cursor: default; width: 32px; height: 32px; margin: 6px; }
.nr-check:focus-visible { outline: 2px solid var(--nr-brass-2); outline-offset: 2px; }

.nr-glasses { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.nr-glass { position: relative; height: var(--touch); padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: end center; }
.nr-glass span { display: block; width: 72%; max-width: 26px; height: 34px; border-radius: 3px 3px 8px 8px; box-shadow: inset 0 0 0 2px rgba(243, 236, 224, 0.3); position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.nr-glass span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #8CCBF0, #4B9AD6); transition: height var(--t-med) var(--ease); }
.nr-glass.is-full span { box-shadow: inset 0 0 0 2px rgba(111, 182, 232, 0.8); }
.nr-glass.is-full span::after { height: 78%; }
.nr-glass:focus-visible { outline: 2px solid var(--nr-brass-2); outline-offset: 1px; border-radius: 6px; }
.nr-meter { height: 4px; border-radius: 2px; background: rgba(243, 236, 224, 0.1); overflow: hidden; margin-top: 6px; }
.nr-meter i { display: block; height: 100%; background: linear-gradient(90deg, #6FB6E8, var(--nr-brass-2)); transition: width var(--t-med) var(--ease); }
/* The water row puts glasses under the text, spanning the card. */
.nr-habit__extra { grid-column: 1 / -1; min-width: 0; }

.nr-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.nr-badge { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s2); align-items: center; padding: var(--s3); border-radius: var(--r-input); background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1px var(--nr-line); }
.nr-badge__seal { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--nr-slate-3); color: var(--nr-ink-3); }
.nr-badge__name { font-size: var(--fs-13); font-weight: 650; color: var(--nr-ink-2); overflow-wrap: anywhere; }
.nr-badge__sub { font-size: var(--fs-12); color: var(--nr-ink-3); }
.nr-badge.is-earned .nr-badge__seal { background: linear-gradient(140deg, var(--nr-brass-2), var(--nr-brass)); color: #2A1F0A; }
.nr-badge.is-earned .nr-badge__name { color: var(--nr-ink); }
.nr-badge.is-earned .nr-badge__sub { color: var(--nr-brass-2); }

.nr-foot { margin: 0; text-align: center; font-size: var(--fs-12); color: var(--text-3); }

/* ---------- Home teaser + staff ---------- */
.r-nourish { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--r-card); color: #F3ECE0; text-decoration: none; min-height: 84px;
  background: linear-gradient(110deg, #1E2226 0%, #262B30 60%, #3A3324 100%); box-shadow: 0 0 0 1px rgba(231, 214, 178, 0.12), var(--sh-1); }
.r-nourish img { flex: none; width: 60px; height: 60px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 2px rgba(211, 168, 79, 0.6); }
.r-nourish__main { flex: 1; min-width: 0; }
.r-nourish .t-head { color: #F3ECE0; }
.r-nourish .t-foot { color: #C9C0B2; }
.r-nourish > .icon { color: #E8C77A; }
.r-nourish:active { transform: scale(0.99); }

.nr-staff-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.nr-staff-tags .badge { font-size: var(--fs-12); }
.adm-nourish-usage { margin: 0; font-size: var(--fs-13); color: var(--text-2); display: flex; gap: 6px; align-items: center; }

/* ---------- motion ---------- */
@keyframes nr-pop { 0% { transform: scale(0.8); opacity: 0.4; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes nr-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nr-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .nr-perfect, .nr-score__n, .nr-habit.is-done .nr-pts, .nr-check.is-on, .nr-story__img, .nr-story__text { animation: none; }
  .nr-glass span::after, .nr-meter i, .nr-story__bars b, .nr-habit, .nr-check { transition: none; }
}
