/* family: category — owned by agent G1/G2 (category detail pages)
   Loaded after ui-v8.css. Every rule is scoped with the page body class.
   ------------------------------------------------------------------------
   G1 / G1-category-cards — pages: upholstered-furniture, furniture-blog
   Repairs below override main.css last-wins collisions and undefined
   pseudo-content, and re-skin the blog topic / article cards onto the
   brand ivory ladder. No layout or token file is touched.
   ========================================================================== */

/* ==========================================================================
   1. upholstered-furniture — bullet list
   main.css ships `content: ‘2713’` (typographic quotes = invalid CSS), so the
   declaration is dropped, no glyph renders, and the 28px hanging indent is
   left empty. Restore a real checkmark.
   ========================================================================== */
.nv-upholstered-furniture .nv-cat-check {
  margin: 22px 0 2px;
  padding: 0;
}

.nv-upholstered-furniture .nv-cat-check li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 10px;
  font-size: .93rem;
  line-height: 1.6;
  color: #3B4538;
}

.nv-upholstered-furniture .nv-cat-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.62;
  color: var(--nv-olive, #3D473C);
}

/* ==========================================================================
   2. upholstered-furniture — FAQ accordion affordance
   Same invalid-quote bug on summary::after, so the rows had no +/− marker
   and no visible sign that they expand.
   ========================================================================== */
.nv-upholstered-furniture .nv-cat-faq details {
  border-bottom: 1px solid var(--nv-line, rgba(27, 34, 26, .12));
  padding: 0;
}

.nv-upholstered-furniture .nv-cat-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 14px 0;
  color: #262E25;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
  text-align: left;
}

.nv-upholstered-furniture .nv-cat-faq summary::after {
  content: "+";
  position: static;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nv-line, rgba(27, 34, 26, .12));
  border-radius: 50%;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--nv-olive, #3D473C);
  transition: border-color .25s ease;
}

.nv-upholstered-furniture .nv-cat-faq details[open] summary::after {
  content: "\2212";
}

.nv-upholstered-furniture .nv-cat-faq details[open] summary {
  color: var(--nv-olive, #3D473C);
}

.nv-upholstered-furniture .nv-cat-faq details:hover summary::after {
  border-color: rgba(61, 71, 60, .42);
}

.nv-upholstered-furniture .nv-cat-faq details p {
  padding: 0 54px 20px 0;
  max-width: 68ch;
  color: #4C554A;
  font-size: .94rem;
  line-height: 1.72;
}

/* ==========================================================================
   3. upholstered-furniture — material option cards
   main.css gave them #fff fill + #E5E5E5 border on a #fff section, so the
   card edges carried all the weight and the surface read as empty. Move to
   the tinted ivory surface + hairline, and equalise the tag baseline.
   ========================================================================== */
.nv-upholstered-furniture .nv-cat-materials {
  gap: 24px;
  align-items: stretch;
}

.nv-upholstered-furniture .nv-cat-mat {
  display: flex;
  flex-direction: column;
  background: #F8F7F0;
  border: 1px solid var(--nv-line, rgba(27, 34, 26, .12));
  padding: 32px 28px 26px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.nv-upholstered-furniture .nv-cat-mat:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 71, 60, .28);
  box-shadow: 0 26px 44px -34px rgba(27, 34, 26, .5);
}

.nv-upholstered-furniture .nv-cat-mat h3 {
  font-size: 1.02rem;
  letter-spacing: -.01em;
  color: #262E25;
}

.nv-upholstered-furniture .nv-cat-mat p {
  flex: 1 1 auto;
  color: #5A6257;
  font-size: .88rem;
  line-height: 1.68;
}

.nv-upholstered-furniture .nv-cat-mat__tag {
  align-self: flex-start;
  margin-top: 18px;
  border: 1px solid rgba(61, 71, 60, .22);
  padding: 6px 13px;
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--nv-olive, #3D473C);
}

/* ==========================================================================
   4. upholstered-furniture — small-screen refinements
   (Hero top clearance is owned by ui-v8's `padding-top: ... !important`
   header rule; do not fight it here.)
   ========================================================================== */
