/**
 * Save & Upgrade — Components.
 * Every value here traces to theme-spec.md §2 or to the .dc.html mocks.
 */

/* ----------------------------------------------------------------- Buttons */

.su-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-md);
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.su-btn--primary {
  background: var(--accent);
  color: var(--paper);
  padding: 14px 24px;
}
.su-btn--primary:hover { background: var(--accent-dark); color: var(--paper); }

.su-btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 13px 24px;
}
.su-btn--secondary:hover { background: var(--ink); color: var(--paper); }

.su-btn--tertiary {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--line);
  padding: 12px 22px;
  font-size: 14px;
}
.su-btn--tertiary:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Amazon CTA — the only place --amazon may be used. */
.su-btn--amazon {
  background: var(--amazon);
  color: var(--ink);
  font-weight: 800;
  padding: 14px;
  border-radius: var(--r-lg);
  width: 100%;
}
.su-btn--amazon:hover { background: #E88A00; color: var(--ink); }
.su-btn--amazon-sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: var(--r-md);
  width: auto;
  white-space: nowrap;
}
.su-btn--amazon-xs {
  padding: 8px 13px;
  font-size: 12.5px;
  border-radius: var(--r-md);
  width: auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .su-btn { min-height: 44px; }
}

/* ------------------------------------------------------------------- Cards */

.su-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 150ms ease, transform 150ms ease;
}
.su-card:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .su-card:hover { transform: none; }
}
.su-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.su-card__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.su-card__title a { color: inherit; }
.su-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.55; }
.su-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding-top: 6px;
  margin-top: auto;
  font-size: 13px;
}
.su-card__cta { font-weight: 700; color: var(--accent-dark); }
.su-card__meta { color: var(--meta); }
.su-card__media { position: relative; }
.su-card__badge { position: absolute; top: 12px; left: 12px; }

/* Whole-card link: the title anchor is stretched over the card. */
.su-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.su-card { position: relative; }
.su-card a:not(.su-card__link) { position: relative; z-index: 2; }

/* Archive card variant — slightly tighter, per Category Archive mock. */
.su-card--archive .su-card__body { padding: 18px 20px 20px; gap: 8px; }
.su-card--archive .su-card__title { font-size: 18px; line-height: 1.28; }

/* Category card (homepage) */
.su-cat-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  color: var(--ink);
  transition: border-color 150ms ease, transform 150ms ease;
}
.su-cat-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .su-cat-card:hover { transform: none; } }
.su-cat-card__name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.su-cat-card__desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.su-cat-card__count { font-size: 13px; font-weight: 700; color: var(--accent-dark); padding-top: var(--s1); }

/* Latest list row (homepage) */
.su-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s5);
}
.su-row__media { border-radius: var(--r-md); overflow: hidden; }
.su-row__body { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.su-row__kicker {
  display: flex; gap: var(--s3); align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.su-row__kicker .su-cat { color: var(--accent); }
.su-row__kicker .su-sep { color: var(--hair); letter-spacing: 0; }
.su-row__kicker .su-date { color: var(--meta); }
.su-row__title {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--ink);
}
.su-row__title a { color: inherit; }
.su-row__excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

@media (max-width: 639px) {
  .su-row { grid-template-columns: 1fr; gap: var(--s4); }
}

/* ------------------------------------------------------------------ Badges */

.su-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.su-badge--accent { background: var(--accent); color: var(--paper); }
.su-badge--sm { font-size: 11px; padding: 5px 10px; }

.su-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
}

.su-chip {
  display: inline-flex;
  align-items: center;
  background: var(--sand);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.su-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ----------------------------------------------------------------- Ratings */

.su-rating { display: flex; align-items: center; gap: var(--s2); }
.su-rating__stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; line-height: 1; }
.su-rating__stars .is-off { color: var(--star-off); }
.su-rating__score { font-size: 14px; font-weight: 800; }
.su-rating__score span { color: var(--meta); font-weight: 600; }

/* ------------------------------------------------------------ Product card */

