/* ==========================================================================
   TurningPeel - Bespoke Wood-Fired Culinary Magazine & Bakehouse Lab
   Aesthetic: Gozney x Bon Appétit Editorial Hearth
   Palette:
     Charred Leopard-Crust Espresso : #181210
     San Marzano Tomato             : #d9381e
     Tipo-00 Flour Cream            : #faf5ec
     Extra-Virgin Olive Gold        : #c9963b
     Crisp Studio Card Surface      : #ffffff
   Typography: Fraunces (Display) · DM Sans (Body) · IBM Plex Mono (Specs)
   ========================================================================== */

:root {
  --espresso: #181210;
  --espresso-soft: #241c19;
  --espresso-elev: #2e2420;
  --tomato: #d9381e;
  --tomato-deep: #b52b14;
  --tomato-tint: #fcebe7;
  --cream: #faf5ec;
  --parchment: #f2eadc;
  --parchment-deep: #e6dac6;
  --gold: #c9963b;
  --gold-ink: #8a6116;
  --gold-tint: #f8f0df;
  --studio: #ffffff;
  --ink: #181210;
  --ink-2: #4a3f3a;
  --ink-3: #6e6059;
  --line: #dfd3bf;
  --line-strong: #c8b89e;
  --dark-line: rgba(250, 245, 236, 0.14);
  --herbal: #2f5233;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 2px 10px rgba(24, 18, 16, 0.05), 0 1px 2px rgba(24, 18, 16, 0.04);
  --shadow-hover: 0 16px 34px rgba(24, 18, 16, 0.11), 0 3px 8px rgba(24, 18, 16, 0.06);
  --shadow-hearth: 0 24px 60px rgba(0, 0, 0, 0.36);
  --wrap: 1360px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--cream);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--parchment);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* Accessibility skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--tomato);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip:focus {
  left: 14px;
}

/* ==========================================================================
   Sticky Architectural Masthead (Zero Generic Pills)
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(24, 18, 16, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 150, 59, 0.28);
  color: var(--cream);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  flex-shrink: 0;
}

.logo-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.wordmark-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  color: inherit;
}

.wordmark i {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  margin-left: 1px;
}

.wordmark-sub {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(250, 245, 236, 0.68);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(250, 245, 236, 0.8);
  transition: color 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #ffffff;
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a.nav-accent {
  color: var(--gold);
  font-weight: 600;
}

.nav a.nav-accent:hover,
.nav a.nav-accent[aria-current="page"] {
  color: #ffd37d;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(250, 245, 236, 0.18);
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.action-link:hover,
.action-link[aria-current="page"] {
  border-color: var(--gold);
  background: rgba(201, 150, 59, 0.14);
}

.action-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saved-pill em {
  font-style: normal;
  font-size: 0.76rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--tomato);
  color: #ffffff;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(250, 245, 236, 0.24);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-ico {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.menu-ico::before,
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.menu-ico::before { top: -5px; }
.menu-ico::after { top: 5px; }

/* Mobile Slide-over Menu */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(14, 10, 9, 0.72);
  backdrop-filter: blur(4px);
}

.menu-sheet[hidden] {
  display: none !important;
}

.menu-panel {
  margin-left: auto;
  width: min(360px, 90vw);
  height: 100%;
  background: var(--espresso);
  color: var(--cream);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(201, 150, 59, 0.3);
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dark-line);
}

.menu-body {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  overflow-y: auto;
}

.menu-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--cream);
}

.menu-body a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Buttons & Interactive Controls (44px Touch Targets Enforced)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.14s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--tomato);
  border-color: var(--tomato);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--tomato-deep);
  border-color: var(--tomato-deep);
}

.btn.hearth-ghost {
  background: rgba(250, 245, 236, 0.06);
  border-color: rgba(250, 245, 236, 0.32);
  color: var(--cream);
}

.btn.hearth-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 150, 59, 0.16);
  color: #ffffff;
}

.btn.olive {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}

.btn.olive:hover {
  background: var(--espresso-elev);
}

.btn.ghost {
  background: var(--studio);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: var(--espresso);
  background: var(--parchment);
}

.btn.sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.84rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tomato-deep);
}

.eyebrow a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Full-Bleed Wood-Fired Culinary Editorial Hero (Zero Stat Counters)
   ========================================================================== */
