/* MIMA / RESET 30 — design tokens (FINAL, per UX/UI spec v2.0 §Visual Design).
   Editorial medical luxury + feminine warmth + quiet wellness.
   Explicitly NOT health-app green, bright pink, gradients, shiny gold,
   emoji, confetti, badges, streak flames, macro rings, calorie counters,
   or aggressive red error screens. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bone: #F7F4EE;      /* background */
  --oat: #EAE3D9;       /* surface */
  --mushroom: #B9ADA0;  /* border only — too low-contrast for text on --bone (~2:1) */
  --mushroom-deep: #5F554A; /* caption/secondary TEXT + inactive nav — same warm
    family as --mushroom, darkened to ~6.6:1 on --bone (5.7:1 on --oat) */
  --ink: #292724;       /* primary text */
  --bronze: #9C7A54;    /* accent — decorative use (large numerals, borders) */
  --bronze-text: #7A5E3A; /* the same accent when it is used as TEXT (5.5:1 on --bone) */
  --rust: #A15C3E;      /* warning accent, never alarmist red */
  --sage: #6B7A5E;      /* confirmation accent */
  --sage-text: #53623F; /* sage as TEXT (6:1 on --bone) */
  --radius: 10px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 20px 64px;
}
@media (min-width: 900px) {
  .container { max-width: 620px; padding-top: 48px; }
}
/* Editorial marketing pages get real desktop width — not a stretched
   mobile column. Private program screens keep the narrower .container
   (short line lengths read better for daily use). */
.container--wide { max-width: 480px; }
@media (min-width: 900px) {
  .container--wide { max-width: 1120px; padding-top: 56px; }
}
.container--admin { max-width: 1080px; }
/* Patient app screens (AppLayout) render under a sticky bottom .tabbar —
   this replaces a fixed inline paddingBottom:90 with a safe-area-aware
   equivalent, so content never sits under the tabbar OR under an iPhone's
   home-indicator gesture area (env(safe-area-inset-bottom); 0px on devices
   without one, so this is a no-op there). */
.app-content-with-tabbar { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }

/* Headings scale fluidly with clamp() (min, viewport-relative preferred,
   max) instead of a fixed size that jumps at a single breakpoint — this
   keeps every step between mobile and desktop smooth, and overflow-wrap
   is a safety net so a long word/number can never push a heading outside
   the viewport, regardless of which font actually renders (Fraunces vs.
   a fallback with different glyph metrics). */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 500; margin: 0 0 12px; letter-spacing: -0.01em;
  overflow-wrap: break-word; word-break: break-word;
}
h1 { font-size: clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.5625rem); line-height: 1.28; }
h3 { font-size: 17px; line-height: 1.35; }
p { margin: 0 0 16px; }
.lede { font-size: 17px; line-height: 1.6; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--bronze-text); font-weight: 600; margin-bottom: 10px; }
.caption { color: var(--mushroom-deep); font-size: 13px; }
a { color: var(--bronze-text); }

/* ---- MIMA wordmark: locked visual mark, drawn by <MimaWordmark /> ----
   (src/lib/brand/wordmark.tsx). The component sets its own SVG height per
   size prop; this rule only supplies the desktop bump via the
   --mima-mark-desktop-height custom property the component writes inline,
   so no page ever needs its own wordmark CSS. */
@media (min-width: 900px) {
  .mima-mark { height: var(--mima-mark-desktop-height) !important; }
}

/* ---- restrained public header (RESET 30, eligibility intro, auth pages) ---- */
.public-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 28px; }
.public-header-link { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; align-self: center; }
.public-header-link:hover { color: var(--bronze-text); }

/* ---- private app top identity (restrained, not the marketing wordmark) ---- */
.app-topbar { padding: 14px 0 2px; }

/* ---- editorial hero (Welcome): CSS grid reflows mobile stack -> desktop split ---- */
.hero-grid {
  display: grid;
  grid-template-areas: "brand" "statement" "photo" "reset30";
  gap: 22px;
  margin-bottom: 8px;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand   photo"
      "statement photo"
      "reset30 photo";
    column-gap: 64px;
    row-gap: 20px;
    align-items: start;
    min-height: calc(100vh - 160px);
  }
}
.hero-brand { grid-area: brand; }
.hero-statement { grid-area: statement; align-self: center; }
.hero-photo { grid-area: photo; }
.hero-reset30 { grid-area: reset30; align-self: start; }
@media (min-width: 900px) {
  .hero-statement { align-self: end; }
}
.hero-photo img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); display: block; }
@media (min-width: 900px) {
  .hero-photo img { max-height: 640px; }
}
.statement-xl {
  font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 10px; letter-spacing: -0.01em;
  font-size: clamp(1.875rem, 1.5rem + 2vw, 2.75rem);
  overflow-wrap: break-word; word-break: break-word;
}

/* ---- price presentation (typography, not a pricing-table card) ---- */
.price-row { margin: 18px 0 24px; }
.price-amount { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -0.01em; display: block; }
.price-caption { color: var(--mushroom-deep); font-size: 14px; margin-top: 4px; }

/* ---- CTA hierarchy: content-sized on desktop, full-width on mobile ---- */
.btn-cta { width: 100%; }
@media (min-width: 900px) {
  .btn-cta { width: auto; min-width: 248px; padding-left: 34px; padding-right: 34px; }
}
.text-cta { display: block; text-align: center; margin-top: 14px; }

/* Long-form marketing body copy should not stretch full desktop width. */
.measure { max-width: 60ch; }

/* ---- Pre-RESET chapters (Part I-III): editorial reading, not app cards ---- */
.pre-reset-photo { margin-bottom: 22px; max-height: 420px; object-fit: cover; object-position: center 15%; }
.chapter-row {
  display: flex; align-items: baseline; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--oat);
  text-decoration: none; color: inherit;
}
.chapter-row:first-child { border-top: 1px solid var(--oat); }
.chapter-num { font-family: var(--serif); font-size: 28px; color: var(--bronze-text); flex-shrink: 0; width: 40px; }
.measure h2 { margin-top: 0; }

