body {
  background: var(--color-plum-deep);
}

.site-header--dark {
  background: rgba(79, 15, 47, 0.98);
  box-shadow: 0 1px 16.7px 5px rgba(0, 0, 0, 0.2);
}

.site-header--dark .nav-list a,
.site-header--dark .nav-trigger,
.site-header--dark .login-link,
.site-header--dark .menu-toggle {
  color: var(--color-white);
}

.site-header--dark .menu-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
}

.site-header--dark .login-link {
  border-color: rgba(255, 255, 255, 0.7);
}

.insights-main {
  background:
    radial-gradient(circle at 68% 18%, rgba(119, 24, 71, 0.9), transparent 34%),
    linear-gradient(180deg, #5b1237 0%, #4f0f2f 72%, #5b1237 100%);
}

.insights-hero {
  padding: 122px 0 62px;
  color: var(--color-white);
}

.insights-title {
  max-width: 831px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.33;
}

.insights-copy {
  max-width: 714px;
  margin: 17px 0 52px;
  font-size: 18px;
  line-height: 30px;
}

.insights-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 15px;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.insights-toolbar input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-white);
}

.insights-toolbar input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.insights-browse {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.insights-browse button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  line-height: inherit;
}

.insights-browse button {
  transition: opacity var(--transition);
}

.insights-browse button:hover,
.insights-browse button:focus-visible {
  opacity: 0.72;
}

.insights-divider {
  height: 1px;
  margin: 6px 0 44px;
  background: rgba(255, 255, 255, 0.8);
}

body.insights-modal-open {
  overflow: hidden;
}

.insights-modal[hidden] {
  display: none;
}

.insights-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.insights-modal__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.insights-modal__panel {
  position: relative;
  min-height: min(580px, 68vh);
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.insights-modal__inner {
  width: min(calc(100% - 48px), 1440px);
  margin: 0 auto;
  padding: 68px 0 64px;
}

.insights-modal__inner h2 {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insights-modal__close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-black);
}

.insights-modal__close::before,
.insights-modal__close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 6px;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.insights-modal__close::before {
  transform: rotate(45deg);
}

.insights-modal__close::after {
  transform: rotate(-45deg);
}

.topic-modal-list {
  display: grid;
  gap: 20px;
  max-height: 410px;
  padding-right: 24px;
  overflow: auto;
  scrollbar-color: #898989 rgba(0, 0, 0, 0.04);
  scrollbar-width: thin;
}

.topic-modal-list a {
  width: fit-content;
  color: var(--color-plum);
  font-size: 28px;
  line-height: 1;
  transition:
    color var(--transition),
    opacity var(--transition);
}

.topic-modal-list a:hover,
.topic-modal-list a:focus-visible,
.topic-modal-list a.is-active {
  color: var(--color-red);
}

.date-modal-form {
  width: min(100%, 864px);
  margin: 0 auto;
}

.date-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.date-modal-fields label {
  display: grid;
  gap: 14px;
  color: var(--color-plum);
  font-size: 24px;
  line-height: 1.25;
}

.date-modal-fields input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(119, 24, 71, 0.28);
  border-radius: 0;
  padding: 0 14px;
  color: var(--color-black);
  background: var(--color-white);
  font-size: 18px;
}

.date-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.date-modal-actions a,
.date-modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--color-plum);
  padding: 8px 18px;
  background: transparent;
  color: var(--color-plum);
  font-size: 15px;
  line-height: 1.2;
  transition:
    background var(--transition),
    color var(--transition);
}

.date-modal-actions button {
  background: var(--color-plum);
  color: var(--color-white);
}

.date-modal-actions a:hover,
.date-modal-actions a:focus-visible,
.date-modal-actions button:hover,
.date-modal-actions button:focus-visible {
  background: var(--color-plum);
  border-color: var(--color-plum);
  color: var(--color-white);
}

.insights-layout {
  display: grid;
  grid-template-columns: minmax(0, 754px) 363px;
  align-items: start;
  gap: 28px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.insight-card {
  display: flex;
  min-height: 523px;
  flex-direction: column;
  background: var(--card-bg, var(--color-white));
  color: var(--card-color, var(--color-black));
  content-visibility: auto;
  contain-intrinsic-size: 363px 523px;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.insight-card[hidden] {
  display: none;
}

.insight-card-spacer {
  min-height: 523px;
  visibility: hidden;
  pointer-events: none;
}

.insight-card:hover,
.insight-card:focus-visible {
  background: #3b0c23;
  color: var(--color-white);
  transform: translateY(-2px);
}

.insight-card__media {
  height: 245px;
  margin: 0;
  overflow: hidden;
  background: #d9d9d9;
}

.insight-card__media img,
.trending-card img,
.insight-related__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 33px 27px 29px;
}

.insight-card__topic {
  margin: 0 0 13px;
  color: var(--card-topic, var(--color-plum));
  font-size: 13px;
  line-height: 1.3;
  transition: color var(--transition);
}

.insight-card:hover .insight-card__topic,
.insight-card:focus-visible .insight-card__topic {
  color: var(--color-yellow);
}

.insight-card h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  line-height: 30px;
}

.insight-card p:not(.insight-card__topic) {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 24px;
}

.insight-card span {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.76;
}

.subscribe-panel {
  min-height: 244px;
  padding: 25px 27px 32px 30px;
  background: rgba(0, 0, 0, 0.3);
}

.subscribe-panel h2,
.trending-panel h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 25px;
  line-height: 40px;
  color: var(--color-white);
}

.sidebar-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 39px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.sidebar-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--color-white);
  background: transparent;
}

.sidebar-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.sidebar-field button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
}

.trending-panel {
  margin-top: 27px;
}

