/* Shared reading scale. Compact navigation and metadata retain their own sizes. */
:root[data-theme] body main {
  --reading-copy: 17px;
  --reading-leading: 1.65;
}
:root[data-theme] body main :is(.card-description, .seo-card-note, .focus-description,
  .feature-description, .blog-card-body > p, .card-text > p, .seo-link-card > p,
  .seo-pair-card > p, .collections-subtitle, .reviews-subtitle, .section-heading p) {
  font-size: var(--reading-copy);
  line-height: var(--reading-leading);
}
:root[data-theme] body main :is(.theme-prose, .review-structure__prose) {
  font-size: 18px; line-height: 1.7;
}
:root[data-theme] body main :is(.theme-prose, .review-structure__prose) :is(p, li) {
  line-height: 1.7;
}
:root[data-theme] body main :is(.theme-prose, .review-structure__prose) > p {
  max-width: 70ch;
}
:root[data-theme] body main :is(.card-info, .card-text, .blog-card-body) > h3 {
  line-height: 1.3; overflow-wrap: anywhere;
}
/* Text panels and their paragraphs fill the section with consistent inner spacing. */
:root[data-theme] body main.review-structure .review-structure__direct.theme-prose {
  width: 100%; max-width: none; box-sizing: border-box;
}
:root[data-theme] body main.review-structure .review-structure__direct.theme-prose > p {
  max-width: none;
}
:root[data-theme] body main.review-structure .review-structure__section {
  font-size: 17px; line-height: 1.65;
}
:root[data-theme] body main.review-structure .review-structure__section :is(p:not(.review-structure__price), li) {
  font-size: inherit; line-height: 1.65;
}
:root[data-theme] body main.review-structure .review-structure__section h3 {
  font-size: 20px; line-height: 1.35;
}
:root[data-theme] body main.review-structure .review-structure__metrics dd {
  font-size: 18px; line-height: 1.5;
}
:root[data-theme] body main.review-structure :is(.review-byline__label, .review-structure__facts dt) {
  font-size: 14px; line-height: 1.5;
}
/* Color communicates the purpose of a section, consistently in both themes. */
:root[data-theme] body main.review-structure {
  --reading-teal: #166476;
}
:root[data-theme="dark"] body main.review-structure {
  --reading-teal: #9bdeea;
}
:root[data-theme] body main.review-structure :is(#review-features, #review-tasks, #review-specifications) {
  --section-tone: var(--reading-teal);
}
:root[data-theme] body main.review-structure #review-free {
  --section-tone: var(--tone-green);
}
:root[data-theme] body main.review-structure :is(#review-price, #review-economy) {
  --section-tone: var(--tone-violet);
}
:root[data-theme] body main.review-structure #review-limits {
  --section-tone: var(--tone-amber);
}
:root[data-theme] body main.review-structure :is(#review-features, #review-tasks,
  #review-specifications, #review-free, #review-price, #review-economy, #review-limits)
  :is(.review-structure__card, .review-structure__direct) {
  background: color-mix(in srgb, var(--section-tone) 13%, var(--review-panel));
  border: 1px solid color-mix(in srgb, var(--section-tone) 42%, var(--review-panel));
  color: var(--ink);
}
:root[data-theme] body main.review-structure :is(#review-features, #review-tasks,
  #review-free, #review-price, #review-economy, #review-limits) .review-structure__card h3 {
  color: var(--section-tone);
}
:root[data-theme] body main.review-structure .review-structure__tasks > li::before {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; color: var(--review-panel);
  background: var(--section-tone, var(--reading-teal)); font-size: 14px;
}
:root[data-theme] body main.review-structure #review-free .review-structure__tag {
  background: var(--tone-green); color: var(--review-panel);
}
@media (max-width: 650px) {
  :root[data-theme] body main { --reading-copy: 16px; }
  :root[data-theme] body main :is(.theme-prose, .review-structure__prose) { font-size: 17px; }
  :root[data-theme] body main.review-structure .review-structure__section { font-size: 16px; }
  :root[data-theme] body main.review-structure .review-structure__section h3 { font-size: 19px; }
}