.su-product { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.su-product > h2 { font-size: 30px; }

.su-product__card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper);
}
.su-product__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  background: var(--sand);
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.su-product__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 26px;
}
.su-product__left { display: flex; flex-direction: column; gap: 14px; }
/*
 * The design puts a square (600×600) product shot into a 210px-tall box, so the
 * image is contained rather than cropped — a cropped product photo is worse
 * than letterboxing on the sand background.
 */
.su-product__media {
  height: 210px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.su-product__media img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 768px) {
  .su-product__media { height: 240px; }
}
.su-product__actions { display: flex; flex-direction: column; gap: var(--s2); }
.su-product__pricenote { font-size: 11.5px; color: var(--meta); text-align: center; }
.su-product__right { display: flex; flex-direction: column; gap: 18px; }
.su-product__bestfor { font-size: 15px; line-height: 1.65; color: var(--body); }
.su-product__verdict { font-size: 16.5px; line-height: 1.7; color: var(--body); }

/* Best Overall variant */
.su-product--best .su-product__card {
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-card);
}
.su-product--best .su-product__head {
  background: var(--accent-tint);
  border-bottom-color: var(--accent-line);
}

@media (max-width: 1023px) {
  .su-product__grid { grid-template-columns: 240px 1fr; gap: var(--s5); padding: var(--s5); }
}
@media (max-width: 768px) {
  /* Mobile order: image → chips → best-for → pros/cons → CTAs. */
  .su-product__grid { grid-template-columns: 1fr; gap: var(--s4); padding: 18px; }
  .su-product__left { display: contents; }
  .su-product__media { order: 1; }
  .su-product__right { order: 2; gap: var(--s4); }
  .su-product__actions { order: 3; }
  .su-product__pricenote { order: 4; }
  .su-product__head { padding: 12px 18px; flex-wrap: wrap; }
  .su-product > h2 { font-size: 24px; }
}

/* Pros / cons */
.su-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.su-proscons__col {
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.su-proscons__col--pros { background: var(--green-tint); }
.su-proscons__col--cons { background: var(--red-tint); }
.su-proscons__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.su-proscons__col--pros .su-proscons__title { color: var(--green); }
.su-proscons__col--cons .su-proscons__title { color: var(--red); }
.su-proscons__list {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  display: flex; flex-direction: column; gap: 5px;
}
.su-proscons__list li { display: flex; gap: 6px; }
.su-proscons__list li::before { font-weight: 700; }
.su-proscons__col--pros li::before { content: "+"; color: var(--green); }
.su-proscons__col--cons li::before { content: "\2212"; color: var(--red); }

@media (max-width: 479px) {
  .su-proscons { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- Quick picks */

.su-quickpicks {
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.su-quickpicks__head {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.su-quickpicks__row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.su-quickpicks__row:last-child { border-bottom: 0; }
.su-quickpicks__name { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.su-quickpicks__name a { color: inherit; }
.su-quickpicks__spec { font-size: 14px; color: var(--meta); }
.su-quickpicks__price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .su-quickpicks__row { flex-wrap: wrap; gap: var(--s2) var(--s3); padding: 14px 16px; }
  .su-quickpicks__name { flex-basis: 100%; order: 2; }
  .su-quickpicks__price { margin-left: 0; order: 3; }
  .su-quickpicks__spec { order: 4; }
  .su-quickpicks__row .su-btn { order: 5; margin-left: auto; }
}

/* -------------------------------------------------------- Comparison table */

.su-compare { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.su-compare__scroll {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.su-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--paper);
}
.su-compare caption {
  text-align: left;
  padding: 0 0 var(--s2);
  font-size: 12.5px;
  color: var(--meta);
  caption-side: bottom;
}
.su-compare thead th {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}
.su-compare thead th:first-child { padding-left: 18px; }
.su-compare tbody th,
.su-compare tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
  font-weight: 400;
  color: var(--muted);
}
.su-compare tbody th {
  padding-left: 18px;
  font-weight: 700;
  color: var(--ink);
  min-width: 190px;
}
/* The product name is an anchor to its section, but reads as a heading. */
.su-compare tbody th a { color: inherit; }
.su-compare tbody th a:hover { color: var(--accent-dark); }
.su-compare tbody tr:nth-child(even) th,
.su-compare tbody tr:nth-child(even) td { background: var(--row-alt); }
.su-compare tbody tr:nth-child(odd) th,
.su-compare tbody tr:nth-child(odd) td { background: var(--paper); }
.su-compare tbody tr:last-child th,
.su-compare tbody tr:last-child td { border-bottom: 0; }
.su-compare__price { font-weight: 700; color: var(--ink); }
.su-compare__score {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--r-sm);
}
.su-compare__cta { padding-block: 10px; }
.su-compare__note { font-size: 12.5px; color: var(--meta); }

/* Sticky product column on desktop when the table is wide (>4 columns). */
@media (min-width: 1024px) {
  .su-compare--wide tbody th,
  .su-compare--wide thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
  }
  .su-compare--wide tbody th { box-shadow: 1px 0 0 var(--line); }
}

/* Mobile: horizontal scroll with a visible affordance. */
@media (max-width: 1023px) {
  .su-compare table { min-width: 640px; }
  .su-compare__scroll::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(253, 252, 250, 0), rgba(253, 252, 250, 0.95));
    opacity: 1;
    transition: opacity 150ms ease;
  }
  .su-compare__scroll[data-scroll-end="true"]::after { opacity: 0; }
  .su-compare__hint {
    font-size: 12px;
    color: var(--meta);
    display: flex;
    align-items: center;
    gap: 6px;
  }
}
@media (min-width: 1024px) {
  .su-compare__hint { display: none; }
}