.hero-hearth {
  position: relative;
  background:
    radial-gradient(circle at 18% 22%, rgba(217, 56, 30, 0.22), transparent 46%),
    radial-gradient(circle at 82% 76%, rgba(201, 150, 59, 0.16), transparent 48%),
    linear-gradient(165deg, #1d1512 0%, #181210 56%, #120d0c 100%);
  color: var(--cream);
  padding: 52px 0 46px;
  border-bottom: 3px solid var(--tomato);
  overflow: hidden;
}

.hero-hearth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(250, 245, 236, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(250, 245, 236, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-editorial {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 44px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-left: 3px solid var(--tomato);
  background: rgba(250, 245, 236, 0.06);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.55rem, 4.6vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: #ffffff;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.11rem;
  line-height: 1.62;
  color: rgba(250, 245, 236, 0.84);
  max-width: 56ch;
  margin: 0 0 26px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-notes-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(250, 245, 236, 0.72);
}

.hero-notes-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes-line span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Luminous Studio Lookbook Showcase inside Hero */
.hero-showcase {
  background: rgba(250, 245, 236, 0.04);
  border: 1px solid rgba(201, 150, 59, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-hearth);
}

.showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.72);
}

.showcase-bar strong {
  color: var(--gold);
}

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

.studio-tile {
  display: flex;
  flex-direction: column;
  background: var(--studio);
  color: var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(24, 18, 16, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.studio-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.studio-tile-img {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0e9dd;
}

.studio-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-tile-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.studio-tile-body {
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.studio-tile-maker {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tomato-deep);
  font-weight: 600;
}

.studio-tile-title {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.24;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.studio-tile-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* Maker Colophon Ribbon */
.maker-ribbon {
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.maker-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}

.maker-ribbon-inner::-webkit-scrollbar {
  display: none;
}

.maker-ribbon-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  flex-shrink: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line-strong);
}

.maker-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.16s ease;
}

.maker-link:hover {
  color: var(--tomato-deep);
}

/* ==========================================================================
   Interactive Bakehouse Lab (#bake-bench)
   ========================================================================== */
.lab-band {
  padding: 54px 0 22px;
}

.editorial-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--espresso);
}

.editorial-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

.editorial-head p {
  margin: 6px 0 0;
  color: var(--ink-2);
  max-width: 62ch;
}

.editorial-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tomato-deep);
  white-space: nowrap;
}

.editorial-more:hover {
  text-decoration: underline;
}

.bench-shell {
  background: var(--studio);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.bench-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--espresso);
  border-bottom: 1px solid var(--espresso);
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 12px 20px;
  border: none;
  border-right: 1px solid var(--dark-line);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(250, 245, 236, 0.72);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn .tab-idx {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.tab-btn .tab-title {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
}

.tab-btn:hover {
  background: rgba(250, 245, 236, 0.05);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--espresso-soft);
  color: #ffffff;
  border-bottom-color: var(--tomato);
}

#bench-panel {
  padding: 28px;
}

.bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.bench-controls {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.style-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: var(--studio);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.style-preset-btn strong {
  font-family: var(--display);
  font-size: 0.96rem;
  color: var(--ink);
}

.style-preset-btn span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.style-preset-btn:hover {
  border-color: var(--espresso);
}

.style-preset-btn.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}

.style-preset-btn.active strong {
  color: #ffffff;
}

.style-preset-btn.active span {
  color: var(--gold);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field-label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label .mono {
  color: var(--tomato-deep);
  font-weight: 600;
}

.ctrl-select,
.ctrl-input {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--studio);
  color: var(--ink);
  font-size: 0.92rem;
}

.ctrl-select:focus,
.ctrl-input:focus {
  outline: 2px solid var(--tomato);
  outline-offset: 1px;
  border-color: var(--tomato);
}

.ctrl-range {
  width: 100%;
  min-height: 44px;
  accent-color: var(--tomato);
  cursor: pointer;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--studio);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.choice-pill:hover {
  border-color: var(--espresso);
  color: var(--ink);
}

.choice-pill.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #ffffff;
}

.bench-output {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.formula-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.formula-head h3 {
  font-family: var(--display);
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 4px 0 0;
}

/* Visual Ingredient Ratio Bar */
.ratio-bar-wrap {
  margin-bottom: 16px;
}

.ratio-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--parchment-deep);
  border: 1px solid rgba(24, 18, 16, 0.1);
}