.trending-list {
  display: grid;
  gap: 25px;
  margin-top: 24px;
}

.trending-card {
  position: relative;
  display: block;
  min-height: 223px;
  overflow: hidden;
  background: var(--color-black);
  color: var(--color-white);
}

.trending-card img {
  position: absolute;
  inset: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.trending-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  transition: opacity 220ms ease;
}

.trending-card div {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.trending-card h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1.28;
  text-align: center;
}

.trending-card:hover img,
.trending-card:focus-visible img {
  transform: scale(1.04);
}

.trending-card:hover::after,
.trending-card:focus-visible::after,
.trending-card:hover div,
.trending-card:focus-visible div {
  opacity: 1;
}

.trending-card:hover div,
.trending-card:focus-visible div {
  transform: translateY(0);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 54px;
  margin-left: 48px;
}

.pagination a,
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 54px;
  border: 0;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  font-size: 16px;
  line-height: 30px;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}

.pagination a:hover,
.pagination a:focus-visible,
.pagination a.is-active,
.pagination button:hover,
.pagination button:focus-visible,
.pagination button.is-active {
  background: var(--color-white);
  color: var(--color-plum-deep);
}

.pagination .pagination-prev,
.pagination .pagination-next {
  width: 58px;
}

.insights-empty {
  min-height: 300px;
  padding: 48px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-white);
}

.insights-empty h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  line-height: 1.2;
}

.insights-empty p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.insights-load-sentinel {
  width: 100%;
  height: 1px;
}

.insights-load-sentinel[hidden] {
  display: none;
}

.site-footer--light {
  background: var(--color-white);
}

.site-footer--light .footer-bottom {
  background: var(--color-white);
}

.insight-detail-main {
  background:
    linear-gradient(180deg, #f2f2f2 0 436px, var(--color-white) 436px 100%);
}

.insight-detail {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto;
  padding: 70px 0 76px;
}

.insight-detail__intro {
  display: grid;
  justify-items: center;
}

.insight-back {
  justify-self: start;
  margin-bottom: 50px;
  color: var(--color-black);
  font-size: 14px;
  line-height: 1.4;
  transition: color var(--transition);
}

.insight-back:hover,
.insight-back:focus-visible {
  color: var(--color-plum);
}

.insight-detail__topics {
  margin: 0 0 20px;
  color: var(--color-plum);
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

.insight-detail h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4.4vw, 45px);
  line-height: 1.12;
  text-align: center;
}

.insight-detail__media {
  width: min(100%, 740px);
  height: 315px;
  margin: 32px 0 0;
  overflow: hidden;
  background: #d9d9d9;
}

.insight-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-detail__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 740px);
  margin-top: 25px;
  color: var(--color-plum);
  font-size: 14px;
  line-height: 1.5;
}

.insight-detail__meta p {
  margin: 0;
}

.insight-detail__body {
  width: min(100%, 740px);
  margin: 66px auto 0;
}

.insight-detail__body h2,
.insight-detail__body h3 {
  margin: 0 0 24px;
  font-family: "Playfair Display", serif;
  color: var(--color-black);
}

.insight-detail__body h2 {
  font-size: 30px;
  line-height: 1.25;
}

.insight-detail__body h3 {
  margin-top: 44px;
  font-size: 24px;
  line-height: 1.35;
}

.insight-detail__body p,
.insight-detail__body li {
  font-size: 16px;
  line-height: 30px;
}

.insight-detail__body p {
  margin: 0 0 28px;
}

.insight-detail__body ul,
.insight-detail__body ol {
  margin: 0 0 28px;
  padding-left: 22px;
}

.insight-detail__body a {
  color: var(--color-plum);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.insight-detail__pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  width: min(100%, 740px);
  margin: 58px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(119, 24, 71, 0.2);
  color: var(--color-plum);
  font-size: 13px;
  line-height: 1.5;
}

.insight-detail__pager a {
  width: fit-content;
  transition: color var(--transition), opacity var(--transition);
}

.insight-detail__pager a:last-child {
  justify-self: end;
  text-align: right;
}

.insight-detail__pager a:hover,
.insight-detail__pager a:focus-visible {
  color: var(--color-red);
}

.insight-related.featured-insights {
  padding: 84px 0 82px;
  border-top: 1px solid rgba(119, 24, 71, 0.45);
}

.insight-related .featured-insights__eyebrow {
  margin-bottom: 65px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.insight-related .featured-insights__grid {
  width: min(100%, 1008px);
  margin: 0 auto;
  gap: 32px 24px;
}

@media (max-width: 1180px) {
  .insights-layout {
    grid-template-columns: 1fr;
  }

  .insights-sidebar {
    max-width: 754px;
  }

  .pagination {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .insight-related .featured-insights__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header--dark .site-nav {
    background: rgba(79, 15, 47, 0.98);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .insights-hero {
    padding: 90px 0 48px;
  }

  .insights-copy {
    margin-bottom: 36px;
  }

  .insights-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .insights-browse {
    justify-content: flex-start;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insight-card {
    min-height: 0;
  }

  .insight-card-spacer {
    min-height: 420px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .insight-detail {
    padding-top: 46px;
  }

  .insight-back {
    margin-bottom: 34px;
  }

  .insight-detail__media {
    height: 230px;
  }

  .insight-detail__meta {
    flex-direction: column;
    gap: 6px;
  }

  .insight-detail__pager {
    gap: 18px;
    margin-top: 42px;
  }

  .insights-modal__inner {
    width: min(calc(100% - 32px), 1440px);
    padding-top: 58px;
  }

  .topic-modal-list a {
    font-size: 24px;
  }

  .date-modal-fields {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0;
  }

  .date-modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
