/* =========================================================================
   CrochetSimply — theme styles
   Palette, type and spacing taken 1:1 from the reference design.
   ========================================================================= */

:root {
  --cs-header-h:  78px;
  --cs-bg:        #FAF6EF;
  --cs-bg-warm:   #F3EFE4;
  --cs-panel:     #FFFDF8;
  --cs-panel-2:   #F6F1E6;
  --cs-ink:       #2C3A2D;
  --cs-ink-soft:  #45412F;
  --cs-green:     #3F5140;
  --cs-green-dk:  #2C3A2D;
  --cs-sage:      #7A9B76;
  --cs-clay:      #CC9179;
  --cs-muted:     #5C5647;
  --cs-muted-2:   #857D6C;
  --cs-muted-3:   #9A9080;
  --cs-taupe:     #7A6A56;
  --cs-line:      #E6DECF;
  --cs-line-2:    #E0D7C6;
  --cs-line-3:    #DCD2C0;
  --cs-dark:      #2C3A2D;
  --cs-dark-text: #C8D2C4;
  --cs-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --cs-sans: "Karla", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cs-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --cs-container: 1240px;
  --cs-radius: 18px;
  --cs-shadow: 0 26px 48px -30px rgba(44, 58, 45, 0.45);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Jump targets for the "On this page" table of contents — there are over a
   dozen possible article sections (see inc/block-patterns.php), each with
   its own id, so this targets any anchored element inside the article
   rather than hand-listing every section id. Keeps them clear of the sticky
   mobile header / filter bar and gives a little breathing room above the
   heading rather than landing flush with the viewport edge. */
.cs-article [id] { scroll-margin-top: calc(var(--cs-header-h) + 16px); }
body.admin-bar .cs-article [id] { scroll-margin-top: calc(var(--cs-header-h) + 48px); }

body {
  margin: 0;
  background: var(--cs-bg);
  color: var(--cs-ink);
  font-family: var(--cs-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--cs-green); text-decoration: none; }
a:hover { color: var(--cs-clay); }
::selection { background: var(--cs-clay); color: var(--cs-bg); }

h1, h2, h3, h4 { font-family: var(--cs-serif); font-weight: 500; color: var(--cs-ink); letter-spacing: -0.015em; }

button { font-family: inherit; }

.cs-container { max-width: var(--cs-container); margin: 0 auto; padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cs-green); color: var(--cs-bg);
  padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--cs-bg); }

/* Keyframes */
@keyframes csRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes csFade { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================================
   Buttons, chips, badges
   ========================================================================= */
.cs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cs-btn--solid { background: var(--cs-green); color: var(--cs-bg); }
.cs-btn--solid:hover { background: var(--cs-green-dk); color: var(--cs-bg); }
.cs-btn--ghost { border-color: var(--cs-green); color: var(--cs-green); }
.cs-btn--ghost:hover { background: var(--cs-clay); border-color: var(--cs-clay); color: var(--cs-ink); }
.cs-btn--clay { background: var(--cs-clay); color: var(--cs-ink); }
.cs-btn--clay:hover { background: var(--cs-bg); color: var(--cs-ink); }
.cs-btn--sm { padding: 11px 20px; font-size: 13.5px; }

.cs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cs-clay);
}
.cs-eyebrow--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cs-clay); }

.cs-pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 7px 14px; border-radius: 999px;
  background: var(--cs-panel); border: 1px solid var(--cs-line-2);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-taupe);
}
.cs-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cs-clay); }

.cs-chip {
  padding: 9px 15px; border-radius: 999px;
  font-family: var(--cs-sans); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  border: 1px solid var(--cs-line-2); background: var(--cs-panel); color: var(--cs-muted);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cs-chip--lg { padding: 10px 16px; }
/* Filter chips are links; match the line height they had as buttons. */
a.cs-chip { display: inline-block; line-height: normal; }
.cs-chip:hover { border-color: var(--cs-sage); color: var(--cs-green); }
.cs-chip.is-active { background: var(--cs-green); border-color: var(--cs-green); color: var(--cs-bg); }

.cs-badge-level {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(250, 246, 239, 0.95);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cs-green);
}

/* =========================================================================
   Site header
   ========================================================================= */
/* The desktop header stays pinned to the top while scrolling (the mobile one
   below already does). "--cs-header-h" is the pinned header's height, kept
   accurate by assets/js/theme.js, so the sticky filter bar, the "On this
   page" box and anchor jumps all sit just beneath it instead of under it. */
.cs-header { position: relative; z-index: 40; background: var(--cs-bg); border-bottom: 1px solid var(--cs-line); }
.cs-header--desktop { position: sticky; top: 0; box-shadow: 0 1px 0 var(--cs-line); }
body.admin-bar .cs-header--desktop { top: 32px; }
.cs-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px clamp(16px, 2vw, 24px);
  max-width: var(--cs-container); margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 40px);
}
.cs-logo { flex: 0 0 auto; display: block; }
.cs-logo img { height: 42px; width: auto; }
.cs-logo .cs-logo__text { font-family: var(--cs-serif); font-size: 26px; color: var(--cs-green); }

.cs-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; }
.cs-nav a { color: var(--cs-green); }
.cs-nav a:hover { color: var(--cs-clay); }
.cs-nav__item { position: relative; padding: 10px 0; }
.cs-nav__item > a { display: inline-flex; align-items: center; gap: 6px; }
.cs-nav__caret { display: inline-block; transition: transform .18s ease; font-size: 11px; color: var(--cs-sage); }
.cs-nav__item.is-open .cs-nav__caret { transform: rotate(180deg); }

.cs-megamenu {
  position: absolute; top: 100%; left: -20px; width: 288px; padding: 10px;
  background: var(--cs-panel); border: 1px solid var(--cs-line); border-radius: 14px;
  box-shadow: 0 22px 44px -24px rgba(44, 58, 45, 0.4);
  animation: csRise .18s ease both;
  display: none;
}
.cs-nav__item.is-open .cs-megamenu,
.cs-nav__item:hover .cs-megamenu,
.cs-nav__item:focus-within .cs-megamenu { display: block; }
/* Escape closes it even while keyboard focus is still inside (assets/js/theme.js). */
.cs-nav__item.is-dismissed .cs-megamenu { display: none; }
.cs-megamenu a {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--cs-green);
}
.cs-megamenu a:hover { background: var(--cs-bg-warm); color: var(--cs-green); }
.cs-megamenu img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.cs-megamenu__count { display: block; font-size: 11.5px; font-weight: 500; color: var(--cs-muted-2); letter-spacing: 0.02em; }

.cs-header__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1 1 260px; justify-content: flex-end; min-width: 0; }
.cs-search {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--cs-line-2); border-radius: 999px; background: var(--cs-panel);
  flex: 1 1 130px; max-width: 220px; min-width: 0;
}
.cs-search__icon { width: 13px; height: 13px; border: 1.8px solid var(--cs-sage); border-radius: 50%; flex: 0 0 auto; }
.cs-search input {
  border: 0; outline: none; background: transparent; width: 100%;
  font-family: var(--cs-sans); font-size: 13.5px; color: var(--cs-ink);
}

/* Mobile header */
.cs-header--mobile { position: sticky; top: 0; z-index: 40; background: rgba(250, 246, 239, 0.93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cs-line); display: none; }
body.admin-bar .cs-header--mobile { top: 46px; }
.cs-header--mobile .cs-header__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.cs-header--mobile .cs-logo img { height: 32px; }
.cs-burger {
  display: grid; gap: 4px; width: 44px; height: 44px; place-content: center;
  border: 1px solid var(--cs-line-2); border-radius: 12px; background: var(--cs-panel); cursor: pointer;
}
.cs-burger span { display: block; width: 18px; height: 2px; background: var(--cs-green); }
.cs-mobile-panel { padding: 6px 12px 16px; border-top: 1px solid var(--cs-line); animation: csFade .18s ease both; }
.cs-mobile-panel[hidden] { display: none; }
.cs-mobile-search {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; margin: 8px 4px 12px;
  border: 1px solid var(--cs-line-2); border-radius: 999px; background: var(--cs-panel);
}
.cs-mobile-search input { border: 0; outline: none; background: transparent; width: 100%; font-family: var(--cs-sans); font-size: 15px; }
.cs-mobile-nav { display: grid; gap: 2px; }
.cs-mobile-nav a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 10px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--cs-green); }
.cs-mobile-nav a img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.cs-mobile-cta { display: block; margin: 12px 4px 0; padding: 15px; border-radius: 14px; background: var(--cs-green); color: var(--cs-bg); text-align: center; font-weight: 700; }
.cs-mobile-cta:hover { color: var(--cs-bg); }

