/* ==========================================================================
   BloomBricks theme layer on top of Pico CSS v2
   Load order: pico.min.css -> site.css
   Design tokens are identical to ui-html-last (1:1 visual parity).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --background: #fff;
  --foreground: #302a25;
  --card: #fefcf8;
  --card-foreground: #302a25;
  --popover: #fefcf8;
  --popover-foreground: #302a25;
  --primary: #2e3c31;
  --primary-foreground: #f9f5ec;
  --secondary: #ede5d9;
  --secondary-foreground: #38312c;
  --muted: #f0ebe2;
  --muted-foreground: #6f6860;
  --accent: #d0e4d3;
  --accent-foreground: #283e2e;
  --destructive: #bd4334;
  --destructive-foreground: #fcf8f0;
  --border: #ddd7ce;
  --input: #ddd7ce;
  --ring: #617865;
  --sage: #6e9076;
  --sage-foreground: #fcf8f0;
  --clay: #ae6e4c;
  --clay-foreground: #fcf8f0;
  --chart-1: #6e9076;
  --chart-2: #ae6e4c;
  --chart-3: #aa9e7b;
  --chart-4: #486a6c;
  --chart-5: #654f4b;
  --radius: 0.625rem;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Fraunces", ui-serif, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --card-shadow: 0 8px 30px -12px rgba(60, 50, 30, 0.25);
}

/* --------------------------------------------------------------------------
   2. Pico variable mapping (theme Pico's own components with our tokens)
   Selector mirrors Pico's own theme selectors so it wins the cascade.
   -------------------------------------------------------------------------- */
:root,
:root:not([data-theme=dark]),
[data-theme=light] {
  --pico-font-family-sans-serif: var(--font-sans);
  --pico-font-family: var(--font-sans);
  --pico-font-size: 100%;
  --pico-line-height: 1.5;
  --pico-border-radius: var(--radius);
  --pico-background-color: var(--background);
  --pico-color: var(--foreground);
  --pico-text-decoration: none;
  --pico-primary: var(--sage);
  --pico-primary-background: var(--primary);
  --pico-primary-border: var(--primary);
  --pico-primary-inverse: var(--primary-foreground);
  --pico-primary-hover: var(--accent-foreground);
  --pico-primary-hover-background: var(--primary);
  --pico-primary-underline: transparent;
  --pico-primary-focus: color-mix(in oklab, var(--ring) 30%, transparent);
  --pico-secondary: var(--muted-foreground);
  --pico-secondary-background: var(--secondary);
  --pico-secondary-border: var(--secondary);
  --pico-secondary-inverse: var(--secondary-foreground);
  --pico-muted-color: var(--muted-foreground);
  --pico-muted-border-color: var(--border);
  --pico-card-background-color: var(--card);
  --pico-card-border-color: var(--border);
  --pico-card-sectioning-background-color: var(--card);
  --pico-form-element-background-color: var(--card);
  --pico-form-element-border-color: var(--input);
  --pico-form-element-color: var(--foreground);
  --pico-form-element-placeholder-color: var(--muted-foreground);
  --pico-form-element-active-background-color: var(--card);
  --pico-form-element-active-border-color: var(--ring);
  --pico-form-element-focus-color: color-mix(in oklab, var(--ring) 30%, transparent);
  --pico-table-border-color: var(--border);
  --pico-table-row-stripped-background-color: color-mix(in oklab, var(--muted) 40%, transparent);
  --pico-h1-color: var(--foreground);
  --pico-h2-color: var(--foreground);
  --pico-h3-color: var(--foreground);
  --pico-h4-color: var(--foreground);
  --pico-h5-color: var(--foreground);
  --pico-h6-color: var(--foreground);
  --pico-mark-background-color: var(--accent);
  --pico-mark-color: var(--accent-foreground);
  --pico-blockquote-border-color: var(--sage);
  --pico-blockquote-footer-color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   3. Base adjustments (match original preflight behaviour)
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
/* Pico gives direct children of body a block padding; this design doesn't */
body > header,
body > main,
body > footer {
  padding-block: 0;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--foreground);
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img, svg {
  vertical-align: middle;
}
img {
  max-width: 100%;
  height: auto;
}
/* Neutral button base: pill/chip/icon classes opt back in below.
   Selector list matches Pico's own so it overrides its button theme. */
button,
button[type=submit],
[type=button],
[type=submit],
[type=reset],
[role=button] {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  width: auto;
  cursor: pointer;
}
button:is([aria-current], :hover, :active, :focus),
:is([type=button], [type=submit], [type=reset]):is(:hover, :active, :focus) {
  background: none;
  box-shadow: none;
  color: inherit;
}
ul.plain, ol.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Pico turns <article> into a card; this design uses plain articles */
article {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   4. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  margin-inline: auto;
  padding-inline: 1rem;
}
.container-5xl { max-width: 64rem; }
.container-4xl { max-width: 56rem; }
.container-3xl { max-width: 48rem; }
.container-2xl { max-width: 42rem; }
.container-xl { max-width: 36rem; }
@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
}
.page {
  padding-bottom: 0rem;

}
@media (min-width: 1024px) {
  .page { padding-bottom: 0; }
}
.section { margin-top: 5rem; }
.section-sm { margin-top: 3.5rem; }
.section-last { margin-bottom: 5rem; }

