:root {
  --mps-brand: #00bc70;
  --mps-brand-hover: #00aa65;
  --mps-action-ink: #082c20;
  --mps-content-max: 1440px;
  --mps-gutter: clamp(20px, 4vw, 64px);
  --mps-section-space: clamp(40px, 4.4vw, 64px);
  --mps-section-title: clamp(30px, 2.65vw, 38px);
  --mps-body-size: 18px;
  --mps-card-title: clamp(18px, 1.35vw, 20px);
  --mps-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
.mps-home { font-family: var(--mps-font); }
.mps-home .holiday-hero h1 em { color: var(--mps-brand); }
.mps-home .holiday-search .button {
  min-height: 50px; padding: 12px 22px; border-radius: 8px;
  background: var(--mps-brand); border-color: var(--mps-brand);
  color: var(--mps-action-ink); font-size: 18px; font-weight: 650; line-height: 1.35;
}
.mps-home .holiday-search .button:hover {
  background: var(--mps-brand-hover); border-color: var(--mps-brand-hover); filter: none;
}
.home-content { border-top: 1px solid #e4e9e2; background: #fff; }
.mps-home .home-section { padding-block: var(--mps-section-space); }
.home-content :is(.home-heading, .mps-weekly-inner, .sage-heading) > h2 {
  color: var(--mps-brand);
  font: 700 var(--mps-section-title)/1.18 var(--mps-font);
  letter-spacing: -.028em;
}
.home-section h2 { margin: 0; }
.home-section p { line-height: 1.6; color: var(--muted); }
.home-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.mps-home .home-section .home-heading { margin-bottom: 26px; }
.home-heading a, .home-details > summary {
  color: var(--green); font-size: 17px; font-weight: 600; line-height: 1.4;
  text-decoration: none; text-underline-offset: 4px;
}
.home-heading a { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.home-heading a::after { content: "\2192"; font-size: 1.2em; }
.home-heading a:hover, .home-details > summary:hover { color: #075736; text-decoration: none; }
.home-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px;
  margin: 0; padding: 0; list-style: none;
}
.home-grid.home-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-card {
  height: 100%; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  color: var(--ink); background: #fff; border: 1px solid #e7ebe6; border-radius: 12px;
  text-decoration: none;
  transition: border-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}
.home-card:is(:hover, :focus-visible) { border-color: #92cdb0; }
.home-card:focus-visible { outline-offset: 3px; }
.home-card img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  object-fit: contain; background: #f2f1ed;
}
.mps-home .home-card-body { padding: 18px 18px 20px; }
.home-card-title {
  margin: 0; color: inherit; font-size: var(--mps-card-title); font-weight: 600;
  line-height: 1.4; overflow-wrap: break-word;
}
.home-card:is(:hover, :focus-visible) .home-card-title { text-decoration: none; }
#collections .shell { position: relative; }
#collections .home-heading { padding-inline-end: 12rem; }
#collections .home-card-body {
  flex: 1; display: grid; align-content: center; min-height: 66px;
  padding: 16px 12px; text-align: center; background: #faf9f7;
}
.home-details > summary {
  position: absolute; inset: 0 0 auto auto; min-height: 44px; display: inline-flex;
  align-items: center; gap: 8px; padding-block: 8px; cursor: pointer; list-style: none;
}
.home-details > summary::-webkit-details-marker { display: none; }
.home-details-chevron { width: 17px; height: 17px; flex: 0 0 17px; transition: transform 180ms ease-out; }
.home-details[open] .home-details-chevron { transform: rotate(180deg); }
.home-more-list {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  padding: 1px; margin: 24px 0 0; background: #dfe9e1; border: 1px solid #dfe9e1;
  border-radius: 10px; overflow: hidden;
}
.home-more-list a {
  display: flex; align-items: center; height: 100%; min-height: 52px; padding: 12px 16px;
  color: var(--ink); background: #f8fbf8; text-decoration: none; font-size: 17px; line-height: 1.45;
}
.home-more-list a:hover { color: var(--green); background: #eef6ef; text-decoration: none; }
#workflow { background: var(--paper); }
.home-workflow {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.home-workflow li {
  position: relative; display: grid; align-content: center; justify-items: center;
  gap: 13px; min-width: 0; padding: 12px 4px; border-radius: 10px;
  text-align: center; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.4;
}
.home-workflow-icon { display: block; width: 42px; height: 42px; object-fit: contain; background: none; mask: none; }
@media (min-width: 1101px) {
  .home-workflow li + li::before {
    content: "\2192"; position: absolute; top: 27px; right: calc(100% + 4px);
    color: #6b9a80; font-size: 19px; font-weight: 400; pointer-events: none;
  }
}
#blog .home-card img {
  /* Keep the complete square composition, including the "12" and gift-box edges. */
  aspect-ratio: 1; object-fit: contain; object-position: center;
}
#blog .home-card-title { font-size: 21px; line-height: 1.35; }
#blog .home-card p { margin: 10px 0 0; font-size: 17px; line-height: 1.55; }
#manufacturing { background: var(--paper); }
.home-photo-grid { display: grid; align-items: start; gap: 20px; }
.home-factory { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.home-factory .home-photo { grid-column: span 4; }
.home-factory .home-photo:nth-child(4), .home-factory .home-photo:nth-child(5) { grid-column: span 3; }
.home-factory .home-photo:nth-child(6) { grid-column: span 6; }
.home-exhibition { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.home-exhibition .home-photo:nth-child(3) { grid-column: 4; grid-row: span 2; }
.home-photo { margin: 0; overflow: hidden; border-radius: 10px; min-width: 0; }
.home-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
  :is(.home-workflow li, .home-photo) { transition: transform 180ms ease-out, box-shadow 180ms ease-out, background-color 180ms ease-out; }
  .home-workflow li:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 8px 20px #15382c0d; }
  .home-photo:hover, .home-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px #15382c14; }
}
.mps-home .mps-footer { background: #101010; color: #fff; }
.mps-home .mps-footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.55fr) minmax(245px, 1.5fr) repeat(4, minmax(0, 1fr));
  align-items: start; gap: 28px 24px; padding-block: 44px;
}
.mps-footer :is(.mps-footer-brand, .mps-footer-contact, .mps-footer-links) { display: grid; gap: 10px; min-width: 0; }
.mps-footer .mps-footer-brand .mps-footer-wordmark {
  display: block; width: min(198px, 100%); background: transparent; padding: 0;
}
.mps-footer .mps-footer-brand .mps-footer-wordmark img {
  width: 100%; height: auto; margin: 0; filter: none;
}
.mps-footer .mps-footer-brand img.mps-asi {
  display: block; width: min(100%, 318px); height: auto; margin: 5px 0 0;
  background: transparent; padding: 0; border: 0; border-radius: 0;
}
.mps-home .mps-footer :is(a, h2, .mps-footer-bottom) { color: #fff; text-shadow: none; }
.mps-home .mps-footer a { font-size: 16px; line-height: 1.55; }
.mps-home .mps-footer-links h2 { font-size: 17px; font-weight: 650; margin-bottom: 3px; }
.mps-home .mps-footer-bottom { border-top-color: #ffffff32; font-size: 14px; }

/* Shared hover underline: brand green, growing from the centre of each label. */
.mps-link-label {
  padding-bottom: 4px;
  background-image: linear-gradient(var(--mps-brand), var(--mps-brand));
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 160ms ease-out;
}
.home-card:is(:hover, :focus-visible) .mps-link-label,
.home-more-list a:is(:hover, :focus-visible) .mps-link-label,
.home-heading a:is(:hover, :focus-visible) .mps-link-label,
.home-details > summary:is(:hover, :focus-visible) .mps-link-label,
.mps-footer a:is(:hover, :focus-visible) .mps-link-label {
  background-size: 100% 2px;
}
.mps-home .mps-footer a:is(:hover, :focus-visible) { text-decoration: none; }

@media (max-width: 1100px) {
  .home-workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .mps-home .mps-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mps-home .mps-footer-brand, .mps-home .mps-footer-contact { grid-column: span 2; }
}
@media (max-width: 1000px) {
  .home-grid, .home-grid.home-three, .home-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { gap: 24px; }
  .home-factory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-factory .home-photo:nth-child(n) { grid-column: auto; }
  .home-factory .home-photo:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .home-heading { flex-wrap: wrap; gap: 8px 18px; }
  #collections .home-heading { padding-inline-end: 0; }
  .home-details > summary { position: static; margin-top: 14px; width: fit-content; }
  .home-photo-grid { gap: 16px; }
  .home-exhibition { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .home-exhibition .home-photo:nth-child(n) { grid-column: auto; grid-row: auto; }
  .home-exhibition .home-photo:nth-child(3) { grid-column: 1 / -1; width: min(70%, 320px); justify-self: center; }
}
@media (max-width: 560px) {
  :root { --mps-section-title: 30px; --mps-card-title: 18px; }
  .home-grid { gap: 18px 14px; }
  .home-grid.home-three { grid-template-columns: 1fr; }
  .mps-home .home-card-body { padding: 16px; }
  #collections .home-card-body { padding: 13px 9px; min-height: 76px; }
  .home-workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .home-workflow li { font-size: 17px; }
  .home-workflow-icon { width: 38px; height: 38px; }
  .home-more-list { grid-template-columns: 1fr; }
  .mps-home .mps-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 32px; }
  .mps-home .mps-footer-brand, .mps-home .mps-footer-contact { grid-column: 1 / -1; }
  .mps-home .mps-footer-contact { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .mps-link-label { transition: none; }
  :is(.home-card, .home-workflow li, .home-photo, .home-details-chevron) { transition: none; }
  :is(.home-workflow li, .home-photo, .home-card):hover { transform: none; }
}