/* Part II educational illustrations — an editorial moment, not a card. */
.illustration { margin: 22px 0 20px; }
.illustration img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--oat); }
.illustration figcaption { margin-top: 10px; text-align: center; }

/* =====================================================================
   Chapter editorial system (Part I / II / III) — per approved mockup.
   Per-chapter identity: muted nude/blush (I), pastel sage (II),
   warm mushroom/sand (III). Deliberately flat color + type, no
   gradients/glassmorphism/shadows-as-decoration/stock icons. The only
   atmospheric effect allowed is the restrained "botanical shadow" below,
   used sparingly (never on every screen).
   ===================================================================== */
:root {
  --part1-bg: #F1E4DA;
  --part1-number: #D9C2B3;
  --part1-label: #80594A;

  --part2-bg: #DCE3D8;
  --part2-surface: #D6DED3;
  --part2-number: #B7C3AD;
  --part2-label: #4F5E43;

  --part3-bg: #EAE0D3;
  --part3-number: #D9C7B4;
  --part3-label: #765A38;
}

/* ---- Botanical shadow: a soft, realistic shadow as if natural light is
   casting a plant's silhouette on a wall — never a leaf icon or drawn
   illustration. Used selectively (chapter openers, Part II, occasional
   editorial pauses), always behind content, always very low opacity. ---- */
.botanical-shadow {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  border-radius: inherit;
}
.botanical-shadow svg { position: absolute; opacity: 0.16; filter: blur(2px); }

/* ---- Chapter cards grid (Mëso list + pre-reset intro) ---- */
.chapter-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) {
  .chapter-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.chapter-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; text-decoration: none; color: var(--ink);
  min-height: 300px; padding: 22px 22px 24px;
}
.chapter-card--part1 { background: var(--part1-bg); }
.chapter-card--part2 { background: var(--part2-bg); }
.chapter-card--part3 { background: var(--part3-bg); }
.chapter-card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.chapter-card-brand { font-family: var(--serif); font-size: 13px; letter-spacing: 0.02em; }
.chapter-card-reset { font-family: var(--sans); font-size: 10px; letter-spacing: 0.14em; color: var(--mushroom-deep); }
.chapter-card-number {
  font-family: var(--serif); font-weight: 400; line-height: 1; margin-top: 14px; position: relative; z-index: 1;
  font-size: clamp(3.375rem, 3rem + 1.5vw, 4.75rem);
}
.chapter-card--part1 .chapter-card-number { color: var(--part1-number); }
.chapter-card--part2 .chapter-card-number { color: var(--part2-number); }
.chapter-card--part3 .chapter-card-number { color: var(--part3-number); }
.chapter-card-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; margin-top: 6px; position: relative; z-index: 1; }
.chapter-card--part1 .chapter-card-label { color: var(--part1-label); }
.chapter-card--part2 .chapter-card-label { color: var(--part2-label); }
.chapter-card--part3 .chapter-card-label { color: var(--part3-label); }
.chapter-card-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 6px 0 10px; position: relative; z-index: 1;
  font-size: clamp(1.375rem, 1.25rem + 0.4vw, 1.625rem);
  overflow-wrap: break-word; word-break: break-word;
}
.chapter-card-desc {
  font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink); opacity: 0.75;
  margin: 0; position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.chapter-card-cta {
  margin-top: auto; padding-top: 16px; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; position: relative; z-index: 1;
}
.chapter-card--part1 .chapter-card-cta { color: var(--part1-label); }
.chapter-card--part2 .chapter-card-cta { color: var(--part2-label); }
.chapter-card--part3 .chapter-card-cta { color: var(--part3-label); }

/* ---- Chapter reader header — large-number treatment echoing the card,
   at the top of /app/parts/:part, replacing a plain eyebrow+h1. ---- */
.part-hero {
  position: relative; overflow: hidden; border-radius: 14px;
  padding: 26px 24px 24px; margin-bottom: 26px;
}
.part-hero--part1 { background: var(--part1-bg); }
.part-hero--part2 { background: var(--part2-bg); }
.part-hero--part3 { background: var(--part3-bg); }
.part-hero-number {
  font-family: var(--serif); font-weight: 400; line-height: 1; position: relative; z-index: 1;
  font-size: clamp(3.625rem, 3.2rem + 1.8vw, 4.75rem);
}
.part-hero--part1 .part-hero-number { color: var(--part1-number); }
.part-hero--part2 .part-hero-number { color: var(--part2-number); }
.part-hero--part3 .part-hero-number { color: var(--part3-number); }
.part-hero-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; margin-top: 4px; position: relative; z-index: 1; }
.part-hero--part1 .part-hero-label { color: var(--part1-label); }
.part-hero--part2 .part-hero-label { color: var(--part2-label); }
.part-hero--part3 .part-hero-label { color: var(--part3-label); }
.part-hero-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 6px 0 0; position: relative; z-index: 1;
  font-size: clamp(1.75rem, 1.55rem + 0.9vw, 2.125rem);
  overflow-wrap: break-word; word-break: break-word;
}
@media (min-width: 900px) {
  .part-hero { padding: 36px 40px 34px; }
}

/* ---- Editorial callout — one restrained pull-quote moment per chapter,
   pulled from text that already exists (never new copy), given visual
   emphasis. No quote marks, no icon, no card shadow. ---- */
.editorial-callout {
  margin: 32px 0; padding: 28px 0; border-top: 1px solid var(--oat); border-bottom: 1px solid var(--oat);
}
.editorial-callout p {
  font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.35; margin: 0; color: var(--ink);
}
@media (min-width: 900px) {
  .editorial-callout p { font-size: 27px; max-width: 34ch; }
}

