/* hdpf-site.css — marketing page components for the Honey Do site.
 *
 * Built on the real design-system tokens (no invented tokens, no raw hex;
 * color-mix(tokens) for atmosphere). Section chrome + hero + CTA live in
 * hdpf-layout.css; this file holds the page content components.
 */

/* ================================================================== *
 * Service cards (photo media + icon)
 * ================================================================== */

.hdpf-service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--hdpf-surface);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--hdpf-shadow-xs);
  transition:
    border-color var(--hdpf-duration-normal) var(--hdpf-ease-standard),
    box-shadow var(--hdpf-duration-normal) var(--hdpf-ease-standard),
    transform var(--hdpf-duration-normal) var(--hdpf-ease-standard);
}

.hdpf-service-card:hover {
  border-color: color-mix(in srgb, var(--hdpf-accent) 55%, var(--hdpf-border));
  box-shadow: var(--hdpf-shadow-md);
  transform: translateY(-3px);
}

.hdpf-service-card:focus-visible {
  outline: 2px solid var(--hdpf-focus-outline);
  outline-offset: 3px;
}

.hdpf-service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hdpf-surface-inset);
}

.hdpf-service-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--hdpf-duration-slow) var(--hdpf-ease-standard);
}

.hdpf-service-card:hover .hdpf-service-card__img {
  transform: scale(1.045);
}

/* Icon chip — floats over media bottom-left; falls back to a top chip when
 * the card has no media (used on service detail pages). */
.hdpf-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--hdpf-radius-md);
  background: var(--hdpf-accent-soft);
  color: var(--hdpf-accent);
  border: 1px solid color-mix(in srgb, var(--hdpf-accent) 22%, transparent);
}

.hdpf-service-card__media .hdpf-service-card__icon {
  position: absolute;
  left: var(--hdpf-space-4);
  bottom: var(--hdpf-space-4);
  background: color-mix(in srgb, var(--hdpf-surface) 90%, transparent);
  backdrop-filter: blur(4px);
  box-shadow: var(--hdpf-shadow-sm);
}

.hdpf-service-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--hdpf-space-3);
  flex: 1;
  padding: var(--hdpf-space-5);
}

/* When there is no media, the standalone icon sits above the title. */
.hdpf-service-card__body > .hdpf-service-card__icon {
  margin-bottom: var(--hdpf-space-1);
}

.hdpf-service-card__title {
  margin: 0;
  font-family: var(--hdpf-font-display);
  font-size: var(--hdpf-fs-headline);
  font-weight: var(--hdpf-fw-extrabold);
  color: var(--hdpf-ink-strong);
  letter-spacing: var(--hdpf-tracking-tight);
}

.hdpf-service-card__body p,
.hdpf-service-card__body-text {
  margin: 0;
  color: var(--hdpf-ink-muted);
  line-height: var(--hdpf-lh-relaxed);
}

.hdpf-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--hdpf-space-2);
  margin-top: auto;
  padding-top: var(--hdpf-space-2);
  font-weight: var(--hdpf-fw-semibold);
  color: var(--hdpf-accent);
  text-transform: capitalize;
}

.hdpf-service-card__link .hdpf-icon {
  transition: transform var(--hdpf-duration-fast) var(--hdpf-ease-standard);
}

.hdpf-service-card:hover .hdpf-service-card__link .hdpf-icon {
  transform: translateX(0.25rem);
}

/* Blueprint service illustrations (inline SVG, theme-aware) */
.hdpf-service-card__media--ill {
  display: grid;
  place-items: center;
  padding: var(--hdpf-space-6) var(--hdpf-space-6) var(--hdpf-space-5);
  background-color: var(--hdpf-page-soft);
  background-image:
    linear-gradient(var(--hdpf-bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hdpf-bp-line) 1px, transparent 1px);
  background-size: var(--hdpf-bp-size) var(--hdpf-bp-size);
}

.hdpf-service-card:hover .hdpf-ill {
  transform: translateY(-2px);
}

.hdpf-ill {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform var(--hdpf-duration-slow) var(--hdpf-ease-standard);
}

.hdpf-ill__line { stroke: var(--hdpf-ink-muted); }
.hdpf-ill__accent { stroke: var(--hdpf-accent); }
.hdpf-ill__dim { stroke: var(--hdpf-ink-faint); }
.hdpf-ill__accent-fill { fill: var(--hdpf-accent); stroke: none; }
.hdpf-ill__soft { fill: var(--hdpf-accent-soft); stroke: none; }
.hdpf-ill__fill { fill: color-mix(in srgb, var(--hdpf-accent) 12%, transparent); stroke: none; }

/* ================================================================== *
 * Promise band — dark contrast spine (inverts by theme, always high-contrast)
 * ================================================================== */

.hdpf-promise {
  position: relative;
  overflow: hidden;
  padding-block: var(--hdpf-space-11);
  background: var(--hdpf-ink-strong);
  color: var(--hdpf-page);
  --hdpf-promise-accent: color-mix(in srgb, var(--hdpf-accent) 72%, var(--hdpf-page));
}

.hdpf-promise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--hdpf-page) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--hdpf-page) 8%, transparent) 1px, transparent 1px);
  background-size: var(--hdpf-bp-size) var(--hdpf-bp-size);
  -webkit-mask-image: radial-gradient(80% 120% at 100% 0%, rgba(0,0,0,0.85), transparent 65%);
  mask-image: radial-gradient(80% 120% at 100% 0%, rgba(0,0,0,0.85), transparent 65%);
  pointer-events: none;
}

.hdpf-promise__inner {
  position: relative;
  z-index: 1;
}

