/* ===== Journal Article Layout ===== */

.journal-article-page .journal-article {
  padding: 3rem 0 4rem;
  background: #faf8fc;
}

/* 2-column layout:
   col 1: Article body (wide)
   col 2: Sidebar
*/
.journal-article-page .journal-article .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Article body card */
.journal-article-body {
  grid-column: 1;
  position: relative;      /* let the back button anchor to this */
  width: 100%;
  max-width: none;
  margin: 0;
  background: #ffffff;
  padding: 2rem 2rem 2.5rem;
  border-radius: 0.9rem;
  border: 1px solid #eee5f8;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.journal-article-body p {
  line-height: 1.7;
  font-size: 0.98rem;
  color: #333;
  margin: 0 0 1rem;
}

.journal-article-body h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.journal-article-body ul,
.journal-article-body ol {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

.journal-article-body li {
  margin-bottom: 0.3rem;
}

/* Callout blocks inside article */
.journal-article-body .article-callout {
  padding: 0.9rem 1.1rem;
  margin: 1.3rem 0;
  border-radius: 0.6rem;
  background: #faf4ff;
  border: 1px solid #e3dff0;
}

.journal-article-body .article-callout p {
  margin: 0.1rem 0;
}

/* Signoff */
.journal-article-body .article-signoff {
  margin-top: 1.8rem;
  font-style: italic;
  text-align: right;
}

/* Optional photo credit under signoff */
.journal-article-body .article-credit {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  text-align: right;
  opacity: 0.8;
}

/* Sidebar */
.journal-article-aside {
  grid-column: 2;
  align-self: flex-start;
}

.journal-article-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid #eee5f8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.journal-article-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.journal-article-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.journal-article-card li + li {
  margin-top: 0.4rem;
}

/* Floating Back to Journal button */
.journal-article-body .back-btn-floating {
  display: inline-block;
  background: #6e4a8e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
  margin-bottom: 1rem;
}

/* On wider screens, float it visually to the left of the card */
@media (min-width: 900px) {
  .journal-article-body .back-btn-floating {
    position: absolute;
    left: -155px;
    top: 0;
    margin-bottom: 0;
  }
}

.journal-article-body .back-btn-floating:hover {
  background: #8a66ad;
}

/* Mobile: stack body + sidebar */
@media (max-width: 900px) {
  .journal-article-page .journal-article .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .journal-article-aside {
    grid-column: 1;
    margin-top: 0.5rem;
  }

  .journal-article-body .back-btn-floating {
    position: static;
    margin-bottom: 1rem;
  }
}

/* Subtitle line general style (if not already in main.css) */
.journal-article-page .page-title .subtitle-line {
  font-size: 1.2rem;
  font-weight: 400;
  display: block;
  margin-top: 6px;
  opacity: 0.9;
}

/* Reactive horse hero crop (keep if you like it) */
.article-reactive-horse .hero-media img {
  object-position: center 60% !important;
}
.libertyOne img {
   object-position: center 25% !important;
}
.libertyTwo img {
   object-position: center 40% !important;
}
.controlI img {
     object-position: center 40% !important;
}

/* ============================
   Journal Series Block (Articles)
   ============================ */

.journal-series-card{
  margin-bottom: 1rem;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.journal-series-kicker{
  margin: 0 0 6px;
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.journal-series-title{
  margin: 0 0 12px;
}

.journal-series-list{
  margin: 0;
  padding-left: 1.1rem;
}

.journal-series-list li{
  margin: 8px 0;
}

.journal-series-list a{
  text-decoration: none;
}

.journal-series-list a:hover{
  text-decoration: underline;
}

.journal-series-list li.is-current{
  font-weight: 700;
}

.series-pill{
  display: inline-block;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.2;
  background: rgba(140, 90, 190, 0.18);
  border: 1px solid rgba(140, 90, 190, 0.35);
}
/* ============================
   Journal Series Block
   Styled to match "More From..."
   ============================ */

.journal-series-card{
  margin-bottom: 1rem;
  padding: 16px;
  border-radius: 16px;

  /* Match More From card */
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--card-border, rgba(255,255,255,0.10));
}

.journal-series-kicker{
  margin: 0 0 4px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.journal-series-title{
  margin: 0 0 12px;
  font-size: 1.1rem; /* same scale as "More From" heading */
}

/* List styling matches More list */
.journal-series-list{
  margin: 0;
  padding-left: 1.1rem;
}

.journal-series-list li{
  margin: 8px 0;
}

.journal-series-list a{
  text-decoration: none;
}

.journal-series-list a:hover{
  text-decoration: underline;
}

/* Current article emphasis — subtle, not loud */
.journal-series-list li.is-current{
  font-weight: 600;
}

/* Keep the purple pill (intentional accent) */
.series-pill{
  display: inline-block;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;

  font-size: 0.72rem;
  line-height: 1.2;

  background: rgba(140, 90, 190, 0.18);
  border: 1px solid rgba(140, 90, 190, 0.35);
  color: inherit;
}
/* Subtle "coming soon" note for series with one article */
.journal-series-coming{
  margin-top: 10px;
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.75;
}
.cvr img {
  object-position: 5% !important;
}
.softenRe img {
  object-position: center 25% !important;
}
.differentEvery img {
  object-position: center 40% !important;
}
.fVr img {
  object-position:  center 75% !important;
}
/* ===== Article Hero Image Baseline ===== */
.journal-article-page .hero--mini .hero-media{
  overflow: hidden;
}

.journal-article-page .hero--mini .hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;         /* critical */
  object-position: center;   /* default */
  display: block;
}
/* ===== Per-article hero crops ===== */

/* Softening the Reactive Horse — move crop UP (show more toward the top) */
.article-reactive-horse .hero--mini .hero-media img{
  object-position: center 70% !important;
}

/* Reading Your Horse's Energy — move crop DOWN (show more toward the bottom) */
.article-reading-energy .hero--mini .hero-media img{
  object-position: center 50% !important;
}