@media (max-width: 840px) {
  .cs-header--desktop { display: none; }
  .cs-header--mobile { display: block; }
}

/* =========================================================================
   Hero (front page)
   ========================================================================= */
.cs-hero { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--cs-bg-warm); }
.cs-hero__text {
  flex: 1 1 380px; min-width: min(100%, 320px);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(32px, 6vw, 76px) clamp(20px, 5vw, 68px);
}
.cs-hero__title {
  margin: 0; font-weight: 500; font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
}
.cs-hero__lead { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.65; color: var(--cs-muted); }
.cs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cs-hero__stats { display: flex; flex-wrap: wrap; gap: 22px 34px; padding-top: 8px; font-size: 13px; color: var(--cs-taupe); }
.cs-hero__stats strong { font-family: var(--cs-serif); font-size: 22px; color: var(--cs-green); display: block; font-weight: 500; }
.cs-hero__media { flex: 1 1 420px; min-width: min(100%, 320px); position: relative; }
.cs-hero__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.cs-hero__card {
  position: absolute; bottom: clamp(14px, 3vw, 28px); left: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px);
  max-width: 300px; padding: 16px 18px; background: rgba(250, 246, 239, 0.95); border-radius: 16px;
}
.cs-hero__card span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-clay); }
.cs-hero__card p { margin: 6px 0 0; font-family: var(--cs-serif); font-size: 19px; line-height: 1.25; color: var(--cs-ink); }
a.cs-hero__card { transition: transform .18s ease, box-shadow .18s ease; }
a.cs-hero__card:hover { transform: translateY(-2px); box-shadow: var(--cs-shadow); }
a.cs-hero__card:hover p { color: var(--cs-ink); }

/* =========================================================================
   Generic section + section head
   ========================================================================= */
.cs-section { max-width: var(--cs-container); margin: 0 auto; padding: clamp(46px, 6vw, 84px) clamp(16px, 3vw, 40px) 0; }
.cs-section--flush-b { padding-bottom: clamp(46px, 6vw, 84px); }
.cs-section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin-bottom: 26px;
}
.cs-section-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); }
.cs-section-head__link { font-size: 14px; font-weight: 700; color: var(--cs-green); border-bottom: 1.5px solid var(--cs-clay); padding-bottom: 2px; }
.cs-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Category grid */
.cs-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.cs-cat-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--cs-radius); border: 1px solid var(--cs-line); background: var(--cs-panel);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cs-cat-card:hover { border-color: var(--cs-clay); box-shadow: var(--cs-shadow); }
.cs-cat-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cs-cat-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; }
.cs-cat-card__count { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cs-taupe); }
.cs-cat-card__go { font-size: 13px; font-weight: 700; color: var(--cs-green); }

/* =========================================================================
   Pattern card grid
   ========================================================================= */
.cs-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
.cs-post-grid--tight { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.cs-card { display: flex; flex-direction: column; gap: 14px; padding: 0 0 18px; border-bottom: 1px solid var(--cs-line); transition: border-color .18s ease; }
.cs-card:hover { border-color: var(--cs-clay); }
.cs-card__media { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: #EDE6D8; }
.cs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cs-card:hover .cs-card__media img { transform: scale(1.03); }
.cs-card__kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cs-clay); }
.cs-card__kicker .sep { width: 3px; height: 3px; border-radius: 50%; background: #C6BCA8; }
.cs-card__kicker .time { color: var(--cs-muted-3); letter-spacing: 0.06em; font-weight: 700; }
.cs-card__title { font-family: var(--cs-serif); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; color: var(--cs-ink); text-wrap: pretty; }
.cs-card a.cs-card__title:hover { color: var(--cs-clay); }
.cs-card__blurb { font-size: 14.5px; line-height: 1.6; color: var(--cs-muted); }
.cs-card__meta { font-size: 13px; color: var(--cs-muted-2); }

/* Plain card variant (no bottom border, used on archives) */
.cs-card--plain { border-bottom: 0; padding-bottom: 0; gap: 12px; }
.cs-card--plain .cs-card__title { font-size: 21px; }

/* =========================================================================
   Dark "Editor's picks" section
   ========================================================================= */
.cs-dark { margin-top: clamp(46px, 6vw, 84px); background: var(--cs-green); color: #EDE6D8; }
.cs-dark__inner { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); max-width: var(--cs-container); margin: 0 auto; padding: clamp(40px, 5vw, 76px) clamp(16px, 3vw, 40px); }
.cs-dark__lead { flex: 1 1 300px; }
.cs-dark__lead h2 { margin: 12px 0 14px; font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; color: var(--cs-bg); }
.cs-dark__lead p { margin: 0 0 22px; max-width: 44ch; font-size: 15.5px; line-height: 1.7; color: #C8D2C4; }
.cs-dark__list { flex: 1 1 340px; display: grid; gap: 10px; }
.cs-rank {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  border: 1px solid #56684F; border-radius: 14px; transition: background .18s ease, border-color .18s ease;
}
.cs-rank:hover { background: #4A5C48; border-color: var(--cs-sage); }
.cs-rank img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.cs-rank span { font-size: 15px; font-weight: 600; color: var(--cs-bg); }
.cs-rank span small { display: block; font-weight: 400; font-size: 13px; color: #AFBCAB; margin-top: 3px; }

/* =========================================================================
   Newsletter CTA block
   ========================================================================= */
.cs-newsletter-cta { max-width: var(--cs-container); margin: 0 auto; padding: clamp(46px, 6vw, 84px) clamp(16px, 3vw, 40px); }
.cs-newsletter-cta__box {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 3.5vw, 44px); background: var(--cs-bg-warm);
  border: 1px solid var(--cs-line); border-radius: 24px;
}
.cs-newsletter-cta__box > div { flex: 1 1 320px; }
.cs-newsletter-cta__box h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
.cs-newsletter-cta__box p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--cs-muted); }
.cs-inline-form { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 10px; }
.cs-inline-form input[type="email"] {
  flex: 1 1 200px; min-width: 0; padding: 15px 18px;
  border: 1px solid var(--cs-line-3); border-radius: 999px; background: var(--cs-panel);
  font-family: var(--cs-sans); font-size: 15px; color: var(--cs-ink); outline: none;
}
.cs-inline-form button {
  padding: 15px 26px; border: 0; border-radius: 999px; background: var(--cs-green); color: var(--cs-bg);
  font-family: var(--cs-sans); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.cs-inline-form button:hover { background: var(--cs-clay); color: var(--cs-ink); }
.cs-inline-form .cs-form-note { flex: 1 0 100%; font-size: 12px; color: var(--cs-muted-2); }
.cs-inline-form .cs-form-note a { border-bottom: 1px solid var(--cs-clay); }

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.cs-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--cs-muted-2); }
.cs-crumbs a { color: var(--cs-muted-2); }
.cs-crumbs a:hover { color: var(--cs-clay); }
.cs-crumbs .current { color: var(--cs-ink); }

/* =========================================================================
   Category / taxonomy archive
   ========================================================================= */