/* Fact rows use the available card width, including when only one fact exists. */
:root[data-theme] body main .catalog-review-card .seo-card-meta,
:root[data-theme] body main .hero-focus .focus-facts,
:root[data-theme] body main.review-structure .review-structure__facts {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  width: 100%; align-items: start;
}
:root[data-theme] body main.review-structure .review-structure__facts { max-width: 720px; }
:root[data-theme] body main .catalog-review-card .seo-card-meta > :is(.access-fact, .price-fact),
:root[data-theme] body main .hero-focus .focus-facts > :is(.access-fact, .price-fact),
:root[data-theme] body main.review-structure .review-structure__facts > div {
  display: grid; grid-template-columns: minmax(76px, .65fr) minmax(0, 1.35fr);
  align-items: baseline; gap: 8px 16px; padding: 14px 16px;
  width: 100%; min-width: 0; box-sizing: border-box;
}
:root[data-theme] body main .catalog-review-card .seo-card-meta :is(.access-fact, .price-fact) dt,
:root[data-theme] body main .hero-focus .focus-facts :is(.access-fact, .price-fact) dt,
:root[data-theme] body main.review-structure .review-structure__facts dt {
  margin: 0; font-size: 13px; line-height: 1.5; font-weight: 500;
}
:root[data-theme] body main .catalog-review-card .seo-card-meta :is(.access-fact, .price-fact) dd,
:root[data-theme] body main .hero-focus .focus-facts :is(.access-fact, .price-fact) dd,
:root[data-theme] body main.review-structure .review-structure__facts dd {
  display: block; min-width: 0; margin: 0; padding: 0;
  font-size: 16px; line-height: 1.5; font-weight: 650;
  text-align: end; overflow-wrap: anywhere;
}
.catalog-review-card { container-type: inline-size; container-name: review-card; }
@container review-card (max-width: 480px) {
  :root[data-theme] body main .catalog-review-card .seo-card-meta > :is(.access-fact, .price-fact) {
    grid-template-columns: minmax(0, 1fr); gap: 4px;
  }
  :root[data-theme] body main .catalog-review-card .seo-card-meta :is(.access-fact, .price-fact) dd { text-align: start; }
}
@container lead-review (max-width: 480px) {
  :root[data-theme] body main .hero-focus .focus-facts > :is(.access-fact, .price-fact) {
    grid-template-columns: minmax(0, 1fr); gap: 4px;
  }
  :root[data-theme] body main .hero-focus .focus-facts :is(.access-fact, .price-fact) dd { text-align: start; }
}
@media (max-width: 650px) {
  :root[data-theme] body main.review-structure .review-structure__facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  :root[data-theme] body main.review-structure .review-structure__facts dd { text-align: start; }
}

/* Long plan descriptions should not force mobile readers across six columns. */
@media (max-width: 650px) {
  .review-structure #review-price .review-structure__table-wrap { background: transparent; overflow: visible; }
  .review-structure #review-price table { display: block; min-width: 0; }
  .review-structure #review-price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .review-structure #review-price tbody { display: grid; gap: 16px; }
  .review-structure #review-price tr { display: block; padding: 8px 18px; border-radius: 12px; background: var(--surface); }
  .review-structure #review-price td { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 12px 0; overflow-wrap: anywhere; }
  .review-structure #review-price td::before { content: attr(data-label); color: var(--muted); font-size: 13px; line-height: 1.65; }
  .review-structure #review-price td:first-child { font-weight: 700; }
  .review-structure #review-price td:last-child { border-bottom: 0; }
}

/* Review summary: one quiet definition list rather than four button-like cards. */
:root[data-theme] body main.review-structure .review-structure__facts {
  gap: 0; padding: 4px 20px; border: 0; border-radius: 14px;
  background: var(--surface); overflow: hidden;
}
:root[data-theme] body main.review-structure .review-structure__facts > div {
  grid-template-columns: 140px minmax(0, 1fr); gap: 8px 20px; padding: 12px 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
:root[data-theme] body main.review-structure .review-structure__facts > div + div { border-top: 1px solid var(--line); }
:root[data-theme] body main.review-structure .review-structure__facts dt { color: var(--muted); }
:root[data-theme] body main.review-structure .review-structure__facts dd { text-align: left; color: var(--ink); font-weight: 500; }
:root[data-theme] body main.review-structure { padding-bottom: 0; }
:root[data-theme] body main.review-structure .review-structure__comments { margin-top: 32px; }
:root[data-theme] body main.review-structure #comments { padding: 0; margin: 0; }
:root[data-theme] body main.review-structure #comments .container { width: 100%; padding: 0; }
.comments-closed-note { color: var(--muted); font-size: 14px; }
:root[data-theme] body .editorial-recommendation { margin: 0; padding: 48px 0; }
:root[data-theme] body .editorial-recommendation__link {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 24px 28px; min-height: 0; text-decoration: none; color: var(--ink);
  transition: background-color .18s ease, border-color .18s ease;
}
:root[data-theme] body .editorial-recommendation .feature-title { font-size: clamp(21px, 2vw, 26px); line-height: 1.3; margin: 8px 0; }
:root[data-theme] body .editorial-recommendation .feature-description { max-width: 78ch; margin: 0; font-size: 16px; line-height: 1.6; }
:root[data-theme] body .editorial-recommendation__action { color: var(--accent); font-size: 15px; font-weight: 650; }
:root[data-theme] body .editorial-recommendation__link:hover {
  background: var(--content-card-hover, var(--soft-accent)); border-color: var(--accent);
  text-decoration: none; box-shadow: none; transform: none;
}
:root[data-theme] body .editorial-recommendation__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 650px) {
  :root[data-theme] body main.review-structure .review-structure__facts { padding: 2px 16px; }
  :root[data-theme] body main.review-structure .review-structure__facts > div { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 11px 0; }
  :root[data-theme] body .editorial-recommendation { padding: 28px 0; }
  :root[data-theme] body .editorial-recommendation__link { padding: 20px; }
}
/* The shared promo component must use one palette for both background and copy. */
:root[data-theme] body .editorial-recommendation__link { background: var(--surface); border-color: var(--line); }
:root[data-theme] body .editorial-recommendation .feature-title { color: var(--ink); }
:root[data-theme] body .editorial-recommendation .feature-description { color: var(--muted); }
:root[data-theme] body .editorial-recommendation .feature-label { color: var(--accent); }
:root[data-theme] body .editorial-recommendation__link:hover { background: var(--soft-accent); border-color: var(--accent); }
