/*
 * The Journal: the index (Main's "The Journal" block, decision P4) and a story
 * (design-reference/Article.dc.html). Cards, tabs, the film player, story
 * text, figures and pull quotes come from site.css.
 */

/* Index ------------------------------------------------------------------- */
.journal-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: var(--space-10) var(--site-margin) var(--space-7);
}

.journal-head__title {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-leading);
}

.journal-index {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--site-margin) var(--space-11);
}

/* Story head -------------------------------------------------------------- */
.story-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-10) var(--site-margin) var(--space-9);
  text-align: center;
}

.story-head__title {
  font-size: var(--type-display-size);
  line-height: var(--type-display-leading);
}

.story-head__standfirst {
  max-width: 40ch;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-style: italic;
  font-size: var(--type-h3-size);
  line-height: 1.35;
  color: var(--sand);
}

.story-head__byline {
  font-size: var(--type-small-size);
  color: var(--sand);
}

/* The hero sits inside the side margins, as in the mock. */
.story-hero {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-margin);
}

.story-hero .placeholder {
  border-radius: 0;
}

/* Body, share and "Stay here" ------------------------------------------------ */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: var(--space-10) var(--site-margin);
}

.story-layout__body {
  max-width: 68ch;
}

.story-layout__placeholder {
  color: var(--sand);
}

/* The body comes first in the page for screen readers and phones; wide
   screens put the share links to its left, as in the mock. */
@media (min-width: 1100px) {
  .story-layout {
    grid-template-columns: 200px minmax(0, 1fr) 320px;
    align-items: start;
    gap: var(--space-9);
  }

  .story-share {
    grid-column: 1;
    grid-row: 1;
  }

  .story-layout__body {
    grid-column: 2;
    grid-row: 1;
  }

  .story-stay {
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: var(--space-6);
  }
}

/* The share block itself (.share) is styled in site.css; on phones its links
   sit in one row under the story. */
@media (max-width: 1099px) {
  .story-share .share__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 var(--space-6);
  }
}

.story-stay {
  align-self: start;
  background: var(--walnut);
  border: 1px solid var(--smoke);
}

.story-stay__media .placeholder {
  border-radius: 0;
}

.story-stay__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 22px;
}

.story-stay__name {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 28px;
  line-height: 1.1;
}

.story-stay__place {
  font-size: var(--type-small-size);
  color: var(--sand);
}

.story-stay__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: var(--target-min);
  font-size: var(--type-small-size);
  font-weight: var(--weight-label);
  color: var(--ivory);
  text-decoration-line: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* More from the journal -------------------------------------------------------- */
.story-more {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-margin) var(--space-11);
}