@media (max-width: 768px) {
  .nv-upholstered-furniture .nv-cat-hero__inner p {
    font-size: .97rem;
    line-height: 1.66;
  }

  .nv-upholstered-furniture .nv-cat-faq details p {
    padding: 0 0 18px;
  }
}

@media (max-width: 560px) {
  .nv-upholstered-furniture .nv-cat-mat {
    padding: 26px 22px 22px;
  }

  .nv-upholstered-furniture .nv-cat-stat__label {
    font-size: .72rem;
    letter-spacing: .055em;
  }
}

/* ==========================================================================
   5. furniture-blog — topic cards
   These used `.nv-cat-card`, the same class main.css styles as a 4-up pillar
   card and ui-v8 styles as an image card. Two owners, last-wins damage. The
   blog now owns `.nv-topic-card`.
   ========================================================================== */
.nv-furniture-blog .nv-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.nv-furniture-blog .nv-topic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #FCFBF7;
  border: 1px solid var(--nv-line, rgba(27, 34, 26, .12));
  border-top: 1px solid rgba(61, 71, 60, .45);
  padding: 26px 24px 20px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease, box-shadow .35s ease;
}

.nv-furniture-blog .nv-topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 71, 60, .3);
  border-top-color: var(--nv-olive, #3D473C);
  box-shadow: 0 28px 44px -36px rgba(27, 34, 26, .55);
}

.nv-furniture-blog .nv-topic-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #F1EFE4;
  border-radius: 50%;
  color: var(--nv-olive, #3D473C);
}

.nv-furniture-blog .nv-topic-card__icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nv-furniture-blog .nv-topic-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #262E25;
}

.nv-furniture-blog .nv-topic-card p {
  flex: 1 1 auto;
  font-size: .86rem;
  line-height: 1.62;
  color: #5C6459;
}

.nv-furniture-blog .nv-topic-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--nv-line, rgba(27, 34, 26, .12));
  width: 100%;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nv-olive, #3D473C);
  transition: gap .3s ease;
}

.nv-furniture-blog .nv-topic-card:hover .nv-topic-card__link {
  gap: 12px;
}

/* ==========================================================================
   6. furniture-blog — section bands
   #fff section + #fff cards left the article grid reading as white boxes on
   white with a hard #E8E8E8 outline. Both bands now share one warm paper
   tone so the cards (and their hairlines) actually sit on something.
   ========================================================================== */
.nv-furniture-blog .nv-blog-sec--grey,
.nv-furniture-blog .nv-blog-sec--light {
  background: #F2F0E7;
}

.nv-furniture-blog .nv-loading p {
  color: #636B60;
}

/* ==========================================================================
   7. furniture-blog — article cards
   ========================================================================== */
.nv-furniture-blog .nv-articles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.nv-furniture-blog .nv-article-card {
  background: #FCFBF7;
  border: 1px solid var(--nv-line, rgba(27, 34, 26, .12));
}

.nv-furniture-blog .nv-article-card:hover {
  box-shadow: 0 24px 42px -30px rgba(27, 34, 26, .42);
}

.nv-furniture-blog .nv-article-card__media {
  background: #EBE8DC;
}

.nv-furniture-blog .nv-article-card__body {
  padding: 22px 22px 18px;
}

.nv-furniture-blog .nv-article-card__cat {
  background: #EFEDE1;
  color: #3D473C;
  letter-spacing: .09em;
  padding: 5px 10px;
  margin-bottom: 14px;
}

.nv-furniture-blog .nv-article-card__title {
  font-size: 1.03rem;
  line-height: 1.38;
  letter-spacing: -.005em;
  margin-bottom: 10px;
}

.nv-furniture-blog .nv-article-card__excerpt {
  color: #5E665B;
  font-size: .875rem;
  line-height: 1.62;
  -webkit-line-clamp: 3;
  margin-bottom: 8px;
}

.nv-furniture-blog .nv-article-card__meta {
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 34, 26, .08);
}

.nv-furniture-blog .nv-article-card__date {
  color: #636B60;
  font-size: .74rem;
  letter-spacing: .02em;
}

.nv-furniture-blog .nv-article-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 2px 0;
  color: #3D473C;
  font-size: .72rem;
  letter-spacing: .1em;
  transition: opacity .2s ease, gap .25s ease;
}

