/* Papers (/papers/, papersIndex; Views/papersIndex.cshtml). The hero is the shared pageHero component and the
   heading and intro use the shared pageIntro classes (css/pageHero.css, css/pageIntro.css); this file adds what is
   specific to the reference page (page-papers.php), measured 2026-10-29 at 1280, 1024, 768 and 375 px plus the
   breakpoints (theme rules in brackets):
   intro 80px below the rule (the 50px heading margin collapses with p.mb-80; 40px at ≤850px) [.mb-80];
   list 16px below the intro, rows 70px apart, 160px from the list to the footer (80px at ≤850px) [.articles.top, .mb-80,
   #start];
   row: thumbnail half the text column at its natural aspect, radius 6px (8px at ≤700px), 30px gap, then the text
   [.articles-item, .articles-thumb]; at ≤639px the thumbnail stacks above the text, 180px high, cropped, 15px gap;
   title Clash Grotesk Regular 28/29, 20px below (25/27 and 13px at ≤850px), with the date under it in
   Roboto 12/22 #7855d7, 2px above [.articles-item h3 small]; description 16/30, 16px below (14/20 at ≤700px);
   links Roboto Bold 16/30 violet, icon 6px after the text, "view" 20px after "download brochure"
   [.cta.c-purple a, .download.--purple, .arrow.--purple]. */

/* Hero video crop, Papers only: hero-papers.mp4 has black bars at the top, so the reference page sizes the video
   to 180% of the hero and lifts it 175px, at every width (page-papers.php: .hero-video { height: 180% !important;
   margin-top: -175px !important; }). This file loads after css/pageHero.css on Papers only, so the rule overrides the
   shared .page-hero__video heights (100vh, 400px at ≤850px, 100% at ≤700px) without !important. */
.page-hero__video {
  height: 180%;
  margin-top: -175px;
}

/* 160px below the list: the reference list's 80px margin plus the section's 80px (40px + 40px at ≤850px). The
   shared .page-intro__content > :last-child rule removes the list's own margin, so the section carries all of it. */
.papers {
  padding-bottom: 160px;
}

.papers__content {
  padding-top: 30px;
}

.papers__intro {
  margin-bottom: 16px;
}

.papers__list {
  display: grid;
  gap: 70px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.papers__item {
  display: flex;
  gap: 30px;
}

.papers__thumb {
  flex: none;
  width: 50%;
}

/* Equal cards: every thumbnail takes the Miami-Dade CONOPS cover's proportions (870 × 498), cropped to fill. */
.papers__image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 870 / 498;
  object-fit: cover;
  border-radius: 6px;
}

/* js/papers.js sets the body's min-height (the shared card height) and clamps long descriptions; the links sit at
   the bottom so they line up from card to card. */
.papers__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
}

.papers__body > .papers__links {
  margin-top: auto;
}

.papers__description.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--papers-lines, 6);
  line-clamp: var(--papers-lines, 6);
  overflow: hidden;
}

.papers__description.is-clamped + .papers__more,
.papers__more[aria-expanded="true"] {
  margin-top: -16px;
}

.papers__more {
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--eve-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: var(--eve-color-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.papers__more[hidden] {
  display: none;
}

.papers__more:hover,
.papers__more:focus-visible {
  text-decoration-thickness: 2px;
}

.papers__title {
  margin: 0 0 20px;
  font-family: var(--eve-font-display-regular);
  font-weight: 400;
  font-size: 28px;
  line-height: 29px;
  color: var(--eve-color-text);
}

.papers__date {
  display: block;
  margin-top: 2px;
  font-family: var(--eve-font-body);
  font-size: 12px;
  line-height: 22px;
  color: var(--eve-color-purple);
}

.papers__description {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 30px;
  color: var(--eve-color-text);
}

.papers__links {
  margin: 0;
}

.papers__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--eve-font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
  color: var(--eve-color-violet);
  text-decoration: none;
}

.papers__link--view {
  margin-left: 20px;
}

.papers__icon {
  display: inline-block;
  position: relative;
  flex: none;
}

.papers__icon--download {
  width: 16px;
  height: 19px;
  background: url("/img/download-purple.svg") no-repeat;
  background-size: 16px auto;
}

.papers__icon--view {
  width: 15px;
  height: 16px;
  background: url("/img/arrow-purple.svg") no-repeat;
  background-size: 14px auto;
  transform: rotate(270deg);
}

@media (max-width: 850px) {
  .papers {
    padding-bottom: 80px;
  }

  .papers__content {
    padding-top: 10px;
  }

  .papers__title {
    margin-bottom: 13px;
    font-size: 25px;
    line-height: 27px;
  }
}

@media (max-width: 700px) {
  .papers__image {
    border-radius: 8px;
  }

  .papers__description,
  .papers__more {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 639px) {
  .papers__item {
    display: grid;
    gap: 15px;
  }

  .papers__thumb {
    width: 100%;
    height: 180px;
  }

  .papers__image {
    height: 100%;
    object-fit: cover;
  }
}
