/* ==========================================================================
   Medireal Design System
   Brand: 医芮贸易（上海）有限公司 / NewGel+ 迈纽捷 MyNewGel
   ========================================================================== */

:root {
  /* Color */
  --mr-brand-900: #062f3a;
  --mr-brand-800: #08414f;
  --mr-brand-700: #0e5a6b;
  --mr-brand-600: #12718a;
  --mr-brand-500: #1b8ca8;
  --mr-brand-100: #e6f2f5;
  --mr-brand-50: #f3f9fa;

  --mr-ink-900: #0f172a;
  --mr-ink-700: #334155;
  --mr-ink-500: #64748b;
  --mr-ink-300: #cbd5e1;
  --mr-line: #e2e8f0;
  --mr-bg: #ffffff;
  --mr-bg-soft: #f6f8f9;
  --mr-accent: #12a594;

  /* Type scale */
  --mr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --mr-h1: clamp(2.1rem, 4.4vw, 3.5rem);
  --mr-h2: clamp(1.6rem, 2.8vw, 2.4rem);
  --mr-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --mr-body: clamp(1rem, 0.35vw + 0.9rem, 1.0625rem);
  --mr-small: 0.875rem;

  /* Space & shape */
  --mr-container: 1320px;
  --mr-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --mr-section-y: clamp(3.5rem, 7vw, 6.5rem);
  --mr-radius: 14px;
  --mr-radius-sm: 10px;
  --mr-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
  --mr-shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.06),
    0 18px 48px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mr-bg);
  color: var(--mr-ink-900);
  font-family: var(--mr-font);
  font-size: var(--mr-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mr-brand-700); text-decoration: none; }
a:hover { color: var(--mr-brand-500); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--mr-brand-900);
}
h1 { font-size: var(--mr-h1); }
h2 { font-size: var(--mr-h2); }
h3 { font-size: var(--mr-h3); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin: 0.25em 0; }
strong { font-weight: 700; color: var(--mr-brand-800); }

.mr-container {
  width: 100%;
  max-width: var(--mr-container);
  margin: 0 auto;
  padding: 0 var(--mr-gutter);
}

.mr-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mr-brand-700);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.mr-skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.mr-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mr-line);
}
.mr-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.mr-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--mr-brand-800);
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.mr-logo img { height: 34px; width: auto; }
.mr-logo span small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--mr-ink-500);
  letter-spacing: 0.06em;
}

.mr-nav { margin-left: auto; }
.mr-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.mr-nav a {
  color: var(--mr-ink-700);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}
.mr-nav a:hover,
.mr-nav .current-menu-item > a,
.mr-nav .current_page_item > a,
.mr-nav .current-page-ancestor > a { color: var(--mr-brand-700); }
.mr-nav .current-menu-item > a::after,
.mr-nav .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--mr-brand-500);
  border-radius: 2px;
}

.mr-lang { display: flex; gap: 0.35rem; align-items: center; }
.mr-lang a {
  font-size: 0.8125rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--mr-ink-500);
  border: 1px solid transparent;
  line-height: 1.4;
}
.mr-lang a:hover { color: var(--mr-brand-700); background: var(--mr-brand-50); }
.mr-lang a.is-active {
  color: var(--mr-brand-800);
  background: var(--mr-brand-100);
  border-color: var(--mr-brand-100);
  font-weight: 600;
}

.mr-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  margin-left: auto;
}
.mr-nav-toggle span {
  display: block;
  width: 18px;
  height: 1.7px;
  background: var(--mr-ink-900);
  margin: 3.5px auto;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.mr-nav.is-open .mr-nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.mr-nav.is-open .mr-nav-toggle span:nth-child(2) { opacity: 0; }
.mr-nav.is-open .mr-nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.mr-btn,
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--mr-brand-700);
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--mr-brand-700);
  line-height: 1.4;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.mr-btn:hover,
