/* ==========================================================================
   DINKOMART — ranges: partners, coming soon, coffee

   Added 2026-10-05, last in the head's stylesheet list so nothing above it
   moved. Three things:

     1. COMING SOON — fresh produce (and the Farm Box, which is a produce
        crate) is not on sale. The category flag lives in products.js; these
        are the states the markup and the renderers draw for it.
     2. PARTNERS — the makers behind millet foods, coffee and the bio-inputs:
        the home page section, the line on each category page, and the line
        under a product's name.
     3. Small pieces the coffee range needed and nothing else did.

   Semantic tokens only, so every rule flips with the theme.
   ========================================================================== */

/* ============================================================ 1. coming soon */

/* the badge that replaces a count or a price */
.soon-badge,
.n.is-soon,
.cat-count.is-soon {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  white-space: nowrap;
}
.soon-badge .ico { width: 13px; height: 13px; }
.n.is-soon { color: var(--accent-ink); }
.cat-count.is-soon { background: var(--accent); color: #1a0f02; }

/* the category card: still a link to its page, visibly not a shelf */
.cat-card.is-soon img { filter: saturate(.55); }
.cat-card.is-soon .cat-go { opacity: .9; }

/* a shop rail entry that is not a filter */
.filter-opt.is-soon { cursor: default; opacity: .8; }
.filter-opt.is-soon:hover { background: transparent; }

/* the seasonal preview: pills that are not links */
.season-pill.is-soon { cursor: default; }
.season-pill.is-soon:hover { transform: none; border-color: var(--border); box-shadow: none; }

/* the coming-soon panel used by fresh-produce.php, farm-box.php and the home
   page's seasonal section */
.soon-panel {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: clamp(var(--s-6), 4vw, var(--s-9));
  border-radius: var(--r-panel);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .soon-panel { grid-template-columns: 1.1fr 1fr; } }
.soon-panel h2 { font-size: var(--t-xl); margin: var(--s-3) 0 var(--s-3); }
.soon-panel p { color: var(--fg-muted); max-width: 56ch; }
.soon-panel .cluster { margin-top: var(--s-5); }
.soon-panel-media {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.soon-panel-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }

.soon-note {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-card);
  background: var(--accent-soft);
  color: var(--fg);
  font-size: var(--t-sm);
  text-align: left;
}
.soon-note .ico { width: 18px; height: 18px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.soon-note b { color: var(--accent-ink); }

/* a plan or action that cannot be taken yet */
.btn.is-soon,
.btn.is-soon:hover { pointer-events: none; opacity: .62; }

/* ============================================================ 2. partners */

.partner-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px)  { .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.partner-head { display: flex; align-items: center; gap: var(--s-4); }
.partner-logo {
  width: 72px; height: 72px;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px;
}
.partner-range {
  font-family: var(--font-mono);
  font-size: var(--t-2xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.partner-card h3 { font-size: var(--t-lg); margin: 4px 0 0; }
.partner-maker { font-size: var(--t-sm); color: var(--fg-subtle); margin: 0; }
.partner-card > p { font-size: var(--t-sm); color: var(--fg-muted); margin: 0; }
.partner-card .see-all { margin-top: auto; }

.partner-foot { margin-top: var(--s-6); font-size: var(--t-sm); color: var(--fg-subtle); max-width: 72ch; }

/* the line on a category page and under a product's name */
.partner-line,
.pdp-partner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--fg-muted);
}
.partner-line img,
.pdp-partner img {
  width: 40px; height: 40px;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px;
}
.partner-line span,
.pdp-partner span { display: grid; line-height: 1.35; }
.partner-line a,
.pdp-partner a { font-weight: 700; color: var(--brand-ink); }
.partner-line small,
.pdp-partner small { font-size: var(--t-xs); color: var(--fg-subtle); }
.pdp-partner { margin: var(--s-3) 0 var(--s-2); }

/* ---- the home page's "Who we are" wall (index #trust), 2026-10-05.
   It was the paperwork wall; each cell now opens its section of the About
   page, so the WHOLE cell is the link. A link would underline every line
   in the cell, so that is switched off. The arrow nudges forward rather
   than doing signature.css's lift, because this cell goes somewhere. */
a.cred { color: inherit; text-decoration: none; }
a.cred .cred-doc .ico { transition: transform var(--dur-2) var(--ease-out); }
a.cred:hover .cred-doc .ico { transform: translateX(4px); }

@media print {
  .soon-panel-media { display: none; }
}