/* ---- Part II illustration cards — restyled per mockup: a small eyebrow
   label (reusing the section's own existing heading — no invented
   captions) above the existing approved diagram. ---- */
.illustration-card {
  margin: 22px 0 26px; padding: 18px 18px 20px; background: var(--part2-surface); border-radius: 12px;
}
.illustration-card-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--part2-label);
  margin-bottom: 12px; text-transform: uppercase;
}
.illustration-card .illustration { margin: 0; }
.illustration-card .illustration img { border: none; background: #fff; }

/* =====================================================================
   Part III food-system diagrams (Pjata RESET / Porcioni yt RESET).
   Flat, muted, editorial — no gradients, no icons, no cartoon food, no
   colorful diet-infographic look. Colors are a dedicated soft palette
   (distinct from the part1/2/3 chapter-identity colors above, which mark
   which chapter you're in, not what's on the plate).
   ===================================================================== */
:root {
  --plate-veg: #C7D0BE;
  --plate-protein: #DCC1A6;
  --plate-carb: #E7D9BC;
}

.plate-diagram {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  margin: 26px 0 30px; padding: 24px 20px; background: var(--oat); border-radius: 14px;
}
.plate-diagram-svg { flex-shrink: 0; }
.plate-legend { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.plate-legend-item { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; }
.plate-legend-swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.plate-legend-fats {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--mushroom);
  font-family: var(--sans); font-size: 13px; color: var(--ink); opacity: 0.8;
}
@media (min-width: 900px) {
  .plate-diagram { flex-direction: row; align-items: center; gap: 36px; padding: 32px 40px; }
  .plate-legend { max-width: none; }
}

/* ---- MËNGJESI NË HOTEL — reuses the plate-diagram/plate-legend treatment
   (same layout + tokens), a loose buffet composition rather than exact
   ½/¼/¼ wedges. ---- */
.hotel-breakfast-visual {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin: 22px 0 10px; padding: 24px 20px; background: var(--oat); border-radius: 14px;
}
.hotel-breakfast-caption {
  font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.5;
  color: var(--ink); opacity: 0.75; text-align: center; margin: 0;
}
@media (min-width: 900px) {
  .hotel-breakfast-visual { flex-direction: row; align-items: center; gap: 32px; padding: 30px 36px; text-align: left; }
  .hotel-breakfast-caption { text-align: left; }
}

.portion-flow {
  margin: 26px 0 30px; padding: 24px 20px; background: var(--part3-bg); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.portion-flow-inputs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.portion-flow-input {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; background: var(--bone); color: var(--part3-label);
}
.portion-flow-arrow { font-size: 18px; color: var(--part3-label); opacity: 0.6; }
.portion-flow-result { max-width: 40ch; }
.portion-flow-result-title {
  font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--ink);
}
.portion-flow-result-desc {
  font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink); opacity: 0.75; margin-top: 8px;
}
@media (min-width: 900px) {
  .portion-flow { flex-direction: row; text-align: left; gap: 24px; padding: 30px 40px; }
  .portion-flow-arrow { flex-shrink: 0; }
}

/* ---- Editorial inset photo — a narrower, centered photograph dropped
   into the running text (unlike the full-width chapter-opener photo), for
   the occasional "real life" moment. Reuses existing approved photography
   only, never a placeholder or a generated image. ---- */
.editorial-photo { margin: 28px auto 32px; max-width: 300px; }
.editorial-photo .photo { margin: 0; }
@media (min-width: 900px) {
  .editorial-photo { max-width: 360px; }
}

/* =====================================================================
   Premium reading & program experience pass.
   Entrance reveal, reading-position indicator, editorial chapter
   transitions, and the Part III -> RESET 30 signature moment. Motion is
   deliberately restrained (a single fade + small rise, 250-400ms
   ease-out) and respects reduced-motion — never bounce, parallax or
   celebratory effects.
   ===================================================================== */
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal 360ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ---- Reading-position indicator — quiet orientation, never a percentage
   or gamified progress. Same --partN-label accent as that chapter's own
   cover, so it reads as part of the chapter, not a new UI chrome. ---- */
.reading-progress { margin: 2px 0 20px; }
.reading-progress-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 7px;
}
.reading-progress-track { height: 2px; background: var(--oat); border-radius: 2px; overflow: hidden; }
.reading-progress-fill { height: 100%; width: 0%; transition: width 100ms linear; }
.reading-progress--part1 .reading-progress-label { color: var(--part1-label); }
.reading-progress--part1 .reading-progress-fill { background: var(--part1-label); }
.reading-progress--part2 .reading-progress-label { color: var(--part2-label); }
.reading-progress--part2 .reading-progress-fill { background: var(--part2-label); }
.reading-progress--part3 .reading-progress-label { color: var(--part3-label); }
.reading-progress--part3 .reading-progress-fill { background: var(--part3-label); }

/* ---- Editorial chapter transition — replaces a plain "next chapter"
   button at the end of Part I and Part II. A gradient bridges the current
   chapter's color into the next one's, so turning the page feels like a
   continuous publication, not a dashboard link. ---- */
