/* Coffee bag label: hero card */
.bag-label {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--surface);
  padding: 1.25rem 1.25rem 1rem;
}
.bag-label::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 10px);
}
.bag-label__top {
  border-bottom: 1px dashed var(--border);
  padding: 0.5rem 0 0.75rem;
  margin-bottom: 0.75rem;
}
.bag-label__kicker {
  display: block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bag-label__name {
  margin: 0.25rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.bag-label__specs { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.bag-label__specs th,
.bag-label__specs td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.bag-label__specs th {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 38%;
}
.bag-label__specs td { color: var(--ink); }

/* Smaller secondary lot card in the home hero */
.bag-label--sm {
  padding: 1rem 1rem 0.75rem;
  max-width: 24rem;
  justify-self: end;
  align-self: start;
}
.bag-label--sm .bag-label__name { font-size: clamp(1rem, 2vw, 1.2rem); }
.bag-label--sm .bag-label__specs { font-size: 0.82rem; }
.bag-label--sm .stamp { width: 6rem; height: 6rem; padding: 0.4rem; }
.bag-label--sm .stamp__v { font-size: 1.05rem; }
.bag-label--sm .stamp__l { font-size: 0.6rem; }
@media (max-width: 900px) {
  .bag-label--sm { max-width: none; justify-self: stretch; }
}

/* Origin stamps carrying sourced facts */
.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.stamp {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  border: 2px dashed var(--brand);
  outline: 1px solid var(--brand);
  outline-offset: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  text-decoration: none;
  color: var(--brand);
  transform: rotate(-6deg);
  transition: transform 0.2s ease;
}
.stamp--tilt { transform: rotate(5deg); }
.stamp:hover, .stamp:focus-visible { transform: rotate(0deg); }
.stamp__v {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}
.stamp__l {
  font-size: 0.66rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}
@media (prefers-reduced-motion: reduce) {
  .stamp, .stamp--tilt { transition: none; }
}

/* Numbered findings */
.findings { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.9rem; }
.findings li { padding-left: 0.25rem; line-height: 1.5; }
.findings .tag { margin-right: 0.4rem; }

/* Market chart */
.market-chart { margin: 0 0 1.5rem; }
.market-chart svg { width: 100%; height: auto; max-width: 480px; display: block; margin: 0 auto; }
.chart-axis { stroke: var(--border); stroke-width: 2; }
.chart-bar--base { fill: var(--brand); }
.chart-bar--fc { fill: var(--border); stroke: var(--brand); stroke-width: 2; stroke-dasharray: 6 4; }
.chart-val {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.chart-year { fill: var(--muted); font-size: 14px; text-anchor: middle; }
.chart-group { fill: var(--ink); font-size: 14px; font-weight: 600; text-anchor: middle; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .stamp { width: 6.5rem; height: 6.5rem; }
  .stamp__v { font-size: 1.1rem; }
}

/* Mobile hero headline */
@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.6rem);
    overflow-wrap: break-word;
  }
}

/* Left-aligned heroes and section heads (inner pages) */
.hero, .hero__body, .section__head { text-align: left; }
.hero__body .actions { justify-content: flex-start; }
.hero__body > *, .section__head > * { margin-left: 0; margin-right: auto; }
.section__head::after, .hero__body::after { margin-left: 0; margin-right: auto; }

/* Section headings and their accent rules align with the content below */
.section h2, .section h3,
.section h2::before, .section h2::after,
.section h3::before, .section h3::after { text-align: left; }
.section h2, .section h3 { margin-left: 0; margin-right: auto; }
.section h2::before, .section h2::after,
.section h3::before, .section h3::after { margin-left: 0; margin-right: auto; }

/* Equal-height link cards with the link pinned to the bottom */
.data-grid { align-items: stretch; }
.data-card { display: flex; flex-direction: column; height: 100%; }
.data-card__kicker { min-height: 1.3em; display: block; }
.data-card > h3:first-child::before {
  content: "";
  display: block;
  min-height: 1.3em;
}
.data-card__go { margin-top: auto; }