/*
 * Sewing Affiliate Pro visual layer
 * Warm editorial styling built around the primary brick red #9C3B31.
 */

:root {
  --sewing-primary: #9c3b31;
  --sewing-primary-dark: #792c25;
  --sewing-primary-soft: #ead0c9;
  --sewing-ink: #302522;
  --sewing-muted: #766965;
  --sewing-linen: #fbf7f2;
  --sewing-paper: #fffdf9;
  --sewing-blush: #f2e3dc;
  --sewing-thread: #d7a85b;
  --sewing-border: #e6d8cd;
  --sewing-shadow: 0 18px 45px rgba(77, 48, 42, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--sewing-linen);
  background-image:
    linear-gradient(rgba(108, 78, 69, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 78, 69, 0.018) 1px, transparent 1px);
  background-size: 7px 7px;
  color: var(--sewing-ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.section-title {
  color: var(--sewing-ink);
  font-family: "Lora", Georgia, serif;
  letter-spacing: -0.025em;
  text-transform: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(156, 59, 49, 0.3);
  outline-offset: 3px;
}

/* Header and wordmark */
.site-header {
  position: relative;
  padding: 22px 0 18px;
  background: rgba(255, 253, 249, 0.96);
  border-top: 4px solid var(--sewing-primary);
  border-bottom: 1px solid var(--sewing-border);
  box-shadow: none;
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, transparent 0 8px, var(--sewing-primary) 8px 13px, transparent 13px 21px);
  opacity: 0.28;
}

.site-title {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-title a {
  color: var(--sewing-ink);
}

.site-title a::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 12px;
  border: 3px solid var(--sewing-primary);
  border-radius: 50%;
  box-shadow: 7px 0 0 -3px var(--sewing-primary);
  vertical-align: 0.1em;
}

/* Dark atelier navigation distinguishes the theme from the solar version. */
.nav-primary {
  background: var(--sewing-ink);
  border: 0;
  box-shadow: 0 8px 22px rgba(48, 37, 34, 0.12);
}

.nav-primary .menu-item a {
  min-height: 50px;
  padding: 15px 19px;
  color: #fff9f4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.nav-primary .menu-item:hover > a,
.nav-primary .menu-item.current-menu-item > a,
.nav-primary .menu-item.current-menu-ancestor > a,
.nav-primary .menu-item.current-menu-parent > a {
  background: var(--sewing-primary);
  color: #fff;
}

.nav-primary .sub-menu,
.primary-navigation .sub-menu {
  background: var(--sewing-paper);
  border-color: var(--sewing-border);
  border-radius: 4px 14px 14px 14px;
  box-shadow: var(--sewing-shadow);
}

.nav-primary .sub-menu a,
.primary-navigation .sub-menu a {
  color: var(--sewing-ink);
}

.nav-primary .nav-search-form input,
.header-widget-area .search-form-input {
  border-color: var(--sewing-border);
  border-radius: 999px;
  background: var(--sewing-paper);
  font-family: "DM Sans", sans-serif;
}

/* Homepage hero */
.hero-section {
  min-height: 560px;
  padding: 78px 24px 84px;
}

.hero-section::before {
  background:
    radial-gradient(circle at 13% 22%, rgba(156, 59, 49, 0.1) 0 3px, transparent 4px),
    linear-gradient(120deg, #f7ebe5 0%, #fbf7f2 54%, #ead8cd 100%);
  background-size: 34px 34px, auto;
}

.hero-section::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(156, 59, 49, 0.42) 10px 18px, transparent 18px 29px);
}

.hero-container {
  gap: clamp(45px, 8vw, 110px);
}

.hero-content::before {
  content: "INDEPENDENT REVIEWS FOR CURIOUS MAKERS";
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 20px;
  padding: 7px 13px;
  color: var(--sewing-primary);
  border: 1px solid rgba(156, 59, 49, 0.35);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.62);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title-main,
.hero-title-highlight {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-transform: none;
}

.hero-title-main {
  color: var(--sewing-ink);
}

.hero-title-highlight {
  margin-top: 8px;
  padding: 0;
  color: var(--sewing-primary);
  background: transparent;
  font-style: italic;
}

.hero-description {
  max-width: 565px;
  margin-bottom: 32px;
  color: #655651;
  font-family: "DM Sans", sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.75;
}

.hero-buttons {
  gap: 12px;
}

.button-link--primary,
.hero-btn,
.btn-primary,
.btn-secondary,
.btn-compare,
button,
input[type="submit"] {
  font-family: "DM Sans", sans-serif;
}

.button-link--primary {
  padding: 13px 24px;
  color: #fff;
  background: var(--sewing-primary);
  border: 1px solid var(--sewing-primary);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--sewing-thread);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.button-link--primary:nth-child(2) {
  color: var(--sewing-primary);
  background: var(--sewing-paper);
  box-shadow: none;
}

.button-link--primary:nth-child(3) {
  color: var(--sewing-ink);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.button-link--primary:hover {
  color: #fff;
  background: var(--sewing-primary-dark);
  border-color: var(--sewing-primary-dark);
  box-shadow: 2px 2px 0 var(--sewing-thread);
  transform: translate(2px, 2px);
}

.hero-image {
  max-width: 500px;
}

/* Global Best, Comparisons and Guides hubs. These inherit the decorative
   homepage hero but should end shortly after their actual content. */
.hero-section.hero-section--compact {
  min-height: 0;
  padding: 24px 24px 30px;
}

.hero-section--compact .hero-container {
  gap: clamp(32px, 5vw, 64px);
}

.hero-section--compact .hero-content::before {
  min-height: 26px;
  margin-bottom: 14px;
  padding: 5px 11px;
}

/* Cluster landing-page hero: keep the hierarchy of the homepage hero while
   avoiding a full-screen block before the cluster navigation. */
.hero-section.hero-section--cluster-hub {
  min-height: 0;
  padding: 24px 24px 30px;
}

.hero-section--cluster-hub .hero-container {
  gap: clamp(36px, 5vw, 72px);
}

.hero-section--cluster-hub .hero-content::before {
  min-height: 26px;
  margin-bottom: 14px;
  padding: 5px 11px;
}

.hero-section--cluster-hub .hero-title {
  margin-bottom: 16px;
}

.hero-section--cluster-hub .hero-title-main,
.hero-section--cluster-hub .hero-title-highlight {
  font-size: clamp(2.15rem, 3.1vw, 3rem);
}

.hero-section--cluster-hub .hero-description {
  margin-bottom: 18px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-section--cluster-hub .hero-image {
  max-width: 285px;
}

.hero-section--cluster-hub .hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-atelier-art {
  position: relative;
  aspect-ratio: 1 / 0.86;
  padding: 34px;
  transform: rotate(2deg);
}

.hero-atelier-art::before,
.hero-atelier-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-atelier-art::before {
  inset: 0 9% 4% 0;
  background: var(--sewing-primary);
  box-shadow: 22px 24px 0 var(--sewing-thread);
}

.hero-atelier-art::after {
  width: 72px;
  height: 72px;
  top: -10px;
  right: 6px;
  border: 2px dashed var(--sewing-primary);
}

.atelier-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 38px;
  overflow: hidden;
  background: var(--sewing-paper);
  border: 1px solid rgba(48, 37, 34, 0.18);
  box-shadow: var(--sewing-shadow);
}

.atelier-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(156, 59, 49, 0.42);
  pointer-events: none;
}

.atelier-kicker {
  position: absolute;
  top: 34px;
  left: 38px;
  color: var(--sewing-primary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.atelier-card strong {
  position: relative;
  z-index: 2;
  max-width: 290px;
  color: var(--sewing-ink);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.15;
}

.atelier-card small {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  color: var(--sewing-muted);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.atelier-thread-spool {
  position: absolute;
  top: 31%;
  left: 17%;
  width: 145px;
  height: 76px;
  border-top: 12px solid var(--sewing-ink);
  border-bottom: 12px solid var(--sewing-ink);
  background: repeating-linear-gradient(0deg, #b95a4f 0 4px, #9c3b31 4px 8px);
  transform: rotate(-7deg);
}

.atelier-thread-spool::before,
.atelier-thread-spool::after {
  content: "";
  position: absolute;
  top: -18px;
  width: 14px;
  height: 88px;
  border-radius: 4px;
  background: var(--sewing-thread);
}

.atelier-thread-spool::before { left: -5px; }
.atelier-thread-spool::after { right: -5px; }

.atelier-needle {
  position: absolute;
  top: 24%;
  right: 21%;
  width: 3px;
  height: 155px;
  border-radius: 3px;
  background: linear-gradient(#655651, #c5bbb5);
  transform: rotate(25deg);
}

.atelier-needle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -3px;
  width: 7px;
  height: 17px;
  border: 2px solid var(--sewing-ink);
  border-radius: 50%;
}

.atelier-stitch-line {
  position: absolute;
  top: 52%;
  right: 9%;
  width: 45%;
  border-top: 3px dashed var(--sewing-primary);
  transform: rotate(-18deg);
}

/* Editorial sections and cards */
.product-categories-section,
.post-categories-section,
.latest-reviews-section,
.special-deals-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Avoid stacking the Guides section's bottom padding, its final row margin,
   and the Latest Reviews top padding into one oversized blank area. */
.post-categories-section {
  padding-bottom: 24px;
}

.post-categories-section .post-category-section:last-child {
  margin-bottom: 0;
}

.post-categories-section + .latest-reviews-section {
  padding-top: 24px;
}

.section-header {
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sewing-border);
}

.section-title {
  position: relative;
  padding-left: 24px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: none;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0.16em;
  bottom: 0.16em;
  left: 0;
  width: 5px;
  background: var(--sewing-primary);
  border-radius: 10px;
}

/*
 * Best/comparison article section headings are centered. Keep the decorative
 * seam attached to the heading's own box instead of the full-width section.
 */
.article-summary-section > .section-title,
.article-comparison-section > .section-title,
.article-faq-section > .section-title {
  width: fit-content;
  max-width: calc(100% - 32px);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.see-all-link,
.view-all-category-link {
  color: var(--sewing-primary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.product-card,
.post-preview,
.product-category-item {
  background: var(--sewing-paper);
  border: 1px solid var(--sewing-border);
  border-radius: 18px 6px 18px 6px;
  box-shadow: 0 8px 24px rgba(77, 48, 42, 0.07);
}

.product-card:hover,
.post-preview:hover,
.product-category-item:hover {
  border-color: rgba(156, 59, 49, 0.45);
  box-shadow: var(--sewing-shadow);
  transform: translateY(-4px) rotate(-0.25deg);
}

.product-image {
  background: linear-gradient(145deg, #fff 0%, #f7eee8 100%);
}

.product-type-label,
.product-price {
  color: var(--sewing-primary);
  font-family: "DM Sans", sans-serif;
}

.product-name {
  font-family: "Lora", Georgia, serif;
  letter-spacing: -0.015em;
  text-transform: none;
}

.feature-tag {
  color: var(--sewing-ink);
  background: var(--sewing-blush);
  border: 1px solid var(--sewing-border);
}

.star.filled,
.star.half {
  color: var(--sewing-thread);
}

.btn-primary,
.product-badge {
  background: var(--sewing-primary);
}

.btn-primary:hover {
  background: var(--sewing-primary-dark);
}

.btn-secondary {
  color: var(--sewing-primary);
  border-color: var(--sewing-primary);
}

.btn-secondary:hover {
  background: var(--sewing-primary);
}

/* Review reading aids */
.product-content-main > p:first-child {
  margin-bottom: 28px;
  color: #4b3a34;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.75;
}

.product-content-main figure.wp-block-image {
  width: fit-content;
  max-width: 100%;
  margin: 34px auto;
  background: transparent;
}

.product-content-main figure.wp-block-image img {
  display: block;
  width: auto !important;
  max-width: 100%;
  max-height: min(680px, 72vh);
  height: auto !important;
  margin: 0 auto;
  border: 1px solid var(--sewing-border);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(69, 44, 37, 0.1);
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin: 26px 0 38px;
  color: #fffaf7;
  background: var(--sewing-ink);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(54, 40, 35, 0.14);
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-decision-item {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 21px 23px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-decision-item:last-child {
  border-right: 0;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-decision-item span {
  color: #e4c4bb;
  font-family: "DM Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-decision-item strong {
  font-family: "Lora", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.35;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 36px;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-metric-card {
  display: flex;
  min-width: 0;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--sewing-border);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(69, 44, 37, 0.06);
  flex-direction: column;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-metric-value {
  margin-bottom: 5px;
  color: var(--sewing-primary);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-metric-label {
  color: var(--sewing-ink);
  font-weight: 700;
  line-height: 1.35;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-metric-card small {
  margin-top: 9px;
  color: #766761;
  font-size: 0.82rem;
  line-height: 1.45;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-callout {
  margin: 30px 0;
  padding: 22px 24px 22px 28px;
  color: var(--sewing-ink);
  background: linear-gradient(135deg, #fbf1ed 0%, #fffaf7 100%);
  border: 1px solid var(--sewing-border);
  border-left: 5px solid var(--sewing-primary);
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 26px rgba(69, 44, 37, 0.07);
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-callout.is-caution {
  background: #fff7ed;
  border-left-color: #b96a24;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 30px 0;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-insight-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--sewing-border);
  border-top: 4px solid var(--sewing-primary);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(69, 44, 37, 0.07);
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-insight-card.is-caution {
  border-top-color: #b96a24;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-insight-card h3 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-insight-card p {
  margin: 0;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-insight-label {
  display: block;
  margin-bottom: 8px;
  color: var(--sewing-primary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-insight-card > strong {
  display: block;
  margin-bottom: 10px;
  line-height: 1.4;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-checklist li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 52px;
  background: #fff;
  border: 1px solid var(--sewing-border);
  border-radius: 12px;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-checklist li::before {
  content: "\2713";
  position: absolute;
  top: 14px;
  left: 17px;
  display: grid;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--sewing-primary);
  border-radius: 50%;
  font-weight: 700;
  place-items: center;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-step-list {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  counter-reset: sewing-review-step;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-step-list li {
  position: relative;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px 10px 64px;
  counter-increment: sewing-review-step;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-step-list li::before {
  content: counter(sewing-review-step);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--sewing-primary);
  border-radius: 50%;
  font-weight: 700;
  place-items: center;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .owner-feedback-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 30px 0;
  padding-left: 28px;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .owner-feedback-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 2px;
  background: #dcbab2;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .owner-feedback-item {
  position: relative;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--sewing-border);
  border-radius: 12px;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) .owner-feedback-item::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -28px;
  width: 14px;
  height: 14px;
  background: var(--sewing-primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dcbab2;
}

/* Native article disclosures / collapsible explanations */
:where(.product-content-main, .best-article-content, .post-main-content-wrapper) details {
  overflow: hidden;
  margin: 30px 0 36px;
  background: #fff;
  border: 1px solid var(--sewing-border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(69, 44, 37, 0.07);
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) details summary {
  position: relative;
  padding: 21px 68px 21px 24px;
  color: var(--sewing-ink);
  font-family: "Lora", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) details summary::-webkit-details-marker {
  display: none;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) details summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--sewing-primary);
  border-radius: 50%;
  font-family: "DM Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  place-items: center;
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) details[open] summary {
  color: var(--sewing-primary-dark);
  background: var(--sewing-blush);
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) details[open] summary::after {
  content: "\2212";
}

:where(.product-content-main, .best-article-content, .post-main-content-wrapper) details > :not(summary) {
  margin: 0;
  padding: 22px 24px 25px;
  border-top: 1px solid var(--sewing-border);
}

.verdict-summary .verdict-highlight {
  margin: 0 0 22px;
  padding: 20px 22px;
  color: var(--sewing-ink);
  background: var(--sewing-blush);
  border-left: 5px solid var(--sewing-primary);
  border-radius: 0 12px 12px 0;
}

.article-summary-section .best-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.article-summary-section {
  margin: 90px 0 100px;
  padding: 54px 0 62px;
}

.article-summary-section > .section-title {
  margin-bottom: 42px;
}

.article-summary-section .best-summary-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--sewing-border);
  border-top: 4px solid var(--sewing-primary);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(69, 44, 37, 0.07);
}

.article-summary-section .best-summary-card.is-caution {
  border-top-color: #b96a24;
}

.article-summary-section .best-summary-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.article-summary-section .best-summary-card p {
  margin: 0;
}

.verdict-summary h3 {
  margin: 26px 0 10px;
  color: var(--sewing-ink);
  font-family: "Lora", Georgia, serif;
}

.verdict-summary ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 22px;
  padding-left: 22px;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--sewing-ink);
  border-top: 7px solid var(--sewing-primary);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  left: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.55);
}

.footer-column h4 {
  color: #fff8f1;
  font-family: "Lora", Georgia, serif;
  letter-spacing: -0.01em;
  text-transform: none;
}

.footer-column p,
.footer-column ul li a,
.footer-bottom p,
.affiliate-disclosure small {
  color: #d8c8c1;
}

.footer-column ul li a:hover,
.affiliate-disclosure a {
  color: #efb8ae;
}

@media (max-width: 900px) {
  .hero-section {
    min-height: auto;
    padding: 56px 22px 68px;
  }

  .hero-section.hero-section--cluster-hub {
    padding: 28px 22px 34px;
  }

  .hero-section.hero-section--compact {
    padding: 28px 22px 34px;
  }

  .hero-section--cluster-hub .hero-container {
    gap: 28px;
  }

  .hero-section--cluster-hub .hero-image {
    width: 100%;
    max-width: 260px !important;
    margin: 0 auto;
  }

  .hero-container {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content,
  .hero-image {
    max-width: none;
  }

  .hero-atelier-art {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .nav-primary .menu-item a {
    color: var(--sewing-ink);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 16px 0 14px;
  }

  .hero-section.hero-section--cluster-hub {
    padding: 24px 20px 30px;
  }

  .hero-section.hero-section--compact {
    padding: 24px 20px 30px;
  }

  .hero-title-main,
  .hero-title-highlight {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .button-link--primary {
    width: 100%;
    text-align: center;
  }

  .hero-atelier-art {
    padding: 20px;
  }

  :where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-decision-strip,
  :where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-metric-grid,
  .article-summary-section .best-summary-grid {
    grid-template-columns: 1fr;
  }

  :where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-decision-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  :where(.product-content-main, .best-article-content, .post-main-content-wrapper) .review-decision-item:last-child {
    border-bottom: 0;
  }

  :where(.product-content-main, .best-article-content, .post-main-content-wrapper) details summary {
    padding: 18px 58px 18px 18px;
    font-size: 1rem;
  }

  :where(.product-content-main, .best-article-content, .post-main-content-wrapper) details summary::after {
    right: 16px;
    width: 30px;
    height: 30px;
  }

  :where(.product-content-main, .best-article-content, .post-main-content-wrapper) details > :not(summary) {
    padding: 18px;
  }

  .atelier-card {
    min-height: 330px;
    padding: 28px;
  }

  .atelier-thread-spool {
    left: 13%;
    width: 120px;
  }

  .product-categories-section,
  .post-categories-section,
  .latest-reviews-section,
  .special-deals-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* Archived model reviews. */
.legacy-review-entry {
  width: min(1120px, calc(100% - 40px));
  margin: 48px auto 80px;
}

.legacy-review-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #766b66;
  font-size: 0.9rem;
}

.legacy-review-header {
  max-width: 900px;
  margin-bottom: 26px;
}

.legacy-review-header .entry-title {
  margin: 0;
}

.legacy-review-featured-image {
  display: flex;
  justify-content: center;
  margin: 0 0 38px;
  padding: 28px;
  border: 1px solid #eaded5;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #fbf5f1 100%);
  box-shadow: 0 14px 34px rgba(55, 39, 32, 0.09);
}

.legacy-review-featured-image img,
.legacy-review-content img {
  display: block;
  width: auto;
  max-width: min(100%, 500px);
  height: auto;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid #eee4dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(55, 39, 32, 0.09);
}

.legacy-review-content {
  max-width: 900px;
  margin: 0 auto;
  color: #3b302c;
  font-size: 1.04rem;
  line-height: 1.75;
}

.legacy-review-content > * + * {
  margin-top: 1.35em;
}

.legacy-review-content h2,
.legacy-review-content h3 {
  margin-top: 1.8em;
}

.legacy-review-content h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.legacy-review-content :is(ul, ol) {
  padding-left: 1.4em;
}

.legacy-review-content li + li {
  margin-top: 0.45em;
}

.legacy-review-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--primary-color);
  border-radius: 0 12px 12px 0;
  background: #fbf5f1;
}

.legacy-review-content iframe,
.legacy-review-content video {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin-right: auto;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: #2f2521;
  box-shadow: 0 12px 30px rgba(55, 39, 32, 0.14);
}

.legacy-review-content iframe {
  aspect-ratio: 16 / 9;
}

.legacy-review-content :is(.intro-price-block, .electro-description) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto;
  padding: 18px 20px;
  border: 1px solid #e6d6cd;
  border-left: 5px solid var(--primary-color);
  border-radius: 12px;
  background: #fffaf7;
  box-shadow: 0 8px 22px rgba(55, 39, 32, 0.07);
}

.legacy-review-content .discount-aff-block {
  display: block;
  width: min(100%, 650px);
  margin: 38px auto;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #e6d6cd;
  border-top: 6px solid var(--primary-color);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #fffaf7 100%);
  box-shadow: 0 16px 38px rgba(55, 39, 32, 0.1);
  text-align: center;
}

.legacy-review-content .discount-aff-block > :first-child {
  margin-top: 0;
}

.legacy-review-content .discount-aff-block > h2 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  text-align: left;
}

.legacy-review-content .discount-aff-block > :is(a, p) {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.legacy-review-content .discount-aff-block > span {
  display: block;
  margin: 16px 0;
  color: #d96829 !important;
  text-align: center;
}

.legacy-review-content .discount-aff-block > .intro-price-block {
  width: 100%;
  margin: 24px 0 0;
  border-left-width: 1px;
  box-shadow: none;
}

.legacy-review-content :is(.intro-price-block, .discount-aff-block) > b,
.legacy-review-content :is(.intro-price-block, .discount-aff-block) > strong {
  margin-right: 4px;
  color: #372a25;
}

.legacy-review-content :is(.amzn-btn, .smp-btn, .product-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(156, 59, 49, 0.18);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.legacy-review-content .smp-btn {
  background: #fff;
  color: var(--primary-color);
  box-shadow: none;
}

.legacy-review-content :is(.amzn-btn, .smp-btn, .product-btn):hover,
.legacy-review-content :is(.amzn-btn, .smp-btn, .product-btn):focus-visible {
  background: #792d26;
  border-color: #792d26;
  color: #fff;
  transform: translateY(-1px);
}

.legacy-review-content table:not(.compare-models-table) {
  width: 100%;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid #e6d6cd;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(55, 39, 32, 0.08);
}

.legacy-review-content table:not(.compare-models-table) :is(th, td) {
  padding: 14px 16px;
  border-right: 1px solid #eadfd8;
  border-bottom: 1px solid #eadfd8;
  text-align: left;
  vertical-align: top;
}

.legacy-review-content table:not(.compare-models-table) :is(th, td):last-child {
  border-right: 0;
}

.legacy-review-content table:not(.compare-models-table) tr:last-child td {
  border-bottom: 0;
}

.legacy-review-content table:not(.compare-models-table) tr:nth-child(even) td {
  background: #fbf7f4;
}

.legacy-review-content table:not(.compare-models-table) td:first-child {
  font-weight: 700;
}

.legacy-review-content .compare-models-table-wrap {
  width: min(1120px, calc(100vw - 40px));
  margin: 34px 0 42px 50%;
  overflow-x: auto;
  border: 1px solid #e4d5cc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(55, 39, 32, 0.1);
  scrollbar-color: var(--primary-color) #f0e7e1;
  scrollbar-width: auto;
  transform: translateX(-50%);
}

.legacy-review-content .compare-models-table-wrap::-webkit-scrollbar {
  height: 12px;
}

.legacy-review-content .compare-models-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #f0e7e1;
}

.legacy-review-content .compare-models-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid #f0e7e1;
  border-radius: 999px;
  background: var(--primary-color);
}

.legacy-review-content .compare-models-table {
  width: 100%;
  min-width: 960px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.legacy-review-content .compare-models-table td {
  min-width: 160px;
  padding: 16px 14px;
  border-right: 1px solid #eadfd8;
  border-bottom: 1px solid #eadfd8;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.legacy-review-content .compare-models-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 145px;
  max-width: 145px;
  background: #f7eee8;
  color: #3a2d28;
  font-weight: 800;
  text-align: left;
}

.legacy-review-content .compare-models-table tr:first-child td {
  padding-top: 22px;
  padding-bottom: 22px;
  background: #fffaf7;
  vertical-align: top;
}

.legacy-review-content .compare-models-table tr:first-child td:first-child {
  background: #f7eee8;
}

.legacy-review-content .compare-models-table tr:last-child td {
  border-bottom: 0;
}

.legacy-review-content .compare-models-table td:last-child {
  border-right: 0;
}

.legacy-review-content .compare-models-table tr:nth-child(n + 3):nth-child(even) td:not(:first-child) {
  background: #fcf8f5;
}

.legacy-review-content .compare-models-table .product-img {
  width: 112px;
  max-width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  padding: 6px;
  border: 0;
  object-fit: contain;
  box-shadow: none;
}

.legacy-review-content .compare-models-table .product-link {
  display: block;
  color: #7f3028;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.legacy-review-content .compare-table-price-block {
  display: grid;
  gap: 8px;
}

.legacy-review-content .compare-table-price-block > br {
  display: none;
}

.legacy-review-content .compare-table-price-block :is(.read-review-btn, .amzn-btn, .smp-btn) {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: normal;
}

.legacy-related-link a {
  display: inline-flex;
  padding: 12px 16px;
  border: 1px solid #dcbdb3;
  border-radius: 8px;
  background: #fffaf7;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 700px) {
  .legacy-review-entry {
    width: min(100% - 28px, 1120px);
    margin-top: 28px;
  }

  .legacy-review-featured-image {
    padding: 14px;
  }

  .legacy-review-content {
    font-size: 1rem;
  }

  .legacy-review-content .discount-aff-block {
    padding: 20px 16px;
  }

  .legacy-review-content :is(.intro-price-block, .electro-description) {
    width: 100%;
    align-items: stretch;
  }

  .legacy-review-content :is(.intro-price-block, .electro-description) :is(.amzn-btn, .smp-btn, .product-btn) {
    flex: 1 1 100%;
  }

  .legacy-review-content .compare-models-table-wrap {
    width: calc(100vw - 28px);
  }
}
