/* Shared public frontend design layer. Loaded after legacy page styles. */
body.frontend {
    --blue: #155bd7;
    --ink: #17243b;
    --muted: #596b82;
    --line: #e2e8f0;
    --ui-soft: #f5f8fc;
    --ui-radius: 16px;
    --ui-shadow: 0 4px 20px rgb(23 36 59 / 5%);
    color: var(--ink);
    background: #fff;
    font: 400 15px/1.65 'DM Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.frontend ::selection { background: #dbe9ff; color: #123b80; }
.frontend :where(h1, h2, h3, h4) { font-family: Manrope, sans-serif; text-wrap: balance; }
.frontend :where(img, video) { max-width: 100%; }
.frontend :where(button, input, select, textarea) { font-family: inherit; }
.frontend :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #3679e5; outline-offset: 3px; }
.frontend :where(button, a, summary) { -webkit-tap-highlight-color: transparent; }
.frontend :where(button, summary) { touch-action: manipulation; }
.frontend :where(button:disabled, input:disabled) { cursor: not-allowed; opacity: .65; }
.frontend :where(main section[id], main article[id]) { scroll-margin-top: 140px; }
.frontend .skip-link { position: fixed; top: 12px; left: 16px; z-index: 2000; padding: 10px 18px; border-radius: 10px; background: #17243b; color: white; transform: translateY(-180%); text-decoration: none; }
.frontend .skip-link:focus { transform: translateY(0); }
.frontend > main { min-height: 60vh; }
.frontend .container { width: 100%; max-width: 1240px; padding-inline: 28px; }

/* Navigation and search remain available at every viewport size. */
body.frontend > header { height: auto; display: block; position: relative; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.frontend > header .nav { min-height: 84px; height: auto; gap: 24px; flex-wrap: nowrap; padding-block: 14px; }
.frontend .brand { flex-shrink: 0; text-decoration: none; }
.frontend .brand-wordmark { display: grid; gap: 5px; font: 800 26px/1 Manrope, sans-serif; letter-spacing: -1px; }
.frontend .brand-wordmark small { font: 500 10px/1.4 'DM Sans', sans-serif; color: var(--muted); letter-spacing: 0; max-width: 180px; }
.frontend > header .searchbar { min-width: 0; gap: 10px; }
.frontend .header-location-picker { flex: 0 0 200px; min-width: 0; }
.frontend .header-location-picker .field { display: flex; align-items: center; gap: 8px; height: 48px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ui-soft); font-size: 13px; }
.frontend .header-query { min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--ui-soft); }
.frontend .header-query input { min-width: 0; height: 46px; padding: 0 50px 0 14px; font-size: 14px; background: transparent; border: 0; border-radius: 12px; }
.frontend .header-query input:focus { box-shadow: none; }
.frontend .header-query > button { flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px; background: var(--blue); }
.frontend .header-query:focus-within, .frontend .header-location-picker .field:focus-visible { border-color: #86adee; box-shadow: 0 0 0 3px #edf4ff; }
.frontend .header-location-menu, .frontend .user-menu-dropdown { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 48px #17243b24; }
.frontend .header-location-menu { max-height: min(480px, 65dvh); overflow-y: auto; }
.frontend .location-menu-item { min-height: 44px; }
.frontend > header :is(.account, .add) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; width: auto; white-space: nowrap; text-decoration: none; }
.frontend .site-navigation { border-top: 1px solid #f0f3f7; }
.frontend .site-navigation > div { display: flex; align-items: center; gap: 28px; min-height: 44px; }
.frontend .site-navigation a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.frontend .site-navigation a:hover, .frontend .site-navigation a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.frontend .site-navigation a svg { width: 16px; height: 16px; }
.frontend .site-navigation .navigation-note { margin-left: auto; color: var(--muted); font-size: 12px; }

/* Homepage hierarchy and breathing room. */
.frontend .hero { background: linear-gradient(110deg, #fff 30%, #f0f6ff); }
.frontend .hero .hero-main { min-height: 470px; gap: 48px; padding-block: 56px; }
.frontend .hero .hero-copy h1 { font-size: clamp(36px, 4vw, 54px); line-height: 1.13; letter-spacing: -2px; }
.frontend .hero-intro-copy > p { max-width: 510px; margin: 20px 0 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
.frontend .hero-eyebrow { font-size: 11px; line-height: 1.5; }
.frontend .hero-trust { flex-wrap: wrap; font-size: 11px; gap: 16px; }
.frontend .hero-stat > span { font-size: 10px; letter-spacing: .2px; }
.frontend .hero-stats { margin-top: 24px; }
.frontend .hero-floating-card small { font-size: 10px; }
.frontend .hero-floating-card b { font-size: 12px; }
.frontend .trend { gap: 9px; padding-bottom: 24px; font-size: 12px; }
.frontend .trend .tag { min-height: 34px; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; font-size: 12px; }
.frontend > main > .section { padding: 44px 0; border-bottom: 0; }
.frontend > main > .section + .section { border-top: 1px solid #edf1f6; }
.frontend > main > .section .section-title { align-items: baseline; gap: 20px; margin-bottom: 24px; }
.frontend > main > .section .section-title h2 { margin: 0; font-size: clamp(22px, 2vw, 27px); line-height: 1.35; letter-spacing: -.7px; }
.frontend .section-title .view { flex-shrink: 0; min-height: 36px; display: inline-flex; align-items: center; color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.frontend > main > .section .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 18px; }
.frontend > main > .section .cat-icon { height: 105px; border-radius: 14px; box-shadow: none; }
.frontend > main > .section .cat p { margin-top: 10px; font-size: 13px; line-height: 1.45; }
.frontend > main > .section .cards { gap: 22px; }
.frontend > main > .section .cards > .card { border-radius: var(--ui-radius); border-color: var(--line); box-shadow: var(--ui-shadow); }
.frontend > main > .section :is(.service, .nearby) { height: auto; min-height: 0; }
.frontend > main > .section .service > a:first-child { height: 175px; flex-basis: 175px; }
.frontend > main > .section .nearby > img { height: 175px; }
.frontend > main > .section .service > .detail { padding: 18px 18px 64px; }
.frontend > main > .section .nearby > .detail { padding: 18px; }
.frontend > main > .section .detail h3 { font-size: 17px; line-height: 1.4; }
.frontend > main > .section .detail :is(p, .type, .rating) { font-size: 12px; line-height: 1.65; }
.frontend > main > .section .detail .chip { font-size: 11px; }
.frontend .home-card-actions a { min-height: 44px; font-size: 12px; }
.frontend .emergency .emergency-card { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); padding: 18px 15px; }
.frontend .emergency-copy strong { font-size: 14px; }
.frontend .emergency-copy small { flex-wrap: wrap; font-size: 11px; }
.frontend .emergency-number small { font-size: 10px; }
.frontend .emergency-number b { font-size: 14px; }
.frontend .offer { min-height: 150px; height: auto; padding: 24px; border-radius: var(--ui-radius); }
.frontend .offer strong { font-size: 18px; }
.frontend .offer :is(p, small) { font-size: 13px; line-height: 1.6; }
.frontend .app-promotion-panel { border-radius: 24px; }
.frontend .home-blog-grid article { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
.frontend .home-blog-grid h3 { font-size: 18px; }
.frontend .home-blog-grid p { font-size: 14px; line-height: 1.7; }

/* Listings, business details, and readable content pages. */
.frontend .discovery-layout { padding-top: 32px; padding-bottom: 64px; gap: 28px; }
.frontend .discovery-filters { padding: 20px; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
.frontend .filter-title b { font-size: 16px; }
.frontend .filter-title a { font-size: 12px; }
.frontend .discovery-filters label { font-size: 13px; }
.frontend .discovery-filters select { height: 44px; font-size: 13px; border-radius: 9px; }
.frontend .discovery-filters form > button { height: 44px; font-size: 13px; border-radius: 9px; }
.frontend .results-head { font-size: 13px; flex-wrap: wrap; }
.frontend .results-head b { font-size: 19px; }
.frontend .service-grid { gap: 20px; }
.frontend .discovery-card { display: flex; flex-direction: column; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); transition: box-shadow .2s, border-color .2s; }
.frontend .business-image { height: 175px; }
.frontend .business-copy { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.frontend .business-copy h2 { font-size: 17px; line-height: 1.4; }
.frontend .business-copy > p { font-size: 12px; line-height: 1.6; }
.frontend .verified-dot { font-size: 11px; }
.frontend .rating-line { font-size: 12px; flex-wrap: wrap; }
.frontend .card-actions { padding-top: 16px; margin-top: auto; }
.frontend .card-actions a { min-height: 44px; font-size: 12px; border-radius: 9px; }
.frontend .card-actions .call-action { flex-basis: 44px; }
.frontend .business-image em { font-size: 11px; }
.frontend :is(.no-results, .blog-empty, .address-empty) { border: 1px solid var(--line); border-radius: 18px; padding: 48px 24px; background: var(--ui-soft); }
.frontend :is(.no-results, .address-empty) h2, .frontend .address-empty h3 { font-size: 20px; }
.frontend :is(.no-results, .address-empty) p, .frontend .muted-empty { font-size: 14px; line-height: 1.7; }
.frontend :is(.detail-card-v2, .contact-business-card, .company-content-card, .account-card, .account-sidebar, .account-stats > div) { border-color: var(--line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
.frontend .detail-card-v2 { padding: 24px; margin-bottom: 24px; }
.frontend .detail-card-v2 :is(h2, h3) { font-size: 20px; line-height: 1.4; }
.frontend .business-summary-card h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.25; overflow-wrap: anywhere; }
.frontend :is(.detail-breadcrumb, .detail-crumb, .article-breadcrumb) { flex-wrap: wrap; font-size: 12px; }
.frontend :is(.about-business-copy, .company-page-content) { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.frontend :is(.summary-meta p, .detail-review p, .detail-review > div, .hour-row, .location-address) { font-size: 13px; line-height: 1.7; }
.frontend :is(.verified-business, .business-tags a, .business-tags span, .detail-rating span, .reviews-card-title p) { font-size: 11px; }
.frontend .summary-meta { gap: 18px; }
.frontend .summary-actions { flex-wrap: wrap; }
.frontend :is(.share-business, .summary-actions .share-business) { width: 44px; height: 44px; flex-basis: 44px; }
.frontend .contact-business-card > a { min-height: 46px; border-radius: 10px; font-size: 13px; }
.frontend .contact-business-card > span { font-size: 11px; }
.frontend .company-nav > nav a { min-height: 48px; font-size: 13px; }
.frontend .company-help :is(p, a) { font-size: 12px; }
.frontend .company-hero-copy nav { font-size: 13px; }
.frontend .company-page-content :is(table, iframe), .frontend .article-content :is(table, iframe) { max-width: 100%; }
.frontend .company-page-content table { display: block; overflow-x: auto; }
.frontend .article-card p { font-size: 15px; }
.frontend .story-meta { font-size: 12px; }
.frontend .page-link { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-color: var(--line); font-size: 14px; }

/* Account forms, dialogs and shared interaction states. */
.frontend .account-dashboard { max-width: 1240px; padding: 32px 28px 60px; }
.frontend .account-hero h1 { font-size: 30px; }
.frontend .account-hero p { font-size: 14px; }
.frontend .account-sidebar a { min-height: 44px; font-size: 13px; }
.frontend .account-card { padding: 24px; }
.frontend .section-heading h2 { font-size: 20px; }
.frontend .section-heading p { font-size: 13px; line-height: 1.6; }
.frontend .account-card label { font-size: 13px; }
.frontend .account-card :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) { min-height: 46px; height: auto; padding: 10px 12px; font-size: 14px; border-radius: 9px; }
.frontend .account-card textarea { font-size: 14px; line-height: 1.65; border-radius: 9px; }
.frontend .account-card .field-note { font-size: 12px; line-height: 1.5; }
.frontend .account-stats small { font-size: 12px; }
.frontend .account-stats b { font-size: 23px; }
.frontend .address :is(p, small) { font-size: 13px; }
.frontend :is(.button, .outline, .modal-primary, .modal-google-login) { min-height: 44px; border-radius: 10px; font-size: 14px; }
.frontend dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; }
.frontend dialog::backdrop { background: rgb(15 28 49 / 55%); backdrop-filter: blur(3px); }
.frontend .auth-modal-body { padding: 28px; }
.frontend .auth-modal-head { min-height: 68px; height: auto; padding-block: 14px; gap: 16px; }
.frontend .auth-modal-head button { min-width: 44px; min-height: 44px; border-radius: 10px; }
.frontend .auth-error { font-size: 12px; }
.frontend :is(input, select, textarea)[aria-invalid="true"], .frontend .is-invalid { border-color: #c9364a; }
.frontend :is(input, textarea)::placeholder { color: #748298; opacity: 1; }
.frontend .dynamic-footer { margin-top: 24px; background: #f6f8fc; border-top: 1px solid var(--line); }
.frontend .dynamic-footer .foot { padding-top: 48px; padding-bottom: 36px; gap: 32px; }
.frontend .dynamic-footer :is(.footer-brand-column > p, .footer-contact, .footer-link-column li a) { font-size: 13px; line-height: 1.85; }
.frontend .dynamic-footer .footer-link-column h4 { font-size: 14px; margin-bottom: 16px; }
.frontend .dynamic-footer .footer-link-column li { margin-bottom: 8px; }
.frontend .dynamic-footer .footer-socials a { width: 40px; height: 40px; }
.frontend .dynamic-footer .copyright { font-size: 12px; line-height: 1.6; padding-block: 22px; }
.frontend-back-to-top { position: fixed; z-index: 44; right: 22px; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; background: #155bd7; border: 0; border-radius: 50%; box-shadow: 0 8px 24px #153b7852; cursor: pointer; transition: transform .18s, background .18s; }
.frontend-back-to-top[hidden] { display: none; }
.frontend-back-to-top:hover { background: #0d49b5; transform: translateY(-2px); }
.frontend-back-to-top:focus-visible { outline: 3px solid #9ec1fa; outline-offset: 3px; }
.frontend-back-to-top svg { width: 20px; height: 20px; }
@media (hover: hover) {
    .frontend .discovery-card:hover { border-color: #b8cdeb; box-shadow: 0 12px 28px #17243b12; }
    .frontend :is(.button, .modal-primary, .add):hover { filter: brightness(.95); }
    .frontend .footer-link-column a:hover { color: var(--blue); }
}
@media (max-width: 1100px) {
    .frontend > header .nav { gap: 16px; }
    .frontend .header-location-picker { flex-basis: 170px; }
    .frontend .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .frontend > main > .section .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .frontend .hero .hero-main { gap: 28px; grid-template-columns: 1.1fr .9fr; }
    .frontend .service-detail-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
}
@media (max-width: 850px) {
    .frontend > header .nav { flex-wrap: wrap; padding-block: 12px; gap: 12px; }
    .frontend > header .brand { margin-right: auto; }
    .frontend > header .searchbar { display: flex; order: 5; flex: 1 0 100%; width: 100%; }
    .frontend .header-query { flex: 1; }
    .frontend .site-navigation .navigation-note { display: none; }
    .frontend .hero .hero-main { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 40px; }
    .frontend .hero .hero-visual { display: block; width: min(100%, 560px); height: 300px; margin: 28px auto 0; }
    .frontend .hero .hero-card-rating { right: 8px; }
    .frontend .hero .hero-copy { max-width: 640px; }
    .frontend > main > .section .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .frontend .discovery-layout, .frontend .service-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .frontend .discovery-filters, .frontend .sticky-detail-stack { position: static; }
    .frontend .discovery-filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
    .frontend .discovery-filters form > button { grid-column: 1 / -1; }
    .frontend .account-sidebar { position: static !important; }
    .frontend .account-dashboard { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .frontend-back-to-top { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); }
    .frontend .hero .hero-visual { height: 230px; margin-top: 24px; }
    .frontend .hero .hero-photo-shape { right: 0; bottom: -18px; }
    .frontend .hero .hero-visual > img { border-width: 5px; border-radius: 42px 16px 42px 16px; }
    body.frontend { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .frontend .container { padding-inline: 18px; }
    body.frontend > header { height: auto !important; }
    body.frontend > header .container.nav { height: auto; min-height: 64px; padding: 12px 18px !important; gap: 12px; }
    .frontend > header .searchbar { display: flex !important; gap: 8px; }
    .frontend .header-location-picker { flex: 0 0 128px; }
    .frontend .header-location-picker .field { padding: 0 8px; font-size: 12px; }
    .frontend .header-location-picker .location > svg:first-child { width: 15px; flex-shrink: 0; }
    .frontend .header-location-picker .location-chevron { display: none; }
    .frontend .header-location-menu { width: min(360px, calc(100vw - 36px)); left: 0; }
    .frontend .header-query input { font-size: 16px; padding-left: 10px; padding-right: 48px; }
    .frontend > header .account { display: inline-flex !important; width: auto; margin-left: 0; padding: 8px 12px; }
    .frontend > header .add { display: none; }
    .frontend .site-navigation { display: none; }
    .frontend .hero .hero-intro-copy { display: block !important; }
    .frontend .hero .hero-main { padding: 32px 18px 22px !important; }
    .frontend .hero .hero-copy h1 { font-size: clamp(32px, 8.5vw, 40px) !important; line-height: 1.15 !important; letter-spacing: -1.4px !important; }
    .frontend .hero-intro-copy > p { font-size: 15px; line-height: 1.7; margin-top: 16px; }
    .frontend .hero-eyebrow { font-size: 10px; }
    .frontend .hero-trust { display: flex !important; flex-wrap: wrap; gap: 9px 14px !important; font-size: 10px !important; margin-top: 20px !important; }
    .frontend .hero-stat > span { font-size: 9px; line-height: 1.5; }
    .frontend .hero .trend { padding: 10px 18px 22px !important; }
    .frontend > main > .section { padding: 30px 0 !important; }
    .frontend > main > .section .container { padding-inline: 18px !important; }
    .frontend > main > .section .section-title { align-items: baseline; gap: 12px; margin-bottom: 18px !important; }
    .frontend > main > .section .section-title h2 { font-size: 22px; line-height: 1.35; }
    .frontend > main > .section .section-title .view { font-size: 12px; }
    .frontend > main > .section .cats { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 0; gap: 18px 12px !important; padding: 0 !important; overflow: visible !important; }
    .frontend > main > .section .cat { min-width: 0 !important; width: auto; }
    .frontend > main > .section .cat-icon { height: 82px !important; border-radius: 12px !important; }
    .frontend > main > .section .cat p { font-size: 12px !important; line-height: 1.4 !important; margin-top: 8px !important; }
    .frontend > main > .section :is(.service, .nearby) { min-height: 0; }
    .frontend > main > .section .service > a:first-child { height: 200px !important; flex-basis: 200px !important; }
    .frontend > main > .section .nearby > img { height: 190px !important; }
    .frontend .service-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .frontend .business-image { height: 210px; }
    .frontend .discovery-layout { padding-top: 22px; gap: 22px; }
    .frontend .discovery-filters { padding: 16px; }
    .frontend .discovery-intro h1 { font-size: 31px; line-height: 1.2; }
    .frontend .discovery-intro p { font-size: 14px; line-height: 1.7; }
    .frontend .discovery-category-strip a { min-height: 40px; font-size: 12px; }
    .frontend .discovery-filters select { font-size: 16px; }
    .frontend .detail-card-v2 { padding: 20px; }
    .frontend .summary-meta { grid-template-columns: minmax(0, 1fr); }
    .frontend .summary-heading { flex-wrap: wrap; }
    .frontend .summary-actions { margin-left: 0; }
    .frontend .account-dashboard { padding: 20px 18px 32px !important; }
    .frontend .account-card { padding: 20px 16px; }
    .frontend .account-sidebar nav a { min-height: 44px; font-size: 12px !important; }
    .frontend .account-card .grid { grid-template-columns: minmax(0, 1fr); }
    .frontend :is(.account-card, dialog) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 16px; }
    .frontend .auth-modal-body { padding: 22px; }
    .frontend .company-content-card { padding-inline: 20px; }
    .frontend .company-hero h1 { font-size: 34px; }
    .frontend .company-page-content { font-size: 15px; }
    .frontend .dynamic-footer .foot { padding-top: 32px; gap: 28px; }
    .frontend .mobile-bottom-nav { height: calc(70px + env(safe-area-inset-bottom)); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); z-index: 45; box-shadow: 0 -4px 20px #17243b0a; }
    .frontend .mobile-bottom-nav :is(a, button) { flex: 1; min-height: 48px; min-width: 0; justify-content: center; font-size: 10px; font-weight: 700; gap: 4px; color: #5d6e84; }
    .frontend .mobile-bottom-nav :is(i, svg) { width: 21px; height: 21px; }
    .frontend .mobile-bottom-nav .active, .frontend .mobile-bottom-nav .mobile-add { color: var(--blue); }
    .frontend .mobile-bottom-nav .mobile-add :is(i, svg) { margin-top: 0; width: 22px; height: 22px; padding: 0; border: 0; box-shadow: none; background: transparent; color: var(--blue); }
    .frontend .mobile-bottom-nav .mobile-add span { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .frontend *, .frontend *::before, .frontend *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Keep content-sized grid children from widening their page on small screens. */
.frontend :is(.company-layout, .company-content-card, .company-nav, .discovery-hero-panel, .discovery-category-slider, .discovery-intro, .detail-main-column, .detail-side-column) { min-width: 0; }
.frontend .company-nav > nav { max-width: 100%; }
.frontend > main > .section .offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; overflow: visible; }
.frontend > main > .section .offer { width: auto; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
    .frontend > main > .section .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .frontend .company-layout { grid-template-columns: minmax(0, 1fr); }
    .frontend .company-nav { width: 100%; position: static; }
    .frontend .company-nav > nav { overflow-x: auto; }
}
@media (max-width: 600px) {
    .frontend > main > .section .offers { grid-template-columns: minmax(0, 1fr); }
    .frontend .discovery-category-slider { width: 100%; margin-inline: 0; }
    .frontend .discovery-category-strip { min-width: 0; }
}
.frontend > main > .section .cards > .card { padding: 0; isolation: isolate; }
.frontend > main > .section .home-card-meta { font-size: 12px; line-height: 1.6; }
.frontend > main > .section .service .verified { font-size: 11px; }
.frontend .dynamic-footer .footer-brand img { width: auto; max-width: 130px; height: 44px; }
@media (max-width: 600px) {
    .frontend .account-stats { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
    .frontend .account-stats > div { flex-direction: row !important; padding: 14px !important; gap: 14px !important; text-align: left; }
    .frontend .account-stats b { font-size: 19px !important; }
    .frontend .account-stats small { font-size: 12px !important; line-height: 1.5; }
    .frontend .dynamic-footer .foot { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 20px; }
    .frontend .dynamic-footer .footer-brand-column { grid-column: 1 / -1; }
    .frontend .dynamic-footer .footer-link-column { grid-column: auto; min-width: 0; }
    .frontend .dynamic-footer .footer-link-column a { display: inline-block; padding-block: 5px; overflow-wrap: anywhere; }
}

.frontend .emergency-card .emergency-copy{color:inherit;text-decoration:none;flex:1;min-width:0}.frontend .emergency-card .emergency-copy:hover strong{text-decoration:underline}.frontend .emergency-card .emergency-number{text-decoration:none}.frontend .emergency-card a:focus-visible{outline:2px solid #155bd7;outline-offset:4px}

/* Keep mobile discovery controls readable and within the page gutters. */
@media (max-width: 767px) {
    .frontend .discovery-hero { padding: 14px 0 24px; }
    .frontend .discovery-hero .mobile-category-trigger {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        width: 100%; min-height: 44px; margin: 0 0 12px; padding: 10px 14px;
        box-sizing: border-box; border-radius: 10px; font-size: 13px;
    }
    .frontend .discovery-category-slider { display: block; margin: 0; }
    .frontend .discovery-category-slider .category-slider-button { display: none; }
    .frontend .discovery-category-slider .discovery-category-strip {
        display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 12px;
        width: 100%; overflow: visible; white-space: normal;
    }
    .frontend .discovery-category-strip a {
        min-height: 40px; padding: 9px 12px; font-size: 12px; max-width: 100%;
        box-sizing: border-box; overflow-wrap: anywhere;
    }
    .frontend .discovery-subcategory-strip {
        flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0;
        overflow: visible; white-space: normal;
    }
    .frontend .discovery-subcategory-strip a {
        display: inline-flex; align-items: center; min-height: 40px;
        padding: 9px 12px; font-size: 12px; box-sizing: border-box;
    }
    .frontend .discovery-hero-panel { padding: 22px 18px; border-radius: 16px; gap: 20px; }
    .frontend .discovery-intro h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.6px; margin: 12px 0; overflow-wrap: anywhere; }
    .frontend .discovery-intro h1 br { display: none; }
    .frontend .discovery-intro h1 em { display: block; margin-top: 4px; }
    .frontend .discovery-intro p { font-size: 14px; line-height: 1.65; }
    .frontend .discovery-trust { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
    .frontend .discovery-trust span { font-size: 11px; line-height: 1.5; }
}