/* --------------------------------------------------------------------- TOC */

.su-toc {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.su-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
}
.su-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.su-toc__list a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding-left: var(--s3);
  line-height: 1.35;
}
.su-toc__list a:hover { color: var(--accent-dark); }
.su-toc__list a.is-active {
  font-weight: 700;
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Mobile: collapse into a <details> accordion above the intro. */
.su-toc-mobile {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4) 18px;
}
.su-toc-mobile > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.su-toc-mobile > summary::-webkit-details-marker { display: none; }
.su-toc-mobile > summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.su-toc-mobile[open] > summary::after { content: "\2212"; }
.su-toc-mobile .su-toc__list { padding-top: var(--s4); }

/* --------------------------------------------------------------------- FAQ */

.su-faq { display: flex; flex-direction: column; gap: var(--s4); scroll-margin-top: calc(var(--header-h) + 16px); }
.su-faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
}
.su-faq__item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}
.su-faq__item > summary::-webkit-details-marker { display: none; }
.su-faq__item > summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.su-faq__item[open] > summary::after { content: "\2212"; }
.su-faq__answer {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  padding-top: var(--s2);
}
.su-faq__answer > :not(:first-child) { margin-top: var(--s3); }

/* -------------------------------------------------------------- Newsletter */

.su-newsletter {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s7);
  align-items: center;
}
.su-newsletter__copy { display: flex; flex-direction: column; gap: 10px; }
.su-newsletter__title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.su-newsletter__sub { font-size: 15px; color: var(--on-ink); line-height: 1.55; }
.su-newsletter__form { display: flex; gap: 10px; }
.su-newsletter__form .su-input { flex: 1; }
@media (max-width: 1023px) {
  .su-newsletter { grid-template-columns: 1fr; padding: var(--s6) var(--s5); gap: var(--s5); }
  .su-newsletter__title { font-size: 26px; }
}
@media (max-width: 479px) {
  .su-newsletter__form { flex-direction: column; }
}

/* Sidebar newsletter card */
.su-newsletter--card {
  border-radius: var(--r-lg);
  padding: var(--s5);
  grid-template-columns: 1fr;
  gap: var(--s3);
}
.su-newsletter--card .su-newsletter__title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.su-newsletter--card .su-newsletter__form { flex-direction: column; gap: var(--s3); }
.su-newsletter--card .su-btn { width: 100%; }

