/* ==========================================================================
   RityWool Unified Editorial Design System (Plain CSS · Light Mode Only)
   Warm cream, linen, sand, ink, terracotta & pine — shared across
   Blog, Patterns, Courses, Search & Newsletter.
   ========================================================================== */

:root {
  --rw-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --rw-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --rw-cream: #faf8f5;
  --rw-linen: #f2ede6;
  --rw-linen-soft: rgba(242, 237, 230, 0.72);
  --rw-sand: #e6dfd5;
  --rw-sand-strong: #d8cfc3;
  --rw-white: #ffffff;

  --rw-ink: #1c1917;
  --rw-body: #3f3b37;
  --rw-muted: #57534e;
  --rw-subtle: #8a8279;

  --rw-terracotta: #a65d4e;
  --rw-terracotta-dark: #8c4b3e;
  --rw-terracotta-soft: #f7ece9;

  --rw-pine: #2c4a3e;
  --rw-pine-dark: #21382f;
  --rw-pine-soft: #eef4f1;

  --rw-blush-top: #f7c7d3;
  --rw-blush-bottom: #f1b2c2;
  --rw-blush-hover-top: #f3b8c7;
  --rw-blush-hover-bottom: #ea9fb2;
  --rw-blush-border: #e6a3b3;

  --rw-radius-sm: 8px;
  --rw-radius-md: 12px;
  --rw-radius-lg: 18px;
  --rw-radius-pill: 9999px;

  --rw-shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
  --rw-shadow-sm: 0 6px 20px rgba(28, 25, 23, 0.05);
  --rw-shadow-md: 0 14px 32px rgba(28, 25, 23, 0.08);
  --rw-shadow-lg: 0 18px 40px rgba(28, 25, 23, 0.12);

  --rw-container: 1240px;
  --rw-prose: 740px;

  color-scheme: light;
}

/* Base reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  font-family: var(--rw-font-sans);
  background-color: var(--rw-cream);
  color: var(--rw-ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--rw-cream);
  color: var(--rw-ink);
  font-family: var(--rw-font-sans);
  line-height: 1.6;
}

img,
picture,
video,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
.rw-display {
  font-family: var(--rw-font-serif);
  color: var(--rw-ink);
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Layout Containers
   -------------------------------------------------------------------------- */
.rw-container {
  width: 100%;
  max-width: var(--rw-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.rw-container-narrow {
  width: 100%;
  max-width: var(--rw-prose);
  margin-inline: auto;
  padding-inline: 24px;
}

.rw-main {
  flex: 1 0 auto;
}

@media (max-width: 640px) {
  .rw-container,
  .rw-container-narrow {
    padding-inline: 16px;
  }
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.rw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rw-sand);
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding-block: 10px;
}

.rw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity 0.16s ease;
}

.rw-brand:hover {
  opacity: 0.78;
}

.rw-brand-logo {
  height: 30px;
  width: auto;
  filter: invert(1) opacity(0.92);
}

.rw-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rw-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--rw-radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rw-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.rw-nav a:hover {
  color: var(--rw-ink);
  background: var(--rw-linen);
}

.rw-nav a[aria-current="page"] {
  color: var(--rw-ink);
  font-weight: 600;
  background: var(--rw-linen);
  box-shadow: inset 0 -2px 0 var(--rw-terracotta);
}

.rw-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rw-search-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  color: var(--rw-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rw-search-icon-btn:hover,
.rw-search-icon-btn[aria-current="page"] {
  border-color: var(--rw-terracotta);
  color: var(--rw-ink);
}

.rw-search-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Language Switcher (Light Editorial)
   -------------------------------------------------------------------------- */
.rw-lang {
  position: relative;
}

.rw-lang details {
  position: relative;
}

.rw-lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid var(--rw-sand-strong);
  background: var(--rw-white);
  color: var(--rw-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

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

.rw-lang summary:hover {
  border-color: var(--rw-terracotta);
}

.rw-lang summary svg {
  width: 12px;
  height: 12px;
  color: var(--rw-muted);
  transition: transform 0.18s ease;
}

.rw-lang details[open] summary svg {
  transform: rotate(180deg);
}

.rw-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 196px;
  border-radius: var(--rw-radius-md);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  box-shadow: var(--rw-shadow-lg);
  padding: 6px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rw-lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: var(--rw-radius-sm);
  font-size: 0.88rem;
  color: var(--rw-muted);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.rw-lang-menu a:hover {
  background: var(--rw-cream);
  color: var(--rw-ink);
}

.rw-lang-menu a[aria-current="true"] {
  background: var(--rw-linen);
  color: var(--rw-ink);
  font-weight: 600;
}

.rw-lang-menu small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rw-subtle);
  letter-spacing: 0.04em;
}

