/* Melvindale Pharmacy page content only. The bar, theme toggle and Powered-by footer are the engine's. */
main.mp-page { max-width: var(--skin-max, 1120px); margin: 0 auto; padding: 8px 16px 0; box-sizing: border-box; overflow-wrap: anywhere; }
.mp-page h1, .mp-page h2, .mp-page h3 { color: var(--rr-theme-ink-strong); }
.mp-page h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.08; }
.mp-page h2 { margin: 0 0 14px; }
.mp-page h3 { margin: 0 0 6px; font-size: 1.125rem; }
:where(.mp-page) p { margin: 0 0 12px; }
.mp-page a { color: var(--rr-theme-accent-ink); }
.mp-small { font-size: .875rem; color: var(--rr-theme-ink-soft); }
.mp-lede { font-size: 1.125rem; line-height: 1.55; color: var(--rr-theme-ink-soft); margin-top: 12px !important; max-width: 44rem; }
.mp-crumb { font-size: .875rem; color: var(--rr-theme-ink-soft); margin: 4px 0 14px !important; }
.mp-gap { margin-top: 22px !important; }
[data-skin-slot] { margin-bottom: 22px; }

/* Buttons */
.mp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0 !important; }
.mp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 22px; box-sizing: border-box; text-align: center;
  border: 2px solid var(--rr-theme-accent-base); border-radius: var(--skin-radius-chip, 8px); background: var(--rr-theme-accent-base);
  color: var(--rr-theme-on-accent) !important; font: inherit; font-weight: 700; text-decoration: none; }
.mp-btn:hover { filter: brightness(1.1); }
.mp-btn-quiet { background: transparent; color: var(--rr-theme-ink-strong) !important; border-color: var(--rr-theme-line-strong); }
.mp-btn:focus-visible, .mp-foot-link:focus-visible, .mp-faq summary:focus-visible { outline: 3px solid var(--rr-theme-accent-ink); outline-offset: 2px; }

/* Hero */
:root[data-site-skin] [data-skin-slot="hero"] > .mp-hero { max-width: none; }
.mp-hero { display: grid; gap: 24px; align-items: center; }
.mp-hero-copy { max-width: 40rem; }
.mp-hero-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--skin-card-radius, 12px); background: var(--rr-theme-surface); }
.mp-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 40%; }
.mp-band { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--mp-band); color: var(--mp-bandInk); font-size: 1rem; }
.mp-band strong { font-size: 1.25rem; }
.mp-band-small { font-size: .8125rem; opacity: .9; }
@media (min-width: 960px) { .mp-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; } }

/* Panels and grids */
.mp-visit-grid, .mp-two, .mp-split { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .mp-visit-grid, .mp-two, .mp-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mp-big { margin: 0 0 4px; }
.mp-big h2 { font-size: 1.375rem; }
.mp-two + .mp-big, .mp-two + .skin-panel, .mp-big + .skin-panel, .mp-big + .mp-big { margin-top: 18px; }
.mp-split { margin-top: 18px; }
.mp-addr { font-weight: 700; color: var(--rr-theme-ink-strong); }
.mp-addr span { display: block; }
.mp-hours { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.mp-hours dt { color: var(--rr-theme-ink-soft); }
.mp-hours dd { margin: 0; color: var(--rr-theme-ink-strong); font-weight: 600; }

/* Service cards */
.mp-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mp-card { padding: 0; overflow: hidden; margin: 0; display: flex; flex-direction: column; }
.mp-card-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.mp-card-body { padding: 14px 16px 16px; }
.mp-chip-row { margin: 0 0 8px !important; }
.mp-chip, .mp-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5; border: 1px solid var(--rr-theme-line-strong); color: var(--rr-theme-ink); }
.mp-badge { background: var(--mp-note); color: var(--mp-noteInk); border-color: transparent; }
.mp-note { padding: 12px 14px; border-radius: 8px; background: var(--mp-note); color: var(--mp-noteInk); font-weight: 600; margin-bottom: 18px !important; }
.mp-note .mp-badge { background: transparent; border: 1px solid currentColor; margin-right: 6px; color: inherit; }
.mp-soon { border-style: dashed; margin-top: 18px; }
.mp-price { font-size: 2.5rem; font-weight: 800; color: var(--rr-theme-accent-ink); margin: 0 0 4px !important; line-height: 1; }
.mp-list { margin: 8px 0 12px; padding-left: 1.25rem; }
.mp-list li { margin-bottom: 4px; }
.mp-steps { padding-left: 1.25rem; }
.mp-steps li { margin-bottom: 6px; }
.mp-wide { margin: 22px 0 0; overflow: hidden; border-radius: var(--skin-card-radius, 12px); }
.mp-wide img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }

