/* Approved reference design, adapted to the existing content templates.
   This file is loaded after redesign-individual.css only on hp-adapted pages. */

body.hp-adapted {
  --primary: #95a7a0;
  --ink: #294243;
  --ivory: #fffff6;
  --adapted-vector: url('/wp-content/themes/happy-people/assets/redesign-20261020/image-8a008f4451efb66672e4.svg');
  color: var(--ink);
  background: #fff;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

/* Reset only nested template elements; the shared site header/footer keep the
   prototype rules. No overflow is set on the reading/sticky ancestors. */
body.hp-adapted .site-main {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
}
body.hp-adapted .site-main header {
  position: relative;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  background: transparent;
}
body.hp-adapted .site-main nav {
  display: block;
  position: static;
  inset: auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: 400;
}
body.hp-adapted .site-main footer {
  position: static;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}
body.hp-adapted .site-main .container {
  width: calc(100% - 64px);
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
}
body.hp-adapted .site-main :is(article, section, div, aside, figure, form) { min-width: 0; }
body.hp-adapted .site-main .entry-content { padding-top: 60px; padding-bottom: 65px; }
body.hp-adapted .site-main .content-narrow { max-width: 860px; }
body.hp-adapted .site-main :is(h1, h2, h3, h4, h5, h6) {
  font-family: invaSporos, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  scroll-margin-top: var(--hp-sticky-top, 174px);
}
body.hp-adapted .site-main h1 { font-size: clamp(40px, 4.5vw, 62px); line-height: 1.2; }
body.hp-adapted .site-main h2 { font-size: 36px; line-height: 1.3; margin: 38px 0 22px; }
body.hp-adapted .site-main h3 { font-size: 27px; line-height: 1.4; margin: 30px 0 16px; }
body.hp-adapted .site-main :is(h4, h5, h6) { font-size: 23px; line-height: 1.45; }
body.hp-adapted .entry-content :is(p, li) { font-size: 19px; line-height: 1.85; }
body.hp-adapted .entry-content p { margin: 0 0 24px; overflow-wrap: anywhere; }
body.hp-adapted .entry-content :is(ul, ol) { margin: 22px 0 30px; padding-left: 25px; }
body.hp-adapted .entry-content li { padding-left: 4px; margin-bottom: 11px; }
body.hp-adapted .entry-content li::marker { color: var(--primary); }
body.hp-adapted .entry-content a { text-underline-offset: 5px; overflow-wrap: anywhere; }
body.hp-adapted .entry-content :is(figure, .wp-block-image) { margin: 30px 0; }
body.hp-adapted .entry-content figure img { width: 100%; height: auto; border-radius: 28px; }
body.hp-adapted .entry-content figcaption { margin-top: 12px; font-size: 15px; line-height: 1.7; }
body.hp-adapted .entry-content :is(blockquote, .wp-block-quote) {
  margin: 32px 0;
  padding: 26px 32px;
  border-left: 4px solid var(--primary);
  border-radius: 0 24px 24px 0;
  background: var(--ivory);
}
body.hp-adapted .site-main :is(.hp-layout-spacer, .article-reading-spacer) { display: none !important; }
body.hp-adapted .site-main :is(.form-honeypot, .hp-honeypot) { display: none !important; }
body.hp-adapted .site-main :is(.button, button) {
  font-family: 'HP Rounded', 'Arial Rounded MT Bold', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  padding: 13px 25px;
  border: 1px solid var(--primary);
  border-radius: 30px;
  background: var(--primary);
  color: #fff;
}
body.hp-adapted .site-main :is(.button, button):hover {
  color: #fff;
  background: #8b665c;
  border-color: #8b665c;
}

/* The same sage title band and identity vector as the approved service page. */
body.hp-adapted .site-main :is(.service-hero, .page-header, .archive-header, .contact-page-header, .article-reading-header, .article-header) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 350px;
  padding: 0;
  background: var(--primary);
  color: #fff;
}
body.hp-adapted .site-main :is(.page-header, .archive-header, .contact-page-header, .article-reading-header, .article-header)::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: 0;
  top: 50%;
  width: 432%;
  height: 1000px;
  transform: translateY(-50%);
  background-image: var(--adapted-vector);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  opacity: .2;
  pointer-events: none;
}
body.hp-adapted .service-hero-media { display: none; }
body.hp-adapted .site-main :is(.service-hero, .page-header, .contact-page-header, .article-reading-header) > .container {
  position: relative;
  padding-top: 65px;
  padding-bottom: 55px;
}
body.hp-adapted .site-main :is(.service-hero, .page-header, .archive-header, .contact-page-header, .article-reading-header, .article-header) :is(h1, p, a, span, time) { color: #fff; }
body.hp-adapted .site-main :is(.service-hero, .page-header, .contact-page-header) h1 {
  width: 75%;
  max-width: 850px;
  margin: 24px 0 0;
}
body.hp-adapted .page-header > .container { max-width: 1160px; }
body.hp-adapted .contact-page-header > .container > p { max-width: 750px; margin: 24px 0 0; }
body.hp-adapted .site-main :is(.service-breadcrumbs, .contact-page-breadcrumbs, .article-reading-breadcrumbs) { font-size: 14px; line-height: 1.6; }
body.hp-adapted .site-main :is(.service-breadcrumbs, .contact-page-breadcrumbs, .article-reading-breadcrumbs) ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.hp-adapted .site-main :is(.service-breadcrumbs, .contact-page-breadcrumbs, .article-reading-breadcrumbs) li { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
body.hp-adapted .site-main :is(.service-breadcrumbs, .contact-page-breadcrumbs, .article-reading-breadcrumbs) li + li::before { content: '/'; margin-right: 11px; opacity: .75; }
body.hp-adapted .site-main :is(.service-breadcrumbs, .contact-page-breadcrumbs, .article-reading-breadcrumbs) a { text-decoration: none; }
body.hp-adapted .site-main :is(.service-breadcrumbs, .contact-page-breadcrumbs, .article-reading-breadcrumbs) a:hover { text-decoration: underline; }

/* Service text remains in its original order; the source photo is in the intro. */
body.hp-adapted .site-main .service-body.container { max-width: 1040px; padding-top: 65px; }
body.hp-adapted .service-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 60px; align-items: center; margin: 0 0 48px; }
body.hp-adapted .service-intro > p { grid-column: 1; margin: 0; }
body.hp-adapted .service-intro > .service-inline-image { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
body.hp-adapted .service-intro > .service-inline-image:only-child { grid-column: 1 / -1; max-width: 720px; justify-self: center; }
body.hp-adapted .service-intro img { width: 100%; height: auto; border-radius: 30px 75px 30px 30px; }
body.hp-adapted .service-intro > .service-quote-attribution { font-size: 17px; align-self: start; }
body.hp-adapted .service-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
body.hp-adapted .service-panel { grid-column: 1 / -1; width: 100%; max-width: 860px; margin: 0 auto; padding: 38px 42px; border: 0; border-radius: 30px; background: var(--primary); color: #fff; }
body.hp-adapted .service-panel :is(h2, h3, h4, h5, h6, p, li, a, strong, span) { color: inherit; }
body.hp-adapted .service-panel > :first-child { margin-top: 0; }
body.hp-adapted .service-panel > :last-child { margin-bottom: 0; }
body.hp-adapted .service-panel li::marker { color: #fff; }
body.hp-adapted .service-panel--compact { max-width: 860px; padding: 16px 0; border-radius: 0; background: transparent; color: var(--ink); }
body.hp-adapted .service-panel--compact:has(+ .service-panel--compact),
body.hp-adapted .service-panel--compact + .service-panel--compact { grid-column: auto; max-width: none; padding: 28px; border-radius: 26px; background: var(--ivory); }
body.hp-adapted .service-panel--compact li::marker { color: var(--primary); }
body.hp-adapted .service-hero--group + .service-body .service-panels > .service-panel--compact { background: var(--primary); color: #fff; }
body.hp-adapted .service-hero--group + .service-body .service-panel--compact li::marker { color: #fff; }
body.hp-adapted .service-list--columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; }
body.hp-adapted .service-list--columns li { margin-bottom: 0; }
body.hp-adapted .service-literal-list { list-style: none; padding-left: 0; }
body.hp-adapted .service-literal-list li { padding-left: 0; }
body.hp-adapted .service-media-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; padding: 10px 0; }
body.hp-adapted .service-media-pair > figure { margin: 0; }
body.hp-adapted .service-media-pair > figure:only-child { grid-column: 1 / -1; width: min(100%, 760px); justify-self: center; }
body.hp-adapted .service-media-pair img { width: 100%; height: auto; border-radius: 28px; }
body.hp-adapted .service-related-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
body.hp-adapted .service-related-card { padding: 0 28px 30px; border-radius: 28px; background: #f4e6df; }
body.hp-adapted .service-related-card:nth-child(even) { background: #e5eee8; }
body.hp-adapted .service-related-card > figure { margin: 0 -28px 26px; }
body.hp-adapted .service-related-card figure img { height: 260px; object-fit: cover; border-radius: 28px 28px 0 0; }
body.hp-adapted .service-related-card h2 { margin-top: 0; font-size: 34px; }
body.hp-adapted .service-related-card h2 a { text-decoration: none; }
body.hp-adapted .service-source-links { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 32px; font-size: 16px; }

/* Original appointment copy and working forms take the prototype contact look. */
body.hp-adapted .site-main .hp-original-contact:not(.contact-page-details) {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 50px;
  margin: 55px 0 0;
  padding: 50px 44px;
  border: 0;
  border-radius: 32px;
  background: var(--primary);
  color: #fff;
}
body.hp-adapted .hp-original-contact:not(.contact-page-details) > :not(form) { grid-column: 1; }
body.hp-adapted .hp-original-contact:not(.contact-page-details) > form { grid-column: 2; grid-row: 1 / span 20; align-self: center; }
body.hp-adapted .hp-original-contact:not(.contact-page-details) :is(h2, h3, p, a, label, input, textarea, span) { color: #fff; }
body.hp-adapted .hp-original-contact:not(.contact-page-details) > h2 { font-size: 44px; margin: 16px 0 22px; }
body.hp-adapted .hp-original-contact:not(.contact-page-details) > p { font-size: 18px; margin-bottom: 18px; }
body.hp-adapted .hp-original-contact:not(.contact-page-details) > a { margin: 0 0 12px; font-size: 15px; }
body.hp-adapted .service-contact { margin-top: 48px; }
body.hp-adapted .service-contact .hp-original-contact { margin-top: 0; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) > :is(.form-grid, input[type=hidden]) { grid-column: 1 / -1; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) > label { display: block; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) :is(.form-field-full, .full) { grid-column: 1 / -1; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) label { display: block; min-width: 0; font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 17px; font-weight: 400; line-height: 1.65; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) :is(input:not([type=hidden]), textarea, select) { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid #ffffffa6; border-radius: 0; background: transparent; box-shadow: none; color: #fff; font: inherit; font-size: 19px; line-height: 1.6; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) textarea { min-height: 130px; height: 140px; resize: vertical; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) :is(input, textarea)::placeholder { color: #ffffffb3; opacity: 1; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) :is(input:not([type=hidden]), textarea, select):focus { background: #ffffff12; color: #fff; outline: 2px solid var(--ivory); outline-offset: 4px; }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) > button { justify-self: start; margin-top: 26px; background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) > button:hover { background: #8b665c; border-color: #8b665c; color: #fff; }
body.hp-adapted .site-main .form-result { padding: 16px 20px; border: 1px solid currentColor; border-radius: 18px; font-size: 17px; line-height: 1.7; scroll-margin-top: var(--hp-sticky-top, 174px); }
body.hp-adapted .site-main .form-result:empty { display: none; }

/* Contact page: one sage form, source details/photo and opening hours. */
body.hp-adapted .site-main .contact-page-content { padding: 0; }
body.hp-adapted .contact-page-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; margin-top: 60px; }
body.hp-adapted .contact-page-form { padding: 38px; border-radius: 30px; background: var(--primary); color: #fff; }
body.hp-adapted .contact-page-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body.hp-adapted .contact-page-form form > :is(.form-grid, .form-result) { grid-column: 1 / -1; }
body.hp-adapted .contact-page-form form > button { margin-top: 6px; }
body.hp-adapted .contact-page-form :is(label, .form-result) { color: #fff; }
body.hp-adapted .contact-page-sidebar { display: grid; gap: 28px; }
body.hp-adapted .contact-page-sidebar .contact-page-details { display: block; margin: 0; padding: 0 0 26px; border: 0; border-radius: 30px; background: var(--ivory); color: var(--ink); }
body.hp-adapted .entry-content .contact-page-photo { margin: 0 0 26px; }
body.hp-adapted .contact-page-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center; border-radius: 30px 30px 0 0; }
body.hp-adapted .contact-page-details > p { margin: 0 28px 13px; font-size: 19px; }
body.hp-adapted .contact-page-details > p a { color: var(--ink); text-decoration: none; }
body.hp-adapted .contact-page-details > p a:hover { text-decoration: underline; }
body.hp-adapted .contact-page-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 24px 28px 0; }
body.hp-adapted .contact-page-socials > figure { flex: 0 0 28px; width: 28px; height: 28px; margin: 0; }
body.hp-adapted .contact-page-socials a { display: block; }
body.hp-adapted .contact-page-socials img { display: block; width: 28px; height: 28px; border-radius: 0; object-fit: contain; }
body.hp-adapted .contact-page-hours { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; padding: 30px; border-radius: 28px; background: var(--primary); color: #fff; }
body.hp-adapted .contact-page-hours > h2 { grid-column: 1 / -1; margin: 0 0 15px; font-size: 36px; color: #fff; }
body.hp-adapted .contact-page-hours > p { margin: 0; font-size: 17px; line-height: 1.75; }
body.hp-adapted .contact-page-hours > p:first-of-type { grid-column: 1 / -1; margin-bottom: 10px; }
body.hp-adapted .contact-page-hours > p:nth-of-type(2),
body.hp-adapted .contact-page-hours > p:nth-of-type(4) { grid-column: 1; }
body.hp-adapted .contact-page-hours > p:nth-of-type(3),
body.hp-adapted .contact-page-hours > p:nth-of-type(5) { grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; }
body.hp-adapted .contact-page-return { padding: 30px 0 60px; font-size: 16px; }

/* Article titles and continuous reading flow; the existing related column stays. */
body.hp-adapted .site-main .article-reading-entry { overflow: visible; }
body.hp-adapted .site-main .article-reading-header > .container { max-width: 1040px; }
body.hp-adapted .article-reading-title { max-width: 950px; margin: 28px 0 25px; font-size: clamp(38px, 4vw, 56px); }
body.hp-adapted .article-reading-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
body.hp-adapted .article-reading-meta :is(p, h3) { margin: 0; font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.7; color: #fff; }
body.hp-adapted .site-main .article-reading-cover.container { max-width: 1040px; margin-top: 46px; margin-bottom: 50px; }
body.hp-adapted .article-reading-cover img { width: 100%; height: var(--article-cover-height, 380px); object-fit: var(--article-cover-fit, cover); object-position: var(--article-cover-position, center); border-radius: 30px 75px 30px 30px; background: var(--ivory); }
body.hp-adapted .site-main .article-reading-layout.container { display: grid; grid-template-columns: minmax(0, 740px) minmax(0, 300px); gap: 60px; align-items: start; padding-bottom: 65px; }
body.hp-adapted .site-main .article-reading-body.container { width: 100%; max-width: none; margin: 0; padding: 0; }
body.hp-adapted .article-reading-copy { min-width: 0; }
body.hp-adapted .article-reading-body :is(p, li) { font-size: 19px; line-height: 1.85; }
body.hp-adapted .article-reading-body h2 { margin-top: 46px; font-size: 36px; }
body.hp-adapted .article-reading-body h3 { font-size: 27px; }
body.hp-adapted .article-reading-body .article-reading-copy > :first-child { margin-top: 0; }
body.hp-adapted .site-main .article-reading-toc { margin: 0 0 38px; padding: 27px 30px; border-radius: 26px; background: #e5eee8; }
body.hp-adapted .article-reading-toc > p { margin-bottom: 13px; font-family: 'HP Rounded', sans-serif; font-size: 17px; font-weight: 700; }
body.hp-adapted .article-reading-toc ol { margin: 0; padding-left: 22px; }
body.hp-adapted .article-reading-toc li { padding-left: 3px; margin-bottom: 9px; font-size: 16px; line-height: 1.7; }
body.hp-adapted .article-reading-toc li:last-child { margin-bottom: 0; }
body.hp-adapted .article-reading-toc a { text-decoration: none; }
body.hp-adapted .article-reading-toc a:hover { text-decoration: underline; }
body.hp-adapted .article-reading-callout { padding: 30px 34px; margin: 32px 0; border-radius: 28px; background: var(--primary); color: #fff; }
body.hp-adapted .article-reading-literal-item { padding-left: 20px; text-indent: -15px; }
body.hp-adapted .article-reading-extra-image { margin: 34px 0; }
body.hp-adapted .article-reading-extra-image img { width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 24px; }
body.hp-adapted .article-reading-references { margin-top: 42px; padding: 30px; border-radius: 26px; background: var(--ivory); }
body.hp-adapted .article-reading-references > h2 { margin-top: 0; font-size: 32px; }
body.hp-adapted .article-reading-references :is(p, li) { font-size: 16px; line-height: 1.85; }
body.hp-adapted .article-reading-references > :last-child { margin-bottom: 0; }
body.hp-adapted .article-reading-source-links { margin-top: 30px; font-size: 16px; }
body.hp-adapted .article-reading-sidebar { align-self: stretch; min-width: 0; }
body.hp-adapted .article-reading-sidebar-sticky { position: sticky; top: var(--hp-sticky-top, 174px); }
body.hp-adapted .site-main .article-reading-sidebar .container { width: 100%; margin: 0; }
body.hp-adapted .article-reading-related > h2 { margin: 0 0 24px; font-size: 32px; }
body.hp-adapted .article-reading-related-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
body.hp-adapted .article-reading-related-grid > article { padding: 0 22px 23px; border-radius: 25px; background: #f4e6df; }
body.hp-adapted .article-reading-related-grid > article:nth-child(even) { background: #e5eee8; }
body.hp-adapted .article-reading-related-grid .card-image { display: block; margin: 0 -22px 20px; }
body.hp-adapted .article-reading-related-grid img { display: block; width: 100%; height: 175px; object-fit: cover; border-radius: 25px 25px 0 0; }
body.hp-adapted .article-reading-related-grid h3 { margin: 0; font-family: 'HP Rounded', sans-serif; font-size: 19px; font-weight: 700; line-height: 1.5; }
body.hp-adapted .article-reading-related-grid h3 a { text-decoration: none; }
body.hp-adapted .article-reading-related-grid h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
body.hp-adapted .article-reading-cta { margin-top: 27px; }
body.hp-adapted .article-reading-cta .button { display: block; font-size: 16px; padding-inline: 15px; }

/* Source blog cards include naked excerpt nodes, so typography is on the card. */
body.hp-adapted .site-main .page-entry > .entry-content:has(.hp-source-blog-grid) { max-width: 1160px; }
body.hp-adapted .hp-source-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 35px 0 55px; }
body.hp-adapted .source-blog-card { margin: 0; padding: 0 26px 30px; border-radius: 28px; background: #f5f1df; font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
body.hp-adapted .source-blog-card:nth-child(4n+2) { background: #e5eee8; }
body.hp-adapted .source-blog-card:nth-child(4n+3) { background: #f4e6df; }
body.hp-adapted .source-blog-card:nth-child(4n+4) { background: #e7eaf3; }
body.hp-adapted .entry-content .source-blog-card > figure { margin: 0 -26px 25px; }
body.hp-adapted .source-blog-card > figure ~ figure { display: none; }
body.hp-adapted .source-blog-card > figure img { display: block; width: 100%; height: 210px; object-fit: cover; border-radius: 28px 28px 0 0; }
body.hp-adapted .source-blog-card > a { display: block; margin-bottom: 18px; text-decoration: none; }
body.hp-adapted .source-blog-card h2 { margin: 0; font-family: 'HP Rounded', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.5; }
body.hp-adapted .source-blog-card > a:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
body.hp-adapted .source-blog-card :is(p, span) { font: inherit; }
body.hp-adapted .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 55px 0 65px; }
body.hp-adapted .article-card { border-radius: 28px; background: #e5eee8; }
body.hp-adapted .article-card:nth-child(3n+2) { background: #f4e6df; }
body.hp-adapted .article-card:nth-child(3n+3) { background: #e7eaf3; }
body.hp-adapted .article-card > .card-image { display: block; }
body.hp-adapted .article-card > .card-image img { width: 100%; height: 210px; object-fit: cover; border-radius: 28px 28px 0 0; }
body.hp-adapted .article-card .card-body { padding: 25px; }
body.hp-adapted .article-card .card-title { margin: 12px 0 18px; font-family: 'HP Rounded', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.5; }
body.hp-adapted .article-card .card-title a { text-decoration: none; }
body.hp-adapted .article-card :is(.article-meta, .card-excerpt) { font-size: 16px; line-height: 1.8; }
body.hp-adapted .site-main.archive-main { width: calc(100% - 64px); max-width: 1160px; margin-inline: auto; }
body.hp-adapted .site-main .archive-header { min-height: 0; padding: 50px 36px; border-radius: 0 0 30px 30px; }
body.hp-adapted .archive-header h1 { margin: 0; }
body.hp-adapted .pagination { padding: 0 0 50px; }
body.hp-adapted .pagination .nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
body.hp-adapted .pagination .page-numbers { padding: 8px 16px; border: 1px solid var(--primary); border-radius: 30px; text-decoration: none; }
body.hp-adapted .pagination .current { background: var(--primary); color: #fff; }

/* Policy content keeps a narrow continuous flow, including long source URLs. */
body.hp-adapted .page-entry > .entry-content:not(:has(.hp-source-blog-grid)) { max-width: 860px; }
body.hp-adapted .page-entry > .entry-content > :first-child { margin-top: 0; }
body.hp-adapted .page-entry > .entry-content :is(table, .wp-block-table) { max-width: 100%; }
body.hp-adapted .page-entry > .entry-content table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.hp-adapted .page-entry > .entry-content :is(td, th) { padding: 12px; border: 1px solid #95a7a066; overflow-wrap: anywhere; }
body.hp-adapted .site-main .article-header.container { max-width: none; width: 100%; padding: 55px max(32px, calc((100% - 860px) / 2)); }
body.hp-adapted .article-featured { margin-top: 40px; }
body.hp-adapted .article-featured img { width: 100%; height: auto; border-radius: 30px; }

@media (min-width: 1101px) {
  body.hp-adapted .article-reading-sidebar-sticky {
    max-height: calc(100vh - var(--hp-sticky-top, 174px) - 16px);
    max-height: calc(100dvh - var(--hp-sticky-top, 174px) - 16px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 1100px) {
  body.hp-adapted .site-main .article-reading-layout.container { grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 860px; }
  body.hp-adapted .article-reading-sidebar-sticky { position: static; }
  body.hp-adapted .article-reading-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.hp-adapted .article-reading-related-grid img { height: 210px; }
  body.hp-adapted .article-reading-cta { max-width: 400px; }
  body.hp-adapted .service-intro { column-gap: 38px; }
  body.hp-adapted .hp-source-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.hp-adapted .site-main .hp-original-contact:not(.contact-page-details) { gap: 0 32px; padding: 40px 32px; }
  body.hp-adapted .contact-page-layout { gap: 26px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  body.hp-adapted .contact-page-form { padding: 28px; }
}

@media (max-width: 850px) {
  body.hp-adapted .contact-page-layout { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
  body.hp-adapted .contact-page-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  body.hp-adapted .contact-page-hours { grid-template-columns: minmax(0, 1fr); padding: 26px; }
  body.hp-adapted .contact-page-hours > p:nth-of-type(n) { grid-column: 1; text-align: left; }
  body.hp-adapted .contact-page-hours > p:nth-of-type(3) { margin-bottom: 12px; }
  body.hp-adapted .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body.hp-adapted .site-main .container,
  body.hp-adapted .site-main.archive-main { width: calc(100% - 40px); }
  body.hp-adapted .site-main .entry-content { padding-top: 40px; padding-bottom: 45px; }
  body.hp-adapted .site-main h1 { font-size: 38px; }
  body.hp-adapted .site-main h2 { font-size: 30px; margin-top: 32px; }
  body.hp-adapted .site-main h3 { font-size: 25px; }
  body.hp-adapted .entry-content :is(p, li) { font-size: 18px; line-height: 1.85; }
  body.hp-adapted .entry-content :is(blockquote, .wp-block-quote) { padding: 24px; }
  body.hp-adapted .site-main :is(.service-hero, .page-header, .contact-page-header, .article-reading-header) { min-height: 320px; }
  body.hp-adapted .site-main :is(.service-hero, .page-header, .contact-page-header, .article-reading-header) > .container { padding-top: 42px; padding-bottom: 45px; }
  body.hp-adapted .site-main :is(.service-hero, .page-header, .contact-page-header) h1 { width: 100%; max-width: none; }
  body.hp-adapted .site-main :is(.page-header, .archive-header, .contact-page-header, .article-reading-header, .article-header)::before { width: 560%; height: 1040px; }
  body.hp-adapted .site-main :is(.service-breadcrumbs, .contact-page-breadcrumbs, .article-reading-breadcrumbs) { font-size: 13px; }
  body.hp-adapted .site-main .service-body.container { padding-top: 40px; }
  body.hp-adapted .service-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 32px; }
  body.hp-adapted .service-intro > :is(p, .service-inline-image) { grid-column: 1; grid-row: auto; }
  body.hp-adapted .service-intro > .service-quote-attribution { margin-top: -15px; }
  body.hp-adapted .service-panels { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.hp-adapted .service-panel { padding: 28px 24px; border-radius: 24px; }
  body.hp-adapted .service-panel--compact { padding: 10px 0; }
  body.hp-adapted .service-panel--compact:has(+ .service-panel--compact),
  body.hp-adapted .service-panel--compact + .service-panel--compact { grid-column: 1; padding: 25px; border-radius: 24px; }
  body.hp-adapted .service-list--columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.hp-adapted .service-media-pair { gap: 18px; }
  body.hp-adapted .service-related-grid { grid-template-columns: minmax(0, 1fr); }
  body.hp-adapted .service-related-card { padding-inline: 24px; }
  body.hp-adapted .service-related-card > figure { margin-inline: -24px; }
  body.hp-adapted .service-related-card h2 { font-size: 30px; }
  body.hp-adapted .site-main .hp-original-contact:not(.contact-page-details) { display: block; margin-top: 38px; padding: 32px 24px; border-radius: 24px; }
  body.hp-adapted .hp-original-contact:not(.contact-page-details) > h2 { font-size: 38px; }
  body.hp-adapted .hp-original-contact:not(.contact-page-details) > form { margin-top: 32px; }
  body.hp-adapted .hp-original-contact:not(.contact-page-details) > a { display: inline-block; margin-right: 18px; }
  body.hp-adapted .service-contact { margin-top: 32px; }
  body.hp-adapted .site-main .contact-page-content { padding: 0; }
  body.hp-adapted .contact-page-layout { margin-top: 35px; }
  body.hp-adapted .contact-page-form { padding: 30px 24px; border-radius: 24px; }
  body.hp-adapted .contact-page-sidebar { grid-template-columns: minmax(0, 1fr); }
  body.hp-adapted .contact-page-details > p { margin-inline: 24px; }
  body.hp-adapted .contact-page-hours { grid-template-columns: minmax(0, 1fr) auto; padding: 28px 24px; }
  body.hp-adapted .contact-page-hours > h2 { font-size: 30px; }
  body.hp-adapted .contact-page-hours > p:nth-of-type(3),
  body.hp-adapted .contact-page-hours > p:nth-of-type(5) { grid-column: 2; text-align: right; }
  body.hp-adapted .contact-page-hours > p:nth-of-type(3) { margin-bottom: 0; }
  body.hp-adapted .contact-page-return { padding-bottom: 40px; }
  body.hp-adapted .article-reading-title { font-size: 36px; margin-top: 25px; }
  body.hp-adapted .article-reading-meta { gap: 6px 22px; }
  body.hp-adapted .article-reading-meta :is(p, h3) { font-size: 15px; }
  body.hp-adapted .site-main .article-reading-cover.container { margin-top: 30px; margin-bottom: 35px; }
  body.hp-adapted .article-reading-cover img { height: var(--article-cover-height-mobile, 260px); border-radius: 24px 55px 24px 24px; }
  body.hp-adapted .site-main .article-reading-layout.container { padding-bottom: 45px; gap: 40px; }
  body.hp-adapted .site-main .article-reading-body.container { width: 100%; padding: 0; }
  body.hp-adapted .article-reading-body h2 { font-size: 30px; }
  body.hp-adapted .article-reading-body h3 { font-size: 25px; }
  body.hp-adapted .site-main .article-reading-toc { padding: 24px; margin-bottom: 30px; border-radius: 24px; }
  body.hp-adapted .article-reading-toc li { font-size: 16px; }
  body.hp-adapted .article-reading-callout { padding: 25px; border-radius: 24px; }
  body.hp-adapted .article-reading-references { padding: 25px; }
  body.hp-adapted .article-reading-references > h2 { font-size: 28px; }
  body.hp-adapted .article-reading-references :is(p, li) { font-size: 16px; }
  body.hp-adapted .article-reading-related > h2 { font-size: 30px; }
  body.hp-adapted .article-reading-related-grid img { height: 180px; }
  body.hp-adapted .article-reading-related-grid h3 { font-size: 18px; }
  body.hp-adapted .hp-source-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 28px; }
  body.hp-adapted .source-blog-card { padding: 0 24px 28px; font-size: 17px; }
  body.hp-adapted .entry-content .source-blog-card > figure { margin-inline: -24px; }
  body.hp-adapted .source-blog-card > figure img { height: auto; aspect-ratio: 1.5; }
  body.hp-adapted .source-blog-card h2 { font-size: 22px; }
  body.hp-adapted .source-blog-card :is(p, span) { font: inherit; }
  body.hp-adapted .site-main .archive-header { padding: 38px 24px; }
  body.hp-adapted .article-grid { gap: 24px; padding-top: 38px; }
}

@media (max-width: 480px) {
  body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form) .form-grid,
  body.hp-adapted .site-main :is(.contact-form, .hp-redesign-form),
  body.hp-adapted .contact-page-form form { grid-template-columns: minmax(0, 1fr); }
  body.hp-adapted .article-reading-related-grid,
  body.hp-adapted .article-grid,
  body.hp-adapted .service-media-pair { grid-template-columns: minmax(0, 1fr); }
  body.hp-adapted .article-reading-related-grid img { height: 200px; }
  body.hp-adapted .contact-page-hours { column-gap: 12px; }
  body.hp-adapted .contact-page-hours > p { font-size: 16px; }
}