.hdpf-promise__head {
  max-width: 44rem;
  margin-bottom: var(--hdpf-space-8);
}

.hdpf-promise__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--hdpf-space-2);
  margin: 0 0 var(--hdpf-space-3);
  font-family: var(--hdpf-font-mono);
  font-size: var(--hdpf-fs-micro);
  letter-spacing: var(--hdpf-tracking-wider);
  text-transform: uppercase;
  font-weight: var(--hdpf-fw-semibold);
  color: var(--hdpf-promise-accent);
}

.hdpf-promise__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: var(--hdpf-radius-pill);
  background: var(--hdpf-promise-accent);
}

.hdpf-promise__title {
  margin: 0;
  font-family: var(--hdpf-font-display);
  font-size: clamp(1.875rem, 1.1rem + 2.9vw, 2.5rem);
  font-weight: var(--hdpf-fw-black);
  line-height: var(--hdpf-lh-tight);
  letter-spacing: var(--hdpf-tracking-tight);
  color: var(--hdpf-page);
  text-wrap: balance;
}

.hdpf-promise__grid {
  display: grid;
  gap: var(--hdpf-space-6);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@container layout-root (max-width: 60rem) {
  .hdpf-promise__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container layout-root (max-width: 36rem) {
  .hdpf-promise__grid { grid-template-columns: 1fr; }
}

.hdpf-promise__item {
  display: flex;
  flex-direction: column;
  gap: var(--hdpf-space-3);
  padding-top: var(--hdpf-space-5);
  border-top: 1px solid color-mix(in srgb, var(--hdpf-page) 22%, transparent);
}

.hdpf-promise__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--hdpf-radius-md);
  background: color-mix(in srgb, var(--hdpf-accent) 20%, transparent);
  color: var(--hdpf-promise-accent);
}

.hdpf-promise__item h3 {
  margin: 0;
  font-family: var(--hdpf-font-ui);
  font-size: var(--hdpf-fs-title);
  font-weight: var(--hdpf-fw-bold);
  letter-spacing: 0;
  color: var(--hdpf-page);
  text-transform: capitalize;
}

.hdpf-promise__item p {
  margin: 0;
  font-size: var(--hdpf-fs-caption);
  line-height: var(--hdpf-lh-relaxed);
  color: color-mix(in srgb, var(--hdpf-page) 78%, transparent);
}

/* ================================================================== *
 * Feature list (secondary "why" grid, used on service/about pages)
 * ================================================================== */

.hdpf-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--hdpf-space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@container layout-root (max-width: 40rem) {
  .hdpf-feature-list { grid-template-columns: 1fr; }
}

.hdpf-feature-list__item {
  padding: var(--hdpf-space-5);
  background: var(--hdpf-surface);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-lg);
  border-left: 3px solid var(--hdpf-accent);
}

.hdpf-feature-list__item h3 {
  margin: 0 0 var(--hdpf-space-2);
  font-family: var(--hdpf-font-ui);
  font-size: var(--hdpf-fs-title);
  font-weight: var(--hdpf-fw-bold);
  letter-spacing: 0;
  color: var(--hdpf-ink-strong);
}

.hdpf-feature-list__item p {
  margin: 0;
  color: var(--hdpf-ink-muted);
  line-height: var(--hdpf-lh-relaxed);
  font-size: var(--hdpf-fs-caption);
}

/* ================================================================== *
 * Steps path — numbered process cards
 * ================================================================== *
 *
 * Card chrome borrowed from the timeline's "cards" variant (surface, hairline
 * border, 3px accent top rule), with the step number moved out of the content
 * flow: it sits in the lower-right as an oversized, near-transparent numeral
 * bleeding off the card edge. That reads as a drafting sheet's plate number
 * rather than a badge competing with the step title for attention.
 *
 * Markup is unchanged from the old stepper:
 *   <ol class="hdpf-steps-path">
 *     <li class="hdpf-steps-path__item">
 *       <span class="hdpf-steps-path__num" aria-hidden="true"></span>
 *       <h3>…</h3><p>…</p>
 *     </li>
 *
 * The number comes from a CSS counter, so steps can be reordered without
 * renumbering. Put an icon inside __num to use that as the watermark instead.
 * It stays aria-hidden: the <ol> already conveys the sequence.
 */

.hdpf-steps-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--hdpf-space-4);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: path;
}

@container layout-root (max-width: 60rem) {
  .hdpf-steps-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container layout-root (max-width: 34rem) {
  .hdpf-steps-path { grid-template-columns: 1fr; }
}

.hdpf-steps-path__item {
  position: relative;
  overflow: hidden;
  /* Own stacking context, so the watermark can sit at z-index -1: behind the
   * card's content but still above the card's own background. */
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--hdpf-space-2);
  padding: var(--hdpf-space-5) var(--hdpf-space-5) var(--hdpf-space-8);
  background: var(--hdpf-surface);
  border: 1px solid var(--hdpf-border);
  border-top: 3px solid var(--hdpf-accent);
  border-radius: var(--hdpf-radius-lg);
  box-shadow: var(--hdpf-shadow-xs);
  counter-increment: path;
}

/* "STEP 01" eyebrow, top-left. Same counter as the watermark, so the label and
 * the mark can never disagree and steps stay reorderable. Generated content is
 * fine to expose here: it reads as "Step 01" ahead of the title, which is
 * accurate, and the <ol> carries the sequence regardless. */
.hdpf-steps-path__item::before {
  content: "Step " counter(path, decimal-leading-zero);
  font-family: var(--hdpf-font-mono);
  font-size: var(--hdpf-fs-micro);
  letter-spacing: var(--hdpf-tracking-wider);
  text-transform: uppercase;
  font-weight: var(--hdpf-fw-semibold);
  color: var(--hdpf-accent);
}