.rw-lang-divider {
  height: 1px;
  background: #efeae2;
  margin: 4px 6px;
}

/* Mobile Header Wrapping */
@media (max-width: 820px) {
  .rw-header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 12px;
  }

  .rw-brand {
    order: 1;
  }

  .rw-header-actions {
    order: 2;
  }

  .rw-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .rw-nav::-webkit-scrollbar {
    display: none;
  }

  .rw-brand-logo {
    height: 25px;
  }
}

/* ==========================================================================
   Hero & Section Bands
   ========================================================================== */
.rw-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rw-sand);
  background: var(--rw-linen);
}

.rw-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rw-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.rw-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 248, 245, 0.72) 0%,
    rgba(250, 248, 245, 0.62) 55%,
    rgba(250, 248, 245, 0.96) 100%
  );
}

.rw-hero-inner {
  position: relative;
  padding-block: 60px 64px;
  text-align: center;
}

.rw-hero-band {
  border-bottom: 1px solid var(--rw-sand);
  background: var(--rw-linen-soft);
  padding-block: 48px 52px;
}

.rw-hero-logo {
  height: 44px;
  width: auto;
  margin: 0 auto 20px;
  filter: invert(1) opacity(0.92);
}

.rw-eyebrow {
  display: inline-block;
  font-family: var(--rw-font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rw-terracotta);
}

.rw-hero-title {
  margin-top: 14px;
  font-size: clamp(2.25rem, 4.8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.09;
  max-width: 780px;
  margin-inline: auto;
}

.rw-hero-subtitle {
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: var(--rw-muted);
  max-width: 640px;
  margin-inline: auto;
}

.rw-hero-band .rw-hero-title,
.rw-hero-band .rw-hero-subtitle {
  margin-inline: 0;
}

.rw-pill-nav {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rw-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid var(--rw-sand-strong);
  background: var(--rw-white);
  color: var(--rw-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.rw-pill:hover {
  border-color: var(--rw-terracotta);
  color: var(--rw-ink);
  transform: translateY(-1px);
}

.rw-pill.is-active {
  background: var(--rw-ink);
  border-color: var(--rw-ink);
  color: var(--rw-white);
}

.rw-pill-count {
  font-size: 0.8rem;
  opacity: 0.72;
}

.rw-pill-accent {
  background: var(--rw-terracotta-soft);
  border-color: rgba(166, 93, 78, 0.35);
  color: var(--rw-terracotta-dark);
  font-weight: 600;
}

.rw-pill-accent:hover {
  background: var(--rw-terracotta);
  border-color: var(--rw-terracotta);
  color: var(--rw-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.rw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.rw-btn:hover {
  transform: translateY(-1px);
}

.rw-btn-pine {
  background: var(--rw-pine);
  color: var(--rw-white);
  box-shadow: var(--rw-shadow-xs);
}

.rw-btn-pine:hover {
  background: var(--rw-pine-dark);
  box-shadow: var(--rw-shadow-sm);
}

.rw-btn-ink {
  background: var(--rw-ink);
  color: var(--rw-white);
}

.rw-btn-ink:hover {
  background: #332e2b;
}

.rw-btn-outline {
  background: var(--rw-white);
  color: var(--rw-ink);
  border-color: var(--rw-sand-strong);
}

.rw-btn-outline:hover {
  border-color: var(--rw-terracotta);
  color: var(--rw-terracotta-dark);
}

.rw-btn-block {
  width: 100%;
  border-radius: var(--rw-radius-md);
  padding: 16px 24px;
  font-size: 1rem;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.rw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--rw-muted);
}

.rw-breadcrumb a:hover {
  color: var(--rw-terracotta);
}

.rw-breadcrumb-current {
  color: var(--rw-ink);
}

/* ==========================================================================
   Section Spacing & Grids
   ========================================================================== */
.rw-section {
  padding-top: 56px;
}

.rw-section-tight {
  padding-top: 36px;
}

.rw-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.rw-section-title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
}

.rw-grid-3 {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rw-grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rw-grid-2 {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1040px) {
  .rw-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rw-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rw-grid-3,
  .rw-grid-2,
  .rw-grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Editorial Cards (Blog Posts, Patterns, Courses)
   ========================================================================== */
.rw-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--rw-radius-lg);
  overflow: hidden;
  background: var(--rw-white);
  border: 1px solid #eae4db;
  box-shadow: var(--rw-shadow-xs);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.rw-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rw-shadow-md);
  border-color: var(--rw-sand-strong);
}

.rw-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rw-card-media {
  position: relative;
  overflow: hidden;
  background: var(--rw-linen);
  aspect-ratio: 16 / 10;
}

.rw-card-media-portrait {
  aspect-ratio: 4 / 5;
}

.rw-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.rw-card:hover .rw-card-media img {
  transform: scale(1.03);
}

.rw-price-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--rw-radius-pill);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rw-ink);
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.08);
}