.cs-archive-hero { max-width: var(--cs-container); margin: 0 auto; padding: clamp(16px, 2.5vw, 30px) clamp(16px, 3vw, 40px) 0; }
.cs-archive-hero__crumbs { margin-bottom: 14px; }
.cs-archive-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 40px); padding-bottom: 4px; }
.cs-archive-hero__img { flex: 1 1 300px; min-width: min(100%, 260px); max-width: 480px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.cs-archive-hero__body { flex: 1 1 300px; min-width: min(100%, 260px); }
.cs-archive-hero__body p { margin: 0 0 12px; max-width: 46ch; font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.65; color: var(--cs-muted); }
.cs-archive-hero__count { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cs-muted-3); }
.cs-archive-title { margin: 0; font-size: clamp(28px, 4vw, 44px); }

.cs-filterbar { border-bottom: 1px solid var(--cs-line); background: var(--cs-bg); position: sticky; top: var(--cs-header-h); z-index: 20; }
body.admin-bar .cs-filterbar { top: calc(var(--cs-header-h) + 32px); }
@media (max-width: 840px) {
	/* Sit below the sticky mobile header instead of sliding underneath it. */
	.cs-filterbar { top: var(--cs-header-h); }
	body.admin-bar .cs-filterbar { top: calc(var(--cs-header-h) + 46px); }
}
.cs-filterbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: var(--cs-container); margin: 0 auto; padding: 14px clamp(16px, 3vw, 40px); }
.cs-filterbar__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cs-muted-3); margin-right: 6px; }
.cs-filterbar__count { margin-left: auto; font-size: 13px; color: var(--cs-muted-2); }

.cs-archive-body { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); max-width: var(--cs-container); margin: 0 auto; padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 40px); }
.cs-archive-main { flex: 1 1 520px; min-width: min(100%, 300px); }
.cs-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(18px, 2.2vw, 28px); }

.cs-empty { display: grid; place-items: center; gap: 14px; padding: clamp(40px, 6vw, 72px) 20px; border: 1px dashed var(--cs-line-3); border-radius: 20px; text-align: center; }
.cs-empty__title { font-family: var(--cs-serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--cs-ink); }
.cs-empty p { max-width: 44ch; font-size: 15px; line-height: 1.65; color: var(--cs-muted); margin: 0; }

/* Pagination */
.cs-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.cs-pagination .page-numbers {
  min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--cs-line-2); border-radius: 12px; font-weight: 600; font-size: 14px;
  background: var(--cs-panel); color: var(--cs-green);
}
.cs-pagination .page-numbers.current { background: var(--cs-green); border-color: var(--cs-green); color: var(--cs-bg); font-weight: 700; }
.cs-pagination .page-numbers.dots { border: 0; background: transparent; color: #A79D8C; }
.cs-pagination a.page-numbers:hover { border-color: var(--cs-sage); }
.cs-pagination .next.page-numbers, .cs-pagination .prev.page-numbers { border-color: var(--cs-green); color: var(--cs-green); font-weight: 700; }
.cs-pagination .next.page-numbers:hover, .cs-pagination .prev.page-numbers:hover { background: var(--cs-green); color: var(--cs-bg); }

/* =========================================================================
   Sidebar
   ========================================================================= */
.cs-sidebar { flex: 0 1 316px; min-width: min(100%, 280px); display: grid; gap: 18px; align-content: start; }
.cs-widget { padding: 22px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); background: var(--cs-panel); }
.cs-widget--warm { background: var(--cs-bg-warm); }
.cs-widget__title-serif { margin: 0 0 6px; font-family: var(--cs-serif); font-weight: 500; font-size: 22px; color: var(--cs-ink); }
.cs-widget__title { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-muted-3); font-family: var(--cs-sans); }
.cs-widget p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--cs-muted); }
.cs-widget input[type="email"] {
  width: 100%; padding: 13px 16px; border: 1px solid var(--cs-line-3); border-radius: 999px;
  background: var(--cs-panel); font-family: var(--cs-sans); font-size: 14.5px; outline: none; margin-bottom: 8px;
}
.cs-widget button {
  width: 100%; padding: 13px; border: 0; border-radius: 999px; background: var(--cs-green); color: var(--cs-bg);
  font-family: var(--cs-sans); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.cs-widget button:hover { background: var(--cs-clay); color: var(--cs-ink); }
.cs-widget .cs-inline-form { display: block; }
.cs-widget .cs-inline-form .cs-form-note { margin-top: 4px; }
.cs-widget__list { display: grid; gap: 14px; }
.cs-mini { display: flex; gap: 12px; align-items: center; }
.cs-mini img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.cs-mini span { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--cs-ink); }
.cs-mini span small { display: block; font-weight: 400; font-size: 12.5px; color: var(--cs-muted-2); margin-top: 3px; }
.cs-widget ul { margin: 0; padding-left: 18px; }
.cs-widget li { margin-bottom: 8px; font-size: 14.5px; }

/* =========================================================================
   Single pattern
   ========================================================================= */
.cs-single-crumbs { max-width: var(--cs-container); margin: 0 auto; padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 40px) 0; }
.cs-single { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 52px); max-width: var(--cs-container); margin: 0 auto; padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 40px) clamp(40px, 5vw, 72px); }
.cs-article { flex: 1 1 560px; min-width: min(100%, 300px); }
.cs-article__title { margin: 12px 0 16px; font-weight: 400; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.cs-article__lead { margin: 0 0 22px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.62; color: var(--cs-muted); max-width: 62ch; }
.cs-article__byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 16px 0; border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); margin-bottom: 26px;
}
.cs-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--cs-sage); display: grid; place-items: center; color: var(--cs-bg); font-family: var(--cs-serif); font-size: 17px; overflow: hidden; flex: 0 0 auto; }
.cs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cs-byline__who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cs-muted); }
.cs-byline__who strong { color: var(--cs-ink); }
.cs-byline__who small { display: block; font-size: 12.5px; color: var(--cs-muted-2); }
.cs-byline__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cs-byline__actions a,
.cs-byline__actions button {
	padding: 10px 16px; border: 1px solid var(--cs-line-2); border-radius: 999px;
	font-size: 13px; font-weight: 600; background: var(--cs-panel); color: var(--cs-green);
	font-family: var(--cs-sans); cursor: pointer; line-height: 1;
}
.cs-byline__actions a:hover,
.cs-byline__actions button:hover { border-color: var(--cs-sage); color: var(--cs-green); }

/* Always leaves room below the photo before whatever comes next — the
   caption used to be the only thing providing that gap, so a pattern with
   no caption had the specs grid sitting flush against the image. When a
   caption IS present, the image keeps a tight gap to it (a caption reads as
   part of the photo) and the caption itself provides the larger gap after. */
.cs-article__hero { width: 100%; margin: 0 0 32px; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.cs-article__hero:has(+ .cs-article__caption) { margin-bottom: 10px; }
.cs-article__caption { margin: 0 0 32px; font-size: 12.5px; color: var(--cs-muted-2); font-style: italic; }

/* Pattern Information card — a scannable label/value strip. Desktop: two
   columns per row, alternating background. Mobile: label stacks above value
   so nothing gets cramped or truncated. Rows are just whatever facts have a
   value — see crochetsimply_info_card_rows(). */
.cs-infocard { margin-bottom: 32px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); overflow: hidden; background: var(--cs-panel); }
.cs-infocard .cs-infocard__title {
	margin: 0; padding: 16px 20px; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--cs-bg); background: var(--cs-green); font-family: var(--cs-sans);
}
.cs-infocard__grid { display: grid; margin: 0; }
.cs-infocard__row {
	display: grid; grid-template-columns: 160px 1fr; gap: 4px 20px;
	padding: 13px 20px; border-top: 1px solid var(--cs-line);
}
.cs-infocard__row:nth-child(even) { background: var(--cs-panel-2); }
.cs-infocard__label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cs-muted-3); }
.cs-infocard__value { margin: 0; font-size: 15px; color: var(--cs-ink); font-weight: 600; }
@media (max-width: 520px) {
	.cs-infocard__row { grid-template-columns: 1fr; gap: 3px; }
}

