:root {
  --tac-v2-reading-width: 800px;
  --tac-v2-product-width: 1080px;
  --tac-v2-comparison-width: 1240px;
  --tac-v2-space-1: .75rem;
  --tac-v2-space-2: 1.125rem;
  --tac-v2-space-3: 1.5rem;
  --tac-v2-space-card: clamp(1rem, 1.4vw, 1.25rem);
  --tac-v2-space-product: clamp(3rem, 3.5vw, 3.5rem);
  --tac-v2-space-section: clamp(4rem, 5vw, 5rem);
  --tac-v2-navy: #20384a;
  --tac-v2-teal: #177b8d;
  --tac-v2-teal-dark: #0f6070;
  --tac-v2-ink: #183040;
  --tac-v2-muted: #52646e;
  --tac-v2-surface: #f1f8f8;
  --tac-v2-border: #c9e1e4;
  --tac-v2-card-radius: 20px;
  --tac-v2-shadow: 0 8px 22px rgba(24, 48, 64, .08);
  --tac-v2-type-section: clamp(1.55rem, 2.2vw, 2rem);
  --tac-v2-type-product: clamp(1.25rem, 1.5vw, 1.5rem);
  --tac-v2-type-meta: .92rem;
  --tac-v2-type-card-title: 1rem;
  --tac-v2-cta-radius: 12px;
  --tac-v2-cta-height: 48px;
  --tac-v2-cta-compact-height: 36px;
  --tac-v2-cta-padding: .75rem 1.2rem;
  --tac-v2-cta-compact-padding: .5rem .6rem;
  --tac-v2-focus: #9a5700;
  --tac-v2-breakpoint-compact: 781px;
}

/* V2 is intentionally isolated from theme, Elementor and legacy article styles. */
.tac-v2 {
  box-sizing: border-box;
  color: var(--tac-v2-ink);
}
.tac-v2 *, .tac-v2 *::before, .tac-v2 *::after { box-sizing: border-box; }
.tac-v2 a { text-decoration: none; }

/* Three-level layout system. Important is needed only to override Twenty Twenty-Four's constrained content width. */
.tac-v2-reading, .tac-v2-cta {
  width: min(calc(100% - 2rem), var(--tac-v2-reading-width));
  max-width: var(--tac-v2-reading-width) !important;
  margin-inline: auto;
}
.tac-v2-product-context, .tac-v2-product-card {
  width: min(calc(100% - 2rem), var(--tac-v2-product-width));
  max-width: var(--tac-v2-product-width) !important;
  margin-inline: auto;
}
.tac-v2-comparison-context, .tac-v2-comparison {
  width: min(calc(100% - 2rem), var(--tac-v2-comparison-width));
  max-width: var(--tac-v2-comparison-width) !important;
  margin-inline: auto;
}
.tac-v2-product-context .tac-v2-product-card { width: 100%; max-width: none; margin-inline: 0; }