/* The watermark: a plate number tucked into the lower-right corner, sized to
 * register as a mark rather than a label. overflow: hidden on the item keeps
 * it inside the rounded edge. The compare cards use the same treatment in
 * their upper-right — keep the two in step if you retune either. */
.hdpf-steps-path__num {
  position: absolute;
  right: 0.19em;
  bottom: 0.1em;
  z-index: -1;
  font-family: var(--hdpf-font-display);
  font-size: 3rem;
  font-weight: var(--hdpf-fw-black);
  line-height: 1;
  letter-spacing: var(--hdpf-tracking-tight);
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--hdpf-accent) 14%, transparent);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.hdpf-steps-path__num::before {
  content: counter(path, decimal-leading-zero);
}

/* Icon watermark: drop an icon inside __num and it replaces the numeral. */
.hdpf-steps-path__num:has(.hdpf-icon)::before {
  content: none;
}

.hdpf-steps-path__num .hdpf-icon {
  display: block;
  width: 1em;
  height: 1em;
}

.hdpf-steps-path__item h3 {
  margin: 0;
  font-family: var(--hdpf-font-display);
  font-size: var(--hdpf-fs-headline);
  font-weight: var(--hdpf-fw-extrabold);
  letter-spacing: var(--hdpf-tracking-tight);
  color: var(--hdpf-ink-strong);
  text-transform: capitalize;
  text-wrap: balance;
}

.hdpf-steps-path__item p {
  margin: 0;
  color: var(--hdpf-ink-muted);
  line-height: var(--hdpf-lh-relaxed);
  font-size: var(--hdpf-fs-caption);
  text-wrap: pretty;
}

/* An icon watermark needs less room under the copy than a numeral does. */
.hdpf-steps-path__item:has(.hdpf-steps-path__num .hdpf-icon) {
  padding-bottom: var(--hdpf-space-7);
}

/* ================================================================== *
 * Proof — reviews carousel + trust footer
 * ================================================================== */

.hdpf-reviews {
  position: relative;
  max-width: 46rem;
  margin: var(--hdpf-space-8) auto 0;
}

.hdpf-reviews__viewport {
  display: grid;
}

/* Grid-stack so the viewport sizes to the tallest review and slides crossfade
 * in place (no fixed height needed). */
.hdpf-review {
  grid-area: 1 / 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hdpf-space-4);
  text-align: center;
  padding: var(--hdpf-space-8) var(--hdpf-space-7);
  background: var(--hdpf-surface);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-2xl);
  box-shadow: var(--hdpf-shadow-sm);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--hdpf-duration-slow) var(--hdpf-ease-standard),
    visibility 0s linear var(--hdpf-duration-slow);
}

.hdpf-review.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--hdpf-duration-slow) var(--hdpf-ease-standard);
}

.hdpf-review::before {
  content: "\201C";
  font-family: var(--hdpf-font-display);
  font-weight: var(--hdpf-fw-black);
  font-size: 3.5rem;
  line-height: 0.6;
  color: color-mix(in srgb, var(--hdpf-accent) 45%, transparent);
}

.hdpf-review__stars {
  display: inline-flex;
  gap: var(--hdpf-space-1);
  color: var(--hdpf-warning);
}

.hdpf-review__stars .hdpf-icon { fill: var(--hdpf-warning); }

.hdpf-review__text {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--hdpf-font-display);
  font-size: var(--hdpf-fs-headline);
  line-height: var(--hdpf-lh-snug);
  color: var(--hdpf-ink-strong);
  text-wrap: pretty;
}

.hdpf-review__meta {
  display: flex;
  flex-direction: column;
  gap: var(--hdpf-space-1);
}

.hdpf-review__author {
  font-weight: var(--hdpf-fw-bold);
  color: var(--hdpf-ink-strong);
}

.hdpf-review__sub {
  font-size: var(--hdpf-fs-caption);
  color: var(--hdpf-ink-muted);
  font-family: var(--hdpf-font-mono);
  letter-spacing: var(--hdpf-tracking-wide);
}

/* ---- Carousel controls: bottom bar + edge arrows ---- */
.hdpf-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hdpf-space-4);
  margin-top: var(--hdpf-space-6);
}

.hdpf-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: var(--hdpf-radius-pill);
  border: 1px solid var(--hdpf-border-strong);
  background: var(--hdpf-surface);
  color: var(--hdpf-ink-muted);
  cursor: pointer;
  box-shadow: var(--hdpf-shadow-xs);
  transition:
    color var(--hdpf-duration-fast) var(--hdpf-ease-standard),
    border-color var(--hdpf-duration-fast) var(--hdpf-ease-standard),
    background var(--hdpf-duration-fast) var(--hdpf-ease-standard);
}

.hdpf-carousel__arrow:hover {
  color: var(--hdpf-accent);
  border-color: var(--hdpf-accent);
  background: var(--hdpf-accent-soft);
}

/* Edge arrows overlay the card sides — enhancement on wide containers only,
 * where the centered card leaves a real gutter. Hidden by default. */
.hdpf-carousel__arrow--prev,
.hdpf-carousel__arrow--next {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
}

.hdpf-carousel__arrow--prev { left: -1.25rem; }
.hdpf-carousel__arrow--next { right: -1.25rem; }

@container layout-root (min-width: 62rem) {
  .hdpf-carousel__arrow--prev,
  .hdpf-carousel__arrow--next { display: inline-flex; }
  .hdpf-carousel__arrow--inline { display: none; }
}

