.dwr-guide {
  --dwr-guide-accent: #954949;
  --dwr-guide-text: #1f1f1f;
  --dwr-guide-muted: #555;
  color: var(--dwr-guide-text);
}

.dwr-guide__hero {
  background: linear-gradient(125deg, #4a2222 0%, #7a3838 22%, #954949 48%, #c06868 72%, #8b4040 100%);
  color: #fff;
  padding: 2.5rem 0 2.75rem;
}

.dwr-guide__hero-inner {
  max-width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.dwr-guide__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.dwr-guide__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dwr-guide__lead {
  margin: 0 auto 0.75rem;
  max-width: 40rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
  opacity: 0.95;
}

.dwr-guide__meta {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.82;
}

.dwr-guide__body {
  max-width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  gap: 2rem;
}

.dwr-guide__content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.dwr-guide__content h2 {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--dwr-guide-text);
  letter-spacing: -0.02em;
}

.dwr-guide__content h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.dwr-guide__content p {
  margin: 0 0 1rem;
}

.dwr-guide__content ul,
.dwr-guide__content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.dwr-guide__content li {
  margin-bottom: 0.45rem;
}

.dwr-guide__content a {
  color: var(--dwr-guide-accent);
  font-weight: 600;
}

.dwr-guide-block--takeaways {
  background: #fff;
  border: 1px solid rgba(149, 73, 73, 0.18);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin: 0 0 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.dwr-guide-block--takeaways h2 {
  margin-top: 0 !important;
  font-size: 1.1rem !important;
  color: var(--dwr-guide-accent);
}

.dwr-guide-block--faq {
  background: #faf8f6;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-top: 1.5rem;
}

.dwr-guide-block--faq h2 {
  margin-top: 0 !important;
}

.dwr-guide-block--faq details {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
}

.dwr-guide-block--faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--dwr-guide-text);
}

.dwr-guide__cta {
  background: linear-gradient(180deg, #fff 0%, #f7f5f2 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.dwr-guide__cta h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.dwr-guide__cta p {
  margin: 0 0 1rem;
  color: var(--dwr-guide-muted);
  line-height: 1.6;
}

.dwr-guide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0.25rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: var(--dwr-guide-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.dwr-guide__btn--ghost {
  background: #fff;
  color: var(--dwr-guide-accent) !important;
  border: 2px solid var(--dwr-guide-accent);
}

body.dwr-guide-page #content.site-main {
  background: transparent;
  max-width: none;
  padding: 0;
}

@media (min-width: 960px) {
  .dwr-guide__body {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }

  .dwr-guide__cta {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 767px) {
  .dwr-guide__hero {
    padding: 1.75rem 0 2rem;
  }

  .dwr-guide__body {
    padding: 1.5rem 1rem 2.5rem;
  }
}

/* Guides index */
.dwr-guides-index {
  --dwr-guide-accent: #954949;
  color: #1f1f1f;
}

body.dwr-guides-archive #content.site-main,
body.dwr-guide-page #content.site-main {
  background: transparent;
  max-width: none;
  padding: 0;
}

.dwr-guides-index__hero {
  background: linear-gradient(125deg, #4a2222 0%, #7a3838 22%, #954949 48%, #c06868 72%, #8b4040 100%);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
}

.dwr-guides-index__hero-inner {
  max-width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.dwr-guides-index__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.dwr-guides-index__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dwr-guides-index__lead {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.95;
}

.dwr-guides-index__search-wrap {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  position: relative;
}

.dwr-guides-index__search {
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1.15rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.dwr-guides-index__search:focus {
  outline: 3px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.dwr-guides-index__count {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  opacity: 0.88;
}

.dwr-guides-index__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.dwr-guides-index__filter {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.dwr-guides-index__filter.is-active,
.dwr-guides-index__filter:hover {
  background: #fff;
  color: var(--dwr-guide-accent);
  border-color: #fff;
}

.dwr-guides-index__body {
  max-width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

.dwr-guides-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.15rem;
}

.dwr-guides-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dwr-guides-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(149, 73, 73, 0.14);
  border-color: rgba(149, 73, 73, 0.25);
}

.dwr-guides-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.3rem 1.15rem;
  text-decoration: none !important;
  color: inherit;
}

.dwr-guides-card__topic {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(149, 73, 73, 0.1);
  color: var(--dwr-guide-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dwr-guides-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
  color: #1f1f1f;
}

.dwr-guides-card__excerpt {
  margin: 0 0 0.85rem;
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #555;
}

.dwr-guides-card__cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dwr-guide-accent);
}

.dwr-guides-card__cta::after {
  content: " →";
}

.dwr-guides-index__empty {
  text-align: center;
  color: #666;
  padding: 2rem 1rem;
}

.dwr-guides-index__footer-cta {
  max-width: min(100% - 48px, 760px);
  margin: 0 auto 3rem;
  padding: 2rem 1.35rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f7f5f2 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.dwr-guides-index__footer-cta h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.dwr-guides-index__footer-cta p {
  margin: 0 0 1rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .dwr-guides-index__hero {
    padding: 2rem 0 1.75rem;
  }

  .dwr-guides-index__body {
    padding: 1.5rem 1rem 2rem;
  }

  .dwr-guides-index__grid {
    grid-template-columns: 1fr;
  }
}