.wp-block-button__link:hover {
  background: var(--mr-brand-600);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--mr-shadow);
}
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
.mr-btn--ghost {
  background: transparent;
  color: var(--mr-brand-700) !important;
  border-color: var(--mr-brand-300, var(--mr-brand-500));
}
.is-style-outline .wp-block-button__link:hover,
.mr-btn--ghost:hover {
  background: var(--mr-brand-50);
  color: var(--mr-brand-800) !important;
}
.mr-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --------------------------------------------------------------------------
   Sections / blocks
   -------------------------------------------------------------------------- */
.mr-main { display: block; }

.mr-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--mr-brand-50) 0%, #ffffff 100%);
  overflow: hidden;
}
.mr-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(27, 140, 168, 0.14), rgba(27, 140, 168, 0) 62%);
  pointer-events: none;
}
.mr-hero__inner { position: relative; }
.mr-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mr-brand-600);
  background: #fff;
  border: 1px solid var(--mr-brand-100);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.mr-hero h1 { max-width: 20ch; }
.mr-lead {
  font-size: clamp(1.0625rem, 1.2vw + 0.85rem, 1.25rem);
  color: var(--mr-ink-700);
  max-width: 46ch;
  line-height: 1.7;
}

.mr-section { padding: var(--mr-section-y) 0; }
.mr-section--soft { background: var(--mr-bg-soft); }
.mr-section--brand { background: var(--mr-brand-800); color: #fff; }
.mr-section--brand h2,
.mr-section--brand h3 { color: #fff; }
.mr-section--brand p { color: rgba(255, 255, 255, 0.86); }

.mr-section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.mr-section__head p { color: var(--mr-ink-700); margin-bottom: 0; }

/* Gutenberg columns as card grid */
.wp-block-columns { gap: clamp(1rem, 2vw, 1.75rem); }
.mr-grid-3 .wp-block-column,
.mr-grid-2 .wp-block-column { display: flex; }
.mr-card {
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--mr-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}
.mr-card:hover { transform: translateY(-3px); box-shadow: var(--mr-shadow-lg); }
.mr-card h3 { margin-bottom: 0.25rem; font-size: 1.125rem; }
.mr-card p { color: var(--mr-ink-700); font-size: 0.9375rem; margin-bottom: 0; }
.mr-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mr-brand-600);
}
.mr-card .mr-btn { margin-top: auto; align-self: flex-start; }

.mr-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mr-brand-100);
  color: var(--mr-brand-700);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.mr-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.5rem 0 0;
}
.mr-badges li {
  font-size: 0.8125rem;
  color: var(--mr-brand-800);
  background: var(--mr-brand-50);
  border: 1px solid var(--mr-brand-100);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin: 0;
}

.mr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mr-stats strong {
  display: block;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  color: var(--mr-brand-700);
  line-height: 1.2;
}
.mr-stats span { font-size: 0.875rem; color: var(--mr-ink-500); }

.mr-cta {
  text-align: center;
  border-radius: var(--mr-radius);
  padding: clamp(2rem, 4vw, 3.25rem);
  background: #fff;
  border: 1px solid var(--mr-line);
  box-shadow: var(--mr-shadow);
}
.mr-cta h2 { margin-bottom: 0.5rem; }
.mr-cta p { color: var(--mr-ink-700); max-width: 52ch; margin-inline: auto; }

.mr-note {
  font-size: 0.8125rem;
  color: var(--mr-ink-500);
  background: var(--mr-bg-soft);
  border-left: 3px solid var(--mr-brand-300, var(--mr-brand-500));
  border-radius: 0 var(--mr-radius-sm) var(--mr-radius-sm) 0;
  padding: 0.9rem 1.1rem;
  line-height: 1.7;
}

.mr-prose { max-width: 68ch; }
/* Pages that contain a columns block (e.g. contact cards) need room:
   68ch (~648px) squeezes 3 columns to ~197px and overflow WP buttons. */
.mr-prose:has(.wp-block-columns) { max-width: min(100%, 960px); }
.mr-prose .wp-block-columns { max-width: 100%; }
.mr-prose h2 { margin-top: 2.25rem; }
.mr-prose h3 { margin-top: 1.75rem; }
.mr-prose ul { color: var(--mr-ink-700); }

