/* One text palette for the public site. Admin keeps its own theme. */
html.tt-home,
html.public-error {
    --public-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --public-heading: #0f2a44;
    --public-text: #344256;
    --public-muted: #5b6670;
    --public-link: #00719e;
    --public-link-hover: #00577a;
    --public-rating: #996300;
    --public-badge: #6b5a00;
    --public-on-dark: #ffffff;
    --public-on-dark-muted: #c4d2df;
    --public-current-heading: var(--public-heading);
    --public-current-text: var(--public-text);
    --public-current-muted: var(--public-muted);
    --c-text: var(--public-text);
    --c-text-secondary: var(--public-text);
    --c-text-muted: var(--public-muted);
    --c-primary-light: var(--public-link);
}

/* Match the existing important font declaration in the shared legacy stylesheet. */
html.tt-home,
html.tt-home body,
html.tt-home .tt-page {
    font-family: var(--public-font) !important;
}

html.tt-home :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea, summary, .brand-name) {
    font-family: var(--public-font);
}

html.tt-home .content-area .form-control:not(:disabled),
html.tt-home .tt-field :is(input, select, textarea):not(:disabled),
html.tt-home .tt-finder-select,
html.tt-home #chat-input:not(:disabled) { color: var(--public-text); }

html.tt-home .content-area .form-control::placeholder,
html.tt-home .tt-field :is(input, textarea)::placeholder,
html.tt-home #chat-input::placeholder {
    color: var(--public-muted);
    opacity: 1;
}

html.tt-home .tt-page {
    --tt-heading: var(--public-heading);
    --tt-ink-2: var(--public-muted);
    color: var(--public-text);
}

html.tt-home .content-area :where(p, li, blockquote) { color: var(--public-current-text); }
html.tt-home .content-area :is(h1, h2, h3, h4, h5, h6) { color: var(--public-current-heading); }

html.tt-home .content-area :is(
    .tt-sub, .tt-section-sub, .tt-cat-sub, .tt-review-meta, .tt-quote cite,
    .tt-bigcard-body p, .tt-svc-desc, .tt-spec > p, .tt-feature span, .tt-term span,
    .tt-price-guide p, .tt-svc-more p, .tt-stat span, .gal-section-desc, .gal-group-count,
    .home-request-note, .home-text-option,
    .booking-photo-note, .booking-photo-status, .booking-photo-label span
) { color: var(--public-current-muted); }

html.tt-home .content-area :is(.tt-review-name, .tt-cat-label, .tt-svc-title, .tt-svc-price,
    .tt-feature strong, .tt-term strong, .booking-photo-title) { color: var(--public-current-heading); }

html.tt-home .content-area a:not([class]),
html.tt-home .content-area :is(.tt-link-arrow, .tt-back, .tt-bigcard-cta, .tt-spec-cta,
    .tt-svc-cta, .tt-spec-note a, .tt-cats-note a, .tt-svc-more summary, .tt-spotlight-label) {
    color: var(--public-link);
}

html.tt-home .content-area :is(.tt-link-arrow, .tt-back, .tt-bigcard-cta, .tt-svc-cta,
    .tt-spec-note a, .tt-cats-note a, .tt-svc-more summary):hover {
    color: var(--public-link-hover);
}

html.tt-home .brand-tag { color: var(--public-muted); }
html.tt-home .brand-name span { color: var(--public-link); }
/* Navigation and this upload label already have important legacy colours. */
html.tt-home .navbar .nav-links a:not(.nav-cta) { color: var(--public-heading) !important; }
html.tt-home .navbar .nav-links a:not(.nav-cta):is(.active, :hover) { color: var(--public-link) !important; }
html.tt-home .navbar .nav-links a.nav-cta:hover { background: var(--public-link-hover) !important; color: var(--public-on-dark) !important; }
html.tt-home .booking-photo-label { color: var(--public-heading) !important; }
html.tt-home .booking-photo-picker:not(:disabled) { color: var(--public-heading); }
html.tt-home .booking-photo-picker:not(:disabled):hover { color: var(--public-link); }
html.tt-home .content-area .wizard-step:not(.active):not(.done) :is(span, .wizard-step-circle) { color: var(--public-muted); }
html.tt-home .tt-btn:is(.tt-btn-yellow, .tt-btn-ghost) { color: var(--public-heading); }
html.tt-home .content-area :is(.tt-review-stars, .tt-review-stars i, .tt-quote-stars) { color: var(--public-rating); }
html.tt-home .content-area :is(.tt-eyebrow, .tt-bio-role) { color: var(--public-badge); }
html.tt-home .content-area.public-inner .tt-pagehead .tt-eyebrow { color: var(--public-link); }

html.tt-home :is(.tt-cta, .tt-about-cta, .site-footer) {
    --public-current-heading: var(--public-on-dark);
    --public-current-text: var(--public-on-dark-muted);
    --public-current-muted: var(--public-on-dark-muted);
}


/* Leave white button labels, image overlays, disabled controls and status colours distinct. */
html.tt-home .gal-section-title a { color: var(--public-heading); }
html.tt-home .gal-section-title a:hover { color: var(--public-link); }
html.tt-home .content-area .home-proof a { color: var(--public-current-text); }
html.tt-home .content-area .home-proof a:hover { color: var(--public-current-heading); }
html.tt-home .home-proof .bi-star-fill { color: var(--public-rating); }

/* The photo/gradient protects inverse hero copy at every viewport width. */
html.tt-home .tt-hero--home {
    --public-current-heading: var(--public-on-dark);
    --public-current-text: var(--public-on-dark);
    --public-current-muted: var(--public-on-dark-muted);
}
html.tt-home .tt-hero--home .home-proof .bi-star-fill { color: #ffd400; }


html.public-error body { font-family: var(--public-font); }
html.public-error .error-code { color: var(--public-heading); }
html.public-error .error-msg { color: var(--public-muted); }
html.public-error .error-back { background: var(--public-heading); color: var(--public-on-dark); }
html.public-error .error-back:hover { background: var(--public-link-hover); }
