/*
Theme Name: UCardCrypto Child
Theme URI: https://ucardcrypto.com/
Description: Child theme of GeneratePress for UCardCrypto.com — crypto card affiliate review site. Phase 1A: single review template.
Author: UCardCrypto
Author URI: https://ucardcrypto.com/
Template: generatepress
Version: 0.2.10
Text Domain: ucardcrypto-child
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --ucc-primary: #0f1d40;
  --ucc-primary-light: #1e3a8a;
  --ucc-accent: #10b981;
  --ucc-accent-light: #34d399;
  --ucc-accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --ucc-warn: #f59e0b;
  --ucc-danger: #ef4444;
  --ucc-accent-tint: rgba(16, 185, 129, 0.08);
  --ucc-danger-tint: rgba(239, 68, 68, 0.08);
  --ucc-text: #0f172a;
  --ucc-text-soft: #334155;
  --ucc-muted: #64748b;
  --ucc-border: #e2e8f0;
  --ucc-border-strong: #cbd5e1;
  --ucc-bg-page: #f8fafc;
  --ucc-bg-card: #ffffff;
  --ucc-bg-soft: #f1f5f9;
  --ucc-bg-dark: #0f1d40;
  --ucc-radius-sm: 8px;
  --ucc-radius: 12px;
  --ucc-radius-lg: 16px;
  --ucc-radius-pill: 9999px;
  --ucc-shadow-sm: 0 1px 2px rgba(15, 29, 64, 0.06);
  --ucc-shadow: 0 4px 12px rgba(15, 29, 64, 0.08);
  --ucc-shadow-lg: 0 12px 32px rgba(15, 29, 64, 0.12);
  --ucc-font: -apple-system, BlinkMacSystemFont, "Inter", "Manrope", "Segoe UI", Roboto, sans-serif;
}

/* =========================================================
   2. BASE / TYPOGRAPHY (scoped to review page)
   ========================================================= */
.ucc-page {
  background: var(--ucc-bg-page);
  color: var(--ucc-text);
  font-family: var(--ucc-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px; /* room for sticky CTA bar */
}
.ucc-page * { box-sizing: border-box; }
.ucc-review h1,
.ucc-review h2,
.ucc-review h3 {
  font-family: var(--ucc-font);
  color: var(--ucc-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.ucc-review h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 0.5rem; }
.ucc-review h2 { font-size: 1.375rem; font-weight: 700; margin: 2rem 0 1rem; }
.ucc-review h3 { font-size: 1.125rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.ucc-review p { margin: 0 0 1rem; color: var(--ucc-text-soft); }
.ucc-review a { color: var(--ucc-primary-light); text-decoration: none; }
.ucc-review a:hover { text-decoration: underline; }
.ucc-review img { max-width: 100%; height: auto; }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.ucc-page {
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 16px;
  max-width: 1200px;
}
.ucc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.ucc-main { min-width: 0; }
.ucc-sidebar { display: none; }

/* =========================================================
   4. BREADCRUMB
   ========================================================= */
.ucc-breadcrumb {
  font-size: 0.8125rem;
  color: var(--ucc-muted);
  margin-bottom: 12px;
}
.ucc-breadcrumb a { color: var(--ucc-muted); }
.ucc-breadcrumb a:hover { color: var(--ucc-primary-light); }
.ucc-breadcrumb .sep { margin: 0 6px; opacity: 0.6; }

/* =========================================================
   5. PAGE HEADER (title + logo + best_for pill)
   ========================================================= */
.ucc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ucc-header__logo {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  border-radius: var(--ucc-radius);
  background: var(--ucc-bg-card);
  box-shadow: var(--ucc-shadow-sm);
  padding: 6px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.ucc-bestfor {
  display: inline-flex;
  align-items: center;
  background: var(--ucc-bg-soft);
  color: var(--ucc-text-soft);
  border-radius: var(--ucc-radius-pill);
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* =========================================================
   5b. HERO SCREENSHOT
   ========================================================= */
.ucc-hero {
  margin: 0 0 1.5rem;
  border-radius: var(--ucc-radius-lg);
  overflow: hidden;
  box-shadow: var(--ucc-shadow);
  background: var(--ucc-bg-card);
}
.ucc-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =========================================================
   6. SCORE BOX (hero)
   ========================================================= */
.ucc-score-box {
  background: var(--ucc-bg-dark);
  background-image: linear-gradient(135deg, #0f1d40 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: var(--ucc-radius-lg);
  padding: 24px 20px;
  box-shadow: var(--ucc-shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.ucc-score-box::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.ucc-score-box__row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.ucc-score-box__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ucc-score-box__num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--ucc-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ucc-score-box__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}
.ucc-score-box__stars { display: flex; gap: 2px; }
.ucc-score-box__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
}
.ucc-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ucc-accent-gradient);
  color: #04261c;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--ucc-radius-pill);
  font-size: 0.875rem;
}
.ucc-promo__code {
  background: rgba(0,0,0,0.15);
  padding: 2px 8px;
  border-radius: var(--ucc-radius-sm);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.05em;
}
/* =========================================================
   7. BUTTONS
   ========================================================= */
.ucc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ucc-font);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: var(--ucc-radius);
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}
.ucc-btn--primary {
  background: var(--ucc-accent-gradient);
  color: #04261c;
  box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}
.ucc-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(16,185,129,0.45); }
.ucc-btn--outline {
  background: transparent;
  color: var(--ucc-primary);
  border: 2px solid var(--ucc-primary);
}
.ucc-btn--outline:hover { background: var(--ucc-primary); color: #fff; }
.ucc-btn--full { width: 100%; }
.ucc-btn--lg { font-size: 1.0625rem; padding: 14px 24px; }

/* =========================================================
   8. CARD CONTAINER (generic block)
   ========================================================= */
.ucc-card {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  box-shadow: var(--ucc-shadow);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--ucc-border);
}

/* =========================================================
   9. OPINION SUMMARY
   ========================================================= */
.ucc-opinion {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ucc-text-soft);
  background: var(--ucc-bg-card);
  padding: 20px;
  border-radius: var(--ucc-radius);
  border-left: 4px solid var(--ucc-accent);
  box-shadow: var(--ucc-shadow-sm);
  margin-bottom: 24px;
}
.ucc-opinion p:last-child { margin-bottom: 0; }

/* =========================================================
   10. PROS / CONS
   ========================================================= */
.ucc-proscons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.ucc-proscons__col {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  padding: 0;
  border: 1px solid var(--ucc-border);
  overflow: hidden;
}
.ucc-proscons__col h3 {
  margin: 0;
  padding: 12px 16px;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ucc-proscons__col--pros h3 { color: var(--ucc-accent); background: var(--ucc-accent-tint); }
.ucc-proscons__col--cons h3 { color: var(--ucc-danger); background: var(--ucc-danger-tint); }
.ucc-proscons__list {
  list-style: none;
  margin: 0;
  padding: 4px 16px 8px;
}
.ucc-proscons__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 0.9375rem;
  color: var(--ucc-text-soft);
  border-bottom: 1px solid var(--ucc-border);
}
.ucc-proscons__list li:last-child { border-bottom: 0; }
.ucc-proscons__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.ucc-proscons__col--pros .ucc-proscons__icon { color: var(--ucc-accent); }
.ucc-proscons__col--cons .ucc-proscons__icon { color: var(--ucc-danger); }

/* =========================================================
   11. SPEC TABLES (dense)
   ========================================================= */