/* Standard inner-page main + page header */
.page-main { padding-top: 2.5rem; }
.page-main:has(> :is(.breadcrumb, .crumb-sm, .crumb-chev)) {
  padding-top: 1.25rem !important;
}
.page-head { max-width: 42rem; }
.page-head .eyebrow { margin-bottom: 0.5rem; }
.page-head h1, .h1 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .page-head h1, .h1 { font-size: 2.25rem; line-height: 1.111; }
}
.lede {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.center-row { display: flex; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.content-bridge {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .content-bridge { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.content-bridge a,
.content-bridge .idea-card {
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.content-bridge a:hover,
.content-bridge .idea-card:hover {
  border-color: color-mix(in oklab, var(--foreground) 30%, transparent);
  box-shadow: var(--card-shadow);
}
.content-bridge .k {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.content-bridge .t {
  display: block;
  margin-top: 0.375rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.content-bridge .d {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}
.idea-bridge .idea-card {
  display: flex;
  flex-direction: column;
}
.idea-list {
  display: grid;
  gap: 0;
  margin-top: 0.9rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.idea-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.48rem 0 0.48rem 0.85rem;
  color: var(--foreground);
  font-size: 0.8125rem;
  line-height: 1.35;
  box-shadow: none;
}
.content-bridge .idea-list a:hover {
  border-top-color: color-mix(in oklab, var(--border) 72%, transparent);
  background: transparent;
  box-shadow: none;
}
.idea-list a + a {
  border-top: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
}
.idea-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 9999px;
  background: var(--sage);
}
.idea-list a:hover span {
  color: var(--sage);
}
.idea-list time {
  flex: 0 0 auto;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  white-space: nowrap;
}
.articles-toolbar {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.articles-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Responsive visibility helpers */
@media (max-width: 639.98px) {
  .from-sm { display: none !important; }
}
@media (max-width: 1023.98px) {
  .from-lg { display: none !important; }
}
@media (min-width: 640px) {
  .until-sm { display: none !important; }
}
@media (min-width: 1024px) {
  .until-lg { display: none !important; }
}

/* Spacing helpers (Tailwind quarter-rem scale, mirrors source spacing).
   !important because pico.min.css ships its own .mt-*/.mb-* utilities on a
   different scale, also with !important 鈥?later + important wins. */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.25rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mt-14 { margin-top: 3.5rem !important; }
.mt-16 { margin-top: 4rem !important; }
.mt-20 { margin-top: 5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }

/* Two-column split used on the home compare section */
.grid-split {
  display: grid;
  gap: 2rem;
}
/* Allow grid items to shrink below the table's min-width so the
   640px comparison table scrolls inside .table-scroll instead of
   stretching the whole page on mobile */
.grid-split > * { min-width: 0; }
@media (min-width: 1024px) {
  .grid-split { grid-template-columns: 1.6fr 1fr; }
}
.home-room-stack {
  display: grid;
  gap: 5rem;
}
.home-room-stack > * {
  min-width: 0;
}
.home-room-stack .compare-showcase {
  min-width: 1180px;
}
.home-top-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .home-top-picks-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tag collection header (text + 4:3 image) */
.tag-head {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .tag-head {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

/* Generic 1 -> 2 column split at lg */
.two-col {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Text helpers (line-heights mirror the source type scale) */
.muted { color: var(--muted-foreground); }
.t-sage { color: var(--sage); }
.t-clay { color: var(--clay); }
.small { font-size: 0.875rem; line-height: 1.4286; }
.xs { font-size: 0.75rem; line-height: 1.3333; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.clamp-1, .clamp-2, .clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* Media (fill-image) pattern */
.media {
  position: relative;
  overflow: hidden;
  background: var(--muted);
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   5. Buttons, chips, badges
   -------------------------------------------------------------------------- */
.btn,
a.btn,
button.btn,
.btn:is(:hover, :active, :focus) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4286;
  text-align: center;
  width: auto;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn.btn-lg, a.btn-lg, button.btn-lg { padding: 0.75rem 1.5rem; }
.btn.btn-sm, a.btn-sm, button.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
.btn-outline,
a.btn-outline,
button.btn-outline,
.btn-outline:is(:hover, :active, :focus) {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}
.btn-outline:hover {
  opacity: 1;
  border-color: color-mix(in oklab, var(--foreground) 40%, transparent);
}
.btn-outline.fg20 {
  border-color: color-mix(in oklab, var(--foreground) 20%, transparent);
}
.btn-fill-hover {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.btn.btn-outline.btn-fill-hover:is(:hover, :focus-visible),
.btn.btn-outline.btn-fill-hover:is(:hover, :focus-visible) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  opacity: 1;
}
.btn .icon, .chip .icon { flex-shrink: 0; }
.btn .btn-arrow {
  transition: transform 0.18s ease;
}
.btn:is(:hover, :focus-visible) .btn-arrow {
  transform: translateX(0.1875rem);
}
.btn .btn-plus {
  display: block;
  width: 1rem;
  height: 1rem;
  padding: 0.125rem;
  border-radius: 9999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:is(:hover, :focus-visible) .btn-plus {
  background: var(--clay);
  color: var(--clay-foreground);
}
@media (prefers-reduced-motion: reduce) {
  .btn .btn-arrow {
    transition: none;
  }
  .btn:is(:hover, :focus-visible) .btn-arrow {
    transform: none;
  }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 9999px;
  color: var(--muted-foreground);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.33;
  color: var(--muted-foreground);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a.chip:hover, button.chip:hover {
  border-color: color-mix(in oklab, var(--foreground) 40%, transparent);
  color: var(--foreground);
  background: var(--card);
}
.chip.on-image { background: color-mix(in oklab, var(--background) 90%, transparent); }
.chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.chip-count {
  color: currentColor;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.68;
  font-variant-numeric: tabular-nums;
}

.badge-clay {
  display: inline-block;
  border-radius: 9999px;
  background: var(--clay);
  color: var(--clay-foreground);
  padding: 0.25rem 0.625rem;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.33;
}
.badge-light {
  display: inline-block;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  color: var(--foreground);
  padding: 0.25rem 0.5rem;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.33;
}
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3333;
}
.score-pill svg { width: 0.75rem; height: 0.75rem; }

.dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--sage);
  flex-shrink: 0;
}
.dot.clay { background: var(--clay); }

/* Rating dots (1-5) */
.dots { display: inline-flex; gap: 0.125rem; }
.dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--border);
}
.dots i.on { background: var(--sage); }

/* Inline score with star */
.score {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}
.score svg { width: 0.875rem; height: 0.875rem; color: var(--sage); }

/* --------------------------------------------------------------------------
   6. Header + mobile menu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 70%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-bar {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  flex-shrink: 0;
}
.logo-mark svg { width: 2rem; height: 2rem; }
.logo-mark.sm { width: 1.75rem; height: 1.75rem; }
.logo-mark.sm svg { width: 0.875rem; height: 0.875rem; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}
.main-nav {
  display: none;
  align-items: center;
  align-self: stretch;
  flex: 1;
  justify-content: center;
  gap: 0.9rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .main-nav { display: flex; }
}
.main-nav a,
.main-nav .nav-dropdown-trigger {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: 0.8125rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--foreground); }
.main-nav .nav-wide { display: none; }
@media (min-width: 1360px) {
  .main-nav {
    gap: 1rem;
  }
  .main-nav a,
  .main-nav .nav-dropdown-trigger {
    font-size: 0.875rem;
  }
  .main-nav .nav-wide { display: inline; }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.icon-btn svg { width: 18px; height: 18px; }
.notification-link {
  position: relative;
}
.notification-dot {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 2px solid var(--background);
  border-radius: 9999px;
  background: var(--clay);
}
.product-compare-menu {
  position: relative;
}
.product-compare-icon {
  position: relative;
}
.product-compare-vs {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid currentColor;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.product-compare-count {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
  min-width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  background: #d33a2c;
  color: var(--clay-foreground);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 0.875rem;
  text-align: center;
}
.product-compare-dropdown {
  position: fixed;
  top: 4rem;
  right: 2.5rem;
  z-index: 70;
  width: min(21rem, calc(100vw - 2rem));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  background: var(--card);
  padding: 0.875rem;
  box-shadow: var(--card-shadow);
}
@media (min-width: 640px) {
  .product-compare-dropdown { right: 6rem; }
}
.product-compare-dropdown[hidden] {
  display: none;
}
.product-compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.product-compare-head p {
  margin: 0;
  font-weight: 700;
  color: var(--foreground);
}
.product-compare-head span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.product-compare-list {
  display: grid;
  padding-block: 0.625rem;
}
.product-compare-empty {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.product-compare-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
  padding: 0.55rem 0;
  font-size: 0.75rem;
  line-height: 1.3;
}
.product-compare-item:first-child {
  padding-top: 0;
}
.product-compare-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.product-compare-item img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  object-fit: cover;
  background: var(--muted);
}
.product-compare-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-compare-item button {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--muted) 72%, var(--card));
  color: var(--muted-foreground);
  padding: 0;
}
.product-compare-item button:hover {
  color: var(--foreground);
}
.product-compare-item button svg {
  width: 0.9rem;
  height: 0.9rem;
}
.product-compare-dropdown .product-compare-link {
  width: 100%;
  justify-content: center;
}
.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -35px;
  z-index: 70;
  min-width: 11rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  background: var(--card);
  padding: 0.45rem 0;
  box-shadow: var(--card-shadow);
}
.account-dropdown[hidden] {
  display: none;
}
.account-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.35;
  white-space: nowrap;
}
.account-dropdown a:hover {
  background: color-mix(in oklab, var(--muted) 70%, transparent);
  color: var(--sage);
}
.menu-btn { color: var(--foreground); }
.menu-btn svg { width: 1.25rem; height: 1.25rem; }

/* Overlays the page below the sticky header instead of pushing it down */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  max-height: 0;
  background: var(--background);
  border-bottom: 0 solid var(--border);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.5rem 1rem;
}
@media (min-width: 640px) {
  .mobile-menu nav { padding-inline: 1.5rem; }
}
.mobile-menu nav > a {
  margin: 0;
  padding: 0.75rem 0;
  border-radius: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--foreground);
}
.mobile-menu nav > a:last-of-type { border-bottom: 0; }
.mobile-menu nav > a.btn {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.625rem 1rem;
  border-bottom: 0;
  color: var(--primary-foreground);
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.eyebrow {
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3333;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage);
}
.eyebrow.clay { color: var(--clay); }
.section-head {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.section-head h2, .h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3333;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .section-head h2, .h2 { font-size: 1.875rem; line-height: 1.2; }
}
.section-sub {
  margin-top: 0.625rem;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.view-all {
  flex-shrink: 0;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--sage);
}
.view-all:hover { text-decoration: underline; color: var(--sage); }
.link-sage { color: var(--sage); }
.link-sage:hover { text-decoration: underline; color: var(--sage); }

/* --------------------------------------------------------------------------
   8. Hero (home)
   -------------------------------------------------------------------------- */
.hero { padding-top: 0rem; }
@media (min-width: 640px) {
  .hero { padding-top: 0rem; margin-bottom: 0; }
}
.hero-grid {
  display: grid;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.home-hero-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 0rem;
}
.home-hero-swiper .swiper-wrapper {
  display: flex;
  width: 100%;
  transition-property: transform;
}
.home-hero-swiper .swiper-slide {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  height: auto;
  padding: 40px 0;
  border-radius: 0;
  margin-bottom: 0;
}
.home-hero-swiper .hero-grid {
  min-height: 26rem;
  padding-block: 0.75rem 1.25rem;
}
.home-hero-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: color-mix(in oklab, var(--background) 86%, transparent);
  color: var(--foreground);
  box-shadow: 0 8px 24px rgba(48, 42, 37, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.home-hero-nav:hover {
  border-color: color-mix(in oklab, var(--foreground) 30%, var(--border));
  color: var(--primary);
}
.home-hero-nav svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-hero-prev { left: 0.25rem; }
.home-hero-next { right: 0.25rem; }
.home-hero-pagination {
  position: absolute;
  inset-inline: 0;
  bottom: 2rem!important;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.home-hero-pagination .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 !important;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--foreground) 22%, transparent);
  opacity: 1;
  transition: width 0.15s ease, background-color 0.15s ease;
}
.home-hero-pagination .swiper-pagination-bullet-active {
  width: 1.25rem;
  background: var(--primary);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.hero h1,
.hero h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 36rem;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .hero h1,
  .hero h2 { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .hero h1,
  .hero h2 { font-size: 2.75rem; }
}
.hero h1 .em,
.hero h2 .em {
  font-style: italic;
  color: var(--sage);
  white-space: nowrap;
}
.hero-sub {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .hero-sub { font-size: 0.925rem; }
}
.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-media {
  aspect-ratio: 5 / 4;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .hero-media { aspect-ratio: 4 / 3; }
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;

  background-color: #e7eddf;
  padding: 0.7rem 0;
  color: var(--primary);
}
.chip-row .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.chip-row  .label {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  font-size: 0.875rem;
  line-height: 1.33;
  transform: translateY(1px);
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.25rem;
}
.chip-row .badge-light {
  border: 1px solid color-mix(in oklab, var(--sage) 18%, transparent);
  background-color: #f6f8f1;
  color: color-mix(in oklab, var(--primary) 88%, var(--sage));
}
.chip-row .badge-light:hover{color: var(--primary) !important; background-color: #eef4e9;}
/* --------------------------------------------------------------------------
   9. Card grids + cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cards-2x {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.review-card,
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  color: inherit;
}
a.card, .review-card, a.product-card, .card.hoverable {
  transition: box-shadow 0.15s ease;
}
a.card:hover, .review-card:hover, a.product-card:hover, .card.hoverable:hover {
  box-shadow: var(--card-shadow);
}
.review-card .media {
  display: block;
  aspect-ratio: 4 / 3;
}
.product-card .media { aspect-ratio: 1 / 1; }
.review-card .media > img,
.product-card .media > img {
  transition: transform 0.5s ease;
}
.review-card:hover .media > img,
a.product-card:hover .media > img {
  transform: scale(1.04);
}
.chip-overlay {
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
}
.overlay-tl { position: absolute; left: 0.625rem; top: 0.625rem; }
.overlay-tr { position: absolute; right: 0.625rem; top: 0.625rem; }
.overlay-bl { position: absolute; left: 0.75rem; bottom: 0.75rem; }
.vase-stamp {
  display: inline-flex;
  width: 4.2rem;
  height: 4.2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1.5px solid #fff;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--card) 88%, transparent);
  color: var(--primary);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.72;
  box-shadow: 0 8px 18px rgba(48, 42, 37, 0.08), inset 0 0 0 2px color-mix(in oklab, var(--card) 72%, transparent);
  pointer-events: none;
}
.product-card-compare {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid color-mix(in oklab, var(--border) 82%, transparent);
  border-radius: 9999px;
  background: color-mix(in oklab, var(--card) 90%, transparent);
  color: var(--foreground);
  padding: 0.28rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(48, 42, 37, 0.08);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.product-card-compare::before {
  content: "+";
  font-weight: 800;
}
.product-card-compare:hover {
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}
.product-card-compare.is-selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.product-card-compare.is-selected::before { content: ""; display: none; }
.product-card-compare.is-disabled:not(.is-selected) {
  opacity: 0.55;
  cursor: not-allowed;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}
.card-body.compact { padding: 0.875rem; }
.card-meta {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-meta .date {
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375;
  text-wrap: pretty;
}
.card-title-link { color: inherit; }
.review-card:hover .card-title-link { text-decoration: underline; }
.card-excerpt {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.card-author {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.card-author-avatar {
  display: inline-grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--sage) 16%, var(--background));
  color: var(--sage);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.card-author-text {
  min-width: 0;
}
.card-author .name { color: var(--foreground); }

/* Product filter layout */
.results-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.results-row > p { font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.results-row > p span { font-weight: 600; color: var(--foreground); }
.results-row .controls { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.sort-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.sort-label .pill-input { min-width: 0; }
@media (max-width: 640px) {
  .results-row .controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .sort-label {
    width: 100%;
    justify-content: space-between;
  }
  .sort-label .pill-input {
    width: min(12rem, 64%);
    flex: 0 1 auto;
  }
}
.filter-layout {
  margin-top: 1.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .filter-layout { grid-template-columns: 220px 1fr; }
}
.filter-panel {
  position: sticky;
  top: 5rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
}
.filter-groups > * + * { margin-top: 1.25rem; }
.filter-groups p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4286;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Reviews browser */
.review-control-panel {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.6);
  background: var(--card);
  padding: 1rem;
}
@media (min-width: 768px) {
  .review-control-panel { padding: 1rem 1.25rem 0 1.25rem; }
}
.review-control-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.review-control-head h2 {
  margin: 0.25rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
}
.review-filter-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .review-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .review-filter-grid { grid-template-columns: 1.45fr 1.25fr 1fr 0.8fr 0.9fr; }
}
.review-filter-group p {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--foreground);
}

/* Reviews filter panel 鈥?row layout */
.review-control-head { align-items: center; }
.review-filters-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.review-filters-ico { display: block; flex: 0 0 auto; }
.review-filters-title h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}
.review-filters-title .review-filter-status {
  min-height: 0;
  margin: 0 0 0 0.15rem;
  padding: 0;
  border-top: 0;
}
.review-filter-status .product-filter-chips { gap: 0.35rem; }
.review-filter-status .product-filter-chip {
  min-height: 24px;
  padding: 0.2rem 0.65rem;
}
.review-clear-link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.15s ease;
}
.review-clear-link:hover { color: var(--foreground); text-decoration: underline; }
.review-control-panel:not(.has-active) .review-clear-link { display: none; }
.review-filter-grid { display: block; margin-top: 0.7rem; }
.review-filter-group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--border);
}
.review-filter-group p {
  flex: 0 0 4.5rem;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
}
.review-filter-group .chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1rem;
  flex: 1;
  min-width: 0;
}
.review-filter-group.is-collapsed .chips {
  max-height: 2rem;
  overflow: hidden;
}
.review-filter-group.is-expanded .chips {
  max-height: none;
  overflow: visible;
}
.review-filter-toggle {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.review-filter-toggle[hidden] { display: none; }
.review-filter-toggle:hover {
  color: var(--foreground);
}
.review-filter-toggle::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
}
.review-filter-group.is-expanded .review-filter-toggle::before {
  transform: translateY(0.1rem) rotate(225deg);
}
.review-filter-group .chip {
  padding: 0.25rem 0.25rem;
  border: 0;
  border-radius: 9999px;
  background: none;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.review-filter-group .chip:hover { color: var(--foreground); }
.review-filter-group .chip.active {
  padding: 0.25rem 0.875rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
}
.page-main[data-review-browser] .lede {
  font-size: 0.9375rem;
  line-height: 1.5;
}
.review-results {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 720px) {
  .review-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .review-results { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Gift finder */
.gift-quiz {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.7);
  background: var(--card);
  padding: 1.25rem;
}
@media (min-width: 768px) {
  .gift-quiz { padding: 1.75rem; }
}
.gift-progress { margin-bottom: 1.5rem; }
.gift-step h2,
.gift-result h2 {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.15;
}
.quiz-option span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 400;
}
.quiz-option.is-selected {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--sage) 14%, var(--background));
}
.gift-result-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 820px) {
  .gift-result-grid { grid-template-columns: minmax(240px, 0.8fr) 1.2fr; }
}
.gift-result-grid .media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.gift-nav {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.5rem;
}
.facts.compact {
  display: grid;
  gap: 0.75rem;
}
.facts.compact > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.form-feedback {
  margin-top: 0.625rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--sage) 16%, var(--background));
  color: var(--primary);
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.form-feedback.is-loading {
  background: color-mix(in oklab, var(--muted) 40%, var(--background));
  color: var(--muted-foreground);
}
.form-feedback.is-error {
  background: color-mix(in oklab, var(--warning) 16%, var(--background));
  color: var(--accent);
}

