/* NOT DEPLOYED. Public DOM based presentation candidate, 2026-09-06.
 * Requires a server-managed body.tm-brand-v4 marker and audited enqueue order.
 * The disabled-by-default companion candidate owns the marker/enqueue hooks.
 * Existing theme, article content, card data, links and scripts remain owners.
 * The retrieved tz-brand 1.6.2 source confirms wp_head:99 legacy CSS.
 * Its operational hooks remain active. The cascade still requires staging QA.
 */
body.tm-brand-v4 {
  --tm-brand-orange: #E09915;
  --tm-bg-dark: #151515;
  --tm-text: #242424;
  --tm-link: #874900;
  --tm-action-text: #171717;
  --tm-surface: #FFFFFF;
  --tm-bg: #F5F5F4;
  --tm-muted: #626262;
  --tm-border: #DEDEDB;
  --tm-action-hover: #CE890F;
  --tm-action-border: #A66500;
  --tm-focus: #A45B00;
  --tm-focus-dark: #F2B547;
  --tm-soft: #FFF5E3;
  background: var(--tm-bg) !important;
  color: var(--tm-text) !important;
}

/* Current WordPress shell. Keep original logo, menu DOM and menu behavior. */
body.tm-brand-v4 #site-header,
body.tm-brand-v4 .site-footer,
body.tm-brand-v4 .tz-foot {
  background: var(--tm-bg-dark) !important;
  color: #FFFFFF !important;
  border-color: #444444 !important;
}
body.tm-brand-v4 #site-header :is(a,p),
body.tm-brand-v4 .site-footer :is(a,p,li),
body.tm-brand-v4 .tz-foot :is(a,p,li) { color: #FFFFFF !important; }
body.tm-brand-v4 #site-header .site-header-logo img {
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
/* The live img src already points to the original orange bottle logo. Legacy
 * tz-brand CSS replaces it with brand-logo-crown.png through content:url().
 * Restore the existing img source only on opted-in routes; do not alter pixels,
 * the media record, the source URL or the original 3:1 proportions. */
html body.tm-brand-v4 #site-header .site-header-logo a img {
  content: normal !important;
}
body.tm-brand-v4 #global-nav a[aria-current],
body.tm-brand-v4 .vk-mobile-nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: .4em;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--tm-brand-orange);
}
body.tm-brand-v4 .vk-mobile-nav {
  background: var(--tm-surface) !important;
  color: var(--tm-text) !important;
}
body.tm-brand-v4 .vk-mobile-nav a { color: var(--tm-text) !important; }
body.tm-brand-v4 .vk-mobile-nav-menu-btn {
  background-color: var(--tm-surface) !important;
  min-width: 44px;
  min-height: 44px;
}

/* Preserve existing Hero content/images. Desktop image text requires a later,
 * audited template change to reproduce the demo's live-text Hero completely. */