.cs-article h2 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 32px); }
.cs-prose { font-size: 16.5px; line-height: 1.8; color: var(--cs-ink-soft); }
/* ":where()" keeps these at the specificity of ".cs-prose" alone (instead of
   ".cs-prose" + the tag), so the article's own component classes — .cs-materials,
   .cs-step__title/__body, .cs-yarnnote__text, .cs-testnote__label, .cs-steps-intro —
   always win over this generic prose styling, however deep they're nested. */
.cs-prose :where(p) { margin: 0 0 18px; }
.cs-prose :where(ul, ol) { margin: 0 0 18px; padding-left: 20px; }
.cs-prose :where(li) { margin-bottom: 4px; }
.cs-prose a { border-bottom: 1px solid var(--cs-clay); }
.cs-prose img { border-radius: 16px; margin: 10px 0 24px; }
.cs-prose blockquote { margin: 20px 0; padding: 18px 22px; background: var(--cs-bg-warm); border: 1px solid var(--cs-line-2); border-radius: 16px; font-style: normal; }
.cs-prose h2 { margin-top: 34px; }
.cs-prose h3 { margin: 28px 0 10px; font-size: clamp(20px, 2vw, 24px); }

.cs-materials { margin: 0 0 12px; padding: 0 0 0 20px; font-size: 16.5px; line-height: 1.8; color: var(--cs-ink-soft); }
.cs-materials li { margin-bottom: 4px; }
/* Belt-and-braces: these are plain Group blocks used purely as styling
   hooks, not for WP's layout/alignment system, so nothing it might inject
   should ever constrain their width. */
.cs-yarnnote, .cs-step, .cs-steps, .cs-testnote, .cs-abbreviations-note, .cs-assembly, .cs-customize-grid, .cs-customize-item, .cs-care { max-width: none; }

.cs-yarnnote {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 18px 20px; margin: 20px 0 34px; background: var(--cs-bg-warm);
  border: 1px solid var(--cs-line-2); border-radius: 16px;
}
/* ".cs-yarnnote span" covers the legacy PHP-rendered note; "__text" is the
   class the block-authored version (a Paragraph block) carries instead. */
.cs-yarnnote span, .cs-yarnnote__text { margin: 0; flex: 1 1 240px; font-size: 14.5px; line-height: 1.6; color: var(--cs-muted); }
.cs-yarnnote strong { color: var(--cs-ink); }

.cs-steps-intro { margin: 0 0 24px; font-size: 15px; color: var(--cs-muted-2); }
/* Legacy steps render as an <ol> (numbered for screen readers) — reset its
   default list styling; the visible numbers are the green circles. */
.cs-steps { display: grid; gap: 18px; margin: 0 0 34px; padding: 0; list-style: none; counter-reset: cs-step; }
.cs-step { display: flex; gap: 18px; padding: 20px 22px; background: var(--cs-panel); border: 1px solid var(--cs-line); border-radius: 16px; }
.cs-step__n { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--cs-green); color: var(--cs-bg); font-family: var(--cs-serif); font-size: 18px; }
.cs-step__title { display: block; margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--cs-ink); }
.cs-step__body { display: block; margin: 0; font-size: 16px; line-height: 1.72; color: var(--cs-ink-soft); }
/* Block-authored steps ("cs-step--auto", see inc/block-patterns.php) have no
   hand-typed number span — number the circle from a CSS counter instead, so
   reordering the blocks in the editor renumbers them automatically. */
.cs-step.cs-step--auto {
  position: relative; flex-direction: column; gap: 4px; padding-left: 74px;
}
.cs-step.cs-step--auto::before {
  counter-increment: cs-step; content: counter(cs-step);
  position: absolute; left: 22px; top: 20px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cs-green); color: var(--cs-bg);
  font-family: var(--cs-serif); font-size: 18px;
}

.cs-testnote { padding: 24px; background: var(--cs-green); border-radius: 20px; margin-bottom: 34px; }
/* Base body-text rule first (":where" keeps its specificity at just one
   class), so the more specific "__label" override below always wins the
   cascade for that one paragraph regardless of source order. */
.cs-testnote :where(p) { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: #E3DCCD; }
.cs-testnote__label { display: block; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-clay); }

/* =========================================================================
   Extra article sections — sizing chart / stitches table, tips & variation
   bullets, troubleshooting Q&A, the FAQ accordion, and the visual step
   guide. All written as ordinary blocks inside the "Pattern article layout"
   pattern (see inc/block-patterns.php) — these rules just style the classes
   that pattern already attaches.
   ========================================================================= */

/* Table block — used for the sizing chart and the stitches reference.
   Horizontal scroll on narrow screens instead of breaking the article
   layout; WP already wraps every table block in a scrollable "figure". */
.cs-prose .wp-block-table { margin: 0 0 28px; overflow-x: auto; }
.cs-prose .wp-block-table table {
	width: 100%; min-width: 420px; border-collapse: collapse; font-size: 15px;
}
.cs-prose .wp-block-table th, .cs-prose .wp-block-table td {
	padding: 12px 16px; border: 1px solid var(--cs-line); text-align: left; vertical-align: top;
}
.cs-prose .wp-block-table thead th {
	background: var(--cs-green); color: var(--cs-bg); font-weight: 700; font-size: 12.5px;
	letter-spacing: 0.04em; text-transform: uppercase; border-color: var(--cs-green);
}
.cs-prose .wp-block-table tbody tr:nth-child(even) { background: var(--cs-panel-2); }
.cs-prose .wp-block-table figcaption { margin-top: 8px; font-size: 12.5px; color: var(--cs-muted-2); }

/* A short paragraph directly under a "Finished size" / "Gauge" heading that
   restates the headline figure — a touch larger than body text. */
.cs-fact-line { margin: 0 0 18px; font-family: var(--cs-serif); font-size: 21px; color: var(--cs-ink); }

/* Troubleshooting — each question is its own bordered card. */
.cs-qa { display: grid; gap: 14px; margin-bottom: 34px; }
.cs-qa-item { padding: 18px 22px; background: var(--cs-panel); border: 1px solid var(--cs-line); border-radius: 16px; }
.cs-qa-item__q { display: block; margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: var(--cs-ink); }
.cs-qa-item__a { display: block; margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--cs-ink-soft); }

/* FAQ — the native Details block gives us an accordion with zero JS. */
.cs-prose details.wp-block-details {
	margin: 0 0 12px; padding: 18px 22px; background: var(--cs-panel);
	border: 1px solid var(--cs-line); border-radius: 16px;
}
.cs-prose details.wp-block-details[open] { background: var(--cs-panel-2); }
.cs-prose details.wp-block-details summary {
	cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	font-size: 16.5px; font-weight: 700; color: var(--cs-ink);
}
.cs-prose details.wp-block-details summary::-webkit-details-marker { display: none; }
.cs-prose details.wp-block-details summary::after {
	content: "+"; flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center;
	border-radius: 50%; background: var(--cs-bg-warm); color: var(--cs-green); font-size: 16px; line-height: 1;
	transition: transform .18s ease;
}
.cs-prose details.wp-block-details[open] summary::after { transform: rotate(45deg); }
.cs-prose details.wp-block-details > :where(p) { margin: 14px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--cs-ink-soft); }

/* Visual step-by-step guide — a photo + short explanation per step. */
.cs-stepguide { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 34px; }
.cs-stepguide-item { display: grid; gap: 10px; }
.cs-stepguide-item .wp-block-image { margin: 0; }
.cs-stepguide-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.cs-stepguide-item__title { display: block; margin: 0; font-size: 15px; font-weight: 700; color: var(--cs-ink); }
.cs-stepguide-item > :where(p):not(.cs-stepguide-item__title) { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--cs-muted); }

/* Abbreviations & Terminology — warm callout for the US/UK terms note. */
.cs-abbreviations-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 18px 22px; margin: 0 0 34px; background: var(--cs-panel-2);
  border: 1px solid var(--cs-line-2); border-radius: 16px;
}
.cs-abbreviations-note__text { margin: 0; flex: 1 1 240px; font-size: 15px; line-height: 1.65; color: var(--cs-ink-soft); }
.cs-abbreviations-note strong { color: var(--cs-ink); }

