/* Pindu Labs — featured-research infographic card.
   Styles the research/<slug>.card.html fragments (rendered on the landing).
   Depends on the theme tokens (--surface, --teal, --terracotta, fonts, spacing)
   defined in styles.css, so load this AFTER styles.css on any page that shows a card.
   The card's placement (column width, position) is the host page's job — see
   .hero-feature in styles.css. */

.specimen {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: 0 1px 0 var(--hairline-soft);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.specimen:hover, .specimen:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

/* the article title, set in the card's eyebrow slot */
.specimen-head {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--hairline-soft);
}
.specimen-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

/* ---- The ambiguity specimen: one string, two valid cuts ---- */
.seg { margin: 0; }

.seg-string {
  font-family: var(--font-zh);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.22em;          /* an unbroken, evenly-spaced run of characters */
  text-indent: 0.22em;
  white-space: nowrap;
  color: var(--text);
  margin: 0 0 var(--space-3);
  text-align: center;
  padding-bottom: var(--space-3);
  position: relative;
}
.seg-string::after {               /* "no spaces here" — the problem in one mark */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--hairline);
}

.seg-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.seg-way {
  text-align: center;
  padding-top: 2px;
}
.seg-way + .seg-way {
  border-left: 1px solid var(--hairline-soft);
}
.seg-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.seg-row {
  font-family: var(--font-zh);
  font-size: 1.02rem;
  line-height: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 9px;
}
/* each segment sits in its own bracketed box — the cut is now visible */
.chunk {
  display: inline-block;
  padding: 4px 5px 5px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: rgba(31, 130, 125, 0.05);
  color: var(--text);
  white-space: nowrap;
}
/* the segment where the two readings disagree — rationed terracotta pop */
.chunk.alt {
  border-color: var(--terracotta);
  background: var(--terracotta-wash);
  color: var(--terracotta);
}

.seg-gloss {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
  margin: 0;
}

.seg-cap {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--muted);
  margin: var(--space-3) 0 0;
}

/* ---- Tiny honest benchmark hint ---- */
.bench {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline-soft);
}
.bench-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.bench-f1 { text-transform: none; letter-spacing: 0; }

.bench-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bench-row {
  display: grid;
  grid-template-columns: 3.2em 1fr 2.4em;
  align-items: center;
  gap: 10px;
}
.bench-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
}
.bench-bar {
  position: relative;
  height: 7px;
  border-radius: 1px;
  background: var(--hairline-soft);
  overflow: hidden;
}
.bench-fill {
  display: block;
  height: 100%;
  background: var(--muted);
  opacity: 0.55;
}
.bench-fill.lead {
  background: var(--teal);
  opacity: 1;
}
.bench-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bench-note {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 10px 0 0;
}
.bench-note strong { color: var(--text); }

.specimen-more {
  display: block;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--teal);
}
.specimen-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
.specimen:hover .specimen-arrow,
.specimen:focus-visible .specimen-arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .specimen:hover { transform: none; }
  .specimen-arrow { transition: none; }
}

/* On phones the card fills the narrow viewport and the two-reading comparison
   can't sit side by side, so stack it and turn the column divider into a top
   rule. Desktop/tablet keep the side-by-side layout untouched. */
@media (max-width: 480px) {
  .seg-ways { grid-template-columns: 1fr; }
  .seg-way + .seg-way {
    border-left: none;
    border-top: 1px solid var(--hairline-soft);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
  }
  .seg-string { font-size: 1.3rem; letter-spacing: 0.16em; }
}

/* =========================================================================
   Post 01 — "Intensive or Extensive Reading" card
   ========================================================================= */

/* ---- The level specimen: one target word, hard context vs easy ---- */
.lvl { margin: 0; }

.lvl-target {                      /* centered framing line, the analog of .seg-string */
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--muted);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  position: relative;
}
.lvl-word {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0;
  color: var(--text);
}
.lvl-target::after {               /* the same centered tick the segment card uses */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--hairline);
}

.lvl-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.lvl-way { padding-top: 2px; }
.lvl-way + .lvl-way {
  border-left: 1px solid var(--hairline-soft);
  padding-left: var(--space-2);
}
.lvl-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.lvl-passage {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
/* the shared word being learned — rationed terracotta pop, the constant in both */
.lvl-mark {
  background: var(--terracotta-wash);
  color: var(--terracotta);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0 3px;
}

/* ---- Tiny honest coverage hint ---- */
.cov {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline-soft);
}
.cov-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}
.cov-count { text-transform: none; letter-spacing: 0; color: var(--text); }

.cov-strip {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
}
.cov-tick {                        /* a known word — quiet teal-wash, like .chunk */
  height: 14px;
  border-radius: 1px;
  background: rgba(31, 130, 125, 0.10);
  border: 1px solid var(--hairline-soft);
}
.cov-tick.alt {                    /* the one unknown word — the single pop */
  background: var(--terracotta-wash);
  border-color: var(--terracotta);
}
.cov-note {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 10px 0 0;
}
.cov-note strong { color: var(--text); }

/* On phones the two passages can't sit side by side, so stack them and turn the
   column divider into a top rule — mirrors the .seg-ways treatment exactly. */
@media (max-width: 480px) {
  .lvl-ways { grid-template-columns: 1fr; }
  .lvl-way + .lvl-way {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--hairline-soft);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
  }
}
