/**
 * Single Post Template Styles
 * Used exclusively by single.php
 */

/* Vimeo Placeholder */
.vimeo-placeholder {
  position: relative;
}

.vimeo-placeholder img {
  margin: 0 auto;
  display: block;
}

.vimeo-preview-thumb {
  background-color: #000;
  display: block;
  width: 100%;
  height: 670px;
  object-fit: cover;
}

.vimeo-placeholder:after {
  /*content: '';*/
}

.vimeo-play {
  background-image: url(../img/play-button.svg);
  background-size: 25px 25px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(250, 250, 250, 0.1);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 50px;
  margin-top: -25px;
  margin-left: -40px;
  border-radius: 6px;
}

/* Article Hero Section */
.article__hero {
  padding-top: 60px;
  background: linear-gradient(270deg, var(--roche-light-salmon, #FFFBFA) 0%, #E7F0F9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article__hero-content {
  max-width: 1440px;
  width: 100%;
  padding: var(--page-padding);
}

.article__title {
  color: #142344;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  text-wrap: balance;
  margin-top: 32px;
  margin-bottom: 32px;
}

/* Article Pills (Categories/Tags) */
/* Note: Glossary Pill styles are in glossary.css */
.article__pills {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article__pill {
  color: #007AC2;
  font-size: 16px;
  font-weight: 600;
  line-height: 120%;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  border: 1px dashed #58AEE0;
  transition: all 0.2s ease;
}

.article__pill:hover {
  background: white;
  border-style: solid;
}

.article__pill a,
.article__pill a:visited,
.article__pill a:hover,
.article__pill a:active {
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 12px;
  color: #007AC2 !important;
  text-decoration: none;
}

/* Article Featured Image/Video */
.article__featured {
  width: 100%;
  margin-top: calc(28px + 20px);
  background-color: white;
  outline: 28px solid white;
  margin-bottom: calc(-200px + 28px);
  max-height: 670px;
  overflow: hidden;
}

.article__featured-img {
  width: 100%;
  height: auto;
  max-height: 614px;
  object-fit: cover;
  display: block;
}

.article__featured iframe,
.article__featured video {
  width: 100%;
  height: 614px;
  max-height: 614px;
  display: block;
}

.article__featured .vimeo-placeholder {
  width: 100%;
  max-height: 614px;
  overflow: hidden;
}

/* Article Content Area */
.article__content {
  margin-top: 200px;
  max-width: 1440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  /*padding: var(--page-padding);*/
  
  /* Emperically Chosen */
  padding: 0 160px;

  font-size: 18px;
  padding-bottom: 40px;
}

/* Two Column Layout */
.article__columns {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  margin-top: 40px;
}

/* Main Content Column */
.article__main-col {
  min-width: 0;
}

/* Author Section */
.article__author-section {
  display: flex;
  justify-content: space-between;
  /*align-items: center;*/
  margin-bottom: 24px;
}

.article__author-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 16px;
}

.article__author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a.article__author:hover {
  text-decoration: none;
  opacity: 0.8;
}

.article__author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.article__author-info {
  display: flex;
  flex-direction: column;
}

.article__author-name {
  font-weight: 600;
  font-size: 14px;
  color: #142344;
}

.article__author-designation {
  font-size: 14px;
  color: #6B7280;
}

.article__date {
  font-size: 14px;
  color: #6B7280;
  margin-left: auto;
}

/* Key Takeaways */
.article__key-takeaways {
  background: linear-gradient(90deg, #FFFBFA 0%, #E7F0F9 100%);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.article__key-takeaways h4 {
  color: #142344;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article__key-takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.article__key-takeaways li {
  color: #373F41;
  font-size: 16px;
  line-height: 120%;
  margin-bottom: 8px;
}

/* Article Body */
.article__body {
  font-size: 16px;
  line-height: 120%;
  color: #373F41;
}

.article__body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #142344;
  margin-top: 40px;
  margin-bottom: 16px;
  scroll-margin-top: 120px;
}

.article__body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #142344;
  margin-top: 32px;
  margin-bottom: 16px;
  scroll-margin-top: 120px;
}

.article__body p {
  font-size: 16px;
  margin-bottom: 16px;
}

.article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

/* Lists in article content - restore standard indentation after global reset */
.article__body ul,
.article__body ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.article__body li {
  margin-bottom: 0.5rem;
}

/* References */
.article__references {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #E5E7EB;
}

.article__references h4 {
  color: #142344;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.article__references-content {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  padding-left: 24px;
}

/* Table of Contents Sidebar */
.article__toc-col {
  position: relative;
}

.article__toc {
  position: sticky;
  top: 120px;
  padding: 24px;
}

.article__toc h4 {
  color: #142344;
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 12px;
}

.article__toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article__toc-nav a {
  color: #6B7280;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all 0.2s ease;
}

.article__toc-nav a:hover {
  color: #007AC2;
}

.article__toc-nav a.active {
  color: #007AC2;
  border-left-color: #007AC2;
  font-weight: 600;
}

.article__toc-nav a.toc-h3 {
  padding-left: 24px;
  font-size: 13px;
}

.article__social {
  margin-top: 10px;
}

/* =============================================
   Responsive Styles
   ============================================= */


@media only screen and (max-width: 1440px) {
  .article__content {
    padding: var(--page-padding);
  }
}

/* Tablet Landscape */
@media only screen and (max-width: 1024px) {
  .article__featured iframe,
  .article__featured video {
    height: auto;
    aspect-ratio: 16 / 9;
  }


  .article__columns {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .article__toc-col {
    order: -1;
  }

  .vimeo-preview-thumb {
    height: 560px;
  }
}

/* iPad Portrait */
@media only screen and (max-width: 768px) {
  .article__title {
    font-size: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .vimeo-preview-thumb {
    height: 400px;
  }
}

/* Mobile */
@media only screen and (max-width: 600px) {
  .article__title {
    font-size: 24px;
  }

  .vimeo-preview-thumb {
    height: 300px;
  }
  .article__author-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .article__date {
    margin-left: 60px;
  }
}

/* Small Mobile */
@media only screen and (max-width: 480px) and (orientation: portrait) {
  .article__columns {
    display: block;
  }

  .article__toc-col {
    display: none;
  }

  .article__main-col {
    width: 100%;
  }

  .article__body h2 {
    font-size: 20px;
    scroll-margin-top: 80px;
  }

  .article__body h3 {
    font-size: 16px;
    scroll-margin-top: 80px;
  }

  .article__key-takeaways {
    padding: 16px;
  }

  .article__author-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .article__date {
    margin-left: 60px;
  }
  .article__title {
    font-size: 24px;
  }
}
