/* HG-AWESOME-20261203: visual polish only. No content, URL, title, meta, H1 or link changes.
   Loaded last on every page via <link id="hg-awesome-link">. Delete the link (or this file) to undo. */

/* 1. Headings and text: no mid-word hyphens, balanced line breaks, no orphan last words */
html body h1, html body h2, html body h3, html body h4 {
  -webkit-hyphens: manual; hyphens: manual;
  text-wrap: balance;
}
html body p, html body li, html body td, html body th, html body dd, html body blockquote, html body figcaption,
html body .card, html body .feat-card, html body .review-type, html body .why-item {
  -webkit-hyphens: manual; hyphens: manual;
}
html body p, html body li { text-wrap: pretty; }

/* 2. Phone numbers, license and NPN strings never break across lines */
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

/* 3. Tighter top-of-page and divider gaps (the awkward empty bands) */
@media (min-width: 761px) {
  html body .container { padding-top: 16px; }
  html body .container > .meta-strip:first-child { margin-top: 0; }
}
html body .container > hr { margin-top: 28px; margin-bottom: 28px; }
@media (max-width: 760px) {
  html body .container > hr { margin-top: 18px; margin-bottom: 20px; }
}

/* 4. Calculator forms: inputs line up on one baseline even when labels wrap */
html body .calc-field { justify-content: flex-end; }
html body .hgt-in > label { display: flex; flex-direction: column; justify-content: flex-end; }

/* 5. Keyboard and screen-reader accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #c9922a; outline-offset: 2px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 6. Homepage: weekly-rate card fills its width, browse grid has no orphan tile */
html body div[style*="gap:10px 22px"] {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px !important;
}
html body div[style*="gap:10px 22px"] > div { min-width: 0 !important; }
@media (min-width: 700px) {
  html body div[style*="gap:10px 22px"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px !important; }
}
html body div[style*="border:1px solid #d9dde3"] > p { max-width: none !important; }
@media (min-width: 1000px) { html body .review-types { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 601px) and (max-width: 999px) { html body .review-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
