/* TamuBN v85.4.6 — site-wide surface contrast contract
   Rule: light surface = dark readable text; dark surface = light readable text.
   Loaded LAST on every entry point to prevent inherited foreground regressions. */
:root{
  --tamu-text-on-light:#17131d;
  --tamu-muted-on-light:#625968;
  --tamu-link-on-light:#5b21b6;
  --tamu-text-on-dark:#ffffff;
  --tamu-muted-on-dark:#ddd3e3;
}

/* --------------------------------------------------------------------------
   Base light canvas
   -------------------------------------------------------------------------- */
html,body,
.content-article-page,
.seo-commerce-page,
.workspace-body{
  color:var(--tamu-text-on-light)!important;
}

/* Known light surfaces across buyer, public content, Seller Studio and Admin. */
.header,.nav,.search,
.category,.feature,.shop-card,.shop-body,.seller-form,.about-panel,.modal,.tabs,
.explore-trigger,.quick-rail a:not(.sell),
.collection-empty,.horizontal-product button,.masonry-product,.masonry-product button,.masonry-meta,
.cube-directory-card,.cube-directory-card>button,
.seller-phone,.seller-roadmap article,
.support-grid article,.help-search,.help-topic-list button,.support-contact-strip,
.mission-grid article,.values-section article,.contact-card,
.sell-hero,.seller-steps span,.listing-preview,.seller-benefits article,
.cart-commerce-item,.checkout-block,.payment-method-panel,.order-success-modal,.success-reference,
.account-card,.account-side-nav,.profile-stats article,.notification-list article,.account-empty,
.buyer-order-card,.buyer-bubble,.buyer-message-box,
.workspace-topbar,.workspace-card,.workspace-stat,.workspace-row,.workspace-form,
.workspace-empty,.workspace-loading,.workspace-error,
.seller-orders-centre,.seller-orders-titlebar,.seller-order-card,.seller-order-body,
.portal-auth-panel,.portal-auth-card,.portal-auth-tabs,
.content-page-header,.content-article-shell,.content-related a,.academy-outcome,
.commercial-proof-strip article,.how-flow-grid article,
.social-vs-tamu>div:not(.recommended),
.support-category-grid button,.help-search-results,.help-result-grid a,
.contact-intent-grid>a,.contact-intent-grid>div,.about-principles b,
.payment-flow-grid article,.seo-sell-hero aside,
.seo-sell-compare article:not(:last-child),.seo-sell-steps article,
.seo-how-paths article,.seo-fee-cards article,.content-article-feedback,
.checkout-v85-contact,.checkout-v85-seller,.checkout-v85-bank,.checkout-v85-summary,
.seo-shop-hero,.seo-confidence,
.portal-auth-message{
  color:var(--tamu-text-on-light)!important;
}

/* Heading/form text on light surfaces must never inherit white from a dark ancestor. */
.header :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.nav :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.category :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.feature :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.shop-card :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seller-form :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.modal :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.cube-directory-card :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seller-phone :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seller-roadmap article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.support-grid article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.help-search :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.help-topic-list button :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.mission-grid article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.contact-card :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.listing-preview :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.cart-commerce-item :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.checkout-block :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.payment-method-panel :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.account-card :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.buyer-order-card :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.workspace-card :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.workspace-form :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seller-order-card :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.portal-auth-card :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.content-article-shell :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.commercial-proof-strip article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.how-flow-grid article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.social-vs-tamu>div:not(.recommended) :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.support-category-grid button :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.help-result-grid a :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.contact-intent-grid>a :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.contact-intent-grid>div :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.payment-flow-grid article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seo-sell-hero aside :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seo-sell-compare article:not(:last-child) :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seo-sell-steps article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seo-how-paths article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seo-fee-cards article :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.checkout-v85-contact :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.checkout-v85-seller :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.checkout-v85-summary :where(h1,h2,h3,h4,h5,h6,label,legend,summary),
.seo-shop-hero :where(h1,h2,h3,h4,h5,h6,label,legend,summary){
  color:var(--tamu-text-on-light)!important;
}

