/* ==========================================================================
   Menu Sense marketing site: custom styles
   Tailwind handles everyday utilities. This file holds the brand tokens and
   the few things utilities can't express. Every selector is ms- prefixed.

   BRAND COLOURS: change the values below and the whole site follows.
   Tailwind reads the same variables through the @theme block in each page.
   ========================================================================== */

:root {
  /* Brand (placeholder until the official hex values are confirmed) */
  --ms-basil: #17724f;        /* primary */
  --ms-basil-deep: #0f4f38;   /* primary, pressed and hover */
  --ms-persimmon: #f4621f;    /* secondary */
  --ms-persimmon-deep: #c2410c;

  /* Neutrals */
  --ms-ink: #10291f;          /* text and dark bands */
  --ms-muted: #4a5f54;        /* secondary text */
  --ms-line: #d5dfcf;         /* borders */
  --ms-celery: #e8f1df;       /* soft green background */
  --ms-mist: #f4f7f1;         /* soft neutral background */
  --ms-white: #ffffff;

  /* Nutrition accents */
  --ms-n-energy: #f4621f;
  --ms-n-protein: #17724f;
  --ms-n-carbs: #d99a06;
  --ms-n-fat: #6d55c9;
  --ms-n-sugar: #c7285f;
  --ms-n-sodium: #1f7f96;

  --ms-font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --ms-font-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;

  --ms-header-h: 76px;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/ms-bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/ms-instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Page base. Scoped to .ms-page so nothing fights Tailwind's preflight.
   -------------------------------------------------------------------------- */
.ms-root { scroll-behavior: smooth; scroll-padding-top: calc(var(--ms-header-h) + 16px); }

.ms-page {
  margin: 0;
  background: var(--ms-white);
  color: var(--ms-ink);
  font-family: var(--ms-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.ms-wrap {
  width: 100%;
  max-width: 1392px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

.ms-band { padding-block: clamp(64px, 9vw, 136px); }
.ms-band-tight { padding-block: clamp(48px, 6vw, 88px); }

.ms-skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ms-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
}
.ms-skip-link:focus { top: 12px; }

.ms-page :focus-visible {
  outline: 3px solid var(--ms-persimmon);
  outline-offset: 2px;
}

/* Type scale */
.ms-display {
  font-family: var(--ms-font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 12.2vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.ms-h1 {
  font-family: var(--ms-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 3vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.ms-h2 {
    font-family: var(--ms-font-display);
    font-weight: 800;
    font-size: clamp(2.1rem, 3vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}
.ms-h3 {
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.ms-lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  max-width: 34em;
  color: var(--ms-muted);
}
.ms-on-dark .ms-lede { color: #c6d8cd; }
.ms-measure { max-width: 66ch; margin-block-end: 1em; }

/* The label bar: the heavy rule from a nutrition panel. It is the site's one
   recurring graphic device, used to open a section and to structure data. */
.ms-label-bar {
  display: block;
  width: 100%;
  height: 12px;
  background: var(--ms-ink);
  border: 0;
  margin: 0 0 clamp(20px, 2.4vw, 32px);
}
.ms-on-dark .ms-label-bar { background: #fff; }
.ms-label-bar-short { width: 96px; }

/* Facts list: rows ruled like a nutrition panel */
.ms-facts { padding: 0; list-style: none; border-top: 4px solid var(--ms-ink); }
.ms-facts-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ms-ink);
}
@media (min-width: 640px) { .ms-facts-row { grid-template-columns: minmax(0, 15em) minmax(0, 1fr); } }
@media (min-width: 640px) { .ms-contact-page .ms-facts-row { grid-template-columns: 6em minmax(0, 1fr); } }
.ms-facts-row:last-child { border-bottom: 4px solid var(--ms-ink); }
.ms-facts-name {
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}
.ms-facts-note { color: var(--ms-muted); margin: 0; }

/* Buttons */
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.ms-btn:active { transform: translateY(1px); }
.ms-btn-primary { background: var(--ms-basil); color: #fff; }
.ms-btn-primary:hover { background: var(--ms-basil-deep); }
.ms-btn-outline { border-color: var(--ms-ink); color: var(--ms-ink); background: transparent; }
.ms-btn-outline:hover { background: var(--ms-ink); color: #fff; }
.ms-btn-compact { min-height: 44px; padding: 8px 18px; font-size: .98rem; }

.ms-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 9px 22px 9px 18px;
  border-radius: 6px;
  background: var(--ms-ink);
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--ms-ink);
  transition: background-color .2s ease, border-color .2s ease;
}
.ms-store-btn:hover { background: var(--ms-basil); border-color: var(--ms-basil); }
.ms-store-btn svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.ms-store-btn small { display: block; font-size: .74rem; line-height: 1.2; opacity: .85; }
.ms-store-btn strong {
  display: block;
  font-family: var(--ms-font-display);
  font-size: 1.16rem;
  line-height: 1.15;
  font-weight: 700;
}
.ms-on-dark .ms-store-btn { background: #fff; color: var(--ms-ink); border-color: #fff; }
.ms-on-dark .ms-store-btn:hover { background: var(--ms-celery); border-color: var(--ms-celery); }

/* Header */
.ms-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.ms-site-header.ms-is-scrolled { border-bottom-color: var(--ms-line); }
.ms-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--ms-header-h);
  transition: height .25s ease;
}
.ms-site-header.ms-is-scrolled .ms-header-row { height: 64px; }
.ms-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ms-ink);
  text-decoration: none;
  font-family: var(--ms-font-display);
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ms-logo-link { min-height: 44px; }
.ms-logo-mark { width: 34px; height: 34px; flex: none; }
.ms-nav-link {
  position: relative;
  padding: 10px 2px;
  color: var(--ms-ink);
  text-decoration: none;
  font-weight: 500;
}
.ms-nav-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 3px;
  background: var(--ms-persimmon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.ms-nav-link:hover::after,
.ms-nav-link[aria-current="page"]::after { transform: scaleX(1); }

.ms-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--ms-celery);
  color: var(--ms-ink);
  cursor: pointer;
}
@media (min-width: 1024px) { .ms-nav-toggle { display: none; } }
.ms-mobile-nav {
  display: none;
  border-top: 1px solid var(--ms-line);
  background: #fff;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}
.ms-mobile-nav.ms-is-open { display: block; }
.ms-mobile-link {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--ms-line);
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ms-ink);
  text-decoration: none;
}
.ms-mobile-link[aria-current="page"] { color: var(--ms-basil); }

/* Hero */
.ms-hero-section {
    position: relative;
    background: #f1d931;
}
.ms-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.ms-hero-line { display: block; white-space: nowrap; }
@media (min-width: 1024px) { .ms-lede.ms-hero-support { max-width: min(34em, calc(100% - 96px)); } }
@media (min-width: 1024px) { .ms-display { font-size: clamp(2.9rem, 5.05vw, 4.9rem); } }
.ms-hero-visual { position: relative; }
.ms-hero-photo {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: 6px;
}
.ms-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 200px 130px 160px 30px;
}
.ms-hero-phone {
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: -34px;
  --ms-phone-w: min(54vw, 15rem);
}
.ms-cutout { position: absolute; pointer-events: none; height: auto; }
.ms-hero-phone { z-index: 2; }
.ms-cutout-tomato { width: clamp(76px, 10vw, 136px); top: -24px; left: -10px; }
.ms-cutout-avocado { width: clamp(70px, 9vw, 122px); bottom: 44px; right: 4px; transform: rotate(16deg); }
.ms-cutout-basil { width: clamp(80px, 10vw, 140px); bottom: -30px; left: -14px; transform: rotate(-14deg); }

@media (min-width: 1024px) {
  .ms-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4vw, 64px);
    min-height: min(calc(100svh - var(--ms-header-h)), 920px);
  }
  .ms-hero-photo { aspect-ratio: auto; height: min(calc(100svh - var(--ms-header-h) - 72px), 800px); min-height: 580px; }
  .ms-hero-phone {
    margin: 0;
    right: auto;
    left: -84px;
    bottom: 28px;
    --ms-phone-w: clamp(13.5rem, 17vw, 16.5rem);
  }
  .ms-cutout-tomato { top: -30px; left: auto; right: -14px; }
  .ms-cutout-avocado { right: -18px; bottom: 96px; }
  .ms-cutout-basil { left: -176px; bottom: -14px; }
}

/* Image frames */
.ms-frame { position: relative; overflow: hidden; border-radius: 6px; background: var(--ms-celery); }
.ms-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ms-fig-note { margin: 10px 0 0; font-size: .86rem; line-height: 1.4; color: var(--ms-muted); }
.ms-on-dark .ms-fig-note { color: #b7cdbf; }

/* Tag that marks anything illustrative */
.ms-sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ms-persimmon-deep);
  background: #fff;
}
.ms-on-dark .ms-sample-tag { color: #fff; background: transparent; }

/* Feature mosaic: five differently shaped tiles */
.ms-feature-mosaic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ms-feature-tile { position: relative; overflow: hidden; border-radius: 6px; min-width: 0; }
.ms-feature-benefit {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
  font-weight: 600;
  line-height: 1.35;
}
.ms-feature-benefit svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ms-persimmon-deep); }
.ms-on-dark .ms-feature-benefit svg { color: #ffb48f; }
@media (min-width: 768px) {
  .ms-feature-mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ms-tile-scanner { grid-column: span 7; }
  .ms-tile-insights { grid-column: span 5; }
  .ms-tile-alternatives { grid-column: span 5; }
  .ms-tile-basket { grid-column: span 7; }
  .ms-tile-planning { grid-column: span 12; }
}

/* Swap comparison */
.ms-swap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px; background: var(--ms-line); }
.ms-swap-cell { background: #fff; padding: 14px; min-width: 0; }

/* Nutrition */
.ms-panel {
  background: #fff;
  color: var(--ms-ink);
  border: 3px solid var(--ms-ink);
  padding: clamp(16px, 2vw, 24px);
  max-width: 460px;
}
.ms-panel-title {
  font-family: var(--ms-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.ms-panel-thick { height: 10px; background: var(--ms-ink); margin: 8px 0; }
.ms-panel-mid { height: 4px; background: var(--ms-ink); margin: 6px 0; }
.ms-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  border-top: 1px solid var(--ms-ink);
  line-height: 1.3;
}
.ms-panel-row-sub { padding-left: 1.1em; }
.ms-panel-value { font-variant-numeric: tabular-nums; }
.ms-nutrition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ms-nutrition-card { background: #fff; padding: 16px; border-top: 5px solid var(--ms-n, var(--ms-ink)); min-width: 0; }
.ms-nutrition-num {
  font-family: var(--ms-font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ms-meter { height: 8px; margin-top: 12px; background: var(--ms-mist); overflow: hidden; }
.ms-meter > span { display: block; height: 100%; background: var(--ms-n, var(--ms-ink)); transform-origin: left; }
@media (min-width: 640px) {
  .ms-nutrition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Basket product rows */
.ms-product-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ms-line);
  border-radius: 6px;
  background: #fff;
}
.ms-product-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; display: block; }

/* Meal planner */
.ms-meal-planner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ms-meal-day { border-top: 4px solid var(--ms-ink); padding-top: 10px; min-width: 0; }
.ms-meal-item { display: flex; gap: 10px; align-items: center; padding: 7px 0; }
.ms-meal-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; }
.ms-meal-kind { display: block; font-size: .8rem; line-height: 1.2; color: var(--ms-muted); }
.ms-meal-name { display: block; font-weight: 600; line-height: 1.2; font-size: .96rem; }
@media (min-width: 640px) { .ms-meal-planner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .ms-meal-planner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* How it works */
.ms-steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin: 0; padding: 0; list-style: none; }
.ms-step { position: relative; padding-left: 72px; min-width: 0; }
.ms-step-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--ms-basil);
  color: #fff;
  border-radius: 50%;
  z-index: 1;
}
.ms-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 54px;
  bottom: -36px;
  width: 3px;
  background: var(--ms-basil);
}
@media (min-width: 900px) {
  .ms-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .ms-step { padding-left: 0; padding-top: 76px; }
  .ms-step:not(:last-child)::before { left: 54px; right: -28px; top: 26px; bottom: auto; width: auto; height: 3px; }
}