/* Assembly & Finishing — ordered bullet list. */
.cs-assembly { margin: 0 0 12px; padding: 0 0 0 24px; font-size: 16.5px; line-height: 1.8; color: var(--cs-ink-soft); list-style-type: decimal; }
.cs-assembly li { margin-bottom: 6px; padding-left: 4px; }
.cs-assembly li::marker { color: var(--cs-green); font-weight: 700; }

/* How to Customize — responsive card grid. */
.cs-customize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 34px; }
.cs-customize-item {
  padding: 20px 22px; background: var(--cs-panel); border: 1px solid var(--cs-line);
  border-radius: 16px;
}
.cs-customize-item__label { display: block; margin: 0 0 6px; font-size: 16px; color: var(--cs-ink); }
.cs-customize-item > :where(p):not(.cs-customize-item__label) { margin: 0; font-size: 15px; line-height: 1.7; color: var(--cs-ink-soft); }

/* Blocking, Washing & Care — sage-tinted callout card. */
.cs-care {
  padding: 20px 22px; margin: 0 0 20px;
  background: linear-gradient(135deg, rgba(122, 155, 118, 0.08), rgba(122, 155, 118, 0.04));
  border: 1px solid rgba(122, 155, 118, 0.25); border-radius: 16px;
}
.cs-care__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--cs-ink-soft); }
.cs-care strong { color: var(--cs-green); }

/* "Written by" author card — template-parts/author-box.php. A brand-colour
   ribbon along the top, a ringed photo, and the name / role / bio / links. */
.cs-authorbox {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(18px, 3vw, 28px);
  margin: 12px 0 34px; padding: clamp(26px, 3.5vw, 36px) clamp(22px, 3.5vw, 34px) clamp(22px, 3vw, 30px);
  background: var(--cs-panel); border: 1px solid var(--cs-line); border-radius: 22px;
  box-shadow: 0 22px 40px -32px rgba(44, 58, 45, 0.4);
}
.cs-authorbox::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--cs-green), var(--cs-sage) 55%, var(--cs-clay));
}
.cs-authorbox .cs-avatar {
  width: 96px; height: 96px; font-size: 38px;
  border: 4px solid var(--cs-bg-warm); box-shadow: 0 0 0 1px var(--cs-line-2);
}
.cs-authorbox__body { flex: 1 1 280px; min-width: 0; }
.cs-article .cs-authorbox__name,
.cs-authorbox__name { margin: 8px 0 2px; font-family: var(--cs-serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; color: var(--cs-ink); }
.cs-authorbox__role { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cs-taupe); }
.cs-authorbox__bio { margin: 14px 0 20px; max-width: 62ch; font-size: 15.5px; line-height: 1.7; color: var(--cs-muted); }
.cs-authorbox__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* "Related articles" — template-parts/related-articles.php. A full-width
   warm band between the article and the footer, using the same pattern
   cards as the homepage. */
.cs-related { background: var(--cs-bg-warm); border-top: 1px solid var(--cs-line); scroll-margin-top: calc(var(--cs-header-h) + 16px); }
.cs-related__inner { max-width: var(--cs-container); margin: 0 auto; padding: clamp(40px, 5.5vw, 76px) clamp(16px, 3vw, 40px); }
.cs-related .cs-section-head h2 { margin-top: 8px; }

/* Sticks while scrolling, but sits a comfortable distance below the viewport
   edge rather than jammed against it — and drops further still when the
   logged-in WP admin bar is present so it never slides under it. */
.cs-toc { position: sticky; top: calc(var(--cs-header-h) + 24px); display: grid; gap: 18px; transition: top .15s ease; max-height: calc(100vh - var(--cs-header-h) - 48px); }
body.admin-bar .cs-toc { top: calc(var(--cs-header-h) + 56px); max-height: calc(100vh - var(--cs-header-h) - 80px); }
.cs-toc__box {
	padding: 24px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); background: var(--cs-panel);
	box-shadow: 0 20px 36px -28px rgba(44, 58, 45, 0.35);
	max-height: inherit; overflow-y: auto;
}
.cs-toc__box h2 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-muted-3); font-family: var(--cs-sans); }
.cs-toc__links { display: grid; gap: 9px; font-size: 14.5px; font-weight: 600; }
.cs-toc__links a { color: var(--cs-green); }

.cs-lastupdated { margin: 28px 0 0; font-size: 13px; color: var(--cs-muted-2); text-align: center; }
.cs-lastupdated time { font-weight: 600; color: var(--cs-muted); }
.cs-lastupdated a { border-bottom: 1px solid var(--cs-clay); }

/* =========================================================================
   Page: generic + About + Newsletter + Contact + Legal
   ========================================================================= */
.cs-page { max-width: var(--cs-container); margin: 0 auto; padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px) clamp(40px, 5vw, 72px); }
.cs-page__title { margin: 0 0 10px; font-weight: 400; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.02em; }
.cs-page .cs-prose { max-width: 72ch; }

.cs-split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 60px); }
.cs-split > div { flex: 1 1 340px; min-width: min(100%, 280px); }
.cs-split__media img { width: 100%; object-fit: cover; border-radius: 24px; }

.cs-factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--cs-line); border: 1px solid var(--cs-line); border-radius: 20px; overflow: hidden; }
.cs-factgrid__cell { padding: 26px; background: var(--cs-panel-2); }
.cs-factgrid__k { display: block; font-family: var(--cs-serif); font-size: 21px; line-height: 1.2; color: var(--cs-ink); }
.cs-factgrid__v { display: block; margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--cs-muted); }

.cs-band { background: var(--cs-green); }
.cs-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding: clamp(24px, 3.5vw, 44px); border-radius: 24px; background: var(--cs-green);
}
.cs-band__inner h2 { margin: 0 0 10px; font-weight: 400; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.14; color: var(--cs-bg); }
.cs-band__inner p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #C8D2C4; }
.cs-band__inner > div { flex: 1 1 300px; }

/* Contact */
.cs-contact-facts { display: grid; gap: 14px; }
.cs-contact-fact { display: flex; gap: 14px; padding: 18px 20px; background: var(--cs-panel-2); border: 1px solid var(--cs-line); border-radius: 16px; }
.cs-contact-fact::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--cs-sage); flex: 0 0 auto; }
.cs-contact-fact strong { display: block; font-size: 15px; color: var(--cs-ink); }
.cs-contact-fact span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.6; color: var(--cs-muted); }

