/* YLME refresh, December 2026. Layered on top of app-t013yK_h.css.
   Layout and colour only: no content is hidden except decorative graphics,
   the repeated keyword ticker and the duplicate hero enquiry card on local pages. */

/* ---------- 1. Cookie banner: same text, same two choices, smaller on phones ---------- */
@media (max-width: 899px) {
  div[style*="z-index: 1000"][style*="bottom: 0px"] { padding: 9px 14px 10px !important; box-shadow: 0 -2px 12px rgba(15,33,71,.08) !important; }
  div[style*="z-index: 1000"][style*="bottom: 0px"] > div > div { gap: 8px !important; }
  div[style*="z-index: 1000"][style*="bottom: 0px"] > div > div > div:first-child { flex-basis: 100% !important; }
  div[style*="z-index: 1000"][style*="bottom: 0px"] > div > div > div:first-child > div { display: inline !important; font-size: 12.5px !important; margin-right: 4px !important; }
  div[style*="z-index: 1000"][style*="bottom: 0px"] p { display: inline !important; font-size: 12px !important; line-height: 1.45 !important; margin: 0 !important; }
  div[style*="z-index: 1000"][style*="bottom: 0px"] p button,
  div[style*="z-index: 1000"][style*="bottom: 0px"] p a { font-size: 12px !important; }
  div[style*="z-index: 1000"][style*="bottom: 0px"] > div > div > div:last-child { width: 100% !important; flex-wrap: nowrap !important; }
  div[style*="z-index: 1000"][style*="bottom: 0px"] > div > div > div:last-child > button { flex: 1 1 0 !important; min-height: 44px !important; padding: 8px 12px !important; }
}

