/* ---------------------------------------------------------------------------------------------------------
   Highlight pages (/highlights/{slug}) and their list (/highlights): App\Http\Controllers\HighlightPageController.
   The article sits in the blog post frame (.blog-wrapper.post-style-3); the blocks, the closing band and the cards
   are styled here so every highlight looks the same however it was typed. Navy #1b214f, gold #d8a600, text #5f6170.
   --------------------------------------------------------------------------------------------------------- */
.hl-page,
.hl-list-page,
.hl-closing,
.hl-more,
.hl-in-post {
  --hl-navy: #1b214f;
  --hl-gold: #d8a600;
  --hl-text: #5f6170;
  --hl-line: #e4e4ea;
  font-family: Sora, sans-serif;
}

.hl-draft-bar {
  position: relative;
  z-index: 5;
  padding: 10px 15px;
  background: #fff4cc;
  color: #5c4500;
  font: 600 14px/1.5 Sora, sans-serif;
  text-align: center;
}

/* The fixed top: label, heading, date and place, photo, intro. */
.hl-head {
  margin-top: 40px;
}

.hl-title {
  margin: 14px 0 0;
  color: var(--hl-navy);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
}

.hl-when {
  margin: 12px 0 0;
  color: var(--hl-text);
  font-size: 15px;
  font-weight: 500;
}

/* Shown whole: the highlight graphics carry their own words near the edges. */
.hl-hero {
  margin: 32px 0 0;
  overflow: hidden;
  border-radius: 12px;
  background: #ededed;
}

.hl-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hl-intro {
  margin-top: 32px;
  color: var(--hl-navy);
  font-size: 19px;
  line-height: 1.7;
}

.hl-intro p {
  margin: 0 0 16px;
}

/* Blocks */
.hl-block {
  margin: 36px 0 0;
}

.hl-text {
  color: var(--hl-text);
  font-size: 16px;
  line-height: 1.85;
}

.hl-text h2,
.hl-contact-title {
  margin: 0 0 14px;
  color: var(--hl-navy);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}

.hl-text h3 {
  margin: 0 0 12px;
  color: var(--hl-navy);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.hl-text * + h2,
.hl-text * + h3 {
  margin-top: 32px;
}

.hl-text p,
.hl-text ul,
.hl-text ol {
  margin: 0 0 16px;
}

.hl-text ul,
.hl-text ol {
  padding-left: 22px;
}

.hl-text > :last-child {
  margin-bottom: 0;
}

.hl-text a {
  color: var(--hl-navy);
  text-decoration: underline;
  text-decoration-color: var(--hl-gold);
  text-underline-offset: 3px;
}

.hl-text blockquote {
  margin: 0 0 16px;
  padding-left: 20px;
  border-left: 3px solid var(--hl-gold);
  color: var(--hl-navy);
}

.hl-photo img,
.hl-gallery img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

/* A portrait photo keeps a sensible height and sits in the middle. */
.hl-photo img {
  width: auto;
  max-width: 100%;
  max-height: 720px;
  margin: 0 auto;
}

.hl-photo figcaption {
  text-align: center;
}

.hl-photo figcaption,
.hl-video figcaption {
  margin-top: 10px;
  color: var(--hl-text);
  font-size: 14px;
}

.hl-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hl-gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

.hl-gallery img {
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hl-video-frame {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hl-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* A LinkedIn post shows its text above the video: a tall, narrower frame. */
.hl-video--post .hl-video-frame {
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: auto;
  height: 720px;
  border: 1px solid var(--hl-line);
  background: #fff;
}

.hl-video--post figcaption {
  text-align: center;
}

.hl-video-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border: 1px solid var(--hl-line);
  border-radius: 10px;
  color: var(--hl-navy);
  font-weight: 600;
}

.hl-video-link::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--hl-gold);
}

.hl-quote {
  padding: 32px 36px;
  border-radius: 12px;
  background: #f4f4f6;
}

.hl-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

/* The theme gives blog quotes a white card, a shadow, a gold bar and a quote icon: not here. */
.hl-page .hl-quote blockquote,
.hl-page .hl-text blockquote,
.hl-in-post .hl-quote blockquote {
  background: none;
  box-shadow: none;
}

.hl-page .hl-quote blockquote::before,
.hl-page .hl-quote blockquote::after,
.hl-page .hl-text blockquote::before,
.hl-page .hl-text blockquote::after,
.hl-in-post .hl-quote blockquote::before,
.hl-in-post .hl-quote blockquote::after {
  content: none;
  display: none;
}

.hl-quote blockquote p {
  margin: 0;
  color: var(--hl-navy);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
}

.hl-quote blockquote p::before {
  content: "\201C";
}

.hl-quote blockquote p::after {
  content: "\201D";
}

.hl-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 18px;
  font-size: 14px;
}

.hl-quote-name {
  color: var(--hl-navy);
  font-weight: 600;
}

.hl-quote-role {
  color: var(--hl-text);
}

.hl-contact {
  padding: 28px 32px;
  border: 1px solid var(--hl-line);
  border-left: 3px solid var(--hl-gold);
  border-radius: 12px;
}

