/* pg-design-20261202: Pallas Growth visual QA pass (contrast, tap targets, sticky-nav offsets, form field borders).
   CSS only. Loaded after /css/styles.css by the pg-design-20261202 plugin. Delete the plugin to roll back. */

/* Sticky header offset for in-page anchors (#get-offer, #join, FAQ links). Nav is ~68px tall. */
html{scroll-padding-top:88px}
[id]{scroll-margin-top:88px}

/* Header: near-opaque so the nav links keep full contrast and the hero blur no longer turns it grey. */
.glass-nav{background:hsla(60,14%,97%,.96)}

/* Dark surfaces: gold-tinted labels and links must be light, never the dark "on tertiary" brown. */
.bg-primary-container .text-on-tertiary-fixed:not([class*="bg-tertiary"]):not(.metallic-silk),
.bg-primary .text-on-tertiary-fixed:not([class*="bg-tertiary"]):not(.metallic-silk),
.bg-inverse-surface .text-on-tertiary-fixed:not([class*="bg-tertiary"]):not(.metallic-silk){color:#ffdea5}

/* Muted eyebrow labels (60% alpha grey) were 2.9:1 on light grey cards. Solid grey is 5:1+. */
.text-on-surface-variant\/40,.text-on-surface-variant\/50,.text-on-surface-variant\/60,.text-on-surface-variant\/70{color:#555b62}

/* Gold text on white/light cards (was 1.7:1): dark gold, 5.9:1. Stays light gold on dark surfaces. */
.text-tertiary-fixed-dim{color:#7a5800}
.bg-primary-container .text-tertiary-fixed-dim,.bg-primary .text-tertiary-fixed-dim,.bg-inverse-surface .text-tertiary-fixed-dim,
.bg-on-surface .text-tertiary-fixed-dim,[class*="from-black"] .text-tertiary-fixed-dim,.bg-black .text-tertiary-fixed-dim{color:#e9c176}

/* Light cards that sit inside a dark section keep the dark gold. */
.bg-surface-container-lowest .text-tertiary-fixed-dim,.bg-surface-container-low .text-tertiary-fixed-dim,.bg-surface-container .text-tertiary-fixed-dim,
.bg-surface-container-high .text-tertiary-fixed-dim,.bg-surface .text-tertiary-fixed-dim,.bg-white .text-tertiary-fixed-dim{color:#7a5800}
/* Pill links on dark cards (gold tint over navy): light text. */
.bg-primary-container a[class*="bg-tertiary-fixed/"],.bg-primary a[class*="bg-tertiary-fixed/"]{color:#ffdea5}
.bg-primary-container a[class*="bg-tertiary-fixed/"]:hover,.bg-primary a[class*="bg-tertiary-fixed/"]:hover{color:#fff}

/* Star ratings and small red figures. */
.text-amber-500{color:#b45309}
.bg-primary-container .text-amber-500,.bg-primary .text-amber-500,.bg-inverse-surface .text-amber-500{color:#fbbf24}
.text-red-600{color:#b91c1c}

/* Form fields: 1px #c4c6cc borders were 1.7:1 against white (UI controls need 3:1). */
.pallas-form{--pf-line:#80858c;--pf-line-strong:#44474c}

/* Hero copy sits on a photo: a soft shadow keeps it readable over the brightest part of the image. */
main > section:first-of-type h1.text-white,main > section:first-of-type p.text-white,main > section:first-of-type [class*="text-white"]{text-shadow:0 1px 14px rgba(0,0,0,.45)}

/* Marquee ticker: respect reduced-motion preference. */
@media (prefers-reduced-motion:reduce){.animate-marquee{animation:none}}

/* Mobile tap targets (44x44). */
@media (max-width:767px){
  #mobile-menu-btn,#mobile-cities-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  #mobile-cities-btn{display:flex;width:100%;justify-content:space-between}
  nav > div > a:first-child{display:inline-flex;align-items:center;min-height:44px}
  footer a:not([data-all-cities] a),footer summary{display:inline-flex;align-items:center;min-height:44px}
  footer [data-all-cities] summary{min-height:44px}
  main a:not(p a):not(li a):not(h1 a):not(h2 a):not(h3 a):not(h4 a):not(td a):not(dd a):not(summary a):not(.block):not(.flex):not(.grid):not(.inline-flex):not(:has(p,h1,h2,h3,h4,div,ul,img,picture,svg)){display:inline-flex;align-items:center;min-height:44px}
  main a.inline-block:not(p a):not(li a){min-height:44px;line-height:1.4}
  main li > a:only-child:not(.block):not(:has(p,h1,h2,h3,h4,div,ul,img,picture,svg)){display:inline-flex;align-items:center;min-height:44px}
  footer a:not([data-all-cities] a),main li > a:only-child{min-width:44px;justify-content:flex-start}
  main nav a,main ol li a{display:inline-flex;align-items:center;min-height:44px}
  /* Headings that wrap a single link (state cards): grow the hit area without moving the layout. */
  main h2 > a:only-child,main h3 > a:only-child,main h4 > a:only-child{display:inline-block;padding-block:12px;margin-block:-12px}
}