/* Scene cards (styling hub) */
.scene-cards {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .scene-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .scene-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.scene-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--muted);
  color: inherit;
}
.scene-card .media {
  aspect-ratio: 16 / 10;
  background: transparent;
}
.scene-card .media > img { transition: transform 0.5s ease; }
.scene-card:hover .media > img { transform: scale(1.04); }
.scene-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in oklab, var(--foreground) 70%, transparent),
    color-mix(in oklab, var(--foreground) 10%, transparent),
    transparent
  );
}
.scene-card .caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem;
  color: var(--background);
}
.scene-card .caption h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--background);
}
.scene-card .caption p {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: color-mix(in oklab, var(--background) 85%, transparent);
}
.scene-card .caption svg { width: 1rem; height: 1rem; }

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.breadcrumb > span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.breadcrumb a { transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb .current { color: var(--foreground); }
.chip-overlay.o3 { left: 0.75rem; top: 0.75rem; }

/* Community hub */
.hub-hero { padding-block: 0; }
@media (min-width: 640px) {
  .hub-hero { padding-block: 0; }
}
.hub-hero h1 { max-width: 42rem; }
.hub-hero .lede { max-width: 36rem; }
.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3333;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sage);
}
.kicker.clay { color: var(--clay); }
.grid-3 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-span-2 { grid-column: span 2 / span 2; }
}
.panel-clay {
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid color-mix(in oklab, var(--clay) 30%, transparent);
  background: color-mix(in oklab, var(--clay) 10%, transparent);
  padding: 1.5rem;
}
.panel-card {
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
.panel-sage {
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid color-mix(in oklab, var(--sage) 30%, transparent);
  background: color-mix(in oklab, var(--sage) 10%, transparent);
  padding: 1.5rem;
}

.community-challenge {
  border-color: var(--border);
  background: var(--card);
  padding: 2rem;
}
.community-challenge-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.community-challenge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.community-challenge-kicker svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}
.community-challenge-main {
  margin-top: 0.5rem;
}
.community-challenge-main h2 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}
.community-challenge-main p {
  margin: 0.45rem 0 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.5;
}
.community-challenge-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin-top: 1.75rem;
}
.community-challenge-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.community-challenge-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--accent) 76%, var(--card));
  color: #185B37;
}
.community-challenge-icon svg {
  width: 1rem;
  height: 1rem;
}
.community-challenge-stat strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.community-challenge-stat small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.25;
}
.community-challenge-reward strong {
  font-weight: 700;
}
.community-challenge-reward a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.community-challenge-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.community-challenge-cta {
  flex: 0 0 auto;
  padding: 0.72rem 1.35rem;
  font-weight: 700;
}
.community-challenge-footer p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.5;
}
.community-challenge-footer a:not(.btn) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 639.98px) {
  .community-challenge {
    padding: 1.25rem;
  }
  .community-challenge-top,
  .community-challenge-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .community-challenge-main {
    margin-top: 2rem;
  }
  .community-challenge-main h2 {
    font-size: 1.55rem;
  }
}
.pill-note {
  border-radius: 9999px;
  background: color-mix(in oklab, var(--background) 70%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.rank-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.4286;
}
.rank-list li + li { margin-top: 0.625rem; }
.rank-list .rank-body {
  flex: 1;
  min-width: 0;
}
.rank-list .rank-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rank-list .rank {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--rank-color, var(--accent));
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}
.rank-list .rank.low { background: var(--muted); color: var(--muted-foreground); }
.rank-list .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rank-list .votes {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.rank-list .rank-bar {
  display: block;
  height: 0.3125rem;
  margin-top: 0.375rem;
  overflow: hidden;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--muted) 72%, transparent);
}
.rank-list .rank-bar::before {
  content: "";
  display: block;
  width: var(--rank-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--rank-color, var(--sage));
}
.side-link {
  flex-shrink: 0;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.side-link:hover { color: var(--foreground); }

/* UGC grid + cards */
.grid-2-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 1024px) {
  .grid-2-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ugc-card {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  color: inherit;
  transition: box-shadow 0.15s ease;
}
.ugc-card:hover { box-shadow: var(--card-shadow); }
.ugc-card .media { aspect-ratio: 1 / 1; }
.ugc-card .media > img { transition: transform 0.5s ease; }
.ugc-card:hover .media > img { transform: scale(1.04); }
.tag-mini {
  display: inline-block;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  padding: 0.125rem 0.5rem;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.33;
}
.ugc-card .body { padding: 0.75rem; }
.ugc-card .body h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4286;
}
.ugc-card .row {
  margin-top: 0.25rem;
  margin-right: 0;
  margin-left: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.ugc-card .row .likes { display: flex; flex-shrink: 0; align-items: center; gap: 0.25rem; }
.ugc-card .row svg { width: 0.875rem; height: 0.875rem; }
.ugc-card .row .truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mini creator spotlight cards */
.creator-card.mini .avatar {
  width: 4rem;
  height: 4rem;
  background: color-mix(in oklab, var(--sage) 15%, transparent);
  color: var(--sage);
  font-size: 1.125rem;
}
.creator-card.mini img.avatar {
  display: block;
  object-fit: cover;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: var(--muted);
}
.creator-card.mini {
  border-color: color-mix(in oklab, var(--border) 88%, transparent);
  background: color-mix(in oklab, var(--card) 94%, #fff);
  padding-top: 1.55rem;
}
.creator-card.mini .name {
  margin-top: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--foreground);
}
.creator-card.mini,
.creator-card.mini:hover {
  text-decoration: none;
}
.creator-card.mini:hover .name {
  text-decoration: none;
}
.creator-card.mini .handle {
  color: color-mix(in oklab, var(--muted-foreground) 86%, var(--foreground));
}
.creator-card.mini .bio {
  color: color-mix(in oklab, var(--muted-foreground) 88%, var(--foreground));
}
.chip-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
}
.chip-xs {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  padding: 0.125rem 0.5rem;
  font-size: 11px;
  line-height: 1.33;
  color: var(--muted-foreground);
}

/* Submission list */
.sub-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.sub-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 0;
  list-style: none;
  border-bottom: 1px solid var(--border);
}
.sub-list li:first-child { padding-top: 0; }
.sub-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.sub-list .thumb {
  position: relative;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted);
}
.sub-list .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-list .info { min-width: 0; flex: 1; }
.sub-list .info .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4286;
}
.sub-list .info .meta { font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }
.sub-list .when { flex-shrink: 0; font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }

/* Medium chips (text-sm filter pills) */
.chip.md {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  gap: 0.375rem;
}

/* Creator cards */
.creator-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .creator-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .creator-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  text-align: center;
  color: inherit;
  transition: box-shadow 0.15s ease;
}
.creator-card:hover { box-shadow: var(--card-shadow); }
.avatar {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-foreground);
  flex-shrink: 0;
}
img.avatar {
  display: block;
  object-fit: cover;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: var(--muted);
}
.creator-card .name {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.creator-card:hover .name { text-decoration: underline; }
.creator-card .handle {
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: color-mix(in oklab, #cfe8d8 82%, #fff);
  padding: 0.18rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: #185B37;
}
.creator-card .bio {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.creator-card .stats {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

/* Muted note panel */
.join-note {
  margin-top: 2.5rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.join-note a { font-weight: 500; color: var(--sage); }
.join-note a:hover { text-decoration: underline; }
.join-note a + a { margin-left: 0.75rem; }

/* Creator directory enhancements */
.creators-page .page-head { max-width: 50rem; }
.creator-metrics {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .creator-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.creator-metrics > div {
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
}
.creator-metrics strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}
.creator-metrics span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.creator-program-band {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid color-mix(in oklab, var(--sage) 30%, transparent);
  background: color-mix(in oklab, var(--sage) 13%, var(--card));
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .creator-program-band { grid-template-columns: minmax(0, 1fr) 18rem; }
}
.creator-program-band h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}
.creator-program-band p:not(.eyebrow) {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.program-proof {
  display: grid;
  gap: 0.5rem;
}
.program-proof span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 9999px;
  background: var(--card);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.program-proof b {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--primary);
}
.creator-level-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .creator-level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.creator-level {
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
}
.creator-level > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
}
.creator-level h3 {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}
.creator-level p {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* ==== Review detail page ==== */
.crumb-chev {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.crumb-chev a:hover { color: var(--foreground); }
.crumb-chev svg { width: 0.75rem; height: 0.75rem; }
.crumb-chev .current { color: var(--foreground); }
.detail-grid { margin-top: 1.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1fr 320px; } }
.detail-article {
  min-width: 0;
  background: transparent;
  box-shadow: none;
}
.detail-article > header {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.review-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--sage); }
.review-h1 { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }
@media (min-width: 640px) { .review-h1 { font-size: 2.25rem; } }
.author-meta { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.author-meta .ava { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; background: var(--secondary); color: var(--secondary-foreground); font-size: 0.75rem; font-weight: 500; }
.author-meta .name { color: var(--foreground); }
.detail-article header .notice-clay {
  border: 0;
  background: transparent;
  padding: 0;
}
.detail-article header .notice-clay a,
.detail-article header .notice-clay a:hover {
  text-decoration: none;
}

.scorecard { margin-top: 2rem; border-radius: calc(var(--radius) * 1.8); border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.scorecard .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.scorecard .top h2 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.score-big { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 9999px; background: var(--accent); color: var(--accent-foreground); font-weight: 600; padding: 0.375rem 0.75rem; font-size: 1rem; }
.score-big svg { width: 0.875rem; height: 0.875rem; }
.score-grid { margin-top: 1.25rem; display: grid; gap: 1.5rem; }
.score-bars,
.bestfor { min-width: 0; }
@media (min-width: 640px) { .score-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); } }
.score-bars > * + * { margin-top: 0.625rem; }
.score-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.score-row .lbl { width: 8rem; flex-shrink: 0; color: var(--muted-foreground); }
@media (min-width: 1024px) {
  .score-row .lbl {
    width: 11.75rem;
    white-space: nowrap;
  }
}
.score-row .track { position: relative; height: 0.5rem; flex: 1; overflow: hidden; border-radius: 9999px; background: var(--muted); }
.score-row .fill { position: absolute; inset-block: 0; left: 0; border-radius: 9999px; background: var(--sage); }
.score-row .val { width: 2rem; flex-shrink: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.bestfor { font-size: 0.875rem; line-height: 1.4286; }
.bestfor > * + * { margin-top: 0.75rem; }
.bestfor b { font-weight: 600; color: var(--foreground); }
.bestfor .muted { color: var(--muted-foreground); }
.bestfor .bottom { border-radius: var(--radius); background: var(--accent); padding: 0.5rem 0.75rem; color: var(--accent-foreground); }
.scorecard .actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.detail-section { margin-top: 2.5rem; }
.detail-section > h2 { margin-bottom: 1rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.gallery-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.gallery-3 .cell { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--border); background: var(--muted); }
.gallery-3 .cell.wide { grid-column: span 3 / span 3; aspect-ratio: 16 / 9; }
.gallery-3 .cell.sq { aspect-ratio: 1 / 1; }
.gallery-3 .cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review-gallery { display: grid; min-width: 0; gap: 0.75rem; }
.review-gallery-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--muted);
  aspect-ratio: 1 / 1;
}
@media (min-width: 640px) { .review-gallery-main { aspect-ratio: 3 / 2; } }
.review-gallery-main .swiper-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.review-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--background) 80%, transparent);
  background: color-mix(in oklab, var(--background) 88%, transparent);
  color: var(--foreground);
  transform: translateY(-50%);
  box-shadow: 0 0.5rem 1.5rem color-mix(in oklab, var(--foreground) 14%, transparent);
}
.review-gallery-nav svg { width: 1rem; height: 1rem; }
.review-gallery-prev { left: 0.75rem; }
.review-gallery-next { right: 0.75rem; }
.review-gallery-thumbs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 0.125rem;
}
.review-gallery-thumbs .swiper-slide {
  position: relative;
  overflow: hidden;
  height: auto;
  border-radius: calc(var(--radius) * 1.1);
  border: 2px solid transparent;
  background: var(--muted);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.review-gallery-thumbs .swiper-slide:not(.swiper-slide-thumb-active) { opacity: 0.72; }
.review-gallery-thumbs .swiper-slide-thumb-active {
  border-color: var(--sage);
  opacity: 1;
}
.review-gallery-thumbs .swiper-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-gallery-thumbs .swiper-slide span {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--background) 88%, transparent);
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--foreground);
}
.review-lightbox-open { overflow: hidden; }
.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.75rem);
  background: color-mix(in oklab, var(--foreground) 72%, transparent);
}
.review-lightbox.is-open { display: flex; }
.review-lightbox-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: stretch;
  align-items: stretch;
  width: min(96vw, 1320px);
  height: min(92vh, 880px);
  overflow: hidden;
  border-radius: calc(var(--radius) * 2);
  background: var(--background);
  box-shadow: 0 1.5rem 4rem color-mix(in oklab, black 36%, transparent);
}
.review-lightbox-head {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  border-bottom: 1px solid var(--border);
  padding: 0 4rem;
  font-weight: 600;
}
.review-lightbox-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.review-lightbox-swiper {
  width: 100%;
  height: 100%;
  min-width: 0;
}
.review-lightbox-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(1rem, 3vw, 2rem);
}
.review-lightbox-swiper .swiper-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.review-lightbox-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-top: 1px solid var(--border);
  padding: 0.75rem clamp(0.75rem, 3vw, 3rem);
  background: var(--background);
}
.review-lightbox-thumbs {
  width: 100%;
  height: 5.75rem;
  min-width: 0;
  overflow: hidden;
}
.review-lightbox-thumbs .swiper-wrapper { height: 100%; }
.review-lightbox-thumbs .swiper-slide {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: calc(var(--radius) * 0.9);
  border: 2px solid transparent;
  background: var(--muted);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  opacity: 0.72;
}
.review-lightbox-thumbs .swiper-slide-thumb-active {
  border-color: var(--accent-foreground);
  opacity: 1;
}
.review-lightbox-thumbs .swiper-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-lightbox-thumb-nav {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 5.75rem;
  padding: 0;
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 88%, transparent);
  color: var(--foreground);
}
.review-lightbox-thumb-nav svg {
  width: 1rem;
  height: 1rem;
}
.review-lightbox-thumb-nav.swiper-button-disabled {
  opacity: 0.38;
  pointer-events: none;
}
.review-lightbox-close,
.review-lightbox-nav {
  position: absolute;
  z-index: 102;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 88%, transparent);
  color: var(--foreground);
  box-shadow: 0 0.75rem 2rem color-mix(in oklab, black 14%, transparent);
}
.review-lightbox-close svg,
.review-lightbox-nav svg {
  width: 1.125rem;
  height: 1.125rem;
}
.review-lightbox-close {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}
.review-lightbox-prev,
.review-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.review-lightbox-prev { left: 1rem; }
.review-lightbox-next { right: 1rem; }
@media (max-width: 639px) {
  .review-lightbox {
    padding: 1rem 0.625rem;
  }
  .review-lightbox-panel {
    width: min(96vw, 30rem);
    height: min(88vh, 48rem);
    border-radius: calc(var(--radius) * 1.4);
  }
  .review-lightbox-head {
    min-height: 3.5rem;
    padding: 0 3.25rem;
    font-size: 0.875rem;
  }
  .review-lightbox-swiper .swiper-slide {
    padding: 0.875rem 1rem;
  }
  .review-lightbox-nav {
    display: none;
  }
  .review-lightbox-foot {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .review-lightbox-thumbs {
    height: 4.25rem;
  }
  .review-lightbox-thumb-nav {
    width: 1.5rem;
    height: 4.25rem;
    border-radius: var(--radius);
  }
  .review-lightbox-thumb-nav svg {
    width: 0.875rem;
    height: 0.875rem;
  }
  .review-lightbox-close {
    right: 0.625rem;
    width: 2.125rem;
    height: 2.125rem;
  }
  .review-lightbox-close svg {
    width: 0.95rem;
    height: 0.95rem;
  }
}

.facts-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--border); font-size: 0.875rem; margin: 0; }
@media (min-width: 640px) { .facts-dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts-dl > div { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0.75rem; }
.facts-dl dt { font-size: 0.75rem; color: var(--muted-foreground); }
.facts-dl dd { margin: 0.125rem 0 0; font-weight: 500; }

.split-cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .split-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info-card { border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--border); background: var(--card); padding: 1.25rem; }
.info-card h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; }
.info-card > p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }

.pc-head { margin-bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.pc-head.pros { color: var(--sage); }
.pc-head.cons { color: var(--clay); }
.pc-head svg { width: 1rem; height: 1rem; }
.pc-list { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.pc-list > li { list-style: none; display: flex; gap: 0.5rem; margin: 0; padding: 0; }
.pc-list > li + li { margin-top: 0.625rem; }
.pc-list li svg { margin-top: 0.125rem; width: 1rem; height: 1rem; flex-shrink: 0; }
.pc-list li .txt { color: var(--muted-foreground); }
.pc-list.pros svg { color: var(--sage); }
.pc-list.cons svg { color: var(--clay); }

.faq { overflow: hidden; border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--border); background: var(--card); }
.faq > div { border-bottom: 1px solid var(--border); }
.faq > div:last-child { border-bottom: 0; }
.faq button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; text-align: left; }
.faq button .q { font-weight: 500; }
.faq button svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--muted-foreground); transition: transform 0.15s ease; }
.faq button[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq .a { padding: 0 1rem 1rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.helpful-label { margin-bottom: 0.75rem; font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.helpful-row { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.helpful-row .chip { padding: 0.5rem 0.875rem; font-size: 0.875rem; gap: 0.5rem; }
.helpful-row .chip .n { font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.submit-panel { margin-top: 2.5rem; border-radius: calc(var(--radius) * 1.8); border: 1px solid var(--border); background: var(--secondary); padding: 1.5rem; }
.submit-panel h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; }
.submit-panel p { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.submit-panel .btn-outline {
  transition: border-color 0.15s ease, color 0.15s ease;
}
.submit-panel .btn-outline .icon {
  transition: transform 0.15s ease;
}
.submit-panel .btn-outline:hover {
  border-color: color-mix(in oklab, var(--foreground) 46%, transparent);
}
.submit-panel .btn-outline:hover .icon {
  transform: translateX(0.1875rem);
}

.detail-aside .sticky-col { position: sticky; top: 5rem; }
.detail-aside .sticky-col > * + * { margin-top: 1.25rem; }
.aside-card { border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--border); background: var(--card); padding: 1.25rem; }
.aside-card .kick { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.025em; color: var(--muted-foreground); }
.aside-card .qv-name { margin-top: 0.25rem; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; line-height: 1.375; }
.aside-card .qv-score { margin-top: 0.25rem; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.aside-card .qv-score svg { width: 0.875rem; height: 0.875rem; color: var(--sage); }
.aside-card h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; text-wrap: pretty; }
.aside-card > form { margin-top: 1rem; display: flex; width: 100%; flex-direction: column; gap: 0.625rem; }
@media (min-width: 640px) {
  .aside-card > form { flex-direction: row; }
}
.aside-card .note { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }
.alt-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.alt-list > li { list-style: none; margin: 0; padding: 0; }
.alt-list > li + li { margin-top: 0.75rem; }
.alt-list a { display: flex; align-items: center; gap: 0.75rem; }
.alt-list .thumb { position: relative; width: 3rem; height: 3rem; flex-shrink: 0; overflow: hidden; border-radius: var(--radius); background: var(--muted); }
.alt-list .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.alt-list .meta { min-width: 0; }
.alt-list .meta .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; font-weight: 500; }
.alt-list a:hover .meta .t { text-decoration: underline; }
.alt-list .meta .s { font-size: 0.75rem; color: var(--muted-foreground); }
.qv-cta { margin-top: 1rem; display: block; border-radius: 9999px; background: var(--primary); color: var(--primary-foreground); padding: 0.625rem 1rem; text-align: center; font-size: 0.875rem; font-weight: 500; }
.qv-cta:hover { opacity: 0.9; color: var(--primary-foreground); }

/* Article (guide) layout */
.article-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.article-meta .with-icon { display: inline-flex; align-items: center; gap: 0.25rem; }
.article-meta svg { width: 0.875rem; height: 0.875rem; }
.article-body { margin-top: 2.5rem; }
.article-body > section + section { margin-top: 2rem; }
.article-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.article-body > section > p {
  margin-top: 0.5rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* Social share card templates */
.pin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .pin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .pin-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.pin-grid figure, .og-grid figure { margin: 0; width: 100%; }
.share-frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.share-frame .shot {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--muted);
}
.share-frame .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    color-mix(in oklab, var(--foreground) 85%, transparent),
    color-mix(in oklab, var(--foreground) 40%, transparent),
    transparent
  );
  padding: 0.75rem;
  padding-top: 2.5rem;
}
.pin-caption p {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--background);
  text-wrap: pretty;
}
.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--foreground);
  color: var(--background);
  padding: 0.375rem 0.75rem;
  font-size: 10px;
  line-height: 1.33;
}
.brand-strip .bb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.brand-strip .bdot {
  display: grid;
  place-items: center;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  background: var(--clay);
  color: var(--clay-foreground);
  font-size: 8px;
}
.brand-strip .url { opacity: 0.8; }
.pin-grid figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.og-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) {
  .og-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.og-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.og-a {
  position: relative;
  aspect-ratio: 1.91 / 1;
}
.og-a .split {
  display: grid;
  height: 100%;
  grid-template-columns: 1.1fr 1fr;
}
.og-a .split .img { position: relative; background: var(--muted); }
.og-a .split .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og-a .split .txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  background: var(--card);
  padding: 1.25rem;
}
.og-a .split .txt .h {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: pretty;
}
.og-a .safe {
  pointer-events: none;
  position: absolute;
  inset: 8%;
  border-radius: 0.25rem;
  border: 1px dashed color-mix(in oklab, var(--clay) 60%, transparent);
}
.og-a .safe-lbl {
  position: absolute;
  left: 0.5rem;
  top: 0.375rem;
  font-size: 9px;
  color: var(--clay);
}
.og-b {
  position: relative;
  aspect-ratio: 1.91 / 1;
  background: var(--muted);
}
.og-b > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.og-b .bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--foreground) 80%, transparent), transparent);
  padding: 1rem;
  padding-top: 3rem;
}
.og-b .bar .row { display: flex; align-items: center; justify-content: space-between; }
.og-b .bar .h {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--background);
}
.og-b .bar .who {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--background);
}
.og-b .bar .bdot {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: var(--clay);
  color: var(--clay-foreground);
  font-size: 9px;
}
.spec-note {
  margin-top: 1rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 40%, transparent);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.spec-note .strong { font-weight: 500; color: var(--foreground); }

/* Email preview frame */
.mail-frame {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--background);
}
.mail-frame .mail-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 1rem 1.25rem;
}
.mail-frame .mail-head .logo-mark { width: 1.5rem; height: 1.5rem; }
.mail-frame .mail-head .logo-mark svg { width: 0.875rem; height: 0.875rem; }
.mail-frame .mail-head .name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.mail-frame .mail-body { padding: 1.5rem 1.25rem; }
.mail-frame .mail-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5556;
}
.mail-frame .mail-body > p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.mail-frame .mail-cta { margin-top: 1.25rem; text-align: center; }
.mail-frame .mail-foot {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 11px;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.mail-frame .mail-foot p { margin: 0; }
.mail-frame .mail-foot p + p { margin-top: 0.25rem; }
.mail-frame .mail-foot .u { text-decoration: underline; }

/* Notification list */
.notif-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
}
.notif-list li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.notif-list li:last-child { border-bottom: 0; }
.notif-list button, .notif-list button:is(:hover, :active, :focus) {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  text-align: left;
  transition: background-color 0.15s ease;
}
.notif-list button:hover { background: color-mix(in oklab, var(--muted) 40%, transparent); }
.notif-list .nd {
  margin-top: 0.375rem;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--sage);
}
.notif-list .nd.read { background: transparent; }
.notif-list .nb { min-width: 0; flex: 1; }
.notif-list .cat {
  display: inline-block;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  line-height: 1.33;
}
.notif-list .msg {
  margin-top: 0.25rem;
  display: block;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.notif-list .msg.unread { font-weight: 500; color: var(--foreground); }
.notif-list .when { flex-shrink: 0; font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }

/* Admin review desk */
.admin-bar {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-bar .tag {
  border-radius: calc(var(--radius) * 0.8);
  background: var(--foreground);
  color: var(--background);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3333;
}
.admin-bar h1 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; }
.admin-bar .count { margin-left: auto; font-size: 0.875rem; color: var(--muted-foreground); }
.test-data-panel {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--accent) 38%, var(--card));
  padding: 1rem;
}
.test-data-panel h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}
.test-data-panel p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}
.test-data-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}
.test-data-actions .btn {
  min-height: 2.375rem;
  padding: 0.5rem 0.875rem;
}
@media (min-width: 760px) {
  .test-data-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .test-data-actions { justify-content: flex-end; }
}
.admin-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
  .admin-grid { grid-template-columns: 1.4fr 1fr; }
}
.admin-grid .sec-title {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.queue-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table.queue {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.4286;
  background: transparent;
}
table.queue thead tr { background: color-mix(in oklab, var(--muted) 50%, transparent); }
table.queue th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: 0;
}
table.queue td {
  padding: 0.625rem 0.75rem;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: inherit;
}
table.queue tbody tr { cursor: pointer; transition: background-color 0.15s ease; }
table.queue tbody tr:hover { background: color-mix(in oklab, var(--muted) 40%, transparent); }
table.queue tbody tr.sel { background: color-mix(in oklab, var(--accent) 50%, transparent); }
table.queue .who { color: var(--muted-foreground); }
.flag-pill {
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  white-space: nowrap;
}
.flag-pill.clay { background: color-mix(in oklab, var(--clay) 15%, transparent); color: var(--clay); }
.flag-pill.sage { background: color-mix(in oklab, var(--sage) 15%, transparent); color: var(--sage); }
.flag-pill.accent { background: var(--accent); color: var(--accent-foreground); }
.detail-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
}
.detail-card .shot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.8);
  background: var(--muted);
}
.detail-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.kv-list { margin: 1rem 0 0; }
.kv-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4286;
}
.kv-list > div + div { margin-top: 0.5rem; }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list dt { color: var(--muted-foreground); }
.kv-list dd { margin: 0; text-align: right; font-weight: 500; }
.action-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

/* Product picker (submit flow) */
.pick-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pick-item, .pick-item:is(:hover, :active, :focus) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--card);
  padding: 0.75rem;
  text-align: left;
  transition: border-color 0.15s ease;
}
.pick-item:hover { border-color: color-mix(in oklab, var(--foreground) 30%, transparent); }
.pick-item img {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
}
.pick-item .pick-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4286;
}