.ratio-seg-flour { background: var(--gold); }
.ratio-seg-water { background: #3b6e8c; }
.ratio-seg-minor { background: var(--tomato); }

.ratio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}

.ratio-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

/* Baker's Weight Table */
.weight-table,
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.weight-table th,
.weight-table td,
.matrix-table th,
.matrix-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #efe7d8;
}

.weight-table th,
.matrix-table th {
  background: var(--parchment);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.weight-table tr:last-child td,
.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tr.is-match {
  background: var(--gold-tint);
}

.matrix-table tr.is-match td:first-child {
  border-left: 3px solid var(--tomato);
  font-weight: 700;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.spec-tile {
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-tile span {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.spec-tile strong {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Visual Oven Mouth & Peel Clearance Diagram */
.peel-diagram-card {
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.peel-diagram-svg {
  width: 190px;
  height: 82px;
  flex-shrink: 0;
}

.peel-diagram-copy {
  font-size: 0.84rem;
  line-height: 1.45;
}

.peel-diagram-copy strong {
  display: block;
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.78rem;
  margin-bottom: 3px;
}

/* Visual Proofing Box Ball-Packing Preview */
.tray-pack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.tray-box-vis {
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  min-width: 118px;
}

.tray-box-vis span {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.tray-balls-dots {
  display: grid;
  grid-template-columns: repeat(2, 22px);
  gap: 6px;
}

.tray-ball-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1.5px solid var(--gold);
}

.spec-notes {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--parchment);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.spec-notes p {
  margin: 0 0 6px;
}

.spec-notes p:last-child {
  margin-bottom: 0;
}

.matched-strip {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sec-head h2,
.sec-head h3 {
  font-family: var(--display);
  margin: 4px 0 0;
  letter-spacing: -0.015em;
}

.sec-head h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.sec-head h3 {
  font-size: 1.2rem;
}

.sec-head > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tomato-deep);
  white-space: nowrap;
}

.sec-head > a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Category Atelier Grid & Storefront Sections
   ========================================================================== */
.sec {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.cat-atelier-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 126px;
  padding: 16px 14px;
  background: var(--studio);
  border: 1px solid var(--line);
  border-top: 3px solid var(--espresso);
  border-radius: var(--radius-xs);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--tomato);
  box-shadow: var(--shadow-hover);
}

.cat-card-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold-ink);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cat-card h3 {
  font-family: var(--display);
  font-size: 0.98rem;
  line-height: 1.25;
  margin: 10px 0 0;
  color: var(--ink);
}

/* Grids */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

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

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

/* ==========================================================================
   Luminous Studio Product Cards (#ffffff Studio Bay)
   ========================================================================== */
.p-card {
  display: flex;
  flex-direction: column;
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.p-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.p-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: 1px solid #f0e8da;
  overflow: hidden;
}

.p-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.p-img-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.p-card:hover .p-img-link img {
  transform: scale(1.035);
}

.badge-deal {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--tomato);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.save-fab {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(24, 18, 16, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s ease;
}

.save-fab svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.save-fab:hover {
  border-color: var(--espresso);
  color: var(--espresso);
}

.save-fab.on {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--gold);
}

.save-fab.on svg {
  fill: currentColor;
}

.p-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-brand {
  color: var(--tomato-deep);
  font-weight: 600;
}

.p-brand:hover {
  text-decoration: underline;
}

.p-title {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0 0 10px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-title a:hover {
  color: var(--tomato-deep);
}

.p-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.sz-chip {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.p-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #f2eadc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.p-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.p-price strong {
  font-size: 1.06rem;
  color: var(--ink);
}

.p-price s {
  font-size: 0.77rem;
  color: var(--ink-3);
}

/* ==========================================================================
   Curated Bake Kits & Video Dispatches
   ========================================================================== */
.kit-card {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.kit-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-right: 1px solid var(--line);
}

.kit-thumbs a {
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kit-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kit-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.kit-body h3 {
  font-family: var(--display);
  font-size: 1.22rem;
  margin: 5px 0 8px;
  line-height: 1.25;
}

.kit-body h3 a:hover {
  color: var(--tomato-deep);
}

.kit-body p {
  margin: 0 0 14px;
  font-size: 0.91rem;
  color: var(--ink-2);
}

.kit-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f2eadc;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Video Cards */
.v-card {
  display: flex;
  flex-direction: column;
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.v-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--espresso);
  cursor: pointer;
  overflow: hidden;
}

.v-media img,
.v-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.v-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(217, 56, 30, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  transition: transform 0.18s ease, background 0.18s ease;
}

.v-media:hover .v-play {
  transform: scale(1.08);
  background: var(--tomato);
}

.v-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 2px;
}

.v-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(24, 18, 16, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
}

.v-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.v-title {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.34;
  margin: 0 0 10px;
}

.v-title a:hover {
  color: var(--tomato-deep);
}

.v-stats {
  margin-top: auto;
  font-size: 0.74rem;
  color: var(--ink-3);
}

/* ==========================================================================
   Subpages, Filter Bars, Maker Cards, Product Detail & Trust Pages
   ========================================================================== */
.page-head {
  padding: 38px 0 24px;
  border-bottom: 2px solid var(--espresso);
  margin-bottom: 24px;
}

.page-head h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.lede {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0 0 14px;
}

.fine {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.filter-bar .ctrl-input {
  flex: 1 1 240px;
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.brand-card {
  background: var(--studio);
  border: 1px solid var(--line);
  border-top: 3px solid var(--espresso);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.brand-card h2 a:hover {
  color: var(--tomato-deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  padding: 36px 0 20px;
  align-items: start;
}

.detail-media {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-info h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.15;
  margin: 8px 0 14px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-price strong {
  font-size: 1.65rem;
  color: var(--ink);
}

.detail-price s {
  font-size: 1.05rem;
  color: var(--ink-3);
}

.badge-inline {
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--tomato);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Trust & Editorial Legal Pages */
.trust-page {
  max-width: 780px;
  padding: 38px 0 56px;
}

.trust-page h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  margin: 6px 0 14px;
}

.trust-page h2 {
  font-family: var(--display);
  font-size: 1.38rem;
  margin: 28px 0 10px;
}

.trust-page p,
.trust-page li {
  color: var(--ink-2);
  line-height: 1.68;
}

.trust-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.trust-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--studio);
  font-size: 0.86rem;
  font-weight: 600;
}

.trust-nav a.on {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #ffffff;
}

.callout {
  padding: 16px 18px;
  background: var(--parchment);
  border-left: 3px solid var(--tomato);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin: 18px 0;
}

/* ==========================================================================
   Editorial Footer, Toast & Feedback Trigger Rules
   ========================================================================== */
.foot {
  margin-top: 56px;
  background: var(--espresso);
  color: rgba(250, 245, 236, 0.82);
  border-top: 3px solid var(--gold);
  padding: 48px 0 54px;
}

.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
}

.foot-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.foot-brand .wordmark {
  color: #ffffff;
}

.foot-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.foot-tag {
  margin: 0 0 12px;
  max-width: 48ch;
  color: rgba(250, 245, 236, 0.8);
}

.foot-fee,
.foot-fine {
  font-size: 0.82rem;
  color: rgba(250, 245, 236, 0.6);
  margin: 6px 0 0;
  max-width: 54ch;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 18px;
}

.foot-nav a,
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 0.88rem;
  color: rgba(250, 245, 236, 0.78);
  cursor: pointer;
}

.foot-nav a:hover,
.foot-link:hover {
  color: var(--gold);
}

.foot-fb-dot {
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  color: rgba(250, 245, 236, 0.35);
  cursor: pointer;
  text-align: left;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  background: var(--espresso);
  border: 1px solid var(--gold);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-hearth);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.on {
  opacity: 1;
  transform: translateY(0);
}

/* Hide floating feedback button by default; reveal on triple-tap logo */
#htfb-btn {
  display: none !important;
}

body.show-feedback #htfb-btn {
  display: flex !important;
}

/* ==========================================================================
   Responsive Breakpoints (1440px -> Tablet -> Mobile -> <=374px)
   ========================================================================== */
@media (max-width: 1160px) {
  .cat-atelier-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nav {
    gap: 14px;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .hero-editorial,
  .bench-grid,
  .detail-grid,
  .foot-inner {
    grid-template-columns: 1fr;
  }
  .bench-tabs {
    grid-template-columns: 1fr;
  }
  .tab-btn {
    border-right: none;
    border-bottom: 1px solid var(--dark-line);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 14px;
  }
  .hide-sm,
  .hide-xs {
    display: none;
  }
  .hero-hearth {
    padding: 34px 0 32px;
  }
  .showcase-grid,
  .style-deck-grid,
  .field-row,
  .spec-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .p-card {
    min-width: 0;
  }
  .p-img-link {
    padding: 8px;
  }
  .p-body {
    padding: 10px;
    min-width: 0;
  }
  .p-title {
    font-size: 0.9rem;
    margin-bottom: 7px;
  }
  .p-sizes {
    display: none;
  }
  .p-foot {
    gap: 6px;
  }
  .p-price strong {
    font-size: 0.95rem;
  }
  .p-store-btn {
    padding: 6px 9px;
    font-size: 0.78rem;
  }
  .cat-atelier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kit-card {
    grid-template-columns: 1fr;
  }
  .kit-thumbs {
    border-right: none;
    border-bottom: 1px solid var(--line);
    height: 180px;
  }
  #bench-panel {
    padding: 18px 14px;
  }
  .peel-diagram-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   V6 Product-First Wood-Fired Hearth Hero, Shop Navbar CTA & YouTube Pizza Hub
   ========================================================================== */
.nav a.nav-shop-pill {
  background: var(--tomato);
  color: #ffffff;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 999px;
  min-height: 38px;
  margin-right: 4px;
}
.nav a.nav-shop-pill::after { display: none; }
.nav a.nav-shop-pill:hover,
.nav a.nav-shop-pill[aria-current="page"] {
  background: var(--tomato-deep);
  color: #ffffff;
}
.nav a.nav-yt-link {
  color: #ffd996;
  font-weight: 600;
}
.nav a.nav-yt-link:hover,
.nav a.nav-yt-link[aria-current="page"] {
  color: #ffffff;
}

.hearth-hero {
  background:
    radial-gradient(circle at 10% 8%, rgba(217, 56, 30, 0.10), transparent 36%),
    radial-gradient(circle at 90% 6%, rgba(201, 150, 59, 0.15), transparent 38%),
    linear-gradient(180deg, #f4ead8 0%, var(--cream) 340px);
  padding: 18px 0 24px;
  border-bottom: 2px solid var(--line-strong);
}

.hearth-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hearth-hero-copy {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 100%;
}

.hearth-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.ember-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-left: 3px solid var(--tomato);
  border-radius: var(--radius-xs);
  background: var(--espresso);
  color: #ffd996;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hearth-stat-line {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hearth-stat-line a {
  color: var(--tomato-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hearth-hero-h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.58rem, 2.55vw, 2.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.hearth-hero-h em {
  font-style: italic;
  font-weight: 600;
  color: var(--tomato-deep);
}

.hearth-hero-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 360px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}

.hearth-search-box {
  position: relative;
  flex: 1 1 210px;
  min-width: 0;
  max-width: 100%;
}

.hearth-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--tomato-deep);
  stroke-width: 2.1;
  stroke-linecap: round;
  pointer-events: none;
}

.hearth-search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 36px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line-strong);
  background: var(--studio);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(24, 18, 16, 0.04);
}