.ucc-spec {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  border: 1px solid var(--ucc-border);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--ucc-shadow-sm);
}
.ucc-spec__heading {
  margin: 0;
  padding: 14px 18px;
  background: var(--ucc-bg-soft);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ucc-primary);
  border-bottom: 1px solid var(--ucc-border);
}
.ucc-spec__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ucc-spec__table th,
.ucc-spec__table td {
  text-align: left;
  padding: 9px 14px;
  font-size: 0.9375rem;
  vertical-align: top;
  border-bottom: 1px solid var(--ucc-border);
  word-wrap: break-word;
}
.ucc-spec__table tr:last-child th,
.ucc-spec__table tr:last-child td { border-bottom: 0; }
.ucc-spec__table tr:nth-child(even) th,
.ucc-spec__table tr:nth-child(even) td { background: var(--ucc-bg-soft); }
.ucc-spec__table th {
  width: 35%;
  font-weight: 600;
  color: var(--ucc-text-soft);
}
.ucc-spec__table td {
  width: 65%;
  color: var(--ucc-text);
}

/* =========================================================
   12. STARS (shared SVG sizing)
   ========================================================= */
.ucc-stars { display: inline-flex; gap: 2px; align-items: center; }
.ucc-stars svg { width: 18px; height: 18px; color: var(--ucc-accent); }
.ucc-stars--lg svg { width: 22px; height: 22px; }
.ucc-stars--sm svg { width: 14px; height: 14px; }

/* =========================================================
   13. VERDICT
   ========================================================= */
.ucc-verdict {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--ucc-shadow);
  border: 1px solid var(--ucc-border);
}
.ucc-verdict__body { color: var(--ucc-text-soft); }
.ucc-verdict__recfor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ucc-bg-soft);
  color: var(--ucc-primary);
  border-radius: var(--ucc-radius-pill);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 12px 0 18px;
}
.ucc-verdict__cta { text-align: center; }

/* =========================================================
   14. USER REVIEWS
   ========================================================= */
.ucc-reviews { margin-top: 32px; }
.ucc-reviews__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.ucc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--ucc-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
}
.ucc-pill--good { background: rgba(16,185,129,0.12); color: #047857; }
.ucc-pill--bad { background: rgba(239,68,68,0.12); color: #b91c1c; }
.ucc-reviews__list { margin-bottom: 24px; }
.ucc-reviews__form { background: var(--ucc-bg-soft); padding: 20px; border-radius: var(--ucc-radius); border: 1px solid var(--ucc-border); }

/* =========================================================
   15. BYLINE FOOTER
   ========================================================= */
.ucc-byline {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--ucc-border);
  font-size: 0.8125rem;
  color: var(--ucc-muted);
  text-align: center;
}

/* =========================================================
   16. STICKY BOTTOM CTA BAR
   ========================================================= */
.ucc-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--ucc-bg-dark);
  background-image: linear-gradient(135deg, #0f1d40 0%, #1e3a8a 100%);
  color: #fff;
  box-shadow: 0 -8px 24px rgba(15,29,64,0.25);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.ucc-sticky-cta[hidden] { display: none; }
.ucc-sticky-cta__text {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.3;
}
.ucc-sticky-cta__brand { font-weight: 700; display: block; font-size: 0.9375rem; }
.ucc-sticky-cta__hook {
  display: block;
  color: rgba(255,255,255,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ucc-sticky-cta .ucc-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.ucc-sticky-cta__close {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}
.ucc-sticky-cta__close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ucc-sticky-cta__close svg { width: 16px; height: 16px; }

/* =========================================================
   17. SIDEBAR SUMMARY (right rail, desktop only)
   ========================================================= */
.ucc-sidebar-card {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  border: 1px solid var(--ucc-border);
  box-shadow: var(--ucc-shadow);
  padding: 20px;
}
.ucc-sidebar-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ucc-sidebar-card__logo {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  border-radius: var(--ucc-radius-sm);
  object-fit: contain;
  background: var(--ucc-bg-soft);
  padding: 4px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.ucc-sidebar-card__brand { font-weight: 700; font-size: 1rem; }
.ucc-sidebar-card__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.ucc-sidebar-card__score-num {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--ucc-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ucc-sidebar-card__score-of { color: var(--ucc-muted); font-size: 0.875rem; }
.ucc-sidebar-card__facts {
  margin: 14px 0;
  padding: 0;
}
.ucc-sidebar-card__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ucc-border);
  font-size: 0.875rem;
}
.ucc-sidebar-card__facts > div:last-child { border-bottom: 0; }
.ucc-sidebar-card__facts dt { margin: 0; color: var(--ucc-muted); }
.ucc-sidebar-card__facts dd { margin: 0; color: var(--ucc-text); font-weight: 600; text-align: right; }

/* =========================================================
   18. UTILITY
   ========================================================= */
.ucc-hide { display: none; }
.ucc-only-desktop { display: none; }

/* =========================================================
   19. MEDIA QUERIES
   ========================================================= */
@media (min-width: 600px) {
  .ucc-page { padding-left: 24px; padding-right: 24px; }
  .ucc-review h1 { font-size: 2rem; }
  .ucc-review h2 { font-size: 1.5rem; }
  .ucc-score-box { padding: 32px; }
  .ucc-score-box__row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
  .ucc-score-box__meta { align-items: flex-start; width: auto; flex: 1; }
  .ucc-score-box__metric { align-items: flex-start; }
  .ucc-proscons { grid-template-columns: 1fr 1fr; }
  .ucc-header {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .ucc-header__title { flex: 1; }
  .ucc-header__logo { order: 2; }
}

@media (min-width: 960px) {
  .ucc-page { padding-top: 24px; }
  .ucc-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
  }
  .ucc-sidebar {
    display: block;
    position: sticky;
    top: 80px;
  }
  .ucc-only-desktop { display: block; }
  .ucc-review h1 { font-size: 2.25rem; }
  .ucc-sticky-cta { padding: 14px 24px; }
  .ucc-sticky-cta__hook { white-space: normal; }
}

@media (min-width: 1100px) {
  .ucc-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* =========================================================
   20. PRINT
   ========================================================= */
@media print {
  .ucc-sticky-cta, .ucc-sidebar { display: none !important; }
}

/* =========================================================
   === Archive Page (Phase 1B-1) ===
   All rules below are scoped under .ucc-archive or
   .ucc-archive-* class names so they cannot affect Phase 1A
   single-review styling.
   ========================================================= */

.ucc-archive { padding-bottom: 64px; }

/* Header */
.ucc-archive-header { margin: 8px 0 24px; }
.ucc-archive-header h1 { font-size: 1.875rem; font-weight: 800; margin: 0 0 8px; color: var(--ucc-text); letter-spacing: -0.01em; }
.ucc-archive-header__intro { font-size: 1rem; color: var(--ucc-text-soft); margin: 0; max-width: 720px; }

/* Empty state */
.ucc-archive-empty {
  background: var(--ucc-bg-card);
  border: 1px dashed var(--ucc-border-strong);
  border-radius: var(--ucc-radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--ucc-muted);
  font-size: 0.9375rem;
}
.ucc-archive-empty p { margin: 0; }

/* Table card */
.ucc-archive-table__wrap {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius-lg);
  box-shadow: var(--ucc-shadow);
  border: 1px solid var(--ucc-border);
  overflow: hidden;
  margin-bottom: 40px;
}
.ucc-archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.ucc-archive-table thead th {
  background: var(--ucc-primary);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  user-select: none;
}
.ucc-archive-table thead th[data-sort] {
  cursor: pointer;
}
.ucc-archive-table thead th[data-sort]:hover { background: var(--ucc-primary-light); }
.ucc-archive-table thead th[data-sort]:focus-visible {
  outline: 2px solid var(--ucc-accent);
  outline-offset: -2px;
}
.ucc-archive-table__sort-ind {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75rem;
  opacity: 0.85;
  min-width: 9px;
}

.ucc-archive-table tbody tr {
  border-bottom: 1px solid var(--ucc-border);
  transition: background 0.15s ease;
}
.ucc-archive-table tbody tr:last-child { border-bottom: 0; }
.ucc-archive-table tbody tr:nth-child(even) { background: var(--ucc-bg-soft); }
.ucc-archive-table tbody tr:hover { background: rgba(16,185,129,0.06); }

.ucc-archive-table td {
  padding: 14px 14px;
  vertical-align: middle;
  color: var(--ucc-text);
}

/* Logo cell */
.ucc-archive-table__col--logo { width: 96px; }
.ucc-archive-table__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--ucc-radius-sm);
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  cursor: pointer;
  text-decoration: none !important;
  overflow: hidden;
}
.ucc-archive-table__logo {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  padding: 4px;
}
.ucc-archive-table__brand-text {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ucc-primary);
  text-align: center;
  padding: 6px;
  line-height: 1.2;
}