/* ---- Trust footer ---- */
.hdpf-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hdpf-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hdpf-trust-strip--center {
  justify-content: center;
  margin-top: var(--hdpf-space-6);
}

.hdpf-proof__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--hdpf-space-4) var(--hdpf-space-6);
  max-width: 46rem;
  margin: var(--hdpf-space-8) auto 0;
  padding: var(--hdpf-space-5) var(--hdpf-space-6);
  background: var(--hdpf-surface-inset);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-xl);
}

.hdpf-proof__footer .hdpf-trust-strip {
  justify-content: center;
}

/* Divider between the trust pills and the Google actions */
.hdpf-proof__cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--hdpf-space-3) var(--hdpf-space-5);
  padding-top: var(--hdpf-space-4);
  border-top: 1px solid var(--hdpf-border);
  width: 100%;
  font-weight: var(--hdpf-fw-semibold);
}

.hdpf-proof__cta a {
  display: inline-flex;
  align-items: center;
  gap: var(--hdpf-space-2);
}

/* ================================================================== *
 * Service area + blueprint map plane
 * ================================================================== */

.hdpf-area {
  display: grid;
  gap: var(--hdpf-space-8);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@container layout-root (max-width: 52rem) {
  .hdpf-area { grid-template-columns: 1fr; }
}

.hdpf-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hdpf-space-2);
  margin: var(--hdpf-space-5) 0 0;
  padding: 0;
  list-style: none;
}

.hdpf-city-chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--hdpf-space-2);
  padding: var(--hdpf-space-2) var(--hdpf-space-4);
  border-radius: var(--hdpf-radius-pill);
  background: var(--hdpf-accent-soft);
  color: var(--hdpf-accent-strong);
  border: 1px solid color-mix(in srgb, var(--hdpf-accent) 18%, transparent);
  font-size: var(--hdpf-fs-caption);
  font-weight: var(--hdpf-fw-semibold);
}

.hdpf-city-chips li .hdpf-icon {
  color: var(--hdpf-accent);
}

/* Blueprint map plane with a pinned HQ. */
.hdpf-map-plane {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hdpf-border-strong);
  border-radius: var(--hdpf-radius-xl);
  overflow: hidden;
  background-color: var(--hdpf-surface-inset);
  background-image:
    linear-gradient(var(--hdpf-bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hdpf-bp-line) 1px, transparent 1px);
  background-size: var(--hdpf-bp-size) var(--hdpf-bp-size);
  box-shadow: var(--hdpf-shadow-md);
}

.hdpf-map-plane__pin {
  position: absolute;
  top: 52%;
  left: 44%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hdpf-space-1);
  transform: translate(-50%, -100%);
  color: var(--hdpf-accent);
  font-family: var(--hdpf-font-mono);
  font-size: var(--hdpf-fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--hdpf-tracking-wide);
  font-weight: var(--hdpf-fw-semibold);
}

.hdpf-map-plane__pin .hdpf-icon {
  width: 2rem;
  height: 2rem;
  filter: drop-shadow(0 2px 3px rgba(17, 20, 24, 0.25));
}

.hdpf-map-plane__pulse {
  position: absolute;
  top: 52%;
  left: 44%;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  border-radius: var(--hdpf-radius-pill);
  background: color-mix(in srgb, var(--hdpf-accent) 22%, transparent);
  animation: hdpf-pulse 2.6s var(--hdpf-ease-standard) infinite;
}

@keyframes hdpf-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
  70%  { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hdpf-map-plane__pulse { animation: none; }
}

/* Real Google Maps embed (same footprint as the blueprint plane). */
.hdpf-map-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hdpf-border-strong);
  border-radius: var(--hdpf-radius-xl);
  overflow: hidden;
  background: var(--hdpf-surface-inset);
  box-shadow: var(--hdpf-shadow-md);
}

.hdpf-map-embed__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact page map runs a little shorter/wider. */
.hdpf-map-embed--contact { aspect-ratio: 16 / 10; }

/* Dropped into a slot that already provides the frame (page-intro media plane,
 * split media): fill it and drop the duplicate border, radius, and shadow. */
.hdpf-map-embed--fill {
  aspect-ratio: auto;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Full-width band — the map as its own section spanning the content container.
 * A controlled height instead of the 4/3 box, which would stand ~56rem tall at
 * container width. Keeps the frame chrome (border, radius, shadow). */
.hdpf-map-embed--band {
  aspect-ratio: auto;
  height: clamp(22rem, 44vw, 32rem);
}

/* ---- City cards — the featured-market index ---------------------- *
 *
 * Replaced a grid of bordered boxes containing nothing but an underlined city
 * name. Only the text was clickable, the box added no information, and seven
 * identical name-plates gave a visitor no reason to pick one. Each card now
 * carries the city's own positioning line, its county, and the opening line of
 * that city's page — real, distinct content per card, and seven internal links
 * that arrive with context instead of naked anchor text.
 *
 * Sized so the layout never depends on how many cities are configured: auto-fit
 * tracks wrap, and a short last row simply left-aligns. The city list is edited
 * in config.php and has already changed once.
 */
.hdpf-city-cards {
  display: grid;
  gap: var(--hdpf-space-4);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  margin: var(--hdpf-space-6) 0 0;
  list-style: none;
  padding: 0;
}

/* The <li> is the grid item; the card is the link inside it. Making the item a
 * grid container stretches the card to the row height on its own, without the
 * card needing a percentage height to resolve against. */
.hdpf-city-cards > li {
  display: grid;
}

.hdpf-city-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--hdpf-space-2);
  height: 100%;
  padding: var(--hdpf-space-6);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-xl);
  background: var(--hdpf-surface);
  box-shadow: var(--hdpf-shadow-xs);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--hdpf-duration-normal) var(--hdpf-ease-standard),
    box-shadow var(--hdpf-duration-normal) var(--hdpf-ease-standard),
    transform var(--hdpf-duration-normal) var(--hdpf-ease-standard);
}