.hearth-search-box input::placeholder {
  color: var(--ink-3);
}

.hearth-search-box input:focus {
  outline: 2px solid var(--tomato);
  border-color: var(--tomato);
}

#home-sort {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line-strong);
  background: var(--studio);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.hearth-lab-btn {
  border-color: var(--gold);
}

.hearth-filter-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hearth-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 11px;
  border-radius: var(--radius-xs);
  background: var(--studio);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hearth-chip em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
}

.hearth-chip:hover,
.hearth-chip.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #ffffff;
}

.hearth-chip:hover em,
.hearth-chip.active em {
  color: #ffd996;
}

.hearth-sale-chip {
  background: var(--tomato-tint);
  border-color: rgba(217, 56, 30, 0.42);
  color: var(--tomato-deep);
}

.hearth-sale-chip em {
  color: var(--tomato-deep);
}

.hearth-sale-chip:hover,
.hearth-sale-chip.active {
  background: var(--tomato-deep);
  border-color: var(--tomato-deep);
  color: #ffffff;
}

.hearth-sale-chip:hover em,
.hearth-sale-chip.active em {
  color: #ffffff;
}

.hearth-live-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
}

.hero-prod-grid {
  gap: 16px;
}

.hero-prod-grid .p-media {
  aspect-ratio: 1 / 0.84;
}

