:root {
  --ff-brand: #184f4b;
  --ff-brand-dark: #103c39;
  --ff-accent: #b94f32;
  --ff-accent-dark: #963c25;
  --ff-cream: #faf7f1;
  --ff-cream-2: #f4eee4;
  --ff-ink: #17312f;
  --ff-sage: #6c8d7b;
  --ff-muted: #657370;
  --ff-border: #ddd8ce;
  --ff-border-strong: #c9c3b8;
  --ff-white: #ffffff;
  --ff-soft-green: #eef4f1;
  --ff-soft-orange: #fff2eb;
  --ff-shadow: 0 18px 55px rgba(23,49,47,.10);
  --ff-shadow-soft: 0 10px 30px rgba(23,49,47,.07);
  --ff-radius-lg: 28px;
  --ff-radius: 18px;
  --ff-radius-sm: 12px;
  --ff-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-serif: Georgia, Cambria, "Times New Roman", serif;
  --ff-site-wide: 1480px;
  --ff-site-gutter: clamp(1.25rem, 3vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ff-white);
  color: var(--ff-ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
a { color: var(--ff-brand); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--ff-accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .65em;
  color: var(--ff-ink);
  font-family: var(--ff-serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.65rem, 5.6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
h3 { font-size: clamp(1.32rem, 2vw, 1.72rem); }
p { margin: 0 0 1.15em; }

.ff-container { width: min(780px, calc(100% - 2rem)); margin-inline: auto; }
.ff-container--wide { width: min(var(--ff-site-wide), calc(100% - var(--ff-site-gutter) - var(--ff-site-gutter))); }
.section-space { padding-block: clamp(4rem, 7vw, 7.5rem); }
.page-main { padding-block: clamp(3rem, 6vw, 6rem); }
.page-wrap { width: min(780px, calc(100% - 2rem)); }

.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;
}
.screen-reader-text:focus, .skip-link:focus {
  width: auto; height: auto; clip: auto; margin: 0; padding: .75rem 1rem;
  top: .75rem; left: .75rem; z-index: 100000;
  background: var(--ff-white); color: var(--ff-ink); border: 2px solid var(--ff-brand); border-radius: 10px;
}
:focus-visible { outline: 3px solid rgba(185,79,50,.35); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(221,216,206,.82);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-branding { flex: 0 0 auto; }
.brand-lockup, .custom-logo-link { display: inline-flex; align-items: center; line-height: 1; background: transparent; text-decoration: none; }
.brand-lockup--text { gap: .8rem; }
.brand-lockup__icon { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; }
.brand-lockup__text { color: var(--ff-brand-dark); font-family: var(--ff-serif); font-size: 2rem; font-weight: 700; line-height: .95; letter-spacing: -.03em; white-space: nowrap; }
.custom-logo { width: 340px; max-width: 340px; height: auto; max-height: 98px; object-fit: contain; }
.primary-navigation { margin-left: auto; }
.primary-menu, .primary-menu ul, .footer-links { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.55rem); }
.primary-menu li { position: relative; }
.primary-menu a {
  display: block;
  padding: .75rem .15rem;
  color: var(--ff-ink);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--ff-accent); }
.primary-menu ul {
  position: absolute;
  top: 100%; left: -.7rem;
  min-width: 220px;
  padding: .65rem;
  border: 1px solid var(--ff-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ff-shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.primary-menu li:hover > ul, .primary-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.primary-menu ul a { padding: .55rem .7rem; border-radius: 9px; }
.primary-menu ul a:hover { background: var(--ff-cream); }
.menu-toggle { display: none; border: 0; background: transparent; padding: .65rem; }
.menu-toggle__bars { display: grid; gap: 4px; }
.menu-toggle__bars span { display: block; width: 24px; height: 2px; border-radius: 10px; background: var(--ff-ink); }

/* Shared */
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--ff-accent);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.button-link, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .82rem 1.2rem;
  border: 1px solid var(--ff-brand);
  border-radius: 12px;
  background: var(--ff-brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ff-brand-dark);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button-link:hover, .wp-element-button:hover { color: #fff; background: #1d5d58; transform: translateY(-1px); box-shadow: 0 6px 0 var(--ff-brand-dark); }
.text-link { display: inline-flex; align-items: center; min-height: 46px; color: var(--ff-ink); font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--ff-accent); }
.breadcrumbs { margin-bottom: 1.25rem; color: var(--ff-muted); font-size: .84rem; }
.breadcrumbs a { color: var(--ff-muted); }
.section-heading { max-width: 760px; margin-bottom: 2.3rem; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); gap: 3rem; align-items: end; }
.section-heading--split > p { margin: 0 0 .4rem; color: var(--ff-muted); max-width: 48ch; }

/* Home */
.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(108,141,123,.13), transparent 24%),
    linear-gradient(135deg, var(--ff-cream) 0%, #fff 72%);
  border-bottom: 1px solid var(--ff-border);
}
.home-hero::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -160px; bottom: -180px;
  border: 1px solid rgba(24,79,75,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(24,79,75,.025), 0 0 0 82px rgba(24,79,75,.018);
}
.home-hero__grid {
  position: relative; z-index: 1;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(440px, 1.07fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  padding-block: clamp(4rem, 7vw, 7rem);
}
.home-hero__content h1 { max-width: 12.5ch; }
.home-hero__lead { max-width: 58ch; color: var(--ff-muted); font-size: clamp(1.06rem, 1.8vw, 1.27rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.35rem; align-items: center; margin-top: 1.7rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.hero-trust span { padding: .38rem .62rem; border: 1px solid rgba(24,79,75,.16); border-radius: 999px; background: rgba(255,255,255,.74); color: var(--ff-muted); font-size: .8rem; font-weight: 700; }
.home-hero__visual {
  position: relative;
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background: #dcd9d1;
  box-shadow: var(--ff-shadow);
}
.home-hero__visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); border-radius: inherit; pointer-events: none; }
.home-hero__visual img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; object-position: 58% center; }
.hero-result-card {
  position: absolute;
  left: 1.4rem; bottom: 1.4rem;
  min-width: 230px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 17px;
  background: rgba(250,247,241,.94);
  box-shadow: 0 12px 34px rgba(23,49,47,.18);
  backdrop-filter: blur(12px);
}
.hero-result-card span { display: block; }
.hero-result-card__label { color: var(--ff-accent); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hero-result-card strong { display: block; margin: .18rem 0; color: var(--ff-brand); font-family: var(--ff-serif); font-size: 2.2rem; line-height: 1; }
.hero-result-card > span:last-child { color: var(--ff-muted); font-size: .82rem; }

.home-value-strip { border-bottom: 1px solid var(--ff-border); background: #fff; }
.value-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.value-item { min-height: 112px; display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1.2rem; border-right: 1px solid var(--ff-border); }
.value-item:first-child { border-left: 1px solid var(--ff-border); }
.value-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ff-soft-green); color: var(--ff-brand); font-size: 1.25rem; font-weight: 900; }
.value-item strong, .value-item span { display: block; }
.value-item strong { color: var(--ff-ink); font-size: .9rem; }
.value-item div > span { margin-top: .18rem; color: var(--ff-muted); font-size: .78rem; line-height: 1.4; }

.calculators-section { background: #fff; }
.featured-tool-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(350px,.9fr); gap: 1rem; align-items: stretch; }
.featured-tool { border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: #fff; color: var(--ff-ink); text-decoration: none; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.featured-tool:hover { color: var(--ff-ink); transform: translateY(-3px); border-color: #bfc9c4; box-shadow: var(--ff-shadow-soft); }
.featured-tool--large { display: grid; grid-template-rows: 260px 1fr; }
.featured-tool__media { overflow: hidden; background: var(--ff-cream); }
.featured-tool__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.featured-tool--large:hover img { transform: scale(1.025); }
.featured-tool__body { padding: 1.65rem 1.7rem 1.8rem; }
.tool-kicker { color: var(--ff-accent); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.featured-tool h3 { margin: .32rem 0 .45rem; }
.featured-tool p { margin: 0; color: var(--ff-muted); }
.tool-arrow { display: inline-block; margin-top: 1.1rem; color: var(--ff-brand); font-size: .84rem; font-weight: 850; }
.featured-tool-stack { display: grid; grid-template-rows: repeat(3,1fr); gap: 1rem; }
.featured-tool--compact { display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem; }
.tool-symbol { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--ff-soft-green); color: var(--ff-brand); font-family: var(--ff-serif); font-size: 1.45rem; font-weight: 700; }
.featured-tool--compact h3 { font-size: 1.22rem; margin-bottom: .25rem; }
.featured-tool--compact p { font-size: .83rem; }
.featured-tool--compact .tool-arrow { margin: 0; font-size: 1.2rem; }

.category-section { background: var(--ff-cream); border-top: 1px solid var(--ff-border); border-bottom: 1px solid var(--ff-border); }
.category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.category-card { min-height: 300px; display: flex; flex-direction: column; padding: 1.55rem; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: rgba(255,255,255,.88); color: var(--ff-ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.category-card:hover { color: var(--ff-ink); transform: translateY(-3px); border-color: #bdc8c3; box-shadow: var(--ff-shadow-soft); }
.category-card__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 2.1rem; border: 1px solid rgba(24,79,75,.12); border-radius: 16px; background: var(--ff-soft-green); color: var(--ff-brand); font-size: 1.4rem; }
.category-card h3 { margin-bottom: .55rem; }
.category-card p { color: var(--ff-muted); font-size: .9rem; }
.category-card > span:last-child { margin-top: auto; color: var(--ff-brand); font-size: .82rem; font-weight: 850; }
.editable-home-content { background: #fff; }

/* Content */
.entry-header { margin-bottom: 2rem; }
.entry-title { max-width: 17ch; }
.entry-meta, .archive-description { color: var(--ff-muted); }
.entry-featured { margin: 0 0 2.5rem; }
.entry-featured img { border-radius: var(--ff-radius); }
.entry-content { font-size: 1.03rem; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { margin-top: 2.3em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.entry-content th, .entry-content td { padding: .8rem .85rem; border-bottom: 1px solid var(--ff-border); text-align: left; }
.entry-content th { background: var(--ff-cream); }
.entry-content blockquote { margin: 2rem 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--ff-accent); background: var(--ff-cream); }
.archive-header { margin-bottom: 2rem; }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.content-card { padding: 1.45rem; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: #fff; }
.content-card__title { font-size: 1.35rem; }
.content-card__title a { color: var(--ff-ink); text-decoration: none; }
.content-card__excerpt { color: var(--ff-muted); }
.error-page { text-align: center; }

/* Quilt Backing page hero */
.qbc-page { background: #fff; }
.qbc-page-hero { overflow: hidden; background: linear-gradient(135deg, var(--ff-cream) 0%, #fff 65%); border-bottom: 1px solid var(--ff-border); }
.qbc-page-hero__grid { min-height: 320px; display: grid; grid-template-columns: minmax(0,.95fr) minmax(440px,1.05fr); align-items: stretch; }
.qbc-page-hero__content { align-self: center; padding: 3.2rem 3.5rem 3.2rem 0; }
.qbc-page-hero__content h1 { max-width: 14ch; font-size: clamp(2.7rem,5vw,4.7rem); }
.qbc-page-hero__content > p:last-child { max-width: 62ch; margin-bottom: 0; color: var(--ff-muted); font-size: 1.05rem; }
.qbc-page-hero__media { position: relative; min-height: 320px; overflow: hidden; }
.qbc-page-hero__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 24px 0 50px rgba(250,247,241,.32); }
.qbc-page-hero__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center; }
.qbc-page-hero .breadcrumbs { margin-top: 0; }
.qbc-calculator-zone { padding-block: 1.4rem 2rem; background: #f8f8f5; }

/* Calculator app */
.qbc-app { --qbc-head: #0f514c; }
.qbc-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; align-items: stretch; }
.qbc-panel { border: 1px solid #d7d9d3; border-radius: 17px; background: #fff; box-shadow: 0 8px 28px rgba(23,49,47,.055); overflow: hidden; }
.qbc-panel__head { min-height: 72px; display: flex; align-items: center; gap: .85rem; padding: 1rem 1.2rem; border-bottom: 1px solid #d8ded9; background: linear-gradient(180deg,#fff,#fbfbf8); }
.qbc-panel__head--result { color: #fff; background: var(--qbc-head); border-color: transparent; }
.qbc-panel__head--result h2, .qbc-panel__head--result .qbc-panel__eyebrow { color: #fff; }
.qbc-panel__head--accent { color: #fff; background: linear-gradient(135deg,var(--ff-accent),#d1542d); border-color: transparent; }
.qbc-panel__head--accent h2, .qbc-panel__head--accent .qbc-panel__eyebrow { color: #fff; }
.qbc-step { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ff-soft-green); color: var(--ff-brand); font-size: .82rem; font-weight: 900; }
.qbc-panel__head--result .qbc-step, .qbc-panel__head--accent .qbc-step { background: rgba(255,255,255,.16); color: #fff; }
.qbc-panel__eyebrow { display: block; margin-bottom: .12rem; color: var(--ff-muted); font-size: .65rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.qbc-panel__head h2 { margin: 0; font-family: var(--ff-sans); font-size: 1rem; font-weight: 850; letter-spacing: .01em; }
.qbc-input-panel { padding-bottom: 1.1rem; }
.qbc-input-panel .qbc-panel__head { margin-bottom: 1rem; }
.qbc-unit-toggle { width: calc(100% - 2.2rem); display: grid; grid-template-columns: 1fr 1fr; margin: 0 1.1rem 1rem; padding: 3px; border: 1px solid var(--ff-border); border-radius: 10px; background: #f7f7f4; }
.qbc-unit { min-height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--ff-muted); font-size: .82rem; font-weight: 800; }
.qbc-unit.is-active { background: var(--ff-brand); color: #fff; }
.qbc-fields { display: grid; gap: .85rem; padding-inline: 1.1rem; }
.qbc-fields--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.qbc-fields--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.qbc-field { display: grid; align-content: start; gap: .35rem; min-width: 0; color: var(--ff-ink); font-size: .78rem; font-weight: 800; }
.qbc-field--wide { grid-column: 1 / -1; }
.qbc-field small { min-height: 1.2em; color: var(--ff-muted); font-size: .67rem; font-weight: 500; line-height: 1.35; }
.qbc-field input, .qbc-field select { width: 100%; min-width: 0; height: 45px; padding: .64rem .7rem; border: 1px solid #cfd3cd; border-radius: 9px; background: #fff; color: var(--ff-ink); font-size: .86rem; font-weight: 600; }
.qbc-input-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid #cfd3cd; border-radius: 9px; overflow: hidden; background: #fff; }
.qbc-input-wrap input { border: 0; border-radius: 0; }
.qbc-input-wrap b { min-width: 42px; display: grid; place-items: center; padding: 0 .5rem; border-left: 1px solid #e2e3df; color: var(--ff-muted); background: #fafaf8; font-size: .72rem; font-weight: 800; }
.qbc-field input:focus, .qbc-field select:focus { border-color: var(--ff-brand); }
.qbc-input-wrap:focus-within { border-color: var(--ff-brand); box-shadow: 0 0 0 2px rgba(24,79,75,.09); }
.qbc-divider { height: 1px; margin: 1rem 1.1rem; background: #ecece7; }
.qbc-actions { display: grid; grid-template-columns: 1fr auto; gap: .65rem; padding: 1rem 1.1rem 0; }
.qbc-calculate, .qbc-reset { min-height: 47px; border-radius: 9px; font-weight: 850; }
.qbc-calculate { border: 0; background: var(--ff-accent); color: #fff; box-shadow: 0 3px 0 var(--ff-accent-dark); }
.qbc-calculate:hover { background: #c85a3d; }
.qbc-reset { padding-inline: 1rem; border: 1px solid #cfd3cd; background: #fff; color: var(--ff-brand); }

.qbc-result-panel { background: #fbfcfa; }
.qbc-result-hero { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 180px; border-bottom: 1px solid #dfe3de; }
.qbc-result-hero__image { overflow: hidden; background: #e8e8e1; }
.qbc-result-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.qbc-purchase { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.2rem; text-align: center; background: linear-gradient(135deg,#f8f4eb,#fff); }
.qbc-purchase > span { color: var(--ff-muted); font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.qbc-purchase strong { margin: .35rem 0 .15rem; color: var(--ff-brand); font-family: var(--ff-serif); font-size: clamp(2.25rem,4vw,3.25rem); line-height: 1; }
.qbc-purchase small { color: var(--ff-ink); font-size: .92rem; }
.qbc-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 1rem; border: 1px solid #dedfd9; border-radius: 12px; background: #fff; overflow: hidden; }
.qbc-metrics div { min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .8rem .45rem; text-align: center; border-right: 1px solid #e7e7e2; }
.qbc-metrics div:last-child { border-right: 0; }
.qbc-metrics span, .qbc-yardage-row span { color: var(--ff-muted); font-size: .66rem; font-weight: 750; }
.qbc-metrics strong { margin-top: .25rem; color: var(--ff-brand); font-size: 1rem; }
.qbc-yardage-row { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 1rem 1rem; border: 1px solid #dedfd9; border-radius: 12px; background: #fff; overflow: hidden; }
.qbc-yardage-row div { padding: .75rem; text-align: center; border-right: 1px solid #e7e7e2; }
.qbc-yardage-row div:last-child { border-right: 0; }
.qbc-yardage-row strong { display: block; margin-top: .2rem; color: var(--ff-ink); font-size: .95rem; }
.qbc-yardage-row .is-highlight { background: var(--ff-soft-orange); }
.qbc-yardage-row .is-highlight strong { color: var(--ff-accent); }
.qbc-layout-compare { margin: 1rem; padding: .85rem; border: 1px solid #dfe3de; border-radius: 12px; background: #f3f6f3; }
.qbc-layout-compare__title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.qbc-layout-compare__title span { font-size: .75rem; font-weight: 850; }
.qbc-layout-compare__title small { color: var(--ff-muted); font-size: .65rem; }
.qbc-layout-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem; border-radius: 9px; }
.qbc-layout-option + .qbc-layout-option { margin-top: .35rem; }
.qbc-layout-option.is-best { background: #fff; box-shadow: inset 3px 0 0 var(--ff-brand); }
.qbc-layout-option span { display: block; color: var(--ff-ink); font-size: .76rem; font-weight: 800; }
.qbc-layout-option small { display: block; margin-top: .1rem; color: var(--ff-muted); font-size: .67rem; }
.qbc-layout-option strong { color: var(--ff-brand); font-size: .82rem; }

.qbc-lower-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 1rem; margin-top: 1rem; }
.qbc-cut-content { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(0,1.3fr); gap: 1.2rem; align-items: center; padding: 1.2rem; }
.qbc-diagram { min-height: 190px; display: flex; align-items: stretch; justify-content: center; gap: 0; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; }
.qbc-diagram.is-horizontal { flex-direction: column; }
.qbc-diagram__panel { flex: 1; min-width: 0; display: grid; place-items: center; border: 1px solid rgba(24,79,75,.5); background: repeating-linear-gradient(45deg, rgba(108,141,123,.14) 0 7px, rgba(255,255,255,.4) 7px 14px); color: var(--ff-brand); font-size: .72rem; font-weight: 900; }
.qbc-diagram:not(.is-horizontal) .qbc-diagram__panel + .qbc-diagram__panel { border-left-style: dashed; }
.qbc-diagram.is-horizontal .qbc-diagram__panel + .qbc-diagram__panel { border-top-style: dashed; }
.qbc-diagram small { align-self: center; margin-left: .5rem; color: var(--ff-muted); font-size: .65rem; }
.qbc-cut-steps { margin: 0; padding-left: 1.25rem; }
.qbc-cut-steps li { padding-left: .25rem; color: var(--ff-muted); font-size: .84rem; }
.qbc-cut-steps li + li { margin-top: .72rem; }
.qbc-summary-list { margin: 0; padding: 1rem 1.15rem 1.15rem; }
.qbc-summary-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #ecece7; }
.qbc-summary-list div:last-child { border-bottom: 0; }
.qbc-summary-list dt { color: var(--ff-muted); font-size: .76rem; }
.qbc-summary-list dd { margin: 0; color: var(--ff-ink); font-size: .76rem; font-weight: 850; text-align: right; }

/* Calculator benefit strip */
.qbc-benefits { border-top: 1px solid var(--ff-border); border-bottom: 1px solid var(--ff-border); background: var(--ff-cream); }
.qbc-benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.qbc-benefit-grid > div { min-height: 130px; padding: 1.35rem 1.2rem; border-right: 1px solid var(--ff-border); }
.qbc-benefit-grid > div:first-child { border-left: 1px solid var(--ff-border); }
.qbc-benefit-grid > div > span { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: .65rem; border-radius: 50%; background: #fff; color: var(--ff-brand); box-shadow: 0 3px 12px rgba(23,49,47,.08); }
.qbc-benefit-grid strong { display: block; font-size: .86rem; }
.qbc-benefit-grid p { margin: .25rem 0 0; color: var(--ff-muted); font-size: .76rem; line-height: 1.45; }

/* SEO content */
.qbc-seo-section { background: #fff; }
.qbc-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(2rem,5vw,5rem); align-items: start; }
.qbc-content-main > section + section { margin-top: 4.5rem; padding-top: 4.5rem; border-top: 1px solid var(--ff-border); }
.qbc-content-main h2 { max-width: 18ch; }
.qbc-content-main > section > p:not(.eyebrow) { color: #435451; max-width: 72ch; }
.table-scroll { overflow-x: auto; border: 1px solid var(--ff-border); border-radius: 14px; }
.qbc-content-main table { width: 100%; border-collapse: collapse; min-width: 560px; }
.qbc-content-main th, .qbc-content-main td { padding: .8rem .9rem; border-bottom: 1px solid var(--ff-border); text-align: left; font-size: .88rem; }
.qbc-content-main th { background: var(--ff-cream); color: var(--ff-ink); }
.qbc-content-main tr:last-child td { border-bottom: 0; }
.formula-box { display: grid; grid-template-columns: 150px 1fr; gap: .55rem 1rem; margin-top: 1.3rem; padding: 1.2rem 1.3rem; border-left: 4px solid var(--ff-brand); border-radius: 0 12px 12px 0; background: var(--ff-soft-green); font-size: .87rem; }
.formula-box strong { color: var(--ff-brand); }
.faq-list details { border-top: 1px solid var(--ff-border); }
.faq-list details:last-child { border-bottom: 1px solid var(--ff-border); }
.faq-list summary { padding: 1rem 0; cursor: pointer; color: var(--ff-ink); font-weight: 850; }
.faq-list details p { padding: 0 0 1rem; color: var(--ff-muted); }
.qbc-related { position: sticky; top: 110px; padding: 1.25rem; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); background: var(--ff-cream); }
.qbc-related h2 { font-size: 1.55rem; }
.qbc-related a { display: block; padding: .9rem 0; border-top: 1px solid var(--ff-border); color: var(--ff-ink); text-decoration: none; }
.qbc-related a strong, .qbc-related a span { display: block; }
.qbc-related a strong { font-size: .86rem; }
.qbc-related a span { margin-top: .15rem; color: var(--ff-muted); font-size: .74rem; }
.qbc-related a:hover strong { color: var(--ff-accent); }
.qbc-editor-content { max-width: 780px; margin-inline: auto; }

/* Generic calculator */
.calculator-main { background: linear-gradient(180deg,var(--ff-cream),#fff 380px); padding-block: 2rem 6rem; }
.generic-calculator-hero { max-width: 800px; margin: 2rem auto 2.5rem; text-align: center; }
.generic-calculator-hero > p:last-child { color: var(--ff-muted); }
.calculator-content { max-width: 780px; margin-inline: auto; }

/* Footer */
.site-footer { padding-top: 4rem; background: var(--ff-ink); color: #dce7e4; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(160px,.55fr)); gap: 3rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .75rem; padding: 0; border-radius: 0; background: transparent; text-decoration: none; }
.footer-logo__icon { width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; }
.footer-logo__text { color: var(--ff-white); font-family: var(--ff-serif); font-size: 1.9rem; font-weight: 700; line-height: .95; letter-spacing: -.03em; white-space: nowrap; }
.site-footer__brand p { max-width: 48ch; margin-top: 1.2rem; color: #b9cac6; font-size: .9rem; }
.footer-heading { margin: 0 0 .8rem; color: #fff; font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { color: #dce7e4; font-size: .86rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.site-footer__bottom { margin-top: 3rem; padding-block: 1.1rem; border-top: 1px solid rgba(255,255,255,.13); color: #9eb4af; font-size: .8rem; }
.site-footer__bottom p { margin: 0; }

@media (max-width: 1050px) {
  .home-hero__grid, .qbc-page-hero__grid { grid-template-columns: 1fr; }
  .home-hero__grid { min-height: auto; }
  .home-hero__content { max-width: 760px; }
  .home-hero__visual { min-height: 360px; }
  .home-hero__visual img { min-height: 360px; }
  .qbc-page-hero__content { padding-right: 0; }
  .qbc-page-hero__media { min-height: 260px; border-radius: 22px 22px 0 0; }
  .qbc-page-hero__media img { min-height: 260px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .value-grid, .qbc-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .value-item:nth-child(3), .qbc-benefit-grid > div:nth-child(3) { border-left: 1px solid var(--ff-border); }
  .value-item:nth-child(-n+2), .qbc-benefit-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--ff-border); }
}

@media (max-width: 900px) {
  .site-header__inner { min-height: 86px; }
  .brand-lockup__icon { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-lockup__text { font-size: 1.65rem; }
  .custom-logo { width: 250px; max-width: 250px; height: auto; max-height: 74px; }
  .menu-toggle { display: inline-block; }
  .primary-navigation {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem; right: 1rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid var(--ff-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ff-shadow);
  }
  .primary-navigation.is-open { display: block; }
  .primary-menu { display: grid; gap: .15rem; }
  .primary-menu a { padding: .7rem .75rem; border-radius: 9px; }
  .primary-menu a:hover { background: var(--ff-cream); }
  .primary-menu ul { position: static; min-width: 0; padding: .25rem 0 .25rem 1rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .featured-tool-grid, .qbc-grid, .qbc-lower-grid, .qbc-content-grid { grid-template-columns: 1fr; }
  .qbc-related { position: static; }
  .section-heading--split { grid-template-columns: 1fr; gap: .5rem; }
  .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(2.35rem, 11vw, 3.45rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .ff-container, .ff-container--wide { width: min(100% - 1.25rem, var(--ff-site-wide)); }
  .site-header__inner { gap: .5rem; min-height: 76px; }
  .brand-lockup__icon { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-lockup__text { font-size: 1.35rem; }
  .custom-logo { width: 205px; max-width: 205px; height: auto; max-height: 62px; }
  .home-hero__grid { gap: 2.2rem; padding-block: 3rem; }
  .home-hero__visual, .home-hero__visual img { min-height: 280px; }
  .home-hero__visual { border-radius: 22px; }
  .hero-result-card { left: .8rem; right: .8rem; bottom: .8rem; min-width: 0; }
  .hero-result-card strong { font-size: 1.8rem; }
  .value-grid, .qbc-benefit-grid, .category-grid, .post-grid, .site-footer__grid { grid-template-columns: 1fr; }
  .value-item, .value-item:first-child, .value-item:nth-child(3), .qbc-benefit-grid > div, .qbc-benefit-grid > div:first-child, .qbc-benefit-grid > div:nth-child(3) { border-left: 1px solid var(--ff-border); border-right: 1px solid var(--ff-border); border-bottom: 1px solid var(--ff-border); }
  .featured-tool--large { grid-template-rows: 210px 1fr; }
  .featured-tool--compact { grid-template-columns: 44px 1fr auto; padding: 1rem; }
  .tool-symbol { width: 44px; height: 44px; }
  .category-card { min-height: 230px; }
  .category-card__icon { margin-bottom: 1.3rem; }
  .qbc-page-hero__content { padding: 2.6rem 0 2rem; }
  .qbc-page-hero__media, .qbc-page-hero__media img { min-height: 210px; }
  .qbc-calculator-zone { padding-top: .75rem; }
  .qbc-fields--3, .qbc-fields--2 { grid-template-columns: 1fr; }
  .qbc-field--wide { grid-column: auto; }
  .qbc-actions { grid-template-columns: 1fr; }
  .qbc-result-hero { grid-template-columns: 1fr; }
  .qbc-result-hero__image { min-height: 130px; }
  .qbc-purchase { min-height: 150px; }
  .qbc-metrics { grid-template-columns: repeat(2,1fr); }
  .qbc-metrics div:nth-child(2) { border-right: 0; }
  .qbc-metrics div:nth-child(-n+2) { border-bottom: 1px solid #e7e7e2; }
  .qbc-yardage-row { grid-template-columns: 1fr; }
  .qbc-yardage-row div { border-right: 0; border-bottom: 1px solid #e7e7e2; }
  .qbc-yardage-row div:last-child { border-bottom: 0; }
  .qbc-layout-compare__title { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .qbc-cut-content { grid-template-columns: 1fr; }
  .qbc-diagram { min-height: 160px; }
  .formula-box { grid-template-columns: 1fr; }
  .site-footer__grid { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* =========================================================
   Fabric Formula Home — v2.1 editorial redesign
   ========================================================= */
.ff-home { background: #fff; }
.ff-home-kicker {
  margin: 0 0 .9rem;
  color: var(--ff-accent);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ff-home-kicker--light { color: #e9b19f; }
.ff-home-hero {
  position: relative;
  overflow: hidden;
  background: var(--ff-cream);
  border-bottom: 1px solid var(--ff-border);
}
.ff-home-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -160px -120px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(24,79,75,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(24,79,75,.018), 0 0 0 92px rgba(24,79,75,.012);
  pointer-events: none;
}
.ff-home-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(520px,1.12fr);
  gap: clamp(3rem,6vw,6.5rem);
  align-items: center;
  min-height: 670px;
  padding-block: clamp(4.5rem,7vw,7rem);
}
.ff-home-hero__copy { position: relative; z-index: 2; }
.ff-home-hero__copy h1 {
  max-width: 8.5ch;
  margin-bottom: 1.25rem;
  color: var(--ff-brand-dark);
  font-size: clamp(3.7rem,6.6vw,6.5rem);
  line-height: .92;
  letter-spacing: -.055em;
}
.ff-home-hero__lead {
  max-width: 55ch;
  margin-bottom: 0;
  color: #465956;
  font-size: clamp(1.04rem,1.55vw,1.2rem);
  line-height: 1.72;
}
.ff-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}
.ff-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 52px;
  padding: .82rem 1.15rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.ff-home-button:hover { transform: translateY(-2px); }
.ff-home-button--primary {
  border: 1px solid var(--ff-accent);
  background: var(--ff-accent);
  color: #fff;
}
.ff-home-button--primary:hover { background: var(--ff-accent-dark); border-color: var(--ff-accent-dark); color: #fff; }
.ff-home-button--quiet {
  border: 1px solid rgba(24,79,75,.2);
  background: rgba(255,255,255,.55);
  color: var(--ff-brand);
}
.ff-home-button--quiet:hover { border-color: var(--ff-brand); background: #fff; color: var(--ff-brand); }
.ff-home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.3rem;
  margin-top: 2rem;
  color: #596966;
  font-size: .78rem;
  font-weight: 750;
}
.ff-home-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.ff-home-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ff-sage); }
.ff-home-hero__visual {
  position: relative;
  min-height: 500px;
  padding: 22px 0 46px 36px;
}
.ff-home-photo-frame {
  position: absolute;
  inset: 0 0 46px 36px;
  overflow: hidden;
  border-radius: 120px 24px 24px 24px;
  background: #dcd7ca;
  box-shadow: 0 24px 65px rgba(23,49,47,.16);
}
.ff-home-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(13,48,45,.02),rgba(13,48,45,.18));
  pointer-events: none;
}
.ff-home-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  transform: scale(1.2);
}
.ff-home-photo-note {
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  right: 1.2rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(250,247,241,.9);
  color: var(--ff-brand-dark);
  font-size: .72rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.ff-home-result-card {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: min(335px,68%);
  padding: 1.25rem 1.3rem 1.15rem;
  border: 1px solid rgba(24,79,75,.14);
  border-radius: 19px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 50px rgba(23,49,47,.17);
  backdrop-filter: blur(14px);
}
.ff-home-result-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--ff-muted); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ff-home-result-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ff-accent); }
.ff-home-result-card > strong { display: block; margin: .45rem 0 .22rem; color: var(--ff-brand); font-family: var(--ff-serif); font-size: 2.7rem; line-height: 1; letter-spacing: -.04em; }
.ff-home-result-card > strong small { font-family: var(--ff-sans); font-size: .9rem; font-weight: 750; letter-spacing: 0; }
.ff-home-result-card > p { margin: 0; color: var(--ff-muted); font-size: .8rem; }
.ff-home-result-card__meta { display: grid; grid-template-columns: repeat(3,1fr); gap: .35rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--ff-border); }
.ff-home-result-card__meta span { display: grid; gap: .1rem; color: var(--ff-muted); font-size: .65rem; line-height: 1.3; }
.ff-home-result-card__meta b { color: var(--ff-ink); font-size: .78rem; }

.ff-home-section { padding-block: clamp(4.7rem,7.2vw,7.5rem); }
.ff-home-section-head {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(280px,.65fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.6rem;
}
.ff-home-section-head h2 { max-width: 14ch; margin-bottom: 0; }
.ff-home-section-head > p { max-width: 46ch; margin: 0 0 .3rem; color: var(--ff-muted); }
.ff-home-popular { background: #fff; }
.ff-home-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.ff-home-tool-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  overflow: hidden;
  border: 1px solid var(--ff-border);
  border-radius: 22px;
  background: #fff;
  color: var(--ff-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ff-home-tool-card:hover { color: var(--ff-ink); transform: translateY(-4px); border-color: #bac9c3; box-shadow: 0 18px 42px rgba(23,49,47,.09); }
.ff-home-tool-card--featured { background: var(--ff-brand); border-color: var(--ff-brand); color: #fff; }
.ff-home-tool-card--featured:hover { color: #fff; border-color: var(--ff-brand-dark); }
.ff-home-tool-card__number { color: #9aa7a4; font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.ff-home-tool-card--featured .ff-home-tool-card__number { color: #b6cfca; }
.ff-home-tool-card__icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 3.4rem 0 2.5rem; border-radius: 50%; background: var(--ff-soft-green); color: var(--ff-brand); }
.ff-home-tool-card__icon svg { width: 34px; height: 34px; }
.ff-home-tool-card--featured .ff-home-tool-card__icon { background: rgba(255,255,255,.1); color: #fff; }
.ff-home-tool-card__body > span { color: var(--ff-accent); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ff-home-tool-card--featured .ff-home-tool-card__body > span { color: #efb9a8; }
.ff-home-tool-card h3 { margin: .4rem 0 .7rem; font-size: clamp(1.55rem,2vw,2rem); }
.ff-home-tool-card--featured h3 { color: #fff; }
.ff-home-tool-card p { margin: 0; color: var(--ff-muted); font-size: .9rem; line-height: 1.55; }
.ff-home-tool-card--featured p { color: #d2e0dd; }
.ff-home-card-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: 1.35rem; border-top: 1px solid rgba(23,49,47,.12); color: var(--ff-brand); font-size: .78rem; font-weight: 850; }
.ff-home-card-link b { font-size: 1.1rem; }
.ff-home-tool-card--featured .ff-home-card-link { border-top-color: rgba(255,255,255,.15); color: #fff; }

.ff-home-explore { background: var(--ff-cream); border-top: 1px solid var(--ff-border); border-bottom: 1px solid var(--ff-border); }
.ff-home-explore__grid { display: grid; grid-template-columns: minmax(300px,.68fr) minmax(0,1.32fr); gap: clamp(3rem,7vw,7rem); align-items: start; }
.ff-home-explore__intro { position: sticky; top: 120px; }
.ff-home-explore__intro h2 { max-width: 8.5ch; margin-bottom: 1rem; }
.ff-home-explore__intro > p:last-of-type { max-width: 35ch; color: var(--ff-muted); }
.ff-home-ruler { display: flex; align-items: end; gap: 18px; width: min(280px,80%); height: 48px; margin-top: 2rem; padding-bottom: 4px; border-bottom: 2px solid var(--ff-brand); }
.ff-home-ruler span { width: 1px; height: 16px; background: var(--ff-brand); }
.ff-home-ruler span:nth-child(2n) { height: 28px; }
.ff-home-ruler span:nth-child(4n) { height: 40px; }
.ff-home-category-list { border-top: 1px solid var(--ff-border-strong); }
.ff-home-category-list a {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 46px;
  gap: 1rem;
  align-items: center;
  min-height: 128px;
  padding: 1.45rem .25rem;
  border-bottom: 1px solid var(--ff-border-strong);
  color: var(--ff-ink);
  text-decoration: none;
  transition: padding .18s ease, color .18s ease, background .18s ease;
}
.ff-home-category-list a:hover { padding-left: .9rem; padding-right: .9rem; background: rgba(255,255,255,.66); color: var(--ff-brand); }
.ff-home-category-list__index { color: var(--ff-accent); font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.ff-home-category-list__text { min-width: 0; }
.ff-home-category-list__text strong { display: block; font-family: var(--ff-serif); font-size: clamp(1.5rem,2.3vw,2rem); line-height: 1.08; }
.ff-home-category-list__text small { display: block; margin-top: .45rem; color: var(--ff-muted); font-size: .8rem; }
.ff-home-category-list__arrow { width: 42px; height: 42px; display: grid; place-items: center; justify-self: end; border: 1px solid rgba(24,79,75,.16); border-radius: 50%; color: var(--ff-brand); font-size: 1rem; }

.ff-home-confidence { padding-block: clamp(4.8rem,7vw,7rem); background: var(--ff-brand-dark); color: #fff; }
.ff-home-confidence__grid { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: clamp(3rem,7vw,7rem); align-items: start; }
.ff-home-confidence__copy h2 { max-width: 10ch; color: #fff; }
.ff-home-confidence__copy > p:last-child { max-width: 48ch; margin-bottom: 0; color: #bed0cc; }
.ff-home-confidence__points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.ff-home-confidence__points > div { min-height: 220px; display: flex; flex-direction: column; padding: 1.45rem 1.25rem 1.25rem; border-right: 1px solid rgba(255,255,255,.18); }
.ff-home-confidence__points > div:last-child { border-right: 0; }
.ff-home-confidence__points strong { color: #efb9a8; font-size: .72rem; letter-spacing: .1em; }
.ff-home-confidence__points span { margin-top: auto; color: #fff; font-family: var(--ff-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.15; }
.ff-home-confidence__points small { margin-top: .65rem; color: #adc4bf; font-size: .76rem; line-height: 1.5; }
.ff-home-editable { background: #fff; }

@media (max-width: 1050px) {
  .ff-home-hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .ff-home-hero__copy { max-width: 760px; }
  .ff-home-hero__copy h1 { max-width: 9.5ch; }
  .ff-home-hero__visual { min-height: 470px; max-width: 760px; width: 100%; }
  .ff-home-tool-grid { grid-template-columns: 1fr 1fr; }
  .ff-home-tool-card--featured { grid-column: 1 / -1; min-height: 330px; }
  .ff-home-tool-card--featured .ff-home-tool-card__icon { margin: 2rem 0 1.5rem; }
  .ff-home-explore__grid, .ff-home-confidence__grid { grid-template-columns: 1fr; }
  .ff-home-explore__intro { position: static; max-width: 620px; }
  .ff-home-explore__intro h2 { max-width: none; }
  .ff-home-confidence__copy h2 { max-width: 12ch; }
}

@media (max-width: 760px) {
  .ff-home-hero__inner { gap: 2.7rem; padding-block: 3.4rem 4rem; }
  .ff-home-hero__copy h1 { font-size: clamp(3rem,14vw,4.6rem); }
  .ff-home-hero__visual { min-height: 390px; padding: 0 0 42px 18px; }
  .ff-home-photo-frame { inset: 0 0 42px 18px; border-radius: 72px 20px 20px 20px; }
  .ff-home-photo-frame img { transform: scale(1.28); object-position: 60% center; }
  .ff-home-result-card { width: min(310px,86%); }
  .ff-home-section-head { grid-template-columns: 1fr; gap: .7rem; }
  .ff-home-section-head h2 { max-width: 16ch; }
  .ff-home-tool-grid { grid-template-columns: 1fr; }
  .ff-home-tool-card--featured { grid-column: auto; }
  .ff-home-tool-card { min-height: 330px; }
  .ff-home-tool-card__icon { margin: 2.2rem 0 1.7rem; }
  .ff-home-category-list a { grid-template-columns: 40px minmax(0,1fr) 38px; min-height: 112px; gap: .7rem; }
  .ff-home-category-list__text small { max-width: 38ch; }
  .ff-home-confidence__points { grid-template-columns: 1fr; }
  .ff-home-confidence__points > div { min-height: 155px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .ff-home-confidence__points > div:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .ff-home-hero__actions { display: grid; }
  .ff-home-button { width: 100%; }
  .ff-home-proof { display: grid; gap: .5rem; }
  .ff-home-hero__visual { min-height: 340px; padding-left: 0; }
  .ff-home-photo-frame { left: 0; border-radius: 52px 18px 18px 18px; }
  .ff-home-photo-note { top: .8rem; right: .8rem; font-size: .65rem; }
  .ff-home-result-card { left: .7rem; right: .7rem; width: auto; }
  .ff-home-result-card > strong { font-size: 2.35rem; }
  .ff-home-result-card__meta { gap: .2rem; }
  .ff-home-section { padding-block: 4rem; }
  .ff-home-category-list a { grid-template-columns: 32px minmax(0,1fr); }
  .ff-home-category-list__arrow { display: none; }
  .ff-home-category-list__text small { font-size: .74rem; }
}

/* =========================================================
   Editable Gutenberg homepage — Fabric Formula v2.3.0
   Wide layout fix: Gutenberg constrained blocks should not
   collapse the homepage to the normal 820px reading width.
   ========================================================= */
.ff-home-blocks {
  overflow: clip;
  background: #fff;
}
.ff-home-blocks > .wp-block-group {
  width: 100%;
  max-width: none !important;
  margin-block: 0;
}
.ff-home-blocks .wp-block-columns { margin-bottom: 0; }
.ff-home-blocks .wp-block-image { margin: 0; }
.ff-home-blocks .wp-block-heading { text-wrap: balance; }

/* One consistent, generous desktop canvas for every homepage section. */
.ff-home-blocks .ff-home-edit-hero > .ff-home-edit-hero__columns,
.ff-home-blocks .ff-home-edit-popular > .ff-home-edit-sectionhead,
.ff-home-blocks .ff-home-edit-popular > .ff-home-edit-cardgrid,
.ff-home-blocks .ff-home-edit-explore > .ff-home-edit-explore__columns,
.ff-home-blocks .ff-home-edit-confidence > .ff-home-edit-confidence__columns {
  width: min(var(--ff-site-wide), calc(100% - var(--ff-site-gutter) - var(--ff-site-gutter)));
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ff-home-edit-hero {
  position: relative;
  padding-block: clamp(3.4rem, 5.2vw, 5.8rem);
  padding-inline: 0;
  background: var(--ff-cream);
  border-bottom: 1px solid var(--ff-border);
}
.ff-home-edit-hero::before { display: none; }
.ff-home-edit-hero__columns {
  gap: clamp(2.75rem, 5vw, 5.5rem);
  align-items: center !important;
}
.ff-home-edit-hero__copy {
  flex-basis: 40% !important;
  min-width: 0;
}
.ff-home-edit-hero__visual {
  flex-basis: 60% !important;
  min-width: 0;
}
.ff-home-edit-hero__copy h1 {
  max-width: 11ch;
  margin: .3rem 0 1.2rem;
  color: var(--ff-brand-dark);
  font-size: clamp(3.7rem, 5.15vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.052em;
}
.ff-home-edit-lead {
  max-width: 610px;
  margin-bottom: 1.65rem;
  color: #465956;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.65;
}
.ff-home-edit-actions { gap: .8rem; }
.ff-home-edit-actions .wp-block-button__link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .84rem 1.35rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}
.ff-home-edit-primary .wp-block-button__link { background: var(--ff-accent); color: #fff; }
.ff-home-edit-primary .wp-block-button__link:hover { background: var(--ff-accent-dark); }
.ff-home-edit-secondary .wp-block-button__link {
  border: 1px solid #b8c6c1;
  background: rgba(255,255,255,.72);
  color: var(--ff-brand);
}
.ff-home-edit-proof {
  margin: 1.35rem 0 0;
  color: var(--ff-muted);
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .01em;
}
.ff-home-edit-proof span { padding-inline: .7rem; color: var(--ff-sage); }

.ff-home-edit-hero__visual {
  position: relative;
  min-height: clamp(450px, 35vw, 555px);
  padding: 0 0 52px 26px;
}
.ff-home-edit-image {
  position: absolute;
  inset: 0 0 52px 26px;
  overflow: hidden;
  border-radius: 88px 24px 24px 24px;
  background: #e8ece8;
}
.ff-home-edit-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.08);
}
.ff-home-edit-result {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: min(340px, 78%);
  max-width: none !important;
  padding: 1.15rem 1.2rem 1rem;
  border: 1px solid #d6ddd8;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 45px rgba(23,49,47,.12);
  backdrop-filter: blur(8px);
}
.ff-home-edit-result__eyebrow {
  margin: 0;
  color: var(--ff-muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
}
.ff-home-edit-result__value {
  margin: .42rem 0 .25rem;
  color: var(--ff-brand);
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.ff-home-edit-result__value small {
  font-family: var(--ff-sans);
  font-size: .9rem;
  letter-spacing: 0;
}
.ff-home-edit-result > p:not(.ff-home-edit-result__eyebrow) {
  margin: 0;
  color: var(--ff-muted);
  font-size: .8rem;
}
.ff-home-edit-result__meta {
  gap: .35rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--ff-border);
}
.ff-home-edit-result__meta p { margin: 0; color: var(--ff-muted); font-size: .67rem; line-height: 1.35; }
.ff-home-edit-result__meta strong { color: var(--ff-ink); font-size: .8rem; }

.ff-home-edit-section {
  padding-block: clamp(4.25rem, 5.5vw, 6.25rem);
  padding-inline: 0;
}
.ff-home-edit-sectionhead {
  gap: clamp(2.5rem, 7vw, 8rem);
  margin-bottom: 2.2rem !important;
  align-items: end !important;
}
.ff-home-edit-sectionhead > .wp-block-column:first-child { flex-basis: 55% !important; }
.ff-home-edit-sectionhead > .wp-block-column:last-child { flex-basis: 45% !important; }
.ff-home-edit-sectionhead h2 { max-width: 16ch; margin-bottom: 0; }
.ff-home-edit-muted { color: var(--ff-muted); }
.ff-home-edit-sectionhead .ff-home-edit-muted { max-width: 52ch; margin-left: auto; }

.ff-home-edit-cardgrid { gap: clamp(1rem, 1.7vw, 1.5rem); }
.ff-home-edit-cardgrid > .wp-block-column { min-width: 0; }
.ff-home-edit-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.45rem, 2vw, 1.9rem);
  border: 1px solid var(--ff-border);
  border-radius: 22px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ff-home-edit-card:hover {
  transform: translateY(-4px);
  border-color: #bac9c3;
  box-shadow: 0 18px 42px rgba(23,49,47,.09);
}
.ff-home-edit-card--featured { border-color: var(--ff-brand); background: var(--ff-brand); color: #fff; }
.ff-home-edit-card__number { margin: 0 0 auto; color: #9aa7a4; font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.ff-home-edit-card--featured .ff-home-edit-card__number { color: #b6cfca; }
.ff-home-edit-card__category { margin: 4rem 0 .42rem; color: var(--ff-accent); font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.ff-home-edit-card--featured .ff-home-edit-card__category { color: #efb9a8; }
.ff-home-edit-card h3 { margin: 0 0 .75rem; font-size: clamp(1.55rem, 1.75vw, 2rem); }
.ff-home-edit-card--featured h3 { color: #fff; }
.ff-home-edit-card > p:not(.ff-home-edit-card__number):not(.ff-home-edit-card__category):not(.ff-home-edit-card__link) {
  max-width: 36ch;
  color: var(--ff-muted);
  font-size: .92rem;
  line-height: 1.58;
}
.ff-home-edit-card--featured > p:not(.ff-home-edit-card__number):not(.ff-home-edit-card__category):not(.ff-home-edit-card__link) { color: #d2e0dd; }
.ff-home-edit-card__link {
  margin: auto 0 0 !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(23,49,47,.12);
  font-size: .82rem;
  font-weight: 850;
}
.ff-home-edit-card__link a { color: var(--ff-brand); text-decoration: none; }
.ff-home-edit-card--featured .ff-home-edit-card__link { border-color: rgba(255,255,255,.15); }
.ff-home-edit-card--featured .ff-home-edit-card__link a { color: #fff; }

.ff-home-edit-explore { background: var(--ff-cream); border-block: 1px solid var(--ff-border); }
.ff-home-edit-explore__columns { gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.ff-home-edit-explore__columns > .wp-block-column:first-child { flex-basis: 28% !important; }
.ff-home-edit-explore__columns > .wp-block-column:last-child { flex-basis: 72% !important; }
.ff-home-edit-explore h2 { max-width: 10ch; }
.ff-home-edit-explore .ff-home-edit-muted { max-width: 34ch; }
.ff-home-edit-categorylist { border-top: 1px solid var(--ff-border-strong); }
.ff-home-edit-categoryrow {
  min-height: 110px;
  gap: 1.2rem;
  padding: 1.3rem .2rem;
  border-bottom: 1px solid var(--ff-border-strong);
  transition: padding .2s ease, background .2s ease;
}
.ff-home-edit-categoryrow:hover { padding-inline: 1rem; background: rgba(255,255,255,.62); }
.ff-home-edit-categoryrow p { margin: 0; }
.ff-home-edit-categoryrow p:first-child {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  align-items: center;
  column-gap: 1rem;
}
.ff-home-edit-categoryrow span { grid-row: 1 / 3; color: var(--ff-accent); font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.ff-home-edit-categoryrow strong { display: block; color: var(--ff-ink); font-family: var(--ff-serif); font-size: clamp(1.55rem, 2vw, 2.15rem); line-height: 1.1; }
.ff-home-edit-categoryrow small { display: block; grid-column: 2; margin-top: .38rem; color: var(--ff-muted); font-size: .82rem; }
.ff-home-edit-categoryrow a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24,79,75,.16);
  border-radius: 50%;
  color: var(--ff-brand);
  text-decoration: none;
}

.ff-home-edit-confidence {
  padding-block: clamp(4.5rem, 5.5vw, 6rem);
  padding-inline: 0;
  background: var(--ff-brand-dark);
  color: #fff;
}
.ff-home-edit-confidence__columns { gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.ff-home-edit-confidence__columns > .wp-block-column:first-child { flex-basis: 34% !important; }
.ff-home-edit-confidence__columns > .wp-block-column:last-child { flex-basis: 66% !important; }
.ff-home-edit-confidence h2, .ff-home-edit-confidence h3 { color: #fff; }
.ff-home-edit-confidence h2 { max-width: 11ch; }
.ff-home-edit-confidence p { color: #bed0cc; }
.ff-home-edit-confidence__points { gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.ff-home-edit-confidence__points > .wp-block-column {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 1.45rem 1.35rem;
  border-right: 1px solid rgba(255,255,255,.18);
}
.ff-home-edit-confidence__points > .wp-block-column:last-child { border-right: 0; }
.ff-home-edit-confidence__points strong { color: #efb9a8; font-size: .72rem; letter-spacing: .1em; }
.ff-home-edit-confidence__points h3 { margin-top: auto; margin-bottom: .6rem; font-size: 1.3rem; }
.ff-home-edit-confidence__points p { margin: 0; color: #adc4bf; font-size: .82rem; line-height: 1.55; }

/* Mid-size screens: retain a wide desktop feel before stacking. */
@media (max-width: 1100px) {
  .ff-home-edit-hero__columns,
  .ff-home-edit-explore__columns,
  .ff-home-edit-confidence__columns { flex-wrap: wrap !important; }

  .ff-home-edit-hero__columns > .wp-block-column,
  .ff-home-edit-explore__columns > .wp-block-column,
  .ff-home-edit-confidence__columns > .wp-block-column {
    flex-basis: 100% !important;
  }

  .ff-home-edit-hero__copy { max-width: 760px; }
  .ff-home-edit-hero__copy h1 { max-width: 10ch; }
  .ff-home-edit-hero__visual { min-height: 500px; max-width: 900px; }
  .ff-home-edit-cardgrid { flex-wrap: wrap !important; }
  .ff-home-edit-cardgrid > .wp-block-column { flex-basis: calc(50% - .75rem) !important; }
  .ff-home-edit-cardgrid > .wp-block-column:first-child { flex-basis: calc(50% - .75rem) !important; }
  .ff-home-edit-explore h2, .ff-home-edit-confidence h2 { max-width: 14ch; }
}

@media (max-width: 720px) {
  .ff-home-edit-hero { padding-top: 3rem; }
  .ff-home-edit-hero__copy h1 { font-size: clamp(3rem, 14vw, 4.7rem); max-width: 9.5ch; }
  .ff-home-edit-actions { display: grid; }
  .ff-home-edit-actions .wp-block-button,
  .ff-home-edit-actions .wp-block-button__link { width: 100%; }
  .ff-home-edit-proof { line-height: 1.8; }
  .ff-home-edit-proof span { padding-inline: .35rem; }
  .ff-home-edit-hero__visual { min-height: 365px; padding-left: 0; }
  .ff-home-edit-image { left: 0; border-radius: 48px 18px 18px 18px; }
  .ff-home-edit-image img { min-height: 330px; }
  .ff-home-edit-result { left: .65rem; right: .65rem; width: auto; }
  .ff-home-edit-sectionhead { display: block !important; }
  .ff-home-edit-sectionhead .wp-block-column + .wp-block-column { margin-top: 1rem; }
  .ff-home-edit-sectionhead .ff-home-edit-muted { margin-left: 0; }
  .ff-home-edit-cardgrid { display: block !important; }
  .ff-home-edit-cardgrid > .wp-block-column + .wp-block-column { margin-top: 1rem; }
  .ff-home-edit-card { min-height: 300px; }
  .ff-home-edit-confidence__points { display: block !important; }
  .ff-home-edit-confidence__points > .wp-block-column {
    min-height: 145px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .ff-home-edit-confidence__points > .wp-block-column:last-child { border-bottom: 0; }
}

/* Keep the block editor representative without forcing its narrow reading width. */
.editor-styles-wrapper .ff-home-edit-hero,
.editor-styles-wrapper .ff-home-edit-section,
.editor-styles-wrapper .ff-home-edit-confidence { padding-left: 24px; padding-right: 24px; }

.editor-styles-wrapper .ff-home-edit-hero__columns,
.editor-styles-wrapper .ff-home-edit-sectionhead,
.editor-styles-wrapper .ff-home-edit-cardgrid,
.editor-styles-wrapper .ff-home-edit-explore__columns,
.editor-styles-wrapper .ff-home-edit-confidence__columns {
  width: 100%;
  max-width: 1180px !important;
}
.editor-styles-wrapper .ff-home-edit-hero__visual { min-height: 430px; }

/* =========================================================
   Fabric Formula v3 homepage
   Rebuilt against the approved wide desktop composition.
   ========================================================= */

:root {
  --ff3-wide: 1540px;
  --ff3-gutter: clamp(1.25rem, 3.1vw, 3.25rem);
}

.fabric-formula-home-v3 .site-header { position: sticky; }
.fabric-formula-home-v3 .site-header__inner {
  min-height: 98px;
  width: min(var(--ff3-wide), calc(100% - (var(--ff3-gutter) * 2)));
  gap: clamp(1rem, 2vw, 2.2rem);
}
.fabric-formula-home-v3 .brand-lockup__icon { width: 62px; height: 62px; flex-basis: 62px; }
.fabric-formula-home-v3 .brand-lockup__text { font-size: 2.15rem; }
.fabric-formula-home-v3 .custom-logo { width: 330px; max-width: 330px; height: auto; max-height: 94px; }
.fabric-formula-home-v3 .primary-navigation { margin-left: auto; }
.fabric-formula-home-v3 .primary-menu { gap: clamp(.75rem, 1.55vw, 1.45rem); }
.fabric-formula-home-v3 .primary-menu a { font-size: .86rem; font-weight: 720; }
.site-header__actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .68rem 1.05rem;
  border-radius: 12px;
  background: var(--ff-accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: none;
}
.site-header__cta:hover { background: var(--ff-accent-dark); color: #fff; }

.ff-home-blocks { overflow: clip; }
.ff-home-blocks > .wp-block-group { max-width: none !important; margin: 0; }
.ff-home-blocks .wp-block-image,
.ff-home-blocks .wp-block-group,
.ff-home-blocks .wp-block-heading,
.ff-home-blocks p { margin-top: 0; }
.ff-home-blocks .wp-block-image { margin-bottom: 0; }

.ff3-shell {
  width: min(var(--ff3-wide), calc(100% - (var(--ff3-gutter) * 2))) !important;
  max-width: none !important;
  margin-inline: auto !important;
}
.ff3-kicker {
  margin: 0 0 .75rem !important;
  color: var(--ff-accent);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.25;
}
.ff3-kicker--light { color: #f0b7a5; }

/* Hero */
.ff3-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--ff-border);
  background: var(--ff-cream);
}
.ff3-hero__grid {
  display: grid !important;
  grid-template-columns: minmax(390px, .78fr) minmax(620px, 1.42fr);
  align-items: stretch;
  gap: clamp(2.5rem, 4vw, 5rem);
  min-height: 394px;
}
.ff3-hero__copy {
  align-self: center;
  padding-block: 2.65rem 2.35rem;
  position: relative;
  z-index: 4;
}
.ff3-hero__title {
  max-width: none !important;
  margin: 0 0 1rem !important;
  color: var(--ff-brand-dark) !important;
  font-size: clamp(3.55rem, 4.45vw, 5rem) !important;
  line-height: .96 !important;
  letter-spacing: -.055em !important;
  text-wrap: initial !important;
}
.ff3-hero__lead {
  max-width: 540px;
  margin: 0 0 1.15rem !important;
  color: #3f5551;
  font-size: clamp(.96rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}
.ff3-hero__buttons { display: flex !important; flex-wrap: wrap !important; gap: .75rem !important; margin: 0 !important; }
.ff3-button .wp-block-button__link {
  min-height: 45px;
  padding: .72rem 1.22rem;
  border-radius: 999px;
  box-shadow: none !important;
  font-size: .77rem;
  font-weight: 850;
  transform: none !important;
}
.ff3-button--primary .wp-block-button__link { border-color: var(--ff-accent); background: var(--ff-accent); color: #fff; }
.ff3-button--primary .wp-block-button__link:hover { background: var(--ff-accent-dark); color: #fff; }
.ff3-button--secondary .wp-block-button__link { border: 1px solid var(--ff-brand); background: #fff; color: var(--ff-brand); }
.ff3-button--secondary .wp-block-button__link:hover { background: var(--ff-soft-green); color: var(--ff-brand); }
.ff3-proof { display: flex !important; align-items: center; gap: 1.3rem !important; margin-top: 1rem !important; }
.ff3-proof p { margin: 0 !important; color: var(--ff-muted); font-size: .71rem; line-height: 1.2; }
.ff3-proof p:first-child { color: #647f70; }

.ff3-hero__visual {
  position: relative;
  min-height: 394px;
  margin-right: calc(var(--ff3-gutter) * -1) !important;
}
.ff3-hero__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 142px 0 0 0;
  background: #d9ddd6;
}
.ff3-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 394px;
  object-fit: cover;
  object-position: 60% 52%;
  transform: scale(1.035);
}
.ff3-result {
  position: absolute;
  z-index: 5;
  left: clamp(-1rem, -1.1vw, 0.75rem);
  top: 46%;
  width: 238px;
  max-width: none !important;
  padding: 1rem 1.05rem .9rem;
  transform: translateY(-50%);
  border: 1px solid rgba(23,49,47,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 35px rgba(23,49,47,.12);
}
.ff3-result__eyebrow { margin: 0 0 .45rem !important; color: var(--ff-muted); font-size: .6rem; font-weight: 900; letter-spacing: .13em; }
.ff3-result__value { margin: 0 0 .2rem !important; color: var(--ff-brand) !important; font-size: 2.45rem !important; line-height: .95 !important; letter-spacing: -.04em !important; }
.ff3-result__value small { font-family: var(--ff-sans); font-size: .72rem; letter-spacing: 0; }
.ff3-result__label { margin: 0 !important; color: var(--ff-muted); font-size: .69rem; }
.ff3-result__meta { display: flex !important; justify-content: space-between !important; gap: .45rem !important; margin-top: .7rem !important; padding-top: .65rem; border-top: 1px solid var(--ff-border); }
.ff3-result__meta p { margin: 0 !important; color: var(--ff-muted); font-size: .61rem; line-height: 1.15; }
.ff3-result__meta strong, .ff3-result__meta span { display: block; }
.ff3-result__meta strong { margin-bottom: .1rem; color: var(--ff-ink); font-size: .76rem; }

/* Popular tools */
.ff3-popular { border-bottom: 1px solid var(--ff-border); background: #fff; }
.ff3-popular__grid {
  display: grid !important;
  grid-template-columns: minmax(230px, .62fr) minmax(0, 2.38fr);
  gap: clamp(1.6rem, 2.6vw, 2.8rem);
  align-items: stretch;
  padding-block: 1.15rem 1.4rem;
}
.ff3-section-intro { align-self: center; padding-right: 1rem; }
.ff3-section-intro h2 {
  max-width: 10ch !important;
  margin: 0 0 .75rem !important;
  font-size: clamp(2rem, 2.65vw, 2.9rem) !important;
  line-height: .98 !important;
}
.ff3-section-intro > p:not(.ff3-kicker):not(.ff3-text-link) { max-width: 34ch; margin: 0 0 .5rem !important; color: var(--ff-muted); font-size: .72rem; line-height: 1.55; }
.ff3-text-link { margin: .5rem 0 0 !important; }
.ff3-text-link a { color: var(--ff-brand); font-size: .72rem; font-weight: 850; text-decoration: none; }

.ff3-card-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ff3-tool-card {
  position: relative;
  min-width: 0;
  min-height: 242px;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1rem 1rem;
  border: 1px solid var(--ff-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.ff3-tool-card--featured { border-color: var(--ff-brand); background: linear-gradient(145deg, #1d625c, var(--ff-brand)); color: #fff; }
.ff3-card-number { margin: 0 !important; color: #98aaa6; font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.ff3-tool-card--featured .ff3-card-number { color: #d2e0dd; }
.ff3-card-icon { position: absolute; top: .4rem; right: .35rem; width: 58px; opacity: .26; }
.ff3-card-icon img { width: 100%; height: auto; }
.ff3-tool-card--featured .ff3-card-icon { opacity: .22; filter: brightness(0) invert(1); }
.ff3-card-category { margin: 1.9rem 0 .35rem !important; color: var(--ff-accent); font-size: .59rem; font-weight: 900; letter-spacing: .13em; }
.ff3-tool-card--featured .ff3-card-category { color: #ffb89f; }
.ff3-tool-card h3 { margin: 0 0 .55rem !important; font-size: clamp(1.28rem, 1.55vw, 1.65rem) !important; line-height: .98 !important; }
.ff3-tool-card--featured h3 { color: #fff !important; }
.ff3-tool-card > p:not(.ff3-card-number):not(.ff3-card-category):not(.ff3-card-link) { margin: 0 !important; color: var(--ff-muted); font-size: .67rem; line-height: 1.5; }
.ff3-tool-card--featured > p:not(.ff3-card-number):not(.ff3-card-category):not(.ff3-card-link) { color: #d7e4e1; }
.ff3-card-link { margin: auto 0 0 !important; padding-top: .75rem; }
.ff3-card-link a { color: var(--ff-brand); font-size: .69rem; font-weight: 900; text-decoration: none; }
.ff3-tool-card--featured .ff3-card-link a { color: #fff; }

/* Browse by project */
.ff3-projects { border-bottom: 1px solid var(--ff-border); background: var(--ff-cream); }
.ff3-projects__grid {
  display: grid !important;
  grid-template-columns: minmax(230px, .58fr) minmax(0, 2.42fr);
  gap: clamp(1.5rem, 2.5vw, 2.7rem);
  padding-block: .75rem;
}
.ff3-projects__intro { align-self: center; padding-right: .8rem; }
.ff3-projects__intro h2 { max-width: 8ch !important; margin: 0 0 .6rem !important; font-size: clamp(1.9rem, 2.55vw, 2.7rem) !important; line-height: .98 !important; }
.ff3-projects__intro > p:not(.ff3-kicker) { max-width: 30ch; margin: 0 !important; color: var(--ff-muted); font-size: .68rem; line-height: 1.5; }
.ff3-project-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ff-border); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.25); }
.ff3-project-card {
  position: relative;
  min-height: 112px;
  display: grid !important;
  grid-template-columns: 42px minmax(0,1fr) 34px;
  grid-template-rows: auto auto;
  column-gap: .7rem;
  align-content: center;
  padding: .75rem .85rem;
  border-right: 1px solid var(--ff-border);
}
.ff3-project-card:last-child { border-right: 0; }
.ff3-project-index { position: absolute; top: .55rem; left: .85rem; margin: 0 !important; color: var(--ff-accent); font-size: .55rem; font-weight: 900; letter-spacing: .08em; }
.ff3-project-icon { grid-column: 1; grid-row: 1 / 3; width: 38px; align-self: center; opacity: .6; }
.ff3-project-card h3 { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 .22rem !important; font-size: 1.18rem !important; line-height: 1 !important; }
.ff3-project-card > p:not(.ff3-project-index):not(.ff3-project-arrow) { grid-column: 2; grid-row: 2; margin: 0 !important; color: var(--ff-muted); font-size: .57rem; line-height: 1.45; }
.ff3-project-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; justify-self: end; margin: 0 !important; }
.ff3-project-arrow a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(24,79,75,.17); border-radius: 50%; color: var(--ff-brand); font-size: .75rem; text-decoration: none; }
.ff3-project-arrow a:hover { background: var(--ff-brand); color: #fff; }

/* Confidence strip */
.ff3-confidence { background: linear-gradient(115deg, var(--ff-brand-dark), #0c4c47); color: #fff; }
.ff3-confidence__grid {
  display: grid !important;
  grid-template-columns: minmax(310px, .88fr) minmax(0, 2.12fr);
  gap: clamp(2.4rem, 4vw, 4.2rem);
  align-items: center;
  padding-block: 1.5rem 1.65rem;
}
.ff3-confidence__intro h2 { max-width: 13ch !important; margin: 0 0 .55rem !important; color: #fff !important; font-size: clamp(1.95rem, 2.55vw, 2.75rem) !important; line-height: 1 !important; }
.ff3-confidence__intro > p:not(.ff3-kicker) { max-width: 46ch; margin: 0 !important; color: #bfd1cd; font-size: .68rem; line-height: 1.5; }
.ff3-confidence__points { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.ff3-point { min-height: 132px; display: flex !important; flex-direction: column; justify-content: center; padding: .8rem 1.2rem; border-right: 1px solid rgba(255,255,255,.18); }
.ff3-point:last-child { border-right: 0; }
.ff3-point__index { margin: 0 0 1.1rem !important; color: #ffb89f !important; font-size: .59rem !important; font-weight: 900; letter-spacing: .1em; }
.ff3-point h3 { margin: 0 0 .4rem !important; color: #fff !important; font-size: 1.2rem !important; line-height: 1 !important; }
.ff3-point > p:not(.ff3-point__index) { max-width: 23ch; margin: 0 !important; color: #b9cfca; font-size: .63rem; line-height: 1.45; }

@media (max-width: 1240px) {
  .ff3-hero__grid { grid-template-columns: minmax(360px, .82fr) minmax(540px, 1.28fr); }
  .ff3-result { left: .5rem; top: 50%; }
  .ff3-popular__grid, .ff3-projects__grid { grid-template-columns: 220px minmax(0,1fr); }
  .ff3-tool-card { min-height: 254px; }
}

@media (max-width: 1080px) {
  .fabric-formula-home-v3 .site-header__actions { display: none; }
  .ff3-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .ff3-hero__copy { max-width: 760px; padding-block: 3.5rem 2.2rem; }
  .ff3-hero__title { font-size: clamp(3.5rem, 8vw, 5rem) !important; }
  .ff3-hero__visual { min-height: 430px; margin-right: 0 !important; }
  .ff3-hero__image { border-radius: 70px 22px 22px 22px; }
  .ff3-result { left: 1rem; top: auto; bottom: 1rem; transform: none; }
  .ff3-popular__grid, .ff3-projects__grid, .ff3-confidence__grid { grid-template-columns: 1fr; }
  .ff3-section-intro, .ff3-projects__intro { max-width: 600px; padding-block: 1.1rem .2rem; }
  .ff3-section-intro h2, .ff3-projects__intro h2 { max-width: 14ch !important; }
  .ff3-card-grid, .ff3-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff3-project-card:nth-child(2) { border-right: 0; }
  .ff3-project-card:nth-child(-n+2) { border-bottom: 1px solid var(--ff-border); }
  .ff3-confidence__intro { max-width: 640px; }
}

@media (max-width: 900px) {
  .fabric-formula-home-v3 .site-header__inner { width: min(100% - 2rem, var(--ff3-wide)); }
  .fabric-formula-home-v3 .primary-navigation { margin-left: 0; }
  .ff3-shell { width: min(100% - 2rem, var(--ff3-wide)) !important; }
}

@media (max-width: 680px) {
  .ff3-shell { width: min(100% - 1.25rem, var(--ff3-wide)) !important; }
  .ff3-hero__copy { padding-block: 2.8rem 1.8rem; }
  .ff3-hero__title { font-size: clamp(3rem, 15vw, 4.2rem) !important; }
  .ff3-hero__lead { font-size: .98rem; }
  .ff3-hero__buttons { display: grid !important; }
  .ff3-hero__buttons .wp-block-button, .ff3-hero__buttons .wp-block-button__link { width: 100%; }
  .ff3-proof { display: grid !important; gap: .5rem !important; }
  .ff3-hero__visual { min-height: 345px; }
  .ff3-hero__image { border-radius: 44px 16px 16px 16px; }
  .ff3-hero__image img { min-height: 345px; }
  .ff3-result { left: .65rem; right: .65rem; width: auto; }
  .ff3-popular__grid, .ff3-projects__grid { padding-block: 2.5rem; }
  .ff3-card-grid, .ff3-project-grid, .ff3-confidence__points { grid-template-columns: 1fr; }
  .ff3-tool-card { min-height: 235px; }
  .ff3-project-card, .ff3-project-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--ff-border); }
  .ff3-project-card:last-child { border-bottom: 0; }
  .ff3-confidence__grid { padding-block: 3rem; }
  .ff3-point { min-height: 120px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .ff3-point:last-child { border-bottom: 0; }
}
.ff3-result__value { font-size: 2.15rem !important; }


/* =========================================================
   Fabric Formula v3.1 repair layer
   Theme-asset fallbacks prevent saved Gutenberg URLs from
   breaking hero/card artwork after a theme replacement.
   ========================================================= */

/* Hero photo fallback. The Gutenberg image stays editable and sits above it. */
.ff3-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 142px 0 0 0;
  background: #d9ddd6 url('../images/quilt-fabric-hero.webp') 60% 52% / cover no-repeat;
}
.ff3-hero__image { z-index: 1; }
.ff3-result { z-index: 5; }

/* Always provide the faint editorial illustration in every calculator card. */
.ff3-tool-card::before {
  content: "";
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 62px;
  height: 62px;
  opacity: .24;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.ff3-tool-card:nth-child(1)::before { background-image: url('../icons/quilt.svg'); }
.ff3-tool-card:nth-child(2)::before { background-image: url('../icons/thread.svg'); }
.ff3-tool-card:nth-child(3)::before { background-image: url('../icons/cushion.svg'); }
.ff3-tool-card:nth-child(4)::before { background-image: url('../icons/curtain.svg'); }
.ff3-tool-card--featured::before { filter: brightness(0) invert(1); opacity: .22; }
.ff3-card-icon { display: none !important; }

/* The reference composition keeps four tools on one row on common desktops. */
@media (min-width: 1180px) {
  .ff3-popular__grid { grid-template-columns: minmax(210px, .55fr) minmax(0, 2.45fr); }
  .ff3-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .ff3-tool-card { min-width: 0; }
}


/* v3.5 Quilt Backing editorial content */
.qbc-editor-content .qbc-answer-box {
  margin: 0 0 2.4rem;
  padding: clamp(1.35rem,2.4vw,2rem);
  border: 1px solid rgba(24,79,75,.16);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ff-soft-green), #fff 78%);
}
.qbc-editor-content .qbc-answer-box h2 { margin-top: 0; }
.qbc-editor-content .qbc-tip,
.qbc-editor-content .qbc-table-note {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--ff-accent);
  border-radius: 0 12px 12px 0;
  background: var(--ff-cream);
}
.qbc-editor-content .qbc-yardage-chart { margin-block: 1.2rem 1rem; }
.qbc-editor-content .wp-block-details {
  margin: 0 0 .7rem;
  padding: .9rem 1rem;
  border: 1px solid var(--ff-border);
  border-radius: 12px;
  background: #fff;
}
.qbc-editor-content .wp-block-details summary { cursor: pointer; color: var(--ff-brand-dark); font-weight: 800; }
.qbc-editor-content .wp-block-details p { margin-bottom: .15rem; }

/* v3.6 Quilt Binding Calculator */
.qbind-app { --qbc-head: #164f4b; }
.qbind-diagram {
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(4, minmax(22px, 1fr));
  gap: 5px;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid #d7ccb8;
  background: #f8f2e6;
  box-shadow: inset 0 0 0 7px #fff;
}
.qbind-diagram__strip {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: .35rem;
  border: 1px solid rgba(24,79,75,.5);
  background: repeating-linear-gradient(45deg, rgba(108,141,123,.15) 0 7px, rgba(255,255,255,.55) 7px 14px);
  color: var(--ff-brand);
  font-size: .62rem;
  font-weight: 900;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.qbind-diagram > small { align-self: center; color: var(--ff-muted); font-size: .65rem; }
.qbind-diagram.is-bias { display: grid; grid-template-columns: 1fr; place-items: center; }
.qbind-diagram__square {
  aspect-ratio: 1;
  width: min(155px, 80%);
  display: grid;
  place-items: center;
  align-content: center;
  padding: .75rem;
  transform: rotate(4deg);
  border: 2px solid var(--ff-brand);
  background: repeating-linear-gradient(45deg, rgba(185,79,50,.12) 0 8px, rgba(255,255,255,.72) 8px 16px);
  color: var(--ff-brand-dark);
  text-align: center;
}
.qbind-diagram__square span, .qbind-diagram__square small { transform: rotate(-4deg); }
.qbind-diagram__square span { font-weight: 900; }
.qbind-diagram__square small { margin-top: .25rem; color: var(--ff-muted); font-size: .6rem; }
.qbind-editor-content .qbind-strip-table { margin-block: 1.2rem 1rem; }
.qbind-editor-content .qbind-accuracy-note {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--ff-brand);
  border-radius: 0 12px 12px 0;
  background: var(--ff-soft-green);
}
@media (max-width: 680px) {
  .qbind-diagram { min-height: 165px; }
}


/* v3.6.1 — calculators wait for explicit Calculate button */
.qbc-app.is-awaiting-calculation .qbc-purchase strong,
.qbc-app.is-awaiting-calculation .qbc-metrics strong,
.qbc-app.is-awaiting-calculation .qbc-yardage-row strong,
.qbc-app.is-awaiting-calculation .qbc-layout-option strong,
.qbc-app.is-awaiting-calculation .qbc-summary-list dd { color: var(--ff-muted); }
.qbc-app.is-awaiting-calculation .qbc-purchase small { color: var(--ff-accent); font-weight: 800; }
.qbc-diagram__placeholder { display: grid; place-items: center; min-height: 110px; padding: 1rem; color: var(--ff-muted); text-align: center; font-size: .86rem; }

/* Quilt Border Calculator */
.qborder-app { --qbc-head: #164f4b; }
.qborder-config { display: grid; gap: .7rem; padding-inline: 1.1rem; }
.qborder-row { border: 1px solid #dde1dc; border-radius: 11px; background: #fafbf8; overflow: hidden; }
.qborder-row[hidden] { display: none !important; }
.qborder-row__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .62rem .75rem; border-bottom: 1px solid #e6e8e3; background: #f1f5f1; }
.qborder-row__head strong { color: var(--ff-brand); font-size: .78rem; }
.qborder-row__head span { color: var(--ff-muted); font-size: .65rem; }
.qborder-row__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: .72rem; }
.qborder-result-table-wrap { margin: 1rem; overflow-x: auto; border: 1px solid #dedfd9; border-radius: 12px; background: #fff; }
.qborder-result-table { width: 100%; min-width: 570px; border-collapse: collapse; }
.qborder-result-table th, .qborder-result-table td { padding: .7rem .65rem; border-bottom: 1px solid #e7e7e2; text-align: left; font-size: .7rem; white-space: nowrap; }
.qborder-result-table th { color: var(--ff-muted); background: #f7f8f5; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.qborder-result-table td { color: var(--ff-ink); }
.qborder-result-table tbody tr:last-child td { border-bottom: 0; }
.qborder-result-table td:first-child strong { color: var(--ff-brand); }
.qborder-diagram { min-height: 210px; display: grid; place-items: center; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; }
.qborder-diagram__frame { position: relative; width: min(100%, 250px); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.qborder-diagram__center { position: absolute; inset: 22%; display: grid; place-items: center; z-index: 10; border: 1px solid rgba(24,79,75,.45); background: #fff; color: var(--ff-brand); font-size: .68rem; font-weight: 850; text-align: center; }
.qborder-diagram__ring { position: absolute; inset: calc((4 - var(--ring)) * 4.5%); border: 9px solid rgba(108,141,123,.22); }
.qborder-diagram__ring:nth-of-type(3) { border-color: rgba(185,79,50,.22); }
.qborder-diagram__ring:nth-of-type(4) { border-color: rgba(24,79,75,.22); }
.qborder-diagram__ring:nth-of-type(5) { border-color: rgba(185,79,50,.34); }
.qborder-diagram__ring span { position: absolute; right: -2px; bottom: -19px; padding: .15rem .3rem; border-radius: 4px; background: #fff; color: var(--ff-ink); font-size: .56rem; font-weight: 800; }
.qborder-diagram__ring small { margin-left: .25rem; color: var(--ff-muted); font-size: .52rem; font-weight: 600; }
.qborder-editor-content .qborder-yardage-chart { margin-block: 1.2rem 1rem; }
.qborder-editor-content .qborder-accuracy-note { padding: 1rem 1.1rem; border-left: 4px solid var(--ff-accent); background: var(--ff-soft-orange); }

@media (max-width: 680px) {
  .qborder-row__fields { grid-template-columns: 1fr; }
  .qborder-result-table-wrap { margin-inline: .65rem; }
  .qborder-diagram { min-height: 175px; }
}

/* v3.8 Cushion Fabric Calculator */
.cushion-app { --qbc-head: #164f4b; }
.cushion-page-hero .qbc-page-hero__media img { object-position: 62% center; }
.cushion-piece-table-wrap { margin: 1rem; overflow-x: auto; border: 1px solid #dedfd9; border-radius: 12px; background: #fff; }
.cushion-piece-table { width: 100%; min-width: 460px; border-collapse: collapse; }
.cushion-piece-table th, .cushion-piece-table td { padding: .72rem .7rem; border-bottom: 1px solid #e7e7e2; text-align: left; font-size: .72rem; }
.cushion-piece-table th { color: var(--ff-muted); background: #f7f8f5; font-size: .65rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.cushion-piece-table tbody tr:last-child td { border-bottom: 0; }
.cushion-piece-table td strong { color: var(--ff-brand); }
.cushion-diagram { min-height: 205px; display: grid; place-items: center; gap: .7rem; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; text-align: center; }
.cushion-diagram__shape { position: relative; width: min(220px, 80%); aspect-ratio: 1.55 / 1; display: grid; place-items: center; transform: perspective(500px) rotateX(8deg) rotateZ(-2deg); border: 2px solid var(--ff-brand); border-radius: 18px; background: linear-gradient(135deg, rgba(108,141,123,.18), rgba(255,255,255,.9)); color: var(--ff-brand-dark); box-shadow: 10px 12px 0 rgba(185,79,50,.12); }
.cushion-diagram__top { font-family: var(--ff-serif); font-size: 1rem; font-weight: 800; }
.cushion-diagram__boxing { position: absolute; left: 12%; right: 12%; bottom: -20px; padding: .27rem .45rem; border: 1px solid rgba(24,79,75,.35); border-radius: 999px; background: #fff; color: var(--ff-muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cushion-diagram > small { color: var(--ff-muted); font-size: .66rem; line-height: 1.45; }
.cushion-editor-content .cushion-yardage-chart { margin-block: 1.2rem 1rem; }
.cushion-editor-content .cushion-accuracy-note { padding: 1rem 1.1rem; border-left: 4px solid var(--ff-accent); border-radius: 0 12px 12px 0; background: var(--ff-soft-orange); }
.cushion-editor-content .cushion-answer-box { background: linear-gradient(135deg, #eef4f1, #fff 76%); }
@media (max-width: 680px) {
  .cushion-piece-table-wrap { margin-inline: .65rem; }
  .cushion-diagram { min-height: 175px; }
}


/* Quilt Block Calculator — v3.9 */
.block-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .45rem;
  margin: 0 0 1.25rem;
  padding: .35rem;
  border: 1px solid var(--ff-border);
  border-radius: 14px;
  background: #f4f1eb;
}
.block-mode {
  min-height: 42px;
  padding: .62rem .75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ff-muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.block-mode.is-active { background: #fff; color: var(--ff-brand); box-shadow: 0 1px 4px rgba(23,49,47,.09); }
.block-result-hero .qbc-result-hero__image img { object-position: 50% 54%; }
.block-result-row > div { min-width: 0; }
.block-result-row strong { overflow-wrap: anywhere; }
.block-layout-options { padding: 1rem 1.15rem 1.2rem; border-top: 1px solid var(--ff-border); }
.block-layout-options h3 { margin: 0 0 .75rem; font-size: 1.05rem; }
.block-layout-table-wrap { overflow-x: auto; }
.block-layout-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.block-layout-table th, .block-layout-table td { padding: .65rem .55rem; border-bottom: 1px solid var(--ff-border); text-align: left; white-space: nowrap; }
.block-layout-table th { color: var(--ff-muted); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.block-grid-preview { display: grid; place-items: center; gap: .7rem; min-height: 250px; padding: 1rem; border: 1px solid var(--ff-border); border-radius: 18px; background: var(--ff-cream); }
.block-grid-preview small { color: var(--ff-muted); font-weight: 700; text-align: center; }
.block-grid-mini {
  display: grid;
  grid-template-columns: repeat(var(--block-cols), minmax(10px, 1fr));
  grid-template-rows: repeat(var(--block-rows), minmax(10px, 1fr));
  gap: 3px;
  width: min(100%, 360px);
  aspect-ratio: var(--block-cols) / var(--block-rows);
  max-height: 210px;
}
.block-grid-mini span { min-width: 0; min-height: 0; border: 1px solid rgba(24,79,75,.28); border-radius: 3px; background: rgba(108,141,123,.17); }
.block-grid-mini span:nth-child(3n+2) { background: rgba(185,79,50,.11); }
.quilt-block-answer-box { border-left: 4px solid var(--ff-brand); }
@media (max-width: 680px) {
  .block-mode-toggle { grid-template-columns: 1fr; }
  .block-grid-preview { min-height: 210px; }
}



/* Quilt Sashing Calculator — v4.0 */
.qsash-app { --qbc-head: #164f4b; }
.qsash-result-hero .qbc-result-hero__image img { object-position: 52% 52%; }
.qsash-yardage-row > div { min-width: 0; }
.qsash-yardage-row strong { overflow-wrap: anywhere; }
.qsash-cut-table-wrap { margin: 1rem; overflow-x: auto; border: 1px solid #dedfd9; border-radius: 12px; background: #fff; }
.qsash-cut-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.qsash-cut-table th, .qsash-cut-table td { padding: .7rem .65rem; border-bottom: 1px solid #e7e7e2; text-align: left; font-size: .7rem; white-space: nowrap; }
.qsash-cut-table th { color: var(--ff-muted); background: #f7f8f5; font-size: .64rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.qsash-cut-table tbody tr:last-child td { border-bottom: 0; }
.qsash-cut-table td strong { color: var(--ff-brand); }
.qsash-diagram { min-height: 235px; display: grid; place-items: center; gap: .75rem; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; }
.qsash-diagram > small { color: var(--ff-muted); font-size: .66rem; line-height: 1.45; text-align: center; }
.qsash-mini-grid { width: min(100%, 280px); aspect-ratio: 1.15 / 1; display: grid; padding: 0; border: 1px solid rgba(24,79,75,.35); background: rgba(108,141,123,.24); }
.qsash-mini-grid.has-outer { border: 9px solid rgba(24,79,75,.42); box-shadow: 0 0 0 3px rgba(185,79,50,.16); }
.qsash-mini-grid span { min-width: 0; min-height: 0; }
.qsash-mini-grid .is-block { border: 1px solid rgba(24,79,75,.23); background: linear-gradient(135deg, #fff, #f2efe6); }
.qsash-mini-grid .is-sash { background: rgba(108,141,123,.72); }
.qsash-mini-grid .is-corner { background: rgba(185,79,50,.82); }
.qsash-editor-content .qsash-yardage-chart { margin-block: 1.2rem 1rem; }
.qsash-editor-content .qsash-answer-box { border-left: 4px solid var(--ff-brand); background: linear-gradient(135deg, var(--ff-soft-green), #fff 76%); }
@media (max-width: 680px) {
  .qsash-cut-table-wrap { margin-inline: .65rem; }
  .qsash-diagram { min-height: 190px; }
  .qsash-mini-grid { width: min(100%, 235px); }
}



/* Upholstery Yardage Chart — v4.1 */
.upholstery-yardage-page { background: #fff; }
.upholstery-yardage-hero__media img { object-position: 58% center; transform: scale(1.02); }
.upyard-adjuster-zone { padding: 2rem 0 2.4rem; background: linear-gradient(180deg, #fff, #faf7f1); border-bottom: 1px solid var(--ff-border); }
.upyard-tool-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 1rem; align-items: stretch; }
.upyard-input-panel, .upyard-result-panel { min-width: 0; }
.upyard-primary-result { margin: 1rem; padding: 1.15rem 1.2rem; border: 1px solid rgba(24,79,75,.15); border-radius: 14px; background: linear-gradient(135deg, var(--ff-soft-green), #fff 75%); }
.upyard-primary-result > span { display: block; color: var(--ff-muted); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.upyard-primary-result strong { display: block; margin: .25rem 0 .3rem; color: var(--ff-brand); font-family: var(--ff-serif); font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1; }
.upyard-primary-result small { color: var(--ff-muted); font-size: .75rem; line-height: 1.45; }
.upyard-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
.upyard-adjustment-list { margin: 1rem; padding: 1rem 1.05rem; border-top: 1px solid var(--ff-border); }
.upyard-adjustment-list h3 { margin: 0 0 .65rem; font-size: 1rem; }
.upyard-adjustment-list ul { margin: 0; padding-left: 1.2rem; color: var(--ff-muted); font-size: .75rem; line-height: 1.55; }
.upyard-adjustment-list li + li { margin-top: .25rem; }
.upyard-caution { margin: 0 1rem 1rem; padding: .9rem 1rem; border-left: 4px solid var(--ff-accent); border-radius: 0 10px 10px 0; background: var(--ff-cream); }
.upyard-caution strong { color: var(--ff-brand-dark); font-size: .78rem; }
.upyard-caution p { margin: .25rem 0 0; color: var(--ff-muted); font-size: .7rem; line-height: 1.5; }
.upyard-benefits { border-bottom: 1px solid var(--ff-border); background: #fff; }
.upyard-editor-content .upyard-answer-box { margin-bottom: 2rem; padding: 1.25rem 1.35rem; border-left: 4px solid var(--ff-brand); border-radius: 0 14px 14px 0; background: linear-gradient(135deg, var(--ff-soft-green), #fff 78%); }
.upyard-editor-content .upyard-answer-box h2 { margin-top: 0; }
.upyard-editor-content .upyard-main-table,
.upyard-editor-content .upyard-adjustment-table { margin-block: 1rem 2rem; }
.upyard-editor-content .wp-block-table { overflow-x: auto; }
.upyard-editor-content table { width: 100%; min-width: 720px; border-collapse: collapse; }
.upyard-editor-content th, .upyard-editor-content td { padding: .75rem .7rem; border-bottom: 1px solid var(--ff-border); text-align: left; vertical-align: top; }
.upyard-editor-content th { background: var(--ff-cream); color: var(--ff-brand-dark); font-size: .72rem; letter-spacing: .025em; }
.upyard-editor-content td { color: #405451; font-size: .78rem; line-height: 1.45; }
.upyard-editor-content td:first-child { color: var(--ff-ink); font-weight: 750; }
.upyard-chart-note { margin: -.65rem 0 2.3rem; padding: .95rem 1.05rem; border-left: 4px solid var(--ff-accent); background: var(--ff-soft-orange); }
.upyard-editor-content .wp-block-details { margin: 0 0 .7rem; padding: .9rem 1rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.upyard-editor-content .wp-block-details summary { cursor: pointer; color: var(--ff-brand-dark); font-weight: 800; }
.upyard-editor-content .wp-block-details p { margin-bottom: .15rem; }
@media (max-width: 1050px) {
  .upyard-tool-grid { grid-template-columns: 1fr; }
  .upyard-result-panel { max-width: none; }
}
@media (max-width: 680px) {
  .upyard-adjuster-zone { padding-top: 1rem; }
  .upyard-metrics { grid-template-columns: 1fr 1fr; }
  .upyard-primary-result { margin-inline: .65rem; }
  .upyard-adjustment-list, .upyard-caution { margin-inline: .65rem; }
  .upyard-editor-content table { min-width: 650px; }
}



/* Upholstery Fabric Calculator — v4.2 */
.upholstery-fabric-hero__media img { object-position: 58% center; transform: scale(1.02); }
.upcalc-mode-switch { display: inline-flex; margin: 0 0 1rem; padding: .28rem; border: 1px solid var(--ff-border); border-radius: 999px; background: #fff; box-shadow: var(--ff-shadow-soft); }
.upcalc-mode { min-height: 40px; padding: .55rem .9rem; border: 0; border-radius: 999px; background: transparent; color: var(--ff-muted); font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.upcalc-mode.is-active { background: var(--ff-brand); color: #fff; }
.upcalc-panel-intro { margin: .25rem 1rem .8rem; padding: .8rem .9rem; border-left: 4px solid var(--ff-accent); border-radius: 0 10px 10px 0; background: var(--ff-cream); }
.upcalc-panel-intro p { margin: 0; color: var(--ff-muted); font-size: .72rem; line-height: 1.5; }
.upcalc-panel-table-wrap { margin: .75rem 1rem; overflow-x: auto; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.upcalc-panel-table { width: 100%; min-width: 630px; border-collapse: collapse; }
.upcalc-panel-table th, .upcalc-panel-table td { padding: .55rem .45rem; border-bottom: 1px solid #ecebe6; text-align: left; }
.upcalc-panel-table th { background: #f7f8f5; color: var(--ff-muted); font-size: .61rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.upcalc-panel-table td:first-child { width: 29%; }
.upcalc-panel-table input[type="text"], .upcalc-panel-table input[type="number"] { width: 100%; min-height: 37px; padding: .45rem .5rem; border: 1px solid #d7dad5; border-radius: 8px; font: inherit; font-size: .7rem; }
.upcalc-panel-table input[type="checkbox"] { width: 18px; height: 18px; }
.upcalc-remove-panel { width: 32px; height: 32px; border: 1px solid var(--ff-border); border-radius: 50%; background: #fff; color: var(--ff-accent); font-size: 1rem; cursor: pointer; }
.upcalc-add-panel { margin: 0 1rem 1rem; padding: .58rem .85rem; border: 1px solid var(--ff-brand); border-radius: 999px; background: #fff; color: var(--ff-brand); font-size: .7rem; font-weight: 850; cursor: pointer; }
.upcalc-result-hero .qbc-result-hero__image img { object-position: 58% center; }
.upcalc-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.upcalc-breakdown { margin: 1rem; border-top: 1px solid var(--ff-border); padding-top: .8rem; }
.upcalc-breakdown h3 { margin: 0 0 .65rem; font-size: 1rem; }
.upcalc-breakdown__rows { display: grid; gap: .35rem; }
.upcalc-breakdown__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .55rem; border-radius: 8px; background: #f8f8f5; }
.upcalc-breakdown__rows span { color: var(--ff-muted); font-size: .68rem; }
.upcalc-breakdown__rows strong { color: var(--ff-ink); font-size: .68rem; text-align: right; }
.upcalc-warning { margin: 0 1rem 1rem; padding: .85rem .95rem; border-left: 4px solid var(--ff-accent); border-radius: 0 10px 10px 0; background: var(--ff-cream); }
.upcalc-warning strong { color: var(--ff-brand-dark); font-size: .76rem; }
.upcalc-warning p { margin: .28rem 0 0; color: var(--ff-muted); font-size: .69rem; line-height: 1.5; }
.upcalc-layout { min-height: 225px; display: grid; place-items: center; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; overflow: hidden; }
.upcalc-furniture-visual { width: 100%; display: grid; place-items: center; gap: .45rem; color: var(--ff-muted); text-align: center; }
.upcalc-furniture-visual > strong { color: var(--ff-brand-dark); font-family: var(--ff-serif); font-size: 1rem; }
.upcalc-furniture-visual > small { font-size: .65rem; }
.upcalc-sofa-shape { --upcalc-scale: 1; position: relative; width: min(300px, 82%); height: 145px; transform: scale(var(--upcalc-scale)); transform-origin: center; }
.upcalc-sofa-shape .back { position: absolute; left: 16%; right: 16%; top: 12%; height: 64%; border: 2px solid var(--ff-brand); border-radius: 18px 18px 6px 6px; background: rgba(108,141,123,.24); }
.upcalc-sofa-shape .seat { position: absolute; left: 13%; right: 13%; bottom: 9%; height: 35%; border: 2px solid var(--ff-brand); border-radius: 8px; background: #fff; }
.upcalc-sofa-shape .arm { position: absolute; bottom: 8%; width: 17%; height: 52%; border: 2px solid var(--ff-brand); border-radius: 13px; background: rgba(185,79,50,.18); }
.upcalc-sofa-shape .arm-a { left: 2%; }
.upcalc-sofa-shape .arm-b { right: 2%; }
.upcalc-roll { width: min(100%, 480px); display: grid; gap: .38rem; }
.upcalc-roll__head { padding: .42rem .55rem; border-radius: 8px 8px 0 0; background: var(--ff-brand); color: #fff; font-size: .66rem; font-weight: 800; text-align: center; }
.upcalc-roll-row { display: grid; grid-template-columns: 62px 1fr; align-items: stretch; gap: .35rem; }
.upcalc-roll-row > b { display: grid; place-items: center; padding: .25rem; border-radius: 6px; background: rgba(185,79,50,.16); color: var(--ff-accent); font-size: .59rem; }
.upcalc-roll-row > div { display: flex; min-height: 31px; border: 1px solid rgba(24,79,75,.22); background: #fff; }
.upcalc-roll-row span { display: grid; place-items: center; min-width: 0; padding: .2rem; border-right: 1px solid rgba(24,79,75,.22); overflow: hidden; color: var(--ff-brand-dark); background: rgba(108,141,123,.22); font-size: .52rem; white-space: nowrap; text-overflow: ellipsis; }
.upcalc-roll > small { color: var(--ff-muted); font-size: .62rem; text-align: center; }
.upcalc-editor-content .upcalc-answer-box { background: linear-gradient(135deg, var(--ff-soft-green), #fff 76%); }
.upcalc-editor-content .upcalc-reference-table { margin-block: 1rem 1.1rem; overflow-x: auto; }
.upcalc-editor-content .upcalc-reference-table table { min-width: 680px; }
.upcalc-editor-content .wp-block-details { margin: 0 0 .7rem; padding: .9rem 1rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.upcalc-editor-content .wp-block-details summary { cursor: pointer; color: var(--ff-brand-dark); font-weight: 800; }
@media (max-width: 680px) {
  .upcalc-mode-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .upcalc-mode { border-radius: 10px; }
  .upcalc-panel-table-wrap { margin-inline: .65rem; }
  .upcalc-add-panel { margin-left: .65rem; }
  .upcalc-breakdown, .upcalc-warning { margin-inline: .65rem; }
  .upcalc-layout { min-height: 190px; }
  .upcalc-roll-row { grid-template-columns: 52px 1fr; }
}


/* Mobile content tables — v4.2.1 */
@media (max-width: 680px) {
  .entry-content .wp-block-table.ff-responsive-table {
    width: 100%;
    margin-inline: 0;
    overflow: visible !important;
  }
  .entry-content .ff-responsive-table table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: 0;
  }
  .entry-content .ff-responsive-table thead {
    display: none;
  }
  .entry-content .ff-responsive-table tbody {
    display: grid;
    width: 100%;
    gap: .8rem;
  }
  .entry-content .ff-responsive-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ff-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(23,49,47,.05);
  }
  .entry-content .ff-responsive-table tbody td {
    display: block;
    min-width: 0;
    padding: .68rem .72rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ff-border) !important;
    overflow-wrap: anywhere;
  }
  .entry-content .ff-responsive-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .2rem;
    color: var(--ff-muted);
    font-size: .59rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .045em;
    text-transform: uppercase;
  }
  .entry-content .ff-responsive-table tbody td:first-child {
    grid-column: 1 / -1;
    padding-block: .75rem !important;
    background: var(--ff-cream);
    color: var(--ff-brand-dark);
    font-size: .82rem;
    font-weight: 850;
  }
  .entry-content .ff-responsive-table tbody td:first-child::before {
    display: none;
  }
  .entry-content .ff-responsive-table tbody td:nth-child(2):last-child,
  .entry-content .ff-responsive-table tbody td[data-label="Typical reason for range"],
  .entry-content .ff-responsive-table tbody td[data-label="Planning adjustment used by the tool"] {
    grid-column: 1 / -1;
  }
  .entry-content .ff-responsive-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  /* Measured Panels becomes a vertical form card instead of a scrolling table. */
  .upcalc-panel-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .upcalc-panel-table,
  .upcalc-panel-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .upcalc-panel-table thead {
    display: none;
  }
  .upcalc-panel-table tbody {
    display: grid;
    gap: .75rem;
  }
  .upcalc-panel-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .5rem;
    padding: .7rem;
    border: 1px solid var(--ff-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(23,49,47,.05);
  }
  .upcalc-panel-table tbody td {
    display: flex;
    min-width: 0;
    padding: 0;
    border: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .upcalc-panel-table tbody td::before {
    display: block;
    margin-bottom: .24rem;
    color: var(--ff-muted);
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .upcalc-panel-table tbody td:nth-child(1) {
    grid-column: 1 / -1;
    padding-right: 2.65rem;
  }
  .upcalc-panel-table tbody td:nth-child(1)::before { content: 'Panel'; }
  .upcalc-panel-table tbody td:nth-child(2)::before { content: 'Width'; }
  .upcalc-panel-table tbody td:nth-child(3)::before { content: 'Length'; }
  .upcalc-panel-table tbody td:nth-child(4)::before { content: 'Quantity'; }
  .upcalc-panel-table tbody td:nth-child(5)::before { content: 'Rotate'; }
  .upcalc-panel-table tbody td:nth-child(5) {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .upcalc-panel-table tbody td:nth-child(6) {
    position: absolute;
    top: .68rem;
    right: .68rem;
  }
  .upcalc-panel-table tbody td:nth-child(6)::before { display: none; }
  .upcalc-panel-table input[type="text"],
  .upcalc-panel-table input[type="number"] {
    min-width: 0;
    width: 100%;
  }
}



/* Curtain Fabric Calculator — v4.3 */
.curtain-fabric-hero__media img { object-position: 58% center; transform: scale(1.02); }
.curtain-result-hero .qbc-result-hero__image img { object-position: 58% center; }
.curtain-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
.curtain-yardage-row > div { min-width: 0; }
.curtain-yardage-row strong { overflow-wrap: anywhere; }
.curtain-breakdown { margin: 1rem; padding-top: .8rem; border-top: 1px solid var(--ff-border); }
.curtain-breakdown h3 { margin: 0 0 .65rem; font-size: 1rem; }
.curtain-breakdown > div { display: grid; gap: .35rem; }
.curtain-breakdown > div > div { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem .55rem; border-radius: 8px; background: #f8f8f5; }
.curtain-breakdown span { color: var(--ff-muted); font-size: .68rem; }
.curtain-breakdown strong { color: var(--ff-ink); font-size: .68rem; text-align: right; }
.curtain-diagram { min-height: 225px; display: grid; place-items: center; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; overflow: hidden; }
.curtain-roll-visual { width: min(100%, 470px); display: grid; gap: .6rem; }
.curtain-roll-visual__top { padding: .5rem .7rem; border-radius: 8px; background: var(--ff-brand); color: #fff; font-size: .68rem; font-weight: 850; text-align: center; }
.curtain-roll-visual__drops { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px,1fr)); gap: .35rem; align-items: stretch; }
.curtain-drop { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: .45rem .25rem; border: 1px solid rgba(24,79,75,.32); border-radius: 6px; background: linear-gradient(180deg, rgba(108,141,123,.25), #fff); color: var(--ff-brand-dark); }
.curtain-drop b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(185,79,50,.16); color: var(--ff-accent); font-size: .65rem; }
.curtain-drop small { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--ff-muted); font-size: .53rem; }
.curtain-drop.is-more { justify-content: center; color: var(--ff-muted); font-size: .7rem; font-weight: 800; }
.curtain-roll-visual > small { color: var(--ff-muted); font-size: .64rem; line-height: 1.45; text-align: center; }
.curtain-editor-content .curtain-answer-box { background: linear-gradient(135deg, var(--ff-soft-green), #fff 76%); }
.curtain-editor-content .curtain-fullness-table,
.curtain-editor-content .curtain-repeat-table { margin-block: 1rem 1.2rem; }
.curtain-editor-content .wp-block-details { margin: 0 0 .7rem; padding: .9rem 1rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.curtain-editor-content .wp-block-details summary { cursor: pointer; color: var(--ff-brand-dark); font-weight: 800; }
@media (max-width: 680px) {
  .curtain-breakdown { margin-inline: .65rem; }
  .curtain-breakdown > div > div { display: grid; gap: .15rem; }
  .curtain-breakdown strong { text-align: left; }
  .curtain-diagram { min-height: 190px; }
  .curtain-drop { min-height: 98px; }
}



/* Fabric Yardage Calculator — v4.4 */
.fabric-yardage-hero__media img { object-position: 58% center; transform: scale(1.02); }
.yard-mode-switch { display: inline-flex; margin: 0 0 1rem; padding: .28rem; border: 1px solid var(--ff-border); border-radius: 999px; background: #fff; box-shadow: var(--ff-shadow-soft); }
.yard-mode { min-height: 40px; padding: .55rem .95rem; border: 0; border-radius: 999px; background: transparent; color: var(--ff-muted); font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.yard-mode.is-active { background: var(--ff-brand); color: #fff; }
.yard-cutlist-intro { margin: .25rem 1rem .8rem; padding: .8rem .9rem; border-left: 4px solid var(--ff-accent); border-radius: 0 10px 10px 0; background: var(--ff-cream); }
.yard-cutlist-intro p { margin: 0; color: var(--ff-muted); font-size: .72rem; line-height: 1.5; }
.yard-cutlist-table-wrap { margin: .75rem 1rem; overflow-x: auto; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.yard-cutlist-table { width: 100%; min-width: 630px; border-collapse: collapse; }
.yard-cutlist-table th, .yard-cutlist-table td { padding: .55rem .45rem; border-bottom: 1px solid #ecebe6; text-align: left; }
.yard-cutlist-table th { background: #f7f8f5; color: var(--ff-muted); font-size: .61rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.yard-cutlist-table td:first-child { width: 29%; }
.yard-cutlist-table input[type="text"], .yard-cutlist-table input[type="number"] { width: 100%; min-height: 37px; padding: .45rem .5rem; border: 1px solid #d7dad5; border-radius: 8px; font: inherit; font-size: .7rem; }
.yard-cutlist-table input[type="checkbox"] { width: 18px; height: 18px; }
.yard-remove-piece { width: 32px; height: 32px; border: 1px solid var(--ff-border); border-radius: 50%; background: #fff; color: var(--ff-accent); font-size: 1rem; cursor: pointer; }
.yard-add-piece { margin: 0 1rem 1rem; padding: .58rem .85rem; border: 1px solid var(--ff-brand); border-radius: 999px; background: #fff; color: var(--ff-brand); font-size: .7rem; font-weight: 850; cursor: pointer; }
.yard-result-hero .qbc-result-hero__image img { object-position: 58% center; }
.yard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.yard-breakdown { margin: 1rem; padding-top: .8rem; border-top: 1px solid var(--ff-border); }
.yard-breakdown h3, .yard-width-compare h3 { margin: 0 0 .65rem; font-size: 1rem; }
.yard-breakdown > div { display: grid; gap: .35rem; }
.yard-breakdown > div > div { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem .55rem; border-radius: 8px; background: #f8f8f5; }
.yard-breakdown span { color: var(--ff-muted); font-size: .68rem; }
.yard-breakdown strong { color: var(--ff-ink); font-size: .68rem; text-align: right; }
.yard-width-compare { margin: 1rem; padding-top: .85rem; border-top: 1px solid var(--ff-border); }
.yard-width-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
.yard-width-cards > div { padding: .7rem .55rem; border: 1px solid var(--ff-border); border-radius: 10px; background: #fff; text-align: center; }
.yard-width-cards span { display: block; color: var(--ff-muted); font-size: .61rem; font-weight: 800; }
.yard-width-cards strong { display: block; margin-top: .2rem; color: var(--ff-brand); font-size: .78rem; }
.yard-width-compare > small { display: block; margin-top: .55rem; color: var(--ff-muted); font-size: .62rem; line-height: 1.4; }
.yard-layout { min-height: 225px; display: grid; place-items: center; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; overflow: hidden; }
.yard-roll { width: min(100%, 480px); display: grid; gap: .38rem; }
.yard-roll__head { padding: .45rem .6rem; border-radius: 8px 8px 0 0; background: var(--ff-brand); color: #fff; font-size: .65rem; font-weight: 850; text-align: center; }
.yard-roll-row { display: grid; grid-template-columns: 62px 1fr; gap: .35rem; align-items: stretch; }
.yard-roll-row > b { display: grid; place-items: center; padding: .25rem; border-radius: 6px; background: rgba(185,79,50,.16); color: var(--ff-accent); font-size: .58rem; }
.yard-roll-row > div { display: flex; min-height: 32px; border: 1px solid rgba(24,79,75,.22); background: #fff; }
.yard-roll-row span { display: grid; place-items: center; min-width: 0; overflow: hidden; padding: .2rem; border-right: 1px solid rgba(24,79,75,.22); background: rgba(108,141,123,.22); color: var(--ff-brand-dark); font-size: .52rem; white-space: nowrap; text-overflow: ellipsis; }
.yard-roll > small { color: var(--ff-muted); font-size: .62rem; text-align: center; }
.yard-editor-content .yard-answer-box { background: linear-gradient(135deg, var(--ff-soft-green), #fff 76%); }
.yard-editor-content .yard-width-table { margin-block: 1rem 1.15rem; }
.yard-editor-content .wp-block-details { margin: 0 0 .7rem; padding: .9rem 1rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.yard-editor-content .wp-block-details summary { cursor: pointer; color: var(--ff-brand-dark); font-weight: 800; }

@media (max-width: 680px) {
  .yard-mode-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .yard-mode { border-radius: 10px; }
  .yard-cutlist-table-wrap { margin-inline: .65rem; overflow: visible; border: 0; background: transparent; }
  .yard-cutlist-table, .yard-cutlist-table tbody { display: block; width: 100%; min-width: 0; }
  .yard-cutlist-table thead { display: none; }
  .yard-cutlist-table tbody { display: grid; gap: .75rem; }
  .yard-cutlist-table tbody tr { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .5rem; padding: .7rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(23,49,47,.05); }
  .yard-cutlist-table tbody td { display: flex; min-width: 0; padding: 0; border: 0; flex-direction: column; align-items: stretch; }
  .yard-cutlist-table tbody td::before { display: block; margin-bottom: .24rem; color: var(--ff-muted); font-size: .58rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
  .yard-cutlist-table tbody td:nth-child(1) { grid-column: 1 / -1; padding-right: 2.65rem; }
  .yard-cutlist-table tbody td:nth-child(1)::before { content: 'Piece'; }
  .yard-cutlist-table tbody td:nth-child(2)::before { content: 'Width'; }
  .yard-cutlist-table tbody td:nth-child(3)::before { content: 'Length'; }
  .yard-cutlist-table tbody td:nth-child(4)::before { content: 'Quantity'; }
  .yard-cutlist-table tbody td:nth-child(5)::before { content: 'Rotate'; }
  .yard-cutlist-table tbody td:nth-child(5) { align-items: flex-start; }
  .yard-cutlist-table tbody td:nth-child(6) { position: absolute; top: .68rem; right: .68rem; }
  .yard-cutlist-table tbody td:nth-child(6)::before { display: none; }
  .yard-cutlist-table input[type="text"], .yard-cutlist-table input[type="number"] { width: 100%; min-width: 0; }
  .yard-add-piece { margin-left: .65rem; }
  .yard-breakdown, .yard-width-compare { margin-inline: .65rem; }
  .yard-breakdown > div > div { display: grid; gap: .15rem; }
  .yard-breakdown strong { text-align: left; }
  .yard-width-cards { grid-template-columns: 1fr; }
  .yard-layout { min-height: 190px; }
  .yard-roll-row { grid-template-columns: 52px 1fr; }
}



/* Quilt Fabric Calculator — v4.5 */
.qfabric-mode-switch { display: inline-flex; margin: 0 0 1rem; padding: .28rem; border: 1px solid var(--ff-border); border-radius: 999px; background: #fff; box-shadow: var(--ff-shadow-soft); }
.qfabric-mode { min-height: 40px; padding: .55rem .95rem; border: 0; border-radius: 999px; background: transparent; color: var(--ff-muted); font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.qfabric-mode.is-active { background: var(--ff-brand); color: #fff; }
.qfabric-section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: .3rem 1rem .7rem; }
.qfabric-section-head > div { display: grid; gap: .12rem; }
.qfabric-section-head strong { color: var(--ff-brand-dark); font-size: .8rem; }
.qfabric-section-head small { color: var(--ff-muted); font-size: .66rem; line-height: 1.4; }
.qfabric-section-head > span { flex: 0 0 auto; padding: .35rem .58rem; border-radius: 999px; background: var(--ff-soft-green); color: var(--ff-brand); font-size: .64rem; font-weight: 850; }
.qfabric-recipe-options { margin-top: 0; }
.qfabric-table-wrap { margin: .65rem 1rem; overflow-x: auto; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.qfabric-input-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.qfabric-recipe-table { min-width: 790px; }
.qfabric-input-table th, .qfabric-input-table td { padding: .5rem .4rem; border-bottom: 1px solid #ecebe6; text-align: left; }
.qfabric-input-table th { background: #f7f8f5; color: var(--ff-muted); font-size: .59rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.qfabric-input-table td:first-child { width: 25%; }
.qfabric-input-table input[type="text"], .qfabric-input-table input[type="number"] { width: 100%; min-height: 36px; padding: .42rem .46rem; border: 1px solid #d7dad5; border-radius: 8px; background: #fff; font: inherit; font-size: .68rem; }
.qfabric-input-table input[type="checkbox"] { width: 18px; height: 18px; }
.qfabric-remove-row { width: 32px; height: 32px; border: 1px solid var(--ff-border); border-radius: 50%; background: #fff; color: var(--ff-accent); font-size: 1rem; cursor: pointer; }
.qfabric-add-row { margin: 0 1rem 1rem; padding: .58rem .85rem; border: 1px solid var(--ff-brand); border-radius: 999px; background: #fff; color: var(--ff-brand); font-size: .7rem; font-weight: 850; cursor: pointer; }
.qfabric-result-hero .qbc-result-hero__image img { object-position: 50% center; }
.qfabric-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.qfabric-shopping { margin: 1rem; padding-top: .8rem; border-top: 1px solid var(--ff-border); }
.qfabric-shopping h3 { margin: 0 0 .65rem; font-size: 1rem; }
.qfabric-shopping-list { display: grid; gap: .55rem; }
.qfabric-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .65rem; align-items: center; padding: .7rem .75rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(23,49,47,.04); }
.qfabric-card__swatch { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ff-soft-green); color: var(--ff-brand); font-size: .72rem; font-weight: 900; }
.qfabric-card:nth-child(even) .qfabric-card__swatch { background: var(--ff-soft-orange); color: var(--ff-accent); }
.qfabric-card__body { min-width: 0; }
.qfabric-card__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.qfabric-card__head strong { min-width: 0; overflow-wrap: anywhere; color: var(--ff-ink); font-size: .76rem; }
.qfabric-card__head b { flex: 0 0 auto; color: var(--ff-brand); font-family: var(--ff-serif); font-size: 1.05rem; }
.qfabric-card__meta { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin: .2rem 0; color: var(--ff-muted); font-size: .61rem; }
.qfabric-card small { display: block; color: var(--ff-muted); font-size: .61rem; line-height: 1.4; }
.qfabric-layout { min-height: 225px; display: grid; place-items: center; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; }
.qfabric-layout-list { width: min(100%, 460px); display: grid; gap: .7rem; }
.qfabric-layout-row { display: grid; gap: .28rem; }
.qfabric-layout-row > div:first-child { display: flex; justify-content: space-between; gap: 1rem; color: var(--ff-brand-dark); font-size: .68rem; }
.qfabric-layout-row > div:first-child span { color: var(--ff-accent); font-weight: 850; }
.qfabric-layout-bar { height: 22px; overflow: hidden; border: 1px solid rgba(24,79,75,.2); border-radius: 7px; background: #fff; }
.qfabric-layout-bar i { display: block; height: 100%; border-radius: 6px; background: rgba(108,141,123,.72); }
.qfabric-layout-row:nth-child(even) .qfabric-layout-bar i { background: rgba(185,79,50,.58); }
.qfabric-layout-row small, .qfabric-layout-list > small { color: var(--ff-muted); font-size: .59rem; }
.qfabric-editor-content .qfabric-answer-box { background: linear-gradient(135deg, var(--ff-soft-green), #fff 76%); }
.qfabric-editor-content .qfabric-square-table { margin-block: 1rem 1.1rem; }
.qfabric-editor-content .wp-block-details { margin: 0 0 .7rem; padding: .9rem 1rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.qfabric-editor-content .wp-block-details summary { cursor: pointer; color: var(--ff-brand-dark); font-weight: 800; }

@media (max-width: 680px) {
  .qfabric-mode-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .qfabric-mode { border-radius: 10px; }
  .qfabric-section-head { align-items: flex-start; margin-inline: .65rem; }
  .qfabric-section-head > span { white-space: nowrap; }
  .qfabric-table-wrap { margin-inline: .65rem; overflow: visible; border: 0; background: transparent; }
  .qfabric-input-table, .qfabric-input-table tbody { display: block; width: 100%; min-width: 0; }
  .qfabric-input-table thead { display: none; }
  .qfabric-input-table tbody { display: grid; gap: .75rem; }
  .qfabric-input-table tbody tr { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .5rem; padding: .72rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(23,49,47,.05); }
  .qfabric-input-table tbody td { display: flex; min-width: 0; padding: 0; border: 0; flex-direction: column; align-items: stretch; }
  .qfabric-input-table tbody td::before { display: block; margin-bottom: .24rem; color: var(--ff-muted); font-size: .56rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
  .qfabric-input-table tbody td:first-child { grid-column: 1 / -1; width: auto; padding-right: 2.65rem; }
  .qfabric-block-table tbody td:nth-child(1)::before, .qfabric-recipe-table tbody td:nth-child(1)::before { content: 'Fabric'; }
  .qfabric-block-table tbody td:nth-child(2)::before { content: 'Blocks'; }
  .qfabric-block-table tbody td:nth-child(3)::before { content: 'Usable WOF'; }
  .qfabric-block-table tbody td:nth-child(4)::before { content: 'Rotate'; }
  .qfabric-block-table tbody td:nth-child(4) { align-items: flex-start; }
  .qfabric-block-table tbody td:nth-child(5), .qfabric-recipe-table tbody td:nth-child(7) { position: absolute; top: .7rem; right: .7rem; }
  .qfabric-block-table tbody td:nth-child(5)::before, .qfabric-recipe-table tbody td:nth-child(7)::before { display: none; }
  .qfabric-recipe-table tbody td:nth-child(2)::before { content: 'Piece width'; }
  .qfabric-recipe-table tbody td:nth-child(3)::before { content: 'Piece height'; }
  .qfabric-recipe-table tbody td:nth-child(4)::before { content: 'Per block'; }
  .qfabric-recipe-table tbody td:nth-child(5)::before { content: 'Usable WOF'; }
  .qfabric-recipe-table tbody td:nth-child(6)::before { content: 'Rotate'; }
  .qfabric-recipe-table tbody td:nth-child(6) { align-items: flex-start; }
  .qfabric-input-table input[type="text"], .qfabric-input-table input[type="number"] { width: 100%; min-width: 0; }
  .qfabric-add-row { margin-left: .65rem; }
  .qfabric-shopping { margin-inline: .65rem; }
  .qfabric-card__head { display: grid; gap: .05rem; }
  .qfabric-card__head b { font-size: .95rem; }
  .qfabric-layout { min-height: 190px; }
}



/* Quilt Square Size Calculator — v4.6 */
.qsquare-mode-switch { display: inline-flex; margin: 0 0 1rem; padding: .28rem; border: 1px solid var(--ff-border); border-radius: 999px; background: #fff; box-shadow: var(--ff-shadow-soft); }
.qsquare-mode { min-height: 40px; padding: .55rem .95rem; border: 0; border-radius: 999px; background: transparent; color: var(--ff-muted); font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.qsquare-mode.is-active { background: var(--ff-brand); color: #fff; }
.qsquare-method-note { margin: .3rem 1rem .9rem; padding: .82rem .9rem; border-left: 4px solid var(--ff-accent); border-radius: 0 10px 10px 0; background: var(--ff-cream); }
.qsquare-method-note strong { color: var(--ff-brand-dark); font-size: .76rem; }
.qsquare-method-note p { margin: .22rem 0 0; color: var(--ff-muted); font-size: .68rem; line-height: 1.45; }
.qsquare-result-hero .qbc-result-hero__image img { object-position: 50% center; }
.qsquare-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.qsquare-result-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin: 1rem; }
.qsquare-result-strip > div { padding: .68rem .62rem; border: 1px solid var(--ff-border); border-radius: 10px; background: #fff; }
.qsquare-result-strip span { display: block; color: var(--ff-muted); font-size: .58rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.qsquare-result-strip strong { display: block; margin-top: .22rem; color: var(--ff-brand-dark); font-size: .72rem; overflow-wrap: anywhere; }
.qsquare-precut { margin: 1rem; padding: .85rem .95rem; border-top: 1px solid var(--ff-border); }
.qsquare-precut h3 { margin: 0 0 .3rem; font-size: .92rem; }
.qsquare-precut p { margin: 0; color: var(--ff-muted); font-size: .7rem; line-height: 1.5; }
.qsquare-layout { min-height: 225px; display: grid; place-items: center; gap: .65rem; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; }
.qsquare-mini-grid { width: min(100%, 300px); aspect-ratio: 1.2/1; display: grid; gap: 2px; padding: 5px; border: 1px solid rgba(24,79,75,.25); background: rgba(24,79,75,.15); }
.qsquare-mini-grid span { min-width: 0; min-height: 0; border: 1px solid rgba(24,79,75,.15); background: #fff; }
.qsquare-mini-grid span:nth-child(3n+2) { background: rgba(108,141,123,.22); }
.qsquare-mini-grid span:nth-child(4n) { background: rgba(185,79,50,.14); }
.qsquare-layout small { color: var(--ff-muted); font-size: .64rem; text-align: center; }
.qsquare-editor-content .qsquare-answer-box { background: linear-gradient(135deg, var(--ff-soft-green), #fff 76%); }
.qsquare-editor-content .qsquare-size-table,
.qsquare-editor-content .qsquare-count-table,
.qsquare-editor-content .qsquare-precut-table { margin-block: 1rem 1.2rem; }
.qsquare-editor-content .wp-block-details { margin: 0 0 .7rem; padding: .9rem 1rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.qsquare-editor-content .wp-block-details summary { cursor: pointer; color: var(--ff-brand-dark); font-weight: 800; }

@media (max-width: 680px) {
  .qsquare-mode-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .qsquare-mode { border-radius: 10px; }
  .qsquare-method-note { margin-inline: .65rem; }
  .qsquare-result-strip { grid-template-columns: 1fr; margin-inline: .65rem; }
  .qsquare-precut { margin-inline: .65rem; }
  .qsquare-layout { min-height: 190px; }
  .qsquare-mini-grid { width: min(100%, 260px); }
}



/* Quilt Batting Calculator — v4.7 */
.qbat-mode-switch { display: inline-flex; margin: 0 0 1rem; padding: .28rem; border: 1px solid var(--ff-border); border-radius: 999px; background: #fff; box-shadow: var(--ff-shadow-soft); }
.qbat-mode { min-height: 40px; padding: .55rem .95rem; border: 0; border-radius: 999px; background: transparent; color: var(--ff-muted); font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.qbat-mode.is-active { background: var(--ff-brand); color: #fff; }
.qbat-method-note { margin: .3rem 1rem .9rem; padding: .82rem .9rem; border-left: 4px solid var(--ff-accent); border-radius: 0 10px 10px 0; background: var(--ff-cream); }
.qbat-method-note strong { color: var(--ff-brand-dark); font-size: .76rem; }
.qbat-method-note p { margin: .22rem 0 0; color: var(--ff-muted); font-size: .68rem; line-height: 1.45; }
.qbat-result-hero .qbc-result-hero__image img { object-position: 50% center; }
.qbat-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.qbat-source-result { margin: 1rem; padding-top: .85rem; border-top: 1px solid var(--ff-border); }
.qbat-source-result h3 { margin: 0 0 .65rem; font-size: 1rem; }
.qbat-source-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
.qbat-source-cards > div { min-width: 0; padding: .68rem .62rem; border: 1px solid var(--ff-border); border-radius: 10px; background: #fff; }
.qbat-source-cards span { display: block; color: var(--ff-muted); font-size: .58rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.qbat-source-cards strong { display: block; margin-top: .22rem; color: var(--ff-brand-dark); font-size: .75rem; overflow-wrap: anywhere; }
.qbat-source-result > p { margin: .65rem 0 0; color: var(--ff-muted); font-size: .68rem; line-height: 1.5; }
.qbat-layout { min-height: 225px; display: grid; place-items: center; gap: .65rem; padding: 1rem; border: 1px solid #d7ccb8; background: #f8f2e6; box-shadow: inset 0 0 0 7px #fff; }
.qbat-diagram { width: min(100%,360px); }
.qbat-batting { position: relative; width: 100%; aspect-ratio: var(--qbat-ratio,1)/1; min-height: 145px; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--ff-accent); background: repeating-linear-gradient(135deg,rgba(185,79,50,.08) 0 9px,rgba(255,255,255,.7) 9px 18px); }
.qbat-quilt { position: relative; z-index: 2; display: grid; place-items: center; border: 2px solid var(--ff-brand); background: rgba(108,141,123,.38); box-shadow: 0 5px 15px rgba(23,49,47,.08); }
.qbat-quilt span { padding: .28rem .42rem; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ff-brand-dark); font-size: .58rem; font-weight: 850; }
.qbat-seam { position: absolute; z-index: 1; border-color: rgba(185,79,50,.65); border-style: dashed; pointer-events: none; }
.qbat-seam.is-vertical { top: 0; bottom: 0; left: var(--qbat-pos); border-width: 0 0 0 2px; }
.qbat-seam.is-horizontal { left: 0; right: 0; top: var(--qbat-pos); border-width: 2px 0 0; }
.qbat-layout > small { color: var(--ff-muted); font-size: .64rem; text-align: center; }
.qbat-editor-content .qbat-answer-box { background: linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.qbat-editor-content .qbat-overage-table,
.qbat-editor-content .qbat-roll-table,
.qbat-editor-content .qbat-package-table { margin-block: 1rem 1.2rem; }
.qbat-editor-content .wp-block-details { margin: 0 0 .7rem; padding: .9rem 1rem; border: 1px solid var(--ff-border); border-radius: 12px; background: #fff; }
.qbat-editor-content .wp-block-details summary { cursor: pointer; color: var(--ff-brand-dark); font-weight: 800; }

@media (max-width: 680px) {
  .qbat-mode-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .qbat-mode { border-radius: 10px; }
  .qbat-method-note { margin-inline: .65rem; }
  .qbat-source-result { margin-inline: .65rem; }
  .qbat-source-cards { grid-template-columns: 1fr; }
  .qbat-layout { min-height: 190px; }
  .qbat-diagram { width: min(100%,290px); }
}



/* Bias Binding Calculator — v4.8 */
.bias-mode-switch { display:inline-flex; margin:0 0 1rem; padding:.28rem; border:1px solid var(--ff-border); border-radius:999px; background:#fff; box-shadow:var(--ff-shadow-soft); }
.bias-mode { min-height:40px; padding:.55rem .95rem; border:0; border-radius:999px; background:transparent; color:var(--ff-muted); font:inherit; font-size:.72rem; font-weight:850; cursor:pointer; }
.bias-mode.is-active { background:var(--ff-brand); color:#fff; }
.bias-method-note { margin:.3rem 1rem .9rem; padding:.82rem .9rem; border-left:4px solid var(--ff-accent); border-radius:0 10px 10px 0; background:var(--ff-cream); }
.bias-method-note strong { color:var(--ff-brand-dark); font-size:.76rem; }
.bias-method-note p { margin:.22rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.45; }
.bias-result-hero .qbc-result-hero__image img { object-position:50% center; }
.bias-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.bias-detail { margin:1rem; padding-top:.85rem; border-top:1px solid var(--ff-border); }
.bias-detail h3 { margin:0 0 .65rem; font-size:1rem; }
.bias-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.bias-detail-grid > div { min-width:0; padding:.68rem .62rem; border:1px solid var(--ff-border); border-radius:10px; background:#fff; }
.bias-detail-grid span { display:block; color:var(--ff-muted); font-size:.58rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.bias-detail-grid strong { display:block; margin-top:.22rem; color:var(--ff-brand-dark); font-size:.74rem; overflow-wrap:anywhere; }
.bias-detail > p { margin:.65rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.5; }
.bias-layout { min-height:225px; display:grid; place-items:center; gap:.65rem; padding:1rem; border:1px solid #d7ccb8; background:#f8f2e6; box-shadow:inset 0 0 0 7px #fff; }
.bias-square-diagram { width:min(100%,330px); display:grid; gap:.6rem; justify-items:center; }
.bias-square { position:relative; width:min(70vw,245px); aspect-ratio:1; overflow:hidden; border:2px solid var(--ff-brand); background:linear-gradient(135deg,rgba(108,141,123,.14),#fff 60%); }
.bias-square > i { position:absolute; left:-35%; width:170%; height:1px; top:var(--bias-line); transform:rotate(-45deg); transform-origin:center; background:rgba(185,79,50,.55); }
.bias-square > span { position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); padding:.35rem .55rem; border-radius:999px; background:rgba(255,255,255,.92); color:var(--ff-brand-dark); font-size:.64rem; font-weight:850; white-space:nowrap; box-shadow:0 4px 12px rgba(23,49,47,.08); }
.bias-arrow { color:var(--ff-accent); font-size:.7rem; font-weight:850; }
.bias-layout > small { color:var(--ff-muted); font-size:.63rem; text-align:center; }
.bias-editor-content .bias-answer-box { background:linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.bias-editor-content .bias-width-table,
.bias-editor-content .bias-square-table,
.bias-editor-content .bias-method-table { margin-block:1rem 1.2rem; }
.bias-editor-content .wp-block-details { margin:0 0 .7rem; padding:.9rem 1rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.bias-editor-content .wp-block-details summary { cursor:pointer; color:var(--ff-brand-dark); font-weight:800; }

@media (max-width:680px) {
  .bias-mode-switch { width:100%; display:grid; grid-template-columns:1fr 1fr; border-radius:14px; }
  .bias-mode { border-radius:10px; padding:.55rem .45rem; }
  .bias-method-note { margin-inline:.65rem; }
  .bias-detail { margin-inline:.65rem; }
  .bias-detail-grid { grid-template-columns:1fr; }
  .bias-layout { min-height:190px; }
  .bias-square { width:min(64vw,220px); }
}



/* Drapery Calculator — v4.9 */
.drapery-page-hero__media img { object-position: 58% center; }
.drape-mode-switch { display:inline-flex; margin:0 0 1rem; padding:.28rem; border:1px solid var(--ff-border); border-radius:999px; background:#fff; box-shadow:var(--ff-shadow-soft); }
.drape-mode { min-height:40px; padding:.55rem .95rem; border:0; border-radius:999px; background:transparent; color:var(--ff-muted); font:inherit; font-size:.72rem; font-weight:850; cursor:pointer; }
.drape-mode.is-active { background:var(--ff-brand); color:#fff; }
.drape-method-note { margin:.3rem 1rem .9rem; padding:.82rem .9rem; border-left:4px solid var(--ff-accent); border-radius:0 10px 10px 0; background:var(--ff-cream); }
.drape-method-note strong { color:var(--ff-brand-dark); font-size:.76rem; }
.drape-method-note p { margin:.22rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.45; }
.drape-subhead { display:grid; gap:.1rem; margin:.1rem 1rem .65rem; }
.drape-subhead strong { color:var(--ff-brand-dark); font-size:.76rem; }
.drape-subhead small { color:var(--ff-muted); font-size:.64rem; line-height:1.4; }
.drape-result-hero .qbc-result-hero__image img { object-position:58% center; }
.drape-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.drape-detail { margin:1rem; padding-top:.85rem; border-top:1px solid var(--ff-border); }
.drape-detail h3 { margin:0 0 .65rem; font-size:1rem; }
.drape-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.drape-detail-grid > div { min-width:0; padding:.68rem .62rem; border:1px solid var(--ff-border); border-radius:10px; background:#fff; }
.drape-detail-grid span { display:block; color:var(--ff-muted); font-size:.58rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.drape-detail-grid strong { display:block; margin-top:.22rem; color:var(--ff-brand-dark); font-size:.74rem; overflow-wrap:anywhere; }
.drape-detail > p { margin:.65rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.5; }
.drape-layout { min-height:225px; display:grid; place-items:center; gap:.7rem; padding:1rem; border:1px solid #d7ccb8; background:#f8f2e6; box-shadow:inset 0 0 0 7px #fff; overflow:hidden; }
.drape-track { width:min(100%,470px); display:grid; gap:.6rem; justify-items:center; }
.drape-rod { position:relative; width:92%; height:7px; border-radius:999px; background:var(--ff-brand-dark); }
.drape-rod::before,.drape-rod::after { content:''; position:absolute; top:50%; width:10px; height:18px; border:2px solid var(--ff-brand-dark); transform:translateY(-50%); background:#fff; }
.drape-rod::before { left:-5px; }
.drape-rod::after { right:-5px; }
.drape-rod span { position:absolute; left:50%; top:-24px; transform:translateX(-50%); color:var(--ff-muted); font-size:.57rem; white-space:nowrap; }
.drape-window-mark { height:42px; display:grid; place-items:center; border:2px solid rgba(24,79,75,.25); background:#fff; }
.drape-window-mark span { color:var(--ff-muted); font-size:.58rem; }
.drape-panels { width:100%; display:flex; gap:3px; }
.drape-panels > span { min-width:0; height:95px; display:grid; align-content:center; justify-items:center; padding:.3rem; border:1px solid rgba(185,79,50,.3); background:linear-gradient(90deg,rgba(185,79,50,.12),rgba(108,141,123,.22),rgba(185,79,50,.12)); }
.drape-panels b { color:var(--ff-brand-dark); font-size:.62rem; }
.drape-panels small,.drape-track > small { color:var(--ff-muted); font-size:.56rem; text-align:center; }
.drape-pleat-diagram { width:min(100%,470px); display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.4rem; align-items:stretch; }
.drape-edge { display:grid; place-items:center; width:60px; min-height:110px; padding:.25rem; border:1px solid rgba(185,79,50,.25); background:rgba(185,79,50,.12); color:var(--ff-accent); font-size:.56rem; font-weight:800; text-align:center; }
.drape-pleat-run { position:relative; min-height:110px; border-top:2px solid var(--ff-brand); border-bottom:2px solid var(--ff-brand); background:#fff; }
.drape-pleat-run > i { position:absolute; top:18px; bottom:18px; width:2px; transform:translateX(-50%); background:var(--ff-brand); }
.drape-pleat-run > i span { position:absolute; left:50%; top:50%; width:14px; height:28px; border:2px solid var(--ff-brand); border-top:0; transform:translate(-50%,-50%); border-radius:0 0 8px 8px; background:rgba(108,141,123,.16); }
.drape-pleat-run > b { position:absolute; left:50%; bottom:2px; transform:translateX(-50%); color:var(--ff-muted); font-size:.54rem; font-style:normal; white-space:nowrap; }
.drape-layout > small { color:var(--ff-muted); font-size:.62rem; text-align:center; }
.drape-editor-content .drape-answer-box { background:linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.drape-editor-content .drape-terms-table,
.drape-editor-content .drape-fullness-table,
.drape-editor-content .drape-vs-table { margin-block:1rem 1.2rem; }
.drape-editor-content .wp-block-details { margin:0 0 .7rem; padding:.9rem 1rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.drape-editor-content .wp-block-details summary { cursor:pointer; color:var(--ff-brand-dark); font-weight:800; }

@media (max-width:680px) {
  .drape-mode-switch { width:100%; display:grid; grid-template-columns:1fr 1fr; border-radius:14px; }
  .drape-mode { border-radius:10px; }
  .drape-method-note,.drape-subhead { margin-inline:.65rem; }
  .drape-detail { margin-inline:.65rem; }
  .drape-detail-grid { grid-template-columns:1fr; }
  .drape-layout { min-height:190px; }
  .drape-pleat-diagram { grid-template-columns:46px minmax(0,1fr) 46px; }
  .drape-edge { width:auto; min-height:90px; font-size:.5rem; }
  .drape-pleat-run { min-height:90px; }
  .drape-pleat-run > i span { width:10px; height:22px; }
}



/* Box Cushion Calculator — v5.0 */
.box-cushion-hero__media img,.boxc-result-hero .qbc-result-hero__image img { object-position:56% center; }
.boxc-section-head { display:grid; gap:.12rem; margin:.2rem 1rem .7rem; }
.boxc-section-head strong { color:var(--ff-brand-dark); font-size:.78rem; }
.boxc-section-head small { color:var(--ff-muted); font-size:.64rem; line-height:1.42; }
.boxc-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.boxc-materials { margin:1rem; padding-top:.85rem; border-top:1px solid var(--ff-border); }
.boxc-materials h3 { margin:0 0 .65rem; font-size:1rem; }
.boxc-material-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.boxc-material-grid > div { min-width:0; padding:.68rem .62rem; border:1px solid var(--ff-border); border-radius:10px; background:#fff; }
.boxc-material-grid span { display:block; color:var(--ff-muted); font-size:.58rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.boxc-material-grid strong { display:block; margin-top:.22rem; color:var(--ff-brand-dark); font-size:.74rem; overflow-wrap:anywhere; }
.boxc-materials > p { margin:.65rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.5; }
.boxc-cut-list { display:grid; gap:.55rem; padding:1rem; }
.boxc-cut-card { display:grid; grid-template-columns:42px minmax(0,1fr); gap:.65rem; align-items:center; padding:.72rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.boxc-cut-card__qty { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; background:var(--ff-soft-green); color:var(--ff-brand); font-size:.7rem; font-weight:900; }
.boxc-cut-card:nth-child(even) .boxc-cut-card__qty { background:var(--ff-soft-orange); color:var(--ff-accent); }
.boxc-cut-card__head { display:flex; justify-content:space-between; gap:.7rem; align-items:baseline; }
.boxc-cut-card__head strong { min-width:0; color:var(--ff-brand-dark); font-size:.7rem; overflow-wrap:anywhere; }
.boxc-cut-card__head b { flex:0 0 auto; color:var(--ff-accent); font-family:var(--ff-serif); font-size:.78rem; }
.boxc-cut-card small { display:block; margin-top:.18rem; color:var(--ff-muted); font-size:.6rem; line-height:1.4; }
.boxc-layout { min-height:330px; display:grid; place-items:center; gap:.7rem; padding:1rem; background:#f8f2e6; border:1px solid #d7ccb8; box-shadow:inset 0 0 0 7px #fff; }
.boxc-fabric-roll { width:min(100%,500px); display:grid; gap:.4rem; }
.boxc-fabric-scale { display:flex; justify-content:space-between; gap:.5rem; color:var(--ff-muted); font-size:.58rem; }
.boxc-fabric-scale b { color:var(--ff-brand-dark); }
.boxc-layout-board { position:relative; width:100%; aspect-ratio:var(--boxc-aspect,1)/1; min-height:220px; overflow:hidden; border:2px solid var(--ff-brand); background:repeating-linear-gradient(0deg,rgba(24,79,75,.04) 0 12px,rgba(255,255,255,.65) 12px 24px); }
.boxc-layout-piece { position:absolute; display:grid; place-items:center; min-width:3px; min-height:3px; overflow:hidden; border:1px solid rgba(23,49,47,.35); font-style:normal; }
.boxc-layout-piece span { max-width:92%; padding:.12rem .18rem; background:rgba(255,255,255,.82); color:var(--ff-brand-dark); font-size:.48rem; line-height:1.15; text-align:center; overflow:hidden; }
.boxc-layout-piece--a { background:rgba(108,141,123,.32); }
.boxc-layout-piece--b { background:rgba(185,79,50,.20); }
.boxc-layout-piece--c { background:rgba(24,79,75,.16); }
.boxc-layout-piece--d { background:rgba(232,187,124,.28); }
.boxc-layout-piece--e { background:rgba(108,141,123,.18); }
.boxc-layout-piece--f { background:rgba(185,79,50,.12); }
.boxc-layout > small { color:var(--ff-muted); font-size:.61rem; line-height:1.4; text-align:center; }
.boxc-summary-panel { margin-top:1rem; }
.boxc-summary-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:1rem; padding:0 1rem 1rem; }
.boxc-summary-grid .qbc-cut-steps { margin:0; }
.boxc-editor-content .boxc-answer-box { background:linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.boxc-editor-content .boxc-boxing-table,
.boxc-editor-content .boxc-vs-table { margin-block:1rem 1.2rem; }
.boxc-editor-content .wp-block-details { margin:0 0 .7rem; padding:.9rem 1rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.boxc-editor-content .wp-block-details summary { cursor:pointer; color:var(--ff-brand-dark); font-weight:800; }

@media (max-width:680px) {
  .boxc-section-head { margin-inline:.65rem; }
  .boxc-materials { margin-inline:.65rem; }
  .boxc-material-grid { grid-template-columns:1fr; }
  .boxc-cut-list { padding:.65rem; }
  .boxc-cut-card__head { display:grid; gap:.05rem; }
  .boxc-cut-card__head b { font-size:.72rem; }
  .boxc-layout { min-height:260px; padding:.65rem; }
  .boxc-layout-board { min-height:190px; }
  .boxc-summary-grid { grid-template-columns:1fr; padding-inline:.65rem; }
}



/* Sofa Fabric Calculator — v5.1 */
.sofa-fabric-hero__media img,.sofa-result-hero .qbc-result-hero__image img { object-position:56% center; }
.sofa-section-head { display:grid; gap:.12rem; margin:.2rem 1rem .7rem; }
.sofa-section-head strong { color:var(--ff-brand-dark); font-size:.78rem; }
.sofa-section-head small { color:var(--ff-muted); font-size:.64rem; line-height:1.42; }
.sofa-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.sofa-breakdown { margin:1rem; padding-top:.85rem; border-top:1px solid var(--ff-border); }
.sofa-breakdown h3 { margin:0 0 .65rem; font-size:1rem; }
.sofa-zone-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.sofa-zone-grid > div { min-width:0; padding:.68rem .62rem; border:1px solid var(--ff-border); border-radius:10px; background:#fff; }
.sofa-zone-grid span { display:block; color:var(--ff-muted); font-size:.58rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.sofa-zone-grid strong { display:block; margin-top:.22rem; color:var(--ff-brand-dark); font-size:.74rem; overflow-wrap:anywhere; }
.sofa-breakdown > p { margin:.65rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.5; }
.sofa-panel-list { display:grid; gap:.5rem; padding:1rem; max-height:620px; overflow:auto; }
.sofa-panel-card { display:grid; grid-template-columns:42px minmax(0,1fr); gap:.65rem; align-items:center; padding:.7rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.sofa-panel-card__qty { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; background:var(--ff-soft-green); color:var(--ff-brand); font-size:.7rem; font-weight:900; }
.sofa-panel-card:nth-child(3n+2) .sofa-panel-card__qty { background:var(--ff-soft-orange); color:var(--ff-accent); }
.sofa-panel-card:nth-child(3n) .sofa-panel-card__qty { background:#f0ede5; color:var(--ff-brand-dark); }
.sofa-panel-card__head { display:flex; justify-content:space-between; gap:.7rem; align-items:baseline; }
.sofa-panel-card__head strong { min-width:0; color:var(--ff-brand-dark); font-size:.68rem; overflow-wrap:anywhere; }
.sofa-panel-card__head b { flex:0 0 auto; color:var(--ff-accent); font-family:var(--ff-serif); font-size:.76rem; }
.sofa-panel-card small { display:block; margin-top:.18rem; color:var(--ff-muted); font-size:.59rem; line-height:1.4; }
.sofa-layout { min-height:390px; display:grid; place-items:center; gap:.7rem; padding:1rem; background:#f8f2e6; border:1px solid #d7ccb8; box-shadow:inset 0 0 0 7px #fff; }
.sofa-fabric-roll { width:min(100%,500px); display:grid; gap:.45rem; }
.sofa-fabric-scale { display:flex; justify-content:space-between; gap:.5rem; color:var(--ff-muted); font-size:.58rem; }
.sofa-fabric-scale b { color:var(--ff-brand-dark); }
.sofa-layout-board { position:relative; width:100%; aspect-ratio:var(--sofa-aspect,1)/1; min-height:290px; overflow:hidden; border:2px solid var(--ff-brand); background:repeating-linear-gradient(0deg,rgba(24,79,75,.035) 0 12px,rgba(255,255,255,.72) 12px 24px); }
.sofa-layout-piece { position:absolute; display:grid; place-items:center; min-width:3px; min-height:3px; overflow:hidden; border:1px solid rgba(23,49,47,.32); font-style:normal; }
.sofa-layout-piece span { max-width:92%; padding:.1rem .16rem; background:rgba(255,255,255,.8); color:var(--ff-brand-dark); font-size:.44rem; line-height:1.1; text-align:center; overflow:hidden; }
.sofa-layout-piece--frame { background:rgba(108,141,123,.28); }
.sofa-layout-piece--seat { background:rgba(185,79,50,.18); }
.sofa-layout-piece--back { background:rgba(24,79,75,.15); }
.sofa-layout-piece--skirt { background:rgba(232,187,124,.34); }
.sofa-layout-key { display:flex; flex-wrap:wrap; justify-content:center; gap:.45rem .8rem; font-size:.57rem; color:var(--ff-muted); }
.sofa-layout-key span::before { content:''; display:inline-block; width:8px; height:8px; margin-right:.25rem; border:1px solid rgba(23,49,47,.2); vertical-align:-1px; }
.sofa-layout-key .is-frame::before { background:rgba(108,141,123,.28); }
.sofa-layout-key .is-seat::before { background:rgba(185,79,50,.18); }
.sofa-layout-key .is-back::before { background:rgba(24,79,75,.15); }
.sofa-layout-key .is-skirt::before { background:rgba(232,187,124,.34); }
.sofa-layout > small { color:var(--ff-muted); font-size:.61rem; line-height:1.4; text-align:center; }
.sofa-summary-panel { margin-top:1rem; }
.sofa-summary-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:1rem; padding:0 1rem 1rem; }
.sofa-estimate-note { padding:.85rem; border:1px solid var(--ff-border); border-radius:12px; background:var(--ff-cream); }
.sofa-estimate-note > strong { color:var(--ff-brand-dark); font-size:.75rem; }
.sofa-estimate-note > p { margin:.25rem 0 .65rem; color:var(--ff-muted); font-size:.65rem; line-height:1.45; }
.sofa-estimate-note .qbc-cut-steps { margin:0; }
.sofa-editor-content .sofa-answer-box { background:linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.sofa-editor-content .sofa-factor-table,
.sofa-editor-content .sofa-vs-table { margin-block:1rem 1.2rem; }
.sofa-editor-content .wp-block-details { margin:0 0 .7rem; padding:.9rem 1rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.sofa-editor-content .wp-block-details summary { cursor:pointer; color:var(--ff-brand-dark); font-weight:800; }

@media (max-width:680px) {
  .sofa-section-head { margin-inline:.65rem; }
  .sofa-breakdown { margin-inline:.65rem; }
  .sofa-zone-grid { grid-template-columns:1fr; }
  .sofa-panel-list { padding:.65rem; max-height:none; overflow:visible; }
  .sofa-panel-card__head { display:grid; gap:.05rem; }
  .sofa-panel-card__head b { font-size:.7rem; }
  .sofa-layout { min-height:300px; padding:.65rem; }
  .sofa-layout-board { min-height:230px; }
  .sofa-summary-grid { grid-template-columns:1fr; padding-inline:.65rem; }
}



/* Chair Fabric Calculator — v5.2 */
.chair-fabric-hero__media img,.chair-result-hero .qbc-result-hero__image img { object-position:56% center; }
.chair-section-head { display:grid; gap:.12rem; margin:.2rem 1rem .7rem; }
.chair-section-head strong { color:var(--ff-brand-dark); font-size:.78rem; }
.chair-section-head small { color:var(--ff-muted); font-size:.64rem; line-height:1.42; }
.chair-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.chair-breakdown { margin:1rem; padding-top:.85rem; border-top:1px solid var(--ff-border); }
.chair-breakdown h3 { margin:0 0 .65rem; font-size:1rem; }
.chair-zone-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.chair-zone-grid > div { min-width:0; padding:.68rem .62rem; border:1px solid var(--ff-border); border-radius:10px; background:#fff; }
.chair-zone-grid span { display:block; color:var(--ff-muted); font-size:.58rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.chair-zone-grid strong { display:block; margin-top:.22rem; color:var(--ff-brand-dark); font-size:.74rem; overflow-wrap:anywhere; }
.chair-breakdown > p { margin:.65rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.5; }
.chair-panel-list { display:grid; gap:.5rem; padding:1rem; max-height:620px; overflow:auto; }
.chair-panel-card { display:grid; grid-template-columns:42px minmax(0,1fr); gap:.65rem; align-items:center; padding:.7rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.chair-panel-card__qty { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; background:var(--ff-soft-green); color:var(--ff-brand); font-size:.7rem; font-weight:900; }
.chair-panel-card:nth-child(3n+2) .chair-panel-card__qty { background:var(--ff-soft-orange); color:var(--ff-accent); }
.chair-panel-card:nth-child(3n) .chair-panel-card__qty { background:#f0ede5; color:var(--ff-brand-dark); }
.chair-panel-card__head { display:flex; justify-content:space-between; gap:.7rem; align-items:baseline; }
.chair-panel-card__head strong { min-width:0; color:var(--ff-brand-dark); font-size:.68rem; overflow-wrap:anywhere; }
.chair-panel-card__head b { flex:0 0 auto; color:var(--ff-accent); font-family:var(--ff-serif); font-size:.76rem; }
.chair-panel-card small { display:block; margin-top:.18rem; color:var(--ff-muted); font-size:.59rem; line-height:1.4; }
.chair-layout { min-height:390px; display:grid; place-items:center; gap:.7rem; padding:1rem; background:#f8f2e6; border:1px solid #d7ccb8; box-shadow:inset 0 0 0 7px #fff; }
.chair-fabric-roll { width:min(100%,500px); display:grid; gap:.45rem; }
.chair-fabric-scale { display:flex; justify-content:space-between; gap:.5rem; color:var(--ff-muted); font-size:.58rem; }
.chair-fabric-scale b { color:var(--ff-brand-dark); }
.chair-layout-board { position:relative; width:100%; aspect-ratio:var(--chair-aspect,1)/1; min-height:290px; overflow:hidden; border:2px solid var(--ff-brand); background:repeating-linear-gradient(0deg,rgba(24,79,75,.035) 0 12px,rgba(255,255,255,.72) 12px 24px); }
.chair-layout-piece { position:absolute; display:grid; place-items:center; min-width:3px; min-height:3px; overflow:hidden; border:1px solid rgba(23,49,47,.32); font-style:normal; }
.chair-layout-piece span { max-width:92%; padding:.1rem .16rem; background:rgba(255,255,255,.8); color:var(--ff-brand-dark); font-size:.44rem; line-height:1.1; text-align:center; overflow:hidden; }
.chair-layout-piece--frame { background:rgba(108,141,123,.28); }
.chair-layout-piece--seat { background:rgba(185,79,50,.18); }
.chair-layout-piece--back { background:rgba(24,79,75,.15); }
.chair-layout-piece--arms { background:rgba(154,126,91,.20); }
.chair-layout-piece--skirt { background:rgba(232,187,124,.34); }
.chair-layout-key { display:flex; flex-wrap:wrap; justify-content:center; gap:.45rem .8rem; font-size:.57rem; color:var(--ff-muted); }
.chair-layout-key span::before { content:''; display:inline-block; width:8px; height:8px; margin-right:.25rem; border:1px solid rgba(23,49,47,.2); vertical-align:-1px; }
.chair-layout-key .is-frame::before { background:rgba(108,141,123,.28); }
.chair-layout-key .is-seat::before { background:rgba(185,79,50,.18); }
.chair-layout-key .is-back::before { background:rgba(24,79,75,.15); }
.chair-layout-key .is-arms::before { background:rgba(154,126,91,.20); }
.chair-layout-key .is-skirt::before { background:rgba(232,187,124,.34); }
.chair-layout > small { color:var(--ff-muted); font-size:.61rem; line-height:1.4; text-align:center; }
.chair-summary-panel { margin-top:1rem; }
.chair-summary-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:1rem; padding:0 1rem 1rem; }
.chair-estimate-note { padding:.85rem; border:1px solid var(--ff-border); border-radius:12px; background:var(--ff-cream); }
.chair-estimate-note > strong { color:var(--ff-brand-dark); font-size:.75rem; }
.chair-estimate-note > p { margin:.25rem 0 .65rem; color:var(--ff-muted); font-size:.65rem; line-height:1.45; }
.chair-estimate-note .qbc-cut-steps { margin:0; }
.chair-editor-content .chair-answer-box { background:linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.chair-editor-content .chair-type-table,
.chair-editor-content .chair-vs-table { margin-block:1rem 1.2rem; }
.chair-editor-content .wp-block-details { margin:0 0 .7rem; padding:.9rem 1rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.chair-editor-content .wp-block-details summary { cursor:pointer; color:var(--ff-brand-dark); font-weight:800; }

@media (max-width:680px) {
  .chair-section-head { margin-inline:.65rem; }
  .chair-breakdown { margin-inline:.65rem; }
  .chair-zone-grid { grid-template-columns:1fr; }
  .chair-panel-list { padding:.65rem; max-height:none; overflow:visible; }
  .chair-panel-card__head { display:grid; gap:.05rem; }
  .chair-panel-card__head b { font-size:.7rem; }
  .chair-layout { min-height:300px; padding:.65rem; }
  .chair-layout-board { min-height:230px; }
  .chair-summary-grid { grid-template-columns:1fr; padding-inline:.65rem; }
}



/* Curtain Yardage Calculator — v5.3 */
.curtain-yardage-hero__media img,.cy-result-hero .qbc-result-hero__image img { object-position:58% center; }
.cy-mode-switch { display:inline-flex; margin:0 0 1rem; padding:.28rem; border:1px solid var(--ff-border); border-radius:999px; background:#fff; box-shadow:var(--ff-shadow-soft); }
.cy-mode { min-height:40px; padding:.55rem .95rem; border:0; border-radius:999px; background:transparent; color:var(--ff-muted); font:inherit; font-size:.72rem; font-weight:850; cursor:pointer; }
.cy-mode.is-active { background:var(--ff-brand); color:#fff; }
.cy-method-note { margin:.3rem 1rem .9rem; padding:.82rem .9rem; border-left:4px solid var(--ff-accent); border-radius:0 10px 10px 0; background:var(--ff-cream); }
.cy-method-note strong { color:var(--ff-brand-dark); font-size:.76rem; }
.cy-method-note p { margin:.22rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.45; }
.cy-section-head { display:grid; gap:.12rem; margin:.2rem 1rem .7rem; }
.cy-section-head strong { color:var(--ff-brand-dark); font-size:.78rem; }
.cy-section-head small { color:var(--ff-muted); font-size:.64rem; line-height:1.42; }
.cy-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cy-breakdown { margin:1rem; padding-top:.85rem; border-top:1px solid var(--ff-border); }
.cy-breakdown h3 { margin:0 0 .65rem; font-size:1rem; }
.cy-breakdown-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.cy-breakdown-grid > div { min-width:0; padding:.68rem .62rem; border:1px solid var(--ff-border); border-radius:10px; background:#fff; }
.cy-breakdown-grid span { display:block; color:var(--ff-muted); font-size:.58rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.cy-breakdown-grid strong { display:block; margin-top:.22rem; color:var(--ff-brand-dark); font-size:.74rem; overflow-wrap:anywhere; }
.cy-breakdown > p { margin:.65rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.5; }
.cy-comparison { display:grid; gap:.42rem; padding:1rem; }
.cy-compare-head,.cy-compare-row { display:grid; grid-template-columns:minmax(0,1.35fr) .75fr 1fr .9fr; gap:.45rem; align-items:center; }
.cy-compare-head { padding:.35rem .55rem; color:var(--ff-muted); font-size:.56rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.cy-compare-row { padding:.65rem .55rem; border:1px solid var(--ff-border); border-radius:10px; background:#fff; }
.cy-compare-row strong { color:var(--ff-brand-dark); font-size:.67rem; }
.cy-compare-row span { color:var(--ff-muted); font-size:.62rem; }
.cy-compare-row b { color:var(--ff-accent); font-family:var(--ff-serif); font-size:.72rem; text-align:right; }
.cy-compare-row.is-current { border-color:rgba(24,79,75,.5); box-shadow:inset 3px 0 0 var(--ff-brand); }
.cy-compare-row.is-best { background:linear-gradient(90deg,var(--ff-soft-green),#fff); }
.cy-layout { min-height:300px; display:grid; place-items:center; gap:.7rem; padding:1rem; background:#f8f2e6; border:1px solid #d7ccb8; box-shadow:inset 0 0 0 7px #fff; }
.cy-roll { width:min(100%,470px); display:grid; gap:.7rem; }
.cy-roll__meta { display:flex; justify-content:space-between; gap:.7rem; color:var(--ff-muted); font-size:.59rem; }
.cy-roll__meta b { color:var(--ff-brand-dark); }
.cy-roll__drops { display:flex; align-items:stretch; justify-content:center; gap:4px; min-height:165px; padding:.55rem; border:2px solid var(--ff-brand); background:repeating-linear-gradient(0deg,rgba(24,79,75,.035) 0 12px,rgba(255,255,255,.72) 12px 24px); }
.cy-roll__drops i { flex:1 1 0; min-width:20px; max-width:68px; display:grid; place-items:center; border:1px solid rgba(185,79,50,.35); background:linear-gradient(90deg,rgba(185,79,50,.10),rgba(108,141,123,.20),rgba(185,79,50,.10)); color:var(--ff-brand-dark); font-size:.6rem; font-style:normal; font-weight:850; }
.cy-roll__drops i.is-more { background:var(--ff-soft-orange); color:var(--ff-accent); }
.cy-roll > small,.cy-layout > small { color:var(--ff-muted); font-size:.61rem; line-height:1.4; text-align:center; }
.cy-summary-panel { margin-top:1rem; }
.cy-summary-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:1rem; padding:0 1rem 1rem; }
.cy-summary-grid .qbc-cut-steps { margin:0; }
.cy-editor-content .cy-answer-box { background:linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.cy-editor-content .cy-width-table,
.cy-editor-content .cy-vs-table { margin-block:1rem 1.2rem; }
.cy-editor-content .wp-block-details { margin:0 0 .7rem; padding:.9rem 1rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.cy-editor-content .wp-block-details summary { cursor:pointer; color:var(--ff-brand-dark); font-weight:800; }

@media (max-width:680px) {
  .cy-mode-switch { width:100%; display:grid; grid-template-columns:1fr 1fr; border-radius:14px; }
  .cy-mode { border-radius:10px; }
  .cy-method-note,.cy-section-head { margin-inline:.65rem; }
  .cy-breakdown { margin-inline:.65rem; }
  .cy-breakdown-grid { grid-template-columns:1fr; }
  .cy-comparison { padding:.65rem; }
  .cy-compare-head { display:none; }
  .cy-compare-row { grid-template-columns:1fr 1fr; gap:.25rem .6rem; }
  .cy-compare-row strong,.cy-compare-row b { grid-column:1 / -1; }
  .cy-compare-row b { text-align:left; font-size:.78rem; }
  .cy-compare-row span { padding-top:.15rem; border-top:1px solid rgba(23,49,47,.08); }
  .cy-layout { min-height:255px; padding:.65rem; }
  .cy-roll__drops { min-height:135px; }
  .cy-summary-grid { grid-template-columns:1fr; padding-inline:.65rem; }
}



/* Fabric Weight Calculator — v5.4 */
.fabric-weight-hero__media img,.fw-result-hero .qbc-result-hero__image img { object-position:58% center; }
.fw-mode-switch { display:flex; flex-wrap:wrap; gap:.3rem; width:max-content; max-width:100%; margin:0 0 1rem; padding:.28rem; border:1px solid var(--ff-border); border-radius:999px; background:#fff; box-shadow:var(--ff-shadow-soft); }
.fw-mode { min-height:40px; padding:.55rem .82rem; border:0; border-radius:999px; background:transparent; color:var(--ff-muted); font:inherit; font-size:.68rem; font-weight:850; cursor:pointer; }
.fw-mode.is-active { background:var(--ff-brand); color:#fff; }
.fw-method-note { margin:.3rem 1rem .9rem; padding:.82rem .9rem; border-left:4px solid var(--ff-accent); border-radius:0 10px 10px 0; background:var(--ff-cream); }
.fw-method-note strong { color:var(--ff-brand-dark); font-size:.76rem; }
.fw-method-note p { margin:.22rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.45; }
.fw-value-unit { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.35rem; }
.fw-value-unit select { min-width:86px; }
.fw-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.fw-breakdown { margin:1rem; padding-top:.85rem; border-top:1px solid var(--ff-border); }
.fw-breakdown h3 { margin:0 0 .65rem; font-size:1rem; }
.fw-breakdown-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.fw-breakdown-grid > div { min-width:0; padding:.68rem .62rem; border:1px solid var(--ff-border); border-radius:10px; background:#fff; }
.fw-breakdown-grid span { display:block; color:var(--ff-muted); font-size:.58rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.fw-breakdown-grid strong { display:block; margin-top:.22rem; color:var(--ff-brand-dark); font-size:.72rem; overflow-wrap:anywhere; }
.fw-breakdown > p { margin:.65rem 0 0; color:var(--ff-muted); font-size:.68rem; line-height:1.5; }
.fw-equivalents { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; padding:1rem; }
.fw-equivalent-card { min-width:0; padding:.78rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.fw-equivalent-card span { display:block; color:var(--ff-muted); font-size:.57rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.fw-equivalent-card strong { display:block; margin:.2rem 0 .12rem; color:var(--ff-brand-dark); font-family:var(--ff-serif); font-size:.9rem; overflow-wrap:anywhere; }
.fw-equivalent-card small { color:var(--ff-muted); font-size:.58rem; line-height:1.35; }
.fw-visual { min-height:310px; display:grid; place-items:center; padding:1rem; background:#f8f2e6; border:1px solid #d7ccb8; box-shadow:inset 0 0 0 7px #fff; }
.fw-fabric-strip { width:min(100%,440px); display:grid; gap:.65rem; }
.fw-fabric-strip__measure { display:flex; justify-content:space-between; gap:.7rem; color:var(--ff-muted); font-size:.62rem; }
.fw-fabric-strip__measure b { color:var(--ff-brand-dark); }
.fw-fabric-strip__cloth { position:relative; min-height:165px; display:grid; place-content:center; gap:.2rem; overflow:hidden; border:2px solid var(--ff-brand); background:repeating-linear-gradient(45deg,rgba(24,79,75,.09) 0 10px,rgba(250,247,241,.9) 10px 20px); text-align:center; }
.fw-fabric-strip__cloth::before,.fw-fabric-strip__cloth::after { content:''; position:absolute; top:0; bottom:0; width:11px; background:repeating-linear-gradient(0deg,rgba(185,79,50,.25) 0 3px,transparent 3px 6px); }
.fw-fabric-strip__cloth::before { left:0; }
.fw-fabric-strip__cloth::after { right:0; }
.fw-fabric-strip__cloth span { color:var(--ff-muted); font-size:.68rem; font-weight:800; }
.fw-fabric-strip__cloth strong { color:var(--ff-brand-dark); font-family:var(--ff-serif); font-size:1.2rem; }
.fw-fabric-strip > small { color:var(--ff-muted); font-size:.62rem; line-height:1.4; text-align:center; }
.fw-summary-panel { margin-top:1rem; }
.fw-summary-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:1rem; padding:0 1rem 1rem; }
.fw-summary-grid .qbc-cut-steps { margin:0; }
.fw-editor-content .fw-answer-box { background:linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.fw-editor-content .fw-conversion-table,
.fw-editor-content .fw-linear-table,
.fw-editor-content .fw-vs-table { margin-block:1rem 1.2rem; }
.fw-editor-content .wp-block-details { margin:0 0 .7rem; padding:.9rem 1rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.fw-editor-content .wp-block-details summary { cursor:pointer; color:var(--ff-brand-dark); font-weight:800; }

@media (max-width:680px) {
  .fw-mode-switch { width:100%; display:grid; grid-template-columns:1fr 1fr; border-radius:14px; }
  .fw-mode { border-radius:10px; }
  .fw-method-note { margin-inline:.65rem; }
  .fw-breakdown { margin-inline:.65rem; }
  .fw-breakdown-grid,.fw-equivalents { grid-template-columns:1fr; }
  .fw-equivalents { padding:.65rem; }
  .fw-visual { min-height:260px; padding:.65rem; }
  .fw-summary-grid { grid-template-columns:1fr; padding-inline:.65rem; }
  .fw-value-unit { grid-template-columns:minmax(0,1fr) 90px; }
}



/* Resources Section — v5.5 */
.resource-hero { padding:clamp(2.1rem,5vw,4.8rem) 0 clamp(1.6rem,3vw,2.8rem); background:linear-gradient(180deg,#f5efe5 0,#faf7f1 100%); border-bottom:1px solid var(--ff-border); }
.resource-hero__grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr); gap:clamp(2rem,5vw,5rem); align-items:center; }
.resource-hero__copy h1 { max-width:780px; margin:.25rem 0 .9rem; }
.resource-hero__copy > p:not(.eyebrow) { max-width:690px; margin:0; color:var(--ff-muted); font-size:clamp(1rem,1.5vw,1.18rem); line-height:1.65; }
.resource-hero__media { overflow:hidden; min-height:290px; border-radius:22px; box-shadow:var(--ff-shadow); }
.resource-hero__media img { width:100%; height:100%; min-height:290px; object-fit:cover; object-position:55% center; }
.resource-back-link { display:inline-flex; margin-top:1rem; color:var(--ff-brand); font-size:.82rem; font-weight:850; text-decoration:none; }
.resource-back-link:hover { color:var(--ff-accent); }

.resource-hub-intro { padding:0 0 1.2rem; background:var(--ff-cream); }
.resource-hub-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--ff-border); border-radius:18px; overflow:hidden; background:#fff; transform:translateY(-1px); }
.resource-hub-stat-grid > div { min-width:0; padding:1rem 1.1rem; border-right:1px solid var(--ff-border); }
.resource-hub-stat-grid > div:last-child { border-right:0; }
.resource-hub-stat-grid strong { display:block; margin-bottom:.2rem; color:var(--ff-brand-dark); font-family:var(--ff-serif); font-size:1rem; }
.resource-hub-stat-grid span { color:var(--ff-muted); font-size:.68rem; line-height:1.45; }

.resource-content-zone { background:#fff; }
.resource-editor-content { max-width:1120px; margin:0 auto; }
.resource-editor-content > h2 { margin-top:clamp(2rem,5vw,3.6rem); }
.resource-answer-box { margin:0 0 2rem; padding:clamp(1.2rem,3vw,2rem); border:1px solid rgba(24,79,75,.15); border-radius:18px; background:linear-gradient(135deg,var(--ff-soft-green),#fff 76%); }
.resource-answer-box h2 { margin-top:0; }
.resource-answer-box p:last-child { margin-bottom:0; }

.resource-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:1rem 0 1.6rem; }
.resource-card { position:relative; display:grid; align-content:start; min-height:200px; padding:1.15rem; overflow:hidden; border:1px solid var(--ff-border); border-radius:16px; background:#fff; color:var(--ff-ink); text-decoration:none; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.resource-card::after { content:''; position:absolute; inset:auto -25px -35px auto; width:100px; height:100px; border-radius:50%; background:rgba(108,141,123,.11); }
.resource-card:hover { transform:translateY(-2px); border-color:rgba(24,79,75,.35); box-shadow:var(--ff-shadow-soft); }
.resource-card > span { color:var(--ff-accent); font-size:.58rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.resource-card > strong { display:block; margin:.3rem 0 .4rem; color:var(--ff-brand-dark); font-family:var(--ff-serif); font-size:1.25rem; }
.resource-card > p { margin:0 0 .85rem; color:var(--ff-muted); font-size:.72rem; line-height:1.55; }
.resource-card > b { margin-top:auto; color:var(--ff-brand); font-size:.68rem; }
.resource-card--upholstery::after { background:rgba(185,79,50,.10); }
.resource-card--tool { background:linear-gradient(150deg,#fff,var(--ff-cream)); }

.resource-check-list { display:grid; gap:.5rem; padding-left:1.2rem; }
.resource-check-list li { padding-left:.2rem; }
.resource-check-list strong { color:var(--ff-brand-dark); }

.resource-table { margin:1rem 0 1.5rem; }
.resource-table table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid var(--ff-border); border-radius:14px; }
.resource-table th,.resource-table td { padding:.72rem .78rem; border-right:1px solid var(--ff-border); border-bottom:1px solid var(--ff-border); vertical-align:top; }
.resource-table th:last-child,.resource-table td:last-child { border-right:0; }
.resource-table tr:last-child td { border-bottom:0; }
.resource-table thead th { background:var(--ff-brand); color:#fff; font-size:.7rem; text-align:left; }
.resource-table tbody td { color:var(--ff-ink); font-size:.7rem; line-height:1.45; }
.resource-table tbody tr:nth-child(even) td { background:#fbfaf6; }

.formula-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin:1rem 0 1.6rem; }
.formula-card { min-width:0; padding:1rem; border:1px solid var(--ff-border); border-radius:14px; background:#fff; }
.formula-card span { display:block; color:var(--ff-accent); font-size:.58rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.formula-card strong { display:block; margin:.28rem 0 .35rem; color:var(--ff-brand-dark); font-family:var(--ff-serif); font-size:1rem; overflow-wrap:anywhere; }
.formula-card p { margin:0; color:var(--ff-muted); font-size:.68rem; line-height:1.48; }

.resource-editor-content .wp-block-details { margin:0 0 .7rem; padding:.9rem 1rem; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
.resource-editor-content .wp-block-details summary { cursor:pointer; color:var(--ff-brand-dark); font-weight:800; }

.primary-menu .resources-auto-submenu { min-width:250px; }
.primary-menu .resources-auto-submenu a { white-space:nowrap; }

@media (max-width:900px) {
  .resource-hero__grid { grid-template-columns:1fr; }
  .resource-hero__media { min-height:230px; }
  .resource-hero__media img { min-height:230px; }
  .resource-hub-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .resource-hub-stat-grid > div:nth-child(2) { border-right:0; }
  .resource-hub-stat-grid > div:nth-child(-n+2) { border-bottom:1px solid var(--ff-border); }
}

@media (max-width:680px) {
  .resource-hero { padding-top:1.55rem; }
  .resource-card-grid,.formula-grid { grid-template-columns:1fr; }
  .resource-card { min-height:0; }
  .resource-hub-stat-grid { grid-template-columns:1fr; }
  .resource-hub-stat-grid > div { border-right:0; border-bottom:1px solid var(--ff-border); }
  .resource-hub-stat-grid > div:last-child { border-bottom:0; }

  .resource-table { overflow:visible; }
  .resource-table table,.resource-table thead,.resource-table tbody,.resource-table tr,.resource-table th,.resource-table td { display:block; width:100%; }
  .resource-table thead { display:none; }
  .resource-table tr { margin:0 0 .65rem; overflow:hidden; border:1px solid var(--ff-border); border-radius:12px; background:#fff; }
  .resource-table table { border:0; border-radius:0; }
  .resource-table td { position:relative; padding:.64rem .72rem; border:0; border-bottom:1px solid var(--ff-border); background:#fff !important; }
  .resource-table td:last-child { border-bottom:0; }
  .resource-table td::before { display:block; margin-bottom:.15rem; color:var(--ff-muted); font-size:.53rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }

  .width-chart-table td:nth-child(1)::before { content:'Fabric / use'; }
  .width-chart-table td:nth-child(2)::before { content:'Common widths'; }
  .width-chart-table td:nth-child(3)::before { content:'Planning note'; }

  .weight-chart-table td:nth-child(1)::before { content:'GSM'; }
  .weight-chart-table td:nth-child(2)::before { content:'oz/yd²'; }
  .weight-chart-table td:nth-child(3)::before { content:'kg/m²'; }
  .weight-chart-table td:nth-child(4)::before { content:'lb/yd²'; }
}



/* Calculator Category Hubs — v5.6 */
.calculator-category-hero { position:relative; overflow:hidden; padding:clamp(2.4rem,6vw,5.4rem) 0; background:linear-gradient(135deg,#f7f1e8 0,#faf7f1 64%,#edf3ef 100%); border-bottom:1px solid var(--ff-border); }
.calculator-category-hero::after { content:''; position:absolute; width:360px; height:360px; right:-130px; bottom:-220px; border:1px solid rgba(24,79,75,.12); border-radius:50%; box-shadow:0 0 0 46px rgba(24,79,75,.025),0 0 0 92px rgba(185,79,50,.025); }
.calculator-category-hero__grid { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.48fr); gap:clamp(2rem,6vw,6rem); align-items:center; }
.calculator-category-hero__copy h1 { max-width:780px; margin:.3rem 0 .9rem; }
.calculator-category-hero__copy > p:not(.eyebrow) { max-width:730px; margin:0; color:var(--ff-muted); font-size:clamp(1rem,1.6vw,1.18rem); line-height:1.65; }
.calculator-category-hero__stats { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.15rem; }
.calculator-category-hero__stats span { display:inline-flex; align-items:baseline; gap:.28rem; padding:.45rem .7rem; border:1px solid rgba(24,79,75,.14); border-radius:999px; background:rgba(255,255,255,.72); color:var(--ff-muted); font-size:.65rem; }
.calculator-category-hero__stats strong { color:var(--ff-brand-dark); font-size:.85rem; }
.calculator-category-hero__visual { position:relative; display:grid; place-items:center; min-height:260px; }
.calculator-category-hero__icon { position:relative; z-index:2; width:150px; height:150px; display:grid; place-items:center; border:1px solid rgba(24,79,75,.16); border-radius:28px; background:rgba(255,255,255,.82); box-shadow:var(--ff-shadow); transform:rotate(-3deg); }
.calculator-category-hero__icon img { width:78px; height:78px; object-fit:contain; opacity:.72; }
.calculator-category-hero__lines { position:absolute; inset:16px 0; display:grid; align-content:space-around; transform:rotate(9deg); }
.calculator-category-hero__lines span { display:block; height:1px; background:linear-gradient(90deg,transparent,rgba(24,79,75,.18),transparent); }
.calculator-category-hero--upholstery .calculator-category-hero__icon { border-color:rgba(185,79,50,.22); }
.calculator-category-hero--curtains .calculator-category-hero__icon { transform:rotate(3deg); }

.calculator-category-tools { padding:clamp(2.2rem,5vw,4.5rem) 0; background:#fff; }
.calculator-category-heading { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:2rem; align-items:end; margin-bottom:1rem; padding-bottom:1rem; border-bottom:1px solid var(--ff-border); }
.calculator-category-heading h2 { margin:.18rem 0 0; }
.calculator-category-heading > p { max-width:640px; justify-self:end; margin:0; color:var(--ff-muted); font-size:.75rem; line-height:1.55; }
.calculator-category-heading--secondary { margin-top:clamp(2.4rem,5vw,4rem); grid-template-columns:1fr; }

.calculator-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.calculator-category-card { position:relative; min-width:0; min-height:205px; display:grid; align-content:start; padding:1.1rem; border:1px solid var(--ff-border); border-radius:15px; background:#fff; color:var(--ff-ink); text-decoration:none; box-shadow:0 1px 0 rgba(23,49,47,.02); transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
a.calculator-category-card:hover { transform:translateY(-2px); border-color:rgba(24,79,75,.38); box-shadow:var(--ff-shadow-soft); }
.calculator-category-card__type { color:var(--ff-accent); font-size:.55rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.calculator-category-card > strong { display:block; margin:.32rem 0 .42rem; color:var(--ff-brand-dark); font-family:var(--ff-serif); font-size:1.12rem; line-height:1.15; }
.calculator-category-card > p { margin:0 0 .9rem; color:var(--ff-muted); font-size:.69rem; line-height:1.52; }
.calculator-category-card > b { margin-top:auto; color:var(--ff-brand); font-size:.65rem; }
.calculator-category-card.is-unavailable { border-style:dashed; background:#fbfaf7; opacity:.68; }
.calculator-category-card.is-unavailable > strong { color:#526662; }
.calculator-category-card__status { color:var(--ff-muted) !important; }
.calculator-category-grid--resources .calculator-category-card { min-height:175px; background:linear-gradient(145deg,#fff,#f8f4ec); }

.calculator-category-copy { background:var(--ff-cream); border-top:1px solid var(--ff-border); }
.calculator-category-editor-content { max-width:820px; margin:0 auto; }
.calculator-category-editor-content > h2:first-child { margin-top:0; }
.calculator-category-editor-content h3 { color:var(--ff-brand-dark); }

.calculator-category-footer-cta { padding:clamp(2rem,4vw,3rem) 0; background:var(--ff-brand); color:#fff; }
.calculator-category-footer-cta__inner { display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.calculator-category-footer-cta h2 { margin:.15rem 0 .35rem; color:#fff; }
.calculator-category-footer-cta p:not(.eyebrow) { margin:0; color:rgba(255,255,255,.78); font-size:.76rem; }
.calculator-category-footer-cta .eyebrow { color:#f0a28d; }
.calculator-category-footer-cta a { flex:0 0 auto; display:inline-flex; align-items:center; min-height:46px; padding:.7rem 1rem; border-radius:999px; background:#fff; color:var(--ff-brand); font-size:.7rem; font-weight:900; text-decoration:none; }

@media (max-width:900px) {
  .calculator-category-hero__grid { grid-template-columns:1fr minmax(180px,.35fr); gap:2rem; }
  .calculator-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:680px) {
  .calculator-category-hero { padding-top:1.7rem; }
  .calculator-category-hero__grid { grid-template-columns:1fr; }
  .calculator-category-hero__visual { min-height:175px; }
  .calculator-category-hero__icon { width:120px; height:120px; border-radius:22px; }
  .calculator-category-hero__icon img { width:62px; height:62px; }
  .calculator-category-heading { grid-template-columns:1fr; gap:.6rem; }
  .calculator-category-heading > p { justify-self:start; }
  .calculator-category-grid { grid-template-columns:1fr; }
  .calculator-category-card { min-height:0; }
  .calculator-category-footer-cta__inner { display:grid; }
  .calculator-category-footer-cta a { justify-self:start; }
}