/* Editorial rhythm and heading hierarchy. */
.tac-v2-reading { margin-block: var(--tac-v2-space-section) !important; }
.tac-v2-reading > p { margin-block: 0; font-size: 1rem; line-height: 1.68; }
.tac-v2-reading > p + p { margin-top: var(--tac-v2-space-2); }
.tac-v2-reading > .wp-block-heading,
.tac-v2-comparison-context > .wp-block-heading {
  margin: var(--tac-v2-space-section) 0 var(--tac-v2-space-2) !important;
  color: var(--tac-v2-navy);
  font-size: var(--tac-v2-type-section);
  line-height: 1.22;
  letter-spacing: -.015em;
}
.tac-v2-reading > .wp-block-heading:first-child { margin-top: 0 !important; }
.tac-v2-reading > .wp-block-list { margin: 0; padding-left: 1.3rem; line-height: 1.6; }
.tac-v2-reading > .wp-block-heading + .wp-block-list { margin-top: var(--tac-v2-space-1); }
.tac-v2-comparison-context {
  margin-block: var(--tac-v2-space-section) var(--tac-v2-space-card) !important;
}
.tac-v2-comparison-context > .wp-block-heading { margin: 0 !important; }
.tac-v2-product-context { margin-block: var(--tac-v2-space-product) !important; }
.tac-v2-product-context > .wp-block-heading {
  margin: 0 0 .4rem !important;
  color: var(--tac-v2-navy);
  font-size: var(--tac-v2-type-product);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.tac-v2-product-context > .wp-block-heading + p {
  margin: 0 !important;
  color: var(--tac-v2-muted);
  font-size: var(--tac-v2-type-meta);
  font-weight: 600;
  line-height: 1.5;
}
.tac-v2-product-context > .wp-block-heading + p + p {
  margin: var(--tac-v2-space-1) 0 0 !important;
  font-size: 1rem;
  line-height: 1.65;
}

/* Shared CTA system. */
.tac-v2-cta { margin-block: var(--tac-v2-space-3); }
.tac-v2-cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.tac-v2-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: var(--tac-v2-cta-height);
  padding: var(--tac-v2-cta-padding);
  border-radius: var(--tac-v2-cta-radius);
  background: var(--tac-v2-teal);
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tac-v2-cta__button:hover { background: var(--tac-v2-teal-dark); color: #fff !important; box-shadow: 0 5px 14px rgba(15, 96, 112, .23); transform: translateY(-1px); }
.tac-v2-cta__button:focus-visible, .tac-v2-comparison__scroll:focus-visible { outline: 3px solid var(--tac-v2-focus); outline-offset: 3px; }
.tac-v2-cta__arrow { font-size: 1.2em; line-height: 1; }
.tac-v2-cta__merchant { color: var(--tac-v2-muted); font-size: .85rem; }

/* Product Card V2: 40/60 media-to-information split on desktop. */
.tac-v2-product-card {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) minmax(0, 3fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: stretch;
  margin: var(--tac-v2-space-card) 0 0;
  padding: clamp(1.1rem, 2vw, 1.75rem);
  border: 1px solid var(--tac-v2-border);
  border-radius: var(--tac-v2-card-radius);
  background: #fff;
  box-shadow: var(--tac-v2-shadow);
}
.tac-v2-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: var(--tac-v2-space-1);
  border-radius: calc(var(--tac-v2-card-radius) - 5px);
  background: var(--tac-v2-surface);
  overflow: hidden;
}
.tac-v2-product-card__media img { display: block; width: 100%; max-width: 330px; height: auto; max-height: 280px; object-fit: contain; }
.tac-v2-product-card__image-placeholder { color: var(--tac-v2-muted); font-size: .95rem; }
.tac-v2-product-card__content { display: grid; align-content: start; gap: 1rem; }
.tac-v2-product-card__group { padding-bottom: 1rem; border-bottom: 1px solid var(--tac-v2-border); }
.tac-v2-product-card__group h4 { margin: 0 0 .45rem; color: var(--tac-v2-navy); font-size: var(--tac-v2-type-card-title); line-height: 1.35; }
.tac-v2-product-card__group p, .tac-v2-product-card__group ul { margin: 0; font-size: .96rem; line-height: 1.55; }
.tac-v2-product-card__group ul { padding-left: 1.2rem; }
.tac-v2-product-card__group--pros li::marker { color: #14855a; }
.tac-v2-product-card__group--cons li::marker { color: #aa5b2b; }
.tac-v2-product-card__group--best { padding-left: var(--tac-v2-space-2); border-left: 3px solid var(--tac-v2-border); }
.tac-v2-product-card__cta .tac-v2-cta__inner { align-items: flex-start; }
.tac-v2-product-card__cta .tac-v2-cta__button { width: 100%; }

/* Comparison Table V2. The table scrolls only inside its own container on smaller screens. */
.tac-v2-comparison { margin: 0 auto var(--tac-v2-space-section); }
.tac-v2-comparison__scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--tac-v2-border); border-radius: var(--tac-v2-card-radius); background: #fff; }
.tac-v2-comparison__table { width: 100%; min-width: 1180px; margin: 0; border-collapse: collapse; font-size: .9rem; line-height: 1.45; }
.tac-v2-comparison__table th, .tac-v2-comparison__table td { padding: 1rem .85rem; vertical-align: top; text-align: left; border: 0; border-bottom: 1px solid var(--tac-v2-border); }
.tac-v2-comparison__table thead th { position: sticky; top: 0; z-index: 1; background: var(--tac-v2-navy); color: #fff; font-size: .82rem; }
.tac-v2-comparison__table tbody th { min-width: 145px; color: var(--tac-v2-navy); font-size: .95rem; }
.tac-v2-comparison__table tbody tr:nth-child(even) { background: #f8fbfb; }
.tac-v2-comparison__table tbody tr:last-child th, .tac-v2-comparison__table tbody tr:last-child td { border-bottom: 0; }
.tac-v2-comparison__cta-cell { min-width: 148px; }
.tac-v2-comparison__cta-cell .tac-v2-cta__button { width: 100%; min-height: var(--tac-v2-cta-compact-height); padding: var(--tac-v2-cta-compact-padding); gap: .35rem; font-size: .8rem; }
.tac-v2-comparison__cta-cell .tac-v2-cta__merchant { display: block; margin-top: .25rem; font-size: .76rem; }
.tac-v2-comparison__mobile { display: none; }

@media (max-width: 781px) {
  :root {
    --tac-v2-space-product: 2.5rem;
    --tac-v2-space-section: 3.25rem;
  }
  .tac-v2-reading, .tac-v2-cta,
  .tac-v2-product-context, .tac-v2-product-card,
  .tac-v2-comparison-context, .tac-v2-comparison { width: min(calc(100% - 2rem), 100%); }
  .tac-v2-product-card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.2rem; }
  .tac-v2-product-card__media { min-height: 190px; }
  .tac-v2-product-card__media img { max-height: 260px; }
  .tac-v2-comparison__scroll { display: none; }
  .tac-v2-comparison__mobile { display: grid; gap: 1rem; }
  .tac-v2-comparison__mobile-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 1rem; padding: 1rem; border: 1px solid var(--tac-v2-border); border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(24, 48, 64, .07); }
  .tac-v2-comparison__mobile-card img { width: 86px; height: 110px; object-fit: contain; align-self: start; }
  .tac-v2-comparison__mobile-card h3 { margin: 0 0 .7rem; color: var(--tac-v2-navy); font-size: 1rem; line-height: 1.32; }
  .tac-v2-comparison__mobile-card dl { margin: 0 0 1rem; }
  .tac-v2-comparison__mobile-card dt { margin-top: .55rem; color: var(--tac-v2-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
  .tac-v2-comparison__mobile-card dd { margin: .1rem 0 0; font-size: .92rem; line-height: 1.4; }
  .tac-v2-comparison__mobile-card .tac-v2-cta__button { width: 100%; font-size: .9rem; }
}
@media (max-width: 420px) {
  .tac-v2-comparison__mobile-card { grid-template-columns: 1fr; }
  .tac-v2-comparison__mobile-card img { width: 100%; height: 150px; }
}