.hero-prod-grid .p-img-link {
  padding: 10px;
}

.hero-prod-grid .p-body {
  padding: 12px 13px 13px;
}

.hero-prod-grid .p-sizes {
  display: none;
}

.hero-more-row {
  margin-top: 18px;
}

.hearth-empty-box {
  background: var(--studio);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
}

.hearth-empty-box p {
  margin: 0 0 12px;
  color: var(--ink-2);
}

.yt-creator-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
}

.yt-creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--studio);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.yt-creator-pill:hover,
.yt-creator-pill.active {
  border-color: var(--tomato);
  background: var(--tomato-tint);
  color: var(--tomato-deep);
}

.yt-creator-pill .sub-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}

.creator-roster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.creator-card-v4 {
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.creator-card-v4 h3 {
  font-family: var(--display);
  font-size: 1.06rem;
  margin: 0 0 2px;
}

.creator-handle-line {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--tomato-deep);
}

.creator-bio-v4 {
  font-size: 0.85rem;
  line-height: 1.48;
  color: var(--ink-2);
  margin: 0;
}

.creator-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .creator-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hearth-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hearth-hero-copy,
  .hearth-hero-controls {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
  }
  .hearth-search-box {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .creator-roster-grid {
    grid-template-columns: 1fr;
  }
  .hearth-hero {
    padding: 12px 0 18px;
  }
  .hearth-hero-top {
    margin-bottom: 9px;
    gap: 8px;
  }
  .hearth-hero-controls {
    gap: 6px;
  }
  #home-sort {
    flex: 1 1 150px;
    min-width: 0;
    padding: 0 10px;
    font-size: 0.8rem;
  }
  .hearth-lab-btn {
    padding: 8px 11px;
    font-size: 0.8rem;
  }
  .hearth-filter-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: calc(100vw - 28px);
    padding-bottom: 4px;
    margin-bottom: 10px;
    scrollbar-width: none;
  }
  .hearth-filter-rail::-webkit-scrollbar {
    display: none;
  }
  .hearth-filter-rail .hearth-chip {
    flex-shrink: 0;
  }
  .hearth-live-count {
    display: none;
  }
  .hero-prod-grid {
    gap: 10px;
  }
  .hero-prod-grid .p-body {
    padding: 9px 10px 10px;
  }
}

