/* ==========================================================================
   PhoneScope Home — home-advanced.css (v3)
   Loaded by Home.master after ~/content/home.css. No markup changes needed.

   Design notes
   - One memorable moment: the hero, a panel with a "spec ledger" for stats.
   - Product items are cards; lists (needs, price, trending, FAQ) are not.
   - Tokens switch for dark mode via html[data-theme="dark"] (set by Main.master).
     Rules below never repeat dark overrides, so specificity stays flat.
   ========================================================================== */


/* ---------- Tokens ---------- */
:root,
.pk-home {
  color-scheme: light;
  --home-bg: #eceff4;
  --home-surface: #ffffff;
  --home-surface-alt: #f4f6fa;
  --home-ink: #0e1626;
  --home-muted: #5a677a;
  --home-line: #dde3ec;
  --home-accent: #1646f0;
  --home-accent-fill: #1646f0;
  --home-accent-soft: #e7edff;
  --home-star: #c77700;
  --home-live: #1fa463;
  --home-hero: #ffffff;
  --home-hero-cell: #f4f6fa;
  --home-hero-ink: #0e1626;
  --home-hero-muted: #5a677a;
  --home-hero-line: #dde3ec;
  --home-shadow: 0 1px 2px rgba(14, 22, 38, .05), 0 8px 24px rgba(14, 22, 38, .05);
  --home-shadow-hover: 0 2px 4px rgba(14, 22, 38, .06), 0 14px 32px rgba(14, 22, 38, .1);

  --home-font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --home-font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --home-max: 1320px;          /* inner content width */
  --home-sticky-top: 16px;     /* raise this if your header becomes sticky */
}

html[data-theme="dark"],
html[data-theme="dark"] .pk-home {
  color-scheme: dark;
  --home-bg: #080d15;
  --home-surface: #0f1825;
  --home-surface-alt: #152131;
  --home-ink: #e8eef7;
  --home-muted: #9aa9bc;
  --home-line: #233247;
  --home-accent: #86adff;
  --home-accent-fill: #3a6bff;
  --home-accent-soft: rgba(134, 173, 255, .13);
  --home-star: #f0a93a;
  --home-live: #38c983;
  --home-hero: #0e1827;
  --home-hero-cell: #121e31;
  --home-hero-ink: #f2f6fc;
  --home-hero-muted: #9fb0c6;
  --home-hero-line: #25354d;
  --home-shadow: none;
  --home-shadow-hover: 0 10px 28px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
.pk-home {
  background: var(--home-bg);
  color: var(--home-ink);
  font-family: var(--home-font-body);
  line-height: 1.55;
  min-height: 60vh;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}
.pk-home *,
.pk-home *::before,
.pk-home *::after { box-sizing: border-box; }
.pk-home a { color: inherit; text-decoration: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.pk-home h1, .pk-home h2, .pk-home h3, .pk-home h4 { font-family: var(--home-font-display); color: var(--home-ink); margin: 0; }
.pk-home p { margin: 0; }
.pk-home img { max-width: 100%; }
.pk-home a:focus-visible,
.pk-home button:focus-visible,
.pk-home input:focus-visible,
.pk-home summary:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Ticker ---------- */
.pk-home .pk-ticker { background: var(--home-surface); border-bottom: 1px solid var(--home-line); }
.pk-home .pk-ticker-inner {
  width: 100%; max-width: calc(var(--home-max) + 40px); margin: 0 auto; padding: 9px 20px;
  display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--home-muted);
}
.pk-home .pk-live {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-weight: 650; color: var(--home-ink); text-transform: capitalize;
}
.pk-home .pk-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--home-live);
  box-shadow: 0 0 0 0 rgba(31, 164, 99, .5); animation: ps-pulse 2.4s ease-out infinite;
}
@keyframes ps-pulse { 70% { box-shadow: 0 0 0 7px rgba(31, 164, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 164, 99, 0); } }
.pk-home .pk-ticker-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Hero ---------- */
.pk-home .pk-home-spotlight {
  width: min(var(--home-max), calc(100% - 40px)); margin: 24px auto 0;
  padding: clamp(24px, 4vw, 56px);
  background: var(--home-hero); color: var(--home-hero-ink);
  border: 1px solid var(--home-hero-line); border-radius: 22px;
}
.pk-home .pk-hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(22px, 3vw, 40px); }
.pk-home .pk-hero-kicker {
  display: block; color: var(--home-hero-muted); font-size: .9rem; font-weight: 600;
  text-transform: lowercase; /* markup is typed in capitals; this renders it as a sentence */
}
.pk-home .pk-hero-kicker::first-letter { text-transform: uppercase; }
.pk-home .pk-hero-updated { color: var(--home-hero-muted); font-size: .82rem; white-space: nowrap; }

