:root {
  --bg: #f7f1e8;
  --panel: #fffaf5;
  --panel-strong: #fff;
  --primary: #214e34;
  --primary-light: #dfeee5;
  --secondary: #d88c4a;
  --soft: #f5d7b2;
  --ink: #1f271d;
  --muted: #6a726c;
  --line: #e7ddcf;
  --shadow: 0 20px 45px rgba(24, 41, 31, 0.08);
}
  /* Editorial voice: Fraunces for craft-page headings, Source Serif for their prose.
     Inter stays the interface face so chrome and body never compete. */


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #f9f2ea 0%, #f3eee6 100%);
  color: var(--ink);
}

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

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

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

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;          /* never let a nav item paint over the account buttons */
  align-items: center;
  column-gap: 20px;
  row-gap: 8px;
  padding: 16px 22px;
  background: rgba(255, 250, 245, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(33, 78, 52, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 20;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #3d7a5c);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;        /* every item stays on the same line */
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex: 1 1 340px;
  min-width: 0;
  overflow-x: auto;         /* if the row is too tight it scrolls, it does not wrap */
  overflow-y: hidden;
  scrollbar-width: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

/* The fix for the two-line "Producer Hub": a nav label is never allowed to wrap. */
.main-nav a {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 10px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(33, 78, 52, 0.06);
}

.main-nav a[aria-current="page"] {
  color: var(--primary);
  background: rgba(33, 78, 52, 0.1);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3a7257);
  color: white;
  box-shadow: 0 10px 20px rgba(33, 78, 52, 0.2);
}

.btn-secondary {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.wide {
  width: 100%;
}

main {
  padding-top: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 36px 0 20px;
}

.hero-copy,
.hero-visual,
.pillar,
.panel,
.product-card,
.checkout-panel,
.checkout-panel-large {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px 36px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.hero h1,
.section-header h1,
.section-header h2,
.product-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p,
.product-info .description,
.pillar p,
.footer p,
.footer li,
.product-body p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  font-size: 1.8rem;
}

.hero-stats span {
  color: var(--muted);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #f5efe7 0%, #ffffff 100%);
}

.visual-card {
  padding: 20px 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.large-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #214e34 0%, #3f7858 100%);
  color: white;
}

.small-card {
  background: linear-gradient(135deg, #fde7d0 0%, #fff6ee 100%);
}

.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  opacity: 0.85;
}

.large-card h3 {
  font-size: 2.6rem;
  margin: 10px 0 0;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}

.sparkline span {
  display: block;
  width: 12px;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.8);
}

.sparkline span:nth-child(1) { height: 28%; }
.sparkline span:nth-child(2) { height: 45%; }
.sparkline span:nth-child(3) { height: 32%; }
.sparkline span:nth-child(4) { height: 60%; }
.sparkline span:nth-child(5) { height: 78%; }
.sparkline span:nth-child(6) { height: 52%; }
.sparkline span:nth-child(7) { height: 90%; }

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

.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 20px;
}

.pill-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 14px;
  font-size: 1.5rem;
}

.pillar h3 {
  margin: 0 0 8px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 18px;
}

.section-tagline {
  margin: -6px 0 0;
  padding-right: 2px;
  text-align: right;          /* sits under the right edge of the heading */
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0;
}

.section-header a {
  color: var(--primary);
  font-weight: 700;
}

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

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-body {
  padding: 18px 18px 20px;
}

.meta-row,
.price-row,
.detail-meta,
.summary-row,
.stack-row,
.actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.muted {
  background: #f0f3f1;
  color: var(--muted);
}

.rating {
  color: #d2803d;
  font-weight: 700;
}

.product-body h3 {
  margin: 14px 0 8px;
  font-size: 1.4rem;
}

.product-body p {
  margin: 0;
}

.price-row {
  margin: 16px 0;
}

