/* "How the Algorithm Works" methodology emblem — shared across
   product hubs (BoD, Pick Winner, Lay of the Day). Sits alongside
   the honest-record emblem as its visual sibling — same footprint,
   inverted palette: HR is warm-gold-on-cream (editorial ledger),
   this is cyan-on-slate (engineering blueprint). One reads "receipt",
   one reads "schematic". */
.mth-emblem {
  margin: 22px 0 28px;
  --mth-slate:    #1a2028;
  --mth-slate-2:  #22293a;
  --mth-cyan:     #4dd0e1;
  --mth-cyan-dim: rgba(77, 208, 225, 0.30);
  --mth-cream:    #f0e8d5;
  --mth-cream-70: rgba(240, 232, 213, 0.72);
  --mth-cream-50: rgba(240, 232, 213, 0.55);
}
.mth-emblem__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
  background:
    radial-gradient(circle at top left,
      rgba(77, 208, 225, 0.10) 0%,
      rgba(77, 208, 225, 0.00) 45%),
    linear-gradient(135deg, var(--mth-slate) 0%, var(--mth-slate-2) 100%);
  border: 1px solid rgba(77, 208, 225, 0.14);
  border-left: 4px solid var(--mth-cyan);
  border-radius: 10px;
  color: var(--mth-cream);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              border-color 0.15s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.mth-emblem__inner:hover:not(.mth-emblem__inner--flat) {
  transform: translateY(-1px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(77, 208, 225, 0.28);
  border-color: rgba(77, 208, 225, 0.28);
}
.mth-emblem__inner--flat { cursor: default; }

/* ── Hex chip ─── */
.mth-emblem__chip {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.mth-emblem__chip-svg { display: block; }
.mth-emblem__chip-frame {
  fill: rgba(77, 208, 225, 0.08);
  stroke: var(--mth-cyan);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px var(--mth-cyan-dim));
}
.mth-emblem__chip-glyph {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  fill: var(--mth-cyan);
  font-style: italic;
}
.mth-emblem__chip-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(77, 208, 225, 0.22) 0%,
    rgba(77, 208, 225, 0.00) 60%);
  animation: mth-pulse 2.6s ease-in-out infinite;
}
@keyframes mth-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .mth-emblem__chip-pulse { animation: none; opacity: 0.7; }
}

/* ── Editorial lockup ─── */
.mth-emblem__lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mth-emblem__eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mth-cyan);
  font-weight: 800;
}
.mth-emblem__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--mth-cream);
  letter-spacing: -0.005em;
}
.mth-emblem__sub {
  font-size: 13px;
  color: var(--mth-cream-70);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── Signature strip (engineering fingerprint, not results) ─── */
.mth-emblem__sig {
  display: flex;
  gap: 14px;
  padding: 0 4px;
  border-left: 1px solid rgba(77, 208, 225, 0.16);
  padding-left: 18px;
}
.mth-emblem__sig-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}
.mth-emblem__sig-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--mth-cyan);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mth-emblem__sig-lbl {
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mth-cream-50);
  margin-top: 4px;
  text-align: center;
}

/* ── CTA ─── */
.mth-emblem__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--mth-cyan);
  border-radius: 999px;
  color: var(--mth-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.mth-emblem__inner:hover .mth-emblem__cta {
  background: var(--mth-cyan);
  color: var(--mth-slate);
}
.mth-emblem__arrow {
  font-size: 14px;
  transition: transform 0.15s ease;
}
.mth-emblem__inner:hover .mth-emblem__arrow {
  transform: translateX(3px);
}

/* ── Responsive ─── */
@media (max-width: 860px) {
  .mth-emblem__inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 14px 18px;
  }
  .mth-emblem__sig {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(77, 208, 225, 0.16);
    padding-left: 0;
    padding-top: 12px;
    justify-content: space-around;
  }
  .mth-emblem__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
@media (max-width: 520px) {
  .mth-emblem__chip {
    width: 52px;
    height: 52px;
  }
  .mth-emblem__chip-svg { width: 52px; height: 52px; }
  .mth-emblem__title { font-size: 19px; }
  .mth-emblem__sub   { font-size: 12px; }
}