.hl-contact-title {
  font-size: 22px;
}

.hl-contact-address {
  margin: 0 0 12px;
  color: var(--hl-text);
  font-style: normal;
  line-height: 1.75;
}

.hl-contact-link {
  display: block;
  color: var(--hl-navy);
  font-weight: 600;
}

.hl-contact-link + .hl-contact-link {
  margin-top: 6px;
}

.hl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hl-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid var(--hl-navy);
  border-radius: 30px;
  font: 600 15px/1.3 Sora, sans-serif;
  transition: background-color 0.2s, color 0.2s;
}

.hl-btn--primary {
  background: var(--hl-navy);
  color: #fff;
}

.hl-btn--primary:hover {
  background: #2b3270;
  color: #fff;
}

.hl-btn--outline {
  background: transparent;
  color: var(--hl-navy);
}

.hl-btn--outline:hover {
  background: var(--hl-navy);
  color: #fff;
}

.hl-btn--light {
  border-color: #fff;
  background: #fff;
  color: var(--hl-navy);
}

.hl-btn--light:hover {
  border-color: var(--hl-gold);
  background: var(--hl-gold);
  color: var(--hl-navy);
}

/* The article's end, before the closing band. */
.hl-page {
  padding-bottom: 120px;
}

/* Closing band */
.hl-closing {
  padding: 96px 0;
  background: var(--hl-navy);
  color: #fff;
}

/* Centred, like the article above it. */
.hl-closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hl-closing-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.hl-closing-text {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.7;
}

.hl-closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}

.hl-closing-email {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hl-gold);
  text-underline-offset: 4px;
}

.hl-closing-email:hover {
  color: var(--hl-gold);
}

/* Cards: the list page and "More highlights" */
.hl-more {
  padding: 120px 0;
  background: #f4f4f6;
}

.hl-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.hl-more-title,
.hl-list-title {
  margin: 0;
  color: var(--hl-navy);
  font-weight: 600;
}

.hl-more-title {
  font-size: 30px;
}

.hl-more-all {
  color: var(--hl-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hl-gold);
  text-underline-offset: 4px;
}

.hl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.hl-card {
  display: block;
  color: var(--hl-navy);
}

.hl-card-photo {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: #ededed;
}

.hl-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hl-card:hover .hl-card-photo img {
  transform: scale(1.04);
}

.hl-card-label {
  display: block;
  margin-top: 18px;
  color: #9a7600;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hl-card-title {
  margin: 8px 0 0;
  color: var(--hl-navy);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.hl-card:hover .hl-card-title {
  text-decoration: underline;
  text-decoration-color: var(--hl-gold);
  text-underline-offset: 4px;
}

.hl-list-page {
  padding: 160px 0 120px;
}

.hl-list-head {
  margin-bottom: 48px;
}

.hl-list-title {
  margin-top: 14px;
  font-size: 44px;
}

@media (max-width: 1199px) {
  .hl-closing .container,
  .hl-more .container,
  .hl-list-page .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 1024px) {
  .hl-page {
    padding-bottom: 96px;
  }

  .hl-closing {
    padding: 72px 0;
  }

  .hl-more {
    padding: 96px 0;
  }

  .hl-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hl-list-page {
    padding: 140px 0 96px;
  }
}

@media (max-width: 767px) {
  .hl-head {
    margin-top: 24px;
  }

  .hl-title {
    font-size: 25px;
  }

  .hl-hero {
    margin-top: 24px;
    border-radius: 10px;
  }

  .hl-intro {
    font-size: 17px;
  }

  .hl-text h2,
  .hl-closing-title,
  .hl-more-title {
    font-size: 22px;
  }

  .hl-quote {
    padding: 24px;
  }

  .hl-quote blockquote p {
    font-size: 18px;
  }

  .hl-contact {
    padding: 22px 20px;
  }

  .hl-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hl-video--post .hl-video-frame {
    height: 620px;
  }

  .hl-page {
    padding-bottom: 72px;
  }

  .hl-more {
    padding: 72px 0;
  }

  .hl-cards {
    grid-template-columns: 1fr;
  }

  .hl-list-page {
    padding: 120px 0 72px;
  }

  .hl-list-title {
    font-size: 32px;
  }
}

/* Photo row: 2 to 4 photos side by side, cut to the same shape so they line up. */
.hl-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hl-photos--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hl-photos--4 {
  grid-template-columns: repeat(4, 1fr);
}

.hl-photos figure {
  margin: 0;
}

.hl-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.hl-photos--square img {
  aspect-ratio: 1 / 1;
}

.hl-photos--portrait img {
  aspect-ratio: 3 / 4;
}

.hl-photos figcaption {
  margin-top: 8px;
  color: var(--hl-text);
  font-size: 14px;
}

/* Four photos: two pairs once a quarter of the row gets too narrow. */
@media (max-width: 767px) {
  .hl-photos--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .hl-photos--3 {
    grid-template-columns: 1fr;
  }
}