/* Blueprint ruling washed behind the card, fading out downward — the same
 * treatment the rail card and comparison headers use. */
.hdpf-city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--hdpf-bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hdpf-bp-line) 1px, transparent 1px);
  background-size: var(--hdpf-bp-size) var(--hdpf-bp-size);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 60%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 60%);
  pointer-events: none;
}

/* Accent rule along the top edge, drawn in on hover. scaleX from a left origin
 * so it reads as a line being ruled rather than a bar fading up. */
.hdpf-city-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--hdpf-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--hdpf-duration-slow) var(--hdpf-ease-standard);
}

.hdpf-city-card:hover {
  border-color: color-mix(in srgb, var(--hdpf-accent) 45%, var(--hdpf-border));
  box-shadow: var(--hdpf-shadow-md);
  transform: translateY(-3px);
}

.hdpf-city-card:hover::after,
.hdpf-city-card:focus-visible::after {
  transform: scaleX(1);
}

.hdpf-city-card:focus-visible {
  outline: 2px solid var(--hdpf-focus-outline);
  outline-offset: 3px;
}

.hdpf-city-card__eyebrow {
  font-family: var(--hdpf-font-mono);
  font-size: var(--hdpf-fs-micro);
  letter-spacing: var(--hdpf-tracking-wider);
  text-transform: uppercase;
  font-weight: var(--hdpf-fw-semibold);
  color: var(--hdpf-accent-strong);
}

.hdpf-city-card__name {
  font-family: var(--hdpf-font-display);
  font-size: var(--hdpf-fs-display-3);
  font-weight: var(--hdpf-fw-extrabold);
  line-height: var(--hdpf-lh-tight);
  letter-spacing: var(--hdpf-tracking-tight);
  color: var(--hdpf-ink-strong);
  text-wrap: balance;
}

/* The ", TX" is part of the link text for search and screen readers, but it
 * shouldn't compete with the city name visually. */
.hdpf-city-card__state {
  font-weight: var(--hdpf-fw-semibold);
  color: var(--hdpf-ink-muted);
}

.hdpf-city-card__county {
  display: inline-flex;
  align-items: center;
  gap: var(--hdpf-space-2);
  font-family: var(--hdpf-font-mono);
  font-size: var(--hdpf-fs-micro);
  letter-spacing: var(--hdpf-tracking-wide);
  text-transform: uppercase;
  color: var(--hdpf-ink-muted);
}

.hdpf-city-card__county .hdpf-icon {
  color: var(--hdpf-accent);
  flex-shrink: 0;
}

.hdpf-city-card__text {
  margin-top: var(--hdpf-space-2);
  font-size: var(--hdpf-fs-caption);
  line-height: var(--hdpf-lh-relaxed);
  color: var(--hdpf-ink-muted);
  text-wrap: pretty;
}

/* Pushed to the bottom edge so the link row lines up across cards of unequal
 * copy length. The dashed rule matches the rail card's meta divider; it spans
 * the full content width because a flex item stretches on the cross axis. */
.hdpf-city-card__link {
  display: flex;
  align-items: center;
  gap: var(--hdpf-space-2);
  margin-top: auto;
  padding-top: var(--hdpf-space-4);
  border-top: 1px dashed var(--hdpf-border-strong);
  font-size: var(--hdpf-fs-caption);
  font-weight: var(--hdpf-fw-semibold);
  color: var(--hdpf-accent);
  text-transform: capitalize;
}

.hdpf-city-card__link .hdpf-icon {
  transition: transform var(--hdpf-duration-fast) var(--hdpf-ease-standard);
}

.hdpf-city-card:hover .hdpf-city-card__link .hdpf-icon {
  transform: translateX(0.25rem);
}

/* Home base — the office city. Accent border and a permanently ruled top edge,
 * so it reads as the anchor of the set without changing size. */
.hdpf-city-card--home {
  border-color: color-mix(in srgb, var(--hdpf-accent) 35%, var(--hdpf-border));
}

.hdpf-city-card--home::after {
  transform: scaleX(1);
}

/* ---- Coverage panel — the cities beyond the featured set ---------- *
 *
 * The old version printed the same eight city names twice: once as a prose
 * sentence, once as chips directly beneath it. The chips are the list; the
 * paragraph now says something the list can't.
 */
.hdpf-coverage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--hdpf-space-8);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-xl);
  background: var(--hdpf-surface);
  box-shadow: var(--hdpf-shadow-sm);
}

.hdpf-coverage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--hdpf-bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hdpf-bp-line) 1px, transparent 1px);
  background-size: var(--hdpf-bp-size) var(--hdpf-bp-size);
  -webkit-mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.55), transparent 55%);
  mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.55), transparent 55%);
  pointer-events: none;
}

/* The head keeps a reading measure even though the chips run full width. */
.hdpf-coverage__head {
  max-width: 44rem;
}

.hdpf-coverage__head p {
  margin: var(--hdpf-space-3) 0 0;
  color: var(--hdpf-ink);
  line-height: var(--hdpf-lh-relaxed);
  text-wrap: pretty;
}

