/* DriveQuery v749 — ES/US visual parity with the shared country design system.
   This file intentionally changes presentation only; calculator/map behavior is untouched. */

/* 1) Shared page frame: all non-map tools use the same light feature-hero language
   as FI/SV/NO/EN/DE/FR/NL/DA. Charging-map heroes stay dark because that is already
   the shared map treatment across the other countries. */
main > section:first-child:not(.hero):not(.charging-map-hero) {
  padding: 62px 0 44px;
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%) !important;
  color: var(--ink) !important;
}
main > section:first-child:not(.hero):not(.charging-map-hero) h1,
main > section:first-child:not(.hero):not(.charging-map-hero) h2,
main > section:first-child:not(.hero):not(.charging-map-hero) h3,
main > section:first-child:not(.hero):not(.charging-map-hero) strong {
  color: var(--ink) !important;
}
main > section:first-child:not(.hero):not(.charging-map-hero) .lead,
main > section:first-child:not(.hero):not(.charging-map-hero) p:not(.eyebrow),
main > section:first-child:not(.hero):not(.charging-map-hero) small {
  color: var(--muted) !important;
}
main > section:first-child:not(.hero):not(.charging-map-hero) .breadcrumbs,
main > section:first-child:not(.hero):not(.charging-map-hero) .breadcrumbs a {
  color: var(--muted) !important;
}
main > section:first-child:not(.hero):not(.charging-map-hero) .eyebrow {
  background: #eaf0ff !important;
  color: var(--accent-dark) !important;
  border-color: transparent !important;
}
main > section:first-child:not(.hero):not(.charging-map-hero) .eyebrow::before {
  background: var(--accent) !important;
}

/* Hero helper cards used by the newer ES/US utilities should feel like the same
   white DriveQuery card used elsewhere, not a separate dark design language. */
:is(.brc-hero-card,.evi-hero-card,.thc-hero-card,.tou-hero-card,.tpp-hero-card,.tsd-hero-card,.ut-hero-card) {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
:is(.brc-hero-card,.evi-hero-card,.thc-hero-card,.tou-hero-card,.tpp-hero-card,.tsd-hero-card,.ut-hero-card) :is(span,small,p) {
  color: var(--muted) !important;
}
:is(.brc-hero-card,.evi-hero-card,.thc-hero-card,.tou-hero-card,.tpp-hero-card,.tsd-hero-card,.ut-hero-card) strong {
  color: var(--ink) !important;
}

/* 2) Homepages: preserve localized content, restore the shared hero/card proportions. */
.home-proof,
.us-home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.home-proof span,
.us-home-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.us-home-page .us-home-hero h1 {
  max-width: 780px;
}
.us-home-page .us-home-hero .lead {
  max-width: 680px;
}
.us-home-dashboard {
  transform: rotate(1deg);
}
.home-topic,
.home-summary,
.us-home-job-card,
.us-home-context-card,
.us-home-oauth-note,
.us-home-step,
.us-home-explore-card {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.home-topic,
.us-home-job-card,
.us-home-explore-card {
  padding: 26px !important;
}
.us-home-job-card {
  min-height: 0 !important;
}
.us-home-job-card > strong {
  max-width: none;
  margin: 13px 0 8px;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.us-home-job-card p {
  min-height: 0;
  margin: 0;
}
.us-home-context-card {
  padding: 26px !important;
}
.us-home-oauth-note,
.us-home-step {
  border-radius: 18px !important;
}
.us-home-explore-card {
  min-height: 0;
}
.us-home-explore-card strong {
  margin: 13px 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.us-home-explore-card small {
  margin-top: 0;
}
.home-topic,
.home-summary {
  box-shadow: none !important;
}
.us-home-pricing-band {
  border: 0 !important;
  border-radius: 28px !important;
  background: var(--ink) !important;
  color: #fff !important;
}
.us-home-pricing-band h2,
.us-home-pricing-band .eyebrow {
  color: #fff;
}
.us-home-pricing-band .eyebrow {
  background: rgba(255,255,255,.1);
}
.us-home-pricing-band .eyebrow::before {
  background: var(--fresh);
}
.us-home-pricing-band p:not(.eyebrow) {
  color: #bdc8da !important;
}

/* 3) Spain guide hub: keep the better IA but use the same card/heading rhythm as
   the other country guide hubs. */
.cluster-heading {
  display: block !important;
  max-width: 980px;
  margin-bottom: 34px !important;
}
.cluster-heading h2 {
  max-width: none !important;
  margin: 0 !important;
  font-size: clamp(2rem,4vw,3.5rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}
.cluster-heading > p {
  max-width: 740px !important;
  margin: 16px 0 0 !important;
  color: var(--muted);
  font-size: 1.05rem;
}
.hub-feature {
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}
.hub-guide-grid .guide-card {
  padding: 26px !important;
}
.hub-guide-grid .guide-card h3 {
  font-size: 1.5rem !important;
}

/* 4) US guide hub: remove the one-off dark editorial layout and bring it back to
   the same light guide-card system used in FR/DE/EN etc. */
.guides-hero-grid {
  display: block !important;
}
.guide-compass {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
  margin-top: 28px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.guide-compass .compass-label {
  grid-column: 1 / -1;
  margin: 0 0 -4px;
  color: var(--muted) !important;
  font-size: .78rem;
  letter-spacing: .04em;
}
.compass-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 13px;
  align-items: start;
  padding: 20px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  background: #fff;
}
.compass-row + .compass-row {
  border-top: 1px solid var(--line) !important;
}
.compass-icon {
  background: #eaf0ff !important;
  color: var(--accent) !important;
}
.compass-row small {
  color: var(--muted) !important;
}
.compass-row a {
  grid-column: 2;
  color: var(--accent-dark) !important;
  font-weight: 780;
}
.popular-grid {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 20px !important;
}
.popular-card {
  min-height: 0 !important;
  padding: 26px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: #fff !important;
}
.popular-card h3 {
  margin: 9px 0 8px;
  font-size: 1.5rem;
  letter-spacing: -.03em;
}
.popular-card p {
  color: var(--muted);
  font-size: 1rem;
}
.guide-section-head {
  display: block !important;
  max-width: 980px;
  margin-bottom: 34px !important;
}
.guide-section-head h2 {
  margin: 0;
  font-size: clamp(2rem,4vw,3.5rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}
.guide-section-head p {
  max-width: 740px !important;
  margin: 16px 0 0 !important;
  color: var(--muted);
  font-size: 1.05rem;
}
.guide-count {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf0ff;
  color: var(--accent-dark);
  letter-spacing: .04em;
}
.current-note {
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: #fff !important;
}
.hub-jump a {
  border-color: var(--line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

/* 5) Newer utility panels: normalize excessive one-off rounding/shadows while
   preserving the tool-specific information architecture and charts. */
:is(.ut-panel,.ut-result-panel,.tpp-panel,.home-charge-panel,.home-charge-result,.evi-panel,.evi-result,.tou-panel,.tou-result,.brc-panel,.brc-result,.tcc-panel,.tcc-result,.thc-panel,.thc-result,.tsd-panel,.tsd-result) {
  border-color: var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .guide-compass,
  .popular-grid { grid-template-columns: 1fr !important; }
  .us-home-dashboard { transform: none; }
}
@media (max-width: 720px) {
  .home-proof,
  .us-home-trust {
    align-items: stretch;
    flex-direction: column;
  }
  .home-proof span,
  .us-home-trust span {
    justify-content: center;
    text-align: center;
  }
  .compass-row { grid-template-columns: 42px minmax(0,1fr); }
}