.mr-product {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1.25rem;
  box-shadow: var(--mr-shadow);
}
.mr-product > .wp-block-column { display: block; }
.mr-product__media {
  background: var(--mr-bg-soft);
  border-radius: var(--mr-radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.mr-product__media img { width: 100%; height: 100%; object-fit: contain; }
.mr-product h3 { margin-bottom: 0.35rem; }
.mr-product p { color: var(--mr-ink-700); font-size: 0.9375rem; }
.mr-product__meta { font-size: 0.8125rem; color: var(--mr-ink-500); margin-bottom: 0.75rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.mr-footer {
  background: var(--mr-brand-900);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
  font-size: 0.9375rem;
}
.mr-footer a { color: rgba(255, 255, 255, 0.86); }
.mr-footer a:hover { color: #fff; }
.mr-footer h4 {
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.mr-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.mr-footer ul { list-style: none; margin: 0; padding: 0; }
.mr-footer li { margin: 0.45rem 0; }
.mr-footer__brand p { max-width: 34ch; }
.mr-footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.mr-404 { padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; }

.wp-block-image img { border-radius: var(--mr-radius-sm); }
.wp-block-separator { border-color: var(--mr-line); margin: 2.5rem 0; }
.wp-block-quote {
  border-left: 3px solid var(--mr-brand-500);
  padding-left: 1.25rem;
  color: var(--mr-ink-700);
  font-style: normal;
}

.mr-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.mr-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mr-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Content flow (block content areas)
   -------------------------------------------------------------------------- */
.mr-page-head {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, var(--mr-brand-50) 0%, #ffffff 100%);
}
.mr-page-head h1 { max-width: 24ch; }

.mr-content { padding: 0 var(--mr-gutter); }
.mr-content > * {
  max-width: var(--mr-container);
  margin-left: auto;
  margin-right: auto;
}
.mr-content > .alignfull { max-width: none; }
.mr-content > .wp-block-group.mr-section { padding-block: var(--mr-section-y); }
.mr-content > .mr-band {
  background: var(--mr-bg-soft);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-block: clamp(1.5rem, 3vw, 2.25rem);
}

.wp-block-column { display: flex; }
.wp-block-column > * { width: 100%; }
.mr-content .wp-block-columns { margin-bottom: 0; }

.entry-content h2,
.mr-content h2 { margin-top: clamp(2rem, 4vw, 3rem); }

.mr-content .wp-block-image figcaption,
.mr-content figcaption { font-size: 0.8125rem; color: var(--mr-ink-500); text-align: center; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .mr-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  .mr-nav-toggle { display: block; }
  .mr-header__inner { min-height: 64px; flex-wrap: wrap; }
  .mr-nav ul,
  .mr-lang {
    display: none;
    width: 100%;
  }
  .mr-nav.is-open ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1.25rem;
    border-top: 1px solid var(--mr-line);
    margin-top: 0.5rem;
  }
  .mr-nav.is-open ul li { width: 100%; padding: 0.55rem 0; border-bottom: 1px solid var(--mr-line); }
  .mr-nav.is-open .mr-lang { display: flex; padding-bottom: 1rem; }
  .wp-block-columns { flex-direction: column !important; }
  .wp-block-column { flex-basis: 100% !important; margin-left: 0 !important; }
  .mr-product { grid-template-columns: 1fr; }
  .mr-product__media { max-width: 240px; }
  .mr-footer__grid { grid-template-columns: 1fr; }
}

/* IFU details block */
.mr-ifu {
  margin: 1rem 0;
  border: 1px solid var(--mr-border, #e2e8f0);
  border-radius: 12px;
  background: var(--mr-bg-soft, #f7fafc);
  overflow: hidden;
}
.mr-ifu summary {
  cursor: pointer;
  padding: .85rem 1.15rem;
  font-weight: 600;
  color: var(--mr-brand-700, #155e75);
  list-style: none;
}
.mr-ifu summary::before { content: "▸ "; }
.mr-ifu[open] summary::before { content: "▾ "; }
.mr-ifu table { width: 100%; border-collapse: collapse; margin: 0 0 .5rem; }
.mr-ifu th,
.mr-ifu td {
  text-align: left;
  padding: .55rem 1.15rem;
  border-top: 1px solid #e8edf3;
  vertical-align: top;
  font-size: .93rem;
}
.mr-ifu th { white-space: nowrap; color: #46586b; width: 7.5em; font-weight: 600; }

/* Header brand logo */
.mr-logo { display: flex; align-items: center; gap: .65rem; }
.mr-logo__img { height: 42px; width: auto; display: block; }
@media (max-width: 720px) { .mr-logo__img { height: 34px; } }

/* ==========================================================================
   Desktop-first layout enhancements
   ========================================================================== */

/* Hero: split copy + product visual */
.mr-hero__split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.mr-hero__copy { position: relative; z-index: 1; }
.mr-hero__media {
  margin: 0;
  justify-self: center;
  width: min(100%, 460px);
}
.mr-hero__media img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(15, 118, 144, 0.35);
}
.mr-hero h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); }

@media (max-width: 900px) {
  .mr-hero__split { grid-template-columns: 1fr; }
  .mr-hero__media { width: min(100%, 380px); justify-self: center; }
}

/* Featured product image cards */
.mr-featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.mr-featured__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--mr-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mr-featured__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(15, 118, 144, 0.28);
}
.mr-featured__media {
  display: block;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  background: var(--mr-bg-soft);
}
.mr-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.mr-featured__body {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.1rem 1.15rem;
}
.mr-featured__body strong { color: var(--mr-ink-900); font-size: 1rem; line-height: 1.4; }
.mr-featured__body small { color: var(--mr-ink-500); font-size: .8125rem; }
@media (max-width: 1020px) { .mr-featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mr-featured { grid-template-columns: 1fr; } }

/* Product page: larger media column on desktop */
@media (min-width: 900px) {
  .mr-product { grid-template-columns: 300px 1fr; }
  .mr-product__media { max-width: 320px; }
}

/* Page prose: use full container width on desktop */
.mr-content > * { max-width: var(--mr-container); margin-left: auto; margin-right: auto; }
.mr-content .wp-block-image img { margin-inline: auto; }

/* ==========================================================================
   Home page v2 — newgelplus.com style composition
   ========================================================================== */

/* Hero slider */
.mr-hs {
  position: relative;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(27, 140, 168, 0.16), transparent 60%),
    radial-gradient(900px 520px at -10% 110%, rgba(18, 165, 148, 0.10), transparent 60%),
    linear-gradient(180deg, #eaf4f8 0%, #f6fafb 68%, #ffffff 100%);
  overflow: hidden;
}
.mr-hs__track { position: relative; }
.mr-hs__slide {
  display: none;
  padding-block: clamp(2.5rem, 5vw, 5rem);
}
.mr-hs__slide.is-active { display: block; animation: mrFade .55s ease; }
@keyframes mrFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mr-hs__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.mr-hs__copy .mr-eyebrow { display: inline-block; margin-bottom: 1.1rem; }
.mr-hs h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
}
.mr-hs .mr-lead { font-size: clamp(1.05rem, 1.2vw, 1.2rem); color: var(--mr-ink-700); max-width: 34em; }
.mr-hs .mr-btn-row { margin-top: 1.6rem; }
.mr-hs__media {
  margin: 0;
  position: relative;
  display: flex;
  justify-content: center;
}
.mr-hs__media::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(230, 242, 245, 0.55));
  border-radius: 28px;
  box-shadow: var(--mr-shadow-lg);
  transform: rotate(2.2deg);
}
.mr-hs__media img {
  position: relative;
  width: min(100%, 420px);
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(8, 65, 79, 0.16));
}
.mr-hs__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.mr-hs__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(8, 65, 79, 0.22);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.mr-hs__dot.is-active { background: var(--mr-brand-700); transform: scale(1.25); }
@media (max-width: 900px) {
  .mr-hs__inner { grid-template-columns: 1fr; }
  .mr-hs__media { order: -1; }
  .mr-hs__media img { width: min(70%, 320px); max-height: 420px; }
}