/* Inputs are light controls. Prevent white text / white placeholder combinations. */
.search input,
.seller-form input,.seller-form select,.seller-form textarea,
.modal input,.modal select,.modal textarea,
.contact-card input,.contact-card select,.contact-card textarea,
.account-form input,.account-form select,.account-form textarea,
.checkout-block input,.checkout-block select,.checkout-block textarea,
.workspace-form input,.workspace-form select,.workspace-form textarea,
.portal-auth-card input,.portal-auth-card select,.portal-auth-card textarea,
.help-search input,
.checkout-v85-contact input,.checkout-v85-contact select,.checkout-v85-contact textarea,
.checkout-v85-seller input,.checkout-v85-seller select,.checkout-v85-seller textarea{
  background:#fff!important;
  color:var(--tamu-text-on-light)!important;
  -webkit-text-fill-color:var(--tamu-text-on-light);
}
.search input::placeholder,
.seller-form input::placeholder,.seller-form textarea::placeholder,
.modal input::placeholder,.modal textarea::placeholder,
.contact-card input::placeholder,.contact-card textarea::placeholder,
.account-form input::placeholder,.account-form textarea::placeholder,
.checkout-block input::placeholder,.checkout-block textarea::placeholder,
.workspace-form input::placeholder,.workspace-form textarea::placeholder,
.portal-auth-card input::placeholder,.portal-auth-card textarea::placeholder,
.help-search input::placeholder,
.checkout-v85-contact input::placeholder,.checkout-v85-contact textarea::placeholder,
.checkout-v85-seller input::placeholder,.checkout-v85-seller textarea::placeholder{
  color:#82778a!important;
  opacity:1;
  -webkit-text-fill-color:#82778a;
}

/* --------------------------------------------------------------------------
   Dark surfaces — explicit inverse contract.
   -------------------------------------------------------------------------- */
.announcement,.hero,.commercial-hero,.visual-home,.nav-stage,.seller-callout,
footer,.tamu-footer,.cube-signature,.cube-directory-hero,.story-hero,
.marketplace-hero,.seller-public-hero,.support-hero,
.about-public-hero,.contact-public-hero,.privacy-public-hero,
.shop-explainer,.timeline-section,.homepage-sponsor-strip,
.checkout-hero,.cart-summary-card,.checkout-summary-sticky,.commercial-bank-box,
.growth-hero,.retention-hero,.commercial-plan-hero,.launch-hero,.campaign-hero,.v78-growth-hero,
.academy-do-now,.social-vs-tamu>div.recommended,
.seo-sell-compare article:last-child,.seo-sell-cta,.seo-fees-note,.payment-safety-callout,
.portal-auth-brand{
  color:var(--tamu-text-on-dark)!important;
}

.announcement :where(h1,h2,h3,h4,h5,h6),
.hero :where(h1,h2,h3,h4,h5,h6),
.commercial-hero :where(h1,h2,h3,h4,h5,h6),
.visual-home :where(h1,h2,h3,h4,h5,h6),
.nav-stage :where(h1,h2,h3,h4,h5,h6),
.seller-callout :where(h1,h2,h3,h4,h5,h6),
.tamu-footer :where(h1,h2,h3,h4,h5,h6),
.cube-signature :where(h1,h2,h3,h4,h5,h6),
.cube-directory-hero :where(h1,h2,h3,h4,h5,h6),
.story-hero :where(h1,h2,h3,h4,h5,h6),
.marketplace-hero :where(h1,h2,h3,h4,h5,h6),
.seller-public-hero :where(h1,h2,h3,h4,h5,h6),
.support-hero :where(h1,h2,h3,h4,h5,h6),
.about-public-hero :where(h1,h2,h3,h4,h5,h6),
.contact-public-hero :where(h1,h2,h3,h4,h5,h6),
.privacy-public-hero :where(h1,h2,h3,h4,h5,h6),
.shop-explainer :where(h1,h2,h3,h4,h5,h6),
.timeline-section :where(h1,h2,h3,h4,h5,h6),
.homepage-sponsor-strip :where(h1,h2,h3,h4,h5,h6),
.checkout-hero :where(h1,h2,h3,h4,h5,h6),
.cart-summary-card :where(h1,h2,h3,h4,h5,h6),
.checkout-summary-sticky :where(h1,h2,h3,h4,h5,h6),
.commercial-bank-box :where(h1,h2,h3,h4,h5,h6),
.growth-hero :where(h1,h2,h3,h4,h5,h6),
.retention-hero :where(h1,h2,h3,h4,h5,h6),
.commercial-plan-hero :where(h1,h2,h3,h4,h5,h6),
.launch-hero :where(h1,h2,h3,h4,h5,h6),
.campaign-hero :where(h1,h2,h3,h4,h5,h6),
.v78-growth-hero :where(h1,h2,h3,h4,h5,h6),
.academy-do-now :where(h1,h2,h3,h4,h5,h6),
.social-vs-tamu>div.recommended :where(h1,h2,h3,h4,h5,h6),
.seo-sell-compare article:last-child :where(h1,h2,h3,h4,h5,h6),
.seo-sell-cta :where(h1,h2,h3,h4,h5,h6),
.seo-fees-note :where(h1,h2,h3,h4,h5,h6),
.payment-safety-callout :where(h1,h2,h3,h4,h5,h6),
.portal-auth-brand :where(h1,h2,h3,h4,h5,h6){
  color:var(--tamu-text-on-dark)!important;
}