/* Score cell */
.ucc-archive-table__col--score { width: 88px; }
.ucc-archive-score {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.ucc-archive-score--high { color: var(--ucc-accent); }
.ucc-archive-score--mid { color: var(--ucc-warn); }
.ucc-archive-score--low { color: var(--ucc-danger); }

/* CTA cell */
.ucc-archive-table__col--cta { width: 140px; text-align: right; }
.ucc-archive-table__cta {
  font-size: 0.8125rem;
  padding: 10px 16px;
  border-radius: var(--ucc-radius-pill);
  white-space: nowrap;
}

/* Mobile column hide (literal max-width per Phase 1B-1 spec) */
@media (max-width: 599px) {
  .ucc-archive-table__col--crypto,
  .ucc-archive-table__col--rewards { display: none; }
  .ucc-archive-table thead th { padding: 10px 10px; font-size: 0.6875rem; }
  .ucc-archive-table td { padding: 10px 10px; }
  .ucc-archive-table__col--logo { width: 76px; }
  .ucc-archive-table__logo-link { width: 56px; height: 56px; }
  .ucc-archive-table__col--score { width: 64px; }
  .ucc-archive-score { font-size: 1rem; }
  .ucc-archive-table__col--cta { width: auto; }
  .ucc-archive-table__cta { padding: 8px 12px; font-size: 0.75rem; }
}

/* Guides section */
.ucc-archive-guides { margin-top: 8px; }
.ucc-archive-guides__head { margin-bottom: 18px; }
.ucc-archive-guides__head h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; color: var(--ucc-text); letter-spacing: -0.01em; }
.ucc-archive-guides__sub { margin: 0; color: var(--ucc-muted); font-size: 0.9375rem; }
.ucc-archive-guides__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 600px) {
  .ucc-archive-guides__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 960px) {
  .ucc-archive-guides__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.ucc-archive-guide {
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius);
  overflow: hidden;
  box-shadow: var(--ucc-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ucc-archive-guide:hover {
  transform: translateY(-2px);
  box-shadow: var(--ucc-shadow);
}
.ucc-archive-guide__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ucc-bg-soft);
}
.ucc-archive-guide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ucc-archive-guide__media--placeholder {
  background: var(--ucc-accent-gradient);
}
.ucc-archive-guide__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ucc-archive-guide__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--ucc-text);
}
.ucc-archive-guide__title a { color: inherit; text-decoration: none; }
.ucc-archive-guide__title a:hover { color: var(--ucc-primary-light); }
.ucc-archive-guide__excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ucc-text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ucc-archive-guide__date {
  font-size: 0.75rem;
  color: var(--ucc-muted);
}
.ucc-archive-guide__more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ucc-primary-light);
  align-self: flex-start;
}

/* =========================================================
   === Latest Guides — Phase 1B-2 refinement ===
   Whole card becomes an anchor; tighter padding; image fixed
   16:9; excerpt + "Read more" removed in markup.
   ========================================================= */
a.ucc-archive-guide {
  text-decoration: none;
  color: inherit;
}
.ucc-archive-guide { cursor: pointer; }
.ucc-archive-guide__media {
  display: block;
  aspect-ratio: 16 / 9;
}
.ucc-archive-guide__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ucc-archive-guide__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--ucc-text);
}
a.ucc-archive-guide:hover .ucc-archive-guide__title { color: var(--ucc-primary-light); }
.ucc-archive-guide__date {
  font-size: 0.75rem;
  color: var(--ucc-muted);
}

/* =========================================================
   === Compare Page (Phase 1B-2) ===
   ========================================================= */
.ucc-compare { padding-bottom: 64px; }
.ucc-compare-header { margin: 8px 0 18px; }
.ucc-compare-header h1 {
  font-size: 1.875rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ucc-text);
}
.ucc-compare-intro {
  font-size: 1rem;
  color: var(--ucc-text-soft);
  margin-bottom: 24px;
  max-width: 820px;
}
.ucc-compare-intro p:last-child { margin-bottom: 0; }

.ucc-compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.ucc-compare-card {
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius);
  box-shadow: var(--ucc-shadow-sm);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.ucc-compare-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--ucc-radius-sm);
  background: var(--ucc-bg-soft);
  overflow: hidden;
  text-decoration: none;
}
.ucc-compare-card__logo img {
  max-width: 56px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.ucc-compare-card__brand-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ucc-primary);
  padding: 4px;
  line-height: 1.15;
}
.ucc-compare-card__name { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ucc-text); }
.ucc-compare-card__score { font-size: 1.25rem; }
.ucc-compare-card__cta {
  font-size: 0.8125rem;
  padding: 8px 14px;
  border-radius: var(--ucc-radius-pill);
  border-width: 2px;
}

.ucc-compare-table { margin-bottom: 24px; }
.ucc-compare-table__desktop { display: none; }
.ucc-compare-section {
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius);
  box-shadow: var(--ucc-shadow-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.ucc-compare-section__heading {
  margin: 0;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--ucc-bg-soft);
  color: var(--ucc-primary);
  border-bottom: 1px solid var(--ucc-border);
}
.ucc-compare-section__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ucc-compare-section__table th,
.ucc-compare-section__table td {
  padding: 10px 14px;
  font-size: 0.9375rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ucc-border);
  word-wrap: break-word;
}
.ucc-compare-section__table tr:last-child th,
.ucc-compare-section__table tr:last-child td { border-bottom: 0; }
.ucc-compare-section__table tr:nth-child(even) th,
.ucc-compare-section__table tr:nth-child(even) td { background: var(--ucc-bg-soft); }
.ucc-compare-section__table th {
  width: 30%;
  font-weight: 600;
  color: var(--ucc-text-soft);
}
.ucc-compare-section__table td {
  width: 35%;
  color: var(--ucc-text);
}

.ucc-compare-table__mobile { display: block; }
.ucc-compare-table__mobile-card { margin-bottom: 28px; }
.ucc-compare-table__mobile-brand {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--ucc-bg-dark);
  background-image: linear-gradient(135deg, #0f1d40 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: var(--ucc-radius);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.ucc-compare-proscons { margin-bottom: 24px; }
.ucc-compare-proscons h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 8px 0 14px;
}
.ucc-compare-proscons__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.ucc-compare-proscons__cell {
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius);
  padding: 14px 16px;
}
.ucc-compare-proscons__cell--pros { border-top: 3px solid var(--ucc-accent); }
.ucc-compare-proscons__cell--cons { border-top: 3px solid var(--ucc-danger); }
.ucc-compare-proscons__cell h3 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.ucc-compare-proscons__cell--pros h3 { color: var(--ucc-accent); }
.ucc-compare-proscons__cell--cons h3 { color: var(--ucc-danger); }
.ucc-compare-proscons__cell ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--ucc-text-soft);
}
.ucc-compare-proscons__cell ul li { padding: 3px 0; }
.ucc-compare-proscons__empty { color: var(--ucc-muted); margin: 0; font-size: 0.875rem; }