/* ---------- 2. Calmer surfaces ---------- */
.tickerbar, .hero-geo, .hero-lines { display: none !important; }
.hero-wrap, .loc-hero { background: #F7FAFD !important; border-bottom: 1px solid #E1E8F0 !important; }
.start-card, .svc-card-v2, .svc-wide, .loc-card, .calc-card, .guide-card, .trust-bar, .rev-card, .fc-card, .calc-promo { box-shadow: none !important; }
.start-card, .svc-card-v2, .svc-wide, .loc-card, .guide-card, .rev-card, .calc-promo { border-radius: 10px !important; }
.guide-card:hover, .svc-card-v2:hover, .svc-wide:hover { transform: none !important; box-shadow: none !important; }
.svc-ic, .trust-ic { background: none !important; box-shadow: none !important; }

/* ---------- 3. Homepage (phones): enquiry and call first, selector second ---------- */
@media (max-width: 640px) {
  .hero-wrap .hero-tail { order: 2 !important; }
  .hero-wrap .hero-card-col { order: 3 !important; margin-top: 6px !important; }
  .hero-wrap .hero-btn-primary { display: inline-flex !important; }
  .hero-wrap .hero-tail .cover-row { margin-bottom: 4px !important; }
}

/* ---------- 4. Local and service heroes: one enquiry action, not two ---------- */
.loc-hero:has(.hero-cta .btn-t) .hero-card-col:has(.start-go) { display: none !important; }
.loc-hero:has(.hero-cta .btn-t):has(.start-go) .loc-hero-inner { grid-template-columns: minmax(0, 1fr) !important; }
.loc-hero:has(.hero-cta .btn-t):has(.start-go) .loc-hero-copy { max-width: 760px !important; }

/* ---------- 5. Debt service page (phones): short risk summary before the first button ---------- */
@media (max-width: 899px) {
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .loc-hero-inner { display: flex !important; flex-direction: column !important; gap: 0 !important; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .loc-hero-copy,
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .hero-card-col,
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .hero-card-col .start-card { display: contents !important; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .loc-hero-copy > nav { order: 1; margin-bottom: 12px !important; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .loc-hero-copy > .slabel { order: 2; margin-bottom: 6px !important; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .hero-h1 { order: 3; margin-bottom: 12px !important; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .hero-sub { order: 4; margin-bottom: 12px !important; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .loc-warn-lede { order: 5; border-left: 3px solid #8A5300 !important; background: #FDF6EA !important; padding: 10px 12px !important; border-radius: 6px !important; margin: 0 0 14px !important; color: #042151 !important; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .hero-cta { order: 6; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .start-title { order: 7; margin-top: 22px !important; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .loc-card-points { order: 8; }
  main:has(.debt-help) .loc-hero:has(.loc-warn-lede) .start-note { order: 9; }
}

/* ---------- 6. Enquiry page: first question higher ---------- */
main section:has(+ section .wiz-grid):has(h1) { padding-top: clamp(84px, 9vw, 112px) !important; padding-bottom: 14px !important; }
main section:has(+ section .wiz-grid):has(h1) h1 { font-size: clamp(26px, 4vw, 40px) !important; margin-bottom: 8px !important; }
main section:has(+ section .wiz-grid):has(h1) p { font-size: 15px !important; line-height: 1.6 !important; }

/* ---------- 7. Location lists: plain text lists instead of pill clouds ---------- */
.area-wrap { gap: 2px 0 !important; }
.area-pill { border: 0 !important; background: none !important; box-shadow: none !important; padding: 2px 0 !important; font-size: 14px !important; color: #4A5C73 !important; font-weight: 400 !important; }
.area-pill:not(:last-child)::after { content: "\00B7"; margin: 0 9px; color: #9AA8B8; }
.area-links { gap: 4px 18px !important; }
.area-link { border: 0 !important; background: none !important; box-shadow: none !important; padding: 4px 0 !important; color: #00708A !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: #B9DCE6 !important; }
.area-link:hover { text-decoration-color: currentColor !important; }

/* ---------- 8. Footer: light, plain and readable ---------- */
footer[role="contentinfo"] { background: #F4F6F9 !important; color: #33475B !important; border-top: 1px solid #DDE4EC !important; }
footer[role="contentinfo"] img[src*="logo-white"] { filter: invert(1) hue-rotate(180deg); }
footer[role="contentinfo"] p,
footer[role="contentinfo"] div,
footer[role="contentinfo"] span { color: #4A5C73 !important; }
footer[role="contentinfo"] strong { color: #042151 !important; }
footer[role="contentinfo"] svg { stroke: #4A5C73 !important; }
footer[role="contentinfo"] .foot-col > div:first-child { color: #042151 !important; font-size: 12px !important; letter-spacing: .06em !important; margin-bottom: 10px !important; }
footer[role="contentinfo"] a.foot-link,
footer[role="contentinfo"] a.legal-link { color: #33475B !important; text-decoration: none !important; }
footer[role="contentinfo"] a.foot-link:hover,
footer[role="contentinfo"] a.legal-link:hover { color: #00708A !important; text-decoration: underline !important; }
footer[role="contentinfo"] a.foot-contact,
footer[role="contentinfo"] a.inline-link { color: #00708A !important; font-weight: 600; }
footer[role="contentinfo"] a[href*="share.google"] { background: none !important; border: 0 !important; padding: 0 !important; color: #00708A !important; text-decoration: underline !important; text-underline-offset: 3px; }
footer[role="contentinfo"] div[style*="height: 1px"] { background: #DDE4EC !important; }
footer[role="contentinfo"] div[style*="border-radius: 10px"] { background: #FFFFFF !important; border: 1px solid #DDE4EC !important; }
footer[role="contentinfo"] div[style*="border-radius: 10px"] p { font-size: 12px !important; color: #4A5C73 !important; }
/* Areas we cover: one compact, wrapped list (every link kept) */
footer[role="contentinfo"] .foot-col-wide { max-width: 380px; }
footer[role="contentinfo"] .foot-col-wide .foot-col-links { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; columns: auto !important; gap: 2px 0 !important; }
footer[role="contentinfo"] .foot-col-wide .foot-link { display: inline !important; padding: 3px 0 !important; margin: 0 !important; font-size: 13px !important; line-height: 1.7 !important; }
footer[role="contentinfo"] .foot-col-wide .foot-link:not(:last-child)::after { content: "\00B7"; margin: 0 7px; color: #9AA8B8; }
@media (max-width: 768px) {
  footer[role="contentinfo"] .footer-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px 20px !important; }
  footer[role="contentinfo"] .foot-col-wide { grid-column: 1 / -1; max-width: none; order: 3; }
  footer[role="contentinfo"] .foot-col-links a.foot-link { padding: 5px 0 !important; }
}
