/*
 * Single Perspective frontend layout only.
 * Loaded on is_singular( 'perspective' ) after responsive.css.
 */

.perspective-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 34px;
  padding-top: 64px;
  padding-bottom: 80px;
  align-items: start;
}

.perspective-single {
  min-width: 0;
}

.perspective-single__header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.perspective-single__date {
  margin: 0 0 10px;
  color: #706861;
  font:
    700 0.62rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perspective-single__header h1 {
  margin: 0;
  color: var(--maroon);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.05;
}

/* Featured image: moderate size, never cropped. */
.perspective-single__feature {
  margin: 26px 0 30px;
  max-width: 720px;
  background: #f0e9e4;
}

.perspective-single__feature img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

.perspective-single__content {
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 760px;
}

.perspective-single__content img {
  max-width: 100%;
  height: auto;
}

/* ---------- Related Insights ---------- */

.perspective-related {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.perspective-related h2 {
  margin: 0 0 20px;
  color: var(--maroon);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.perspective-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.perspective-related__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition:
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.perspective-related__image {
  display: block;
  background: #f0e9e4;
  padding: 10px;
}

/* Natural aspect ratio, no fixed-height cover crop. */
.perspective-related__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto;
}

.perspective-related__body {
  display: block;
  padding: 14px 16px 18px;
}

.perspective-related__body .insight-meta {
  display: block;
  margin: 0 0 7px;
  color: var(--maroon);
  font:
    700 0.56rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.perspective-related__card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.28;
  font-weight: 400;
}

.perspective-related__date {
  display: block;
  margin-top: 9px;
  color: #706861;
  font:
    700 0.58rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perspective-related__card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(35, 20, 16, 0.09);
}

.perspective-related__card:hover strong {
  color: var(--maroon);
}

/* ---------- Sticky Latest News sidebar ---------- */

.perspective-single-layout__sidebar {
  align-self: stretch;
  min-width: 0;
  width: 100%;
  position: static;
}

.perspective-single-layout__sidebar .sticky-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 110px;
  height: fit-content;
  min-height: 0;
  overflow: visible;
  border-top: 5px solid var(--maroon);
  background: #fff;
  box-shadow: 0 2px 14px rgba(35, 20, 16, 0.08);
}

.perspective-single-layout__sidebar .sticky-panel__heading {
  padding: 15px 18px 13px;
  background: #f0e9e4;
  border-bottom: 2px solid var(--gold);
}

.perspective-single-layout__sidebar .sticky-panel__heading .section-kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--maroon);
  font:
    700 0.62rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.perspective-single-layout__sidebar .sticky-panel h2 {
  margin: 0;
  color: var(--maroon);
  font:
    400 1.08rem/1.1 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.perspective-single-layout__sidebar .sticky-panel__items {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
}

.perspective-single-layout__sidebar .sticky-news {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.perspective-single-layout__sidebar .sticky-news:last-child {
  border-bottom: 0;
}

.perspective-single-layout__sidebar .sticky-news img {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.perspective-single-layout__sidebar .sticky-news > span {
  display: block;
  min-width: 0;
}

.perspective-single-layout__sidebar .sticky-news .insight-meta {
  display: block;
  margin: 0 0 6px;
  color: var(--maroon);
  font:
    700 0.56rem/1.2 Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.perspective-single-layout__sidebar .sticky-news strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.perspective-single-layout__sidebar .sticky-news:hover strong {
  color: var(--maroon);
}

.perspective-single-layout__sidebar .sticky-news:hover img {
  transform: scale(1.03);
}

.perspective-single-layout__sidebar .sticky-panel__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 14px 15px 16px;
  color: var(--maroon);
  font:
    700 0.63rem/1 Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perspective-single-layout__sidebar .sticky-panel__more span {
  font:
    400 1rem/1 Georgia,
    "Times New Roman",
    serif;
  transition: transform 0.22s ease;
}

.perspective-single-layout__sidebar .sticky-panel__more:hover {
  color: var(--green);
}

.perspective-single-layout__sidebar .sticky-panel__more:hover span {
  transform: translateX(4px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .perspective-single-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 24px;
    padding-top: 48px;
  }
  .perspective-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .perspective-single-layout {
    display: flex;
    flex-direction: column;
    gap: 44px;
    padding-top: 36px;
    padding-bottom: 56px;
  }
  .perspective-single-layout__sidebar {
    order: 2;
    align-self: auto;
  }
  .perspective-single-layout__sidebar .sticky-panel {
    position: static;
    top: auto;
    height: auto;
    overflow: visible;
  }
  .perspective-single-layout__sidebar .sticky-panel__items {
    display: block;
  }
}

@media (max-width: 600px) {
  .perspective-single__header h1 {
    font-size: 2.2rem;
  }
  .perspective-single__feature {
    margin: 20px 0 24px;
  }
  .perspective-single__feature img {
    max-height: none;
  }
  .perspective-single__content {
    font-size: 1rem;
    line-height: 1.7;
  }
  .perspective-related__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .perspective-related__image img {
    max-height: none;
  }
}