.rw-price-pill del {
  font-weight: 500;
  color: var(--rw-subtle);
}

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

.rw-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rw-terracotta);
}

.rw-card-title {
  margin-top: 6px;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--rw-ink);
  transition: color 0.16s ease;
}

.rw-card:hover .rw-card-title {
  color: var(--rw-terracotta);
}

.rw-card-excerpt {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--rw-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rw-card-meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--rw-subtle);
}

.rw-card-meta a:hover {
  color: var(--rw-terracotta);
}

/* Featured First Blog Card (wide horizontal split on desktop) */
@media (min-width: 901px) {
  .rw-card-featured {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .rw-card-featured .rw-card-link {
    flex-direction: row;
  }

  .rw-card-featured .rw-card-media {
    flex: 1 1 56%;
    aspect-ratio: auto;
    min-height: 360px;
  }

  .rw-card-featured .rw-card-body {
    flex: 1 1 44%;
    padding: 36px 40px;
    justify-content: center;
  }

  .rw-card-featured .rw-card-title {
    font-size: 2rem;
    line-height: 1.18;
  }

  .rw-card-featured .rw-card-excerpt {
    font-size: 0.98rem;
    -webkit-line-clamp: 4;
  }
}

/* Avatars */
.rw-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rw-sand);
  background: var(--rw-linen);
  flex-shrink: 0;
}

.rw-avatar-lg {
  width: 44px;
  height: 44px;
}

.rw-avatar-xl {
  width: 84px;
  height: 84px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.rw-pagination {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   Blog Article & Static Page
   ========================================================================== */
.rw-article-header {
  padding-top: 48px;
  padding-bottom: 32px;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.rw-article-title {
  margin-top: 12px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.13;
}

.rw-article-excerpt {
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--rw-muted);
  max-width: 640px;
  margin-inline: auto;
}

.rw-byline {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--rw-radius-pill);
  background: var(--rw-white);
  border: 1px solid var(--rw-sand);
  text-align: left;
}

.rw-byline-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-byline-name a:hover {
  color: var(--rw-terracotta);
}

.rw-byline-date {
  font-size: 0.78rem;
  color: var(--rw-subtle);
}

.rw-article-date {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--rw-subtle);
}

.rw-article-feature {
  max-width: 980px;
  margin: 0 auto 44px;
  border-radius: var(--rw-radius-lg);
  overflow: hidden;
  border: 1px solid var(--rw-sand);
  background: var(--rw-linen);
}

.rw-article-feature img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
}

/* Editorial Article Prose (PortableText & Archived Ghost HTML) */
.rw-prose {
  max-width: var(--rw-prose);
  margin-inline: auto;
  font-size: 1.07rem;
  line-height: 1.82;
  color: var(--rw-body);
}

.rw-prose > * + * {
  margin-top: 1.35em;
}

.rw-prose h1,
.rw-prose h2,
.rw-prose h3,
.rw-prose h4 {
  font-family: var(--rw-font-serif);
  color: var(--rw-ink);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2.1em;
  margin-bottom: 0.6em;
}

.rw-prose h2 {
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
}

.rw-prose h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.48rem);
}

.rw-prose a {
  color: var(--rw-terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(166, 93, 78, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.rw-prose a:hover {
  color: var(--rw-terracotta-dark);
  text-decoration-color: var(--rw-terracotta-dark);
}

.rw-prose strong {
  color: var(--rw-ink);
  font-weight: 600;
}

.rw-prose ul,
.rw-prose ol {
  padding-left: 1.5rem;
}

.rw-prose li {
  margin-top: 0.45em;
}

.rw-prose blockquote {
  margin-inline: 0;
  padding: 16px 22px;
  border-left: 3px solid var(--rw-terracotta);
  background: var(--rw-linen-soft);
  border-radius: 0 var(--rw-radius-md) var(--rw-radius-md) 0;
  font-family: var(--rw-font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--rw-ink);
}

.rw-prose hr {
  border: 0;
  height: 1px;
  background: var(--rw-sand);
  margin-block: 2.4em;
}

.rw-prose figure {
  margin: 2em 0;
}

.rw-prose figure img,
.rw-prose p > img {
  border-radius: var(--rw-radius-md);
  border: 1px solid #eae4db;
  margin-inline: auto;
}

.rw-prose figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--rw-subtle);
}

.rw-prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--rw-radius-md);
}