/* 1 -> 2 -> 4 column grid */
.grid-1-2-4 { display: grid; gap: 0.75rem; }
@media (min-width: 640px) {
  .grid-1-2-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-1-2-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Boxed form fields (application/submission forms) */
.form-stack > * + * { margin-top: 1.25rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .sm-span-2 { grid-column: span 2 / span 2; }
}
.form-label { display: block; }
.form-label > span {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4286;
}
input.box-input,
textarea.box-input,
select.box-input {
  width: 100%;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--foreground);
  outline: none;
  box-shadow: none;
}
input.box-input { height: 2.75rem; padding-block: 0; }
textarea.box-input { resize: none; height: auto; }
.box-input:focus, .box-input:focus-visible {
  border-color: color-mix(in oklab, var(--foreground) 40%, transparent);
  box-shadow: none;
  outline: none;
}
.upload-zone {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Onboarding stepper */
.stepper {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
@media (min-width: 640px) { .stepper { gap: 0.5rem; } }
.stepper li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
@media (min-width: 640px) { .stepper li { gap: 0.5rem; } }
.stepper .num {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.stepper li.on .num {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}
.stepper .lbl { display: none; font-size: 0.875rem; color: var(--muted-foreground); }
.stepper li.on .lbl { font-weight: 500; color: var(--foreground); }
@media (min-width: 640px) { .stepper .lbl { display: inline; } }
.stepper .line { height: 1px; width: 1rem; background: var(--border); }
@media (min-width: 640px) { .stepper .line { width: 1.5rem; } }
.btn[disabled], .btn[disabled]:is(:hover, :active, :focus) {
  cursor: not-allowed;
  opacity: 0.4;
}

/* Settings list with toggle switches */
.switch-list {
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
}
.switch-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.switch-list > div:last-child { border-bottom: 0; }
.switch-list .t { font-weight: 500; }
.switch-list .d {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.toggle, .toggle:is(:hover, :active, :focus) {
  position: relative;
  margin-top: 0.25rem;
  height: 1.5rem;
  width: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--muted);
  transition: background-color 0.15s ease;
  padding: 0;
}
.toggle[aria-checked=true], .toggle[aria-checked=true]:is(:hover, :active, :focus) { background: var(--sage); }
.toggle[disabled] { opacity: 0.5; cursor: default; }
.toggle .knob {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: left 0.15s ease;
}
.toggle[aria-checked=true] .knob { left: 22px; }

/* Long-form article with sticky TOC */
.article-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: 1fr 260px; }
}
.byline {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.byline .ava {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
.byline .n { color: var(--foreground); }
.prose-blocks { margin-top: 2rem; }
.prose-blocks > section + section { margin-top: 2.5rem; }
.prose-blocks h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3333;
  letter-spacing: -0.025em;
}
.prose-blocks .txt {
  margin-top: 0.75rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}
.prose-blocks .txt > p + p { margin-top: 1rem; }
.prose-blocks blockquote {
  margin: 1.25rem 0 0;
  border: 0;
  border-left: 4px solid var(--sage);
  border-radius: 0;
  background: color-mix(in oklab, var(--muted) 40%, transparent);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.625;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}
.prose-blocks .figure {
  position: relative;
  margin-top: 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  background: var(--muted);
}
.prose-blocks .figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.toc-stack { position: sticky; top: 6rem; }
.toc-stack > * + * { margin-top: 1.5rem; }
.toc-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.4286;
}
.toc-nav li { margin: 0; padding: 0; list-style: none; }
.toc-nav li + li { margin-top: 0.625rem; }
.toc-nav a { color: var(--muted-foreground); transition: color 0.15s ease; }
.toc-nav a:hover { color: var(--foreground); }
.like-panel {
  margin-top: 3rem;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
  padding: 1.5rem;
}
.like-panel > h2 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}
.like-panel .cards { gap: 1.25rem; }

/* FAQ accordion (neutralizes Pico's details/summary chrome) */
.faq-list {
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
}
.faq-list details {
  margin: 0;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: none !important; }
.faq-list summary svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.15s ease;
}
.faq-list details[open] summary svg { transform: rotate(90deg); }
.faq-list details > p {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Related content list */
.related-list { display: grid; gap: 0.75rem; }
.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
  transition: border-color 0.15s ease;
}
.related-list a:hover { border-color: color-mix(in oklab, var(--foreground) 30%, transparent); }
.related-list .t {
  margin-top: 0.125rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.related-list svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

/* Centered CTA panel */
.cta-panel {
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  text-align: center;
}
.cta-panel h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.cta-panel > p {
  margin: 0.5rem auto 0;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.cta-panel .cta-row { margin-top: 1.25rem; justify-content: center; }

/* Dashboard */
.dash-card {
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
@media (min-width: 640px) { .dash-card { padding: 2rem; } }
.dash-top { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .dash-top { flex-direction: row; align-items: center; } }
.dash-ava {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage) 30%, transparent);
}
.dash-id { min-width: 0; flex: 1; }
.dash-id .row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.dash-id h1 { font-size: 1.5rem; font-weight: 600; line-height: 1.3333; }
.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  background: var(--muted);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.lock-pill svg { width: 0.75rem; height: 0.75rem; }
.dash-actions { display: flex; flex-shrink: 0; flex-direction: column; gap: 0.5rem; }
.dash-progress {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
@media (min-width: 640px) { .dash-progress { grid-template-columns: 1fr auto; } }
.xp-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }
.xp-head b { font-weight: 600; color: var(--foreground); }
.xp-track { margin-top: 0.5rem; height: 0.625rem; overflow: hidden; border-radius: 9999px; background: var(--muted); }
.xp-fill { height: 100%; border-radius: 9999px; background: var(--sage); }
.xp-val { margin-top: 0.375rem; font-size: 0.75rem; line-height: 1.3333; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.stat-row { display: flex; gap: 1.5rem; }
.stat-row .stat { text-align: center; }
.stat-row .num { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.3333; font-variant-numeric: tabular-nums; }
.stat-row .lbl { font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }

/* Underline tabs */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); }
.tabs button {
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4286;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.tabs button:hover { color: var(--foreground); }
.tabs button.active { border-bottom-color: var(--foreground); color: var(--foreground); }
.news-tabs {
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.news-tabs button,
.news-tabs button:is(:hover, :active, :focus) {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 0.6rem;
  color: var(--foreground);
}
.news-tabs button.active {
  border-bottom-color: var(--foreground);
}
.dashboard-tabs button {
  font-weight: 600;
}
.dashboard-tabs button.active {
  border-bottom-width: 3px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .dashboard-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dashboard-tabs::-webkit-scrollbar {
    display: none;
  }
}
.shelf-head { margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.shelf-head p { font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.shelf-head button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--sage);
}
.shelf-head button:hover { text-decoration: none; color: var(--sage); }
.shelf-head svg { width: 1rem; height: 1rem; }
.product-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) {
  .product-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Build detail (community--b-*) */
.build-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .build-grid { grid-template-columns: 1fr 320px; } }
.build-main { min-width: 0; }
.build-hero {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.8);
  background: var(--muted);
}
.build-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-row { margin-top: 0.75rem; display: flex; gap: 0.5rem; }
.thumb-row span {
  position: relative;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--muted);
}
.thumb-row span.on { border-color: var(--primary); }
.thumb-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.build-h1 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3333; }
.react-row { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.react-row .end { margin-left: auto; display: flex; gap: 0.5rem; }

.signin-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px dashed var(--border);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
  padding: 1rem;
}
@media (min-width: 640px) {
  .signin-strip { flex-direction: row; align-items: center; justify-content: space-between; }
}
.signin-strip p { font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }

.review-comments {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--card);
  padding: 1rem;
}
@media (min-width: 640px) {
  .review-comments { padding: 1.5rem; }
}
.review-comments-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.review-comments-head h2 {
  margin: 0.125rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.review-comment-count {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted-foreground);
}
.review-comments .comment-acts {
  flex-wrap: wrap;
  gap: 0.35rem;
}
.review-comments .comment-acts button {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.3rem 0.6rem;
  background: var(--card);
}
.review-comments .comment-acts button:hover {
  border-color: var(--foreground);
  background: color-mix(in oklab, var(--muted) 35%, transparent);
}
.review-comments .comment-acts button.report:hover {
  border-color: var(--clay);
}
.comment-composer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.comment-form {
  flex: 1;
  margin: 0;
}
.comment-form textarea {
  min-height: 6rem;
  margin: 0;
  resize: vertical;
  border-radius: calc(var(--radius) * 1.1);
  background: var(--background);
  font-size: 0.875rem;
  line-height: 1.5;
}
.comment-form-foot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
@media (min-width: 640px) {
  .comment-form-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.comment-form-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.comment-form-tools button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  transition: color 0.15s ease;
}
.comment-form-tools button:hover { color: var(--foreground); }
.comment-form-tools svg { width: 0.875rem; height: 0.875rem; }
.comment-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.comment-sort button {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.4rem 0.7rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1;
}
.comment-sort button.active,
.comment-sort button:hover {
  border-color: var(--primary);
  color: var(--foreground);
}
.comment-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  border-radius: 9999px;
  background: var(--accent);
  padding: 0.15rem 0.45rem;
  color: var(--accent-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  vertical-align: middle;
}
.author-role {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.author-role-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--sage);
}
.specs-mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}
.spec-mini-item {
  display: flex !important;
  min-height: 9.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-color: var(--border) !important;
  border-radius: calc(var(--radius) * 1.2) !important;
  background: var(--card) !important;
  padding: 1.25rem 0.85rem 1rem !important;
}
.spec-mini-item .muted.small {
  margin-top: 0;
  color: var(--muted-foreground) !important;
  font-size: 0.6875rem !important;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.075em !important;
}
.spec-mini-item strong {
  display: block;
  margin-top: 0.65rem;
  color: var(--foreground) !important;
  font-size: 0.875rem !important;
  line-height: 1.25;
}
.spec-mini-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.8rem;
  border: 0;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--accent) 64%, #fff);
  color: #185B37;
}
.spec-mini-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  overflow: visible;
}
.comment-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.comment-list > li { list-style: none; display: flex; gap: 0.75rem; margin: 0; padding: 0; }
.comment-list > li + li { margin-top: 1.25rem; }
.comment-ava {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
.comment-ava.sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.comment-body { min-width: 0; flex: 1; }
.comment-body .who { font-size: 0.875rem; line-height: 1.4286; }
.comment-body .who .n { font-weight: 500; }
.comment-body .txt {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}
.comment-acts {
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.comment-acts button { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); transition: color 0.15s ease; }
.comment-acts button:hover { color: var(--foreground); }
.comment-acts button.report:hover { color: var(--clay); }
.comment-acts svg { width: 0.875rem; height: 0.875rem; }
.reply-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--muted) 40%, transparent);
}
.reply-list > li { list-style: none; display: flex; gap: 0.625rem; margin: 0; padding: 0; }
.reply-list > li + li { margin-top: 0.75rem; }
.see-more { margin-top: 0.5rem; padding-left: 0.25rem; font-size: 0.75rem; color: var(--sage); }
.see-more:hover { text-decoration: underline; }