.chapter-transition {
  display: block; text-decoration: none; color: var(--ink); position: relative; overflow: hidden;
  border-radius: 16px; padding: 40px 26px 34px; margin: 36px 0 8px; text-align: center;
}
.chapter-transition--to-part2 { background: linear-gradient(160deg, var(--part1-bg) 0%, var(--part2-bg) 100%); }
.chapter-transition--to-part3 { background: linear-gradient(160deg, var(--part2-bg) 0%, var(--part3-bg) 100%); }
.chapter-transition-eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; opacity: 0.55;
  position: relative; z-index: 1;
}
.chapter-transition-number {
  font-family: var(--serif); font-weight: 400; line-height: 1; margin-top: 12px; position: relative; z-index: 1;
  font-size: clamp(3.125rem, 2.85rem + 1.2vw, 4.125rem);
}
.chapter-transition--to-part2 .chapter-transition-number { color: var(--part2-number); }
.chapter-transition--to-part3 .chapter-transition-number { color: var(--part3-number); }
.chapter-transition-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; margin-top: 4px; position: relative; z-index: 1; }
.chapter-transition--to-part2 .chapter-transition-label { color: var(--part2-label); }
.chapter-transition--to-part3 .chapter-transition-label { color: var(--part3-label); }
.chapter-transition-title {
  font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 8px 0 20px; position: relative; z-index: 1;
  font-size: clamp(1.4375rem, 1.3rem + 0.6vw, 1.8125rem);
  overflow-wrap: break-word; word-break: break-word;
}
.chapter-transition-cta { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; position: relative; z-index: 1; }
.chapter-transition--to-part2 .chapter-transition-cta { color: var(--part2-label); }
.chapter-transition--to-part3 .chapter-transition-cta { color: var(--part3-label); }
@media (min-width: 900px) {
  .chapter-transition { padding: 58px 40px 48px; }
}

/* ---- Part III -> RESET 30 signature transition (/pre-start). The single
   most important transition in the product: education becomes action. No
   food photography exists for this yet (see chat), so the moment is
   carried by quiet atmosphere — generous negative space, the botanical
   shadow, and the approved closing lines — rather than a placeholder. ---- */
.reset-transition {
  position: relative; overflow: hidden; text-align: center; border-radius: 18px;
  padding: 64px 26px 40px; background: linear-gradient(180deg, var(--part3-bg) 0%, var(--bone) 100%);
}
.reset-transition-word { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: 0.01em; position: relative; z-index: 1; opacity: 0.7; }
.reset-transition-welcome {
  font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.25; margin: 22px 0 14px; position: relative; z-index: 1;
}
.reset-transition-line { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); opacity: 0.8; margin: 0 0 34px; position: relative; z-index: 1; }
.reset-transition .btn { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .reset-transition { padding: 96px 40px 56px; }
  .reset-transition-welcome { font-size: 38px; max-width: 20ch; margin-left: auto; margin-right: auto; }
}

/* ---- Day opener (RESET 30 daily pages) — echoes the chapter-cover large
   numeral, so "Dita 8" feels like part of the same MIMA system as
   "02 / PART II", not a separate dashboard screen. ---- */
.day-hero { padding: 6px 0 26px; }
.day-hero-number {
  font-family: var(--serif); font-weight: 400; line-height: 1; margin-top: 6px; color: var(--bronze);
  font-size: clamp(3.5rem, 3.1rem + 1.8vw, 4.5rem);
}
.day-hero-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--bronze-text);
  margin-top: 2px; text-transform: uppercase;
}
.day-hero-greeting { font-family: var(--sans); font-size: 15px; color: var(--ink); opacity: 0.8; margin-top: 16px; }
.day-hero-subtitle { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-top: 6px; }
@media (min-width: 900px) {
  .day-hero-subtitle { font-size: 26px; }
}

/* ---- Current-day emphasis in the 30-day list — elegant, not a lock icon
   or countdown. ---- */
.list-item--current { background: var(--oat); border-radius: 10px; padding-left: 12px; padding-right: 12px; margin: 0 -12px; }

/* =====================================================================
   Real-life guidance + personalization pass.
   Inline drawers ("Pse funksionon kjo pjatë?", "Nuk e ke këtë sot?"),
   continue-reading, and the quiet recovery moment. Native <details> is
   used for drawers on purpose — no new JS, works with no client script at
   all, and degrades to a plain expand/collapse.
   ===================================================================== */

/* ---- Inline drawer ("sheet"). Ivory/taupe, restrained — never a
   colorful card. summary gets no default disclosure triangle; a plain "+"
   /"–" indicator is drawn instead. ---- */
.sheet { margin-top: 14px; border-top: 1px solid var(--oat); padding-top: 14px; }
.sheet-trigger {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); list-style: none;
}
.sheet-trigger::-webkit-details-marker { display: none; }
.sheet-trigger::after { content: "+"; color: var(--bronze-text); font-size: 18px; font-weight: 400; }
details[open] > .sheet-trigger::after { content: "–"; }
.sheet-panel {
  margin-top: 12px; padding: 14px 16px; background: var(--oat); border-radius: 10px;
  font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink);
}

/* ---- Continue reading (MËSO) ---- */
.continue-reading {
  display: block; text-decoration: none; color: var(--ink); background: var(--oat); border-radius: 12px;
  padding: 16px 18px; margin-top: 18px;
}
.continue-reading-eyebrow { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-text); }
.continue-reading-title { font-family: var(--serif); font-weight: 500; font-size: 19px; margin-top: 6px; }
.continue-reading-cta { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--bronze-text); margin-top: 8px; }

/* ---- Quiet text CTA — same as .text-cta but visually softer, for an
   action that should be findable, not prominent (real-life recovery). ---- */
.text-cta--quiet { color: var(--mushroom-deep); font-size: 14px; }

/* ---- "Sot nuk shkoi siç e kisha menduar" — reuses .reset-transition's
   quiet-atmosphere treatment with a calmer, neutral gradient (this is a
   recurring, low-key moment, not the once-only RESET 30 signature one). ---- */
.reset-transition--recovery { background: linear-gradient(180deg, var(--oat) 0%, var(--bone) 100%); padding-top: 48px; }
.reset-transition--recovery .reset-transition-welcome { font-size: 20px; max-width: 26ch; margin-left: auto; margin-right: auto; }