.rw-prose .kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rw-prose .kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rw-prose .kg-gallery-row {
  display: flex;
  gap: 12px;
}

.rw-prose .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rw-prose code {
  font-size: 0.88em;
  background: var(--rw-linen);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Read Next section */
.rw-read-next {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--rw-sand);
}

.rw-related-list-card {
  border-radius: var(--rw-radius-lg);
  background: var(--rw-linen-soft);
  border: 1px solid var(--rw-sand);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.rw-related-list-card h3 {
  font-size: 1.3rem;
}

.rw-related-list-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rw-related-list-card li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rw-sand);
}

.rw-related-list-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rw-related-list-card li a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rw-ink);
  transition: color 0.15s ease;
}

.rw-related-list-card li a:hover {
  color: var(--rw-terracotta);
}

.rw-related-list-card time {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--rw-subtle);
}

.rw-related-list-more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rw-terracotta);
}

/* ==========================================================================
   Product / Pattern / Course Detail Layout
   ========================================================================== */
.rw-product-grid {
  margin-top: 28px;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
}

@media (max-width: 960px) {
  .rw-product-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.rw-gallery-main {
  overflow: hidden;
  border-radius: var(--rw-radius-lg);
  background: var(--rw-linen);
  border: 1px solid #eae4db;
}

.rw-gallery-main img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: cover;
  object-position: center;
}

.rw-gallery-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 560px) {
  .rw-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rw-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--rw-radius-md);
  overflow: hidden;
  background: var(--rw-linen);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rw-gallery-thumb:hover {
  border-color: var(--rw-sand-strong);
}

.rw-gallery-thumb.is-active {
  border-color: var(--rw-terracotta);
}

.rw-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rw-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-ink);
}

.rw-video-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rw-sticky-col {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (max-width: 960px) {
  .rw-sticky-col {
    position: static;
  }
}

.rw-panel {
  border-radius: var(--rw-radius-lg);
  background: var(--rw-white);
  border: 1px solid var(--rw-sand);
  padding: 30px;
  box-shadow: var(--rw-shadow-sm);
}

.rw-panel-title {
  margin-top: 8px;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
}

.rw-panel-subtitle {
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--rw-muted);
}

.rw-panel-author {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--rw-subtle);
}

.rw-price-row {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #efeae2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rw-price-main {
  font-family: var(--rw-font-serif);
  font-size: 2.35rem;
  font-weight: 600;
  color: var(--rw-ink);
  line-height: 1;
}

.rw-price-old {
  font-family: var(--rw-font-serif);
  font-size: 1.45rem;
  color: var(--rw-subtle);
  text-decoration: line-through;
  margin-right: 10px;
}

.rw-price-currency {
  margin-left: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rw-subtle);
}

.rw-badge-pine {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--rw-radius-pill);
  background: var(--rw-pine-soft);
  color: var(--rw-pine);
  font-size: 0.76rem;
  font-weight: 600;
}

.rw-checklist-wrap {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #efeae2;
}

.rw-checklist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--rw-body);
}

.rw-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rw-check-mark {
  color: var(--rw-pine);
  font-weight: 700;
  flex-shrink: 0;
}

.rw-specs-dl {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.rw-specs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid #f0ebe3;
}

.rw-specs-row:last-child {
  border-bottom: 0;
}

.rw-specs-row dt {
  font-weight: 600;
  color: var(--rw-muted);
}

.rw-specs-row dd {
  margin: 0;
  color: var(--rw-ink);
}

.rw-checkout-note {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--rw-radius-sm);
  background: var(--rw-cream);
  border: 1px solid var(--rw-sand);
  font-size: 0.8rem;
  color: var(--rw-muted);
}

.rw-testimonial {
  border-radius: var(--rw-radius-lg);
  background: var(--rw-linen-soft);
  border: 1px solid var(--rw-sand);
  padding: 24px 28px;
  font-family: var(--rw-font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--rw-ink);
}

/* Trust Strip (3 columns) */
.rw-trust-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  padding: 36px 40px;
}

@media (max-width: 780px) {
  .rw-trust-grid {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

.rw-trust-grid h2,
.rw-trust-grid h3 {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.rw-trust-grid p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--rw-muted);
}

/* Empty / Coming soon card */
.rw-empty-card {
  max-width: 580px;
  margin-inline: auto;
  text-align: center;
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  padding: 48px 32px;
  box-shadow: var(--rw-shadow-xs);
}

.rw-empty-card p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--rw-body);
}

/* ==========================================================================
   Search Page
   ========================================================================== */
.rw-search-wrap {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 48px 72px;
}

.rw-search-form {
  margin-top: 28px;
}