.build-aside > * + * { margin-top: 1.5rem; }
.aside-kick {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}
.creator-line { display: flex; align-items: center; gap: 0.75rem; }
.creator-line .ava {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
.creator-line .n { display: block; font-weight: 500; }
.creator-line a:hover .n { text-decoration: underline; }
.creator-line .h { display: block; font-size: 0.75rem; color: var(--muted-foreground); }

/* Creator profile header */
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .profile-head { flex-direction: row; align-items: center; text-align: left; }
}
.profile-head .avatar.lg {
  width: 5rem;
  height: 5rem;
  font-size: 1.5rem;
}
.profile-head .main { flex: 1; }
.profile-head h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.profile-head .handle { font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.profile-head .badges {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .profile-head .badges { justify-content: flex-start; }
}
.profile-head .bio {
  margin-top: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.profile-head .stats {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
@media (min-width: 640px) {
  .profile-head .stats {
    flex-direction: column;
    gap: 0.5rem;
    border-top: 0;
    border-left: 1px solid var(--border);
    padding-top: 0;
    padding-left: 1.5rem;
  }
}
.profile-head .stat { text-align: center; }
@media (min-width: 640px) {
  .profile-head .stat { text-align: left; }
}
.profile-head .stat .num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3333;
  font-variant-numeric: tabular-nums;
}
.profile-head .stat .lbl { font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }

/* Setups grid (2/3/4 cols) */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .setup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .setup-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.setup-card {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  color: inherit;
}
.setup-card .media { aspect-ratio: 1 / 1; }
.setup-card .media > img { transition: transform 0.5s ease; }
.setup-card:hover .media > img { transform: scale(1.04); }
.setup-card .cap {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4286;
}

/* Dashed muted note */
.note-dashed {
  margin-top: 2rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px dashed var(--border);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.note-dashed a { font-weight: 500; color: var(--sage); }
.note-dashed a:hover { text-decoration: underline; }

/* Following feed */
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list > li { list-style: none; margin: 0; padding: 0; }
.feed-list > li + li { margin-top: 1.25rem; }
.feed-card {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
}
.feed-head { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; }
.feed-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
.feed-head .who { min-width: 0; flex: 1; }
.feed-head .who .line { font-size: 0.875rem; line-height: 1.4286; }
.feed-head .who .line a { font-weight: 500; }
.feed-head .who .line a:hover { text-decoration: underline; }
.feed-head .who .line .muted { color: var(--muted-foreground); }
.feed-head .who .time { font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }
.feed-card .media { aspect-ratio: 16 / 9; }
.feed-card .feed-title {
  padding: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Search */
.search-page { padding-bottom: 5rem; }
.search-head { max-width: 56rem; }
.search-tools {
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 20%, var(--card));
  padding: 0.75rem 1rem;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.4375rem 0.875rem;
}
.search-page .search-bar { background: #fff; }
.search-bar svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--muted-foreground); }
.search-bar input {
  min-width: 0;
  min-height: 0;
  height: auto;
  flex: 1;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
  outline: none;
}
.search-bar input:is(:focus, :focus-visible, :active) {
  border: 0;
  box-shadow: none;
  background: transparent;
  outline: none;
}
.search-bar input::placeholder { color: var(--muted-foreground); }
.search-clear {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: var(--muted-foreground);
}
.search-clear:hover { background: var(--muted); color: var(--foreground); }
.search-clear svg { width: 1rem; height: 1rem; }
.result-count { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.result-count b { font-weight: 600; color: var(--foreground); }
[data-articles-page] .result-count { margin-bottom: 1rem; }
.search-tabs {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.search-tabs button {
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.search-tabs button:hover { color: var(--foreground); }
.search-tabs button.active {
  border-bottom-color: var(--foreground);
  font-weight: 500;
  color: var(--foreground);
}
.search-tabs button .n { margin-left: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
.search-suggestions {
  margin-top: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-suggestions button {
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.search-suggestions button:hover {
  border-color: color-mix(in oklab, var(--foreground) 35%, transparent);
  color: var(--foreground);
}
.search-empty {
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px dashed color-mix(in oklab, var(--sage) 45%, transparent);
  background: color-mix(in oklab, var(--sage) 10%, var(--card));
  padding: 1.5rem;
  text-align: center;
}
.search-empty[hidden] { display: none; }
.search-empty h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}
.search-empty p {
  margin: 0.5rem auto 1rem;
  max-width: 34rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.search-page .result-list { margin-top: 1.5rem; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list > li { list-style: none; margin: 0; padding: 0; }
.result-list > li + li { margin-top: 0.75rem; }
.result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem;
  color: inherit;
  transition: border-color 0.15s ease;
}
.result-item:hover { border-color: color-mix(in oklab, var(--foreground) 30%, transparent); }
.result-item .thumb {
  position: relative;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted);
}
.result-item .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-item .info { min-width: 0; flex: 1; }
.result-item .info .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--foreground); }
.result-item .info .desc { margin-top: 0.125rem; font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.result-item .type {
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.125rem 0.5rem;
  font-size: 11px;
  line-height: 1.33;
  color: var(--muted-foreground);
}

/* Gift finder quiz */
.progress-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }
.progress-track { margin-top: 0.5rem; height: 0.5rem; overflow: hidden; border-radius: 9999px; background: var(--muted); }
.progress-fill { height: 100%; border-radius: 9999px; background: var(--sage); }
.quiz-options { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.quiz-option {
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.quiz-option:hover {
  border-color: color-mix(in oklab, var(--foreground) 40%, transparent);
  background: color-mix(in oklab, var(--muted) 40%, transparent);
}

/* How-we-score methodology */
.method-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .method-grid { grid-template-columns: 1fr 280px; } }
.criteria-list > * + * { margin-top: 0.75rem; }
.criteria-card { border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--border); background: var(--card); padding: 1.25rem; }
.criteria-card .head { display: flex; align-items: baseline; gap: 0.75rem; }
.criteria-card .num { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; color: var(--sage); }
.criteria-card h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; line-height: 1.375; }
.criteria-card .what { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.criteria-card .what b { font-weight: 500; color: var(--foreground); }
.criteria-card .shots { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.scale-grid { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .scale-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scale-card { border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--border); background: var(--card); padding: 1.25rem; text-align: center; }
.scale-card .num {
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-foreground);
}
.scale-card .label { margin-top: 0.75rem; font-weight: 600; }
.scale-card .desc { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }
.process-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.process-list > li { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.process-list > li + li { margin-top: 1rem; }
.process-list .step {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--sage) 15%, transparent);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage);
}
.process-list .step-title { font-weight: 500; }
.process-list .step-desc { margin-top: 0.125rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.disclosure-panel { border-radius: calc(var(--radius) * 1.8); border: 1px solid color-mix(in oklab, var(--sage) 30%, transparent); background: color-mix(in oklab, var(--sage) 10%, transparent); padding: 1.5rem; }
.toc { position: sticky; top: 6rem; }
.toc > * + * { margin-top: 1rem; }
.toc-card { border-radius: calc(var(--radius) * 1.4); border: 1px solid var(--border); background: var(--card); padding: 1.25rem; }
.toc-card ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.toc-card li { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.toc-card li + li { margin-top: 0.5rem; }
.toc-card ul a { color: var(--muted-foreground); transition: color 0.15s ease; }
.toc-card ul a:hover { color: var(--foreground); }
.section-h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.3333; }
.scroll-mt { scroll-margin-top: 6rem; }

/* Challenge banner (accent) */
.challenge-banner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--accent);
  padding: 1.5rem;
  color: var(--accent-foreground);
}
@media (min-width: 640px) {
  .challenge-banner { flex-direction: row; align-items: center; }
}
.challenge-banner .status {
  display: inline-flex;
  width: fit-content;
  border-radius: 9999px;
  background: var(--card);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3333;
  color: var(--foreground);
}
.challenge-banner .main { flex: 1; }
.challenge-banner .title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}
.challenge-banner .sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: color-mix(in oklab, var(--accent-foreground) 80%, transparent);
}
.challenge-banner .join {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4286;
  text-underline-offset: 4px;
}
.challenge-banner:hover .join { text-decoration: underline; }

/* Plain media cards (challenge archive) */
.plain-card {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
}
.plain-card .media { aspect-ratio: 16 / 10; }
.plain-card .body { padding: 1rem; }
.plain-card .body .date { font-size: 0.75rem; line-height: 1.3333; color: var(--muted-foreground); }
.plain-card .body h3 {
  margin-top: 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.375;
}
.plain-card .body .winner {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.plain-card .body .winner b { font-weight: 500; color: var(--foreground); }

/* Compact breadcrumb (tags-style, chevron) */
.crumb-sm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  padding-block: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.crumb-sm a { transition: color 0.15s ease; }
.crumb-sm a:hover { color: var(--foreground); }
.crumb-sm .current { color: var(--foreground); }

/* Vertical section stack */
.stack-12 > * + * { margin-top: 3rem; }

/* Tag cards */
.tag-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tag-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .tag-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tag-card {
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  color: inherit;
  transition: border-color 0.15s ease;
}
.tag-card:hover { border-color: color-mix(in oklab, var(--foreground) 30%, transparent); }
.tag-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tag-card h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.375; }
.tag-card .chev {
  color: var(--muted-foreground);
  transition: transform 0.15s ease;
}
.tag-card:hover .chev { transform: translateX(2px); }
.tag-card > p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.tag-card .picks {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--sage);
}

/* Brand cards */
.brand-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .brand-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.brand-card {
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  color: inherit;
  transition: box-shadow 0.15s ease;
}
.brand-card:hover { box-shadow: var(--card-shadow); }
.brand-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-card-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.65rem;
}
.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid color-mix(in oklab, var(--sage) 34%, var(--border));
  border-radius: 9999px;
  background: color-mix(in oklab, var(--sage) 11%, var(--card));
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.brand-logo.wide { font-size: 0.72rem; }
.brand-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.brand-card:hover h3 { text-decoration: underline; }
.count-pill {
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3333;
  white-space: nowrap;
}
.brand-card > p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.brand-card .view {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--sage);
}

/* Quick-answer accent panel */
.quick-answer {
  margin-top: 1.25rem;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid oklch(0.9 0.012 100);
  background: oklch(0.93 0.025 150 / 0.5);
  padding: 1.5rem;
}
.quick-answer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.quick-answer .eyebrow {
  margin: 0 0 0.375rem;
  color: oklch(0.42 0.09 155);
  letter-spacing: 0.2em;
}
.quick-answer h2 {
  margin: 0;
  color: oklch(0.28 0.04 150);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3333;
  letter-spacing: 0;
}
.quick-answer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: oklch(0.42 0.09 155);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.quick-answer-link svg {
  width: 0.875rem;
  height: 0.875rem;
}
.quick-answer-list {
  display: grid;
}
.quick-answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: 0.375rem;
  border-top: 1px solid oklch(0.9 0.012 100);
  padding: 1rem 0;
}
.quick-answer-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.quick-answer-row:last-child { padding-bottom: 0; }
.quick-answer-role {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: oklch(0.28 0.04 150);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.quick-answer-role svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: oklch(0.42 0.09 155);
}
.quick-answer-row p {
  margin: 0;
  color: oklch(0.5 0.02 140);
  font-size: 0.875rem;
  line-height: 1.625;
}
.quick-answer-row p strong { color: oklch(0.28 0.04 150); }
.quick-answer strong { font-weight: 600; }
.quick-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  border-radius: 9999px;
  background: oklch(0.42 0.09 155);
  color: oklch(0.98 0.01 90);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: 0.08em;
}
.quick-pick svg {
  width: 0.625rem;
  height: 0.625rem;
  fill: currentColor;
  flex: 0 0 auto;
}
@media (min-width: 640px) {
  .quick-answer {
    padding: 2rem;
  }
  .quick-answer-row {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
  }
}

/* Clay notice strip */
.notice-clay {
  display: flex;
  gap: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--clay) 30%, transparent);
  background: color-mix(in oklab, var(--clay) 10%, transparent);
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}
.notice-clay svg {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--clay);
}
.notice-clay a.ul { text-decoration: underline; text-underline-offset: 2px; }

/* Detail split (content + 300px side) */
.grid-detail {
  display: grid;
  align-items: start;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .grid-detail {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
    gap: 3.5rem;
  }
}
.grid-detail .section-head {
  margin-bottom: 2rem;
  align-items: flex-start;
}
.prose-muted {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.prose-muted > p + p { margin-top: 1rem; }
.prose-muted .strong { font-weight: 600; color: var(--foreground); }
.detail-points {
  display: grid;
}
.detail-point {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.detail-point:first-child {
  border-top: 0;
  padding-top: 0;
}
.detail-point:last-child { padding-bottom: 0; }
.detail-index {
  color: color-mix(in oklab, var(--muted-foreground) 48%, transparent);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
}
.detail-point h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}
.detail-point p {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.edge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--accent) 72%, var(--card));
  color: var(--sage);
  padding: 0.14rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.scene-fit-media {
  border-radius: calc(var(--radius) * 1.5);
}
.scene-fit-caption {
  margin: 0.875rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.6;
}
@media (max-width: 639.98px) {
  .detail-point {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 1.4rem 0;
  }
}

/* Verdict cards */
.verdict-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .verdict-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.verdict-cards > div {
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
}
.verdict-cards .name {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}
.verdict-cards .desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}

/* Rounded framed media */
.media.r43 {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta-row .btn{font-size: 0.775rem; line-height: 1;}

/* Featured guide split card */
.feature-card {
  display: grid;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--card);
  color: inherit;
}
@media (min-width: 768px) {
  .feature-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.feature-card .media { aspect-ratio: 16 / 10; }
@media (min-width: 768px) {
  .feature-card .media { aspect-ratio: auto; }
}
.feature-card .media > img { transition: transform 0.5s ease; }
.feature-card:hover .media > img { transform: scale(1.03); }
.feature-card .badge-clay { position: absolute; left: 0.75rem; top: 0.75rem; }
.feature-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .feature-card .body { padding: 8rem 2rem; }
}
.feature-card .body h2 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.375;
  text-wrap: balance;
}
.feature-card .body > p {
  margin-top: 0.5rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.read-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.read-link svg { width: 1rem; height: 1rem; transition: transform 0.15s ease; }
.feature-card:hover .read-link svg { transform: translateX(2px); }

/* Card variants */
.media.wide { aspect-ratio: 16 / 10 !important; }
.card-title.lg { font-size: 1.125rem; }
.read-time {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.read-time svg { width: 0.875rem; height: 0.875rem; }
.cards.g6 { gap: 1.5rem; }

/* Product card extras */
.brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.brand {
  font-size: 0.75rem;
  line-height: 1.3333;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--sage);
}
.product-card .card-title { margin-top: 0.25rem; }
.product-card .card-excerpt { margin-top: 0.25rem; }
.price-row {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price { font-weight: 600; }
.price-row .meta {
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--muted-foreground);
}
.industry-tags {
  margin-top: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.industry-tags span {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--sage) 10%, var(--card));
  color: var(--foreground);
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: nowrap;
}
.industry-tags .warn {
  background: color-mix(in oklab, var(--warning) 13%, var(--card));
}