.hdpf-coverage__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hdpf-space-2) var(--hdpf-space-3);
  margin: var(--hdpf-space-6) 0 0;
  padding-top: var(--hdpf-space-5);
  border-top: 1px dashed var(--hdpf-border-strong);
  color: var(--hdpf-ink-muted);
  font-size: var(--hdpf-fs-caption);
}

@container layout-root (max-width: 46rem) {
  .hdpf-coverage { padding: var(--hdpf-space-6); }
}

.hdpf-city-list {
  margin: var(--hdpf-space-3) 0 0;
  color: var(--hdpf-ink-muted);
  line-height: var(--hdpf-lh-relaxed);
}

/* ================================================================== *
 * Pricing teaser
 * ================================================================== */

.hdpf-pricing-teaser {
  display: grid;
  gap: var(--hdpf-space-6);
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  padding: var(--hdpf-space-8);
  background: var(--hdpf-surface);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-xl);
  box-shadow: var(--hdpf-shadow-sm);
}

@container layout-root (max-width: 46rem) {
  .hdpf-pricing-teaser { grid-template-columns: 1fr; }
}

.hdpf-pricing-teaser__aside {
  display: flex;
  flex-direction: column;
  gap: var(--hdpf-space-3);
  padding: var(--hdpf-space-6);
  border-radius: var(--hdpf-radius-lg);
  background: var(--hdpf-accent-soft);
  border: 1px solid color-mix(in srgb, var(--hdpf-accent) 16%, transparent);
}

/* Accent text on an accent-tinted panel is the one place the dark accent runs
 * thin (3.9:1 — the tint lifts the background toward the text). --accent-strong
 * exists for exactly this; .hdpf-pill--accent and .hdpf-note__label already use
 * it. Light mode reads it as the deeper brand blue, which is also correct here. */
.hdpf-pricing-teaser__aside .hdpf-section__eyebrow {
  color: var(--hdpf-accent-strong);
}

.hdpf-pricing-teaser__aside .hdpf-section__eyebrow::before {
  background: var(--hdpf-accent-strong);
}

/* ================================================================== *
 * FAQ (service pages)
 * ================================================================== */

.hdpf-faq {
  margin-top: var(--hdpf-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--hdpf-space-3);
}

.hdpf-faq details {
  background: var(--hdpf-surface);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-md);
  padding: var(--hdpf-space-4) var(--hdpf-space-5);
}

.hdpf-faq summary {
  cursor: pointer;
  font-weight: var(--hdpf-fw-semibold);
  color: var(--hdpf-ink-strong);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hdpf-space-3);
}

.hdpf-faq summary::-webkit-details-marker { display: none; }

.hdpf-faq summary::after {
  content: "+";
  font-family: var(--hdpf-font-mono);
  color: var(--hdpf-accent);
  font-size: var(--hdpf-fs-title);
}

.hdpf-faq details[open] summary::after { content: "\2013"; }

.hdpf-faq details p {
  margin: var(--hdpf-space-3) 0 0;
  color: var(--hdpf-ink-muted);
  line-height: var(--hdpf-lh-relaxed);
}

/* ================================================================== *
 * Prose + family handoff
 * ================================================================== */

.hdpf-prose {
  max-width: 44rem;
}

.hdpf-prose h2 {
  margin: var(--hdpf-space-8) 0 var(--hdpf-space-3);
  font-family: var(--hdpf-font-display);
  font-size: var(--hdpf-fs-display-3);
  color: var(--hdpf-ink-strong);
  text-transform: capitalize;
}

.hdpf-prose h2:first-child { margin-top: 0; }

.hdpf-prose p,
.hdpf-prose ul {
  color: var(--hdpf-ink-muted);
  line-height: var(--hdpf-lh-relaxed);
}

.hdpf-prose ul { padding-left: 1.25rem; }

.hdpf-prose ul li strong {
  text-transform: capitalize;
}
  
.hdpf-handoff {
  margin-top: var(--hdpf-space-5);
  padding: var(--hdpf-space-5);
  border-left: 3px solid var(--hdpf-accent);
  background: var(--hdpf-accent-soft);
  border-radius: 0 var(--hdpf-radius-md) var(--hdpf-radius-md) 0;
}

.hdpf-handoff p {
  margin: 0;
  color: var(--hdpf-ink);
  line-height: var(--hdpf-lh-relaxed);
}

/* ================================================================== *
 * Contact
 * ================================================================== */

.hdpf-contact-grid {
  display: grid;
  gap: var(--hdpf-space-6);
  grid-template-columns: 1.1fr 1fr;
  margin-top: var(--hdpf-space-5);
}

@container layout-root (max-width: 46rem) {
  .hdpf-contact-grid { grid-template-columns: 1fr; }
}

.hdpf-contact-card {
  padding: var(--hdpf-space-6);
  background: var(--hdpf-surface);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-lg);
}

.hdpf-contact-card h2 {
  margin: 0 0 var(--hdpf-space-3);
  font-family: var(--hdpf-font-display);
  font-size: var(--hdpf-fs-headline);
  text-transform: capitalize;
}

.hdpf-contact-card p,
.hdpf-contact-card address {
  margin: 0 0 var(--hdpf-space-3);
  font-style: normal;
  color: var(--hdpf-ink-muted);
  line-height: var(--hdpf-lh-relaxed);
}

.hdpf-map-placeholder {
  min-height: 16rem;
  display: grid;
  place-items: center;
  background-color: var(--hdpf-surface-inset);
  background-image:
    linear-gradient(var(--hdpf-bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hdpf-bp-line) 1px, transparent 1px);
  background-size: var(--hdpf-bp-size) var(--hdpf-bp-size);
  border: 1px dashed var(--hdpf-border-strong);
  border-radius: var(--hdpf-radius-lg);
  color: var(--hdpf-ink-muted);
  text-align: center;
  padding: var(--hdpf-space-4);
  font-family: var(--hdpf-font-mono);
  font-size: var(--hdpf-fs-caption);
}