/* Street */
.mp-street { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .mp-street { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.mp-street-media { margin: 0; }
.mp-street-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }

/* Team */
.mp-team { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mp-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mp-team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mp-person { text-align: center; margin: 0; }
.mp-avatar { display: grid; place-items: center; width: 132px; height: 132px; margin: 6px auto 14px; border-radius: 50%; background: var(--rr-theme-accent-base); color: var(--rr-theme-on-accent); font-size: 2.5rem; font-weight: 800; letter-spacing: .04em; }
.mp-person-photo { width: 132px; height: 132px; margin: 6px auto 14px; border-radius: 50%; overflow: hidden; }
.mp-person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mp-role { font-weight: 700; color: var(--rr-theme-accent-ink); }

/* FAQ, privacy, credits */
.mp-faqs { display: grid; gap: 10px; max-width: 48rem; }
.mp-faq summary { cursor: pointer; font-weight: 700; color: var(--rr-theme-ink-strong); min-height: 44px; display: flex; align-items: center; }
.mp-privacy { margin-top: 18px; }
.mp-credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mp-credit { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin: 0; }
.mp-credit h3 { margin: 0 0 2px; font-size: 1rem; }
.mp-credit a { display: inline-flex; align-items: center; min-height: 44px; }

/* Body footer area (not the engine's footer) */
.mp-foot { margin: 28px 0 0; padding: 20px 0 8px; border-top: 1px solid var(--rr-theme-line); display: grid; gap: 14px; font-size: .9375rem; }
.mp-foot-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mp-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mp-foot-h { font-size: 1.0625rem !important; margin: 0 0 6px !important; }
.mp-foot-addr { display: grid; gap: 2px; margin: 0; }
.mp-foot-addr a { display: inline-flex; align-items: center; min-height: 44px; }
.mp-foot-nav { display: flex; flex-wrap: wrap; gap: 0 6px; }
.mp-foot-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.mp-foot-note { margin: 0; font-size: .8125rem; color: var(--rr-theme-ink-soft); }
.mp-visit a:not(.mp-btn) { display: inline-flex; align-items: center; min-height: 44px; }
.mp-sec { margin-top: 28px; }

/* ---- Round 2: standard home flow (welcome hero, one grid of tab cards, footer) ---- */
.mp-welcome { display: grid; gap: 16px 40px; grid-template-columns: 1fr; grid-template-areas: "copy" "media" "act"; padding-top: 8px; }
.mp-welcome-copy { grid-area: copy; }
.mp-welcome-media { grid-area: media; margin: 0; overflow: hidden; border-radius: var(--skin-card-radius, 12px); background: var(--rr-theme-surface); }
.mp-welcome-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.mp-welcome-act { grid-area: act; }
.mp-welcome h1 { font-size: clamp(2.25rem, 8.5vw, 4rem); line-height: 1.04; letter-spacing: -.01em; }
.mp-since { margin: 12px 0 0 !important; font-size: clamp(1.125rem, 3.6vw, 1.5rem); font-weight: 700; color: var(--rr-theme-accent-ink); }
.mp-welcome-where { display: grid; gap: 2px; margin: 0 !important; font-size: 1.0625rem; color: var(--rr-theme-ink); }
.mp-welcome-where strong { color: var(--rr-theme-ink-strong); }
.mp-welcome .mp-actions { margin-top: 14px !important; }
@media (min-width: 960px) {
  .mp-welcome { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy media" "act media"; align-items: end; padding-top: 24px; }
  .mp-welcome-copy { align-self: end; }
  .mp-welcome-act { align-self: start; }
}
.mp-tabs-sec { margin-top: 36px; }
.mp-tab-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .mp-tab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mp-tab-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mp-tab-card { display: flex; flex-direction: column; margin: 0; }
.mp-tab-card h3 { font-size: 1.1875rem; }
.mp-tab-card p { color: var(--rr-theme-ink); }
.mp-tab-go { margin: auto 0 0 !important; padding-top: 8px; }
.mp-tab-go .mp-btn { width: 100%; }

/* Photos on tab pages */
.mp-photo-pair { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mp-photo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mp-photo { margin: 0; }
.mp-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--skin-card-radius, 12px); margin-bottom: 6px; }
.mp-wide figcaption { margin-top: 6px; }
.mp-team-photo img { max-height: 680px; object-position: 50% 40%; }
.mp-svcs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mp-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mp-svcs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mp-svc { margin: 0; }

/* Team: Fun mode (CSS-only checkbox; no script) */
.mp-person { display: flex; flex-direction: column; align-items: center; }
.mp-person-media { width: 132px; height: 132px; margin: 6px auto 14px; }
.mp-person-media .mp-avatar { margin: 0; }
.mp-fun { display: none; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; }
.mp-fun-cb { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mp-has-fun { position: relative; }
.mp-fun-cb:checked ~ .mp-person-media .mp-normal { display: none; }
.mp-fun-cb:checked ~ .mp-person-media .mp-fun { display: block; }
.mp-fun-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 16px; border-radius: 999px;
  border: 2px dashed var(--rr-theme-line-strong); color: var(--rr-theme-ink-strong); font-size: .875rem; font-weight: 700; cursor: pointer; user-select: none; }
.mp-fun-btn:hover { border-color: var(--rr-theme-accent-base); }
.mp-fun-off { display: none; }
.mp-fun-cb:checked ~ .mp-fun-btn .mp-fun-on { display: none; }
.mp-fun-cb:checked ~ .mp-fun-btn .mp-fun-off { display: inline; }
.mp-fun-cb:focus-visible ~ .mp-fun-btn { outline: 3px solid var(--rr-theme-accent-ink); outline-offset: 2px; }
.mp-person-img { display: block; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.mp-pair-wide .mp-photo img { aspect-ratio: 16 / 9; }

/* Round 3: award line on Ali's card and the home hero; Awards page */
.mp-award { margin: 4px 0 12px !important; font-size: .875rem; font-weight: 650; color: var(--rr-theme-ink-strong); }
.mp-award-line { margin: 8px 0 0 !important; font-size: clamp(1rem, 3vw, 1.125rem); font-weight: 600; }
.mp-award-line a { color: var(--rr-theme-ink-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.mp-award-card { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .mp-award-card { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.mp-award-photo { margin: 0; }
.mp-award-photo img { display: block; width: 100%; height: auto; border-radius: var(--skin-card-radius, 12px); margin-bottom: 6px; }
.mp-honors { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 760px) { .mp-honors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mp-honor { margin: 0; }
.mp-honor h3 { overflow-wrap: anywhere; }

/* ---- Round 4: rating badges beside the home hero (no widgets, no logos; brand as text + star glyphs) ---- */
.mp-welcome { position: relative; }
.mp-rates { grid-area: rates; display: flex; flex-wrap: wrap; gap: 12px; }
.mp-welcome { grid-template-areas: "copy" "media" "act" "rates"; }
.mp-rate { display: inline-grid; grid-template-columns: auto auto; grid-template-areas: "brand brand" "num stars" "num count"; align-items: center; gap: 0 10px;
  min-height: 44px; padding: 10px 16px 10px 14px; box-sizing: border-box; border-radius: var(--skin-card-radius, 14px); text-decoration: none;
  background: var(--rr-theme-surface); color: var(--rr-theme-ink-strong) !important; border: 1px solid var(--rr-theme-line-strong);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .35); }
.mp-rate:hover { border-color: var(--rr-theme-accent-base); }
.mp-rate:focus-visible { outline: 3px solid var(--rr-theme-accent-ink); outline-offset: 2px; }
.mp-rate-brand { grid-area: brand; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rr-theme-ink-soft); }
.mp-rate-num { grid-area: num; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--rr-theme-ink-strong); }
.mp-rate-count { grid-area: count; font-size: .875rem; font-weight: 600; color: var(--rr-theme-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mp-stars { grid-area: stars; position: relative; display: inline-block; font-size: 1.125rem; line-height: 1.2; letter-spacing: 1px; white-space: nowrap; }
.mp-stars-off { color: var(--rr-theme-line-strong); }
.mp-stars-on { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f4b400; }
@media (min-width: 960px) {
  .mp-welcome { grid-template-areas: "copy media" "act media"; }
  /* Desktop: the badges are pinned on the storefront photo's sides (first bottom-left, second top-right), poking out past it. */
  .mp-rates { grid-area: media; position: relative; z-index: 2; pointer-events: none; display: flex; justify-content: space-between; align-items: stretch; margin: 0 -22px -10px -26px; }
  .mp-rate { pointer-events: auto; align-self: flex-end; }
  .mp-rate:nth-child(2) { align-self: flex-start; margin-top: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mp-rate { animation: mp-rate-in .7s cubic-bezier(.2, .9, .3, 1.25) .35s both; }
  .mp-rate:nth-child(2) { animation-delay: .55s; }
  .mp-rate:hover { transform: translateY(-2px); transition: transform .15s ease; }
}
@keyframes mp-rate-in { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }

/* ---- Round 4: Awards page, one grid of individual boxes ---- */
.mp-hgrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mp-hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .mp-hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mp-hbox { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mp-hbox-photo { margin: 0; background: var(--rr-theme-canvas-soft, var(--rr-theme-canvas)); display: grid; place-items: center; padding: 14px; aspect-ratio: 4 / 3; box-sizing: border-box; }
.mp-hbox-photo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
.mp-hbox-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.mp-hbox-body .mp-small:last-child { margin-top: auto !important; padding-top: 6px; }
.mp-hbox .mp-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-chip-kind { background: var(--rr-theme-accent-base); color: var(--rr-theme-on-accent); border-color: transparent; }
.mp-hbox h3 { overflow-wrap: anywhere; }
.mp-hbox-youth { background: var(--mp-band); color: var(--mp-bandInk); }
.mp-hbox-youth h3, .mp-hbox-youth p, .mp-hbox-youth .mp-small { color: var(--mp-bandInk) !important; }
.mp-hbox-youth .mp-chip { color: var(--mp-bandInk); border-color: currentColor; }
.mp-hbox-youth .mp-chip-kind { background: var(--mp-bandInk); color: var(--mp-band); }
.mp-youth-h { font-size: 1.375rem !important; line-height: 1.25; }
.mp-youth-n { display: block; font-size: 4rem; line-height: 1; font-weight: 800; margin-bottom: 4px; }
.mp-hbox-sch .mp-chip-kind { background: transparent; color: var(--rr-theme-ink); border-color: var(--rr-theme-line-strong); }

/* ---- Round 4: delivery cards without prices ---- */
.mp-price-word { font-size: 2rem; }
.mp-btn-sm { min-height: 44px; padding: 6px 16px; font-size: .9375rem; }
.mp-hgrid > .skin-card.mp-hbox-youth { background: var(--mp-band) !important; border-color: transparent !important; }
.mp-hbox-clip { margin: 4px 0 8px; }
.mp-hbox-clip img { display: block; width: 100%; height: auto; border-radius: 4px; margin-bottom: 4px; }

/* POP style: this site has no "asks" slot, so the hero spans the whole row instead of leaving an empty right column. */
@media (min-width: 1024px) {
  :root[data-site-skin="pop"] main.mp-page:not(:has([data-skin-slot="asks"])) [data-skin-slot="hero"] { grid-column: 1 / -1; }
}