/* Trust badge row */
.mr-trust { border-bottom: 1px solid var(--mr-line); background: #fff; }
.mr-trust__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-block: clamp(1.25rem, 2.4vw, 2rem);
}
.mr-trust__item {
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-content: center;
  color: var(--mr-ink-700);
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
}
.mr-trust__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mr-brand-100);
  color: var(--mr-brand-700);
}
.mr-trust__icon svg { width: 24px; height: 24px; }
@media (max-width: 1020px) { .mr-trust__row { grid-template-columns: repeat(3, 1fr); row-gap: 1.25rem; } }
@media (max-width: 560px) { .mr-trust__row { grid-template-columns: repeat(2, 1fr); } .mr-trust__item { justify-content: flex-start; font-size: .875rem; } }

/* Key ingredient */
.mr-ingredient {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.mr-ingredient__media {
  margin: 0;
  border-radius: var(--mr-radius);
  overflow: hidden;
  box-shadow: var(--mr-shadow-lg);
}
.mr-ingredient__media img { width: 100%; height: auto; }
.mr-ingredient__copy .mr-eyebrow { color: var(--mr-brand-600); display: inline-block; margin-bottom: .9rem; font-weight: 700; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; }
.mr-ingredient h2 { margin: 0 0 1rem; }
.mr-points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.mr-points li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius-sm);
  box-shadow: var(--mr-shadow);
}
.mr-points strong { color: var(--mr-brand-700); font-size: 1rem; }
.mr-points span { color: var(--mr-ink-700); font-size: .95rem; }
@media (max-width: 900px) {
  .mr-ingredient { grid-template-columns: 1fr; }
  .mr-ingredient__media { max-width: 440px; margin-inline: auto; }
  .mr-points li { grid-template-columns: 1fr; gap: .35rem; }
}