/* ------------------------------------------------------------------- Forms */

.su-input {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 16px; /* never below 16px — prevents iOS zoom */
  width: 100%;
  min-width: 0;
}
.su-input::placeholder { color: var(--meta); }
.su-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.su-input--on-ink { border-color: transparent; }
.su-input--on-sand { background: var(--sand); }

.su-searchform { display: flex; gap: var(--s2); width: 100%; }
.su-searchform .su-input { flex: 1; }

/* --------------------------------------------------------------- Ad slots */

.su-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
  width: 100%;
}
/*
 * The label keeps its space so the slot height never changes, but stays
 * invisible until something actually fills the box — "ADVERTISEMENT" floating
 * over an empty rectangle reads as a broken page to a real visitor.
 */
.su-ad__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  visibility: hidden;
}
.su-ad--filled .su-ad__label { visibility: visible; }
/*
 * Reserved height comes from an inline custom property per slot — zero CLS.
 * The box is deliberately invisible when empty: it holds its space without
 * announcing itself. The striped placeholder is a dev-only affordance.
 */
.su-ad__box {
  width: 100%;
  min-height: var(--ad-h, 90px);
  height: var(--ad-h, 90px);
  max-width: var(--ad-w, none);
  background: none;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.su-ad--dev .su-ad__box {
  background: repeating-linear-gradient(45deg, var(--sand), var(--sand) 10px, #F1EDE6 10px, #F1EDE6 20px);
}
.su-ad__box > * { max-width: 100%; }
/* Dashed outline + placeholder text are dev-only (see inc/ads.php). */
.su-ad--dev .su-ad__box {
  border: 1px dashed var(--hair);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  line-height: 1.5;
}
.su-ad--filled .su-ad__box { background: none; }
/*
 * Fluid slots (native units) size themselves. The reserved height becomes a
 * floor rather than a fixed box, so the creative can grow past it — which is
 * why these belong below the fold, where a shift costs nothing.
 */
.su-ad--fluid .su-ad__box {
  height: auto;
  min-height: var(--ad-h, 250px);
  max-width: none;
}
@media (min-width: 1024px) {
  .su-ad--fluid .su-ad__box {
    height: auto;
    min-height: var(--ad-h-lg, var(--ad-h, 250px));
    max-width: none;
  }
}
.su-ad--fluid .su-ad__box > iframe { width: 100%; }

/* In-content banner: sits inside the prose, so it needs its own breathing room. */
.su-ad--in-content { margin-block: var(--s7); }

.su-ad--sticky { position: sticky; top: calc(var(--header-h) + var(--s5)); }
.su-ad--hidden-mobile { display: none; }
@media (min-width: 1024px) {
  /* Desktop creative is usually taller/wider — swap the reserved box. */
  .su-ad__box {
    min-height: var(--ad-h-lg, var(--ad-h, 90px));
    height: var(--ad-h-lg, var(--ad-h, 90px));
    max-width: var(--ad-w-lg, var(--ad-w, none));
  }
  .su-ad--hidden-mobile { display: flex; }
  .su-ad--hidden-desktop { display: none; }
}
/* Above-header and above-footer placements carry their own page rhythm. */
.su-ad--leaderboard {
  max-width: var(--content);
  padding: var(--s4) var(--gutter) 0;
}
.su-ad--footer {
  max-width: var(--content);
  padding: 0 var(--gutter) var(--s8);
}
/* Inside a column the wrapper already supplies the gutter. */
.su-archive-main > .su-ad--leaderboard { padding: 0; max-width: none; }

/* ------------------------------------------------------------- Breadcrumbs */

.su-breadcrumbs { font-size: 13px; color: var(--meta); }
.su-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.su-breadcrumbs a { color: var(--meta); }
.su-breadcrumbs a:hover { color: var(--accent-dark); }
.su-breadcrumbs li::after { content: "/"; color: var(--hair); padding-left: 6px; }
.su-breadcrumbs li:last-child::after { content: ""; padding: 0; }
.su-breadcrumbs [aria-current="page"] { color: var(--muted); }
.su-breadcrumbs--on-ink { color: var(--on-ink-dim); }
.su-breadcrumbs--on-ink a { color: var(--on-ink-dim); }
.su-breadcrumbs--on-ink a:hover { color: var(--paper); }
.su-breadcrumbs--on-ink li::after { color: #3A3F45; }

/* -------------------------------------------------------------- Author box */

.su-authorbox {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.su-authorbox__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.su-authorbox__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.su-authorbox__meta { display: flex; flex-direction: column; gap: 1px; }
.su-authorbox__name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.su-authorbox__name a { color: inherit; }
.su-authorbox__dates { font-size: 13px; color: var(--meta); }
.su-authorbox .su-trust { margin-left: auto; }

/* -------------------------------------------------------------- Disclosure */

.su-disclosure {
  background: var(--sand);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.su-disclosure strong { color: var(--ink); }
.su-disclosure a { font-weight: 600; }
.su-disclosure--foot { font-size: 12.5px; color: var(--meta); padding: 12px 18px; }

/* ------------------------------------------------------- Sticky mobile CTA */

.su-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  transform: translateY(110%);
  transition: transform 200ms ease;
}
.su-sticky-cta.is-visible { transform: none; }
.su-sticky-cta__thumb {
  width: 38px; height: 38px;
  background: var(--ink-line);
  border-radius: var(--r-md);
  flex-shrink: 0;
  overflow: hidden;
}
.su-sticky-cta__text { display: flex; flex-direction: column; min-width: 0; }
.su-sticky-cta__name {
  font-size: 12px; font-weight: 700; color: var(--paper);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.su-sticky-cta__meta { font-size: 11px; color: var(--on-ink); }
.su-sticky-cta__btn { margin-left: auto; flex-shrink: 0; }
.su-sticky-cta__close {
  background: none; border: 0; cursor: pointer;
  color: var(--on-ink); font-size: 18px; line-height: 1;
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 768px) {
  .su-sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom)); }
}

/* -------------------------------------------------------------- Pagination */

.su-pagination { display: flex; justify-content: center; }
.su-pagination .nav-links { display: flex; justify-content: center; gap: var(--s2); flex-wrap: wrap; }
.su-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding-inline: var(--s2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 700;
  color: var(--muted);
}
.su-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); }
.su-pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.su-pagination .next, .su-pagination .prev { padding-inline: var(--s4); }
.su-pagination .dots { border-color: transparent; }

