/* ==========================================================================
   MY SLEEPY BLOG — STYLESHEET
   Clean, modern editorial design inspired by readthesleepedit.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --ink: #1e2233;
  --head: #1e2233;
  --meta: #8a8d98;
  --muted: #6b7280;
  --disc: #575757;
  --line: #ececec;
  --line-2: #e2e2e2;
  --box: #f7f7f8;
  --band: #f3f3f5;
  --dark: #121212;
  --cream: #f9f6f1;
  --teal: #23748c;
  --teal-dark: #1a596c;
  --chip: #16202f;
  --green: #15ab24;
  --green-hover: #12931f;
  --card-border: #e6e6e8;
  
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Monaco, Consolas, monospace;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  transition: color 0.15s ease, opacity 0.15s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Advertisement Top Bar */
.ad-label {
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 15px 6px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

/* Masthead Header */
.masthead {
  background: var(--box);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(247, 247, 248, 0.95);
}

.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 84px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mh-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 92px;
}

.mh-icons.right {
  justify-content: flex-end;
}

.mh-icons svg {
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mh-icons svg:hover {
  opacity: 0.65;
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.logo-word {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.logo-word .the {
  font-weight: 400;
  font-style: italic;
  margin-right: 4px;
}

.logo-strap {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  opacity: 0.85;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 24px;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-menu a {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-menu a:hover {
  color: var(--teal);
}

/* ==========================================================================
   HOMEPAGE LAYOUT
   ========================================================================== */

.home-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 0;
  width: 100%;
  flex: 1 1 auto;
}

.home-header {
  margin-bottom: 28px;
  text-align: left;
}

.home-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

/* Category Filter Tabs */
.category-filter {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-2);
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  color: var(--ink);
  background: var(--box);
}

.cat-tab.active {
  background: var(--chip);
  color: #fff;
}

/* Flagship Article Card (Big Hero) */
.article-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--teal);
}

.article-card img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover img {
  transform: scale(1.015);
}

.article-card .ac-body {
  padding: 26px 28px 28px;
}

.article-card .ac-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-flagship {
  background: var(--teal);
  color: #fff;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}

.article-card h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--head);
  margin: 0 0 12px;
}

.article-card .ac-deck {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 14px;
}

.article-card .ac-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--meta);
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-card .ac-meta strong {
  color: var(--head);
}

/* Secondary Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.grid-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--teal);
}

.grid-card-media {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--box);
}

.grid-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.grid-card .ac-kicker {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.grid-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--head);
  margin-bottom: 10px;
}

.grid-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1 1 auto;
}

.grid-card .ac-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--meta);
}

/* About Strip */
.home-about {
  border-top: 1px solid var(--line-2);
  padding: 30px 0 0;
  margin-bottom: 40px;
}

.home-about h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--head);
  margin-bottom: 12px;
}

.home-about p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

/* Newsletter Box */
.newsletter {
  background: var(--cream);
  border-left: 4px solid var(--teal);
  padding: 26px 28px;
  margin-bottom: 44px;
  border-radius: 0 6px 6px 0;
}

.newsletter h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--head);
  margin-bottom: 6px;
}

.newsletter p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 160%;
}

.newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  outline: none;
}

.newsletter input[type="email"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(35, 116, 140, 0.2);
}

.newsletter button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--chip);
  border: none;
  border-radius: 6px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter button:hover {
  background: var(--teal-dark);
}

/* ==========================================================================
   ARTICLE / LISTICLE PAGE LAYOUT
   ========================================================================== */

.listicle-page {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.listicle-head {
  background: var(--cream);
  margin: 0 0 24px;
  padding: 24px 26px 20px;
  text-align: left;
  border-radius: 4px;
}

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}

.listicle-head h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--head);
  margin: 8px 0 12px;
  text-wrap: balance;
}

.listicle-deck {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
}

/* Byline Row: STRICTLY ON 1 SINGLE LINE */
.byline-row {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.byline-row strong {
  color: var(--head);
}

.short-version {
  border-left: 4px solid var(--teal);
  background: var(--cream);
  padding: 16px 20px;
  margin: 36px 0 28px;
  font-size: 15px;
  line-height: 1.65;
  border-radius: 0 4px 4px 0;
}

.hero-media {
  margin: 0 0 32px;
}

.hero-media img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line-2);
}

figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 160%;
}

.article-intro p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* TOP PICK HIGHLIGHT BOX */
.top-pick {
  border: 2px solid var(--teal);
  background: #fff;
  margin: 0 0 34px;
  border-radius: 4px;
  overflow: hidden;
}

.top-pick-label {
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
}

.top-pick-body {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
}

.top-pick-body img {
  width: 100%;
  border-radius: 4px;
  background: var(--box);
}