@media (max-width: 374px) {
  .wrap {
    padding: 0 10px;
  }
  .wordmark {
    font-size: 1.15rem;
  }
  .wordmark-sub {
    display: none;
  }
  .grid-4,
  .hero-prod-grid,
  .cat-atelier-grid,
  .foot-nav {
    grid-template-columns: 1fr;
  }
  .hearth-filter-rail {
    max-width: calc(100vw - 20px);
  }
}

/* ==========================================================================
   V5 Visual Atelier Showcase (#brands), Inline Bench Shop & Media Thumbs
   ========================================================================== */
.cat-card-thumb {
  width: 100%;
  height: 92px;
  background: #ffffff;
  border: 1px solid #f0e8da;
  border-radius: var(--radius-xs);
  padding: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Inline Shoppable Strip inside Interactive Calculators */
.bench-inline-shop {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.bench-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bench-inline-head a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tomato-deep);
}

.bench-inline-head a:hover {
  text-decoration: underline;
}

.bench-inline-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bench-mini-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  min-width: 0;
}

.bench-mini-thumb {
  width: 100%;
  height: 88px;
  padding: 6px;
  background: #ffffff;
  border-bottom: 1px solid #f2eadc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bench-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bench-mini-body {
  padding: 8px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.bench-mini-maker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tomato-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bench-mini-title {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bench-mini-foot {
  margin-top: auto;
  padding-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.78rem;
}

.bench-mini-buy {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tomato-deep);
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--tomato-tint);
}