.card {
  background: #fff;
  border: 1px solid var(--oat);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

/* ---- "Jeta nuk shkon gjithmonë sipas planit" — a quiet contextual area on
   /app/today holding the two real-life quick-action entry points as
   elegant pill buttons, never underlined text links (this is a deliberate
   choice, distinct from every other quiet .text-cta on this page). ---- */
.context-block { margin-top: 26px; text-align: center; }
.context-block-title {
  font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.35;
  color: var(--ink); margin-bottom: 16px;
}
.pill-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill-btn {
  display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; transition: background 0.15s ease, color 0.15s ease;
}
.pill-btn:hover { background: var(--ink); color: #fff; }

/* ---- "Mëso me Dr. Romina" card on /app/today — points straight into
   RESET NË JETËN REALE, separate from the general "Mëso" bottom-nav tab. ---- */
.real-life-card { margin-top: 20px; transition: border-color 0.15s ease; }
.real-life-card:hover { border-color: var(--bronze); }
.real-life-card .text-cta { margin-top: 0; text-align: left; }
.surface { background: var(--oat); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--mushroom-deep); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--mushroom); border-radius: 8px;
  font-family: var(--sans); font-size: 15px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bronze); outline-offset: 1px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--oat); }
.checkbox-row input { margin-top: 3px; }
.radio-group label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--oat); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.radio-group label input { margin-top: 3px; }
.radio-group label:has(input:checked) { border-color: var(--bronze); background: var(--bone); }
.radio-group .radio-supporting { display: block; font-size: 13px; color: var(--mushroom-deep); font-weight: 400; margin-top: 4px; }

.btn { display: inline-block; text-align: center; font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; width: 100%; }
.btn-primary:hover { background: #171613; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); width: 100%; }
.btn-ghost { background: transparent; color: var(--bronze-text); border: none; padding: 10px 0; }
.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; }
.btn-danger { background: transparent; color: var(--rust); border-color: var(--rust); }

.nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--oat); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.brand { font-family: var(--serif); font-size: 18px; }

.tabbar { display: flex; justify-content: space-around; border-top: 1px solid var(--oat); background: #fff; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); position: sticky; bottom: 0; }
.tabbar a { color: var(--mushroom-deep); text-decoration: none; font-size: 11px; text-align: center; }
.tabbar a.active { color: var(--ink); font-weight: 600; }

.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--oat); color: var(--ink); }
.badge-warn { background: #F1E4DB; color: var(--rust); }
.badge-ok { background: #E7EBE3; color: var(--sage-text); }

.notice { border: 1px solid var(--rust); background: #FBF3EF; border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.notice-ok { border-color: var(--sage); background: #F0F3EE; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--oat); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mushroom-deep); }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 210px; background: #fff; border-right: 1px solid var(--oat); padding: 20px 0; flex-shrink: 0; }
.admin-sidebar a { display: block; padding: 10px 20px; color: var(--ink); text-decoration: none; font-size: 14px; }
.admin-sidebar a.active { background: var(--bone); font-weight: 600; border-right: 2px solid var(--bronze); }
.admin-main { flex: 1; padding: 28px 32px; }
@media (max-width: 700px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 8px; }
  .admin-sidebar a { padding: 8px 14px; white-space: nowrap; }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--oat); }
.list-item:last-child { border-bottom: none; }

.photo { width: 100%; border-radius: var(--radius); display: block; object-fit: cover; }

.muted { color: var(--mushroom-deep); }
.stack > * + * { margin-top: 10px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ---- Scientific citations — elegant superscript, never a footnote dump ---- */
.citation { font-size: 0.7em; margin-left: 1px; }
.citation a { color: var(--bronze-text); text-decoration: none; font-weight: 600; }
.citation a:hover { text-decoration: underline; }

.ref-overlay {
  position: fixed; inset: 0; background: rgba(41, 39, 36, 0.28);
  display: none; z-index: 100;
}
.ref-overlay.open { display: block; }
.ref-panel {
  position: fixed; background: #fff; border: 1px solid var(--oat); border-radius: var(--radius);
  padding: 18px 20px; max-width: 340px; z-index: 101;
}
.ref-panel--popover { position: absolute; box-shadow: 0 6px 20px rgba(41,39,36,0.12); }
.ref-panel--sheet {
  left: 0; right: 0; bottom: 0; top: auto; max-width: none;
  border-radius: 16px 16px 0 0; padding: 22px 20px 28px;
  border-bottom: none;
}
.ref-panel-num { font-family: var(--serif); color: var(--bronze-text); font-size: 15px; margin-bottom: 6px; }
.ref-panel-title { font-size: 15px; line-height: 1.4; margin-bottom: 6px; }
.ref-panel-org { color: var(--mushroom-deep); font-size: 13px; margin-bottom: 12px; }
.ref-panel-link, .ref-panel-all { display: block; font-size: 13px; color: var(--bronze-text); text-decoration: none; margin-top: 6px; }
.ref-panel-link:hover, .ref-panel-all:hover { text-decoration: underline; }
.ref-panel-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 20px;
  line-height: 1; color: var(--mushroom-deep); cursor: pointer; padding: 4px;
}

/* =====================================================================
   RESET NË JETËN REALE (drinks / restaurant / travel + quick actions).
   Reuses the existing editorial tokens (--bone/--ink/--bronze/--oat/
   --mushroom) and the Part III hero/transition treatment — presented as a
   continuation of Metoda RESET, never a separate blog/FAQ/card-grid style.
   ===================================================================== */
.rl-landing-item { align-items: flex-start; }
.rl-landing-number { font-family: var(--serif); color: var(--bronze-text); font-size: 13px; margin-bottom: 2px; }
.rl-quick-links { margin-top: 22px; padding-top: 4px; }

/* ---- Dr. Romina inline note — a quiet aside, distinct from body copy. ---- */
.rl-note {
  margin: 16px 0 6px; padding: 14px 16px; background: var(--oat); border-radius: 10px;
}
.rl-note-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bronze-text); margin-bottom: 6px;
}
.rl-note p { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; margin: 0; color: var(--ink); }