.rw-search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border: 1.5px solid var(--rw-sand-strong);
  border-radius: var(--rw-radius-md);
  background: var(--rw-white);
  box-shadow: var(--rw-shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.rw-search-field:focus-within {
  border-color: var(--rw-terracotta);
  box-shadow: 0 0 0 4px rgba(166, 93, 78, 0.12);
}

.rw-search-icon {
  width: 20px;
  height: 20px;
  color: var(--rw-subtle);
  flex-shrink: 0;
}

.rw-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 4px;
  font-size: 1.04rem;
  color: var(--rw-ink);
}

.rw-search-field input::placeholder {
  color: var(--rw-subtle);
}

.rw-search-clear {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--rw-linen);
  color: var(--rw-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rw-search-clear[hidden] {
  display: none;
}

.rw-search-submit {
  padding: 11px 20px;
  border: 0;
  border-radius: var(--rw-radius-sm);
  background: var(--rw-pine);
  color: var(--rw-white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.rw-search-submit:hover {
  background: var(--rw-pine-dark);
}

.rw-search-topics {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-topic-chip {
  padding: 6px 14px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid var(--rw-sand-strong);
  background: var(--rw-white);
  color: var(--rw-muted);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.rw-topic-chip:hover {
  border-color: var(--rw-terracotta);
  color: var(--rw-ink);
  background: var(--rw-terracotta-soft);
}

.rw-search-summary {
  margin: 28px 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-terracotta);
}

.rw-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rw-search-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--rw-radius-md);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.rw-search-link:hover {
  border-color: var(--rw-terracotta);
  box-shadow: var(--rw-shadow-sm);
  transform: translateY(-1px);
}

.rw-search-title {
  display: block;
  font-family: var(--rw-font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-search-excerpt {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--rw-muted);
}

.rw-search-excerpt mark {
  background: #f5e2d5;
  color: var(--rw-ink);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

.rw-search-arrow {
  width: 18px;
  height: 18px;
  color: var(--rw-subtle);
  flex-shrink: 0;
}

.rw-search-empty {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--rw-radius-md);
  border: 1px dashed var(--rw-sand-strong);
  background: var(--rw-linen-soft);
  text-align: center;
  color: var(--rw-muted);
}

.rw-search-hint {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--rw-subtle);
}

/* ==========================================================================
   Newsletter Page & Inline Form (Pastel Blush Subscribe CTA!)
   ========================================================================== */
.rw-nl-page {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 48px 72px;
}

.rw-nl-benefits {
  list-style: none;
  margin: 32px 0 36px;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .rw-nl-benefits {
    grid-template-columns: 1fr;
  }
}

.rw-nl-benefit {
  border-radius: var(--rw-radius-md);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rw-nl-benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--rw-pine-soft);
  color: var(--rw-pine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.rw-nl-benefit-title {
  font-family: var(--rw-font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-nl-benefit-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--rw-muted);
}

.rw-nl-card {
  max-width: var(--rw-prose);
  margin: 44px auto 0;
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  padding: 36px 36px 32px;
  box-shadow: var(--rw-shadow-sm);
}

.rw-nl-page .rw-nl-card {
  margin-top: 0;
}

.rw-nl-header {
  text-align: center;
  margin-bottom: 24px;
}

.rw-nl-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--rw-radius-pill);
  background: var(--rw-terracotta-soft);
  color: var(--rw-terracotta-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rw-nl-title {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.25;
}

.rw-nl-subtitle {
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--rw-muted);
  max-width: 540px;
  margin-inline: auto;
}

.rw-nl-form {
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rw-nl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .rw-nl-row {
    grid-template-columns: 1fr;
  }
}

.rw-nl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rw-nl-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-nl-captcha {
  display: flex;
  justify-content: center;
  margin-block: 4px;
  min-height: 78px;
}

.rw-nl-preview-note {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--rw-subtle);
}

.rw-nl-preview-note a {
  color: var(--rw-terracotta);
  text-decoration: underline;
}

.rw-nl-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--rw-sand-strong);
  border-radius: var(--rw-radius-md);
  background: var(--rw-cream);
  color: var(--rw-ink);
  font-size: 0.96rem;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.rw-nl-input::placeholder {
  color: var(--rw-subtle);
}

.rw-nl-input:focus {
  outline: none;
  background: var(--rw-white);
  border-color: var(--rw-terracotta);
  box-shadow: 0 0 0 4px rgba(166, 93, 78, 0.12);
}

.rw-nl-submit {
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border: 1px solid var(--rw-blush-border);
  border-radius: var(--rw-radius-md);
  background: linear-gradient(180deg, var(--rw-blush-top) 0%, var(--rw-blush-bottom) 100%);
  color: #231a1d;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 152, 173, 0.35);
  transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.rw-nl-submit:hover {
  background: linear-gradient(180deg, var(--rw-blush-hover-top) 0%, var(--rw-blush-hover-bottom) 100%);
  border-color: #dc8fa3;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232, 152, 173, 0.45);
}

.rw-nl-submit:active {
  transform: translateY(0);
}

.rw-nl-guarantee {
  margin-top: 6px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--rw-subtle);
}

@media (max-width: 560px) {
  .rw-nl-card {
    padding: 26px 20px;
  }
}

/* ==========================================================================
   Footer (Warm Linen Editorial)
   ========================================================================== */
.rw-footer {
  margin-top: 84px;
  border-top: 1px solid var(--rw-sand);
  background: var(--rw-linen-soft);
}

.rw-footer-inner {
  padding-block: 56px 40px;
}

.rw-footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.2fr 1fr 1.3fr;
}

