.uth-blog-page .uth-mobile-score,
.uth-blog-page .uth-mobile-specs {
  --uth-score-excellent: #178451;
  --uth-score-good: #4f7d36;
  --uth-score-average: #a36a10;
  --uth-score-below: #b45a27;
  --uth-score-poor: #a43c48;
  --uth-score-track: #efe8ea;
}

.uth-blog-page .uth-mobile-score {
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--uth-blog-border);
  border-radius: var(--uth-blog-feature-radius);
  background: var(--uth-blog-surface);
  box-shadow: var(--uth-blog-shadow-soft);
}

.uth-mobile-score__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.uth-mobile-score__profile {
  margin: 0 0 5px;
  color: var(--uth-blog-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uth-mobile-score__intro h2 {
  margin: 0;
  color: var(--uth-blog-text);
  font-family: var(--uth-blog-heading-font);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.05;
}

.uth-mobile-score__method {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--uth-blog-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.uth-mobile-score__context-note {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--uth-blog-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.uth-mobile-score__overall {
  min-width: 154px;
  padding: 16px 18px;
  border: 1px solid var(--uth-blog-border);
  border-radius: 14px;
  text-align: center;
}

.uth-mobile-score__number {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  color: var(--uth-blog-text);
}

.uth-mobile-score__number strong {
  font-size: clamp(36px, 5vw, 54px);
  line-height: .95;
}

.uth-mobile-score__number span,
.uth-mobile-score__confidence {
  color: var(--uth-blog-text-secondary);
  font-size: 12px;
}

.uth-mobile-score__rating {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.uth-mobile-score__rating > span {
  display: inline;
}

.uth-mobile-score__rating > small {
  display: inline;
  margin: 0;
  color: var(--uth-blog-text-secondary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.uth-mobile-score__pending {
  color: var(--uth-blog-text);
  font-size: 18px;
  font-weight: 800;
}

.uth-mobile-score__confidence { margin-top: 6px; }

.uth-mobile-score__categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--uth-blog-border);
}

.uth-mobile-score__category-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--uth-blog-text);
  font-size: 13px;
  line-height: 1.4;
}

.uth-mobile-score__category-head strong { font-size: 14px; }

.uth-mobile-score__bar {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--uth-score-track);
}

.uth-mobile-score__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--uth-blog-primary);
}

.uth-mobile-score__category small {
  display: block;
  margin-top: 6px;
  color: var(--uth-blog-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.uth-mobile-score__category.is-excellent .uth-mobile-score__bar span,
.uth-mobile-spec-rating.is-excellent { --uth-rating-color: var(--uth-score-excellent); }
.uth-mobile-score__category.is-good .uth-mobile-score__bar span,
.uth-mobile-spec-rating.is-good { --uth-rating-color: var(--uth-score-good); }
.uth-mobile-score__category.is-average .uth-mobile-score__bar span,
.uth-mobile-spec-rating.is-average { --uth-rating-color: var(--uth-score-average); }
.uth-mobile-score__category.is-below-average .uth-mobile-score__bar span,
.uth-mobile-spec-rating.is-below-average { --uth-rating-color: var(--uth-score-below); }
.uth-mobile-score__category.is-poor .uth-mobile-score__bar span,
.uth-mobile-spec-rating.is-poor { --uth-rating-color: var(--uth-score-poor); }

.uth-mobile-score__category.is-excellent .uth-mobile-score__bar span,
.uth-mobile-score__category.is-good .uth-mobile-score__bar span,
.uth-mobile-score__category.is-average .uth-mobile-score__bar span,
.uth-mobile-score__category.is-below-average .uth-mobile-score__bar span,
.uth-mobile-score__category.is-poor .uth-mobile-score__bar span { background: var(--uth-rating-color); }

.uth-mobile-score__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--uth-blog-border);
  color: var(--uth-blog-text-secondary);
  font-size: 12px;
}

.uth-mobile-score__highlights strong { color: var(--uth-blog-text); }

