/* ALLHIR Round71 2.39.43 — premium dark text hierarchy.
 *
 * Long-form copy is warm off-white, supporting copy is muted greige and the
 * ALLHIR gold is reserved for headings, links, controls, icons and key values.
 * This file is intentionally loaded after every legacy design layer.
 */

:root {
  --ah-text-primary: #f2eee8;
  --ah-text-secondary: #b8b0a6;
  --ah-gold: #c9a45c;
  --ah-gold-strong: #ddbd78;
  --ah-gold-muted: #aa8749;
  --ah-gold-line: rgba(201, 164, 92, .48);
  --ah-gold-line-soft: rgba(201, 164, 92, .24);
  --ah-gold-glow: rgba(201, 164, 92, .14);
  --ah-copy: var(--ah-text-primary);
  --ah-copy-muted: var(--ah-text-secondary);
  --ah-canvas: #111111;
  --ah-surface: #151515;
  --ah-glass: linear-gradient(180deg, rgba(43, 43, 43, .64), rgba(21, 21, 21, .84));
  --ah-glass-strong: linear-gradient(180deg, rgba(35, 35, 35, .9), rgba(17, 17, 17, .96));
  --ah-glass-hover: linear-gradient(180deg, rgba(50, 50, 50, .86), rgba(25, 25, 25, .97));
  --ah-glass-soft: rgba(35, 35, 35, .56);
  --ah-input: rgba(17, 17, 17, .88);
}

html body:not(#allhir-never):not(#allhir-never-23943) {
  background-color: var(--ah-canvas) !important;
  color: var(--ah-text-primary) !important;
}

/* Primary reading colour: copy should no longer compete with gold accents. */
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  p,
  li,
  dd,
  .allhir-feed-card__text,
  .allhir-feed-card__text-body,
  .allhir-message-bubble,
  .allhir-r71-forum-empty,
  .allhir-community-empty,
  .allhir-account-empty,
  .allhir-r71-feed-end,
  .allhir-single-post__text,
  .allhir-single-listing__description > div,
  .allhir-composer-text
) {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
}

/* Supporting information, metadata and helper copy use one quieter tone. */
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  small,
  time,
  dt,
  figcaption,
  [class*="__meta"],
  [class*="__hint"],
  [class*="__caption"],
  [class*="__subtitle"],
  .allhir-account-muted,
  .allhir-hero2__text--muted,
  .allhir-home65-listing__excerpt,
  .allhir-useful-card__excerpt,
  .allhir-composer-rules-note,
  .allhir-listings-manage-note,
  .allhir-report-note,
  .allhir-payment-note,
  .allhir-contact-privacy-note,
  .allhir-publication-actions__status,
  .allhir-r71-draft-status,
  .allhir-report-status,
  .allhir-rating-locked,
  .allhir-listing-plan-note span,
  .allhir-thread-copy small,
  .allhir-thread-copy time
) {
  color: var(--ah-text-secondary) !important;
  -webkit-text-fill-color: var(--ah-text-secondary) !important;
}

/* Form values are readable copy; placeholders and non-interactive labels recede. */
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  textarea,
  select,
  option
) {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
  caret-color: var(--ah-gold) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) main option {
  background: var(--ah-surface) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) :is(
  .allhir-search input,
  .allhir-search input:focus
) {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
  caret-color: var(--ah-gold) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) :is(
  main input::placeholder,
  main textarea::placeholder,
  .allhir-search input::placeholder
) {
  color: var(--ah-text-secondary) !important;
  -webkit-text-fill-color: var(--ah-text-secondary) !important;
  opacity: .82 !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) main label > span:not([aria-hidden="true"]),
html body:not(#allhir-never):not(#allhir-never-23943) main .allhir-consent__label {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
}

/* Brand and action colour: deliberately narrow enough to keep paragraphs calm. */
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  a,
  button,
  input[type="submit"],
  input[type="button"],
  legend,
  summary,
  [role="button"],
  [class*="eyebrow"],
  .allhir-ui-icon,
  [class*="__icon"],
  [class*="-badge"],
  [class*="__badge"]
) {
  color: var(--ah-gold) !important;
  -webkit-text-fill-color: var(--ah-gold) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  .is-active,
  [aria-current="true"],
  [aria-selected="true"],
  [aria-pressed="true"]
) {
  color: var(--ah-gold-strong) !important;
  -webkit-text-fill-color: var(--ah-gold-strong) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  a,
  button,
  input[type="submit"],
  input[type="button"],
  summary,
  [role="button"]
):is(:hover, :focus-visible) {
  color: var(--ah-gold-strong) !important;
  -webkit-text-fill-color: var(--ah-gold-strong) !important;
}

/* Prices, counters and rating values remain deliberately prominent. */
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  .allhir-listing-card__price,
  .allhir-single-listing__header > strong,
  .allhir-price-grid article > span,
  .allhir-price-grid article > strong,
  .allhir-feature-price > strong,
  .allhir-publication-limit b,
  .allhir-people-results-count strong,
  .allhir-followers-count strong,
  .allhir-profile-rating b,
  .allhir-community-events-preview time b,
  .allhir-home-events time,
  .allhir-r71-camera-timer,
  .allhir-unread-badge,
  .allhir-r71-feed-badge
) {
  color: var(--ah-gold) !important;
  -webkit-text-fill-color: var(--ah-gold) !important;
}

