/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #202020;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

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

a {
  color: #111111;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================
   Header
========================= */

.site-header {
  border-bottom: 1px solid #e9e9e9;
  background: #ffffff;
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-logo {
  color: #111111;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.3px;
}

.site-logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: #333333;
  font-size: 15px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #111111;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================
   Main Layout
========================= */

.page-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 54px;
  align-items: start;
}

.article-content {
  min-width: 0;
  max-width: 760px;
}

.article-content p {
  margin: 0 0 22px;
}

.article-content p a:not(.buy-button),
.article-content li a:not(.buy-button):not(.related-list a) {
  color: #1769aa;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  color: #151515;
  line-height: 1.25;
}

.article-content h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -1.2px;
}

.article-content h2 {
  margin: 42px 0 15px;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.article-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}


/* =========================
   Breadcrumbs + Meta
========================= */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #747474;
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumbs a {
  color: #555555;
}

.article-meta {
  margin-bottom: 28px;
  color: #737373;
  font-size: 14px;
}


/* =========================
   Article Image
========================= */

.article-image {
  margin: 34px 0;
}

.article-image img {
  width: 100%;
  border-radius: 8px;
}


/* =========================
   Product Box
========================= */

.product-box {
  margin: 30px 0;
}

.product-box p {
  margin-bottom: 14px;
}

.buy-button {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid #0b5fa5;
  border-radius: 6px;
  background: #0b5fa5;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.buy-button:hover {
  background: #084c84;
  color: #ffffff;
  text-decoration: none;
}

.buy-button:active {
  transform: translateY(1px);
}


/* =========================
   FAQ
========================= */

.faq-list {
  margin-top: 6px;
}

.faq-item {
  padding: 12px 0 16px;
}

.faq-item p:last-child {
  margin-bottom: 0;
}


/* =========================
   Related Articles
========================= */

.related-section {
  margin-top: 30px;
  padding-top: 0;
}

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  line-height: 1.55;
}

.related-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #333333;
}

.related-list a {
  color: #333333;
  font-size: 16px;
  font-weight: 550;
}

.related-list a:hover {
  text-decoration: none;
}

/* =========================
   Sidebar
========================= */

.sidebar {
  position: static;
}

.sidebar-section {
  width: 100%;
  margin-bottom: 22px;
}

.sidebar-section h2 {
  margin: 0 0 14px;
  color: #171717;
  font-size: 18px;
  line-height: 1.3;
}

.sidebar-section a {
  display: block;
  padding: 7px 0;
  border: 0;
  color: #333333;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.55;
}

.sidebar-section a:last-child {
  border: 0;
}


/* =========================
   Footer
========================= */

.site-footer {
  border-top: 1px solid #e8e8e8;
  background: #ffffff;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  text-align: center;
}

.footer-brand {
  margin-bottom: 14px;
  color: #181818;
  font-size: 18px;
  font-weight: 750;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 15px;
}

.footer-nav a {
  color: #555555;
  font-size: 14px;
}

.footer-affiliate-disclosure {
  margin-bottom: 8px;
  color: #777777;
  font-size: 13px;
  line-height: 1.5;
}


.copyright {
  color: #8a8a8a;
  font-size: 13px;
}


/* =========================
   Back to Top
========================= */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border: 1px solid #111111;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.back-to-top:hover {
  background: #292929;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* =========================
   Tablet / Mobile
========================= */