/* --------------------------------------------------------------------------
   10. Comparison table
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 0.875rem 2rem color-mix(in oklab, var(--foreground) 8%, transparent);
}
table.compare {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.4286;
  margin: 0;
  background: transparent;
}
table.compare th,
table.compare td {
  padding: 0.95rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent;
  color: inherit;
  vertical-align: middle;
}
table.compare th:last-child,
table.compare td:last-child { border-right: 0; }
table.compare thead th {
  padding-block: 1.75rem 1.5rem;
  vertical-align: bottom;
}
table.compare tr:last-child > * { border-bottom: 0; }
table.compare thead tr:last-child > * { border-bottom: 1px solid var(--border); }
table.compare tr.alt { background: color-mix(in oklab, var(--muted) 28%, transparent); }
table.compare .crit {
  width: 12rem;
  min-width: 12rem;
  font-weight: 600;
  color: var(--foreground);
}
table.compare thead .crit {
  vertical-align: middle;
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
table.compare th.product {
  position: relative;
  text-align: center;
  vertical-align: bottom;
}
table.compare td:not(.crit) { text-align: center; }
table.compare th.product .th-cover {
  display: block;
  width: 6rem;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 0.875rem;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.9);
  background: var(--muted);
}
table.compare th.product .th-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
table.compare th.product .th-brand {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
table.compare th.product .th-name {
  display: block;
  margin: 0.25rem auto 0;
  max-width: 12rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--foreground);
}
table.compare th.product .toppick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
}
table.compare th.hl,
table.compare td.hl {
  background: color-mix(in oklab, var(--accent) 68%, transparent);
}
table.compare th.hl { box-shadow: inset 0 4px 0 var(--primary); }
table.compare .score-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--primary);
}
table.compare .score-star,
table.compare .score-max {
  line-height: 1;
}
table.compare .score-lg strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--foreground);
}
table.compare .score-max {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
table.compare .group-row td {
  padding: 0.55rem 1.25rem;
  text-align: left;
  border-right: 0;
  background: color-mix(in oklab, var(--muted) 58%, transparent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
table.compare .rating-value,
table.compare .dots::after {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--muted-foreground);
}
table.compare .dots {
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}
table.compare .dots i {
  flex: 0 0 auto;
}
table.compare .dots::after { content: attr(aria-label); }
table.compare .price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}
table.compare .spec-state {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}
table.compare .spec-state.yes { color: var(--primary); }
table.compare .spec-state.no { color: var(--muted-foreground); }
table.compare .spec-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: var(--foreground);
}
table.compare tr.actions td {
  padding-block: 1.25rem;
  border-bottom: 0;
}
table.compare tr.actions .btn {
  min-width: 8.5rem;
  justify-content: center;
}
table.compare .crit.blank { background: var(--card); }

/* --------------------------------------------------------------------------
   11. Panels: banner + newsletter
   -------------------------------------------------------------------------- */
.banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 1.75rem;
}
@media (min-width: 640px) {
  .banner {
    flex-direction: row;
    align-items: center;
    padding: 2.25rem;
  }
}
.banner .eyebrow { margin-bottom: 0.25rem; }
.banner h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3333;
  text-wrap: pretty;
}
.banner p {
  margin-top: 0.5rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.banner .btn { flex-shrink: 0; }
.creator-program-banner {
  border-color: color-mix(in oklab, var(--sage) 18%, transparent);
  background: color-mix(in oklab, var(--accent) 56%, #fff);
  color: var(--primary);
}
.creator-program-banner h2 {
  color: var(--primary);
}
.creator-program-banner p {
  color: color-mix(in oklab, var(--primary) 64%, var(--muted-foreground));
}
.creator-program-banner .btn:not(.btn-outline) {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.creator-program-banner .btn-outline {
  border-color: color-mix(in oklab, var(--primary) 18%, var(--border));
  background: var(--card);
  color: var(--primary);
}
.creator-program-banner .btn-outline:hover {
  border-color: color-mix(in oklab, var(--primary) 42%, transparent);
  color: var(--primary);
}
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
@media (min-width: 640px) {
  .banner-actions {
    justify-content: flex-end;
    text-align: right;
  }
}
@media (min-width: 1024px) {
  .banner-actions {
    flex-wrap: nowrap;
  }
}

.subscribe {
  margin-bottom: 0;
  background-color: #F0F3F1;
  background-image: url("../image/subscribe-sage-brick-bouquet.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.page-main > .subscribe {
  margin-inline: calc(50% - 50vw);
}
.newsletter {
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--accent);
  padding: 1.5rem;
  margin:0 auto;
}
@media (min-width: 640px) {
  .newsletter { padding: 2rem; }
}
.newsletter h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-foreground);
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .newsletter h3 { font-size: 1.5rem; line-height: 1.3333; }
}
.newsletter .sub {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: color-mix(in oklab, var(--accent-foreground) 80%, transparent);
}
.newsletter form {
  margin-top: 1rem;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.625rem;
}
@media (min-width: 640px) {
  .newsletter form { flex-direction: row; }
}
.newsletter .note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: color-mix(in oklab, var(--accent-foreground) 60%, transparent);
}
.newsletter .btn { height: 2.75rem; flex-shrink: 0; padding-inline: 1.25rem; }
@media (min-width: 640px) {
  .newsletter .btn { padding-inline: 1.5rem; }
}

/* Pill input (overrides Pico's input look where the design needs pills) */
input.pill-input, select.pill-input {
  height: 2.75rem;
  min-width: 0;
  /* basis auto (not 0): in stacked (column) forms the flex axis is
     vertical, and a 0 basis collapses the input's height */
  flex: 1 1 auto;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  box-shadow: none;
}
input.pill-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 30%, transparent);
}

/* Deals + coupon page */
.main-nav a.active {
  color: var(--foreground);
  font-weight: 600;
}
.deals-template {
  background: #f8f1e6;
}
.deals-template .page {
  background: transparent;
}

.deals-hero {
  max-width: 54rem;
}
.deals-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.deals-search {
  display: block;
  margin-top: 1.5rem;
  width: min(100%, 42rem);
  max-width: 100%;
}
.deals-search .search-bar {
  width: 100%;
  box-sizing: border-box;
  background: color-mix(in oklab, var(--card) 90%, var(--background));
}
.deals-search > p {
  margin-top: 0.625rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.deals-search > p button {
  color: var(--sage);
  font-weight: 600;
}
.deals-search > p button:hover {
  text-decoration: underline;
}
.deal-notice {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  border: 1px solid color-mix(in oklab, var(--clay) 28%, var(--border));
  border-radius: calc(var(--radius) * 1.1);
  background: color-mix(in oklab, var(--clay) 9%, var(--card));
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.deal-notice > span {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--clay) 45%, transparent);
  color: var(--clay);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}
.deals-toolbar {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.deals-toolbar p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}
.deals-filter .chip {
  cursor: pointer;
}
.deals-grid {
  margin-top: 1.5rem;
  display: grid;
  min-width: 0;
  gap: 1.25rem;
}
.deals-grid > * { min-width: 0; }
@media (min-width: 720px) {
  .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  .deals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.deal-card {
  display: flex;
  min-width: 0;
  min-height: 19.5rem;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.35);
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 0.75rem 1.5rem color-mix(in oklab, var(--foreground) 6%, transparent);
}
.deal-card[hidden] {
  display: none;
}
.deals-empty {
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) * 1.25);
  border: 1px dashed color-mix(in oklab, var(--sage) 45%, transparent);
  background: color-mix(in oklab, var(--sage) 9%, var(--card));
  padding: 1.5rem;
  text-align: center;
}
.deals-empty[hidden] {
  display: none;
}
.deals-empty h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}
.deals-empty p {
  margin: 0.5rem auto 0;
  max-width: 34rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.deal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.deal-brand {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3333;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.deal-brand span {
  display: inline-flex;
  margin-left: 0.375rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--clay) 12%, var(--card));
  padding: 0.125rem 0.375rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--clay);
}
.deal-head h2 {
  margin: 0;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: pretty;
}
.deal-badge {
  flex: 0 0 auto;
  border-radius: 0.625rem;
  background: var(--accent);
  padding: 0.5rem 0.75rem;
  color: var(--accent-foreground);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .deals-search { width: 100%; }
  .deals-search > p { max-width: 100%; }
  .deal-head {
    flex-wrap: wrap;
    gap: 0.625rem 0.875rem;
  }
  .deal-badge {
    padding: 0.4375rem 0.625rem;
    font-size: 0.875rem;
  }
}
.deal-desc {
  margin: 1rem 0 0;
  min-height: 3rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}
.deal-code {
  margin-top: 1rem;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px dashed color-mix(in oklab, var(--sage) 75%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent) 16%, var(--card));
  padding: 0.75rem 0.875rem;
  color: var(--foreground);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.deal-code:hover {
  border-color: var(--sage);
  background: color-mix(in oklab, var(--accent) 28%, var(--card));
}
.deal-code span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.deal-code em {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--muted-foreground);
}
.deal-code.muted {
  justify-content: center;
  cursor: default;
}
.deal-code:disabled {
  opacity: 1;
  cursor: default;
}
.deal-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.deal-meta .ok { color: var(--sage); }
.deal-meta .ok::before { content: "鉁?"; }
.deal-meta .warn { color: var(--clay); }
.deal-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.deal-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deal-foot a {
  flex: 0 0 auto;
  color: var(--foreground);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.deal-steps {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 840px) {
  .deal-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.deal-steps article {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.3);
  background: var(--card);
  padding: 1.25rem;
}
.deal-steps span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--accent) 70%, var(--card));
  color: var(--sage);
  font-weight: 700;
}
.deal-steps h3 {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
}
.deal-steps p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}
/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}
.site-footer > .container { padding-block: 3.5rem; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.footer-brand { max-width: 20rem; }
.footer-brand .logo { display: flex; }
.footer-brand .tagline {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4286;
  color: var(--foreground);
}
.footer-grid ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.footer-grid li { padding: 0; margin: 0; list-style: none; }
.footer-grid li + li { margin-top: 0.225rem; }
.footer-grid ul a {
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.footer-grid ul a:hover { color: var(--foreground); }
.footer-note {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.footer-note p {
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.footer-note p + p { margin-top: 1rem; line-height: 1.3333; }

/* --------------------------------------------------------------------------
   13. Bottom nav (mobile)
   -------------------------------------------------------------------------- */
.bottom-nav {
  display: block;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.bottom-nav ul {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  list-style: none;
}
/* Higher specificity than Pico's nav ul negative margins, keeps it centered */
nav.bottom-nav ul {
  margin: 0 auto;
  padding: 0 0.5rem;
}
.bottom-nav li { flex: 1; padding: 0; margin: 0; list-style: none; }
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.625rem 0;
  border-radius: 0;
  font-size: 11px;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.bottom-nav a svg { width: 1.25rem; height: 1.25rem; }
.bottom-nav a.active { color: var(--foreground); }
.bottom-nav a.active svg { color: var(--primary); }

/* --------------------------------------------------------------------------
   14. Refined native selects (ported from original)
   -------------------------------------------------------------------------- */
select.pill-input {
  -webkit-appearance: none;
  appearance: none;
  min-width: 128px;
  width: auto;
  flex: none;
  height: auto;
  margin: 0;
  padding: 0.5rem 2.6rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 9999px;
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23302a25' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 13px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
select.pill-input:hover {
  border-color: color-mix(in oklab, var(--foreground) 24%, var(--border));
  background-color: color-mix(in oklab, var(--card) 94%, white);
}
select.pill-input:focus {
  border-color: var(--ring);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 3px color-mix(in oklab, var(--ring) 18%, transparent);
}

/* --------------------------------------------------------------------------
   15. Product filter state (ported from original)
   -------------------------------------------------------------------------- */
.product-filter-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  margin-top: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid color-mix(in oklab, var(--border) 72%, transparent);

}
.product-filter-status[hidden],
.product-empty-state[hidden] {
  display: none !important;
}
.product-compare-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}
.product-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.product-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.25rem 0.75rem;
  color: var(--foreground);
  font-size: 0.75rem;
  line-height: 1;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.product-filter-chip:hover {
  border-color: color-mix(in oklab, var(--foreground) 24%, var(--border));
  background: color-mix(in oklab, var(--card) 92%, white);
}
.product-filter-clear {
  border: 0;
  background: transparent;
  color: var(--sage);
  font-size: 0.75rem;
  line-height: 1;
}
.product-filter-clear:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-filter-active {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
}
.product-product-hidden {
  display: none !important;
}
.product-empty-state {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 168px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: color-mix(in oklab, var(--card) 68%, transparent);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}
.product-empty-state button {
  border-radius: 999px;
  background: var(--primary);
  padding: 0.55rem 1rem;
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
.product-empty-state button:hover {
  opacity: 0.92;
}

/* Guides 鈥?browse by goal tiles */

/* Challenge detail 鈥?production race leaderboard */
.challenge-detail .brand-line { align-items: flex-start; }
.race {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.race-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
}
.race-row.in {
  border-color: color-mix(in oklab, var(--clay) 34%, transparent);
  background: color-mix(in oklab, var(--clay) 7%, transparent);
}
.race-row.below { opacity: 0.72; }
.race-rank {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-weight: 700;
  font-size: 0.8125rem;
}
.race-row.in .race-rank { background: var(--clay); color: var(--clay-foreground); }
.race-main { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.race-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.verified { color: var(--sage); font-weight: 700; }
.race-gap { color: var(--clay); font-weight: 600; }
.race-bar {
  position: relative;
  height: 0.375rem;
  max-width: 22rem;
  margin-top: 0.125rem;
  border-radius: 9999px;
  background: var(--muted);
  overflow: hidden;
}
.race-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--clay) 55%, var(--sage));
}
.race-side { display: flex; align-items: center; gap: 0.75rem; }
.race-votes {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vote-btn {
  border-radius: 9999px;
  padding: 0.3125rem 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.vote-btn:hover { opacity: 0.9; }
.vote-btn.is-voted {
  background: color-mix(in oklab, var(--clay) 16%, transparent);
  color: var(--clay);
  cursor: default;
}
.race-cut {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}
.race-cut::before,
.race-cut::after {
  content: "";
  flex: 1;
  border-top: 1px dashed color-mix(in oklab, var(--clay) 45%, transparent);
}
@media (max-width: 520px) {
  .race-bar { max-width: none; }
}

/* Challenge Entry ribbon + Quick Vote on setup cards */
.ribbon-entry {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.33;
  background: var(--clay);
  color: var(--clay-foreground);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}
.quick-vote {
  position: absolute;
  right: 0.625rem;
  bottom: 0.625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.3125rem 0.625rem;
  background: color-mix(in oklab, var(--card) 92%, transparent);
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.14);
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s ease, color 0.15s ease;
}
.quick-vote svg { width: 0.875rem; height: 0.875rem; color: var(--clay); }
.ugc-card:hover .quick-vote,
.ugc-card:focus-within .quick-vote,
.quick-vote:focus-visible { opacity: 1; transform: translateY(0); }
.quick-vote:hover { background: var(--primary); color: var(--primary-foreground); }
.quick-vote:hover svg { color: var(--primary-foreground); }
.quick-vote.is-voted {
  opacity: 1;
  transform: none;
  background: var(--clay);
  color: var(--clay-foreground);
  cursor: default;
}
.quick-vote.is-voted svg { color: var(--clay-foreground); }
@media (hover: none) {
  .quick-vote { opacity: 1; transform: none; }
}

/* Monthly challenge countdown */
.countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}
.countdown .cd-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}
.countdown .cd-grid {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}
.countdown .cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.25rem;
  padding: 0.25rem 0.25rem 0.1875rem;
  border-radius: calc(var(--radius) * 0.9);
  background: color-mix(in oklab, var(--clay) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--clay) 22%, transparent);
}
.countdown .cd-cell b {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.countdown .cd-cell i {
  margin-top: 0.1875rem;
  font-style: normal;
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--clay) 70%, var(--muted-foreground));
}
.countdown .cd-sep {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-weight: 700;
  color: color-mix(in oklab, var(--clay) 45%, transparent);
}
.community-challenge .countdown .cd-label {
  color: var(--muted-foreground);
}
.community-challenge .countdown .cd-cell {
  min-width: 2.65rem;
  padding: 0.5rem 0.45rem 0.38rem;
  border-color: var(--border);
  background: color-mix(in oklab, var(--card) 86%, var(--muted));
}
.community-challenge .countdown .cd-cell b {
  color: var(--primary);
}
.community-challenge .countdown .cd-cell i {
  color: var(--muted-foreground);
}
.community-challenge .countdown .cd-sep {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}
@media (max-width: 520px) {
  .countdown .cd-cell { min-width: 1.85rem; }
  .countdown .cd-cell b { font-size: 0.9375rem; }
  .countdown .cd-sep { display: none; }
}