.uth-blog-page .uth-mobile-specs {
  margin: 0 0 42px;
}

.uth-mobile-specs__header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--uth-blog-border);
}

.uth-mobile-specs__header h2,
.uth-mobile-specs__group h3 {
  color: var(--uth-blog-text);
  font-family: var(--uth-blog-heading-font);
  font-weight: 400;
}

.uth-mobile-specs__header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
}

.uth-mobile-specs__header p {
  margin: 10px 0 0;
  color: var(--uth-blog-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.uth-mobile-specs__group { margin-top: 30px; }

.uth-mobile-specs__group h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

.uth-mobile-specs__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--uth-blog-border);
  border-radius: 12px;
  background: var(--uth-blog-surface);
}

.uth-mobile-specs__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: fixed;
}

.uth-mobile-specs__table th,
.uth-mobile-specs__table td {
  padding: 11px 16px 5px;
  border-bottom: 0;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.45;
}

.uth-mobile-specs__table thead th {
  color: var(--uth-blog-text-secondary);
  background: color-mix(in srgb, var(--uth-blog-blush) 50%, white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.uth-mobile-specs__table tbody th {
  width: 34%;
  color: var(--uth-blog-text);
  background: color-mix(in srgb, var(--uth-blog-blush) 50%, white);
  font-weight: 700;
}

.uth-mobile-specs__table tbody tr:last-child th,
.uth-mobile-specs__table tbody tr:last-child td { border-bottom: 0; }

.uth-mobile-spec-rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--uth-rating-color, var(--uth-blog-text-secondary));
  font-size: 11px;
  font-weight: 700;
}

.uth-mobile-spec-rating strong { font-size: 12px; }