/* Card grids (shop by format / need) */
.mr-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
.mr-cards__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--mr-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mr-cards__card:hover { transform: translateY(-4px); box-shadow: var(--mr-shadow-lg); }
.mr-cards__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--mr-bg-soft); }
.mr-cards__media img { width: 100%; height: 100%; object-fit: cover; }
.mr-cards__body { display: flex; flex-direction: column; gap: .25rem; padding: .95rem 1rem 1.1rem; }
.mr-cards__body strong { color: var(--mr-ink-900); font-size: .98rem; line-height: 1.4; }
.mr-cards__body small { color: var(--mr-ink-500); font-size: .8125rem; }
@media (max-width: 1100px) { .mr-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .mr-cards { grid-template-columns: repeat(2, 1fr); } }

/* Section head centered variant */
.mr-section__head--center { margin-inline: auto; text-align: center; max-width: 640px; }

/* Medical heritage (brand section) */
.mr-pro { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.mr-pro__intro { max-width: 720px; margin-inline: auto; text-align: center; }
.mr-pro__intro h2 { margin-bottom: 1rem; }
.mr-pro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.mr-pro__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--mr-radius);
  padding: 1.6rem 1.5rem;
}
.mr-pro__card h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.mr-pro__card p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .mr-pro__grid { grid-template-columns: 1fr; } }

