/* Service pages share the shop's display type, paper, claret and gilt rules. */
.jm-delivery {
  --delivery-ink: var(--jm-color-ink);
  --delivery-paper: var(--porcelain);
  --delivery-muted: var(--jm-color-muted);
  --delivery-rule: var(--jm-color-rule);
  --delivery-brass: var(--jm-color-brass);
}
body .jm-delivery .jm-delivery__hero {
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  background: var(--wine);
}
.jm-delivery .jm-delivery__intro {
  padding-block: clamp(34px,4.4vw,74px);
  padding-right: clamp(24px,3vw,54px);
}
.jm-delivery .jm-delivery__intro h1,
.jm-contacts .jm-contact-copy h1,
.pem-care-guide .pem-care-title {
  font: 600 clamp(52px,6.8vw,105px)/.93 var(--serif);
  letter-spacing: -.045em;
}
.jm-delivery__intro h1 span { display: block; }
.jm-delivery .jm-delivery__intro p {
  margin-block: 1.1rem 1.6rem;
  max-width: 37ch;
  color: var(--porcelain);
}
.jm-delivery__scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  place-items: end;
  padding: clamp(16px,2vw,30px) clamp(16px,2.5vw,42px);
  min-width: 0;
  overflow: hidden;
  background: var(--wine);
}
.jm-delivery .jm-delivery__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-position: center 62%;
}
.jm-delivery__ticket {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .1rem;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding: .25rem clamp(.45rem,1vw,1rem) .18rem;
  /* The SVG's nine slices keep each cut corner and its outline at a fixed radius. */
  border: 14px solid transparent;
  border-image: url('../icons/jelki-delivery-ticket.svg') 14 fill / 14px stretch;
  color: var(--porcelain);
  text-align: center;
  overflow-wrap: anywhere;
}
.jm-delivery__ticket span { font: 500 .78rem/1.45 var(--sans); }
.jm-delivery__ticket strong { color:var(--champagne); font: 600 clamp(28px,2.5vw,40px)/1.08 var(--serif); }
@media(forced-colors:active) {
  .jm-delivery__ticket { border:1px solid CanvasText; padding:1rem; background:Canvas; }
  .jm-delivery__ticket,.jm-delivery__ticket strong { color:CanvasText; }
}
.jm-delivery .jm-estimate,
.jm-delivery .jm-delivery__section { padding-block: clamp(36px,4vw,65px); }
.jm-delivery .jm-estimate { align-items:center; gap:clamp(26px,5vw,78px); }
.jm-delivery .jm-estimate aside { align-self:center; border-top:1px solid var(--jm-color-brass); }
.jm-delivery .jm-estimate label,
.jm-delivery .jm-estimate input,
.jm-delivery .jm-estimate select { color:var(--jm-color-ink); }
.jm-delivery .jm-delivery__rate strong {
  display:block; margin-top:.35rem; color:var(--wine);
  font:600 clamp(26px,2.8vw,42px)/1.08 var(--serif);
}
.jm-delivery .jm-delivery__rate .jm-delivery__link,
.jm-delivery .jm-delivery__help a { color:var(--jl-slate-blue); }
.jm-delivery .jm-delivery__payment-band {
  background:var(--wine);
  border-block:1px solid var(--jm-color-brass);
}
.jm-delivery .jm-delivery__payments { margin-block:1.15rem; }
.jm-delivery__faq summary { padding-block:.3rem; }
.jm-delivery__faq summary::marker,
.jm-delivery__fold summary::marker { color:var(--jm-color-brass); }

/* The telephone remains the primary contact; each address has its own map link. */
body .jm-contacts .jm-contact-cover {
  background:var(--porcelain); color:var(--claret);
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
}
.jm-contacts .jm-contact-copy {padding-block:clamp(40px,5vw,72px);}
.jm-contacts .jm-contact-cover img {
  height:100%; max-height:500px; min-height:0; object-position:50% 55%;
}
.jm-contacts .jm-contact-copy .jm-contacts__phone { display:grid; gap:.25rem; }
.jm-contacts .jm-contacts__phone a {
  width:fit-content; font:600 clamp(30px,3.3vw,52px)/1.08 var(--serif);
  color:var(--wine); letter-spacing:-.025em;
}
.jm-contacts .jm-contact-copy .jm-contact-jump {color:var(--jl-slate-blue);}
.jm-contacts .jm-contact-caption {border-bottom:1px solid var(--jm-color-brass);padding-bottom:1.25rem;}
.jm-contacts .jm-contact-grid {gap:0;margin:0;}
.jm-contacts .jm-contact-grid li {
  padding:clamp(18px,2.4vw,32px) 0; border-top:0;
  border-bottom:1px solid rgb(235 210 153 / 40%);
}
.jm-contacts .jm-contact-grid h3 {font:600 clamp(23px,2.4vw,35px)/1.1 var(--serif);color:var(--champagne);}
.jm-contacts .jm-contact-grid li address {max-width:38ch;margin:.55rem 0;}
.jm-contacts .jm-contact-delivery {margin-top:1rem;}

