/* ==========================================================
   recognition.css — the shop's third-party recognition.
   Markup is written by scripts/sync-recognition.js from
   src/data/recognition.json. Loaded by index, smoke-shop
   and contact.
   ========================================================== */

/* ── Hero credential line (index) ───────────────────────── */
.rec-hero {
  margin-top: clamp(1.25rem, 3svh, 2rem);
  opacity: 0;
  transform: translateY(15px);
  /* btn-reveal lives in components.css; this lands just after the button. */
  animation: btn-reveal 1.5s cubic-bezier(0.23, 1, 0.32, 1) 1.45s forwards;
}
.rec-hero-line {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-accent);
  text-shadow: 0 1px 14px rgba(5, 3, 2, 0.85);
  transition: color 0.4s ease;
}
/* Cancels the trailing tracking so each line centres on its letters. */
.rec-hero-claim,
.rec-hero-date {
  margin-right: -0.3em;
}
.rec-hero-date {
  color: var(--color-on-surface-variant);
  font-weight: 500;
}
@media (hover: hover) {
  .rec-hero-line:hover {
    color: #e6c88a;
  }
}
@media (min-width: 769px) {
  .rec-hero-line {
    flex-direction: row;
    gap: 0;
  }
  .rec-hero-line::before,
  .rec-hero-line::after {
    content: '';
    width: 2.5rem;
    height: 1px;
    opacity: 0.7;
  }
  .rec-hero-line::before {
    margin-right: 1.1rem;
    background: linear-gradient(to right, transparent, var(--gold-accent));
  }
  .rec-hero-line::after {
    margin-left: 1.1rem;
    background: linear-gradient(to left, transparent, var(--gold-accent));
  }
  .rec-hero-date::before {
    content: '\00B7';
    margin: 0 0.9em 0 0.6em;
    color: var(--gold-accent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rec-hero {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── #recognition section (index) ───────────────────────── */
.rec-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-surface-container-lowest);
  padding: clamp(4.5rem, 11svh, 8rem) clamp(1.25rem, 4vw, 3rem);
  margin-top: -1px;
  scroll-margin-top: var(--nav-height-mobile);
}
.rec-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(64rem, 86%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, rgba(197, 160, 89, 0.45), transparent);
}
.rec-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(46rem, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(197, 160, 89, 0.11) 0%, rgba(217, 119, 7, 0.05) 38%, transparent 66%);
  pointer-events: none;
}

.rec-inner {
  max-width: 70rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

/* The media slot holds the SVG medallion alone, or a photograph of the awards
   with the medallion stepped down to a seal on its upper corner. */
.rec-media {
  order: -1;
  flex: none;
  width: min(12.5rem, 52vw);
  aspect-ratio: 4 / 5;
  margin: 0;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(197, 160, 89, 0.12));
}
.rec-badge,
.rec-media picture,
.rec-media-photo {
  display: block;
  width: 100%;
  height: 100%;
}
.rec-media-photo {
  object-fit: cover;
}

/* The photograph sets its own shape from its width/height attributes, and
   takes a frame and shadow of its own: a drop-shadow filter on a large
   raster costs far more to paint than a box-shadow. */
.rec-media--photo {
  position: relative;
  width: min(22rem, 86vw);
  aspect-ratio: auto;
  filter: none;
}
.rec-media--photo picture,
.rec-media--photo .rec-media-photo {
  height: auto;
}
.rec-media--photo .rec-media-photo {
  border: 1px solid var(--border-glow);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(197, 160, 89, 0.08);
}
.rec-seal {
  position: absolute;
  top: -1rem;
  right: -0.75rem;
  width: 5rem;
  aspect-ratio: 1;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 14px rgba(197, 160, 89, 0.18));
  pointer-events: none;
}
.rec-seal-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.rec-seal-svg text {
  font-family: var(--font-label);
  font-weight: 800;
  fill: var(--gold-accent);
}
.rec-seal-svg .rec-seal-mark {
  font-family: var(--font-headline);
  font-weight: 700;
  fill: #fef3c7;
}
.rec-seal-svg .rec-seal-prefix {
  font-style: italic;
  font-weight: 400;
  fill: var(--gold-accent);
}