.price-row strong {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.price-row small {
  color: var(--muted);
}

.actions-row {
  margin-top: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.product-image-wrap {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.detail-image {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 20px;
}

.product-info {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.detail-meta {
  justify-content: flex-start;
  color: var(--muted);
  margin-bottom: 14px;
}

.detail-price {
  justify-content: flex-start;
  gap: 18px;
  margin: 18px 0 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  margin-right: 10px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

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

.detail-grid > div {
  background: #f6f2ec;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.toolbar {
  margin-top: 10px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) 0.95fr 0.85fr 1.05fr minmax(178px, 1.15fr);
  gap: 12px;
  align-items: center;
}

.filters input,
.filters select,
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: white;
}

.filters select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 0.85rem;
  padding-right: 2.15rem;
  font-size: 0.95rem;
  cursor: pointer;
  text-overflow: ellipsis;
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 13px 13px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.filters select:hover {
  border-color: rgba(33, 78, 52, 0.35);
}

.filters select:focus-visible {
  outline: 2px solid rgba(33, 78, 52, 0.3);
  outline-offset: 1px;
}

.empty-state {
  grid-column: 1 / -1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
  align-items: start;
}

.cart-items,
.checkout-panel,
.checkout-panel-large,
.panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.cart-items {
  padding: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 16px;
}

.cart-copy h3 {
  margin: 0;
}

.cart-copy p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cart-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.checkout-panel,
.checkout-panel-large {
  padding: 22px;
}

.summary-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  font-size: 1.15rem;
  border-bottom: none;
}

.checkout-panel {
  position: sticky;
  top: 88px;
}

.checkout-shell {
  max-width: 720px;
  margin: 0 auto;
}

.checkout-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.metric-box {
  padding: 18px;
  border-radius: 18px;
  background: #f5efe8;
  border: 1px solid var(--line);
}

.metric-box span {
  display: block;
  color: var(--muted);
}

.metric-box strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.panel {
  padding: 22px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checklist li::before {
  content: "•";
  color: var(--primary);
  margin-right: 10px;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stack-row:last-child {
  border-bottom: none;
}

.stack-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.footer {
  margin-top: 32px;
  padding: 28px 8px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer h4 {
  margin-top: 0;
}

.footer ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.auth-card {
  width: min(100%, 540px);
  padding: 32px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.auth-card p {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
}

.auth-meta {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.user-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.role-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.role-list li {
  padding: 8px 12px;
  border-radius: 12px;
  background: #f7f2ec;
  border: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .brand-subtitle {
    display: none;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 8px 8px;
    font-size: 0.88rem;
  }

  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 980px) {
  .product-grid,
  .pillars,
  .hero,
  .product-detail,
  .cart-layout,
  .two-col,
  .account-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    gap: 4px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    top: 10px;
  }

  .nav-actions {
    margin-left: auto;
    flex-wrap: wrap;          /* three buttons no longer fit one line on a 390px phone */
    justify-content: flex-end;
  }
  .nav-actions .btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.86rem;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

/* ---- v1 additions ---- */
.flash-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.flash {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}

.flash-success { background: #e8f5ec; border-color: #b9dfc6; color: #1c5c34; }
.flash-error { background: #fdeceb; border-color: #f3c3bf; color: #8c2b22; }
.flash-info { background: #eef3fb; border-color: #c6d6ee; color: #24456f; }

.brand-wrap { text-decoration: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f5f3;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.muted-text { color: var(--muted); }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: #fff;
  max-width: 110px;
}

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

.badge.danger { background: #fdeceb; color: #8c2b22; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { padding-left: 16px; border-left: 2px solid var(--primary-light); }
.timeline small { display: block; color: var(--muted); margin-top: 4px; }

.variant-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 20px 0; }
.variant-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.85rem; }
.variant-form input, .variant-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #fff;
}

.pager { display: flex; justify-content: center; margin-top: 24px; }

code {
  background: #f2f5f3;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85em;
}

.code-block {
  background: #1f271d;
  color: #e8f0ea;
  padding: 16px;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
}

.result-count {
  margin: 0 0 1rem;
  color: var(--muted, #6b7280);
  font-size: 0.9rem;
}

.thumb-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.tier-table {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.tier-table h4 {
  margin: 0 0 0.5rem;
}

.tier-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tier-table th,
.tier-table td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #eee;
}

.tier-table th {
  font-weight: 600;
  color: #6b7280;
}

.visual-footnote {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---- craft category page ---- */
.crumbs {
  display: flex;
  gap: 8px;
  margin: 6px 0 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.craft-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

/* Without a hero photograph the copy takes the full width instead of leaving a hole. */
.craft-hero:not(.has-image) {
  grid-template-columns: 1fr;
}

.craft-hero:not(.has-image) .craft-hero-copy {
  max-width: none;
}

.craft-hero-copy {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px 32px;
}

.craft-hero-copy h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.craft-tagline {
  margin: 10px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.craft-facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.craft-fact span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.craft-fact strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.craft-hero-image {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 250px;
  background: #f2ece3;
}

.craft-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.craft-story {
  max-width: 68ch;
  margin: 40px 0 8px;
}

.craft-story h2 {
  font-size: 1.45rem;
  margin: 0 0 12px;
}

.craft-story p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.68;
}

.craft-products {
  margin-top: 38px;
}

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

.craft-products-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.craft-products-head a {
  font-size: 0.9rem;
  color: var(--primary);
}

.product-blurb {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .craft-hero {
    grid-template-columns: 1fr;
  }
}

/* ---- craft story page ---- */
.story-hero {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: #22201d;
  margin-bottom: 18px;
}

.story-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0) 30%, rgba(20, 18, 16, 0.82) 100%);
}

.story-hero-inner {
  position: relative;
  z-index: 1;
  padding: 40px 38px;
  color: #fffaf5;
  max-width: 780px;
}

.story-hero-inner .eyebrow {
  color: #f0d9bf;
}

.story-hero-inner h1 {
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.story-hero-inner .craft-tagline {
  color: rgba(255, 250, 245, 0.82);
  margin-top: 10px;
  max-width: 54ch;
}

.story-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 0 0 30px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.story-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.story-facts dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.story-lede {
  max-width: 62ch;
  margin: 0 0 34px;
  font-size: 1.24rem;
  line-height: 1.62;
  color: #2c3036;
}

/* No drop cap: an Inter capital I is a bare stem and reads as a rule, not a letter. */

.story-body {
  max-width: 66ch;
}

.story-section {
  margin-bottom: 30px;
}

.story-section h2 {
  font-size: 1.42rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.story-section p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: #33383f;
}

.story-quote {
  margin: 34px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--primary);
}

.story-quote p {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #1f2328;
}

.story-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 8px;
}

.story-gallery figure {
  margin: 0;
}

.story-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}

.story-gallery figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.story-closing {
  max-width: 60ch;
  margin: 40px 0 10px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  font-size: 1.12rem;
  line-height: 1.68;
  font-style: italic;
  color: #2c3036;
}

@media (max-width: 900px) {
  .story-gallery {
    grid-template-columns: 1fr;
  }

  .story-hero-inner {
    padding: 26px 22px;
  }
}

/* ---- stories index ---- */
.stories-head {
  max-width: 62ch;
  margin: 10px 0 34px;
}

.stories-head h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.stories-lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.story-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 26, 20, 0.1);
}

.story-card-link {
  display: grid;
  grid-template-columns: 210px 1fr;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 210px;
}

.story-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.story-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-card-body h2 {
  margin: 2px 0 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.story-card-tagline {
  margin: 0;
  font-size: 0.92rem;
  color: #4a4f57;
}

.story-card-excerpt {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.story-card-cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 700px) {
  .story-card-link {
    grid-template-columns: 1fr;
  }

  .story-card img {
    min-height: 180px;
    max-height: 200px;
  }
}

/* ---- story page: text column with a facts rail ---- */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 52px;
  align-items: start;
}

.story-main {
  min-width: 0;
}

.story-aside {
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.fact-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fact-card img {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: 10px;
}

.fact-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fact-card-text span {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-card-text strong {
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 600;
}

.story-body {
  max-width: 66ch;
}

.story-section {
  margin-bottom: 34px;
}

.story-section.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 26px;
  align-items: start;
}

.story-section.has-image:nth-of-type(even) {
  grid-template-columns: 232px minmax(0, 1fr);
}

.story-section.has-image:nth-of-type(even) .story-section-image {
  order: -1;
}

.story-section-image {
  margin: 0;
}

.story-section-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.story-section-image figcaption {
  margin-top: 7px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .story-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .story-aside {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .story-section.has-image,
  .story-section.has-image:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .story-section.has-image:nth-of-type(even) .story-section-image {
    order: 0;
  }
}

/* ---- justified, indented prose ---- */
.story-section p,
.story-lede,
.story-closing,
.story-card-excerpt {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.story-section p {
  text-indent: 1.5em;
}

/* ---- editorial typography: serif where it reads, sans where it works ---- */
.story-hero-inner h1,
.story-section h2,
.stories-head h1,
.story-card-body h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-optical-sizing: auto;
}

.story-hero-inner h1 {
  letter-spacing: -0.03em;
}

.story-section h2 {
  letter-spacing: -0.015em;
  font-size: 1.55rem;
}

.story-lede,
.story-section p,
.story-closing {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
  line-height: 1.78;
  color: #2f3338;
}

.story-lede {
  font-size: 1.3rem;
  line-height: 1.7;
}

.story-quote p {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.46;
  letter-spacing: -0.01em;
}

.story-quote cite {
  font-family: 'Inter', sans-serif;
}

.story-section-image figcaption,
.fact-card-text span,
.fact-card-text strong {
  font-family: 'Inter', sans-serif;
}

.story-card-tagline,
.story-card-excerpt {
  font-family: 'Source Serif 4', Georgia, serif;
}

/* ---- text wraps the photographs instead of sitting in its own column ---- */
.story-section.has-image,
.story-section.has-image:nth-of-type(even) {
  display: block;
  margin-bottom: 30px;
}

.story-section.has-image::after {
  content: "";
  display: block;
  clear: both;
}

.story-section-image {
  float: right;
  width: 288px;
  margin: 8px 0 16px 28px;
}

.story-section.has-image:nth-of-type(even) .story-section-image {
  float: left;
  margin: 8px 28px 16px 0;
}

.story-section-image img {
  aspect-ratio: 4 / 3;
}

/* the indent reads strangely beside a floating image; drop it there */
.story-section.has-image p {
  text-indent: 0;
}

@media (max-width: 760px) {
  .story-section-image,
  .story-section.has-image:nth-of-type(even) .story-section-image {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }

  .story-section.has-image p,
  .story-section p {
    text-indent: 1.2em;
  }
}

/* a floated figure must precede the text it wraps, and the heading must clear it */
.story-section.has-image h2 {
  margin-top: 2px;
}

/* the grid column already governs the measure; capping it again squeezed the
   text beside a floated photograph into a very narrow, loose column */
.story-body {
  max-width: none;
}

.story-section-image {
  width: 272px;
}

/* ---- producer note on a product page ---- */
.producer-note {
  margin: 22px 0 4px;
  padding: 16px 18px;
  background: #f7f2ea;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.producer-note-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.producer-note strong {
  font-size: 0.95rem;
}

.producer-note p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a4f57;
}

/* ---------------------------------------------------------------- producer studio
   The producer's screens are read on a phone, in a workshop, by someone who is not a
   merchandiser. Larger targets, shorter lines, and nothing that needs a hover to work.
*/

.join-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(12px, 2vw, 24px) 0 8px;
}
.join-copy h1 {
  font-family: Fraunces, serif;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  max-width: 20ch;
}
.join-copy .lede { font-size: 1.02rem; line-height: 1.6; color: #4a534c; max-width: 46ch; }
.join-points { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.join-points li {
  position: relative; padding-left: 26px; line-height: 1.5; color: #3c453e;
  font-size: 0.95rem;
}
.join-points li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--primary-light);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.join-form { padding: 26px 28px; }
.join-form h2 { font-size: 1.35rem; margin-bottom: 2px; }
.join-legal { margin: 16px 0 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.join-legal summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.hint { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.btn-block { width: 100%; justify-content: center; }

.studio-header { align-items: flex-start; }
.studio-actions { display: flex; gap: 8px; }

.listing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px; margin: 18px 0 26px;
}
.listing-card {
  background: var(--panel-strong); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  max-width: 320px;               /* one listing should not become a billboard */
}
.listing-thumb { aspect-ratio: 4 / 3; background: #efe8dc; display: grid; place-items: center; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-empty { font-size: 0.8rem; color: var(--muted); }
.listing-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.listing-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.listing-top h3 { font-size: 1rem; line-height: 1.25; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.status-chip {
  flex: 0 0 auto;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  background: #eee7db; color: #6a5a44;
}
.status-active { background: #e2f0e7; color: #1f6b45; }
.status-pending_review { background: #fdf0d8; color: #8a5b12; }
.status-draft { background: #eceff3; color: #4a5568; }
.text-link { font-size: 0.85rem; color: var(--primary); text-decoration: underline; }

.empty-studio { padding: 28px; }
.empty-studio h2 { font-size: 1.3rem; margin-bottom: 6px; }
.empty-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.path-card {
  display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); text-decoration: none; color: inherit;
}
.path-card:hover { border-color: var(--primary); }
.path-icon { font-size: 1.4rem; }

.template-panel { margin: 18px 0; }
.panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.template-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-top: 14px;
  scrollbar-width: thin;
}
.template-card {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel-strong);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.template-card:hover { border-color: var(--primary); }
.template-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.template-body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.template-body strong { font-size: 0.92rem; line-height: 1.25; }

.steps-list { margin: 8px 0 0 18px; display: grid; gap: 8px; color: #3c453e; }

.template-banner {
  background: var(--primary-light); border: 1px solid #cfe3d8; color: #1d4b33;
  border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: 0.9rem;
}

.studio-form { display: grid; gap: 16px; max-width: 860px; }
.studio-form .panel { padding: 22px 24px; }
.studio-form h2 { font-size: 1.05rem; margin-bottom: 10px; }

.drop-zone {
  display: grid; gap: 4px; place-items: center; text-align: center;
  border: 1.5px dashed #cdbfa9; border-radius: 14px; padding: 26px 18px;
  background: #fdfaf4; cursor: pointer; margin-top: 10px;
}
.drop-zone:hover { border-color: var(--primary); background: #fbf7ee; }
.drop-zone input[type="file"] { display: none; }
.drop-title { font-weight: 600; color: var(--primary); }

.photo-grid, .photo-preview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-top: 12px;
}
.photo-tile { margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #efe8dc; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.advanced { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.advanced summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; }

.studio-submit { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .join-hero { grid-template-columns: 1fr; }
  .field-row, .field-row.three, .empty-paths { grid-template-columns: 1fr; }
  .join-form { padding: 20px; }
  .listing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .listing-grid { grid-template-columns: 1fr; }
}

/* form scaffolding used by the producer studio (stacked label above the input) */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > label { font-size: 0.83rem; font-weight: 600; color: #3f4a3d; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 78, 52, 0.12);
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }

/* links that are buttons, inside main: the anchor colour rule must not win */
main a.btn { text-decoration: none; }
.btn.btn-primary { color: #fff; }
.btn.btn-ghost { color: var(--ink); }

/* category attributes in the studio form */
.attr-group { border: none; margin: 0; padding: 0; }
.attr-group[hidden] { display: none; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; }
.check input { width: auto; }
.measure { display: grid; grid-template-columns: 1fr 92px; gap: 8px; }
.req { color: #b4552d; }

/* platform verification of a workshop */
.verify-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fdf6e6; border: 1px solid #eadfc4; color: #6b5320;
  border-radius: 14px; padding: 12px 16px; margin: 0 0 18px;
}
.verify-banner-bad { background: #fbeeea; border-color: #e8cdc4; color: #7d3521; }
.verify-banner-ok { background: #e8f3ec; border-color: #cbe3d5; color: #1f5b3d; }
.verify-banner .small { display: block; margin-top: 3px; }
.verify-note { margin-top: 4px; font-size: 0.78rem; color: #8a4a2a; }
.reject-form { display: flex; gap: 6px; margin-top: 6px; }
.reject-form input { padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 9px; font-size: 0.85rem; }

.ok-chip { color: #1f6b45; }
.wait-chip { color: #8a5b12; }

/* ---------------- onboarding desk: reviewing and clearing workshops ---------------- */

.review-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
.review-tabs a {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; color: #48544a; font-size: 0.88rem; font-weight: 600; background: #fff;
}
.review-tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-count {
  display: inline-block; margin-left: 7px; font-size: 0.72rem; padding: 1px 6px;
  border-radius: 999px; background: rgba(33, 78, 52, 0.12); color: inherit;
}
.review-tabs a.on .tab-count { background: rgba(255, 255, 255, 0.24); }

.review-table td { vertical-align: top; }
.review-table small { display: block; }
.row-title { font-weight: 700; color: var(--primary); text-decoration: none; }
.row-title:hover { text-decoration: underline; }
.review-actions { display: flex; gap: 6px; justify-content: flex-end; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.badge-ok { background: #e2f0e7; color: #1f6b45; }
.badge-bad { background: #fbeee9; color: #8c3a20; }

.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.review-grid .panel { margin-bottom: 16px; }
.review-grid aside .panel { margin-bottom: 16px; }

.review-facts { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; }
.review-facts dt { color: var(--muted); font-size: 0.84rem; }
.review-facts dd { margin: 0; font-size: 0.92rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-mark {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; flex: 0 0 auto;
}
.check-list li.ok .check-mark { background: #e2f0e7; color: #1f6b45; }
.check-list li.no .check-mark { background: #fbeee9; color: #a03d1d; }
.check-list small { display: block; }

.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.doc-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  display: grid; gap: 8px; background: #fffdf8;
}
.doc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-thumb {
  display: block; width: 100%; max-width: 260px; max-height: 200px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc-actions form { margin: 0; }
.doc-reject { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.doc-reject input[type="text"] {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 0.6rem;
  font: inherit; font-size: 0.85rem; min-width: 180px;
}

.decision-panel hr.rule { border: none; border-top: 1px dashed var(--line); margin: 16px 0; }
.decision-panel textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.7rem 0.8rem; margin: 6px 0 8px; font: inherit; font-size: 0.9rem; resize: vertical;
}
.empty-review { text-align: center; padding: 42px 24px; }

@media (max-width: 1000px) {
  .review-grid { grid-template-columns: 1fr; }
  .review-facts { grid-template-columns: 120px 1fr; }
}

/* ---------------- the verification sheet ---------------- */
.sheet-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.sheet-table th {
  width: 150px; text-align: left; font-weight: 600; color: var(--muted);
  padding: 7px 12px 7px 0; vertical-align: top; font-size: 0.85rem;
}
.sheet-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sheet-table tr:last-child td { border-bottom: none; }
.flag-ok { color: #1f6b45; font-size: 0.8rem; margin-left: 8px; }
.flag-bad { color: #a03d1d; font-size: 0.8rem; margin-left: 8px; }
.copyable { cursor: pointer; }
.copyable:hover { text-decoration: underline dotted; }
.phone-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.phone-link:hover { text-decoration: underline; }

.source-checks { display: grid; gap: 10px; margin: 12px 0 16px; }
.source-row { display: flex; gap: 10px; align-items: flex-start; }
.source-row small { display: block; }
.source-row.ok .check-mark { background: #e2f0e7; color: #1f6b45; }
.source-row.no .check-mark { background: #fbeee9; color: #a03d1d; }
.source-row .check-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; flex: 0 0 auto; }

.source-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.source-link {
  display: block; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: #fdfaf4; text-decoration: none; color: inherit;
}
.source-link:hover { border-color: var(--primary); background: #fbf6ec; }
.source-link strong { display: block; font-size: 0.92rem; color: var(--primary); }
.source-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }

.call-block { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; }
.call-button {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px;
  background: var(--primary); color: #fff; text-decoration: none; font-size: 1.05rem;
}
.call-button small { display: block; font-size: 0.78rem; opacity: 0.85; font-weight: 400; }
.call-button:hover { filter: brightness(1.06); }
.call-icon { font-size: 1.2rem; }
.call-form { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; background: #fdfaf4; }
.call-form .field { margin-bottom: 0; }
.call-form .btn { justify-self: start; }
.call-log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.call-log li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.call-outcome {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 2px 7px;
  border-radius: 999px; background: #eee7db; color: #6a5a44;
}
.call-reached { background: #e2f0e7; color: #1f6b45; }
.call-no_answer, .call-call_back { background: #fdf0d8; color: #8a5b12; }
.call-wrong_number { background: #fbeee9; color: #a03d1d; }

@media (max-width: 700px) {
  .source-links { grid-template-columns: 1fr; }
  .sheet-table th { width: 110px; }
}