@media (max-width: 820px) {
  .rw-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.rw-footer-logo {
  height: 28px;
  width: auto;
  filter: invert(1) opacity(0.9);
}

.rw-footer-tagline {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--rw-muted);
  max-width: 300px;
}

.rw-footer-heading {
  font-family: var(--rw-font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rw-muted);
}

.rw-footer-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.rw-footer-links a {
  color: var(--rw-body);
  transition: color 0.15s ease;
}

.rw-footer-links a:hover {
  color: var(--rw-terracotta);
}

.rw-footer-langs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-footer-langs a {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid #ded6ca;
  background: var(--rw-white);
  color: var(--rw-muted);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.rw-footer-langs a:hover {
  border-color: var(--rw-terracotta);
  color: var(--rw-ink);
}

.rw-footer-langs a[aria-current="true"] {
  background: var(--rw-ink);
  border-color: var(--rw-ink);
  color: var(--rw-white);
}

.rw-footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #e0d8cc;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--rw-subtle);
}

.rw-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.rw-footer-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rw-footer-legal a:hover {
  color: var(--rw-ink);
}

.rw-footer-paddle {
  max-width: 520px;
  line-height: 1.55;
}

/* ==========================================================================
   Author Archive Header
   ========================================================================== */
.rw-author-hero {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 600px) {
  .rw-author-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

.rw-author-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--rw-muted);
}

.rw-author-meta a {
  color: var(--rw-terracotta);
  text-decoration: underline;
}

/* ==========================================================================
   Author Bio Box (End of Post & Homepage Footer)
   ========================================================================== */
.rw-author-box {
  max-width: var(--rw-prose);
  margin: 48px auto 0;
  padding: 28px 32px;
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-linen-soft);
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.rw-author-box-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rw-white);
  box-shadow: var(--rw-shadow-xs);
  background: var(--rw-linen);
  flex-shrink: 0;
}

.rw-author-box-body {
  min-width: 0;
  flex: 1;
}

.rw-author-box-head {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.rw-author-box-name {
  font-family: var(--rw-font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rw-ink);
}

.rw-author-box-location {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rw-muted);
  padding: 2px 10px;
  border-radius: var(--rw-radius-pill);
  background: var(--rw-white);
  border: 1px solid var(--rw-sand);
}

.rw-author-box-bio {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--rw-body);
}

.rw-author-box-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.rw-author-box-links a {
  color: var(--rw-terracotta);
  transition: color 0.15s ease;
}

.rw-author-box-links a:hover {
  color: var(--rw-terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rw-author-box-footer {
  max-width: none;
  margin: 0 0 44px;
  padding: 0 0 40px;
  border: 0;
  border-bottom: 1px solid #e0d8cc;
  border-radius: 0;
  background: transparent;
  align-items: center;
}

.rw-author-box-footer .rw-author-box-bio {
  max-width: 760px;
}

@media (max-width: 600px) {
  .rw-author-box {
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
  }

  .rw-author-box-footer {
    align-items: flex-start;
    padding: 0 0 32px;
    margin-bottom: 32px;
  }
}

/* ==========================================================================
   Private Customer Area (Account & Course Classroom)
   ========================================================================== */
.rw-account-wrap {
  padding-block: 48px 80px;
}

.rw-account-auth-shell {
  max-width: 520px;
  margin-inline: auto;
  padding-block: 24px;
}

.rw-account-card {
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  padding: 40px 36px;
  box-shadow: var(--rw-shadow-sm);
}

@media (max-width: 560px) {
  .rw-account-card {
    padding: 28px 22px;
  }
}

.rw-account-title {
  margin-top: 8px;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--rw-ink);
}

.rw-account-subtitle {
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--rw-muted);
}

.rw-account-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rw-account-submit {
  width: 100%;
  justify-content: center;
  height: 50px;
  font-size: 0.98rem;
}