/* Message bodies were one of the most visible long-copy gold residues. */
html body:not(#allhir-never):not(#allhir-never-23943) main .allhir-message-bubble:not(.has-attachment),
html body:not(#allhir-never):not(#allhir-never-23943) main .allhir-message-bubble.has-attachment > p,
html body:not(#allhir-never):not(#allhir-never-23943) main .allhir-r71-thread-posts article p {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
}

/* Launch, legal and profile cards contain older hard-coded beige values. */
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  .allhir-pricing-launch-card,
  .allhir-launch-mode-card,
  .allhir-not-found-card,
  .allhir-public-profile-card,
  .allhir-profile-connections
) {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  .allhir-pricing-launch-card,
  .allhir-launch-mode-card,
  .allhir-not-found-card,
  .allhir-public-profile-card,
  .allhir-profile-connections
) p {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
}

/* Header: brand/actions stay gold; explanatory identity text becomes secondary. */
html body:not(#allhir-never):not(#allhir-never-23943) :is(
  .site-title,
  .mobile-site-title,
  .sidebar-brand,
  .desktop-menu a,
  .mobile-menu-list a,
  .lang-btn,
  .lang-btn--mobile,
  .allhir-location-btn,
  .allhir-location-btn--mobile,
  .allhir-icon-link,
  .hamburger-menu,
  .mobile-profile,
  .allhir-account-dropdown a,
  .allhir-account-dropdown__title
) {
  color: var(--ah-gold) !important;
  -webkit-text-fill-color: var(--ah-gold) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) :is(
  .site-tagline,
  .mobile-site-tagline
) {
  color: var(--ah-text-secondary) !important;
  -webkit-text-fill-color: var(--ah-text-secondary) !important;
}

/* Footer mirrors the same hierarchy instead of reverting to cold white/grey. */
html body:not(#allhir-never):not(#allhir-never-23943) .site-footer {
  background: linear-gradient(180deg, var(--ah-surface), var(--ah-canvas)) !important;
  color: var(--ah-text-primary) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) .site-footer :is(
  .allhir-footer-logo,
  .allhir-footer-nav strong,
  .allhir-footer-nav a,
  .allhir-footer-bottom a,
  .allhir-footer-cookie-button
) {
  color: var(--ah-gold) !important;
  -webkit-text-fill-color: var(--ah-gold) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) .site-footer :is(
  .allhir-footer-brand p,
  .allhir-footer-bottom
) {
  color: var(--ah-text-secondary) !important;
  -webkit-text-fill-color: var(--ah-text-secondary) !important;
}

/* Cookie notice and camera studio live outside main, so they need explicit tokens. */
html body:not(#allhir-never):not(#allhir-never-23943) .allhir-cookie-banner {
  color: var(--ah-text-primary) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) .allhir-cookie-banner__inner {
  border-color: var(--ah-gold-line) !important;
  background: linear-gradient(135deg, rgba(44, 44, 44, .97), rgba(21, 21, 21, .99) 64%, rgba(17, 17, 17, .995)) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) .allhir-cookie-banner__copy p {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) :is(
  .allhir-cookie-banner__copy small,
  .allhir-r71-camera-filters__head small
) {
  color: var(--ah-text-secondary) !important;
  -webkit-text-fill-color: var(--ah-text-secondary) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) :is(
  .allhir-cookie-banner__copy > span,
  .allhir-cookie-banner__copy h2,
  .allhir-cookie-banner__copy a,
  .allhir-cookie-banner__actions button,
  .allhir-cookie-banner__close,
  .allhir-r71-camera-filters__head strong,
  .allhir-r71-camera-filter-list button
) {
  color: var(--ah-gold) !important;
  -webkit-text-fill-color: var(--ah-gold) !important;
}

/* The comments sheet is mounted outside main on some templates. */
html body:not(#allhir-never):not(#allhir-never-23943) .allhir-r71-comment p {
  color: var(--ah-text-primary) !important;
  -webkit-text-fill-color: var(--ah-text-primary) !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) :is(
  .allhir-r71-comments__sheet small,
  .allhir-r71-comments__sheet time,
  .allhir-r71-comment-form__context
) {
  color: var(--ah-text-secondary) !important;
  -webkit-text-fill-color: var(--ah-text-secondary) !important;
}

/* Preserve semantic feedback colours rather than turning errors/success gold. */
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  .allhir-profile-notice--error,
  .allhir-message--error,
  .allhir-report-status.is-error
),
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  .allhir-profile-notice--error,
  .allhir-message--error,
  .allhir-report-status.is-error
) :is(p, span, strong, b, small, a) {
  color: #efb0a8 !important;
  -webkit-text-fill-color: #efb0a8 !important;
}

html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  .allhir-profile-notice--success,
  .allhir-message--success,
  .allhir-report-status.is-success
),
html body:not(#allhir-never):not(#allhir-never-23943) main :is(
  .allhir-profile-notice--success,
  .allhir-message--success,
  .allhir-report-status.is-success
) :is(p, span, strong, b, small, a) {
  color: #b8d9bf !important;
  -webkit-text-fill-color: #b8d9bf !important;
}

@media (forced-colors: active) {
  html body:not(#allhir-never):not(#allhir-never-23943) main :is(a, button, input, textarea, select, summary) {
    -webkit-text-fill-color: currentColor !important;
  }
}