/* Creator Card Video Preview Thumbnail */
.creator-card-v4 {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.creator-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #140e0c;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.creator-card-thumb img,
.creator-card-thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.creator-card-copy {
  padding: 13px 15px 8px;
}

.creator-card-v4 .creator-card-actions {
  padding: 6px 15px 14px;
}

/* 3-Column Visual Brand Showroom (#brands) */
.brand-Control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-Control-bar .ctrl-input {
  flex: 1 1 280px;
  max-width: 420px;
}

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

.bcard {
  display: flex;
  flex-direction: column;
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bcard:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.brand-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  aspect-ratio: 16 / 9.5;
  background: var(--parchment);
  padding: 6px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.brand-mosaic-cell {
  background: #ffffff;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.brand-mosaic-cell.is-lead {
  grid-row: 1 / span 2;
  padding: 10px;
}

.brand-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.24s ease;
}

.bcard:hover .brand-mosaic-cell img {
  transform: scale(1.04);
}

.bcard-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bcard-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bcard-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.bcard-pill-skus {
  background: var(--gold-tint);
  border-color: rgba(201, 150, 59, 0.42);
  color: var(--gold-ink);
}

.bcard-pill-sale {
  background: var(--tomato-tint);
  border-color: rgba(217, 56, 30, 0.34);
  color: var(--tomato-deep);
}

.bcard-title {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 2px 0 0;
  color: var(--ink);
}

.bcard-title a:hover {
  color: var(--tomato-deep);
}

.bcard-focus {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.48;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcard-policy {
  font-size: 0.77rem;
  line-height: 1.35;
  color: var(--ink-3);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bcard-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1080px) {
  .brand-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand-showcase-grid,
  .bench-inline-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Mobile fit: no side scroll on phones ---------------- */
@media (max-width: 480px) {
  .top-inner {
    gap: 8px;
  }
  .logo {
    min-width: 0;
    flex-shrink: 1;
    gap: 8px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
  .wordmark-stack {
    min-width: 0;
  }
  .wordmark {
    font-size: clamp(0.94rem, 4.6vw, 1.2rem);
    white-space: nowrap;
  }
  .wordmark-sub {
    display: none;
  }
  .top-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .action-link,
  .menu-btn {
    min-height: 42px;
    min-width: 42px;
    padding: 0 10px;
    gap: 5px;
    justify-content: center;
  }
  .menu-btn > span:not(.menu-ico) {
    display: none;
  }
  .toast {
    right: 16px;
    max-width: calc(100vw - 32px);
  }
}

/* Mobile fit: long head links wrap, controls stay inside the screen */
@media (max-width: 640px) {
  .sec-head,
  .editorial-head {
    flex-wrap: wrap;
  }
  .sec-head > a,
  .editorial-more {
    white-space: normal;
  }
  .ctrl-select,
  .ctrl-input {
    max-width: 100%;
    min-width: 0;
  }
}
html, body { overflow-x: clip; }

/* ==========================================================================
   Retail Filter Bar, Slide-Up Drawer & Integrated Editorial Feed
   ========================================================================== */
:root {
  --rf-ink: #181210;
  --rf-accent: #c23119;
  --rf-border: #d8cdbc;
  --rf-tint: #f5ede0;
}

.rf-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 12px 0 18px;
  box-sizing: border-box;
}

.rf-bar-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rf-search-field {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--rf-border);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 44px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rf-search-field:focus-within {
  border-color: var(--rf-accent);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.rf-search-field svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: var(--rf-ink);
  fill: none;
  stroke-width: 2;
  opacity: 0.65;
  margin-right: 9px;
}

.rf-search-field input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--rf-ink);
  font-size: 0.94rem;
  line-height: 1.25;
  padding: 8px 0 !important;
  margin: 0 !important;
  height: auto !important;
}

.rf-drawer-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.rf-drawer-trigger.has-active {
  border-color: var(--rf-accent);
  background: var(--rf-tint);
}

.rf-drawer-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.rf-badge[hidden] {
  display: none !important;
}

.rf-select-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.rf-pill-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--rf-border) !important;
  border-radius: 999px !important;
  color: var(--rf-ink) !important;
  font-size: 0.87rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  min-height: 42px !important;
  padding: 0 34px 0 14px !important;
  margin: 0 !important;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.rf-pill-select.is-active {
  border-color: var(--rf-accent) !important;
  background-color: var(--rf-tint) !important;
}

.rf-pill-select:focus {
  outline: 2px solid var(--rf-accent);
  outline-offset: 1px;
}

.rf-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--rf-ink);
  opacity: 0.72;
}

