/* ─────────────────────────────────────────────────────────────────────────────
   Diviniti Journal — "Where to next" CTA block. Paired with journal-cta.js.

   Uses the --c-dim / --c-faint / --c-ghost / --c-mid token family, which is the
   one journal.html, brew-guide.html, policies.html and field-dispatch-*.html
   all share (see the CSS var naming split in CLAUDE.md). Do not load this on
   index.html or b2b.html without remapping — those pages use --c-ivory-dim.

   The two cards are equal: same column width across the full measure of the
   body column, same type scale, and "Read on" pinned to the same baseline via
   margin-top:auto so a longer blurb cannot make one card taller-looking than
   the other. What separates the block from the prose above it is not rank, it
   is ground: the cards sit on a faint gold wash inside a gold hairline, which
   is the only place on an article page that colour is used behind text. That
   is the CTA signal.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Sources block in the article rail ──────────────────────────────────────
   Replaces the old "Filed from / a small kitchen" scene-setting, which was
   invented atmosphere. A citation list is the substantiating move: it is the
   thing an essay making factual claims owes the reader, and it is also the
   single hardest element for generated copy to fake. */
.meta.jsources { line-height: 1.7; }

.meta.jsources span {
  display: block;
  margin-top: .7rem;
  font-family: var(--f-body);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-faint);
  padding-left: .8rem;
  border-left: 1px solid var(--c-ghost);
}

.meta.jsources span em { font-style: italic; color: var(--c-dim); }

.jcta {
  margin: 3.5rem 0 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--c-ghost);
}

.jcta-head {
  font-family: var(--f-mono);
  font-size: .56rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold-bright);
  margin-bottom: 1.5rem;
}

.jcta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* equal halves of the body measure */
  align-items: stretch;            /* equal height, whatever the blurb runs to */
  gap: 1px;                        /* hairline seam, not a gutter */
  background: rgba(184, 149, 42, .28);
  border: 1px solid rgba(184, 149, 42, .28);
}

.jcta-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.6rem 1.5rem 1.5rem;
  /* Faint gold wash. The only coloured ground behind text anywhere on an
     article page, which is what marks these two as actions and not prose. */
  background: rgba(184, 149, 42, .05);
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .jcta-card { transition: background .3s cubic-bezier(.65, 0, .35, 1); }
  .jcta-go   { transition: color .3s cubic-bezier(.65, 0, .35, 1); }
}

.jcta-card:hover,
.jcta-card:focus-visible { background: rgba(184, 149, 42, .11); }

.jcta-eyebrow {
  font-family: var(--f-mono);
  font-size: .52rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-faint);
}

.jcta-label {
  font-family: var(--f-display);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--c-ivory);
}

/* .jcta-card--primary is still emitted by journal-cta.js so the resolver's
   first choice stays addressable in the DOM (and in GA4). It deliberately
   carries no size or colour difference: the two boxes are equals. */

.jcta-blurb {
  font-family: var(--f-body);
  font-size: .94rem;
  line-height: 1.7;
  color: var(--c-dim);
}

.jcta-go {
  font-family: var(--f-label);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-gold-bright);
  /* auto, not a fixed gap: both cards' action line lands on one baseline even
     when the blurbs differ in length, which is what makes the pair read equal. */
  margin-top: auto;
  padding-top: .9rem;
}

.jcta-card:hover .jcta-go { color: var(--c-ivory); }

.jcta-return {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--c-ghost);
  padding-bottom: .3rem;
}

.jcta-return:hover { color: var(--c-ivory); border-bottom-color: var(--c-gold); }

/* Stack below the article grid's own breakpoint so the cards never compress
   into a two-column layout inside a single-column article. */
@media (max-width: 760px) {
  .jcta-grid { grid-template-columns: 1fr; }
  .jcta-card { padding: 1.35rem 1.25rem; }
  .jcta-label { font-size: 1.32rem; }
  .jcta-go { padding-top: .7rem; }
}