.rec-badge text {
  font-family: var(--font-label);
  font-weight: 700;
  fill: var(--gold-accent);
}
.rec-badge .rec-badge-mark {
  font-family: var(--font-headline);
  fill: #fef3c7;
}
.rec-badge .rec-badge-prefix {
  font-style: italic;
  font-weight: 400;
  fill: var(--gold-accent);
}
.rec-badge .rec-badge-cat {
  font-weight: 800;
  fill: #fef3c7;
}
.rec-badge .rec-badge-place {
  font-weight: 500;
  fill: var(--color-on-surface-variant);
}
.rec-badge-stars {
  fill: var(--gold-accent);
}

.rec-text {
  width: 100%;
  max-width: 36rem;
  text-align: center;
}
.rec-kicker {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-accent);
}
.rec-title {
  font-size: clamp(2rem, 2.6vw + 1rem, 2.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-on-surface);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.rec-desc {
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  color: var(--color-on-surface-variant);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* The honours list: one row per award, newest first. */
.rec-ledger {
  max-width: 30rem;
  margin: 0 auto 2.5rem;
  text-align: left;
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}
.rec-ledger-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  align-items: baseline;
  padding: 1rem 0.25rem;
}
.rec-ledger-row + .rec-ledger-row {
  border-top: 1px solid var(--border-glow);
}
.rec-ledger-row:has(picture) {
  grid-template-columns: 3.5rem auto 1fr;
  align-items: center;
}
.rec-ledger-photo {
  width: 3.5rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border-glow);
}
.rec-ledger-year {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-accent);
}
.rec-ledger-title {
  display: block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fef3c7;
}
.rec-ledger-meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-on-surface-variant);
  opacity: 0.85;
}

.rec-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 1rem 2rem;
  border: 1px solid var(--gold-accent);
  background-color: rgba(197, 160, 89, 0.06);
  color: #fef3c7;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.rec-btn:active,
.rec-link:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}
.rec-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rec-link .material-symbols-outlined {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}
@media (hover: hover) {
  .rec-btn:hover {
    background-color: rgba(197, 160, 89, 0.16);
    box-shadow: 0 0 28px rgba(197, 160, 89, 0.25);
  }
  .rec-link:hover .material-symbols-outlined {
    transform: translateX(0.4rem);
  }
}

@media (min-width: 768px) {
  .rec-section {
    scroll-margin-top: var(--nav-height-desktop);
  }
  .rec-section::after {
    top: 50%;
    left: auto;
    right: -10rem;
    transform: translateY(-50%);
  }
  .rec-inner {
    flex-direction: row;
    justify-content: center;
  }
  .rec-text {
    flex: 0 1 36rem;
    text-align: left;
  }
  .rec-media {
    order: 1;
    width: clamp(14rem, 22vw, 19rem);
  }
  .rec-media--photo {
    width: clamp(17rem, 34vw, 28rem);
  }
  .rec-seal {
    top: -1.5rem;
    right: -1.5rem;
    width: clamp(5.75rem, 7vw, 7rem);
  }
  .rec-desc,
  .rec-ledger {
    margin-left: 0;
  }
  .rec-actions {
    flex-direction: row;
    gap: 2.25rem;
  }
}

/* ── Inline credential (contact, smoke-shop) ────────────── */
.rec-inline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--gold-accent);
}
.rec-inline-claim {
  font-size: 1.125rem;
  line-height: 1.3;
  color: #fef3c7;
}
.rec-inline-meta {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--gold-accent);
}
.rec-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.35rem;
}
.rec-inline-link {
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 183, 125, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}
@media (hover: hover) {
  .rec-inline-link:hover {
    text-decoration-color: currentColor;
  }
}
.rec-inline--center {
  position: relative;
  align-items: center;
  max-width: 34rem;
  margin: 1.5rem auto 0;
  padding: 1.25rem 0 0;
  border-left: 0;
  text-align: center;
}
.rec-inline--center::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3rem;
  height: 1px;
  transform: translateX(-50%);
  background: var(--gold-accent);
  opacity: 0.7;
}