body.tm-brand-v4 .tz-hero {
  background: radial-gradient(ellipse at 80% 38%, #E0991512, transparent 62%), var(--tm-bg-dark) !important;
  color: #FFFFFF !important;
  border-color: #444444 !important;
}
body.tm-brand-v4 .tz-hero :is(.tz-h1m,.tz-leadm,.tz-hstatsm,.tz-hf2) { color: #FFFFFF !important; }
body.tm-brand-v4 .tz-hero .tz-badge2m { color: var(--tm-brand-orange) !important; }
body.tm-brand-v4 :is(.tz-sec,.tmt-nav,.tz-tabwrap,.tz-tabpanels) {
  background: var(--tm-bg) !important;
  color: var(--tm-text) !important;
  border-color: var(--tm-border) !important;
}
body.tm-brand-v4 :is(.tz-g,.tz-read,.tmt-pick) {
  background: var(--tm-surface) !important;
  color: var(--tm-text) !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: 12px;
  box-shadow: 0 10px 35px #0000000D;
  min-width: 0;
}
body.tm-brand-v4 :is(.tz-h2,.tz-gh,.tmt-h,.tmt-name) { color: var(--tm-text) !important; }
body.tm-brand-v4 :is(.tz-sub,.tz-gp,.tmt-note,.tmt-meta) { color: var(--tm-muted) !important; }

/* Existing API-backed product outputs; preserve card classes and data-* used
 * by affiliate_click listeners. No data snapshot or replacement link builder. */
body.tm-brand-v4 :is(.tmbb-card,.tr-card,.tr-pick,.tr-amz-card) {
  background: var(--tm-surface) !important;
  color: var(--tm-text) !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: 12px;
  box-shadow: 0 10px 35px #0000000D;
  min-width: 0;
}
body.tm-brand-v4 .tmbb-card--1 { border-top: 3px solid var(--tm-brand-orange) !important; }
body.tm-brand-v4 :is(.tmbb-imgwrap,.tr-card__imgwrap,.tr-pick__imgwrap) { background: #FFFFFF !important; }
body.tm-brand-v4 :is(.tmbb-img,.tr-card__img,.tr-pick__img) {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
body.tm-brand-v4 :is(.tmbb-name,.tr-card__name,.tr-pick__name,.tr-amz-card__name-link) {
  color: var(--tm-text) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.tm-brand-v4 :is(.tmbb-catch,.tmbb-score,.tmbb-pros,.tmbb-for,.tr-card__price,.tr-pick__price) { color: var(--tm-text) !important; }
body.tm-brand-v4 :is(.tmbb-meta,.tr-card__meta,.tr-pick__meta,.tr-rkt__disc) { color: var(--tm-muted) !important; }
body.tm-brand-v4 :is(.tmbb-flag,.tr-card__rank,.tr-pick__ribbon) {
  background: var(--tm-brand-orange) !important;
  color: var(--tm-action-text) !important;
}
body.tm-brand-v4 .tmbb-bar__fill { background: var(--tm-brand-orange) !important; }

/* Article/author/related outputs: no content sanitization, truncation or hide. */
body.tm-brand-v4 .entry-body {
  background: var(--tm-surface) !important;
  color: var(--tm-text) !important;
  border-color: var(--tm-border) !important;
  min-width: 0;
  line-height: 1.95;
  overflow-wrap: break-word;
}
body.tm-brand-v4 .entry-body :is(p,li,dd,dt,figcaption,strong,b) { color: var(--tm-text) !important; }
body.tm-brand-v4 .entry-body :is(h2,h3,h4) { color: var(--tm-text) !important; }
body.tm-brand-v4 .entry-body h2 {
  background: var(--tm-bg) !important;
  border-left: 4px solid var(--tm-brand-orange) !important;
  border-bottom-color: var(--tm-border) !important;
  padding: 13px 16px;
  line-height: 1.6;
}
body.tm-brand-v4 .entry-body :is(h2,h3,h4)[id] { scroll-margin-top: 110px; }
body.tm-brand-v4 .entry-body a { color: var(--tm-link); text-decoration: underline; text-underline-offset: 3px; }
/* Actual post 318 tma-css uses --b for small review/FAQ text as well as lines.
 * Keep that token readable on white; assign orange explicitly to the lines. */
body.tm-brand-v4 .tma {
  --n: #242424;
  --b: #874900;
  --bd: #874900;
  --ln: #DEDEDB;
  --sf: #F5F5F4;
  --mu: #626262;
  --ink: #242424;
}
body.tm-brand-v4 .tma h2::after { background: var(--tm-brand-orange); }
body.tm-brand-v4 .tma h3 { border-left-color: var(--tm-brand-orange); }
body.tm-brand-v4 .tma-mbox.is-merit {
  background: var(--tm-bg) !important;
  border-color: var(--tm-border) !important;
}
body.tm-brand-v4 .entry-body .tma-review .who { color: var(--tm-link) !important; }
body.tm-brand-v4 :is(.tma-concl,.tma-cta,.tma-rel,.tma-review,.tm-author) {
  background: var(--tm-bg) !important;
  color: var(--tm-text) !important;
  border-color: var(--tm-border) !important;
}
body.tm-brand-v4 :is(.tma-review,.tm-author) { border-left-color: var(--tm-brand-orange) !important; }
body.tm-brand-v4 :is(.tma-pr,.tma-note,.tm-author-note,.entry-meta) { color: var(--tm-muted) !important; }

/* Tables scroll inside their existing containers. Do not mask body overflow. */
body.tm-brand-v4 :is(.tma-table-wrap,.tmbb-tblwrap) {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  border-color: var(--tm-border) !important;
  background: var(--tm-surface) !important;
}
body.tm-brand-v4 :is(.tma-table,.tmbb-table) th {
  background: var(--tm-bg) !important;
  color: var(--tm-text) !important;
  border-color: var(--tm-border) !important;
}
body.tm-brand-v4 :is(.tma-table,.tmbb-table) td {
  background: var(--tm-surface) !important;
  color: var(--tm-text) !important;
  border-color: var(--tm-border) !important;
}

/* Buttons: explicit classes, no wildcard btn/cta matching; third-party logos
 * and merchant colors are not transformed. Existing disabled behavior stays. */
body.tm-brand-v4 :is(.tz-cta-gold,.tmt-cta-a,.tmbb-cta--amazon,.tma-btn,.tm-amz-btn,.tr-btn--amazon,.tr-btn--amazon-cta,#tm-scta-go) {
  background: var(--tm-brand-orange) !important;
  color: var(--tm-action-text) !important;
  border: 1px solid var(--tm-action-border) !important;
  min-height: 48px;
  text-decoration: none;
  border-radius: 6px;
}
body.tm-brand-v4 :is(.tz-cta-gold,.tmt-cta-a,.tmbb-cta--amazon,.tma-btn,.tm-amz-btn,.tr-btn--amazon,.tr-btn--amazon-cta,#tm-scta-go):hover {
  background: var(--tm-action-hover) !important;
  color: var(--tm-action-text) !important;
}
/* Preserve the two-merchant hierarchy after the snippet 7 color branch retires.
 * Never change disabled anchors or third-party logo/image pixels. */
body.tm-brand-v4 .tr-btn--rakuten:not(.tr-btn--disabled) {
  background: var(--tm-surface) !important;
  color: var(--tm-text) !important;
  border: 1px solid var(--tm-text) !important;
  min-height: 48px;
  text-decoration: none;
}
body.tm-brand-v4 .tr-btn--rakuten:not(.tr-btn--disabled):hover {
  background: var(--tm-bg) !important;
  text-decoration: underline;
}
body.tm-brand-v4 :is(.tmt-chip,.tz-tablabels label) {
  background: var(--tm-surface) !important;
  color: var(--tm-text) !important;
  border-color: var(--tm-border) !important;
  min-height: 44px;
}
body.tm-brand-v4 #tztab1:checked ~ .tz-tablabels label[for="tztab1"],
body.tm-brand-v4 #tztab2:checked ~ .tz-tablabels label[for="tztab2"],
body.tm-brand-v4 #tztab3:checked ~ .tz-tablabels label[for="tztab3"],
body.tm-brand-v4 #tztab4:checked ~ .tz-tablabels label[for="tztab4"],
body.tm-brand-v4 #tztab5:checked ~ .tz-tablabels label[for="tztab5"],
body.tm-brand-v4 #tztab6:checked ~ .tz-tablabels label[for="tztab6"],
body.tm-brand-v4 #tztab7:checked ~ .tz-tablabels label[for="tztab7"],
body.tm-brand-v4 #tztab8:checked ~ .tz-tablabels label[for="tztab8"] {
  background: var(--tm-soft) !important;
  color: var(--tm-link) !important;
  border-bottom: 3px solid var(--tm-brand-orange) !important;
  font-weight: 700;
}
/* Public category and related-card DOM; archive query/pagination stay native. */
body.tm-brand-v4 :is(.page-header,.breadcrumb) {
  background: var(--tm-bg) !important;
  color: var(--tm-text) !important;
  border-color: var(--tm-border) !important;
}
body.tm-brand-v4 :is(.page-header-title,.entry-title,.breadcrumb a) { color: var(--tm-text) !important; }
body.tm-brand-v4 .vk_post {
  min-width: 0;
  background: var(--tm-surface) !important;
  border-color: var(--tm-border) !important;
  border-radius: 12px;
}
body.tm-brand-v4 .vk_post_title a {
  color: var(--tm-text) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.tm-brand-v4 :is(.vk_post_excerpt,.vk_post_dates) { color: var(--tm-muted) !important; }
body.tm-brand-v4 .pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  color: var(--tm-link) !important;
  background: var(--tm-surface) !important;
  border-color: var(--tm-border) !important;
}
body.tm-brand-v4 .pagination .page-numbers.current {
  background: var(--tm-soft) !important;
  border-bottom: 3px solid var(--tm-brand-orange) !important;
  font-weight: 700;
}
body.tm-brand-v4 :is(a,button,input,select,textarea,summary,[role="tab"]):focus-visible {
  outline: 3px solid var(--tm-focus) !important;
  outline-offset: 4px;
}
body.tm-brand-v4 :is(#site-header,.site-footer,.tz-hero) :is(a,button):focus-visible {
  outline-color: var(--tm-focus-dark) !important;
}
body.tm-brand-v4 #tm-scta { background: var(--tm-bg-dark) !important; border-top-color: #444444 !important; }
/* Existing sticky CTA and Lightning mobile menu retain their own positioning.
 * A second bottom navigation is deliberately absent until geometry and tracking
 * ownership are established in the real staging environment. */

/* Opt-in Hero fragment only. Source text, numbers, image and CTA come from
 * current HOME 1043. This is not an article/content import or a new design. */
html body.tm-brand-v4 .tm-brand-hero.tz-hero {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box;
  color: #FFFFFF !important;
  text-align: left;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
html body.tm-brand-v4 .tm-brand-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  box-sizing: border-box;
  min-width: 0;
}
html body.tm-brand-v4 .tm-brand-hero-copy { min-width: 0; }
html body.tm-brand-v4 .tm-brand-hero .tz-badge2m {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem !important;
  color: var(--tm-brand-orange) !important;
  font-size: .875rem !important;
  line-height: 1.7;
}
html body.tm-brand-v4 .tm-brand-hero .tz-badge2m em { font-style: normal; }
html body.tm-brand-v4 .tm-brand-hero .tz-badge2m svg {
  width: 15px !important;
  height: 24px !important;
  fill: currentColor !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-h1m {
  margin: 0 0 1rem !important;
  font-family: inherit !important;
  font-size: clamp(2rem, 3.4vw, 3.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  letter-spacing: -.035em !important;
  color: #FFFFFF !important;
  overflow-wrap: anywhere;
}
html body.tm-brand-v4 .tm-brand-hero .tz-h1m .no1 { color: var(--tm-brand-orange) !important; }
html body.tm-brand-v4 .tm-brand-hero .tz-leadm {
  margin: 0 0 1.5rem !important;
  color: #E3E3E3 !important;
  font-size: 1rem !important;
  line-height: 2 !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-cta-mob {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: auto !important;
  max-width: 100%;
  min-height: 48px;
  padding: .85rem 1.25rem !important;
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  box-sizing: border-box;
  white-space: normal;
  box-shadow: 0 8px 35px #E0991515 !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-cta-mob svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
}
html body.tm-brand-v4 .tm-brand-hero-art {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #635032;
  border-radius: 13px;
  background: linear-gradient(135deg, #32302B, #202020);
  box-shadow: 0 25px 70px #00000066, 0 0 40px #E099150A;
}
html body.tm-brand-v4 .tm-brand-hero-art img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  max-height: 386px;
  object-fit: contain;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hstatsm {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 !important;
  padding: 1.5rem 0 0 !important;
  border-top: 1px solid #444444 !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hstatsm > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  padding: 0 .25rem;
  border-left-color: #444444 !important;
  line-height: 1.5;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hstatsm b {
  color: #FFFFFF !important;
  font-size: clamp(.9375rem, 2.5vw, 1.75rem) !important;
  line-height: 1.5 !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hstatsm i {
  color: #E3E3E3 !important;
  font-size: .875rem !important;
  font-style: normal;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hstatsm svg {
  width: 22px !important;
  height: 22px !important;
  stroke: var(--tm-brand-orange) !important;
  fill: none !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hfeats2m {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hf2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: .75rem;
  border: 1px solid #444444 !important;
  border-radius: 10px;
  background: transparent !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hf2 svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px;
  stroke: var(--tm-brand-orange) !important;
  fill: none !important;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hf2 b {
  display: block;
  color: #FFFFFF !important;
  font-size: .875rem !important;
  line-height: 1.6;
}
html body.tm-brand-v4 .tm-brand-hero .tz-hf2 i {
  display: block;
  color: #E3E3E3 !important;
  font-size: .8125rem !important;
  font-style: normal;
  line-height: 1.6;
}
@media (max-width: 900px) {
  html body.tm-brand-v4 .tm-brand-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 1.125rem;
  }
  html body.tm-brand-v4 .tm-brand-hero-art img { max-height: 235px; }
  html body.tm-brand-v4 .tm-brand-hero .tz-hfeats2m { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  html body.tm-brand-v4 .tm-brand-hero .tz-hstatsm,
  html body.tm-brand-v4 .tm-brand-hero .tz-hfeats2m { grid-template-columns: minmax(0, 1fr); }
}