.pk-home .pk-home-spotlight-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .72fr);
  gap: clamp(28px, 5vw, 72px); align-items: end;
}
.pk-home .pk-home-spotlight-copy { min-width: 0; }
.pk-home .pk-home-spotlight-copy h1 {
  color: var(--home-hero-ink); max-width: 16ch;
  font-size: clamp(2.3rem, 4.8vw, 4.1rem); font-weight: 700; line-height: 1.02; letter-spacing: -.035em;
  margin-bottom: 18px;
}
.pk-home .pk-home-spotlight-copy > p { max-width: 58ch; color: var(--home-hero-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }

.pk-home .pk-hero-search { display: flex; gap: 8px; max-width: 640px; margin-bottom: 20px; }
.pk-home .pk-hero-search input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px;
  background: #fff; color: #0e1626; border: 2px solid var(--home-line); border-radius: 12px;
  font: inherit; font-size: 1rem;
}
.pk-home .pk-hero-search input::placeholder { color: #66748a; }
.pk-home .pk-hero-search input:focus-visible { outline: 0; border-color: #7fa6ff; box-shadow: 0 0 0 4px rgba(127, 166, 255, .25); }
.pk-home .pk-hero-search button {
  flex: none; height: 56px; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--home-accent-fill); color: #fff; font: inherit; font-weight: 650; font-size: 1rem;
}
.pk-home .pk-hero-search button:hover { background: #3a6bff; }
html[data-theme="dark"] .pk-home .pk-hero-search button:hover { background: #5282ff; }

.pk-home .pk-home-spotlight-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.pk-home .pk-home-spotlight-actions a { color: var(--home-hero-ink); font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid var(--home-hero-line); }
.pk-home .pk-home-spotlight-actions a:hover { border-bottom-color: var(--home-hero-ink); }
.pk-home .pk-home-spotlight-actions a span { margin-left: 4px; }

/* Stats as a ledger: labelled numbers in a ruled grid */
.pk-home .pk-home-spotlight-stats { background: var(--home-hero-cell); border: 1px solid var(--home-hero-line); border-radius: 16px; overflow: hidden; min-width: 0; }
.pk-home .pk-spotlight-stats-heading {
  display: flex; align-items: center; gap: 9px; padding: 14px 18px;
  border-bottom: 1px solid var(--home-hero-line); color: var(--home-hero-muted); font-size: .85rem; font-weight: 600;
}
.pk-home .pk-spotlight-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--home-live); flex: none; }
.pk-home .pk-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--home-hero-line); }
.pk-home .pk-hero-stat { background: var(--home-hero-cell); padding: 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-home .pk-hero-stat b {
  font-family: var(--home-font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; line-height: 1;
  letter-spacing: -.03em; color: var(--home-hero-ink); font-variant-numeric: tabular-nums;
}
.pk-home .pk-hero-stat span { color: var(--home-hero-muted); font-size: .84rem; }
.pk-home .pk-spotlight-note { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-top: 1px solid var(--home-hero-line); }
.pk-home .pk-spotlight-note b { color: var(--home-hero-ink); font-size: .9rem; font-weight: 650; }
.pk-home .pk-spotlight-note span { color: var(--home-hero-muted); font-size: .83rem; line-height: 1.55; }

/* ---------- Page layout ---------- */
.pk-home .pk-content-layout {
  max-width: calc(var(--home-max) + 40px); margin: 0 auto; padding: 36px 20px 8px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start;
}
.pk-home .pk-page-main { min-width: 0; }

.pk-home .pk-section { padding: 0; margin: 0 0 44px; }
.pk-home .pk-section-head,
.pk-home .pk-side-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pk-home .pk-section-head h2,
.pk-home .pk-side-head h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.pk-home .pk-section-head p,
.pk-home .pk-side-head p,
.pk-home .pk-inline-note { color: var(--home-muted); font-size: .92rem; line-height: 1.6; margin-top: 4px; }
.pk-home .pk-section-lead { color: var(--home-muted); font-size: .95rem; line-height: 1.7; max-width: 68ch; margin: -6px 0 18px; }
.pk-home .pk-more,
.pk-home .pk-side-head > a { flex: none; color: var(--home-accent); font-size: .88rem; font-weight: 600; white-space: nowrap; padding: 6px 0; }
.pk-home .pk-more:hover,
.pk-home .pk-side-head > a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Latest phones (product cards) ---------- */
.pk-home .pk-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pk-home .pk-mini-card {
  display: flex; flex-direction: column; min-width: 0; padding: 12px;
  background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; box-shadow: var(--home-shadow);
}
.pk-home .pk-mini-card:hover { border-color: var(--home-accent); box-shadow: var(--home-shadow-hover); }
.pk-home .pk-mini-visual {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4;
  background: var(--home-surface-alt); border-radius: 10px; overflow: hidden;
}
.pk-home .pk-mini-visual img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pk-home .pk-mini-score {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 6px;
  background: var(--home-accent-fill); color: #fff; font-size: .74rem; font-weight: 650;
}
.pk-home .pk-mini-brand { margin-top: 12px; color: var(--home-muted); font-size: .8rem; font-weight: 500; }
.pk-home .pk-mini-title { margin: 2px 0 6px; font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.pk-home .pk-mini-spec { color: var(--home-muted); font-size: .82rem; line-height: 1.5; min-height: 2.5em; }
.pk-home .pk-mini-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.pk-home .pk-mini-price { font-family: var(--home-font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pk-home .pk-mini-cta { color: var(--home-accent); font-size: .85rem; font-weight: 600; }

/* ---------- Explore by need (a ruled list, not cards) ---------- */
.pk-home .pk-cat-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
  padding: 4px 24px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px;
}
.pk-home .pk-cat-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--home-line); }
.pk-home .pk-cat-card:last-child { border-bottom: 0; }
.pk-home .pk-cat-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--home-accent-soft); font-size: 1.15rem;
}
.pk-home .pk-cat-card > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-home .pk-cat-card b { font-size: .98rem; font-weight: 650; }
.pk-home .pk-cat-card span span { color: var(--home-muted); font-size: .84rem; line-height: 1.45; }
.pk-home .pk-cat-card:hover b { color: var(--home-accent); }