/* ------------------------------------------------------------ Filter chips */

.su-filters {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: var(--header-h);
  z-index: 80;
}
.su-filters__inner {
  max-width: var(--content);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
}
.su-filters__chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 2px;
}
.su-filters__chips::-webkit-scrollbar { display: none; }
.su-filter {
  border: 1.5px solid var(--line);
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.su-filter:hover { border-color: var(--accent); color: var(--accent-dark); }
.su-filter.is-active,
.su-filter[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 700;
  padding: 8px 16px;
}
.su-filters__sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.su-filters__sort select {
  background: none;
  border: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
@media (max-width: 767px) {
  .su-filters__sort { display: none; }
}

/* --------------------------------------------------------- How we tested */

.su-howtested {
  background: var(--sand);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.su-howtested h2 { font-size: 24px; letter-spacing: -0.025em; }
.su-howtested__body { font-size: 15.5px; line-height: 1.7; color: var(--body); }
@media (max-width: 479px) {
  .su-howtested { padding: var(--s5) var(--s4); }
}

/* ----------------------------------------------------------------- Related */

.su-related {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  border-top: 1px solid var(--line);
  padding-top: var(--s6);
}
.su-related h2 { font-size: 24px; letter-spacing: -0.025em; }
.su-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.su-related__card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 150ms ease, transform 150ms ease;
}
.su-related__card:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .su-related__card:hover { transform: none; } }
.su-related__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.su-related__cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.su-related__title { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.su-related__title a { color: inherit; }
@media (max-width: 767px) {
  .su-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .su-related__grid { grid-template-columns: 1fr; }
}