.nv-furniture-blog .nv-article-card__read:hover {
  opacity: .68;
  gap: 10px;
}

/* ==========================================================================
   8. furniture-blog — newsletter CTA
   The markup shipped a bare `<button type="submit">` outside any form, so the
   only conversion on the page did nothing. It is now an honest mailto link;
   these rules style it as the same button.
   ========================================================================== */
.nv-furniture-blog .nv-newsletter__btn {
  display: inline-block;
  text-decoration: none;
  min-height: 48px;
  padding: 14px 32px;
  font-family: "Open Sans", Arial, sans-serif;
}

.nv-furniture-blog .nv-newsletter__btn:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   9. responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .nv-furniture-blog .nv-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nv-furniture-blog .nv-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nv-furniture-blog .nv-topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .nv-furniture-blog .nv-topic-card {
    padding: 22px 20px 16px;
  }

  .nv-furniture-blog .nv-articles-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .nv-furniture-blog .nv-newsletter__btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .nv-upholstered-furniture .nv-cat-mat,
  .nv-upholstered-furniture .nv-cat-faq summary::after,
  .nv-furniture-blog .nv-topic-card,
  .nv-furniture-blog .nv-topic-card__link,
  .nv-furniture-blog .nv-article-card,
  .nv-furniture-blog .nv-article-card__read,
  .nv-furniture-blog .nv-newsletter__btn {
    transition: none;
  }

  .nv-upholstered-furniture .nv-cat-mat:hover,
  .nv-furniture-blog .nv-topic-card:hover,
  .nv-furniture-blog .nv-article-card:hover,
  .nv-furniture-blog .nv-newsletter__btn:hover {
    transform: none;
  }
}

/* ===== newsletter: real CF7 form, inline row on olive band ===== */
.nv-newsletter .wpcf7 { max-width: 640px; margin: 0 auto; }
.nv-newsletter .wpcf7-form {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
}
.nv-newsletter .wpcf7-form > p { margin: 0; }
/* the email field: exact-match the paragraph that holds it (Turnstile/BR/submit are siblings) */
.nv-newsletter .wpcf7-form > p:has(input[type="email"]) {
  flex: 1 1 320px; min-width: 240px; display: block;
}
.nv-newsletter .wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.nv-newsletter .nv-nl-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.nv-newsletter .wpcf7-form input[type="email"] {
  width: 100%; min-height: 50px; padding: 14px 18px; box-sizing: border-box;
  font-size: .92rem; font-family: "Open Sans", sans-serif;
  border: 1px solid rgba(237,237,237,.3); border-radius: 0;
  background: rgba(255,255,255,.08); color: #EDEDED; outline: none;
  transition: border-color .2s;
}
.nv-newsletter .wpcf7-form input[type="email"]::placeholder { color: rgba(237,237,237,.5); }
.nv-newsletter .wpcf7-form input[type="email"]:focus { border-color: #EDEDED; }
.nv-newsletter .wpcf7-form .cf7-cf-turnstile { flex: 0 0 auto; margin: 0 !important; }
.nv-newsletter .wpcf7-form br { display: none; }
.nv-newsletter .wpcf7-form input[type="submit"] {
  flex: 0 0 auto; background: #EDEDED; color: #3D473C;
  font-size: .82rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 30px; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  transition: transform .25s;
}
.nv-newsletter .wpcf7-form input[type="submit"]:hover { transform: scale(1.04); }
.nv-newsletter .wpcf7-not-valid-tip { flex-basis: 100%; color: #FFD9D2; font-size: .78rem; margin-top: 2px; text-align: left; }
.nv-newsletter .wpcf7-response-output {
  flex-basis: 100%; margin: 12px 0 0; padding: 0; border: 0;
  color: #EDEDED; font-size: .85rem;
}
@media (max-width: 640px) {
  .nv-newsletter .wpcf7-form { flex-direction: column; align-items: stretch; }
  .nv-newsletter .wpcf7-form > p:has(input[type="email"]) { flex: 1 1 auto; min-width: 0; }
  .nv-newsletter .wpcf7-form input[type="submit"] { width: 100%; }
  .nv-newsletter .wpcf7-form .cf7-cf-turnstile { align-self: center; }
}