/* Creator Program 鈥?From Concept to Shelf */
.concept-card {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.8);
  border: 1px solid var(--border);
  background: var(--card);
}
.concept-card .cc-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
}
.concept-card figure { margin: 0; }
.concept-card figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) * 1.2);
}
.concept-card figcaption {
  margin-top: 0.375rem;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.concept-card .cc-arrow {
  color: var(--clay);
  font-size: 1.125rem;
  line-height: 1;
}
.concept-card .cc-body { padding: 0 1rem 1rem; }
.concept-card .cc-body .title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
}
.concept-card .cc-body .meta {
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.concept-card .cc-status {
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  background: color-mix(in oklab, var(--clay) 14%, transparent);
  color: var(--clay);
  font-weight: 600;
  white-space: nowrap;
}
.concept-card .cc-status.cc-sampling {
  background: color-mix(in oklab, var(--sage) 16%, transparent);
  color: var(--sage);
}

/* Submit build wizard */
.submit-ind li {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.submit-ind .bar {
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--muted);
  transition: background 0.15s ease;
}
.submit-ind li.is-active .bar,
.submit-ind li.is-done .bar { background: var(--sage); }
.submit-ind .lbl { color: var(--muted-foreground); }
.submit-ind li.is-active .lbl { font-weight: 500; color: var(--foreground); }
.pick-item.is-selected {
  border-color: var(--sage);
  background: color-mix(in oklab, var(--sage) 8%, transparent);
}
.chip-select { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.rate-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.rate-label { font-size: 0.9375rem; font-weight: 500; }
.rate-btns { display: inline-flex; gap: 0.5rem; }
.rate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.rate-btn:hover {
  border-color: var(--sage);
  color: var(--foreground);
  transform: translateY(-1px);
}
.rate-btn.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--sage-foreground);
  box-shadow: 0 3px 10px color-mix(in oklab, var(--sage) 32%, transparent);
}
.submit-field { display: flex; flex-direction: column; gap: 0.375rem; }
.submit-field label { font-size: 0.875rem; font-weight: 600; }
textarea.pill-input {
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) * 1.2);
  font-family: inherit;
  resize: vertical;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  border: 1.5px dashed color-mix(in oklab, var(--foreground) 25%, transparent);
  border-radius: calc(var(--radius) * 1.4);
  padding: 2rem 1rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover {
  border-color: var(--sage);
  background: color-mix(in oklab, var(--sage) 5%, transparent);
}
.dropzone b { color: var(--sage); }
.dz-note { font-size: 0.75rem; }
.perm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}
.perm-check input { margin-top: 0.2rem; flex-shrink: 0; }
.submit-success { text-align: center; }
.success-ico {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--sage) 15%, transparent);
  color: var(--sage);
}
.submit-success .cta-row { justify-content: center; }

/* Onboarding wizard */
.ob-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.ob-avatars { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ob-avatar {
  border: 2px solid transparent;
  border-radius: 9999px;
  padding: 3px;
  background: none;
  line-height: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.ob-avatar .avatar {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
  background: color-mix(in oklab, var(--sage) 12%, transparent);
  color: var(--sage);
}
.ob-avatar:hover { border-color: color-mix(in oklab, var(--sage) 40%, transparent); }
.ob-avatar.is-selected { border-color: var(--sage); }
.ob-pick {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid var(--border);
  background: var(--card);
}
.ob-pick .media { aspect-ratio: 4 / 3; overflow: hidden; }
.ob-pick .media img { width: 100%; height: 100%; object-fit: cover; }
.ob-pick-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem;
}
.ob-pick-body .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
}
.ob-save {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.ob-save:hover { border-color: var(--sage); color: var(--foreground); }
.ob-save.is-saved { background: var(--sage); border-color: var(--sage); color: var(--sage-foreground); }
.ob-done { text-align: center; }

/* Global Cookie Consent Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background-color: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: calc(var(--pico-border-radius, 0.25rem) * 2.4);
  padding: 1.125rem;
  z-index: 10000;
  box-shadow: 0 12px 28px rgba(48, 42, 37, 0.13);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideUpConsent 0.4s ease-out;
  box-sizing: border-box;
}
.cookie-copy {
  width: 100%;
  text-align: left;
}
.cookie-copy h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}
.cookie-copy p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  width: 100%;
  gap: 0.75rem;
}
.cookie-actions .btn {
  flex: 1 1 0;
  margin: 0;
  font-size: 0.825rem;
}
@media (max-width: 575px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-height: min(28vh, 14.5rem);
    overflow-y: visible;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: calc(var(--pico-border-radius, 0.25rem) * 2.25);
  }
  .cookie-copy h4 {
    margin-bottom: 0.375rem;
    font-size: 1rem;
    line-height: 1.25;
  }
  .cookie-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }
  .cookie-actions .btn {
    min-height: 2.25rem;
    padding-inline: 0.75rem;
  }
}
@media (min-width: 576px) {
  .cookie-banner {
    left: auto;
    right: 1.25rem;
    width: 380px;
  }
}
@keyframes slideUpConsent {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Global Interactive Overlays */
.global-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInOverlay 0.25s ease-out;
}
.global-modal-content {
  background-color: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: calc(var(--pico-border-radius, 0.25rem) * 3);
  width: 100%;
  max-width: 460px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: scaleInContent 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}
.global-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pico-muted-color);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.global-modal-close:hover {
  background-color: var(--pico-muted-border-color);
  color: var(--pico-color);
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleInContent {
  from { transform: scale(0.9) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Skeleton Loading Animation */
.skeleton-wave {
  background: linear-gradient(90deg, var(--pico-card-background-color) 25%, var(--pico-muted-border-color) 50%, var(--pico-card-background-color) 75%);
  background-size: 200% 100%;
  animation: loadingSkeleton 1.5s infinite;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}
@keyframes loadingSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Micro-animations for Votes */
.btn-vote {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-vote:active {
  transform: scale(0.95);
}
.btn-vote.active {
  background-color: var(--sage) !important;
  border-color: var(--sage) !important;
  color: white !important;
  transform: scale(1.05);
}

/* Custom Header Navigation Dropdowns */
.main-nav .nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}
.main-nav .nav-dropdown-trigger {
  font-weight: 400;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
  transition: color 0.15s ease;
}
.main-nav .nav-dropdown:hover .nav-dropdown-trigger,
.main-nav .nav-dropdown.is-open .nav-dropdown-trigger,
.main-nav .nav-dropdown-trigger:hover {
  color: var(--foreground);
}
.main-nav .nav-caret {
  display: block;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  transform: translateY(0.05rem);
  transition: transform 0.15s ease;
}
.main-nav .nav-dropdown:hover .nav-caret,
.main-nav .nav-dropdown.is-open .nav-caret {
  transform: translateY(0.05rem) rotate(180deg);
}
.main-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1.25rem;
  background-color: #fff;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: calc(var(--pico-border-radius, 0.25rem) * 1.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 10000;
  margin-top: 0;
  padding: 0.5rem 0;
  box-sizing: border-box;
}
.main-nav .nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.25rem;
  height: 0.25rem;
}
.main-nav .nav-dropdown-menu a {
  display: block !important;
  padding: 0.6rem 1.25rem !important;
  color: var(--muted-foreground) !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  text-align: left !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.main-nav .nav-dropdown-menu a:hover {
  background-color: transparent !important;
  color: var(--foreground) !important;
}
.main-nav .nav-dropdown:hover .nav-dropdown-menu,
.main-nav .nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

/* Sticky Column for Comparison Table */
.compare-showcase td.crit, .compare-showcase th.crit {
  position: sticky;
  left: 0;
  background-color: var(--pico-card-background-color);
  z-index: 10;
  box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.1);
}

/* Consistent Breadcrumbs Styling */
.crumb-sm, .crumb-chev, .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: color-mix(in oklab, var(--pico-muted-color) 55%, var(--background));
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.crumb-sm a, .crumb-chev a, .breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.crumb-sm a:hover, .crumb-chev a:hover, .breadcrumb a:hover {
  color: var(--sage);
}
.crumb-sm span[aria-hidden="true"], .crumb-chev span[aria-hidden="true"], .breadcrumb span[aria-hidden="true"] {
  font-size: 1.05em;
  line-height: 1;
  opacity: 0.65;
}
.crumb-sm svg, .crumb-chev svg, .breadcrumb svg {
  width: 0.875rem;
  height: 0.875rem;
  color: currentColor;
  flex-shrink: 0;
  margin: 0;
  opacity: 0.65;
}
.crumb-sm .current, .crumb-chev .current, .breadcrumb .current,
.crumb-sm span:last-child, .crumb-chev span:last-child, .breadcrumb span:last-child {
  color: inherit;
  font-weight: 500;
}

/* Search Highlights & Loader Spinner */
mark.highlight {
  background-color: color-mix(in oklab, var(--sage) 20%, transparent);
  color: var(--sage);
  font-weight: 600;
  border-radius: 2px;
  padding: 0 2px;
}
.search-bar {
  position: relative;
}
.search-bar::after {
  content: "";
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--pico-muted-border-color);
  border-top-color: var(--sage);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}
.search-bar.searching::after {
  opacity: 1;
  animation: spin 0.6s linear infinite;
}

/* Helpful row chip active state */
.helpful-row .chip {
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}
.helpful-row .chip:active {
  transform: scale(0.95);
}
.helpful-row .chip.active {
  background-color: var(--sage) !important;
  border-color: var(--sage) !important;
  color: white !important;
}
.helpful-row .chip.active svg {
  color: white !important;
}