.rw-account-alert {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--rw-radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}

.rw-account-alert-error {
  background: #fdf2f0;
  border: 1px solid #ecc6be;
  color: #8b3324;
}

.rw-account-sent {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid #efeae2;
  text-align: center;
}

.rw-account-sent-icon {
  width: 44px;
  height: 44px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--rw-pine-soft);
  color: var(--rw-pine);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rw-account-sent-title {
  margin-top: 14px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-account-sent-body {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--rw-muted);
}

.rw-account-dev-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--rw-radius-md);
  border: 1px dashed var(--rw-terracotta);
  background: var(--rw-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rw-account-dev-note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--rw-muted);
}

.rw-account-text-btn {
  margin-top: 18px;
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--rw-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rw-account-text-btn:hover {
  color: var(--rw-terracotta-dark);
}

.rw-account-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rw-sand);
}

.rw-account-signed-in {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--rw-muted);
}

.rw-account-signed-in strong {
  color: var(--rw-ink);
  font-weight: 600;
}

.rw-account-empty {
  margin-top: 40px;
}

.rw-account-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.rw-account-empty-tip {
  margin-top: 12px;
  font-size: 0.9rem !important;
  color: var(--rw-muted) !important;
}

.rw-account-empty-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.rw-account-sections {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.rw-account-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.rw-account-section-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
}

.rw-account-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding-inline: 10px;
  border-radius: var(--rw-radius-pill);
  background: var(--rw-linen);
  border: 1px solid var(--rw-sand);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rw-muted);
}

.rw-account-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.rw-account-grid-patterns {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.rw-account-item-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  overflow: hidden;
  box-shadow: var(--rw-shadow-xs);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.rw-account-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rw-shadow-sm);
  border-color: var(--rw-sand-strong);
}

.rw-account-item-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--rw-linen);
  overflow: hidden;
}

.rw-account-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rw-account-item-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rw-account-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rw-account-date {
  font-size: 0.78rem;
  color: var(--rw-subtle);
}

.rw-account-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--rw-ink);
}

.rw-account-item-title a:hover {
  color: var(--rw-terracotta);
}

.rw-account-item-tagline {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--rw-muted);
}

.rw-account-item-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-btn-sm {
  padding: 9px 14px;
  font-size: 0.82rem;
}

.rw-btn-terracotta {
  background: var(--rw-terracotta);
  color: var(--rw-white);
}

.rw-btn-terracotta:hover {
  background: var(--rw-terracotta-dark);
}

.rw-account-missing-pdf {
  font-size: 0.82rem;
  color: var(--rw-subtle);
  font-style: italic;
}

/* Course Classroom */
.rw-classroom-wrap {
  max-width: 920px;
  margin-inline: auto;
  padding-block: 36px 84px;
}

.rw-classroom-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rw-sand);
}

.rw-classroom-back {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rw-terracotta);
}

.rw-classroom-back:hover {
  color: var(--rw-terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rw-classroom-email {
  font-size: 0.82rem;
  color: var(--rw-subtle);
}

.rw-classroom-header {
  margin-top: 28px;
}

.rw-classroom-title {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.14;
}

.rw-classroom-subtitle {
  margin-top: 12px;
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--rw-muted);
  max-width: 680px;
}

.rw-classroom-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-classroom-downloads {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-linen-soft);
}

.rw-classroom-download-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rw-classroom-videos {
  margin-top: 40px;
}

.rw-classroom-video-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rw-lesson-card {
  border-radius: var(--rw-radius-lg);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  padding: 22px 24px 24px;
  box-shadow: var(--rw-shadow-xs);
}

.rw-lesson-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rw-lesson-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rw-terracotta-soft);
  color: var(--rw-terracotta-dark);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rw-lesson-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-classroom-extras {
  margin-top: 36px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rw-classroom-help {
  margin-top: 40px;
  padding: 22px 26px;
  border-radius: var(--rw-radius-md);
  border: 1px solid var(--rw-sand);
  background: var(--rw-linen-soft);
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--rw-body);
}

/* ==========================================================================
   Shopping Cart (Header Button, Quick-Add Cards, Dual CTAs & Slide-Over Drawer)
   ========================================================================== */
.rw-cart-icon-btn {
  position: relative;
  cursor: pointer;
  padding: 0;
}

.rw-cart-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  border-radius: var(--rw-radius-pill);
  background: var(--rw-terracotta);
  color: var(--rw-white);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(166, 93, 78, 0.35);
}

.rw-cart-icon-btn.is-pulsing {
  animation: rw-cart-pulse 0.36s ease;
}

@keyframes rw-cart-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); border-color: var(--rw-terracotta); }
  100% { transform: scale(1); }
}