.pem-care-guide {
  --care-blue:var(--wine); --care-body:var(--jm-color-ink);
  --care-accent:var(--jl-slate-blue); --care-rule:var(--jm-color-rule);
  --care-paper:var(--porcelain);
}
body .pem-care-guide .pem-care-hero {
  background:var(--wine);border-bottom:1px solid var(--jm-color-brass);
}
.pem-care-guide .pem-care-hero::after {
  inset:0 0 0 auto; width:49%; aspect-ratio:auto; border:0;
  border-radius:0;box-shadow:none;
  background:var(--jl-care-photo) center 60%/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 16%);
}
.pem-care-guide .pem-care-hero__grid {
  grid-template-columns: minmax(0,1fr) minmax(0,.92fr);
  grid-template-areas:"title portrait" "intro portrait" "download portrait";
  padding-block:clamp(34px,4.5vw,72px);
}
.pem-care-guide .pem-care-title {margin:0;color:var(--champagne);}
.pem-care-guide .pem-care-intro {margin-top:1.1rem;color:var(--porcelain);}
.pem-care-guide .pem-care-download a {
  border-radius:var(--jm-radius-control); background:var(--porcelain); color:var(--claret);
}
.pem-care-guide .pem-care-index {background:var(--porcelain);border-color:var(--care-rule);}
.pem-care-guide .pem-care-index__inner {padding-block:.7rem;}
.pem-care-guide .pem-care-index a {border:0;border-radius:0;color:var(--jl-slate-blue);padding-inline:0 1rem;text-decoration:underline;text-underline-offset:.3em;}
.pem-care-guide .pem-care-chapter + .pem-care-chapter {background:var(--jm-color-surface);}
.pem-care-guide .pem-care-chapter__inner {padding-block:clamp(34px,4.2vw,68px);}
.pem-care-guide .pem-care-quote {border-color:var(--jm-color-brass);color:var(--jm-color-muted);}
.pem-care-guide .pem-care-steps li::before {border-color:var(--jm-color-rule);background:transparent;color:var(--wine);}
.pem-care-guide .pem-care-safety {background:var(--wine);color:var(--porcelain);border-radius:var(--jm-radius-card);border:0;}
.pem-care-guide .pem-care-safety p {color:var(--porcelain);}
.pem-care-guide .pem-care-safety strong {color:var(--champagne);}
@media(min-width:701px){
  .jm-contacts .jm-contact-grid li:nth-child(odd) {margin-right:clamp(16px,3vw,48px);}
  .jm-contacts .jm-contact-grid li:nth-child(even) {margin-left:clamp(16px,3vw,48px);}
}
@media(max-width:700px){
  body .jm-delivery .jm-delivery__hero,body .jm-contacts .jm-contact-cover {grid-template-columns:1fr;}
  .jm-delivery__scene {min-height:clamp(165px,43vw,245px);}
  .jm-delivery .jm-delivery__photo {object-position:center 62%;}
  .jm-delivery__intro h1 span {display:inline;}
  .jm-delivery .jm-delivery__intro, .jm-contacts .jm-contact-copy {padding:30px max(18px,4.5vw);}
  .jm-contacts .jm-contact-cover img {height:clamp(160px,40vw,245px);}
  .jm-delivery .jm-delivery__rates {grid-template-columns:1fr;gap:.35rem;}
  .jm-delivery__rate {padding-block:1rem;}
  .jm-contacts .jm-contact-caption p {margin-top:.75rem;}
  .jm-contacts .jm-contact-grid {grid-template-columns:1fr;}
  .pem-care-guide .pem-care-hero__grid {grid-template-columns:1fr;grid-template-areas:"title" "intro" "download";}
  .pem-care-guide .pem-care-hero::after {position:relative;display:block;inset:auto;width:100%;height:clamp(180px,54vw,300px);opacity:1;mask-image:none;background-position:center 65%;}
  .pem-care-guide .pem-care-title,.jm-contacts .jm-contact-copy h1,.jm-delivery .jm-delivery__intro h1 {font-size:clamp(43px,10vw,68px);}
  .pem-care-guide .pem-care-index__inner {grid-template-columns:repeat(2,minmax(0,1fr));}
  .pem-care-guide .pem-care-index a {padding:.4rem .2rem;}
}