@media (max-width: 820px) {

  body {
    font-size: 17px;
  }

  .header-inner {
    width: min(100% - 32px, 1120px);
    min-height: 64px;
    position: relative;
  }

  .site-logo {
    font-size: 19px;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: -16px;
    right: -16px;
    z-index: 40;
    padding: 8px 16px 16px;
    border-top: 1px solid #ededed;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid #ededed;
    font-size: 15px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .page-wrap {
    width: min(100% - 32px, 1120px);
    padding: 26px 0 28px;
  }

  .content-layout {
    display: block;
  }

  .article-content {
    max-width: none;
  }

  .article-content h1 {
    font-size: 34px;
  }

  .article-content h2 {
    margin-top: 36px;
    font-size: 25px;
  }

  .sidebar {
    width: 100%;
    margin-top: 30px;
  }

  .sidebar-section {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-inner {
    width: min(100% - 32px, 1120px);
  }
}



@media (max-width: 560px) {

  .related-section {
    margin-top: 24px;
  }

  .sidebar {
    margin-top: 26px;
  }

  .sidebar-section {
    margin-bottom: 18px;
  }


  .buy-button {
    width: auto;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}


/* =========================
   Accessibility
========================= */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #9d9d9d;
  outline-offset: 3px;
}


/* Keep navigation-style links neutral inside the article area */
.article-content .related-list a {
  color: #333333;
}


/* =========================
   Comparison Table
========================= */

.comparison-table-wrap {
  width: 100%;
  margin: 24px 0 34px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.45;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border: 1px solid #dddddd;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #f5f6f7;
  color: #171717;
  font-weight: 700;
}

.comparison-table td {
  color: #303030;
}

.comparison-table tbody tr:nth-child(even) {
  background: #fbfbfb;
}

.comparison-table a {
  color: #1769aa;
  font-weight: 650;
}

/* =========================
   Product Reviews
========================= */

.product-review {
  margin-top: 42px;
}

.product-review h2 {
  margin-bottom: 16px;
}

.product-review .article-image {
  margin: 22px 0 24px;
}

.product-review .buy-button {
  margin-top: 2px;
}

.product-points {
  margin: 4px 0 20px;
  padding-left: 20px;
}

.product-points li {
  margin-bottom: 7px;
}


@media (max-width: 560px) {
  .comparison-table-wrap {
    margin: 20px 0 28px;
  }

  .comparison-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 14px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 13px;
  }

  .product-review {
    margin-top: 34px;
  }
}


.comparison-table .amazon-table-link {
  color: #1769aa;
  font-weight: 650;
  white-space: normal;
}

.comparison-table .amazon-table-link:hover {
  color: #0f568f;
  text-decoration: none;
}


.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 36%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 34%;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 30%;
}


.product-cta {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}


/* Mobile-friendly premium comparison table */
.comparison-table th,
.comparison-table td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 38%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 32%;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 30%;
}

.comparison-table .amazon-table-link {
  display: inline;
  white-space: normal;
  overflow-wrap: break-word;
}

@media (max-width: 560px) {
  .comparison-table-wrap {
    overflow-x: visible;
  }

  .comparison-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 14px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 11px 10px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    vertical-align: top;
  }

  .comparison-table th:nth-child(1),
  .comparison-table td:nth-child(1) {
    width: 38%;
  }

  .comparison-table th:nth-child(2),
  .comparison-table td:nth-child(2) {
    width: 31%;
  }

  .comparison-table th:nth-child(3),
  .comparison-table td:nth-child(3) {
    width: 31%;
  }

  .comparison-table .amazon-table-link {
    display: inline;
    white-space: normal;
    line-height: 1.4;
  }
}


/* =========================
   Branding / Final Polish
========================= */

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.site-logo img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.article-meta .author-link {
  color: #555555;
  font-weight: 600;
}

.article-meta .author-link:hover {
  color: #111111;
  text-decoration: none;
}

.sidebar-section h2 {
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -0.25px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-logo img {
  display: block;
  width: 245px;
  max-width: 100%;
  height: auto;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.back-to-top svg {
  display: block;
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 820px) {
  .site-logo img {
    width: 220px;
  }

  .sidebar-section h2 {
    font-size: 22px;
  }

  .footer-logo img {
    width: 230px;
  }
}

@media (max-width: 420px) {
  .site-logo img {
    width: 200px;
  }
}


/* Best-for summary below product images */
.best-for {
  margin: -4px 0 20px;
  color: #333333;
  line-height: 1.55;
}

.best-for strong {
  color: #171717;
  font-weight: 700;
}


/* Key features label */
.key-features-label {
  margin: 4px 0 8px;
  color: #171717;
}

.key-features-label strong {
  font-weight: 700;
}

/* Homepage / category card titles: never underline */
.category-card a:hover h2,
.category-card a:focus h2,
.category-card a:focus-visible h2,
.category-card a:active h2,
.category-card a:visited h2 {
  text-decoration: none !important;
}


/* =========================
   Homepage / Category Grid
   Moved from HTML files
========================= */

/* Category page grid */
.category-page {
  width: 100%;
}
.category-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.category-header h1 {
  margin-bottom: 12px;
}
.category-header p {
  margin: 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.category-card {
  min-width: 0;
}
.category-card a {
  color: inherit;
  text-decoration: none;
}
.category-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}
.category-card h2 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 12px 0 0;
}
.category-card a:hover h2,
.category-card a:focus h2 {
  text-decoration: underline;
}
.category-empty {
  text-align: center;
  padding: 34px 20px;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.category-layout {
  display: block !important;
  max-width: 1180px !important;
  width: calc(100% - 40px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.category-layout .category-page {
  max-width: none !important;
  width: 100% !important;
}
@media (max-width: 600px) {
  .category-layout {
    width: calc(100% - 28px) !important;
  }
}

.home-section-title {
  margin: 44px 0 0;
  font-size: 1.45rem;
}
.category-header + .home-section-title {
  margin-top: 34px;
}