/* ---- KAFEJA JOTE — flat ceramic-cup progression, quiet-luxury palette,
   explicitly not a traffic-light/good-bad visual (see caption copy). ---- */
.coffee-visual {
  margin: 24px 0 8px; padding: 22px 18px; background: var(--oat); border-radius: 14px; text-align: center;
}
.coffee-visual-eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bronze-text); margin-bottom: 14px;
}
.coffee-visual-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.coffee-cup { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; }
.coffee-cup-label { font-family: var(--sans); font-size: 10.5px; color: var(--ink); opacity: 0.75; text-align: center; }
.coffee-visual-caption { font-size: 13px; color: var(--mushroom-deep); margin: 16px 0 0; }
.coffee-guide-list { margin-top: 18px; }
.coffee-guide-item { padding: 12px 0; border-bottom: 1px solid var(--oat); }
.coffee-guide-item:first-child { border-top: 1px solid var(--oat); }
.coffee-guide-item p { margin: 4px 0 0; }

/* ---- The one connected editorial scenario (restaurant module) — a small
   narrative beat, not a generic FAQ card. ---- */
.rl-scenario {
  margin: 30px 0; padding: 24px 22px; background: var(--part3-bg); border-radius: 14px;
}
.rl-scenario-eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--part3-label); margin-bottom: 8px;
}
.rl-scenario-close {
  font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.4; margin-top: 18px !important;
}

/* ---- Chapter closing line — same restrained italic-serif treatment used
   for the byline, so every RESET NË JETËN REALE section ends on the same
   quiet editorial note. ---- */
.rl-closing {
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.55; margin: 30px 0 6px;
  color: var(--ink); opacity: 0.85;
}

/* ---- Quick actions ("SOT HA JASHTË" / "PO UDHËTOJ") — a 20-30 second
   reminder, plain numbered steps, never a checklist/completable list (no
   checkbox state exists — these never touch program_day/adherence). ---- */
.quick-steps { list-style: none; margin: 20px 0 0; padding: 0; }
.quick-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--oat); }
.quick-step:last-child { border-bottom: none; }
.quick-step-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--oat); color: var(--bronze-text);
  font-family: var(--sans); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.quick-step-text { font-size: 15px; line-height: 1.5; padding-top: 2px; }
.quick-subtitle {
  font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.4; margin: 6px 0 0;
  color: var(--ink); opacity: 0.75;
}
.quick-closing {
  font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; margin: 20px 0 0;
  color: var(--ink); opacity: 0.85;
}

/* ---- Referencat shkencore (dedicated MËSO page) ---- */
.ref-list-item { padding: 16px 0; border-bottom: 1px solid var(--oat); scroll-margin-top: 20px; }
.ref-list-item:first-child { border-top: 1px solid var(--oat); }
.ref-list-num { font-family: var(--serif); color: var(--bronze-text); font-size: 14px; }
.ref-list-title { margin: 4px 0; }
.ref-list-org { color: var(--mushroom-deep); font-size: 13px; }
.ref-list-link { font-size: 13px; color: var(--bronze-text); text-decoration: none; }
.ref-list-link:hover { text-decoration: underline; }

/* =====================================================================
   Visual refinement pass — typography, spacing, readability.
   Layout/colour polish only: no copy, no content, no logic. Appended last
   on purpose so each rule is a small, reviewable override of the system
   above (same palette: cream, blush, soft sage, elegant serif headings).
   ===================================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Readability: secondary text + navigation -------------------------- */
.caption { font-size: 14px; line-height: 1.5; }
.tabbar { padding-top: 8px; box-shadow: 0 -1px 0 var(--oat); justify-content: center; }
.tabbar a {
  flex: 1 1 0; max-width: 150px; padding: 6px 4px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--mushroom-deep); position: relative;
}
.tabbar a.active { color: var(--ink); font-weight: 600; }
.tabbar a.active::before {
  content: ""; position: absolute; top: -9px; left: 28%; right: 28%; height: 2px; border-radius: 2px; background: var(--bronze);
}
/* Wordmark row: a little more presence, tighter vertical footprint. */
.app-topbar { padding: 10px 0 0; margin-bottom: 12px; }

/* ---- Parts I-III: reading typography ---------------------------------- */
.part-reader { max-width: 62ch; }
.part-reader p { font-size: 17px; line-height: 1.65; margin: 0 0 1em; color: var(--ink); }
.part-reader h2 {
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem); line-height: 1.25; letter-spacing: -0.012em;
  margin: 0 0 16px;
}
.part-section { scroll-margin-top: 18px; }
.part-section + .part-section { margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--oat); }
.part-section:first-child > p:first-child { font-size: 19px; line-height: 1.65; }
.part-reader .editorial-callout { margin: 30px 0; }
.part-reader .illustration-card, .part-reader .plate-diagram, .part-reader .portion-flow { margin-left: 0; margin-right: 0; }
@media (min-width: 900px) {
  .part-reader p { font-size: 18px; }
  .part-section:first-child > p:first-child { font-size: 20px; }
  .part-section + .part-section { margin-top: 52px; padding-top: 44px; }
}