.ucc-compare-verdict {
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius);
  box-shadow: var(--ucc-shadow-sm);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.ucc-compare-verdict h2 { font-size: 1.25rem; margin: 0 0 10px; }
.ucc-compare-verdict__body { color: var(--ucc-text-soft); margin: 0; }
.ucc-compare-verdict__body p:last-child { margin-bottom: 0; }
.ucc-compare-footer-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

@media (min-width: 600px) {
  .ucc-compare-table__desktop { display: block; }
  .ucc-compare-table__mobile { display: none; }
  .ucc-compare-proscons__row { grid-template-columns: 1fr 1fr; }
  .ucc-compare-footer-ctas { grid-template-columns: 1fr 1fr; }
  .ucc-compare-cards { gap: 18px; }
  .ucc-compare-card { padding: 20px; }
  .ucc-compare-card__logo { width: 80px; height: 80px; }
  .ucc-compare-card__logo img { max-width: 72px; max-height: 72px; }
  .ucc-compare-card__name { font-size: 1.125rem; }
  .ucc-compare-card__score { font-size: 1.5rem; }
}

/* =========================================================
   === Compare Form ===
   ========================================================= */
.ucc-compare-form {
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius-lg);
  box-shadow: var(--ucc-shadow);
  padding: 24px 20px;
  max-width: 720px;
  margin: 16px 0;
}
.ucc-compare-form__heading { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; color: var(--ucc-text); }
.ucc-compare-form__intro { margin: 0 0 16px; color: var(--ucc-text-soft); font-size: 0.9375rem; }
.ucc-compare-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.ucc-compare-form__field { display: flex; flex-direction: column; gap: 6px; }
.ucc-compare-form__label { font-size: 0.8125rem; font-weight: 600; color: var(--ucc-text-soft); }
.ucc-compare-form__select,
.ucc-compare-with__select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9375rem;
  border-radius: var(--ucc-radius-sm);
  border: 1px solid var(--ucc-border-strong);
  background: var(--ucc-bg-card);
  color: var(--ucc-text);
  font-family: var(--ucc-font);
}
.ucc-compare-form__select:focus,
.ucc-compare-with__select:focus { outline: 2px solid var(--ucc-accent); outline-offset: 1px; }
.ucc-compare-form__vs {
  display: none;
  font-weight: 700;
  color: var(--ucc-muted);
  text-align: center;
  font-size: 0.875rem;
  padding-bottom: 10px;
}
.ucc-compare-form__btn:disabled,
.ucc-compare-with__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
@media (min-width: 600px) {
  .ucc-compare-form__row { grid-template-columns: 1fr auto 1fr; }
  .ucc-compare-form__vs { display: inline-block; }
}

.ucc-compare-with {
  background: var(--ucc-bg-soft);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius);
  padding: 16px 18px;
  margin: 24px 0;
}
.ucc-compare-with h2 { font-size: 1.125rem; margin: 0 0 10px; }
.ucc-compare-with__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}
.ucc-compare-with__field { display: flex; flex-direction: column; gap: 6px; }
.ucc-compare-with__label { font-size: 0.8125rem; font-weight: 600; color: var(--ucc-text-soft); }
.ucc-compare-with__btn { padding: 10px 16px; font-size: 0.875rem; }
@media (min-width: 600px) {
  .ucc-compare-with__row { grid-template-columns: 1fr auto; }
}

/* =========================================================
   === Best-Of Shortcode ===
   ========================================================= */
.ucc-bestof {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius-lg);
  box-shadow: var(--ucc-shadow);
  overflow: hidden;
}
.ucc-bestof__row {
  display: grid;
  grid-template-columns: 56px 64px 1fr;
  grid-template-areas:
    "rank logo brand"
    "rank logo score"
    "key  key  key"
    "cta  cta  cta";
  gap: 8px 12px;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid var(--ucc-border);
}
.ucc-bestof__row:last-child { border-bottom: 0; }
.ucc-bestof__row:nth-child(even) { background: var(--ucc-bg-soft); }
.ucc-bestof__rank {
  grid-area: rank;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ucc-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ucc-bestof__logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--ucc-radius-sm);
  background: var(--ucc-bg-soft);
  border: 1px solid var(--ucc-border);
  overflow: hidden;
  text-decoration: none;
}
.ucc-bestof__logo img {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.ucc-bestof__brand-text {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ucc-primary);
  text-align: center;
  padding: 4px;
  line-height: 1.1;
}
.ucc-bestof__brand {
  grid-area: brand;
  font-weight: 700;
  font-size: 1rem;
}
.ucc-bestof__brand a { color: var(--ucc-text); text-decoration: none; }
.ucc-bestof__brand a:hover { color: var(--ucc-primary-light); }
.ucc-bestof__score {
  grid-area: score;
  font-size: 0.875rem;
}
.ucc-bestof__keyspec {
  grid-area: key;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ucc-text-soft);
  background: var(--ucc-bg-card);
  padding: 6px 10px;
  border-radius: var(--ucc-radius-sm);
  border: 1px solid var(--ucc-border);
}
.ucc-bestof__row:nth-child(even) .ucc-bestof__keyspec { background: var(--ucc-bg-page); }
.ucc-bestof__keyspec-label { color: var(--ucc-muted); font-weight: 600; flex: 0 0 auto; }
.ucc-bestof__keyspec-value {
  color: var(--ucc-text);
  font-weight: 600;
  text-align: right;
  min-width: 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.ucc-bestof__cta {
  grid-area: cta;
  font-size: 0.8125rem;
  padding: 10px 16px;
  border-radius: var(--ucc-radius-pill);
  text-align: center;
  justify-self: stretch;
}
.ucc-bestof-empty,
.ucc-bestof-warn {
  background: var(--ucc-bg-card);
  border: 1px dashed var(--ucc-border-strong);
  border-radius: var(--ucc-radius);
  padding: 20px;
  color: var(--ucc-muted);
  font-size: 0.9375rem;
  text-align: center;
}
.ucc-bestof-warn { color: var(--ucc-warn); border-color: var(--ucc-warn); text-align: left; }
.ucc-bestof-warn code { background: rgba(0,0,0,0.05); padding: 1px 6px; border-radius: 4px; }

@media (min-width: 600px) {
  .ucc-bestof__row {
    /* rank | logo | brand | score | key (Rewards) | cta
       Logo + Score + CTA are fixed; Brand takes 1fr, Rewards takes 2fr
       so long descriptions get the slack instead of wrapping to 4-5 lines. */
    grid-template-columns: 64px 80px minmax(120px, 1fr) 80px minmax(200px, 2fr) 120px;
    grid-template-areas: "rank logo brand score key cta";
    padding: 14px 18px;
    gap: 16px;
  }
  .ucc-bestof__rank { font-size: 2rem; text-align: center; }
  .ucc-bestof__logo { width: 64px; height: 64px; }
  .ucc-bestof__brand { font-size: 1.0625rem; }
  .ucc-bestof__score { font-size: 1.125rem; }
  .ucc-bestof__keyspec { padding: 8px 14px; min-width: 0; }
  .ucc-bestof__cta { justify-self: stretch; padding: 10px 18px; }
}

/* =========================================================
   === Compare Page CTAs ===
   "Get {Brand} →" affiliate buttons. Two locations:
   - Top desktop row sits between the score-box headers and the
     spec table; hidden on mobile (mobile uses per-card buttons
     emitted inside .ucc-compare-table__mobile-card instead).
   - Bottom row sits before the existing Read X Review row.
   ========================================================= */
.ucc-compare-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.ucc-compare-cta-row--top { display: none; }
.ucc-compare-cta-row--bottom { margin: 32px 0 16px; }

.ucc-compare-cta-row__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ucc-muted);
  font-size: 1rem;
  min-height: 48px;
}