.cs-form { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 34px); background: var(--cs-panel); border: 1px solid var(--cs-line); border-radius: 22px; }
.cs-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--cs-ink-soft); }
.cs-form input, .cs-form select, .cs-form textarea {
  padding: 14px 16px; border: 1px solid var(--cs-line-3); border-radius: 12px; background: var(--cs-bg);
  font-family: var(--cs-sans); font-size: 15px; outline: none; font-weight: 400; color: var(--cs-ink);
}
.cs-form textarea { line-height: 1.6; resize: vertical; }
.cs-form label.cs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--cs-muted); font-weight: 400; }
.cs-form label.cs-check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--cs-green); }
.cs-form label.cs-check a { border-bottom: 1px solid var(--cs-clay); }
.cs-form button[type="submit"] {
  min-height: 52px; border: 0; border-radius: 999px; background: var(--cs-green); color: var(--cs-bg);
  font-family: var(--cs-sans); font-weight: 700; font-size: 15.5px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.cs-form button[type="submit"]:hover { background: var(--cs-clay); color: var(--cs-ink); }
/* WPForms on the Contact page — the plugin's own markup dressed in the same
   card, fields and button as the built-in form above, so the page looks
   identical whichever one is showing. (Extra ".cs-form" in each selector
   outranks WPForms' own stylesheet.) */
.cs-form .wpforms-container { margin: 0; padding: 0; }
.cs-form .wpforms-container .wpforms-form .wpforms-field-container { display: grid; gap: 14px; }
.cs-form .wpforms-container .wpforms-form .wpforms-field { margin: 0; padding: 0; }
.cs-form .wpforms-container .wpforms-form .wpforms-field-label {
  display: block; margin: 0 0 7px; padding: 0;
  font-family: var(--cs-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; color: var(--cs-ink-soft);
}
.cs-form .wpforms-container .wpforms-form .wpforms-required-label { color: var(--cs-clay); font-weight: 700; }
.cs-form .wpforms-container .wpforms-form .wpforms-field input[type="text"],
.cs-form .wpforms-container .wpforms-form .wpforms-field input[type="email"],
.cs-form .wpforms-container .wpforms-form .wpforms-field input[type="tel"],
.cs-form .wpforms-container .wpforms-form .wpforms-field input[type="url"],
.cs-form .wpforms-container .wpforms-form .wpforms-field input[type="number"],
.cs-form .wpforms-container .wpforms-form .wpforms-field select,
.cs-form .wpforms-container .wpforms-form .wpforms-field textarea {
  display: block; width: 100%; max-width: 100%; height: auto; box-sizing: border-box;
  padding: 14px 16px; border: 1px solid var(--cs-line-3); border-radius: 12px; background: var(--cs-bg);
  font-family: var(--cs-sans); font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--cs-ink); box-shadow: none;
}
.cs-form .wpforms-container .wpforms-form .wpforms-field textarea { min-height: 150px; line-height: 1.6; resize: vertical; }
.cs-form .wpforms-container .wpforms-form .wpforms-field input:focus,
.cs-form .wpforms-container .wpforms-form .wpforms-field select:focus,
.cs-form .wpforms-container .wpforms-form .wpforms-field textarea:focus {
  border-color: var(--cs-green); box-shadow: 0 0 0 3px rgba(63, 81, 64, 0.2); outline: none;
}
.cs-form .wpforms-container .wpforms-form .wpforms-field-description,
.cs-form .wpforms-container .wpforms-form .wpforms-field-sublabel { margin-top: 6px; font-size: 12.5px; color: var(--cs-muted-2); }
.cs-form .wpforms-container .wpforms-form .wpforms-field-checkbox li label,
.cs-form .wpforms-container .wpforms-form .wpforms-field-radio li label { display: inline; font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--cs-muted); }
.cs-form .wpforms-container .wpforms-form .wpforms-submit-container { margin: 14px 0 0; padding: 0; }
.cs-form .wpforms-container .wpforms-form button.wpforms-submit {
  display: block; width: 100%; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--cs-green); color: var(--cs-bg);
  font-family: var(--cs-sans); font-weight: 700; font-size: 15.5px; line-height: 1; cursor: pointer; box-shadow: none;
  transition: background .18s ease, color .18s ease;
}
.cs-form .wpforms-container .wpforms-form button.wpforms-submit:hover,
.cs-form .wpforms-container .wpforms-form button.wpforms-submit:focus { background: var(--cs-clay); color: var(--cs-ink); }
.cs-form .wpforms-container .wpforms-form button.wpforms-submit[disabled] { opacity: .7; cursor: default; }
.cs-form .wpforms-container .wpforms-form label.wpforms-error,
.cs-form .wpforms-container .wpforms-form em.wpforms-error { display: block; margin-top: 6px; font-size: 13px; font-style: normal; font-weight: 400; color: #9b3d2e; }
.cs-form .wpforms-container .wpforms-form input.wpforms-error,
.cs-form .wpforms-container .wpforms-form textarea.wpforms-error { border-color: #9b3d2e; }
.cs-form .wpforms-container .wpforms-confirmation-container-full,
.cs-form .wpforms-container .wpforms-confirmation-container {
  margin: 0; padding: 18px 20px; border: 1px solid var(--cs-line); border-radius: 16px;
  background: var(--cs-panel-2); color: var(--cs-ink); font-size: 15px; line-height: 1.6;
}
.cs-form .wpforms-container .wpforms-confirmation-container-full p { margin: 0; }
/* WPForms' own styles (its "modern" theme and the per-form colour settings)
   are written against the form's id and colour variables, and centre a
   shrink-wrapped container, so plain selectors lose to them in places —
   the blue button and the narrow, centred form. These win outright:
   the variables are re-pointed at the theme's palette (so hover, focus
   and error colours follow it too) and the layout is forced to fill the
   card. */
.cs-form .wpforms-container,
.cs-form .wpforms-container.wpforms-container-full {
  --wpforms-button-background-color: var(--cs-green) !important;
  --wpforms-button-background-color-alt: var(--cs-clay) !important;
  --wpforms-button-text-color: var(--cs-bg) !important;
  --wpforms-button-border-color: transparent !important;
  --wpforms-button-border-radius: 999px !important;
  --wpforms-button-size-height: 52px !important;
  --wpforms-field-background-color: var(--cs-bg) !important;
  --wpforms-field-border-color: var(--cs-line-3) !important;
  --wpforms-field-border-radius: 12px !important;
  --wpforms-field-text-color: var(--cs-ink) !important;
  --wpforms-label-color: var(--cs-ink-soft) !important;
  --wpforms-label-error-color: #9b3d2e !important;
  --wpforms-page-break-color: var(--cs-green) !important;
  width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
}
.cs-form .wpforms-container .wpforms-form,
.cs-form .wpforms-container .wpforms-field-container,
.cs-form .wpforms-container .wpforms-field,
.cs-form .wpforms-container .wpforms-submit-container { width: 100% !important; max-width: none !important; }
.cs-form .wpforms-container .wpforms-form .wpforms-field input[type="text"],
.cs-form .wpforms-container .wpforms-form .wpforms-field input[type="email"],
.cs-form .wpforms-container .wpforms-form .wpforms-field textarea,
.cs-form .wpforms-container .wpforms-form .wpforms-field select { width: 100% !important; max-width: 100% !important; }
.cs-form .wpforms-container .wpforms-form button.wpforms-submit,
.cs-form .wpforms-container .wpforms-form button[type="submit"] {
  width: 100% !important; min-height: 52px !important; height: auto !important; border: 0 !important; border-radius: 999px !important;
  background: var(--cs-green) !important; color: var(--cs-bg) !important; box-shadow: none !important;
}
.cs-form .wpforms-container .wpforms-form button.wpforms-submit:hover,
.cs-form .wpforms-container .wpforms-form button.wpforms-submit:focus,
.cs-form .wpforms-container .wpforms-form button.wpforms-submit:active,
.cs-form .wpforms-container .wpforms-form button[type="submit"]:hover,
.cs-form .wpforms-container .wpforms-form button[type="submit"]:focus { background: var(--cs-clay) !important; color: var(--cs-ink) !important; }
.cs-form .wpforms-container .wpforms-form button.wpforms-submit::before,
.cs-form .wpforms-container .wpforms-form button.wpforms-submit::after { display: none !important; }
.cs-form .cs-form-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--cs-muted-2); }
.cs-form .cs-form-note a { border-bottom: 1px solid var(--cs-clay); }

.cs-form__status { font-size: 14px; padding: 8px 0; }
.cs-form__status.is-error { color: #9b3d2e; }
.cs-form__status.is-ok { color: var(--cs-green); }

/* Legal */
.cs-legal { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 52px); }
.cs-legal__nav { flex: 0 1 260px; min-width: min(100%, 240px); align-content: start; display: grid; gap: 6px; }
.cs-legal__nav h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-muted-3); font-family: var(--cs-sans); }
.cs-legal__nav a { text-align: left; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; color: var(--cs-green); }
.cs-legal__nav a.is-active { border-color: var(--cs-line-2); background: var(--cs-bg-warm); }
.cs-legal__nav p { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--cs-muted-3); }
.cs-legal__body { flex: 1 1 520px; min-width: min(100%, 300px); }
.cs-legal__body h2 { margin: 0 0 10px; font-size: clamp(21px, 2.2vw, 27px); }
.cs-legal__body section { margin-bottom: 26px; }
.cs-legal__updated { margin: 0 0 30px; font-size: 15px; color: var(--cs-muted-2); }
.cs-legal__contact { margin-top: 36px; padding: 22px 24px; background: var(--cs-bg-warm); border: 1px solid var(--cs-line); border-radius: var(--cs-radius); }
.cs-legal__contact p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--cs-muted); }