.top-pick h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.top-pick p {
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: var(--ink);
}

/* METHOD BOX */
.method {
  background: var(--cream);
  border-left: 4px solid var(--teal);
  padding: 18px 22px;
  margin: 0 0 32px;
  border-radius: 0 4px 4px 0;
}

.method h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 12px;
}

.method ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.method li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.method p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* CLOCK DIVIDER */
.clock-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 24px;
}

.clock-divider::before,
.clock-divider::after {
  content: "";
  flex: 1 1;
  height: 1px;
  background: var(--line-2);
}

.cd-chip {
  background: var(--chip);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 3px;
}

/* RANK CARDS */
.rank-card {
  border-top: 1px solid var(--line-2);
  padding: 34px 0 16px;
  margin: 0 0 16px;
}

.rank-card.winner {
  border: 2px solid var(--teal);
  padding: 0 0 24px;
  margin-bottom: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

/* Ensure children have comfortable margins inside the card */
.rank-card.winner > :not(.winner-banner):not(.rank-media):not(.facts) {
  margin-left: 20px;
  margin-right: 20px;
}

.winner-banner {
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 22px;
  margin-bottom: 16px;
}

.rank-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.rank-chip {
  flex: 0 0 auto;
  background: var(--chip);
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 3px;
}

.rank-card.winner .rank-chip {
  background: var(--teal);
}

.rank-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--head);
}

.rank-sub {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--teal);
  font-weight: 700;
}

/* Rank Media: zero dead space */
.rank-media {
  margin: 6px 0 18px;
  background: var(--box);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  padding: 8px 0;
}

.rank-media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 280px;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
}

/* Score row with progress bar */
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  margin: 0 0 18px;
}

.score-num {
  font-size: 24px;
  font-weight: 600;
  color: var(--head);
}

.score-bar {
  flex: 1 1 auto;
  height: 8px;
  background: var(--line-2);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
}

/* Facts Table: Perfectly contained without horizontal overflow */
.facts {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  box-sizing: border-box;
}

.rank-card.winner > .facts {
  width: calc(100% - 40px) !important;
  margin-left: 20px !important;
  margin-right: 20px !important;
}

.facts th,
.facts td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.facts th {
  width: 36%;
  color: var(--disc);
  font-weight: 700;
  background: var(--band);
}

.facts td {
  color: var(--ink);
  background: #fff;
}

.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: none;
}

.rank-card > p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Pros and Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 20px;
  background: var(--box);
  padding: 18px;
  border-radius: 6px;
}

.pros-cons h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--head);
}

.pros-cons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pros-cons li {
  position: relative;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink);
}

.pros-cons .pros li::before {
  content: "+";
  position: absolute;
  left: 4px;
  color: var(--green);
  font-weight: 900;
  font-size: 16px;
}

.pros-cons .cons li::before {
  content: "–";
  position: absolute;
  left: 4px;
  color: #b3261e;
  font-weight: 900;
  font-size: 16px;
}

/* Verdict Box */
.verdict {
  background: var(--cream);
  padding: 14px 18px;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
  border-left: 4px solid var(--teal);
}

/* Call to Action Buttons: ALWAYS ON 1 SINGLE LINE */
.buy-cta {
  margin: 12px 0 0;
}

.cta-button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  padding: 15px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(21, 171, 36, 0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 171, 36, 0.4);
}

.cta-button.secondary {
  background: var(--chip);
  box-shadow: 0 4px 12px rgba(22, 32, 47, 0.2);
}

.cta-button.secondary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 16px rgba(22, 32, 47, 0.3);
}

.offer-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--disc);
  text-align: center;
  margin: 8px 0 0;
}

/* ==========================================================================
   SIDE BY SIDE COMPARISON CHART - WORLD-CLASS EDITORIAL DESIGN
   ========================================================================== */
.side-by-side-section {
  margin: 44px 0 32px;
}

.sbs-header {
  margin-bottom: 18px;
}

.sbs-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 6px;
}

.sbs-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--head);
  margin: 0 0 8px;
  line-height: 1.25;
}

.sbs-lead {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

/* Card Wrap */
.sbs-card-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  margin-top: 16px;
}

.sbs-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table */
.sbs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  table-layout: fixed;
}

/* Columns widths */
.sbs-table .col-prod {
  width: 32%;
  text-align: left;
  padding-left: 14px;
}

.sbs-table .col-feat {
  width: 13.5%;
  text-align: center;
}

.sbs-table .col-price {
  width: 14%;
  text-align: center;
  padding-right: 12px;
}

/* Headers */
.sbs-table thead th {
  background: #16202f;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 6px;
  border: none;
  border-bottom: 2px solid var(--teal);
  line-height: 1.25;
  vertical-align: middle;
}