/* Light islands nested inside dark sections must switch back to dark text. */
.nav-stage .nav-tile.seller,
.seller-public-hero .seller-phone,
.support-hero .help-search,
.seo-sell-cta .button,
.commercial-hero .commercial-secondary{
  color:var(--tamu-text-on-light)!important;
}
.nav-stage .nav-tile.seller :where(h1,h2,h3,h4,h5,h6),
.seller-public-hero .seller-phone :where(h1,h2,h3,h4,h5,h6),
.support-hero .help-search :where(h1,h2,h3,h4,h5,h6){
  color:var(--tamu-text-on-light)!important;
}

/* --------------------------------------------------------------------------
   Mobile/PWA light surfaces
   -------------------------------------------------------------------------- */
.mobile-app,.mobile-shell,#mobileContent,
.v85-header,.v85-search-shell,.v85-search,
.mobile-search-suggestions,.mobile-search-suggestions button,
.v86-home-hero,.v86-home-hero-copy,
.v86-category-pills button:not(.active),.v86-section,.v86-shop-card,.v86-shop-cover,
.mobile-product-card,.mobile-masonry-card,.mobile-cube-card,.mobile-cube-item,
.mobile-profile-hero,.v85-logout,.mobile-review-order,.mobile-inline-action,
.mobile-product-sheet,.mobile-sheet-shop button,.mobile-sheet-actions,
.mobile-sheet-actions .secondary,.mobile-login-tabs,.mobile-login-tabs button,
.mobile-form,.mobile-drawer,
.v86-product-page,.v86-product-header,.v86-product-content,.v86-product-seller,
.v86-product-buybar,.v86-product-benefits,
.v8544-shop-card,.v8544-shop-mosaic{
  color:var(--tamu-text-on-light)!important;
}

.v86-home-hero-copy :where(h1,h2,h3,h4,h5,h6),
.v86-section :where(h1,h2,h3,h4,h5,h6),
.mobile-product-card :where(h1,h2,h3,h4,h5,h6),
.mobile-masonry-card :where(h1,h2,h3,h4,h5,h6),
.mobile-cube-card :where(h1,h2,h3,h4,h5,h6),
.mobile-profile-hero :where(h1,h2,h3,h4,h5,h6),
.mobile-product-sheet :where(h1,h2,h3,h4,h5,h6),
.mobile-form :where(h1,h2,h3,h4,h5,h6,label,legend),
.mobile-drawer :where(h1,h2,h3,h4,h5,h6,label,legend),
.v86-product-content :where(h1,h2,h3,h4,h5,h6),
.v86-product-benefits :where(h1,h2,h3,h4,h5,h6){
  color:var(--tamu-text-on-light)!important;
}

.mobile-search-suggestions input,
.mobile-form input,.mobile-form select,.mobile-form textarea,
.mobile-product-sheet input,.mobile-product-sheet select,.mobile-product-sheet textarea,
.mobile-drawer input,.mobile-drawer select,.mobile-drawer textarea{
  color:var(--tamu-text-on-light)!important;
  -webkit-text-fill-color:var(--tamu-text-on-light);
}
.mobile-search-suggestions input::placeholder,
.mobile-form input::placeholder,.mobile-form textarea::placeholder,
.mobile-product-sheet input::placeholder,.mobile-product-sheet textarea::placeholder,
.mobile-drawer input::placeholder,.mobile-drawer textarea::placeholder{
  color:#82778a!important;
  opacity:1;
  -webkit-text-fill-color:#82778a;
}

/* Explicit dark mobile controls keep white labels. */
.mobile-toast,.mobile-sponsored-label,
.v85-quick-links button.active,.mobile-chip-row button.active,
.v86-category-pills button.active,.v86-home-hero-copy button,
.v85-cart-checkout button,.v85-primary-link,.mobile-sheet-actions .buy,
.mobile-form button[type=submit],.v86-add-cart{
  color:#fff!important;
}