/* ================================================================== *
 * Form choice atoms (shared)
 * The multi-step form shell moved to hdpf-stepform.css; these choice-card
 * and review-list atoms stay here because the chooser + other surfaces reuse
 * them, and the stepform's `--tabs` skin only overrides them in-scope.
 * ================================================================== */

.hdpf-choice-grid { display: grid; gap: var(--hdpf-space-3); }

.hdpf-choice {
  display: flex;
  gap: var(--hdpf-space-3);
  align-items: flex-start;
  padding: var(--hdpf-space-4);
  border: 1px solid var(--hdpf-border-strong);
  border-radius: var(--hdpf-radius-md);
  cursor: pointer;
  background: var(--hdpf-surface);
  transition:
    border-color var(--hdpf-duration-fast) var(--hdpf-ease-standard),
    background var(--hdpf-duration-fast) var(--hdpf-ease-standard);
}

.hdpf-choice:hover { border-color: var(--hdpf-accent); }

.hdpf-choice:has(input:checked) {
  border-color: var(--hdpf-accent);
  background: var(--hdpf-accent-soft);
  box-shadow: var(--hdpf-shadow-ring-accent);
}

.hdpf-choice span { display: block; }

.hdpf-choice__label {
  font-weight: var(--hdpf-fw-semibold);
  color: var(--hdpf-ink-strong);
}

.hdpf-choice__desc {
  font-size: var(--hdpf-fs-caption);
  color: var(--hdpf-ink-muted);
  margin-top: var(--hdpf-space-1);
}

.hdpf-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hdpf-field--wide { max-width: none; }

.hdpf-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--hdpf-space-3);
}

.hdpf-review-list li {
  display: grid;
  gap: var(--hdpf-space-1);
  padding-bottom: var(--hdpf-space-3);
  border-bottom: 1px solid var(--hdpf-divider);
}

.hdpf-review-list strong {
  font-size: var(--hdpf-fs-micro);
  /* ink-muted, not ink-faint: these label the values a homeowner is about to
   * submit on the consult review step. ~3.2:1 on ink-faint, under WCAG AA. */
  color: var(--hdpf-ink-muted);
  text-transform: uppercase;
  letter-spacing: var(--hdpf-tracking-wide);
  font-family: var(--hdpf-font-mono);
  font-weight: var(--hdpf-fw-medium);
}

.hdpf-alert-slot { margin-bottom: var(--hdpf-space-4); }
.hdpf-alert-slot:empty { display: none; }

/* ================================================================== *
 * Utility pages (thank-you / 404)
 * ================================================================== */

.hdpf-utility {
  text-align: center;
  padding: var(--hdpf-space-11) var(--hdpf-space-4);
  max-width: 40rem;
  margin-inline: auto;
}

.hdpf-utility__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--hdpf-space-5);
  border-radius: var(--hdpf-radius-pill);
  background: var(--hdpf-accent-soft);
  color: var(--hdpf-accent);
}

.hdpf-utility h1 {
  font-family: var(--hdpf-font-display);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem);
  color: var(--hdpf-ink-strong);
  margin: 0 0 var(--hdpf-space-3);
}

.hdpf-utility p {
  color: var(--hdpf-ink-muted);
  line-height: var(--hdpf-lh-relaxed);
  font-size: var(--hdpf-fs-title);
}

.hdpf-utility__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hdpf-space-3);
  justify-content: center;
  margin-top: var(--hdpf-space-7);
}

/* ================================================================== *
 * Small layout helpers
 * ================================================================== */

.hdpf-stack-2 { margin-top: var(--hdpf-space-2); }
.hdpf-stack-3 { margin-top: var(--hdpf-space-3); }
.hdpf-stack-4 { margin-top: var(--hdpf-space-4); }
.hdpf-stack-5 { margin-top: var(--hdpf-space-5); }
.hdpf-stack-6 { margin-top: var(--hdpf-space-6); }
.hdpf-stack-7 { margin-top: var(--hdpf-space-7); }

.hdpf-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hdpf-space-3);
  margin-top: var(--hdpf-space-6);
}

.hdpf-actions-row--center { justify-content: center; }

.hdpf-city-chips--center { justify-content: center; }

/* .hdpf-about-lead and .hdpf-fact-list lived here. The About page was the only
 * consumer, and it now uses the standard article shell plus hdpf_article_rail()
 * — same at-a-glance facts, one component instead of a page-specific fork. */

/* Feature list with a leading accent icon in each item heading. */
.hdpf-feature-list--icons .hdpf-feature-list__item h3 {
  display: flex;
  align-items: center;
  gap: var(--hdpf-space-3);
}

.hdpf-feature-list--icons .hdpf-feature-list__item h3 .hdpf-icon {
  color: var(--hdpf-accent);
  flex-shrink: 0;
}

.hdpf-grid-gap { margin-top: var(--hdpf-space-7); }

.hdpf-consent-row { margin-top: var(--hdpf-space-4); }

.hdpf-lead-max { max-width: 44rem; }

/* Breadcrumbs — nested pages (service detail, pricing, city pages).
 * Sits directly under the header, above the page intro. */
.hdpf-breadcrumbs {
  padding-block: var(--hdpf-space-4) 0;
  font-size: var(--hdpf-fs-caption);
}

.hdpf-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hdpf-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hdpf-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--hdpf-space-2);
  color: var(--hdpf-ink-muted);
}