/* Scar knowledge */
.mr-know {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.mr-know__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.4rem;
  background: var(--mr-bg-soft);
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mr-know__card:hover { transform: translateY(-4px); box-shadow: var(--mr-shadow-lg); }
.mr-know__card h3 { margin: 0; color: var(--mr-ink-900); font-size: 1.08rem; line-height: 1.5; }
.mr-know__more { color: var(--mr-brand-600); font-size: .875rem; font-weight: 600; }
@media (max-width: 900px) { .mr-know { grid-template-columns: 1fr; } }

/* ==========================================================================
   Home page v3 — brand edition (NewMedical culture & honours).
   Rule: photos are NEVER cropped — no fixed frames, no object-fit cover.
   ========================================================================== */

/* Global safety: images keep natural aspect ratio */
img { max-width: 100%; height: auto; }

/* Brand hero */
.mr-bhero {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(27, 140, 168, 0.14), transparent 60%),
    linear-gradient(180deg, #eef6f9 0%, #ffffff 100%);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.mr-bhero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.mr-bhero__copy .mr-eyebrow { margin-bottom: 1.1rem; }
.mr-bhero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}
.mr-bhero .mr-lead { font-size: clamp(1.02rem, 1.15vw, 1.15rem); color: var(--mr-ink-700); max-width: 32em; }
.mr-bhero .mr-btn-row { margin-top: 1.7rem; }
.mr-bhero__media {
  margin: 0;
  background: #fff;
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow-lg);
  padding: 0.75rem;
}
.mr-bhero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--mr-radius) - 6px);
}
.mr-bhero__media figcaption {
  padding: 0.7rem 0.35rem 0.15rem;
  font-size: 0.8125rem;
  color: var(--mr-ink-500);
}
@media (max-width: 900px) {
  .mr-bhero__inner { grid-template-columns: 1fr; }
  .mr-bhero__media { order: -1; max-width: 520px; margin-inline: auto; }
}

/* Stats band */
.mr-stats { border-bottom: 1px solid var(--mr-line); background: #fff; }
.mr-stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
}
.mr-stats__item { text-align: center; display: grid; gap: 0.2rem; }
.mr-stats__item strong {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  color: var(--mr-brand-700);
  letter-spacing: 0.01em;
}
.mr-stats__item span { color: var(--mr-ink-500); font-size: 0.875rem; }
@media (max-width: 720px) { .mr-stats__row { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; } }

/* Mission quote */
.mr-quote { text-align: center; }
.mr-quote__text {
  margin: 0.8rem auto 1.4rem;
  max-width: 30em;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.65;
  font-weight: 500;
}
.mr-quote__by { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; letter-spacing: 0.06em; }
.mr-quote__line { display: block; }
.mr-quote__line + .mr-quote__line { margin-top: 0.3em; }

/* Culture values */
.mr-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.mr-values__card {
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--mr-shadow);
  text-align: center;
}
.mr-values__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--mr-brand-100);
  color: var(--mr-brand-700);
}
.mr-values__icon svg { width: 28px; height: 28px; }
.mr-values__card h3 { margin: 0 0 0.55rem; font-size: 1.05rem; }
.mr-values__card p { margin: 0; color: var(--mr-ink-700); font-size: 0.9rem; line-height: 1.7; }
@media (max-width: 1020px) { .mr-values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mr-values { grid-template-columns: 1fr; } }

/* Honours */
.mr-honor {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.mr-honor__items { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.mr-honor__items li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius-sm);
  padding: 0.95rem 1.1rem;
  box-shadow: var(--mr-shadow);
}
.mr-honor__seal {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mr-brand-100);
  color: var(--mr-brand-700);
}
.mr-honor__seal svg { width: 22px; height: 22px; }
.mr-honor__items strong { display: block; color: var(--mr-ink-900); font-size: 0.98rem; margin-bottom: 0.15rem; }
.mr-honor__items span { color: var(--mr-ink-700); font-size: 0.875rem; }
.mr-honor__note { margin-top: 1.1rem; font-size: 0.78rem; color: var(--mr-ink-500); }
.mr-honor__photos { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.mr-honor__photos figure {
  margin: 0;
  background: #fff;
  border-radius: var(--mr-radius);
  box-shadow: var(--mr-shadow-lg);
  padding: 0.6rem;
}
.mr-honor__photos img { display: block; width: 100%; height: auto; border-radius: calc(var(--mr-radius) - 5px); }
@media (max-width: 900px) { .mr-honor { grid-template-columns: 1fr; } }

/* Manufacturing */
.mr-factory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.mr-factory figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  overflow: hidden;
  box-shadow: var(--mr-shadow);
}
/* Uniform 4:3 photo windows so the three cards align; mild cover-crop keeps
   the frame tidy on desktop and mobile (these are lifestyle photos, not
   product shots — product posters elsewhere stay uncropped). */
