/* Unpublished dark and silver brand system. Loaded last so it governs every page. */
@media screen {
  :root {
    --bg: #1D233B !important;
    --navy: #1D233B !important;
    --panel: #13151E !important;
    --panel2: #13151E !important;
    --text: #F4F4F2 !important;
    --white: #F4F4F2 !important;
    --muted: #9DA5B2 !important;
    --silver: #C7CBD2;
    --silver-bright: #EEF0F3;
    --silver-muted: #9DA5B2;
    --gold: #C8A860 !important;
    --gold-d: #C8A860 !important;
    --line: rgba(199, 203, 210, .14) !important;
    --lw: rgba(199, 203, 210, .14) !important;
    --lg: rgba(199, 203, 210, .22) !important;
    --rp-bg: #1D233B !important;
    --rp-panel: #13151E !important;
    --rp-panel2: #282A3E !important;
    --rp-text: #F4F4F2 !important;
    --rp-muted: #9DA5B2 !important;
    --rp-line: rgba(199, 203, 210, .14) !important;
    --rp-gold: #C8A860 !important;
  }

  html,
  body,
  .partner-page {
    background: #1D233B !important;
    color: #F4F4F2 !important;
  }

  .nav,
  .foot,
  .page-foot,
  .partner-foot,
  .calda-foot,
  .lang-modal,
  .lang-overlay {
    background: #13151E !important;
  }

  .hero,
  .sec--bg,
  .choice-section,
  .ally-story,
  .partner-hero,
  .partner-services,
  .services {
    background-color: #1D233B !important;
  }

  .sec--panel,
  .notice-strip,
  .notice,
  .trust,
  .trust-strip {
    background: #13151E !important;
  }

  .disc-strip {
    background: #282A3E !important;
    border-color: rgba(199, 203, 210, .14) !important;
  }

  .pcard,
  .service-card,
  .service-card.secondary,
  .tier-card,
  .price-card,
  .service-chip,
  .service-link,
  .note,
  .contact-card,
  .lang-modal__card,
  .lang-box,
  .btp-membership__intro,
  .btp-reason,
  .story-card,
  .reason,
  .service,
  .separate-box,
  .family-scope-disclaimer,
  .custom-note,
  .faq-item,
  .how-card,
  .trust__item {
    background: #13151E !important;
    border-color: rgba(199, 203, 210, .14) !important;
  }

  .service-chip,
  .price-card {
    color: #F4F4F2 !important;
  }

  .pmatrix td {
    color: #9DA5B2 !important;
    border-color: rgba(199, 203, 210, .14) !important;
  }

  .pmatrix td:first-child {
    color: #F4F4F2 !important;
  }

  .ally-story {
    color: #F4F4F2 !important;
  }

  .notice-strip .partner-wrap,
  .separate-box,
  .ally-story__reason span,
  .note,
  .note div,
  .note span,
  .can-box li,
  .cannot-box li {
    color: #9DA5B2 !important;
  }

  .separate-box b,
  .disc-strip b,
  .note b,
  .note strong,
  .tier-name,
  .contact-layout b,
  .faq-item summary {
    color: #F4F4F2 !important;
  }

  .nav__links a {
    color: #C7CBD2 !important;
  }

  .network-logo {
    border-color: rgba(199, 203, 210, .14) !important;
  }

  /* Borders and active states stay silver. Gold is not used as decoration. */
  .disclosure,
  .service-form-search__choices,
  .service-selection-router,
  .service-category,
  .catalog-subgroup {
    border-color: rgba(199, 203, 210, .18) !important;
    box-shadow: none !important;
  }

  .disclosure {
    background: #282A3E !important;
  }

  .directory-nav a,
  .catalog-boundary,
  .catalog-subgroup,
  .tier-note,
  .path,
  .ally-story__card,
  .ally-story__reason {
    background: #13151E !important;
    border-color: rgba(199, 203, 210, .14) !important;
  }

  .calda-pill {
    border-color: rgba(199, 203, 210, .55) !important;
  }

  .cannot-box {
    border-color: rgba(199, 203, 210, .14) !important;
    border-top-color: rgba(199, 203, 210, .55) !important;
  }

  .ally-story__mark {
    background: #282A3E !important;
  }

  .service-selection-router > a {
    background: #C7CBD2 !important;
    border-color: #C7CBD2 !important;
    color: #13151E !important;
    box-shadow: none !important;
  }

  .service-selection-router > a:hover,
  .service-selection-router > a:focus-visible {
    background: #EEF0F3 !important;
    border-color: #EEF0F3 !important;
    color: #13151E !important;
  }

  .service-form-search__choices a:hover,
  .service-form-search__choices a:focus-visible,
  .directory-nav a:hover,
  .directory-nav a:focus-visible,
  .resource-card:hover,
  .resource-card:focus-visible,
  .home-category-card:hover,
  .home-category-card:focus-within,
  .workflow-area-card:hover,
  .workflow-area-card:focus-within {
    border-color: #C7CBD2 !important;
    box-shadow: none !important;
  }

  .service-form-search-match {
    outline-color: #C7CBD2 !important;
    box-shadow: 0 0 0 4px rgba(199, 203, 210, .12) !important;
  }

  .service-category__count {
    border-color: rgba(199, 203, 210, .32) !important;
  }

  body,
  p,
  .hero__sub,
  .hero__note,
  .pcard__desc,
  .service-card p,
  .service p,
  .story p,
  .section-head p,
  .reason span,
  .trust span,
  .trust-item span,
  .partner-note,
  .foot__tag,
  .foot__disc,
  .foot__copy,
  .foot__legal a,
  .page-foot,
  .partner-foot,
  .disc-strip,
  .notice-strip,
  .notice .wrap {
    color: #9DA5B2 !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .hero__title,
  .partner-hero h1,
  .partner-section-head h2,
  .section-head h2,
  .sec__title {
    color: #F4F4F2 !important;
  }

  /* Headings use one deliberate color. Nested emphasis never splits a title. */
  h1 *,
  h2 *,
  h3 *,
  h4 *,
  h5 *,
  h6 * {
    color: inherit !important;
  }

  .btn--ghost,
  .btn--outline,
  .partner-btn,
  .lang-actions button,
  .lang,
  .lang-modal__btn:not(.lang-modal__btn--primary),
  .language,
  .partner-language,
  .calda-language {
    background: transparent !important;
    border-color: rgba(199, 203, 210, .55) !important;
    color: #C7CBD2 !important;
    box-shadow: none !important;
  }

  .btn--gold,
  .partner-btn.gold,
  .lang-modal__btn--primary,
  .lang-actions button:first-child,
  .button,
  .service-form-search__submit,
  .home-custom-service__action a,
  .skip-link {
    background: #C7CBD2 !important;
    border-color: #C7CBD2 !important;
    color: #13151E !important;
    box-shadow: none !important;
  }

  .button.secondary {
    background: transparent !important;
    border-color: rgba(199, 203, 210, .55) !important;
    color: #C7CBD2 !important;
  }

  .btn--gold:hover,
  .btn--gold:focus-visible,
  .partner-btn.gold:hover,
  .partner-btn.gold:focus-visible,
  .lang-modal__btn--primary:hover,
  .lang-modal__btn--primary:focus-visible,
  .lang-actions button:first-child:hover,
  .lang-actions button:first-child:focus-visible,
  .button:not(.secondary):hover,
  .button:not(.secondary):focus-visible,
  .service-form-search__submit:hover,
  .service-form-search__submit:focus-visible,
  .home-custom-service__action a:hover,
  .home-custom-service__action a:focus-visible,
  .skip-link:focus {
    background: #EEF0F3 !important;
    border-color: #EEF0F3 !important;
    color: #13151E !important;
  }

  .button.secondary:hover,
  .button.secondary:focus-visible {
    background: rgba(199, 203, 210, .08) !important;
    border-color: #C7CBD2 !important;
    color: #F4F4F2 !important;
  }

  .btn--ghost:hover,
  .btn--ghost:focus-visible,
  .btn--outline:hover,
  .btn--outline:focus-visible,
  .partner-btn:not(.gold):hover,
  .partner-btn:not(.gold):focus-visible,
  .lang:hover,
  .lang:focus-visible,
  .lang-modal__btn:not(.lang-modal__btn--primary):hover,
  .lang-modal__btn:not(.lang-modal__btn--primary):focus-visible,
  .language:hover,
  .language:focus-visible,
  .partner-language:hover,
  .partner-language:focus-visible,
  .calda-language:hover,
  .calda-language:focus-visible,
  .hero__jumplink:hover,
  .hero__jumplink:focus-visible,
  .service-link span:hover,
  .btp-service-card__cta:hover {
    background: rgba(199, 203, 210, .08) !important;
    border-color: #C7CBD2 !important;
    color: #F4F4F2 !important;
  }

  .nav__links a:hover,
  .nav__links a:focus-visible,
  .nav__links a.active,
  .foot__col a:hover,
  .foot__col a:focus-visible,
  .foot__legal a:hover,
  .foot__legal a:focus-visible,
  .custom-note__email,
  .faq-item__body a,
  .form-fallback a,
  .partner-section a:not(.partner-btn),
  .calda-foot a,
  .page-foot a,
  .partner-foot a,
  .foot a {
    color: #C7CBD2 !important;
  }

  /* Keep the filled silver navigation action readable over the general nav-link rule. */
  .nav__links a.btn--gold,
  .nav__links a.btn--gold:hover,
  .nav__links a.btn--gold:focus-visible,
  .nav__links a.btn--gold.active {
    color: #13151E !important;
  }

  .service-chip:hover,
  .service-chip:focus-visible,
  .price-card:hover,
  .price-card:focus-visible,
  .service-link:hover,
  .service-link:focus-visible,
  .tier-card:hover,
  .tier-card:focus-within,
  .pcard:hover,
  .pcard:focus-within,
  .service:hover,
  .service:focus-visible {
    background: #13151E !important;
    border-color: #C7CBD2 !important;
    box-shadow: none !important;
  }

  .tier:hover,
  .service-form-search__choices a:hover,
  .service-form-search__choices a:focus-visible,
  .directory-nav a:hover,
  .directory-nav a:focus-visible,
  .service-category > summary:hover,
  .service-category > summary:focus-visible,
  .catalog-subgroup > summary:hover,
  .catalog-subgroup > summary:focus-visible {
    background: rgba(199, 203, 210, .08) !important;
    border-color: #C7CBD2 !important;
    color: #C7CBD2 !important;
  }

  input,
  select,
  textarea {
    background: #13151E !important;
    border-color: rgba(199, 203, 210, .32) !important;
    color: #F4F4F2 !important;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: #C7CBD2 !important;
    box-shadow: 0 0 0 3px rgba(199, 203, 210, .12) !important;
  }

  .totop__ring,
  .nav__toggle,
  .foot__ci,
  .note__ic,
  .trust__ic:not(.trust__ic--badge):not(.trust__ic--county),
  .pipeline__arrow,
  .process__num,
  .step-detail__num,
  .tflow__n,
  .htrack__n,
  .path__badge {
    border-color: rgba(199, 203, 210, .55) !important;
    color: #C7CBD2 !important;
  }

  .tflow__step--tier .tflow__n,
  .step span {
    background: #C7CBD2 !important;
    border-color: #C7CBD2 !important;
    color: #13151E !important;
  }

  .htrack__n,
  .path__badge {
    background: rgba(199, 203, 210, .12) !important;
  }

  .service-category > summary::after,
  .catalog-subgroup > summary::after {
    border-right-color: #C7CBD2 !important;
    border-bottom-color: #C7CBD2 !important;
  }

  .choice::after,
  .contact-layout li > span:first-child {
    color: #C7CBD2 !important;
  }

  .choice:hover,
  .choice:focus-visible,
  .credential {
    border-color: rgba(199, 203, 210, .55) !important;
  }

  .incl li::before,
  .can-box li::before,
  .tier-card__items li::before,
  .trust .currency-glyph,
  .contact-card__ic,
  .upload-callout__ic,
  .pipeline__arrow,
  .process__num,
  .step-detail__num,
  .tflow__n,
  .htrack__n,
  .path__badge,
  .catalog-cta__arrow,
  .faq-group__title svg {
    color: #C7CBD2 !important;
  }

  .foot__ci svg,
  .foot__ci svg *,
  .note__ic svg,
  .note__ic svg *,
  .trust__ic:not(.trust__ic--badge):not(.trust__ic--county) svg,
  .trust__ic:not(.trust__ic--badge):not(.trust__ic--county) svg *,
  .contact-card__ic svg,
  .contact-card__ic svg *,
  .upload-callout__ic svg,
  .upload-callout__ic svg *,
  .nav__toggle svg,
  .nav__toggle svg *,
  .lang svg,
  .lang svg *,
  .partner-language svg,
  .partner-language svg *,
  .calda-language svg,
  .calda-language svg *,
  .hero__note svg,
  .hero__note svg *,
  .faq-group__title svg,
  .faq-group__title svg * {
    color: #C7CBD2 !important;
    stroke: currentColor !important;
  }

  /* Inline symbols default to silver. The two approved trust glyphs below are gold; credential image assets retain their official artwork. */
  body svg {
    color: #C7CBD2 !important;
  }

  body svg[stroke="var(--gold)"] {
    stroke: #C7CBD2 !important;
  }

  /* Owner-approved exception: only the flat-fee dollar and Not attorneys scales. */
  .trust .trust__ic--usd .currency-glyph,
  .trust .trust__ic.trust__ic--scales svg,
  .trust .trust__ic.trust__ic--scales svg * {
    color: var(--gold) !important;
  }

  .nav__ham span {
    background: #C7CBD2 !important;
  }

  .trust__ic,
  .contact-card__ic,
  .note__ic,
  .upload-callout__ic {
    background: rgba(199, 203, 210, .12) !important;
  }

  details.faq-item summary::after {
    background-color: rgba(199, 203, 210, .12) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23C7CBD2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  }

  .trust__ic--county,
  .trust__ic--badge {
    background: transparent !important;
    border-color: transparent !important;
  }

  .eyebrow,
  .sec__eyebrow,
  .partner-eyebrow,
  .service-label,
  .section-head small,
  .partner-pill,
  .calda-pill,
  .calda-eyebrow,
  .ally-story__kicker,
  .pcard__form,
  .tier-price,
  .tier-card__price,
  .price-card span,
  .price-col,
  .p-price,
  .service-detail__pricing strong,
  .trust__t,
  .trust-item b,
  .hero__consult a,
  .hero__anchor b,
  .hero__note .hl,
  .foot__col h4,
  .reason strong,
  .story-card strong,
  .service small,
  .service-link small {
    color: #C8A860 !important;
  }

  .service-link span,
  .btp-service-card__cta,
  .service > b,
  .service-link span:hover,
  .service-link span:focus-visible,
  .btp-service-card__cta:hover,
  .btp-service-card__cta:focus-visible {
    color: #C7CBD2 !important;
  }

  .hero__jumplink,
  .hero__jumplink--custom {
    color: #C7CBD2 !important;
    border-color: rgba(199, 203, 210, .55) !important;
    background: rgba(199, 203, 210, .05) !important;
    box-shadow: none !important;
  }

  .hero__jumplink::after {
    color: #C7CBD2 !important;
  }

  /* Brand identity, actions, and generic symbols are silver. Gold is reserved for sparse text emphasis and credential artwork. */
  .brand__name,
  .foot__brand-name,
  .lang-modal__brand,
  .partner-brand strong,
  body.second-saturday-referral-page .section-head small,
  .calda-brand strong,
  .brand strong {
    color: #C7CBD2 !important;
  }

  /* A referral-page brand label is identity, not promotional emphasis. */
  body[data-partner-slug]:not([data-partner-slug="la-web-design"]) .section-head .small {
    color: #C7CBD2 !important;
  }

  .brand__dotcom,
  .brand .dotcom,
  .partner-brand .dotcom,
  .calda-brand .dotcom,
  .foot__brand-name .dotcom {
    color: #9DA5B2 !important;
    display: inline !important;
    font-size: .62em !important;
    font-weight: 400 !important;
    margin: 0 0 0 2px !important;
  }

  .process__num,
  .step-detail__num {
    border-color: rgba(199, 203, 210, .55) !important;
    color: #C7CBD2 !important;
    background: #13151E !important;
  }

  .process::before,
  .tflow__step:not(:last-child)::after {
    background: rgba(199, 203, 210, .18) !important;
  }

  .sec__rule {
    display: none !important;
  }

  .form-fallback a {
    border-bottom: 0 !important;
  }

  body[data-partner-slug]:not([data-partner-slug="calda"]):not([data-partner-slug="by-the-people"]) .ally-story__mark,
  body[data-partner-slug]:not([data-partner-slug="calda"]):not([data-partner-slug="by-the-people"]) .ally-story__kicker {
    display: none !important;
  }

  body[data-partner-slug]:not([data-partner-slug="calda"]):not([data-partner-slug="by-the-people"]) .ally-story__identity {
    display: block !important;
    max-width: 780px !important;
    margin: 0 auto !important;
  }

  body[data-partner-slug]:not([data-partner-slug="calda"]):not([data-partner-slug="by-the-people"]) .ally-story__card {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body[data-partner-slug]:not([data-partner-slug="calda"]):not([data-partner-slug="by-the-people"]) .ally-story__reasons {
    display: none !important;
  }

  .partner-pill {
    max-width: 48ch !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: right !important;
  }

  @media (max-width: 820px) {
    .trust__in {
      padding: 0 16px !important;
    }

    .btn-row {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      align-items: stretch !important;
      width: 100% !important;
      row-gap: 14px !important;
      column-gap: 0 !important;
    }

    .btn-row > * {
      min-width: 0 !important;
      position: static !important;
      transform: none !important;
    }

    .btn-row > .btn,
    .btn-row > .btn-stack,
    .btn-row .btn {
      width: 100% !important;
      max-width: none !important;
      margin: 0 !important;
    }

    .btn-stack {
      width: 100% !important;
      max-width: none !important;
      align-items: stretch !important;
      gap: 8px !important;
    }

    .partner-actions {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      align-items: stretch !important;
      gap: 12px !important;
    }

    .partner-actions .partner-btn {
      width: 100% !important;
      min-width: 0 !important;
      margin: 0 !important;
    }

    .service-form-search__controls,
    .contact-layout,
    .upload-split {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    .service-form-search__submit {
      width: 100% !important;
    }

    .service-category > summary,
    .catalog-subgroup > summary {
      align-items: flex-start !important;
      flex-wrap: wrap !important;
      gap: 10px !important;
    }

    .service-category__count,
    .catalog-subgroup__count {
      max-width: 100% !important;
      white-space: normal !important;
    }

    .home-category-card__meta {
      align-items: flex-start !important;
      flex-direction: column !important;
    }

    .home-category-card__price {
      max-width: 100% !important;
      text-align: left !important;
    }

    .btn {
      min-width: 0 !important;
      white-space: normal !important;
      text-align: center !important;
      line-height: 1.3 !important;
    }

    .trust__item {
      display: grid !important;
      grid-template-columns: 58px minmax(0, 1fr) !important;
      align-items: start !important;
      gap: 18px !important;
      padding: 28px 24px !important;
      text-align: left !important;
    }

    .trust__item > * {
      min-width: 0 !important;
    }

    .trust__ic,
    .trust__ic--county {
      width: 52px !important;
      height: 52px !important;
      margin: 0 !important;
    }

    .trust__ic--badge {
      width: 58px !important;
      height: 58px !important;
    }

    .trust__ic--badge .calda-badge,
    .calda-wrap {
      width: 58px !important;
      height: 58px !important;
      margin: 0 !important;
    }

    .trust__t,
    .trust__d {
      text-align: left !important;
      overflow-wrap: normal !important;
      word-break: normal !important;
    }

    .partner-pill {
      text-align: left !important;
    }

    .partner-hero {
      padding-bottom: 32px !important;
    }

    .ally-story__card,
    .service-card {
      padding: 22px !important;
    }

    .choice-section {
      padding-top: 38px !important;
    }

    .foot__main {
      padding: 44px 0 30px !important;
    }

    .foot__grid {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 24px !important;
    }

    .foot__grid > *,
    .foot__col,
    .foot__ci > * {
      min-width: 0 !important;
      max-width: 100% !important;
    }

    .foot__grid > * {
      grid-column: auto !important;
      width: 100% !important;
    }

    .foot__brand,
    .foot__col,
    .foot__ci,
    .foot__hours {
      writing-mode: horizontal-tb !important;
      text-orientation: mixed !important;
      text-align: left !important;
    }

    .foot__col h4 {
      margin: 0 0 10px !important;
    }

    .foot__col a {
      min-height: 40px !important;
      padding: 6px 0 !important;
    }

    .foot__ci {
      display: grid !important;
      grid-template-columns: 18px minmax(0, 1fr) !important;
      align-items: start !important;
      gap: 10px !important;
      margin-bottom: 14px !important;
    }

    .foot__ci svg {
      width: 16px !important;
      height: 16px !important;
      margin-top: 5px !important;
    }

    .foot__ci a,
    .foot__ci span,
    .foot__hours {
      overflow-wrap: anywhere !important;
      line-height: 1.55 !important;
    }

    .foot__hours a {
      display: inline-flex !important;
      width: auto !important;
    }
  }

  @media (max-width: 380px) {
    .trust__item {
      grid-template-columns: 50px minmax(0, 1fr) !important;
      gap: 14px !important;
      padding: 24px 18px !important;
    }

    .trust__ic,
    .trust__ic--county {
      width: 46px !important;
      height: 46px !important;
    }

    .trust__ic--badge,
    .trust__ic--badge .calda-badge,
    .calda-wrap {
      width: 50px !important;
      height: 50px !important;
    }
  }

  .brand__by,
  .brand .byline,
  .partner-brand small,
  .foot__brand-sub {
    color: #9DA5B2 !important;
  }

  ::selection {
    background: #C7CBD2;
    color: #13151E;
  }

  :focus-visible {
    outline-color: #C7CBD2 !important;
  }
}
.notice-strip b {
  color: #f4f4f2 !important;
}

/* Keep referral-page contact links readable when long addresses wrap. */
.page-foot a {
  display: inline-block !important;
  max-width: 100% !important;
  margin-inline: .15rem !important;
  overflow-wrap: anywhere !important;
  vertical-align: top !important;
}

@media screen {
  .service-form-search .service-form-search__submit { background: #C8A860 !important; border-color: #C8A860 !important; color: #13151E !important; }
  .service-form-search .service-form-search__submit:hover { background: #dcc18a !important; }
  .family-scope-disclaimer .scope-highlight { color: #C8A860 !important; background: transparent !important; }
}

@media screen { .service-form-search__eyebrow { color: #C8A860 !important; } }

/* Solid surfaces and square information cards throughout the public site. */
@media screen {
  .pcard, .service-card, .tier-card, .price-card, .contact-card,
  .lang-modal__card, .story-card, .reason, .service, .note,
  .family-scope-disclaimer, .custom-note, .faq-item, .how-card,
  .htrack, .path, .upload-callout, .lda-disclosure,
  .home-category-card, .resource-card, .workflow-area-grid article,
  .service-category, .catalog-subgroup, .service-form-search {
    border-radius: 0 !important;
  }
  .calda-shine, .brandmark__shine, .herocog__shine,
  .totop__shine, .notemark__shine { display: none !important; }
  .process__step--full .process__num {
    background: #13151E !important;
    color: #C8A860 !important;
  }
}
