:root {
  --primary: #f8f6f1;
  --secondary: #c7c1b6;
  --muted: #aaa397;
  --accent: #d2b57d;
  --border: #514d46;
  scroll-padding-top: 7rem;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, system-ui, sans-serif;
}

:where(h1, h2, h3, h4, h5, h6),
.page-h1,
.section-title,
.cta-title,
.location-title,
.guide-hero h1,
.section h2,
.article-title,
.blog-hero h1,
.blog-card h2 {
  font-family: Inter, system-ui, sans-serif !important;
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.service-price {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.site-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.7rem 1rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: #f8f6f1;
  color: #0b0b0a;
  font:
    600 0.875rem/1.2 Inter,
    system-ui,
    sans-serif;
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
  transition: transform 160ms ease;
}

.site-skip-link:focus,
.site-skip-link:focus-visible {
  outline: 3px solid #c7a56a;
  outline-offset: 3px;
  transform: translateY(0);
}

#main-content:focus {
  outline: 3px solid #c7a56a;
  outline-offset: -3px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #c7a56a !important;
  outline-offset: 3px !important;
}

.site-shell-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav > .nav-right:not(.site-shell-links),
.nav > .nav-back {
  display: none;
}

.nav .site-shell-links {
  margin-left: auto;
}

.site-shell-links a,
.site-shell-footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--primary) !important;
}

.site-shell-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin: 1rem auto 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-shell-footer-nav a {
  color: var(--primary);
  text-decoration: none;
}

footer p,
.footer-copy,
.footer-tagline,
.guide-eyebrow,
.guide-meta,
.breadcrumb,
.breadcrumb a,
.article-meta,
.blog-card-read,
.question-block p:last-child,
.compare-header-label,
.compare-item-label,
.verdict-card.no .verdict-label {
  color: var(--muted) !important;
  opacity: 1 !important;
}

footer p > a {
  color: var(--primary) !important;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.callout a,
.highlight-box a {
  color: var(--primary) !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.warn-box p {
  color: #e1bd87 !important;
}

.highlight-box p {
  color: var(--secondary) !important;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 760px) {
  :root {
    scroll-padding-top: 5rem;
  }

  .site-shell-links {
    width: auto;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-end;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .nav:has(.site-shell-links) {
    flex-wrap: wrap;
  }

  .nav .site-shell-links {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .site-shell-links::-webkit-scrollbar {
    display: none;
  }

  .site-shell-links a {
    white-space: nowrap;
  }

  .site-shell-footer-nav {
    justify-content: flex-start;
  }

  .service-item {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 12px 16px !important;
  }

  .service-price {
    grid-column: 2;
    white-space: normal !important;
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .site-skip-link,
  :where(a, button, input, select, textarea, summary):focus-visible {
    outline-color: currentColor !important;
  }
}