.sbs-table thead th.col-prod {
  padding-left: 14px;
}

/* Table Body Cells */
.sbs-table tbody td {
  padding: 12px 6px;
  vertical-align: middle;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
  transition: background 0.15s ease;
}

.sbs-table tbody tr:hover td {
  background: #fbfcfe;
}

/* Row Winner */
.sbs-table tbody tr.row-winner td {
  background: #f2f9f5 !important;
  border-bottom: 2px solid #bbf7d0;
  border-top: 2px solid #bbf7d0;
}

.sbs-table tbody tr.row-winner:hover td {
  background: #eaf5ee !important;
}

/* Product Identity */
.prod-badge-wrap {
  margin-bottom: 4px;
}

.winner-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #059669;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 10px;
}

.rank-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--mono);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.prod-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-thumb {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.prod-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prod-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--head);
  line-height: 1.25;
}

.prod-title a {
  color: inherit;
  text-decoration: none;
}

.prod-title a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.prod-tagline {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Clean SVG Icon Circles */
.icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 14px;
  height: 14px;
}

.icon-yes {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.icon-no {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.micro-note {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  line-height: 1;
}

.win-note {
  color: #047857;
}

/* Price Box */
.price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.price-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.win-price {
  color: #047857;
  font-weight: 800;
}

.best-value-pill {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: #dcfce7;
  color: #15803d;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Featured Pick Bottom CTA Card */
.sbs-winner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #eef8f2;
  border-top: 1.5px solid #a7f3d0;
  padding: 14px 18px;
}

.swb-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swb-kicker {
  font-size: 13px;
  font-weight: 800;
  color: #065f46;
}

.swb-sub {
  font-size: 12px;
  color: #4b5563;
  margin: 0;
}

.swb-btn {
  display: inline-block;
  background: #12824c;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(18, 130, 76, 0.25);
  transition: background 0.2s;
}

.swb-btn:hover {
  background: #0d6339;
}

/* Footnote */
.matrix-footnote {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
}

.footnote-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

.footnote-item svg {
  flex-shrink: 0;
  color: var(--teal);
}

/* Responsive Views: Desktop Table vs Mobile Cards */
.sbs-desktop-view {
  display: block;
}

.sbs-mobile-cards {
  display: none;
}

/* MOBILE COMPARISON CARDS (< 680px) */
@media (max-width: 680px) {
  .sbs-desktop-view {
    display: none;
  }

  .sbs-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
  }

  .sbs-title {
    font-size: 24px;
  }

  /* Mobile Card Base */
  .sbs-m-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 14px;
    box-shadow: 0 3px 10px -2px rgba(15, 23, 42, 0.05);
  }

  /* Winner Card Highlight */
  .sbs-m-card.is-winner {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border: 2px solid #059669;
    box-shadow: 0 6px 20px -2px rgba(5, 150, 105, 0.16);
    position: relative;
  }

  /* Card Header */
  .sbs-m-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #f1f5f9;
  }

  .sbs-m-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .sbs-m-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 6px;
  }

  .win-badge {
    background: #059669;
    color: #ffffff;
  }

  .rank-badge {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-family: var(--mono);
  }

  .sbs-m-prod-row {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .sbs-m-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
  }

  .sbs-m-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--head);
    margin: 0;
    line-height: 1.25;
  }

  .sbs-m-name a {
    color: inherit;
    text-decoration: none;
  }

  .sbs-m-name a:hover {
    color: var(--teal);
    text-decoration: underline;
  }

  .sbs-m-sub {
    font-size: 11.5px;
    color: var(--muted);
    display: block;
  }

  /* Price Column */
  .sbs-m-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
  }

  .sbs-m-price {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
  }

  .sbs-m-price.win-price {
    color: #059669;
    font-size: 15.5px;
  }

  .sbs-m-val-pill {
    display: inline-block;
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 5px;
    border-radius: 4px;
    margin-top: 2px;
    letter-spacing: 0.04em;
  }

  .sbs-m-unit {
    font-size: 10px;
    color: #64748b;
  }

  /* Checklist Grid */
  .sbs-m-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    margin-top: 11px;
  }

  @media (max-width: 380px) {
    .sbs-m-checklist {
      grid-template-columns: 1fr;
      gap: 7px;
    }
  }

  .sbs-m-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1.3;
  }

  .sbs-m-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 11px;
    flex-shrink: 0;
  }

  .feat-pos .sbs-m-ico {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
  }

  .feat-neg .sbs-m-ico {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 10px;
  }

  .sbs-m-txt {
    color: #334155;
  }

  .feat-neg .sbs-m-txt {
    color: #991b1b;
  }

  .sbs-m-txt strong {
    font-weight: 700;
  }

  /* Winner CTA Button */
  .sbs-m-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: #059669;
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px 14px;
    border-radius: 7px;
    text-decoration: none;
    margin-top: 13px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    transition: background 0.15s ease;
  }

  .sbs-m-cta:hover {
    background: #047857;
  }

  .sbs-m-foot {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
  }
}