.ucc-compare-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ucc-primary);
  color: #fff !important;
  font-family: var(--ucc-font);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 28px;
  border-radius: var(--ucc-radius-pill);
  border: 0;
  text-decoration: none !important;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 29, 64, 0.10);
}
.ucc-compare-cta:hover {
  background: var(--ucc-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 29, 64, 0.22);
}
.ucc-compare-cta:focus-visible {
  outline: 2px solid var(--ucc-accent);
  outline-offset: 2px;
}

/* Per-card mobile button injected inside each stacked spec sheet */
.ucc-compare-table__mobile-card .ucc-compare-cta {
  display: flex;
  width: 100%;
  margin: 0 0 16px;
}

@media (min-width: 600px) {
  .ucc-compare-cta { font-size: 1.0625rem; }
  .ucc-compare-cta-row {
    flex-direction: row;
    gap: 16px;
  }
  .ucc-compare-cta-row--top { display: flex; }
  .ucc-compare-cta-row > .ucc-compare-cta,
  .ucc-compare-cta-row > .ucc-compare-cta-row__placeholder {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* =========================================================
   === Homepage === (Phase 1B-3a)
   ========================================================= */
.ucc-home {
  padding-bottom: 64px;
}
.ucc-home > * + * {
  margin-top: 56px;
}

/* ---- Hero ---- */
.ucc-home-hero {
  background: linear-gradient(180deg, var(--ucc-bg-soft) 0%, var(--ucc-bg-card) 100%);
  padding: 48px 16px;
  text-align: center;
  margin-top: 0;
}
.ucc-home-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}
.ucc-home-hero h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ucc-text);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.ucc-home-hero__sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ucc-muted);
  margin: 0;
}
@media (min-width: 768px) {
  .ucc-home-hero {
    padding: 80px 24px;
  }
  .ucc-home-hero h1 {
    font-size: 2.5rem;
  }
  .ucc-home-hero__sub {
    font-size: 1.125rem;
  }
}

/* ---- Section headers (shared) ---- */
.ucc-home-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0 16px;
}
.ucc-home-section__head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ucc-text);
  margin: 0 0 8px;
}
.ucc-home-section__sub {
  color: var(--ucc-muted);
  font-size: 0.9375rem;
  margin: 0;
}
@media (min-width: 768px) {
  .ucc-home-section__head h2 { font-size: 1.875rem; }
  .ucc-home-section__sub { font-size: 1rem; }
}

/* ---- Card Finder form ---- */
.ucc-home-finder {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius-lg);
  box-shadow: var(--ucc-shadow);
  border: 1px solid var(--ucc-border);
  padding: 24px 16px;
  margin: 32px 16px 0;
  max-width: 880px;
}
.ucc-home-finder__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--ucc-text);
}
.ucc-home-finder__row {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.ucc-home-finder__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ucc-text);
  margin-bottom: 10px;
  padding: 0;
}
.ucc-home-finder__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Pill checkbox/radio */
.ucc-home-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ucc-border-strong);
  border-radius: var(--ucc-radius-pill);
  background: var(--ucc-bg-card);
  color: var(--ucc-text);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.ucc-home-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}
.ucc-home-pill:hover {
  background: var(--ucc-bg-soft);
  border-color: var(--ucc-primary);
}
.ucc-home-pill.is-selected {
  background: var(--ucc-primary);
  color: #fff;
  border-color: var(--ucc-primary);
}
.ucc-home-pill input:focus-visible + span {
  outline: 2px solid var(--ucc-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

.ucc-home-finder__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.ucc-home-finder__submit {
  background: var(--ucc-accent-gradient);
  color: #fff;
  border: 0;
  padding: 14px 32px;
  border-radius: var(--ucc-radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--ucc-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ucc-home-finder__submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--ucc-shadow);
}
.ucc-home-finder__clear {
  background: transparent;
  border: 0;
  color: var(--ucc-muted);
  font-size: 0.9375rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 4px;
}
.ucc-home-finder__clear:hover { color: var(--ucc-text); }

@media (min-width: 768px) {
  .ucc-home-finder {
    margin: 40px auto 0;
    padding: 32px 32px;
  }
  .ucc-home-finder__title { font-size: 1.5rem; }
}

/* ---- Results table ---- */
.ucc-home-results {
  margin: 32px 16px 0;
  max-width: 1100px;
}
.ucc-home-results__heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.ucc-home-results__wrap {
  overflow-x: auto;
  border-radius: var(--ucc-radius-lg);
  border: 1px solid var(--ucc-border);
  background: var(--ucc-bg-card);
  box-shadow: var(--ucc-shadow-sm);
}
.ucc-home-results__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.ucc-home-results__table thead th {
  background: var(--ucc-bg-soft);
  color: var(--ucc-text-soft);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ucc-border);
  white-space: nowrap;
}
.ucc-home-results__table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--ucc-border);
  vertical-align: middle;
}
.ucc-home-results__table tbody tr:last-child td { border-bottom: 0; }
.ucc-home-results__table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}
.ucc-home-results__table tbody tr:hover { background: var(--ucc-bg-soft); }
.ucc-home-results__col--logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.ucc-home-results__logo-link {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ucc-radius-sm);
  background: var(--ucc-bg-soft);
  overflow: hidden;
}
.ucc-home-results__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.ucc-home-results__brand-text {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ucc-text);
  padding: 0 6px;
}
.ucc-home-results__brand {
  font-weight: 600;
  color: var(--ucc-text);
  text-decoration: none;
}
.ucc-home-results__brand:hover { color: var(--ucc-primary); }
.ucc-home-results__cta {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 0.875rem;
}
.ucc-home-results__empty,
.ucc-home-results__empty-initial {
  text-align: center;
  padding: 32px 16px;
  color: var(--ucc-muted);
  font-size: 0.9375rem;
}
.ucc-home-results__reset {
  margin-left: 8px;
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border-strong);
  border-radius: var(--ucc-radius-pill);
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--ucc-text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.ucc-home-results__reset:hover { background: var(--ucc-bg-soft); }

@media (min-width: 768px) {
  .ucc-home-results { margin: 48px auto 0; }
  .ucc-home-results__heading { font-size: 1.5rem; }
}

/* ---- Top Picks ---- */
.ucc-home-picks {
  padding: 0 16px;
}
.ucc-home-picks__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.ucc-home-pick {
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius-lg);
  box-shadow: var(--ucc-shadow-sm);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ucc-home-pick:hover {
  transform: translateY(-2px);
  box-shadow: var(--ucc-shadow);
}
.ucc-home-pick__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--ucc-radius);
  background: var(--ucc-bg-soft);
  overflow: hidden;
}
.ucc-home-pick__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.ucc-home-pick__brand-text {
  font-weight: 700;
  color: var(--ucc-text);
  font-size: 0.9375rem;
  padding: 0 8px;
}
.ucc-home-pick__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}
.ucc-home-pick__name a {
  color: var(--ucc-text);
  text-decoration: none;
}
.ucc-home-pick__name a:hover { color: var(--ucc-primary); }
.ucc-home-pick__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ucc-home-pick__bestfor {
  color: var(--ucc-text-soft);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
}
.ucc-home-pick__cta {
  margin-top: auto;
  padding: 10px 22px;
}

@media (min-width: 640px) {
  .ucc-home-picks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .ucc-home-picks__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Browse by Category ---- */
.ucc-home-cats {
  padding: 0 16px;
}
.ucc-home-cats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.ucc-home-cat {
  display: block;
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius-lg);
  padding: 24px;
  color: var(--ucc-text);
  text-decoration: none;
  box-shadow: var(--ucc-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}
.ucc-home-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ucc-accent-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  border-radius: inherit;
}
.ucc-home-cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--ucc-shadow);
  border-color: var(--ucc-accent);
}
.ucc-home-cat__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 8px;
  position: relative;
}
.ucc-home-cat__desc {
  color: var(--ucc-text-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 16px;
  position: relative;
}
.ucc-home-cat__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ucc-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
}
.ucc-home-cat:hover .ucc-home-cat__link { color: var(--ucc-primary-light); }