.rw-cta-stack {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rw-btn-pine.is-in-cart {
  background: var(--rw-terracotta);
}

.rw-btn-pine.is-in-cart:hover {
  background: var(--rw-terracotta-dark);
}

.rw-card-footer-action {
  padding: 0 22px 20px;
  margin-top: -4px;
}

.rw-card-cart-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid var(--rw-sand-strong);
  background: var(--rw-cream);
  color: var(--rw-ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.rw-card-cart-btn:hover {
  background: var(--rw-pine);
  border-color: var(--rw-pine);
  color: var(--rw-white);
}

.rw-card-cart-btn.is-in-cart {
  background: var(--rw-pine-soft);
  border-color: rgba(44, 74, 62, 0.35);
  color: var(--rw-pine);
}

.rw-card-cart-btn.is-in-cart:hover {
  background: var(--rw-pine);
  border-color: var(--rw-pine);
  color: var(--rw-white);
}

.rw-account-alert-success {
  background: var(--rw-pine-soft);
  border: 1px solid rgba(44, 74, 62, 0.28);
  color: var(--rw-pine-dark);
}

body.rw-cart-open {
  overflow: hidden;
}

.rw-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(28, 25, 23, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.rw-cart-backdrop.is-open {
  opacity: 1;
}

.rw-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 410;
  width: min(440px, 100vw);
  background: var(--rw-cream);
  border-left: 1px solid var(--rw-sand);
  box-shadow: -12px 0 36px rgba(28, 25, 23, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.rw-cart-drawer.is-open {
  transform: translateX(0);
}

.rw-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rw-sand);
  background: var(--rw-white);
}

.rw-cart-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rw-cart-head h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.rw-cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  color: var(--rw-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rw-cart-close-btn:hover {
  border-color: var(--rw-terracotta);
  color: var(--rw-ink);
}

.rw-cart-close-btn svg {
  width: 18px;
  height: 18px;
}

.rw-cart-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 24px;
}

.rw-cart-empty {
  text-align: center;
  padding: 44px 12px;
}

.rw-cart-empty-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--rw-linen);
  border: 1px solid var(--rw-sand);
  color: var(--rw-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rw-cart-empty-icon svg {
  width: 26px;
  height: 26px;
}

.rw-cart-empty h3 {
  margin-top: 16px;
  font-size: 1.28rem;
  font-weight: 600;
}

.rw-cart-empty p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--rw-muted);
}

.rw-cart-empty-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rw-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rw-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--rw-radius-md);
  border: 1px solid var(--rw-sand);
  background: var(--rw-white);
  box-shadow: var(--rw-shadow-xs);
}

.rw-cart-item-thumb {
  width: 58px;
  height: 70px;
  border-radius: var(--rw-radius-sm);
  overflow: hidden;
  background: var(--rw-linen);
  flex-shrink: 0;
}

.rw-cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rw-cart-item-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rw-cart-item-kind {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-terracotta);
}

.rw-cart-item-title {
  font-family: var(--rw-font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--rw-ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.rw-cart-item-title:hover {
  color: var(--rw-terracotta);
}

.rw-cart-item-price {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rw-body);
}

.rw-cart-item-remove {
  width: 30px;
  height: 30px;
  border-radius: var(--rw-radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--rw-subtle);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.rw-cart-item-remove:hover {
  color: #8b3324;
  background: #fdf2f0;
}

.rw-cart-alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--rw-radius-sm);
  font-size: 0.86rem;
  line-height: 1.5;
}

.rw-cart-alert-error {
  background: #fdf2f0;
  border: 1px solid #ecc6be;
  color: #8b3324;
}

.rw-cart-alert-info {
  background: var(--rw-pine-soft);
  border: 1px solid rgba(44, 74, 62, 0.25);
  color: var(--rw-pine-dark);
}

.rw-cart-dev-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--rw-radius-md);
  border: 1px dashed var(--rw-terracotta);
  background: var(--rw-white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rw-cart-dev-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rw-terracotta-dark);
}

.rw-cart-dev-body {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--rw-muted);
}

.rw-cart-footer {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--rw-sand);
  background: var(--rw-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rw-cart-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.96rem;
  color: var(--rw-muted);
}

.rw-cart-summary-row strong {
  font-family: var(--rw-font-serif);
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--rw-ink);
}

.rw-cart-delivery-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--rw-muted);
}

.rw-cart-clear-btn {
  align-self: center;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--rw-subtle);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rw-cart-clear-btn:hover {
  color: var(--rw-ink);
}

@media (max-width: 520px) {
  .rw-cart-head,
  .rw-cart-body,
  .rw-cart-footer {
    padding-inline: 16px;
  }
}