/* ---------- Operating systems ---------- */
.pk-home .pk-os-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pk-home .pk-os-card {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 2px;
  padding: 18px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; box-shadow: var(--home-shadow);
}
.pk-home .pk-os-card:hover { border-color: var(--home-accent); box-shadow: var(--home-shadow-hover); }
.pk-home .pk-os-card > span {
  grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--home-surface-alt); font-size: 1.4rem;
}
/* The iOS card ships an empty icon span; give it a text mark */
.pk-home .pk-os-card > span:empty::before { content: "iOS"; font-family: var(--home-font-display); font-size: .95rem; font-weight: 700; }
.pk-home .pk-os-card b { font-size: 1rem; font-weight: 650; }
.pk-home .pk-os-card small { color: var(--home-muted); font-size: .84rem; line-height: 1.45; }

/* ---------- Browse by price (filter chips) ---------- */
.pk-home .pk-price-section { padding: 22px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; }
.pk-home .pk-price-section .pk-side-head { margin-bottom: 14px; }
.pk-home .pk-price-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pk-home .pk-price-list a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--home-surface-alt); border: 1px solid var(--home-line); border-radius: 999px;
  font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pk-home .pk-price-list a span { color: var(--home-muted); }
.pk-home .pk-price-list a:hover { border-color: var(--home-accent); color: var(--home-accent); }
.pk-home .pk-price-list a:hover span { color: var(--home-accent); }

