/* Additive prototype for four services, not Hearing Aids/Journal or protected routes. */
html body[data-pfr-service] {
  --pfr-paper:#f8f2e9;--pfr-white:#fff;--pfr-ink:#211910;--pfr-ink-soft:#43362c;
  --pfr-deep:#181511;--pfr-amber:#F08647;--pfr-rule:#d9cbba;
  --pfr-font:"Source Sans 3",Arial,sans-serif;--pfr-display:"Barlow Condensed","Arial Narrow",sans-serif;
}
html body[data-pfr-service] main .pfr-hero {
  background:linear-gradient(113deg,#f8f2e9 1%,#f8f0e5 47%,#fff 88%)!important;
  border:0!important;padding:clamp(21px,4.15vw,62px) 0 clamp(34px,5vw,78px)!important;overflow:hidden;
}
html body[data-pfr-service] main .pfr-hero::before,
html body[data-pfr-service] main .pfr-hero::after {display:none}
html body[data-pfr-service] main .pfr-hero > :is(.container,.wrap) {
  width:min(calc(100% - clamp(34px,7vw,110px)),1290px)!important;max-width:none!important;
  margin-inline:auto!important;padding-inline:0!important;
}
html body[data-pfr-service] main .pfr-hero .crumbs {
  padding:0!important;margin:0 0 clamp(18px,3vw,42px)!important;
  line-height:1.35!important;font:650 .85rem/1.35 var(--pfr-font)!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-split {
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr)!important;
  align-items:start!important;gap:clamp(27px,5vw,82px)!important;
}
html body[data-pfr-service] main .pfr-hero :is(.pfr-copy,.pfr-media) {min-width:0;max-width:none}
html body[data-pfr-service] main .pfr-hero .pfr-copy > .eyebrow {
  display:flex;align-items:center;gap:10px;color:#181511!important;
  margin:0 0 12px!important;font:700 .79rem/1.25 "JetBrains Mono",monospace!important;
  text-transform:uppercase;letter-spacing:.1em;
}
html body[data-pfr-service] main .pfr-hero .pfr-copy > .eyebrow::before {
  content:"";display:block;width:27px;height:2px;flex:none;background:var(--pfr-amber);
}
html body[data-pfr-service] main .pfr-hero .pfr-copy h1 {
  max-width:13ch!important;margin:0 0 16px!important;
  font:800 clamp(3.35rem,6.9vw,6.1rem)/.99 var(--pfr-display)!important;
  letter-spacing:-.013em!important;text-transform:uppercase;
  text-wrap:balance;text-align:start!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-copy h1 em {
  font-style:normal!important;text-transform:inherit;
}
html body[data-pfr-service] main .pfr-hero .pfr-copy > .lede {
  max-width:52ch!important;margin:17px 0 0!important;font:520 clamp(1.1rem,1.2vw,1.22rem)/1.52 var(--pfr-font)!important;
  text-align:start!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-copy > p:not(.lede) {
  max-width:54ch;margin:13px 0 0!important;font:500 .99rem/1.45 var(--pfr-font)!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-copy > .hero-proof {margin:16px 0 0!important;line-height:1.45!important}
html body[data-pfr-service] main .pfr-hero .pfr-copy > :is(.hero-ctas,.hp-cta) {
  display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:9px!important;
  margin:14px 0 0!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-copy :is(.hero-ctas,.hp-cta) > a {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;min-width:0!important;min-height:46px!important;height:auto!important;
  border-radius:10px!important;padding:9px 15px!important;text-align:center!important;
  font:720 1rem/1.2 var(--pfr-font)!important;letter-spacing:0!important;white-space:normal!important;text-transform:none!important;
  box-shadow:none!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-copy :is(.hero-ctas,.hp-cta) > a:first-child {
  background:var(--pfr-amber)!important;border:1px solid #D9CBBA!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-copy :is(.hero-ctas,.hp-cta) > a:not(:first-child) {
  background:var(--pfr-white)!important;border:1px solid #a9927d!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-media {
  position:relative;align-self:start;display:grid!important;gap:12px;
}
html body[data-pfr-service] main .pfr-hero .pfr-scene {position:relative;margin:0!important;overflow:hidden;border-radius:17px 17px 12px 12px;background:#eaddcf;}
html body[data-pfr-service] main .pfr-hero .pfr-scene img {
  display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover!important;object-position:center 45%;
}
html body[data-pfr-service="protection"] main .pfr-hero .pfr-scene img {object-position:55% 35%}
html body[data-pfr-service] main .pfr-hero .pfr-scene figcaption {
  position:absolute;bottom:0;left:0;right:0;box-sizing:border-box;padding:17px 16px 12px;
  background:linear-gradient(transparent,#24180ce3);color:#fff!important;
  font:690 1rem/1.25 var(--pfr-font)!important;text-shadow:0 1px 2px #120a03;
}
html body[data-pfr-service] main .pfr-hero .pfr-media .fact-card {
  margin:0!important;padding:16px!important;background:var(--pfr-white)!important;border:1px solid var(--pfr-rule)!important;
  border-top:3px solid var(--pfr-amber)!important;border-radius:10px!important;box-shadow:none!important;
}
html body[data-pfr-service] main .pfr-hero .pfr-media .fact-card :is(.fc-meta,.fc-note,.fc-list) {font:550 1rem/1.42 var(--pfr-font)!important;margin-block:5px!important}
html body[data-pfr-service] main .pfr-hero .pfr-media .fc-list {display:grid;gap:3px}
html body[data-pfr-service="hearing-aid-programming"] main .pfr-hero .pfr-media .fc-list {grid-template-columns:1fr}
html body[data-pfr-service="transfer"] main .pfr-hero .pfr-transfer-scene .hp-frame {
  max-width:none!important;width:100%!important;min-height:0!important;position:relative;border-radius:17px;overflow:hidden;
  aspect-ratio:4/3;background:#eaddcf;
}
html body[data-pfr-service="transfer"] main .pfr-hero .pfr-transfer-scene .hp-frame img {
  display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:54% center;
}
html body[data-pfr-service="transfer"] main .pfr-hero .pfr-transfer-scene .hp-cap {
  left:12px!important;bottom:12px!important;max-width:calc(100% - 24px)!important;right:auto!important;position:absolute;
}
html body[data-pfr-service="transfer"] main .pfr-hero .pfr-transfer-scene .offset-rule {display:none}
html body[data-pfr-service="protection"] main .pfr-hero .hp-eq {display:none}
html body[data-pfr-service="protection"] main .pfr-product-disclosure {
  max-width:652px;margin:15px 0 0 auto;border:1px solid var(--pfr-rule);border-radius:10px;background:#fff;
}
html body[data-pfr-service="protection"] main .pfr-product-disclosure > summary {
  min-height:46px;box-sizing:border-box;align-content:center;padding:.65em .9em;
  font:680 1.07rem/1.25 var(--pfr-font);color:var(--pfr-ink);cursor:pointer;
}
html body[data-pfr-service="protection"] main .pfr-product-disclosure:not([open]) > .hp-stage {display:none!important}
html body[data-pfr-service="protection"] main .pfr-product-disclosure[open] > .hp-stage {
  transform:none!important;opacity:1!important;visibility:visible!important;
  min-height:0!important;height:clamp(220px,35vw,420px)!important;overflow:hidden;
}
html body[data-pfr-service] main :is(.ha-page-nav,.hp-shortcuts).pfr-jump {
  padding-block:13px!important;background:#fff!important;box-shadow:none!important;
}
html body[data-pfr-service] main :is(.ha-page-nav,.hp-shortcuts).pfr-jump a {
  display:inline-flex!important;align-items:center!important;gap:8px;min-width:0;min-height:44px;
  padding:7px 10px!important;white-space:normal!important;
  font:680 1.04rem/1.22 var(--pfr-font)!important;
}
html body[data-pfr-service] main :is(.ha-page-nav,.hp-shortcuts).pfr-jump a > .pfr-step-number {
  flex:0 0 auto;font:720 .79rem/1 "JetBrains Mono",monospace;color:#181511;
}
html body[data-pfr-service] main :is(.ha-page-nav,.hp-shortcuts).pfr-jump a:hover {background:#F7F1E7!important}
html body[data-pfr-service] main :is(#repair-services,#repair-visit,#repair-questions,#programming-overview,
  #programming-brands,#programming-questions,#transfer-process,#support,#transfer-questions,#products,#protection-fit,#service-request) {
  scroll-margin-top:114px;
}
html body[data-pfr-service] main :is(a,summary,button):focus-visible {outline:3px solid #181511!important;outline-offset:3px}
html body[data-pfr-service] main :is(#repair-services,#programming-overview,#transfer-process,#products) {
  border-top:1px solid var(--pfr-rule)!important;
}
@layer pa-text-legibility {
 @media screen and (forced-colors:none) {
 html body[data-pfr-service] main .pfr-hero .pfr-copy h1,
 html body[data-pfr-service] main .pfr-hero .pfr-copy > :is(.lede,p) {color:var(--pfr-ink)!important;-webkit-text-fill-color:currentColor!important}
 html body[data-pfr-service] main .pfr-hero .pfr-copy :is(h1 em,.lede a) {color:var(--pfr-deep)!important;-webkit-text-fill-color:currentColor!important}
 html body[data-pfr-service] main .pfr-hero .pfr-copy :is(.hero-ctas,.hp-cta) > a {color:#20160e!important;-webkit-text-fill-color:currentColor!important}
 html body[data-pfr-service] main .pfr-hero .pfr-scene figcaption {color:#fff!important;-webkit-text-fill-color:currentColor!important}
 }
}
@media(max-width:880px) {
 html body[data-pfr-service] main .pfr-hero .pfr-split {gap:26px!important}
}
@media(max-width:680px) {
 html body[data-pfr-service] main .pfr-hero {
  background:linear-gradient(#f8f2e9 0%,#f8f0e5 44%,#fff 100%)!important;
  padding:19px 0 29px!important;
 }
 html body[data-pfr-service] main .pfr-hero > :is(.container,.wrap) {
   width:calc(100% - 32px)!important;
 }
 html body[data-pfr-service] main .pfr-hero .pfr-split {grid-template-columns:minmax(0,1fr)!important;gap:19px!important}
 html body[data-pfr-service] main .pfr-hero .pfr-copy h1 {
   font-size:clamp(2.85rem,12.2vw,4.18rem)!important;max-width:15ch!important;
 }
 html body[data-pfr-service] main .pfr-hero .pfr-copy > .lede {font-size:1.08rem!important;margin-top:14px!important}
 html body[data-pfr-service] main .pfr-hero .pfr-copy :is(.hero-ctas,.hp-cta) {
   display:grid!important;grid-template-columns:1fr!important;width:100%!important;max-width:26rem;
 }
 html body[data-pfr-service] main .pfr-hero .pfr-copy :is(.hero-ctas,.hp-cta) > a {
   width:100%!important;min-height:46px!important;box-sizing:border-box!important;
 }
 html body[data-pfr-service] main .pfr-hero .pfr-scene img {aspect-ratio:4/3}
 html body[data-pfr-service] main .pfr-hero .pfr-media .fact-card {padding:13px!important}
 html body[data-pfr-service] main :is(.ha-page-nav,.hp-shortcuts).pfr-jump {
    position:relative!important;top:auto!important;max-width:100%!important;overflow:visible!important;flex-wrap:wrap!important;
 }
 html body[data-pfr-service] main :is(.ha-page-nav,.hp-shortcuts).pfr-jump :is(ul,.ha-page-nav-wrap,.ha-page-nav-inner) {
    flex-wrap:wrap!important;white-space:normal!important;
 }
 html body[data-pfr-service] main :is(.ha-page-nav,.hp-shortcuts).pfr-jump a {font-size:1rem!important}
}
@media(forced-colors:active) {
 html body[data-pfr-service] main :is(a,summary,button):focus-visible {outline-color:Highlight!important}
}

/* Each route's existing service sections get a distinct patient reading map. */
html body:is([data-pfr-service="hearing-aid-repair"],[data-pfr-service="hearing-aid-programming"]) main > .section {
  padding-block:clamp(34px,5.5vw,72px)!important;
}
html body[data-pfr-service="hearing-aid-repair"] main > :is(.section.alt,.search-pathways),
html body[data-pfr-service="hearing-aid-programming"] main > .section.alt,
html body[data-pfr-service="transfer"] main > :is(#transfer-process,.soft-band),
html body[data-pfr-service="protection"] main > :is(#products,#pa-photo-section-hp-environments) {
  background:#f8f2e9!important;border-block:1px solid #e8dccf;
}
html body:is([data-pfr-service="hearing-aid-repair"],[data-pfr-service="hearing-aid-programming"]) main :is(.card-grid) > .card,
html body[data-pfr-service="transfer"] main :is(.steps > .step,.cov-grid > .cov),
html body[data-pfr-service="protection"] main :is(.hp-gallery > .hp-card,.hp-steps > .hp-step) {
  background:#fff!important;border:1px solid #e2d5c6!important;border-radius:13px!important;
  box-shadow:none!important;
}
html body[data-pfr-service="hearing-aid-repair"] main .card-body,
html body[data-pfr-service="hearing-aid-programming"] main .card-body {
  padding:clamp(15px,2vw,24px)!important;
}
html body[data-pfr-service="transfer"] main #transfer-process .step .sn,
html body[data-pfr-service="protection"] main #protection-fit .hp-step .n {color:#181511!important}
html body[data-pfr-service="protection"] main .hp-marquee {
  border-block:1px solid #e2d5c6!important;background:#fff!important;
}
html body[data-pfr-service="protection"] main .hp-track {animation:none!important}
html body[data-pfr-service] main :is(#repair-questions,#programming-questions,#transfer-questions) ~ .accordion button,
html body[data-pfr-service] main :is(.faq,.sec) .acc-q {min-height:46px;font-size:clamp(1.06rem,1.25vw,1.18rem)!important}
@media(max-width:680px) {
  html body:is([data-pfr-service="hearing-aid-repair"],[data-pfr-service="hearing-aid-programming"]) main .card-grid,
  html body[data-pfr-service="transfer"] main :is(.steps,.cov-grid),
  html body[data-pfr-service="protection"] main :is(.hp-gallery,.hp-steps) {
    grid-template-columns:minmax(0,1fr)!important;
  }
  html body[data-pfr-service="hearing-aid-repair"] main .search-pathways {padding-block:35px!important}
}

/* Keep the protection chooser in the first desktop view after the hero reflow. */
@media (min-width:950px){
html body[data-pfr-service="protection"] main .pfr-hero .pfr-copy h1{max-width:16ch!important;font-size:clamp(4.25rem,5.4vw,5.15rem)!important}
}