/* ---- Clickable chapter contents (links to the chapter's own headings) --- */
.part-toc { margin: 0 0 30px; max-width: 62ch; border: 1px solid var(--oat); border-radius: 12px; background: #fff; }
.part-toc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 14px 18px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bronze-text); min-height: 48px;
}
.part-toc summary::-webkit-details-marker { display: none; }
.part-toc summary::after { content: "+"; font-size: 20px; font-weight: 400; letter-spacing: 0; }
.part-toc[open] summary::after { content: "–"; }
.part-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0 6px 8px; }
.part-toc li { counter-increment: toc; }
.part-toc li a {
  display: flex; gap: 14px; align-items: baseline; padding: 10px 12px; border-top: 1px solid var(--oat);
  font-family: var(--serif); font-size: 16.5px; line-height: 1.35; color: var(--ink); text-decoration: none; border-radius: 8px;
}
.part-toc li:first-child a { border-top: none; }
.part-toc li a::before {
  content: counter(toc, decimal-leading-zero); font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--bronze-text); letter-spacing: 0.04em; flex-shrink: 0; min-width: 22px;
}
.part-toc li a:hover, .part-toc li a:focus-visible { background: var(--bone); }

/* ---- "Para se të fillojmë": compact chapter cards ---------------------- */
.chapter-grid { gap: 12px; }
.chapter-card {
  display: grid; align-content: start; min-height: 0; padding: 16px 20px 16px; border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr); column-gap: 16px;
  grid-template-areas: "top top" "num label" "num title" "desc desc" "cta cta";
}
.chapter-card-top { grid-area: top; }
.chapter-card-number { grid-area: num; margin: 0; align-self: center; font-size: clamp(2.75rem, 2.5rem + 1vw, 3.5rem); }
.chapter-card-label { grid-area: label; margin: 8px 0 0; align-self: end; }
.chapter-card-title { grid-area: title; margin: 2px 0 0; align-self: start; font-size: clamp(1.3125rem, 1.2rem + 0.4vw, 1.5rem); }
.chapter-card-desc { grid-area: desc; margin-top: 10px; font-size: 15px; opacity: 0.85; }
.chapter-card-cta { grid-area: cta; margin-top: 0; padding-top: 10px; font-size: 13px; }
.chapter-card-top { margin-bottom: 2px; }
@media (min-width: 900px) {
  .chapter-card { padding: 20px 22px 18px; }
}
.pre-reset-photo { margin-bottom: 18px; }

/* ---- "Sot": compact opening so the meals come sooner -------------------- */
.day-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 0 0 12px;
}
.day-hero-number { grid-row: 1 / span 2; margin: 0; font-size: clamp(2.75rem, 2.5rem + 1vw, 3.5rem); }
.day-hero-label { margin: 0; align-self: end; }
.day-hero-greeting { margin: 2px 0 0; font-size: 16px; opacity: 1; color: var(--mushroom-deep); align-self: start; }
.day-hero-subtitle { grid-column: 1 / -1; margin-top: 12px; }

/* ---- Recipe page ------------------------------------------------------ */
.back-link {
  display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 6px -2px; padding: 4px 2px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--bronze-text); text-decoration: none;
}
.back-link:hover, .back-link:focus-visible { text-decoration: underline; }
.meal-portion h3 { font-size: 19px; margin-bottom: 8px; }
.meal-portion ul { margin: 0; padding-left: 1.2em; }
.meal-portion li { line-height: 1.55; margin: 6px 0; }
.meal-prep p { line-height: 1.65; }
.btn-primary:disabled { background: var(--sage-text); color: #fff; cursor: default; opacity: 1; }

/* Superscript citations must not stretch the line or wrap apart. */
.citation { line-height: 0; white-space: nowrap; }

/* "Sot": the three meal cards a little tighter, so meals are reached sooner. */
.stack > a.card { padding: 18px 22px; margin-bottom: 0; }
.stack { margin-bottom: 14px; }

/* Bottom navigation stays pinned to the bottom of the screen even on short
   pages (it used to float up under short content). */
body:has(> .tabbar) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> .tabbar) > .container { flex: 1 0 auto; width: 100%; }
body:has(> .tabbar) > .tabbar { flex-shrink: 0; width: 100%; }

/* ---- Alternatives vs. snack: two clearly different things (v1.4 integration) ----
   "Me çfarë mund ta zëvendësosh" = a sage-tinted card on the meal page, always
   visible (no longer a collapsed drawer). "Snack opsional / Zgjidh snack-un" =
   a pale-pink card with its own button on the Today page. Same palette as the
   rest of the app; no new colors. */
.swap-card {
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #E9EEE4;
  border: 1px solid #C9D3C0;
  border-left: 4px solid var(--sage-text);
}
.swap-card-label {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink, #292724);
}
.swap-card-sub { margin: 4px 0 12px; color: var(--mushroom-deep); }
.swap-card-body strong { display: block; }
.swap-card-body > div + div { border-top: 1px solid #C9D3C0; padding-top: 12px; }
.snack-card {
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #F6E9E1;
  border: 1px solid #E6CFC2;
  border-left: 4px solid var(--bronze-text);
}
.snack-card-label {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--bronze-text);
}

/* =====================================================================
   v1.6 — one meal on screen (day view + calendar preview).
   Presentation only, same palette and fonts. Nothing here hides content
   that used to be visible on the meal itself: other meals are one tab away.
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- "Sot": smaller day numeral, tighter opener ---- */
.day-hero--compact { padding: 0 0 8px; column-gap: 12px; }
.day-hero--compact .day-hero-number { font-size: clamp(2.125rem, 1.95rem + 0.8vw, 2.625rem); }
h1.day-hero-label { font-family: var(--sans); font-weight: 600; font-size: 12px; line-height: 1.4; letter-spacing: 0.1em; margin: 0; }
.day-hero--compact .day-hero-greeting { font-size: 15px; }
.day-hero--compact .day-hero-subtitle { font-size: 19px; margin-top: 8px; }
.day-message { font-size: 15.5px; line-height: 1.55; margin: 0 0 12px; }