.mr-factory img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
.mr-factory figcaption { padding: 0.95rem 1.1rem 1.15rem; display: grid; gap: 0.25rem; }
.mr-factory figcaption strong { color: var(--mr-ink-900); font-size: 0.98rem; }
.mr-factory figcaption span { color: var(--mr-ink-700); font-size: 0.85rem; line-height: 1.65; }
@media (max-width: 1020px) { .mr-factory { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Milestones timeline — see "Home v3.1" block below (single source of truth) */

/* ---- Crop-removal fixes: product media & featured cards show full image ---- */
.mr-product__media {
  background: transparent;
  border-radius: var(--mr-radius-sm);
  display: block;
  aspect-ratio: auto;
  overflow: visible;
}
.mr-product__media img { width: 100%; height: auto; object-fit: initial; display: block; }
.mr-featured__media { aspect-ratio: auto; overflow: visible; }
.mr-featured__media img { width: 100%; height: auto; object-fit: initial; object-position: initial; }
.mr-cards__media { aspect-ratio: auto; overflow: visible; }
.mr-cards__media img { width: 100%; height: auto; object-fit: initial; }
.mr-hs__media img { max-height: none; width: min(100%, 460px); }

/* ==========================================================================
   Home v3.1 — milestones timeline rebuilt (no overlapping year / marker)
   ========================================================================== */

.mr-bhero__since {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mr-brand-600);
}

/* Timeline: 3 columns -> order number | year | card */
.mr-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  counter-reset: milestone;
}
.mr-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 92px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding-bottom: 1.25rem;
  counter-increment: milestone;
}
.mr-timeline__step:last-child { padding-bottom: 0; }
/* vertical rail sits between the year column and the card */
.mr-timeline__step::before {
  content: "";
  position: absolute;
  left: 136px;          /* 44 + 92 */
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mr-line);
}
.mr-timeline__step:first-child::before { top: 1.6rem; }
.mr-timeline__step:last-child::before { bottom: auto; height: 1.6rem; }
/* node marker */
.mr-timeline__step::after {
  content: "";
  position: absolute;
  left: 131px;
  top: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mr-brand-600);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--mr-brand-100);
}
.mr-timeline__no {
  margin: 0;
  padding-top: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mr-ink-500);
  text-align: left;
}
.mr-timeline__year {
  margin: 0;
  padding: 0.35rem 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mr-brand-700);
  text-align: right;
  white-space: nowrap;
}
.mr-timeline__card {
  position: relative;
  margin-left: 2rem;
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--mr-shadow);
}
.mr-timeline__card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.mr-timeline__card p { margin: 0; color: var(--mr-ink-700); font-size: 0.9rem; line-height: 1.75; }
.mr-timeline__end {
  margin: 1.75rem auto 0;
  max-width: 900px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--mr-brand-700);
  font-weight: 600;
}
@media (max-width: 720px) {
  .mr-timeline__step { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; padding-left: 26px; }
  .mr-timeline__step::before { left: 8px; }
  .mr-timeline__step:first-child::before { top: 0; }
  .mr-timeline__step:last-child::before { height: 100%; }
  .mr-timeline__step::after { left: 3px; top: 0.5rem; }
  .mr-timeline__no { display: none; }
  .mr-timeline__year { text-align: left; padding: 0; }
  .mr-timeline__card { margin-left: 0; }
}

/* Contact page: keep e-mail / button labels on one line */
.wp-block-button__link,
a.wp-block-button__link {
  white-space: nowrap;
}
.mr-card a[href^="mailto:"],
a[href^="mailto:"] {
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: nowrap;
}