/* Newsletter page */
.cs-issues { display: grid; gap: 10px; }
.cs-issue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 20px 24px; border: 1px solid var(--cs-line); border-radius: 16px; background: var(--cs-panel); }
.cs-issue:hover { border-color: var(--cs-clay); }
.cs-issue__n { font-family: var(--cs-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--cs-sage); flex: 0 0 62px; }
.cs-issue__title { flex: 1 1 260px; font-family: var(--cs-serif); font-size: 20px; line-height: 1.25; color: var(--cs-ink); }
.cs-issue__date { font-size: 13px; color: var(--cs-muted-2); }

/* Centred sign-up band (Newsletter page): eyebrow, headline, one line of
   copy, then the form — one even rhythm, all on the dark green. */
.cs-band--center .cs-band__inner {
  flex-direction: column; align-items: center; gap: 0; text-align: center;
  max-width: 760px; margin: 0 auto; border-radius: 0;
  padding: clamp(48px, 6vw, 84px) clamp(16px, 3vw, 40px);
}
.cs-band--center .cs-eyebrow { margin-bottom: 18px; }
.cs-band--center h2 { margin: 0 0 14px; color: var(--cs-bg); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; text-wrap: balance; }
.cs-band--center p { margin: 0 auto 30px; max-width: 44ch; }
/* ".cs-inline-form"'s "flex: 1 1 320px" sizes correctly as a row-layout child
   (its usual context), but ".cs-band__inner" here is a COLUMN flex
   container, where that same basis sizes HEIGHT instead of width — this
   neutralises it back to a normal, centered, natural-height form. */
.cs-band--center .cs-inline-form { flex: 0 0 auto; width: 100%; max-width: 520px; margin: 0 auto; justify-content: center; }

/* The default green sign-up button vanishes on the green band, so inside
   any band it becomes the terracotta button used on the dark homepage
   section, and the small print / status messages switch to light text. */
.cs-band .cs-inline-form input[type="email"] { border-color: transparent; }
.cs-band .cs-inline-form input[type="email"]:focus { border-color: var(--cs-clay); box-shadow: 0 0 0 3px rgba(204, 145, 121, 0.4); }
.cs-band .cs-inline-form button { background: var(--cs-clay); color: var(--cs-ink); }
.cs-band .cs-inline-form button:hover { background: var(--cs-bg); color: var(--cs-ink); }
.cs-band .cs-inline-form .cs-form-note { margin-top: 6px; text-align: center; font-size: 12.5px; color: #AFBCAB; }
.cs-band .cs-inline-form .cs-form-note a { color: #E3DCCD; }
.cs-band .cs-inline-form .cs-form-note a:hover { color: var(--cs-clay); }
.cs-band .cs-form__status { flex: 1 0 100%; text-align: center; color: #C8D2C4; }
.cs-band .cs-form__status:empty { display: none; }
.cs-band .cs-form__status.is-ok { color: #C8E0C4; }
.cs-band .cs-form__status.is-error { color: #F2B8A8; }

/* =========================================================================
   Search widget + generic widget compatibility
   Comments are switched off site-wide, so no comment styling here — this
   covers whatever a site owner drops into the sidebar from Appearance ▸
   Widgets: the core Search widget/block (two markup versions), plus a
   sensible baseline for lists, links and form controls in any other widget.
   ========================================================================= */
.cs-widget .search-form,
.cs-widget .wp-block-search__inside-wrapper {
	display: flex; align-items: center; gap: 8px;
	padding: 9px 9px 9px 16px; border: 1px solid var(--cs-line-2); border-radius: 999px; background: var(--cs-panel);
}
.cs-widget .search-form label { flex: 1 1 auto; margin: 0; display: flex; }
.cs-widget .search-form .search-field,
.cs-widget .wp-block-search__input {
	flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
	font-family: var(--cs-sans); font-size: 14.5px; color: var(--cs-ink); padding: 6px 0;
}
.cs-widget .search-form .search-submit,
.cs-widget .wp-block-search__button {
	flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--cs-green); color: var(--cs-bg);
	font-family: var(--cs-sans); font-weight: 700; font-size: 13px; padding: 10px 18px; cursor: pointer;
	transition: background .18s ease, color .18s ease;
}
.cs-widget .search-form .search-submit:hover,
.cs-widget .wp-block-search__button:hover { background: var(--cs-clay); color: var(--cs-ink); }
.cs-widget .wp-block-search__button.wp-block-search__button--icon svg { fill: currentColor; width: 16px; height: 16px; }

.cs-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs-widget ul ul { margin-top: 8px; padding-left: 16px; }
.cs-widget li { font-size: 14.5px; line-height: 1.5; color: var(--cs-muted); }
.cs-widget li a { color: var(--cs-green); font-weight: 600; }
.cs-widget select {
	width: 100%; padding: 11px 14px; border: 1px solid var(--cs-line-3); border-radius: 12px;
	background: var(--cs-panel); font-family: var(--cs-sans); font-size: 14.5px; color: var(--cs-ink);
}
.cs-widget .wp-block-group,
.cs-widget .wp-block-columns { margin: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.cs-footer { background: var(--cs-dark); color: var(--cs-dark-text); }
.cs-footer__inner { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); max-width: var(--cs-container); margin: 0 auto; padding: clamp(36px, 5vw, 66px) clamp(16px, 3vw, 40px) 28px; }
.cs-footer__brand { flex: 1 1 260px; }
.cs-footer__brand img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.cs-footer__brand .cs-logo__text { color: var(--cs-bg); }
.cs-footer__brand p { margin: 16px 0 0; max-width: 34ch; font-size: 14.5px; line-height: 1.7; }
.cs-footer__col { flex: 1 1 170px; }
.cs-footer__col h2 { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-sage); font-family: var(--cs-sans); }
.cs-footer__col .menu, .cs-footer__col > div { display: grid; gap: 10px; font-size: 14.5px; list-style: none; margin: 0; padding: 0; }
.cs-footer__col a { color: var(--cs-dark-text); }
.cs-footer__col a:hover { color: var(--cs-clay); }
.cs-footer__bar {
  max-width: var(--cs-container); margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 40px) 34px; border-top: 1px solid #46543F;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 12.5px; color: #94A491;
}
.cs-footer__bar .right { margin-left: auto; }
/* =========================================================================
   Social links — crochetsimply_social_links(). Round icon buttons, or pills
   with the network name ("--labels"). Only rendered once a profile URL is
   set in Customizer ▸ CrochetSimply ▸ Social media.
   ========================================================================= */
.cs-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cs-social__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--cs-line-2); background: var(--cs-panel); color: var(--cs-green);
  font-size: 13.5px; font-weight: 700; line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.cs-social__link:hover { background: var(--cs-clay); border-color: var(--cs-clay); color: var(--cs-ink); }
.cs-social__link svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }
.cs-social--labels .cs-social__link { padding: 0 16px 0 13px; }

/* Footer: outlined icons on the dark green. */
.cs-footer .cs-social { margin-top: 20px; }
.cs-footer .cs-social__link { background: transparent; border-color: #56684F; color: var(--cs-dark-text); }
.cs-footer .cs-social__link:hover { background: var(--cs-clay); border-color: var(--cs-clay); color: var(--cs-ink); }

/* Mobile menu: centred under the "Get free patterns" button. */
.cs-mobile-panel .cs-social { justify-content: center; margin: 14px 4px 0; }

/* Author box: a divided "Follow along" row under the buttons. */
.cs-authorbox__social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cs-line); }
.cs-authorbox__social-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-muted-3); }