/* ---------- Brands ---------- */
.pk-home .pk-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pk-home .pk-brand-card {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 12px;
}
.pk-home .pk-brand-card:hover { border-color: var(--home-accent); }
.pk-home .pk-brand-mark {
  grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: var(--home-ink); color: var(--home-surface); font-family: var(--home-font-display); font-size: 1.05rem; font-weight: 700;
}
.pk-home .pk-brand-card b { font-size: .95rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-home .pk-brand-card > span:last-child { color: var(--home-muted); font-size: .78rem; }
.pk-home .pk-brand-card:hover > span:last-child { color: var(--home-accent); }

/* ---------- Phone rows (trending + sidebar popular) ---------- */
.pk-home .pk-phone-list { display: flex; flex-direction: column; }
.pk-home .pk-phone-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--home-line); }
.pk-home .pk-phone-row:last-child { border-bottom: 0; }
.pk-home .pk-phone-thumb {
  flex: none; display: grid; place-items: center; width: 56px; height: 64px;
  background: var(--home-surface-alt); border-radius: 10px; overflow: hidden;
}
.pk-home .pk-phone-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.pk-home .pk-phone-info { flex: 1; min-width: 0; }
.pk-home .pk-phone-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 3px; font-size: .92rem; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }
.pk-home .pk-phone-row:hover .pk-phone-title { color: var(--home-accent); }
.pk-home .pk-phone-badge { padding: 2px 7px; border-radius: 5px; background: var(--home-accent-soft); color: var(--home-accent); font-family: var(--home-font-body); font-size: .7rem; font-weight: 650; }
.pk-home .pk-phone-price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; }
.pk-home .pk-phone-price { font-family: var(--home-font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.pk-home .pk-phone-dot { color: var(--home-line); }
.pk-home .pk-phone-score { color: var(--home-muted); font-size: .8rem; }
.pk-home .pk-phone-specs { margin-top: 2px; color: var(--home-muted); font-size: .78rem; line-height: 1.45; }
.pk-home .pk-phone-chevron { flex: none; width: 16px; color: var(--home-muted); }
.pk-home .pk-phone-row:hover .pk-phone-chevron { color: var(--home-accent); }

.pk-home .pk-trending-section { padding: 22px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; }
.pk-home .pk-trending-section .pk-side-head { margin-bottom: 8px; }
.pk-home .pk-trending-section .pk-phone-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.pk-home .pk-trending-section .pk-phone-row:nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- Upcoming ---------- */
.pk-home .pk-upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pk-home .pk-upcoming-card {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px;
  background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; box-shadow: var(--home-shadow);
}
.pk-home .pk-upcoming-card:hover { border-color: var(--home-accent); box-shadow: var(--home-shadow-hover); }
.pk-home .pk-upcoming-visual { flex: none; width: 80px; height: 88px; background: var(--home-surface-alt); border-radius: 10px; overflow: hidden; }
.pk-home .pk-upcoming-visual img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pk-home .pk-upcoming-info { min-width: 0; }
.pk-home .pk-upcoming-tag { color: var(--home-accent); font-size: .82rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.pk-home .pk-upcoming-info h4 { margin: 3px 0; font-size: 1rem; font-weight: 650; line-height: 1.3; }
.pk-home .pk-upcoming-info p { color: var(--home-muted); font-size: .82rem; }

/* ---------- Tips (the "reviews" block) ---------- */
.pk-home .pk-review-grid,
.pk-home .pk-article-grid,
.pk-home .pk-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pk-home .pk-review-card {
  display: flex; flex-direction: column; min-width: 0; padding: 20px;
  background: var(--home-surface); border: 1px solid var(--home-line); border-left: 3px solid var(--home-accent-fill); border-radius: 12px;
}
/* Five stars on generic tips reads as fake ratings, so they are hidden. Delete this rule to bring them back. */
.pk-home .pk-review-stars { display: none; }
.pk-home .pk-review-foot { order: -1; display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; padding: 0; border: 0; }
.pk-home .pk-review-foot span { color: var(--home-muted); font-size: .8rem; }
.pk-home .pk-review-foot b { font-family: var(--home-font-display); font-size: 1.05rem; font-weight: 650; line-height: 1.3; }
.pk-home .pk-review-card p { color: var(--home-muted); font-size: .9rem; line-height: 1.65; }

/* ---------- Guides (open list, no boxes) ---------- */
.pk-home .pk-article { display: block; min-width: 0; padding: 16px 0 0; border-top: 2px solid var(--home-ink); }
.pk-home .pk-article-kicker { color: var(--home-muted); font-size: .8rem; font-weight: 600; }
.pk-home .pk-article h3 { margin: 6px 0 8px; font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.pk-home .pk-article p { color: var(--home-muted); font-size: .9rem; line-height: 1.65; }
.pk-home .pk-article:hover { border-top-color: var(--home-accent); }
.pk-home .pk-article:hover h3 { color: var(--home-accent); }

/* ---------- Sidebar ---------- */
.pk-home .pk-sidebar {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  position: sticky; top: var(--home-sticky-top); align-self: start;
  max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 2px; scrollbar-width: thin; scrollbar-color: var(--home-line) transparent;
}
.pk-home .pk-widget { min-width: 0; padding: 18px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; }
.pk-home .pk-widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pk-home .pk-widget-head h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.pk-home .pk-widget-head > a { color: var(--home-accent); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.pk-home .pk-widget-head > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pk-home .pk-widget .pk-phone-row:first-child { padding-top: 0; }
.pk-home .pk-widget .pk-phone-row:last-child { padding-bottom: 0; }

.pk-home .pk-sidebar-search { display: flex; gap: 8px; }
.pk-home .pk-sidebar-search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; background: var(--home-surface-alt); color: var(--home-ink);
  border: 1px solid var(--home-line); border-radius: 10px; font: inherit; font-size: .92rem;
}
.pk-home .pk-sidebar-search input::placeholder { color: var(--home-muted); }
.pk-home .pk-sidebar-search button {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--home-accent-fill); color: #fff; font-size: 1.3rem; line-height: 1;
}
.pk-home .pk-sidebar-search button:hover { background: #3a6bff; }

.pk-home .pk-widget-news { display: flex; flex-direction: column; }
.pk-home .pk-widget-news a { padding: 11px 0; border-bottom: 1px solid var(--home-line); font-size: .9rem; font-weight: 500; line-height: 1.45; }
.pk-home .pk-widget-news a:first-child { padding-top: 0; }
.pk-home .pk-widget-news a:last-child { padding-bottom: 0; border-bottom: 0; }
.pk-home .pk-widget-news a:hover { color: var(--home-accent); }

.pk-home .pk-sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-home .pk-sidebar-tags a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--home-line); border-radius: 999px; background: var(--home-surface-alt); font-size: .85rem; font-weight: 600; }
.pk-home .pk-sidebar-tags a:hover { border-color: var(--home-accent); color: var(--home-accent); }

/* ---------- Full-width sections ---------- */
.pk-home .pk-fullwidth-section { max-width: calc(var(--home-max) + 40px); margin: 0 auto 44px; padding: 0 20px; }

.pk-home .pk-news-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; box-shadow: var(--home-shadow); }
.pk-home .pk-news-card:hover { border-color: var(--home-accent); box-shadow: var(--home-shadow-hover); }
.pk-home .pk-news-thumb { aspect-ratio: 16 / 10; background: var(--home-surface-alt); overflow: hidden; }
.pk-home .pk-news-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.pk-home .pk-news-body { padding: 16px 18px 18px; }
.pk-home .pk-news-kicker { color: var(--home-accent); font-size: .8rem; font-weight: 650; }
.pk-home .pk-news-body h3 { margin: 4px 0 6px; font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.pk-home .pk-news-body p { color: var(--home-muted); font-size: .88rem; line-height: 1.6; }
.pk-home .pk-news-meta { margin-top: 12px; color: var(--home-muted); font-size: .78rem; }

/* Compare: a second ink panel that bookends the hero */
.pk-home .pk-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(24px, 4vw, 44px); background: var(--home-hero); color: var(--home-hero-ink);
  border: 1px solid var(--home-hero-line); border-radius: 22px;
}
.pk-home .pk-cta h2 { color: var(--home-hero-ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.pk-home .pk-cta p { max-width: 62ch; color: var(--home-hero-muted); font-size: .98rem; line-height: 1.65; }
.pk-home .pk-compare-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pk-home .pk-compare-points span { padding: 5px 12px; border: 1px solid var(--home-hero-line); border-radius: 999px; color: var(--home-hero-muted); font-size: .82rem; font-weight: 500; }
.pk-home .pk-cta > a {
  flex: none; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 12px;
  background: var(--home-accent-fill); color: #fff; font-weight: 650; font-size: 1rem;
}
.pk-home .pk-cta > a:hover { background: #3a6bff; }

/* About: heading left, copy right */
.pk-home .pk-seo-copy {
  display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.6fr); column-gap: clamp(24px, 5vw, 72px); row-gap: 14px;
  padding: clamp(22px, 3.5vw, 40px); background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px;
}
.pk-home .pk-seo-copy h2 { grid-column: 1; grid-row: 1 / span 4; align-self: start; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; }
.pk-home .pk-seo-copy p { grid-column: 2; max-width: 68ch; color: var(--home-muted); font-size: .98rem; line-height: 1.75; }

/* FAQ */
.pk-home .pk-faq { padding: 6px clamp(18px, 3vw, 32px); background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; }
.pk-home .pk-faq details { border-bottom: 1px solid var(--home-line); }
.pk-home .pk-faq details:last-child { border-bottom: 0; }
.pk-home .pk-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0;
  cursor: pointer; list-style: none; font-size: 1rem; font-weight: 650; line-height: 1.4;
}
.pk-home .pk-faq summary::-webkit-details-marker { display: none; }
.pk-home .pk-faq summary::after { content: "+"; flex: none; color: var(--home-accent); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.pk-home .pk-faq details[open] summary::after { content: "\2212"; }
.pk-home .pk-faq summary:hover { color: var(--home-accent); }
.pk-home .pk-faq details p { max-width: 72ch; padding: 0 0 18px; color: var(--home-muted); font-size: .94rem; line-height: 1.7; }

/* Newsletter / closing prompt */
.pk-home .pk-newsletter {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 6px; align-items: center;
  padding: clamp(22px, 3.5vw, 36px); background: var(--home-accent-soft); border: 1px solid var(--home-line); border-radius: 14px;
}
.pk-home .pk-newsletter h2 { grid-column: 1; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; }
.pk-home .pk-newsletter p { grid-column: 1; max-width: 60ch; color: var(--home-muted); font-size: .95rem; line-height: 1.6; }
.pk-home .pk-newsletter .pk-btn { grid-column: 2; grid-row: 1 / span 2; }
.pk-home .pk-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 12px; background: var(--home-accent-fill); color: #fff; font-weight: 650; font-size: 1rem; cursor: pointer;
}
.pk-home .pk-btn-primary:hover { background: #3a6bff; }
.pk-home #newsletter { margin-bottom: 64px; }

/* Empty states */
.pk-home .ps-empty { padding: 20px; background: var(--home-surface); border: 1px dashed var(--home-line); border-radius: 12px; color: var(--home-muted); font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pk-home .pk-content-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .pk-home .pk-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .pk-home .pk-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-home .pk-review-grid,
  .pk-home .pk-article-grid,
  .pk-home .pk-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pk-home .pk-home-spotlight-grid { grid-template-columns: 1fr; align-items: start; }
  .pk-home .pk-home-spotlight-copy h1 { max-width: 20ch; }
  .pk-home .pk-content-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .pk-home .pk-sidebar { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding: 0; }
  .pk-home .pk-sidebar .pk-widget:first-child { grid-column: 1 / -1; }
  .pk-home .pk-seo-copy { grid-template-columns: 1fr; }
  .pk-home .pk-seo-copy h2,
  .pk-home .pk-seo-copy p { grid-column: 1; grid-row: auto; }
}
@media (max-width: 700px) {
  .pk-home .pk-trending-section .pk-phone-list { grid-template-columns: 1fr; }
  .pk-home .pk-trending-section .pk-phone-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--home-line); }
  .pk-home .pk-trending-section .pk-phone-row:last-child { border-bottom: 0; }
  .pk-home .pk-cat-grid { grid-template-columns: 1fr; }
  .pk-home .pk-cta { flex-direction: column; align-items: flex-start; }
  .pk-home .pk-newsletter { grid-template-columns: 1fr; }
  .pk-home .pk-newsletter .pk-btn { grid-column: 1; grid-row: auto; margin-top: 14px; justify-self: start; }
}
@media (max-width: 560px) {
  .pk-home .pk-ticker-inner { padding: 8px 14px; font-size: .75rem; }
  .pk-home .pk-home-spotlight { width: calc(100% - 24px); margin-top: 14px; padding: 22px 16px; border-radius: 18px; }
  .pk-home .pk-hero-updated { display: none; }
  .pk-home .pk-home-spotlight-copy h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  .pk-home .pk-home-spotlight-copy > p { font-size: .96rem; }
  .pk-home .pk-hero-search { flex-direction: column; }
  .pk-home .pk-hero-search input,
  .pk-home .pk-hero-search button { height: 52px; width: 100%; }
  .pk-home .pk-content-layout { padding: 24px 12px 4px; gap: 20px; }
  .pk-home .pk-fullwidth-section { padding: 0 12px; }
  .pk-home .pk-section { margin-bottom: 36px; }
  .pk-home .pk-mini-grid { gap: 10px; }
  .pk-home .pk-mini-card { padding: 8px; }
  .pk-home .pk-mini-title { font-size: .9rem; }
  .pk-home .pk-mini-spec { font-size: .74rem; }
  .pk-home .pk-mini-price { font-size: 1rem; }
  .pk-home .pk-mini-cta { display: none; }
  .pk-home .pk-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pk-home .pk-brand-card { padding: 10px; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; }
  .pk-home .pk-brand-mark { width: 34px; height: 34px; }
  .pk-home .pk-brand-card > span:last-child { display: none; }
  .pk-home .pk-os-grid,
  .pk-home .pk-review-grid,
  .pk-home .pk-article-grid,
  .pk-home .pk-news-grid,
  .pk-home .pk-upcoming-grid { grid-template-columns: 1fr; }
  .pk-home .pk-price-section,
  .pk-home .pk-trending-section { padding: 16px; }
  .pk-home .pk-cat-grid { padding: 2px 16px; }
  .pk-home .pk-sidebar { grid-template-columns: 1fr; }
  .pk-home .pk-sidebar .pk-widget:first-child { grid-column: auto; }
  .pk-home .pk-widget { padding: 16px; }
  .pk-home .pk-cta > a,
  .pk-home .pk-newsletter .pk-btn { width: 100%; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .pk-home *, .pk-home *::before, .pk-home *::after { animation: none !important; transition: none !important; }
}


/* Accessibility: maintain readable VS contrast in both themes. */
.pk-home .pk-home-vs{color:#526176}
html[data-theme="dark"] .pk-home .pk-home-vs,
body.dark-theme .pk-home .pk-home-vs,
body[data-theme="dark"] .pk-home .pk-home-vs,
.dark-theme .pk-home .pk-home-vs{color:#d5deed}


/* Performance: use local system fonts to avoid blocking Google Fonts CSS requests. */
.pk-home { font-synthesis: none; text-rendering: optimizeLegibility; }