/* App preview */
.ms-preview-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px clamp(16px, 4vw, 56px) 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ms-preview-item { flex: none; scroll-snap-align: center; --ms-phone-w: 14.5rem; }
.ms-preview-caption { margin: 12px 0 0; text-align: center; font-weight: 600; }
@media (min-width: 1200px) {
  .ms-preview-rail {
    justify-content: center;
    overflow: visible;
    gap: clamp(8px, 1vw, 18px);
    perspective: 1800px;
    padding-inline: 16px;
  }
  .ms-preview-item { --ms-phone-w: clamp(11.4rem, 13.4vw, 14rem); }
  .ms-preview-item:nth-child(1) { transform: rotateY(16deg) translateY(30px); }
  .ms-preview-item:nth-child(2) { transform: rotateY(9deg) translateY(10px); }
  .ms-preview-item:nth-child(5) { transform: rotateY(-9deg) translateY(10px); }
  .ms-preview-item:nth-child(6) { transform: rotateY(-16deg) translateY(30px); }
}

/* FAQ */
.ms-faq-item { border-bottom: 1px solid var(--ms-ink); }
.ms-faq-q {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  background: none;
  border: 0;
  color: var(--ms-ink);
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.ms-faq-icon { flex: none; width: 24px; height: 24px; transition: transform .25s ease; }
.ms-faq-q[aria-expanded="true"] .ms-faq-icon { transform: rotate(45deg); }
.ms-faq-a { overflow: hidden; }
.ms-faq-a p { margin: 0; padding: 0 44px 22px 0; color: var(--ms-muted); max-width: 66ch; }
.ms-js .ms-faq-a[hidden] { display: none; }

/* Forms */
.ms-field { display: block; }
.ms-field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.ms-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--ms-ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ms-ink);
  font: inherit;
}
.ms-input[aria-invalid="true"] { border-color: var(--ms-n-sugar); }
.ms-field-error { display: block; min-height: 1.2em; margin-top: 4px; font-size: .9rem; color: #a81f4e; }
.ms-form-status {
  padding: 14px 16px;
  border-left: 5px solid var(--ms-persimmon);
  background: var(--ms-mist);
}
.ms-form-status[hidden] { display: none; }

/* Legal */
.ms-legal-toc a { display: inline-block; padding: 10px 0; line-height: 1.3; }
.ms-legal h2 {
  font-family: var(--ms-font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  /*margin: 2.2em 0 .5em;*/
}
.ms-legal p, .ms-legal li { max-width: 68ch; }
.ms-legal p { margin: 0 0 1em; }
.ms-legal ul { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }

.ms-social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  color: inherit;
  border: 1px solid currentColor;
  transition: background-color .2s ease, color .2s ease;
}
.ms-social-link svg { width: 18px; height: 18px; fill: currentColor; }
.ms-social-link:hover { background: #fff; color: var(--ms-ink); }
.ms-contact-page .ms-social-link:hover { background: var(--ms-ink); color: #fff; }
.ms-footer-link { color: #d4e3d9; text-decoration: none; display: inline-block; padding: 12px 0; line-height: 1.3; }
.ms-footer-link:hover { color: #fff; text-decoration: underline; }

.ms-back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--ms-ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.ms-back-top.ms-is-visible { opacity: 1; visibility: visible; }

.ms-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--ms-ink);
  color: #fff;
  line-height: 1.4;
}
.ms-toast[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Illustrative phone mockups.
   Everything inside is sized in em so one custom property scales the device:
   1em equals 1/28 of the phone's width.
   -------------------------------------------------------------------------- */
.ms-phone {
  width: var(--ms-phone-w, 16rem);
  font-size: calc(var(--ms-phone-w, 16rem) / 28);
  aspect-ratio: 28 / 58;
  padding: .7em;
  background: var(--ms-ink);
  border-radius: 4.2em;
  box-shadow: 0 2.4em 4em -1.6em rgba(16, 41, 31, .45);
  flex: none;
}
.ms-phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 3.5em;
  background: #fff;
  color: var(--ms-ink);
  line-height: 1.25;
  font-size: 1em;
}
.ms-phone-island {
  position: absolute;
  top: .8em;
  left: 50%;
  z-index: 3;
  width: 7em;
  height: 1.9em;
  transform: translateX(-50%);
  border-radius: 1em;
  background: var(--ms-ink);
}
.ms-ph-body { flex: 1; min-height: 0; overflow: hidden; padding: 3.6em 1.5em 0; display: flex; flex-direction: column; gap: 1em; }
.ms-ph-title { font-family: var(--ms-font-display); font-weight: 800; font-size: 2em; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.ms-ph-sub { font-size: 1em; color: var(--ms-muted); margin: 0; }
.ms-ph-small { font-size: .95em; color: var(--ms-muted); }
.ms-ph-strong { font-weight: 700; font-size: 1.12em; }
.ms-ph-search { display: flex; gap: .6em; align-items: center; padding: .85em 1em; border-radius: .7em; background: var(--ms-mist); color: var(--ms-muted); font-size: 1.05em; }
.ms-ph-search svg { width: 1.3em; height: 1.3em; flex: none; }
.ms-ph-cta { display: flex; gap: .8em; align-items: center; padding: 1.1em; border-radius: .9em; background: var(--ms-basil); color: #fff; font-weight: 700; font-size: 1.1em; }
.ms-ph-cta svg { width: 1.6em; height: 1.6em; flex: none; }
.ms-ph-row { display: flex; gap: .9em; align-items: center; padding: .85em 0; border-bottom: 1px solid var(--ms-line); min-width: 0; }
.ms-ph-row img { width: 4.6em; height: 4.6em; object-fit: cover; border-radius: .5em; flex: none; display: block; }
.ms-ph-row > div { min-width: 0; flex: 1; }
.ms-ph-row .ms-ph-strong, .ms-ph-row .ms-ph-small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-ph-pill { display: inline-block; padding: .25em .7em; border-radius: 2em; background: var(--ms-celery); color: var(--ms-basil-deep); font-size: .92em; font-weight: 700; white-space: nowrap; }
.ms-ph-chips { display: flex; gap: .5em; overflow: hidden; }
.ms-ph-photo { flex: 1; min-height: 8em; border-radius: .9em; overflow: hidden; position: relative; }
.ms-ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-ph-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: .8em .8em 1.6em; border-top: 1px solid var(--ms-line); background: #fff; flex: none; }
.ms-ph-tab { display: flex; flex-direction: column; align-items: center; gap: .2em; font-size: .78em; color: var(--ms-muted); min-width: 0; }
.ms-ph-tab svg { width: 1.9em; height: 1.9em; }
.ms-ph-tab.ms-is-on { color: var(--ms-basil); font-weight: 700; }
.ms-ph-viewfinder { position: relative; flex: 1; min-height: 0; margin: 0 -1.5em; margin-top: -3.6em; overflow: hidden; background: var(--ms-ink); }
.ms-ph-viewfinder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-ph-brackets { position: absolute; inset: 15% 12% 12%; border: 0; }
.ms-ph-brackets i { position: absolute; width: 3em; height: 3em; border: .36em solid #fff; }
.ms-ph-brackets i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.ms-ph-brackets i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.ms-ph-brackets i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.ms-ph-brackets i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.ms-scan-line { position: absolute; left: 0; right: 0; top: 50%; height: .3em; background: var(--ms-persimmon); }
.ms-ph-sheet { padding: 1.2em 1.5em 1em; background: #fff; flex: none; display: flex; flex-direction: column; gap: .6em; }
.ms-ph-bars { display: grid; gap: .55em; }
.ms-ph-bar { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) 2.6em; gap: .6em; align-items: center; font-size: .96em; }
.ms-ph-bar i { display: block; height: .55em; background: var(--ms-mist); overflow: hidden; }
.ms-ph-bar i b { display: block; height: 100%; background: var(--ms-n, var(--ms-basil)); }
.ms-ph-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--ms-mist); border-radius: .7em; padding: .25em; font-weight: 700; text-align: center; font-size: .98em; }
.ms-ph-toggle span { padding: .45em; border-radius: .55em; }
.ms-ph-toggle span:first-child { background: #fff; }
.ms-ph-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3em; text-align: center; font-size: .92em; }
.ms-ph-week span { padding: .5em 0; border-radius: .5em; background: var(--ms-mist); }
.ms-ph-week span.ms-is-on { background: var(--ms-basil); color: #fff; font-weight: 700; }
.ms-ph-swap { padding: .9em 1em; border-radius: .8em; background: var(--ms-celery); font-size: 1em; }
.ms-ph-avatar { width: 5em; height: 5em; border-radius: 50%; background: var(--ms-celery); color: var(--ms-basil-deep); display: grid; place-items: center; font-family: var(--ms-font-display); font-weight: 800; font-size: 1.2em; flex: none; }
.ms-ph-list-item { display: flex; justify-content: space-between; align-items: center; padding: 1.5em 0; border-bottom: 1px solid var(--ms-line); font-weight: 600; font-size: 1.05em; }
.ms-ph-list-item svg { width: 1.2em; height: 1.2em; color: var(--ms-muted); }

/* Motion safety net: nothing is hidden by CSS, so content shows without JS. */
@media (prefers-reduced-motion: reduce) {
  .ms-root { scroll-behavior: auto; }
  .ms-page *, .ms-page *::before, .ms-page *::after { transition-duration: .01ms !important; }
}

@media print {
  .ms-site-header, .ms-back-top, .ms-toast { display: none; }
}

.ms-list li{
  line-height: 23px;
  padding-bottom: 10px;
}

.ms-list li {
    list-style-type: disc;
}
.pp-number li{
  list-style-type: none;
}
.ms-space {
  max-width: 80% !important;
}
@media (max-width: 767px) {
  .ms-space {
    max-width: 100% !important;
    width: 100% !important;
  }
}