@media (min-width: 640px) {
  .ucc-home-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Latest Guides on homepage (reuses .ucc-archive-guides) ---- */
.ucc-home-guides {
  padding: 0 16px;
}

/* =========================================================
   === Homepage Polish === (Phase 1B-3a Polish)
   ========================================================= */

/* Override Fix 3: combined hero + filter container.
   These rules sit AFTER the original Homepage block so they win on cascade. */
.ucc-home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ucc-bg-soft) 0%, var(--ucc-bg-card) 100%);
  padding: 40px 16px 48px;
  text-align: center;
  margin-top: 0;
}
.ucc-home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}
.ucc-home-hero__subhead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ucc-muted);
  margin: 0 0 32px;
}
.ucc-home-hero h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ucc-text);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

/* Decorative blurred shapes — hidden on small screens. */
.ucc-home-hero__shape {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  display: none;
}
.ucc-home-hero__shape--a {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -80px;
  background: rgba(16, 185, 129, 0.08);
}
.ucc-home-hero__shape--b {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: -120px;
  background: rgba(15, 29, 64, 0.06);
  filter: blur(80px);
}
@media (min-width: 768px) {
  .ucc-home-hero {
    padding: 64px 24px 64px;
  }
  .ucc-home-hero h1 {
    font-size: 2.5rem;
  }
  .ucc-home-hero__subhead {
    font-size: 1.125rem;
    margin-bottom: 40px;
  }
  .ucc-home-hero__shape { display: block; }
}

/* Finder card sits inside the hero now — make it visually distinct. */
.ucc-home-hero .ucc-home-finder {
  margin: 0 auto;
  max-width: 880px;
  text-align: left;
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius-lg);
  border: 1px solid var(--ucc-border);
  box-shadow: var(--ucc-shadow);
  padding: 24px 16px;
}
@media (min-width: 768px) {
  .ucc-home-hero .ucc-home-finder {
    padding: 32px;
  }
}

/* Fix 4: 3-row layout — split row 2 (rewards | card type). */
.ucc-home-finder__row-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.ucc-home-finder__row-split > .ucc-home-finder__row {
  margin-bottom: 0;
}
@media (min-width: 600px) {
  .ucc-home-finder__row-split {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Fix 5: Top Picks refined card. */
.ucc-home-picks__grid {
  align-items: stretch;
}
.ucc-home-pick {
  padding: 0;
  text-align: left;
  overflow: hidden;
  align-items: stretch;
  gap: 0;
}
.ucc-home-pick__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  background: var(--ucc-bg-soft);
  overflow: hidden;
  border-radius: 0;
  /* override the old .ucc-home-pick__logo dimensions (different class anyway). */
}
.ucc-home-pick__media img {
  width: 100%;
  height: 100%;
  display: block;
}
.ucc-home-pick__media--photo img {
  object-fit: cover;
  object-position: center;
}
.ucc-home-pick__media--logo img {
  object-fit: contain;
  padding: 16px;
}
.ucc-home-pick__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ucc-primary);
}
.ucc-home-pick__initials {
  color: #fff;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}
.ucc-home-pick__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0 20px 20px;
  text-align: center;
}
.ucc-home-pick__divider {
  border: 0;
  border-top: 1px solid var(--ucc-border);
  margin: 0 0 16px;
  width: 100%;
}
.ucc-home-pick__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 12px;
  line-height: 1.3;
}
.ucc-home-pick__name a {
  color: var(--ucc-text);
  text-decoration: none;
}
.ucc-home-pick__name a:hover { color: var(--ucc-primary); }
.ucc-home-pick__meta {
  justify-content: center;
  margin-bottom: 12px;
}
.ucc-home-pick__bestfor {
  color: var(--ucc-text-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ucc-home-pick__cta {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  padding: 12px 22px;
}

/* Fix 6: category cards with optional featured image (image left, text right). */
.ucc-home-cat {
  display: block;
  /* image-mode applied via .ucc-home-cat--has-image */
}
.ucc-home-cat__body {
  display: block;
}
.ucc-home-cat--has-image {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ucc-home-cat--has-image .ucc-home-cat__media {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: var(--ucc-radius);
  overflow: hidden;
  background: var(--ucc-bg-soft);
  display: block;
}
.ucc-home-cat--has-image .ucc-home-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ucc-home-cat--has-image .ucc-home-cat__body {
  flex: 1 1 auto;
  min-width: 0;
}
@media (min-width: 768px) {
  .ucc-home-cat--has-image .ucc-home-cat__media {
    width: 120px;
    height: 120px;
  }
  .ucc-home-cat--has-image {
    gap: 20px;
  }
}

/* =========================================================
   === Best-Of Hub Page === (Phase 1B-3b)
   The hub uses the same .ucc-home-cats / .ucc-home-cat classes so visual
   treatment stays identical to the homepage Browse by Category section.
   The .ucc-besthub-index wrapper is a no-op hook left for any future
   page-specific tweaks; do not target it for layout.
   ========================================================= */
.ucc-home-cat--coming-soon {
  cursor: default;
  opacity: 0.7;
}
.ucc-home-cat--coming-soon:hover {
  transform: none;
  box-shadow: var(--ucc-shadow-sm);
  border-color: var(--ucc-border);
}
.ucc-home-cat__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--ucc-radius-pill);
  background: var(--ucc-bg-soft);
  color: var(--ucc-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   === Page Template === (Phase 1B-3c)
   ========================================================= */
.ucc-page-wrap {
  max-width: 1100px;
  margin: 32px auto 48px;
  padding: 0 16px;
}
.ucc-page-card {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius-lg);
  box-shadow: var(--ucc-shadow);
  padding: 24px 20px;
  font-family: var(--ucc-font);
  color: var(--ucc-text);
}
.ucc-page-card .ucc-breadcrumb {
  margin: 0 0 12px;
  font-size: 0.875rem;
}
.ucc-page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ucc-text);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.ucc-page-banner {
  margin: 0 0 24px;
  border-radius: var(--ucc-radius);
  overflow: hidden;
}
.ucc-page-banner img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.ucc-page-children {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ucc-border);
}
.ucc-page-children h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.ucc-page-children ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.ucc-page-children a {
  display: block;
  padding: 12px 16px;
  background: var(--ucc-bg-soft);
  border-radius: var(--ucc-radius);
  color: var(--ucc-text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.ucc-page-children a:hover {
  background: var(--ucc-accent-tint);
  color: var(--ucc-primary);
}
@media (min-width: 600px) {
  .ucc-page-children ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .ucc-page-card { padding: 40px 48px; }
  .ucc-page-title { font-size: 2.25rem; }
}

/* =========================================================
   === Single Post Template === (Phase 1B-3c)
   ========================================================= */
.ucc-post-wrap {
  max-width: 1100px;
  margin: 32px auto 48px;
  padding: 0 16px;
}
.ucc-post-card {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius-lg);
  box-shadow: var(--ucc-shadow);
  padding: 24px 20px;
  font-family: var(--ucc-font);
  color: var(--ucc-text);
}
.ucc-post-card .ucc-breadcrumb {
  margin: 0 0 12px;
  font-size: 0.875rem;
}
.ucc-post-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ucc-text);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.ucc-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--ucc-muted);
  font-size: 0.875rem;
  margin: 0 0 24px;
}
.ucc-post-meta a {
  color: var(--ucc-muted);
  text-decoration: none;
}
.ucc-post-meta a:hover { color: var(--ucc-primary); }
.ucc-post-meta__sep { color: var(--ucc-border-strong); }
.ucc-post-meta__cat {
  background: var(--ucc-accent-tint);
  color: var(--ucc-accent);
  padding: 2px 10px;
  border-radius: var(--ucc-radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ucc-post-meta__cat:hover { color: var(--ucc-accent); }
.ucc-post-banner {
  margin: 0 0 24px;
  border-radius: var(--ucc-radius);
  overflow: hidden;
}
.ucc-post-banner img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.ucc-post-author-bio {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding: 24px;
  background: var(--ucc-bg-soft);
  border-radius: var(--ucc-radius-lg);
  align-items: flex-start;
}
.ucc-post-author-bio__avatar {
  border-radius: 50%;
  flex: 0 0 auto;
}
.ucc-post-author-bio__body { min-width: 0; }
.ucc-post-author-bio__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ucc-text);
}
.ucc-post-author-bio__body p {
  margin: 0;
  color: var(--ucc-text-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.ucc-post-related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ucc-border);
}
@media (min-width: 768px) {
  .ucc-post-card { padding: 40px 48px; }
  .ucc-post-title { font-size: 2.25rem; }
}