/* FAQ SECTION */
.faq {
  margin: 36px 0;
}

.faq h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 16px;
}

.faq details {
  border-top: 1px solid var(--line-2);
  padding: 16px 0;
  transition: all 0.2s ease;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--head);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  font-size: 16px;
  line-height: 1.65;
  margin: 12px 0 0;
  color: var(--ink);
}

/* SOURCES SECTION */
.sources {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--disc);
  line-height: 1.6;
  margin: 36px 0;
  padding: 22px;
  background: var(--box);
  border-radius: 6px;
  border: 1px solid var(--line-2);
}

.sources h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--head);
  margin-bottom: 10px;
}

.sources ol {
  padding-left: 20px;
  margin: 12px 0 16px;
}

.sources li {
  margin-bottom: 8px;
}

.sources a {
  color: var(--teal);
  text-decoration: underline;
  word-break: break-all;
}

.sources a:hover {
  color: var(--teal-dark);
}

/* STICKY BOTTOM CTA (FLOATING) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line-2);
  padding: 12px 20px 14px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  display: none;
}

.sticky-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-cta-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--head);
}

.sticky-cta-text span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.sticky-cta .cta-button {
  width: auto;
  min-width: 180px;
  font-size: 14.5px;
  padding: 11px 16px;
  white-space: nowrap;
}

/* DISCLOSURE & FOOTER */
.disclosure {
  max-width: 720px;
  margin: 44px auto 0;
  padding: 26px 20px 34px;
  border-top: 1px solid var(--line-2);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 175%;
  color: var(--disc);
  width: 100%;
}

.disclosure p {
  margin-bottom: 12px;
}

.site-footer {
  background: var(--dark);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer .f-word {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.site-footer .f-word .the {
  font-weight: 400;
  font-style: italic;
  margin-right: 4px;
}

.site-footer .f-copy {
  font-family: var(--sans);
  font-size: 12.5px;
  color: #a0a0a0;
}

.site-footer .f-links {
  display: flex;
  gap: 16px;
}

.site-footer .f-links a {
  font-family: var(--sans);
  font-size: 12.5px;
  color: #a0a0a0;
  text-decoration: none;
}

.site-footer .f-links a:hover {
  color: #fff;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE / TABLET)
   ========================================================================== */

@media (max-width: 768px) {
  .masthead-inner {
    height: 64px;
  }

  .logo-word {
    font-size: 22px;
  }

  .logo-strap {
    font-size: 7.5px;
    letter-spacing: 0.22em;
  }

  .mh-icons {
    width: 64px;
    gap: 12px;
  }

  .home-main,
  .listicle-page {
    padding-top: 18px;
  }

  .article-card h2 {
    font-size: 23px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .listicle-head {
    margin-left: -20px;
    margin-right: -20px;
    padding: 18px 20px 16px;
    border-radius: 0;
  }

  .listicle-head h1 {
    font-size: 28px;
  }

  .byline-row {
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
  }

  .top-pick-body {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .top-pick h2 {
    font-size: 20px;
  }

  .rank-head h2 {
    font-size: 22px;
  }

  /* Prevent facts table cutoff on mobile */
  .rank-card.winner > :not(.winner-banner):not(.rank-media):not(.facts) {
    margin-left: 14px;
    margin-right: 14px;
  }

  .rank-card.winner > .facts {
    width: calc(100% - 28px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  .facts {
    font-size: 13.5px;
  }

  .facts th,
  .facts td {
    padding: 8px 8px;
  }

  .facts th {
    width: 33%;
  }

  .pros-cons {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Button text 1 line guarantee */
  .cta-button {
    font-size: 14.5px;
    padding: 13px 8px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .sticky-cta {
    display: block;
  }

  .sticky-cta-inner {
    flex-direction: column;
    gap: 8px;
  }

  .sticky-cta-text {
    text-align: center;
  }

  .sticky-cta .cta-button {
    width: 100%;
    font-size: 14.5px;
    padding: 12px 10px;
  }

  .site-footer {
    padding-bottom: 90px;
  }
}

@media (max-width: 420px) {
  .byline-row {
    font-size: 11px;
    gap: 5px;
  }

  .cta-button {
    font-size: 13.5px;
    padding: 12px 6px;
    letter-spacing: -0.02em;
  }
}