.rf-desktop-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.rf-sale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.rf-sale-btn.active {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #ffffff;
}

.rf-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px dashed var(--rf-accent);
  background: transparent;
  color: var(--rf-accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.rf-clear-btn[hidden] {
  display: none !important;
}

/* Slide-Up / Slide-Over Filter Drawer */
.rf-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 16, 24, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.rf-drawer[hidden] {
  display: none !important;
}

.rf-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rf-drawer-panel {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  background: #ffffff;
  color: var(--rf-ink);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.22s ease;
}

.rf-drawer.is-open .rf-drawer-panel {
  transform: translateY(0);
}

.rf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rf-border);
  background: #ffffff;
}

.rf-drawer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rf-ink);
}

.rf-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.rf-drawer-body {
  overflow-y: auto;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-overflow-scrolling: touch;
}

.rf-drawer-sec-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rf-ink);
  opacity: 0.72;
}

.rf-drawer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rf-drawer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.rf-drawer-pill.active {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #ffffff;
}

.rf-drawer-brand-shell {
  width: 100%;
}

.rf-drawer-brand-shell .rf-pill-select {
  width: 100%;
  min-height: 44px !important;
}

.rf-drawer-foot {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rf-border);
  background: #ffffff;
}

.rf-foot-reset {
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.rf-foot-apply {
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-accent);
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

/* Integrated Editorial & Shopping In-Feed Posts */
.rf-feed-beat {
  margin: 0 0 22px;
}

.rf-post-card {
  margin: 22px 0;
  padding: 22px 24px;
  background: #ffffff;
  border: 1.5px solid var(--rf-border);
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.rf-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.rf-post-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-accent);
  margin-bottom: 4px;
}

.rf-post-title {
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  line-height: 1.24;
  color: var(--rf-ink);
}

.rf-post-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rf-accent);
  text-decoration: none;
  white-space: nowrap;
}

.rf-post-link:hover {
  text-decoration: underline;
}

.rf-vid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rf-vid-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--rf-tint);
  border: 1px solid var(--rf-border);
  border-radius: 14px;
  overflow: hidden;
}

.rf-vid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.rf-vid-stage img,
.rf-vid-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.rf-vid-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 14, 24, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rf-vid-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rf-ink);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.rf-vid-meta {
  padding: 12px 14px;
}

.rf-vid-creator {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rf-accent);
  margin-bottom: 4px;
}

.rf-vid-name {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.32;
  font-weight: 600;
  color: var(--rf-ink);
}

/* Guide / Interactive Tool Callout Card */
.rf-post-guide {
  background: linear-gradient(135deg, #ffffff 0%, var(--rf-tint) 100%);
  border-left: 4px solid var(--rf-accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.rf-guide-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.rf-guide-sub {
  margin: 6px 0 12px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--rf-ink);
  opacity: 0.86;
}

.rf-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rf-guide-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--rf-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rf-ink);
}

.rf-guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rf-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--rf-accent);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.rf-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

/* Complete Setup / Kit Lookbook Post */
.rf-post-kit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.rf-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rf-kit-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--rf-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}

.rf-kit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rf-kit-info {
  min-width: 0;
}

.rf-kit-sum {
  margin: 6px 0 12px;
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--rf-ink);
  opacity: 0.85;
}

.rf-kit-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rf-kit-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rf-ink);
}

.rf-stream-sentinel {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.rf-more-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .rf-bar-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }
  .rf-search-field {
    grid-column: 1 / -1;
    width: 100%;
  }
  .rf-drawer-trigger {
    display: inline-flex;
    width: 100%;
  }
  .rf-sort-shell {
    width: 100%;
    display: flex;
  }
  .rf-sort-shell .rf-pill-select {
    width: 100%;
    min-height: 44px !important;
  }
  .rf-desktop-row,
  .rf-hero-cta {
    display: none !important;
  }
  .rf-post-card {
    padding: 16px;
    margin: 16px 0;
  }
  .rf-post-kit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .rf-vid-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .rf-kit-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pcard-meta > span,
  .pcard-meta .pcard-cat-tag,
  .prod-meta .spec-tag,
  .p-meta > span {
    display: none !important;
  }
  .pcard-meta,
  .prod-meta,
  .p-meta {
    flex-wrap: nowrap !important;
    overflow: hidden;
  }
}