/* =========================================================
   === Global Content Typography === (Phase 1B-3c)
   Targets the_content() output on Page and Single templates only.
   Wrapping selectors keep these rules from bleeding into card_review
   pages or homepage components.
   ========================================================= */
.ucc-page-content,
.ucc-post-content {
  color: var(--ucc-text-soft);
  font-size: clamp(0.9375rem, 0.4vw + 0.875rem, 1rem);
  line-height: 1.7;
}
.ucc-post-content {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.125rem);
}
.ucc-page-content > *:first-child,
.ucc-post-content > *:first-child { margin-top: 0; }
.ucc-page-content > *:last-child,
.ucc-post-content > *:last-child { margin-bottom: 0; }

.ucc-page-content h2,
.ucc-post-content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ucc-text);
  margin: 2.5rem 0 1rem;
}
.ucc-page-content h3,
.ucc-post-content h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ucc-text);
  margin: 2rem 0 0.75rem;
}
.ucc-page-content h4,
.ucc-post-content h4 {
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ucc-text);
  margin: 1.5rem 0 0.5rem;
}
@media (min-width: 768px) {
  .ucc-page-content h2,
  .ucc-post-content h2 { font-size: 1.75rem; }
  .ucc-page-content h3,
  .ucc-post-content h3 { font-size: 1.375rem; }
  .ucc-page-content h4,
  .ucc-post-content h4 { font-size: 1.125rem; }
}

.ucc-page-content p,
.ucc-post-content p { margin: 0 0 1.25rem; }

.ucc-page-content a,
.ucc-post-content a {
  color: var(--ucc-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.ucc-page-content a:hover,
.ucc-post-content a:hover { color: var(--ucc-accent); }

.ucc-page-content ul,
.ucc-page-content ol,
.ucc-post-content ul,
.ucc-post-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
.ucc-page-content li,
.ucc-post-content li { margin-bottom: 0.5rem; }
.ucc-page-content ul li::marker,
.ucc-post-content ul li::marker,
.ucc-page-content ol li::marker,
.ucc-post-content ol li::marker { color: var(--ucc-muted); }

.ucc-page-content blockquote,
.ucc-post-content blockquote {
  border-left: 4px solid var(--ucc-accent);
  padding: 1rem 1.5rem;
  background: var(--ucc-bg-soft);
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 var(--ucc-radius) var(--ucc-radius) 0;
  color: var(--ucc-text);
}
.ucc-page-content blockquote p:last-child,
.ucc-post-content blockquote p:last-child { margin-bottom: 0; }

.ucc-page-content code,
.ucc-post-content code {
  background: var(--ucc-bg-soft);
  padding: 2px 6px;
  border-radius: var(--ucc-radius-sm);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
}
.ucc-page-content pre,
.ucc-post-content pre {
  background: var(--ucc-bg-soft);
  padding: 1rem;
  border-radius: var(--ucc-radius);
  overflow-x: auto;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
}
.ucc-page-content pre code,
.ucc-post-content pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

.ucc-page-content img,
.ucc-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ucc-radius);
}
.ucc-page-content figure,
.ucc-post-content figure { margin: 1.5rem 0; }
.ucc-page-content figcaption,
.ucc-post-content figcaption {
  text-align: center;
  color: var(--ucc-muted);
  font-style: italic;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.ucc-page-content table,
.ucc-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  border-radius: var(--ucc-radius);
  overflow: hidden;
  box-shadow: var(--ucc-shadow-sm);
  background: var(--ucc-bg-card);
  font-size: 0.9375rem;
}
.ucc-page-content table thead th,
.ucc-post-content table thead th {
  background: var(--ucc-primary);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ucc-page-content table tbody td,
.ucc-post-content table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ucc-border);
}
.ucc-page-content table tbody tr:nth-child(even) td,
.ucc-post-content table tbody tr:nth-child(even) td {
  background: var(--ucc-bg-soft);
}
.ucc-page-content table tbody tr:last-child td,
.ucc-post-content table tbody tr:last-child td { border-bottom: 0; }

.ucc-page-content hr,
.ucc-post-content hr {
  border: 0;
  border-top: 1px solid var(--ucc-border);
  margin: 3rem 0;
}

/* =========================================================
   === Footer === (Phase 1B-3c)
   The footer is rendered as a sibling of #page (after </div><!-- #page -->)
   so it always spans the full viewport width, regardless of GP's container
   layout or whether the page above has a sidebar. The width/max-width
   declarations below are defensive — the structural placement does the
   real work, but these guard against any inherited constraints.
   ========================================================= */
.ucc-footer {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: var(--ucc-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 16px;
  margin-top: 64px;
  font-family: var(--ucc-font);
}
.ucc-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
}
.ucc-footer__disclosure {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
}
.ucc-footer__disclosure strong {
  color: #fff;
  font-weight: 700;
}
.ucc-footer__divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 0 20px;
}
.ucc-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.ucc-footer__copyright {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}
.ucc-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.ucc-footer__links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.15s ease;
}
.ucc-footer__links a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .ucc-footer { padding: 48px 24px; }
  .ucc-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* =========================================================
   === 1B-3c Polish — Prose width constraint ===
   Outer card is 1100px wide (set above on .ucc-page-wrap /
   .ucc-post-wrap), but prose elements inside the_content() are
   constrained to ~720px and centered for line-length readability.
   Block-level visual content (images, figures, tables, embeds, columns,
   buttons) stays at full container width so shortcode grids and
   media don't get pinched.
   ========================================================= */