.hdpf-breadcrumbs__item a {
  color: var(--hdpf-ink-muted);
  text-decoration: none;
}

.hdpf-breadcrumbs__item a:hover {
  color: var(--hdpf-accent);
  text-decoration: underline;
}

.hdpf-breadcrumbs__item [aria-current="page"] {
  color: var(--hdpf-ink);
  font-weight: var(--hdpf-fw-medium);
}

.hdpf-breadcrumbs__sep {
  display: inline-flex;
  color: var(--hdpf-ink-faint);
}

/* Comparison table.
 *
 * Stays a real <table> on purpose: comparison tables are the single most-cited
 * format for AI answer engines, and the semantics (scope="col"/"row", caption)
 * are what make that legible to a crawler and to a screen reader. What changes
 * is the *presentation* — roomy and readable when there's width, and reflowed
 * into one labelled card per row when there isn't, so nothing ever has to
 * scroll sideways.
 *
 * Each <td> carries data-label="<column heading>", which the narrow layout
 * promotes into a visible label via ::before. Keep those in sync with <thead>.
 */
.hdpf-table-wrap {
  margin-block: var(--hdpf-space-6);
}

.hdpf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--hdpf-fs-body);
  line-height: var(--hdpf-lh-normal);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-xl);
  overflow: hidden;
}

.hdpf-table th,
.hdpf-table td {
  padding: var(--hdpf-space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hdpf-divider);
}

.hdpf-table thead th {
  background: var(--hdpf-surface-inset);
  color: var(--hdpf-ink-strong);
  font-family: var(--hdpf-font-mono);
  font-size: var(--hdpf-fs-micro);
  letter-spacing: var(--hdpf-tracking-wide);
  text-transform: uppercase;
  font-weight: var(--hdpf-fw-semibold);
  border-bottom: 1px solid var(--hdpf-border);
}

/* Row header — the thing being compared. Reads as the card title. */
.hdpf-table tbody th {
  color: var(--hdpf-ink-strong);
  font-family: var(--hdpf-font-display);
  font-size: var(--hdpf-fs-title);
  font-weight: var(--hdpf-fw-bold);
  line-height: var(--hdpf-lh-snug);
  letter-spacing: var(--hdpf-tracking-tight);
}

.hdpf-table tbody td {
  color: var(--hdpf-ink-muted);
}

.hdpf-table tbody tr:nth-child(even) th,
.hdpf-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--hdpf-surface-inset) 55%, transparent);
}

.hdpf-table tbody tr:last-child th,
.hdpf-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Reflow: one card per row, each cell labelled by its column heading. The
 * <thead> is hidden from sight but stays in the DOM for assistive tech and
 * crawlers. */
@container layout-root (max-width: 56rem) {
  .hdpf-table {
    border: 0;
    border-radius: 0;
    overflow: visible;
    display: grid;
    gap: var(--hdpf-space-4);
  }

  .hdpf-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .hdpf-table tbody,
  .hdpf-table tr {
    display: block;
  }

  .hdpf-table tr {
    border: 1px solid var(--hdpf-border);
    border-radius: var(--hdpf-radius-xl);
    background: var(--hdpf-surface);
    overflow: hidden;
  }

  .hdpf-table tbody th,
  .hdpf-table tbody td {
    display: block;
    border-bottom: 1px solid var(--hdpf-divider);
    background: none;
  }

  .hdpf-table tbody th {
    padding: var(--hdpf-space-4) var(--hdpf-space-5);
    background: var(--hdpf-surface-inset);
    font-size: var(--hdpf-fs-headline);
  }

  .hdpf-table tbody td {
    padding: var(--hdpf-space-4) var(--hdpf-space-5);
  }

  .hdpf-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--hdpf-space-1);
    font-family: var(--hdpf-font-mono);
    font-size: var(--hdpf-fs-micro);
    letter-spacing: var(--hdpf-tracking-wide);
    text-transform: uppercase;
    color: var(--hdpf-ink-muted);
  }

  .hdpf-table tbody tr > :last-child {
    border-bottom: 0;
  }
}

/* Freshness signal — AI answer engines weight recency, and a visible date is
 * useful to humans too. Value comes from the page file's mtime, never hand-typed. */
.hdpf-updated {
  margin-top: var(--hdpf-space-7);
  padding-top: var(--hdpf-space-4);
  border-top: 1px solid var(--hdpf-divider);
  font-size: var(--hdpf-fs-caption);
  /* ink-muted, not ink-faint: this is real content (a freshness signal both
   * readers and answer engines use), and ink-faint sits at ~2.9:1 on paper. */
  color: var(--hdpf-ink-muted);
}

/* Cited external references. Citing authoritative sources is one of the strongest
 * levers for getting cited back by AI answer engines. */
.hdpf-sources {
  margin-top: var(--hdpf-space-6);
  padding: var(--hdpf-space-5);
  background: var(--hdpf-surface-inset);
  border: 1px solid var(--hdpf-border);
  border-radius: var(--hdpf-radius-lg);
  font-size: var(--hdpf-fs-caption);
  color: var(--hdpf-ink-muted);
}

.hdpf-sources__title {
  margin: 0 0 var(--hdpf-space-3);
  font-family: var(--hdpf-font-ui);
  font-size: var(--hdpf-fs-caption);
  font-weight: var(--hdpf-fw-semibold);
  letter-spacing: var(--hdpf-tracking-wide);
  text-transform: uppercase;
  color: var(--hdpf-ink-muted);
}

.hdpf-sources ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: var(--hdpf-space-2);
}

.hdpf-prose .hdpf-sources ul li { margin: 0; }