/* Contact page "Follow along" card. */
.cs-contact-fact__text { margin: 3px 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--cs-muted); }
.cs-footer__bar a { color: #94A491; }
.cs-footer__bar a:hover { color: var(--cs-clay); }

/* =========================================================================
   404 / search
   ========================================================================= */
.cs-notice { max-width: 640px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(16px, 3vw, 40px); text-align: center; }
.cs-notice h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 14px; font-weight: 400; }
.cs-notice p { font-size: 16.5px; line-height: 1.7; color: var(--cs-muted); margin: 0 0 26px; }

/* =========================================================================
   WP core / editor helpers
   ========================================================================= */
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 12.5px; color: var(--cs-muted-2); font-style: italic; margin-top: 6px; }
.sticky, .gallery-caption, .bypostauthor { display: block; }

.cs-admin-import { padding: 14px; }
.cs-admin-import .button-hero { margin-top: 8px; }

@media (max-width: 640px) {
  .cs-byline__actions { margin-left: 0; }
  .cs-hero__text { gap: 18px; }
}

/* =========================================================================
   Keyboard focus
   A visible ring for keyboard users (":focus-visible" skips it on mouse
   clicks). Text fields that draw their own pill or box show focus on that
   box instead, since the bare input inside has its outline removed.
   ========================================================================= */
:focus-visible { outline: 2px solid var(--cs-green); outline-offset: 3px; }
.cs-footer :focus-visible,
.cs-dark :focus-visible,
.cs-band :focus-visible,
.cs-testnote :focus-visible { outline-color: var(--cs-clay); }

.cs-search:focus-within,
.cs-mobile-search:focus-within,
.cs-widget .search-form:focus-within,
.cs-widget .wp-block-search__inside-wrapper:focus-within,
.cs-inline-form input[type="email"]:focus,
.cs-widget input[type="email"]:focus,
.cs-form input:focus,
.cs-form select:focus,
.cs-form textarea:focus {
  border-color: var(--cs-green);
  box-shadow: 0 0 0 3px rgba(63, 81, 64, 0.2);
}

/* Visitors who ask their device for less motion get no hover zooms,
   slide-ins or animated transitions. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cs-card:hover .cs-card__media img,
  a.cs-hero__card:hover { transform: none; }
}

/* =========================================================================
   Print — the "Print pattern" button
   Just the pattern itself: no header, footer, sidebar, share buttons or
   newsletter prompts, dark text on white to save ink, and steps / table
   rows kept whole across page breaks. (FAQ answers are opened for printing
   in assets/js/theme.js.)
   ========================================================================= */
@media print {
  .skip-link, .cs-header, .cs-footer, .cs-sidebar, .cs-single-crumbs, .cs-byline__actions,
  .cs-related, .cs-authorbox__actions, .cs-newsletter-cta, .cs-filterbar, .cs-back-to-top { display: none !important; }
  .cs-authorbox { box-shadow: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .cs-single { display: block; padding: 0; max-width: none; }
  .cs-article__hero { max-height: 9cm; }
  a, .cs-prose a { color: inherit; border: 0; }
  .cs-step, .cs-infocard__row, .cs-qa-item, .cs-prose details, .cs-prose .wp-block-table tr, .cs-yarnnote, .cs-testnote { break-inside: avoid; }
  .cs-article h2 { break-after: avoid; }
  .cs-testnote { background: none; border: 1px solid #999; }
  .cs-testnote :where(p) { color: #000; }
  .cs-infocard .cs-infocard__title, .cs-step__n, .cs-step.cs-step--auto::before, .cs-prose .wp-block-table thead th {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* =========================================================================
   Back-to-top button
   ========================================================================= */
.cs-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--cs-green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px -4px rgba(44, 58, 45, 0.55);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s ease, box-shadow 0.18s ease;
  pointer-events: none;
}
.cs-back-to-top[hidden] {
  /* override UA [hidden] so our CSS animation can still play */
  display: flex !important;
}
.cs-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cs-back-to-top:hover,
.cs-back-to-top:focus-visible {
  background: var(--cs-green-dk);
  box-shadow: 0 6px 22px -6px rgba(44, 58, 45, 0.7);
  outline: none;
}
.cs-back-to-top:focus-visible {
  box-shadow: 0 0 0 3px var(--cs-bg), 0 0 0 5px var(--cs-green);
}
.cs-back-to-top svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.cs-back-to-top:hover svg,
.cs-back-to-top:focus-visible svg {
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .cs-back-to-top {
    transition: opacity 0.15s ease;
    transform: none;
  }
}
@media print {
  .cs-back-to-top { display: none !important; }
}


/* ── Kit newsletter: hide "Built with Kit" branding bar ─────────────────── */
.formkit-powered-by-convertkit-container,
.formkit-powered-by-convertkit,
[data-uid] ~ .formkit-powered-by-convertkit-container,
div[class*="powered-by-convertkit"],
a[href*="kit.com"][class*="powered"],
a[href*="convertkit"][class*="powered"] {
	display: none !important;
}
/* ─── Kit newsletter: hide sticky bar + branding ─────────────────────────── */
/* Sticky / slide-in / overlay bars Kit injects via JS */
.formkit-sticky-bar,
.formkit-sticky-bar-container,
.formkit-slide-in,
.formkit-slide-in-container,
#formkit-overlay,
.formkit-overlay,
.formkit-curtain,
/* "Built with Kit" / "Powered by ConvertKit" branding */
.formkit-powered-by-convertkit-container,
.formkit-powered-by-convertkit,
[data-uid] ~ .formkit-powered-by-convertkit-container,
div[class*="powered-by-convertkit"],
a[href*="kit.com"][class*="powered"],
a[href*="convertkit"][class*="powered"] {
	display: none !important;
}
/* ─── Subscription confirmed page ───────────────────────────────────────────── */
.cs-confirmed {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 60px);
  max-width: 640px;
  margin: 0 auto;
  gap: 0;
}
.cs-confirmed__icon {
  margin-top: -24px;
  margin-bottom: 28px;
  animation: cs-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cs-confirmed__logo-wrap {
  position: relative;
  display: inline-flex;
}
.cs-confirmed__logo-wrap img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--cs-line);
  background: var(--cs-panel);
  object-fit: contain;
  padding: 6px;
}
.cs-confirmed__check {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 26px;
  height: 26px;
  background: var(--cs-green);
  border-radius: 50%;
  border: 2px solid var(--cs-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes cs-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.cs-confirmed .cs-eyebrow {
  margin-bottom: 14px;
  animation: cs-fadein 0.5s 0.2s ease both;
}
.cs-confirmed__title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--cs-ink);
  animation: cs-fadein 0.5s 0.3s ease both;
}
.cs-confirmed__body {
  color: var(--cs-muted);
  margin-bottom: 36px;
  animation: cs-fadein 0.5s 0.35s ease both;
}
.cs-confirmed__promises {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  overflow: hidden;
  margin-bottom: 40px;
  animation: cs-fadein 0.5s 0.4s ease both;
}
.cs-confirmed__promise {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px;
  background: var(--cs-panel);
  border-bottom: 1px solid var(--cs-line);
  text-align: left;
}
.cs-confirmed__promise:last-child { border-bottom: none; }
.cs-confirmed__pk {
  font-family: var(--cs-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-muted-2);
  min-width: 90px;
  flex-shrink: 0;
}
.cs-confirmed__pv {
  font-size: 14px;
  color: var(--cs-ink-soft);
  line-height: 1.4;
}
.cs-confirmed__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: cs-fadein 0.5s 0.5s ease both;
}
@keyframes cs-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Buttons */
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-family: var(--cs-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cs-btn--primary {
  background: var(--cs-green);
  color: var(--cs-bg);
}
.cs-btn--primary:hover {
  background: var(--cs-green-dk);
  color: var(--cs-bg);
  box-shadow: 0 4px 16px -4px rgba(44,58,45,0.35);
}
.cs-btn--ghost {
  background: transparent;
  color: var(--cs-green);
  border: 1.5px solid var(--cs-line-2);
}
.cs-btn--ghost:hover {
  border-color: var(--cs-sage);
  color: var(--cs-green-dk);
}