.ucc-page-content > p,
.ucc-page-content > h2,
.ucc-page-content > h3,
.ucc-page-content > h4,
.ucc-page-content > h5,
.ucc-page-content > h6,
.ucc-page-content > ul,
.ucc-page-content > ol,
.ucc-page-content > blockquote,
.ucc-page-content > hr,
.ucc-page-content > .wp-block-paragraph,
.ucc-page-content > .wp-block-heading,
.ucc-page-content > .wp-block-list,
.ucc-page-content > .wp-block-quote,
.ucc-post-content > p,
.ucc-post-content > h2,
.ucc-post-content > h3,
.ucc-post-content > h4,
.ucc-post-content > h5,
.ucc-post-content > h6,
.ucc-post-content > ul,
.ucc-post-content > ol,
.ucc-post-content > blockquote,
.ucc-post-content > hr,
.ucc-post-content > .wp-block-paragraph,
.ucc-post-content > .wp-block-heading,
.ucc-post-content > .wp-block-list,
.ucc-post-content > .wp-block-quote {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Block-level visual content stays at full container width. */
.ucc-page-content > figure,
.ucc-page-content > .wp-block-image,
.ucc-page-content > .wp-block-table,
.ucc-page-content > .wp-block-embed,
.ucc-page-content > .wp-block-gallery,
.ucc-page-content > .wp-block-columns,
.ucc-page-content > .wp-block-buttons,
.ucc-page-content > .wp-block-shortcode,
.ucc-page-content > table,
.ucc-page-content > .ucc-bestof,
.ucc-post-content > figure,
.ucc-post-content > .wp-block-image,
.ucc-post-content > .wp-block-table,
.ucc-post-content > .wp-block-embed,
.ucc-post-content > .wp-block-gallery,
.ucc-post-content > .wp-block-columns,
.ucc-post-content > .wp-block-buttons,
.ucc-post-content > .wp-block-shortcode,
.ucc-post-content > table,
.ucc-post-content > .ucc-bestof {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* =========================================================
   === Page Template — Optional Right Sidebar === (Bug 4)
   page.php auto-detects GP's per-page sidebar layout and adds
   `.ucc-page-wrap--with-sidebar` + `.ucc-page-grid` when active.
   Class names use `.ucc-page-sidebar` (NOT `.ucc-sidebar`) to avoid
   collision with the review-page sidebar's mobile-hide rule.
   ========================================================= */
.ucc-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 960px) {
  .ucc-page-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
  }
  .ucc-page-sidebar {
    position: sticky;
    top: 80px;
  }
}

.ucc-page-sidebar {
  min-width: 0;
}
.ucc-page-sidebar__widget {
  background: var(--ucc-bg-card);
  border-radius: var(--ucc-radius);
  box-shadow: var(--ucc-shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}
.ucc-page-sidebar__widget:last-child {
  margin-bottom: 0;
}
.ucc-page-sidebar__widget-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ucc-primary);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ucc-border);
}
.ucc-page-sidebar__widget a {
  color: var(--ucc-primary);
  text-decoration: none;
}
.ucc-page-sidebar__widget a:hover {
  color: var(--ucc-accent);
  text-decoration: underline;
}

/* When sidebar is present, the content column already has a constrained
   width, so we don't need the prose-narrowing 720px rule. */
.ucc-page-wrap--with-sidebar .ucc-page-content > p,
.ucc-page-wrap--with-sidebar .ucc-page-content > h2,
.ucc-page-wrap--with-sidebar .ucc-page-content > h3,
.ucc-page-wrap--with-sidebar .ucc-page-content > h4,
.ucc-page-wrap--with-sidebar .ucc-page-content > h5,
.ucc-page-wrap--with-sidebar .ucc-page-content > h6,
.ucc-page-wrap--with-sidebar .ucc-page-content > ul,
.ucc-page-wrap--with-sidebar .ucc-page-content > ol,
.ucc-page-wrap--with-sidebar .ucc-page-content > blockquote,
.ucc-page-wrap--with-sidebar .ucc-page-content > .wp-block-paragraph,
.ucc-page-wrap--with-sidebar .ucc-page-content > .wp-block-heading,
.ucc-page-wrap--with-sidebar .ucc-page-content > .wp-block-list,
.ucc-page-wrap--with-sidebar .ucc-page-content > .wp-block-quote {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 600px) {
  .ucc-page-sidebar__widget {
    padding: 16px;
  }
}

/* =========================================================
   === Final Fix === (final-fix.md)
   ========================================================= */

/* Issue A — Suppress GP's hard-coded page-header featured image wrapper.
   Filter-based suppression (`generate_featured_image_output`) didn't
   intercept this rendering path in GP 3.6.1, so we hide the wrapper
   directly. Scoped via `body.featured-image-active` (auto-added by GP
   when a featured image exists) so the rule is only active where needed. */
body.featured-image-active .featured-image.page-header-image {
  display: none;
}

/* Issue B — Allow .ucc-page-card to take full 1100px width when it
   contains a best-of grid. Basic :has() selector is sufficient because
   .ucc-page-card has no narrower max-width rule of its own (verified at
   style.css:2145). */
.ucc-page-card:has(.ucc-bestof) {
  max-width: 1100px;
}

/* =========================================================
   BLOG LISTING (home.php)
   Magazine-style horizontal cards on /news/. Image left,
   content right; full content-area width per card. On
   narrow viewports the cards collapse to vertical (image on
   top, content below).
   ========================================================= */
.ucc-blog-list__header {
  margin-bottom: 24px;
}
.ucc-blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ucc-blog-list__item {
  display: flex;
  flex-direction: column;
  background: var(--ucc-bg-card);
  border: 1px solid var(--ucc-border);
  border-radius: var(--ucc-radius-lg);
  box-shadow: var(--ucc-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.ucc-blog-list__item:hover {
  box-shadow: var(--ucc-shadow);
  transform: translateY(-1px);
}
.ucc-blog-list__image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: var(--ucc-bg-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.ucc-blog-list__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.ucc-blog-list__item:hover .ucc-blog-list__image img {
  transform: scale(1.03);
}
.ucc-blog-list__image--placeholder {
  background: var(--ucc-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ucc-blog-list__placeholder-glyph {
  font-family: var(--ucc-font);
  font-weight: 800;
  font-size: 4rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(15, 29, 64, 0.15);
}
.ucc-blog-list__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  min-width: 0;
}
.ucc-blog-list__category {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 12px;
  background: var(--ucc-accent-tint);
  color: var(--ucc-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--ucc-radius-pill);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.ucc-blog-list__category:hover {
  background: var(--ucc-accent);
  color: #fff;
}
.ucc-blog-list__title {
  font-family: var(--ucc-font);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ucc-text);
}
.ucc-blog-list__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ucc-blog-list__title a:hover {
  color: var(--ucc-primary-light);
}
.ucc-blog-list__excerpt {
  margin: 0;
  color: var(--ucc-text-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.ucc-blog-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ucc-muted);
  margin-top: 4px;
}
.ucc-blog-list__sep {
  opacity: 0.6;
}
.ucc-blog-list__readmore {
  align-self: flex-end;
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ucc-primary-light);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.ucc-blog-list__readmore:hover {
  color: var(--ucc-accent);
  transform: translateX(2px);
}
.ucc-blog-list__empty {
  color: var(--ucc-muted);
  font-style: italic;
}

/* Pagination — re-skin core's nav.pagination output to match
   the .ucc-btn palette. Scoped under .ucc-page-card so it
   only affects the blog listing context. */
.ucc-page-card .navigation.pagination,
.ucc-page-card nav.ucc-blog-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.ucc-page-card .navigation.pagination .nav-links,
.ucc-page-card .ucc-blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.ucc-page-card .navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 14px;
  border-radius: var(--ucc-radius);
  border: 1px solid var(--ucc-border);
  background: var(--ucc-bg-card);
  color: var(--ucc-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ucc-page-card .navigation.pagination .page-numbers:hover {
  background: var(--ucc-primary);
  color: #fff;
  border-color: var(--ucc-primary);
}
.ucc-page-card .navigation.pagination .page-numbers.current {
  background: var(--ucc-accent-gradient);
  color: #04261c;
  border-color: transparent;
  cursor: default;
}
.ucc-page-card .navigation.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  color: var(--ucc-muted);
}
.ucc-page-card .navigation.pagination .page-numbers.dots:hover {
  background: transparent;
  color: var(--ucc-muted);
}

/* ≥700px: switch to horizontal layout (image left, content right).
   Below this breakpoint cards stack vertically per the spec. */
@media (min-width: 700px) {
  .ucc-blog-list__item {
    flex-direction: row;
    align-items: stretch;
  }
  .ucc-blog-list__image {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }
  .ucc-blog-list__content {
    padding: 22px 26px;
    flex: 1;
  }
  .ucc-blog-list__placeholder-glyph {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .ucc-blog-list__title {
    font-size: 1.5rem;
  }
}