.uth-mobile-spec-state {
  display: inline-block;
  color: var(--uth-blog-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.uth-mobile-spec-state.is-optional { color: var(--uth-blog-accent); }
.uth-mobile-spec-state.is-na { opacity: .72; }
.uth-mobile-spec-empty { color: var(--uth-blog-text-secondary); opacity: .65; }

@media (max-width: 900px) {
  .uth-mobile-score__categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .uth-mobile-score__main { grid-template-columns: 1fr; }
  .uth-mobile-score__overall { width: 100%; min-width: 0; }
  .uth-mobile-score__categories { grid-template-columns: 1fr; }
  .uth-mobile-score { border-radius: 12px; }
}

/* Native Gutenberg device specification block. */
.uth-device-specs-block {
  --uth-score-excellent: #178451;
  --uth-score-good: #4f7d36;
  --uth-score-average: #a36a10;
  --uth-score-below: #b45a27;
  --uth-score-poor: #a43c48;
  --uth-score-track: #efe8ea;
  margin: clamp(28px, 4vw, 46px) 0;
}
.uth-device-specs-block > .uth-mobile-score { margin-top: 0; }
.uth-device-specs-block > .uth-mobile-specs { margin-top: 32px; }
.uth-device-specs-block .uth-mobile-spec-rating.is-information,
.uth-device-specs-block .uth-mobile-spec-rating.is-context,
.uth-device-specs-block .uth-mobile-spec-rating.is-contextual,
.uth-device-specs-block .uth-mobile-spec-rating.is-optional,
.uth-device-specs-block .uth-mobile-spec-rating.is-na,
.uth-device-specs-block .uth-mobile-spec-rating.is-unknown {
  color: var(--uth-blog-text-secondary, #6b6670);
}

/* Each logical specification subgroup is a separate, full-width table card. */
.uth-mobile-specs__subtables {
  display: grid;
  width: 100%;
  gap: 14px;
}

.uth-mobile-specs__subtable {
  width: 100%;
  min-width: 0;
}

.uth-mobile-specs__subtable .uth-mobile-specs__table-wrap {
  width: 100%;
  margin: 0;
}

.uth-device-specs-block .uth-mobile-specs__subtable .uth-mobile-specs__table {
  display: table;
  width: 100% !important;
  min-width: 620px;
  max-width: none;
  margin: 0 !important;
  box-sizing: border-box;
}

.uth-mobile-specs__subtable-title {
  margin: 0;
  padding: 11px 16px;
  border-bottom: 0;
  color: var(--uth-blog-text);
  background: var(--uth-blog-surface);
  font-family: var(--uth-blog-heading-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* General / detailed review switcher. */
.uth-device-review-switcher {
  margin-top: 22px;
}

.uth-device-review-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--uth-blog-border);
  border-radius: 10px;
  background: var(--uth-blog-surface);
}

.uth-device-review-tab {
  appearance: none;
  margin: 0;
  padding: 9px 15px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--uth-blog-text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.uth-device-review-tab:hover {
  color: var(--uth-blog-text);
}

.uth-device-review-tab.is-active {
  background: color-mix(in srgb, var(--uth-blog-blush) 60%, white);
  color: var(--uth-blog-text);
}

.uth-device-review-tab:focus-visible {
  outline: 2px solid var(--uth-blog-accent);
  outline-offset: 2px;
}

.uth-device-review-panel[hidden] {
  display: none !important;
}

.uth-device-review-panel > .uth-mobile-specs {
  margin-top: 0;
}

.uth-device-specs-general .uth-mobile-specs__group:first-child,
.uth-device-specs-table .uth-mobile-specs__group:first-child {
  margin-top: 0;
}

.uth-device-specs-general .uth-mobile-specs__general-table-wrap {
  width: 100%;
  margin: 0;
}

.uth-device-specs-general .uth-mobile-specs__general-table {
  display: table;
  width: 100% !important;
  min-width: 620px;
  max-width: none;
  margin: 0 !important;
  box-sizing: border-box;
}

.uth-device-specs-general .uth-mobile-specs__general-table tbody th {
  width: 28%;
}

.uth-device-specs-general .uth-mobile-specs__general-table td:nth-child(2) {
  width: 48%;
}

.uth-device-specs-general .uth-mobile-specs__general-table td:nth-child(3) {
  width: 24%;
}

@media (max-width: 640px) {
  .uth-device-review-tabs {
    width: 100%;
  }

  .uth-device-review-tab {
    flex: 1 1 50%;
    padding-inline: 10px;
    text-align: center;
  }

  /* Phone layout: keep all review columns inside the viewport. */
  .uth-device-specs-block .uth-mobile-specs__table-wrap,
  .uth-device-specs-general .uth-mobile-specs__general-table-wrap {
    max-width: 100%;
    overflow-x: visible;
  }

  .uth-device-specs-block .uth-mobile-specs__table,
  .uth-device-specs-block .uth-mobile-specs__subtable .uth-mobile-specs__table,
  .uth-device-specs-general .uth-mobile-specs__general-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed;
  }

  .uth-device-specs-block .uth-mobile-specs__table th,
  .uth-device-specs-block .uth-mobile-specs__table td {
    min-width: 0;
    padding: 9px 8px 6px;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    font-size: 11px;
    line-height: 1.4;
  }

  .uth-device-specs-block.uth-mobile-specs__table thead th {
    padding-block: 9px;
    font-size: 9px;
    letter-spacing: .045em;
  }

  .uth-device-specs-general .uth-mobile-specs__general-table tbody th {
    width: 36%;
  }

  .uth-device-specs-general .uth-mobile-specs__general-table td:nth-child(2) {
    width: 41%;
  }

  .uth-device-specs-general .uth-mobile-specs__general-table td:nth-child(3) {
    width: 23%;
  }

  .uth-device-specs-table .uth-mobile-specs__table tbody th {
    width: 34%;
  }

  .uth-device-specs-table .uth-mobile-specs__table td:nth-child(2) {
    width: 40%;
  }

  .uth-device-specs-table .uth-mobile-specs__table td:nth-child(3) {
    width: 26%;
  }

  .uth-device-specs-block .uth-mobile-spec-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 5px;
    min-width: 0;
    font-size: 10px;
    line-height: 1.3;
  }

  .uth-device-specs-block .uth-mobile-spec-rating strong {
    font-size: 10px;
  }

  .uth-mobile-specs__subtable-title {
    padding-inline: 10px;
    font-size: 14px;
  }
}

/* Overall technical score rating colours. */
.uth-mobile-score__overall.is-excellent .uth-mobile-score__number,
.uth-mobile-score__overall.is-excellent .uth-mobile-score__number span,
.uth-mobile-score__overall.is-excellent .uth-mobile-score__rating {
  color: var(--uth-score-excellent);
}

.uth-mobile-score__overall.is-good .uth-mobile-score__number,
.uth-mobile-score__overall.is-good .uth-mobile-score__number span,
.uth-mobile-score__overall.is-good .uth-mobile-score__rating {
  color: var(--uth-score-good);
}

.uth-mobile-score__overall.is-average .uth-mobile-score__number,
.uth-mobile-score__overall.is-average .uth-mobile-score__number span,
.uth-mobile-score__overall.is-average .uth-mobile-score__rating {
  color: var(--uth-score-average);
}

.uth-mobile-score__overall.is-below-average .uth-mobile-score__number,
.uth-mobile-score__overall.is-below-average .uth-mobile-score__number span,
.uth-mobile-score__overall.is-below-average .uth-mobile-score__rating {
  color: var(--uth-score-below);
}

.uth-mobile-score__overall.is-poor .uth-mobile-score__number,
.uth-mobile-score__overall.is-poor .uth-mobile-score__number span,
.uth-mobile-score__overall.is-poor .uth-mobile-score__rating {
  color: var(--uth-score-poor);
}

/* Informational device launch colors. */
.uth-device-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.uth-device-color {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--uth-blog-border, #e2dadd);
  border-radius: 999px;
  background: var(--uth-blog-surface, #fff);
  color: var(--uth-blog-text, #2b2730);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.uth-device-color__swatch {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(25, 25, 25, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
}

.uth-device-color__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .uth-device-colors { gap: 5px; }
  .uth-device-color {
    gap: 5px;
    padding: 4px 7px 4px 5px;
    font-size: 10px;
  }
  .uth-device-color__swatch {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}

/* Compact, expandable informational device colors. */
.uth-device-colors {
  gap: 5px;
}

.uth-device-color {
  gap: 5px;
  padding: 3px 7px 3px 4px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.uth-device-color__swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.uth-device-color__name {
  overflow-wrap: normal;
}

.uth-device-colors__more {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
}

.uth-device-colors__more[open] {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.uth-device-colors__more[open] > summary {
  order: 2;
}

.uth-device-colors__more[open] .uth-device-colors__extra {
  order: 1;
  flex: 0 1 auto;
  margin-top: 0;
}

.uth-device-colors__more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px dashed var(--uth-blog-border, #e2dadd);
  border-radius: 999px;
  background: color-mix(in srgb, var(--uth-blog-surface, #fff) 92%, var(--uth-blog-border, #e2dadd));
  color: var(--uth-blog-muted, #74666b);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.uth-device-colors__more > summary::-webkit-details-marker {
  display: none;
}

.uth-device-colors__less-label {
  display: none;
}

.uth-device-colors__more[open] .uth-device-colors__more-label {
  display: none;
}

.uth-device-colors__more[open] .uth-device-colors__less-label {
  display: inline;
}

.uth-device-colors__extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

@media (max-width: 640px) {
  .uth-device-colors {
    gap: 4px;
  }
  .uth-device-color {
    gap: 4px;
    padding: 3px 6px 3px 4px;
    font-size: 10px;
  }
  .uth-device-color__swatch {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }
  .uth-device-colors__more > summary {
    min-height: 21px;
    padding: 3px 7px;
    font-size: 10px;
  }
  .uth-device-colors__extra {
    gap: 4px;
    margin-top: 4px;
  }
}

.uth-mobile-score__number strong .uth-score-decimal{font-size:.40em;font-weight:inherit;line-height:1;vertical-align:baseline}