/* ---- "Mëngjesi | Dreka | Darka" tabs ---- */
.meal-tabs {
  position: sticky; top: 0; z-index: 5; background: var(--bone);
  margin: 8px -20px 10px; padding: 8px 20px;
}
.meal-tabs ul {
  list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  background: var(--oat); border-radius: 12px;
}
.meal-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 6px 4px;
  border-radius: 9px; border: 1px solid transparent; text-decoration: none; color: var(--mushroom-deep);
  font-family: var(--sans); font-size: 15px; font-weight: 600; text-align: center;
}
.meal-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.55); }
.meal-tab[aria-current="page"] {
  background: #fff; color: var(--ink); border-color: var(--bronze); box-shadow: 0 1px 2px rgba(41, 39, 36, 0.08);
}
.meal-tab:focus-visible, .alt-summary:focus-visible, .sheet-trigger:focus-visible, .snack-strip:focus-visible, .option-link:focus-visible, .snack-jump:focus-visible {
  outline: 2px solid var(--bronze-text); outline-offset: 2px;
}
.meal-tab-done { font-size: 12px; font-weight: 600; color: var(--sage-text); margin-top: 1px; }
@media (min-width: 900px) {
  .meal-tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

/* ---- Snack: a distinct strip right under the tabs, fully clickable ---- */
.snack-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 10px 14px 11px; margin: 20px 0 0; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: #F6E9E1; border: 1px solid #E6CFC2; border-left: 4px solid var(--bronze-text);
}
.snack-strip .snack-card-label { grid-column: 1; grid-row: 1; }
.snack-strip-cta { grid-column: 2; grid-row: 1; font-size: 14px; font-weight: 600; color: var(--bronze-text); white-space: nowrap; }
.snack-strip-text { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 1.45; color: var(--ink); }
.snack-strip:hover { border-color: var(--bronze); }
.snack-jump {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px; font-size: 14px; font-weight: 600;
  color: var(--bronze-text); text-decoration: none;
}
.snack-jump:hover { text-decoration: underline; }

/* ---- One meal ---- */
.meal-panel { scroll-margin-top: 72px; }
.meal-eyebrow { margin-bottom: 4px; font-size: 12px; }
/* "Sot nuk shkoi…": a full-height tap target. */
.recovery-link { display: flex !important; align-items: center; justify-content: center; min-height: 44px; }
.meal-title { font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem); line-height: 1.22; margin-bottom: 14px; }
.meal-block-title { font-size: 18px; margin: 0 0 6px; }
.card.meal-portion { padding: 16px 18px 8px; }

/* Ingredients: name + quantity on one line, the weighing note under it. */
.ing-list, .meal-portion .ing-list { list-style: none; margin: 0; padding: 0; }
.meal-portion .ing { margin: 0; }
.ing { padding: 10px 0; border-top: 1px solid var(--oat); }
.ing:first-child { border-top: none; }
.ing-main { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.ing-name { font-size: 16px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.ing-qty { font-size: 16px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.ing-note { display: block; font-size: 14px; line-height: 1.4; color: var(--mushroom-deep); margin-top: 2px; }

/* Preparation as numbered steps. */
.meal-prep { padding: 16px 18px; }
.prep-steps { list-style: none; counter-reset: step; margin: 6px 0 0; padding: 0; }
.prep-steps li { counter-increment: step; position: relative; padding: 0 0 0 36px; margin: 0 0 12px; line-height: 1.6; }
.prep-steps li:last-child { margin-bottom: 0; }
.prep-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bone); color: var(--bronze-text); font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* Values: readable, never the loudest thing on the page. */
.meal-values { margin: 4px 0 0; }
.sheet-trigger { min-height: 44px; }

/* D28–D30 options. */
.option-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.option-link {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--mushroom); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; background: #fff;
}
.option-link--current { border-color: var(--ink); background: var(--ink); color: #fff; }
.option-note { display: block; margin: 2px 0 0 4px; }

/* ---- "Të mungon një përbërës?" ---- */
h3.swap-card-label { font-weight: 500; margin: 0; }
.swap-card-sub { margin: 4px 0 6px; }
.alt { border-top: 1px solid #C9D3C0; }
.alt:first-child { border-top: none; }
.alt-summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; column-gap: 10px; align-items: center;
  list-style: none; cursor: pointer; min-height: 52px; padding: 10px 0;
}
.alt-summary::-webkit-details-marker { display: none; }
.alt-summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; color: var(--sage-text); font-size: 20px; text-align: center; }
.alt[open] > .alt-summary::after { content: "–"; }
.alt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.alt-name { font-weight: 600; font-size: 15.5px; line-height: 1.35; min-width: 0; }
.alt-qty { font-weight: 600; font-size: 15.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.alt-sub { grid-column: 1; font-size: 13.5px; color: var(--mushroom-deep); line-height: 1.4; }
.alt-flag { color: var(--rust); font-weight: 600; }
.alt-panel { padding: 0 0 14px; font-size: 15px; line-height: 1.55; }
.alt-instruction { margin: 0 0 8px; }
.alt-weigh { margin: 0 0 8px; font-size: 14px; }
.alt-key { font-weight: 600; }
.alt-values { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.6); }
.alt-values--diff { border-left: 3px solid var(--rust); }
.alt-diff-label { display: block; font-size: 14px; color: var(--rust); margin-bottom: 4px; }
.alt-delta { margin: 0; font-size: 14px; }
.alt-total { margin: 4px 0 0; }
.sheet--inner { margin-top: 10px; padding-top: 8px; border-top-color: #C9D3C0; }
.sheet--inner .sheet-panel { background: rgba(255, 255, 255, 0.6); }

/* ---- v1.7: weight at the start and at the end (Progresi yt, Dita 30) ---- */
h2.weight-title { font-size: 19px; margin: 0 0 8px; }
.weight-card .flex-between { padding: 4px 0; }
.weight-change { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--oat); font-size: 15px; }
.weight-change strong { font-size: 17px; }
.weight-field .checkbox-row { border-bottom: none; padding-bottom: 0; }
