/* Article detail page — AnyRay & Partners */

.article-detail-page {
  background: #f8f9fc;
}

.article-detail-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #072d5c 0%, #0d4a93 52%, #0a3a74 100%);
  color: #fff;
  padding: 2rem 2rem 3rem;
}

.article-detail-header::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 40%;
  height: 160%;
  background: radial-gradient(circle, rgba(171, 199, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.article-detail-header-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

.article-detail-breadcrumb {
  margin-bottom: 1.5rem;
}

.article-detail-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-detail-breadcrumb a:hover,
.article-detail-breadcrumb a:focus-visible {
  color: #fff;
  outline: none;
}

.article-detail-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d7e3ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.article-detail-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(19, 170, 101, 0.22);
  border: 1px solid rgba(19, 170, 101, 0.45);
  color: #b8f5d4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-detail-date,
.article-detail-read-time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.article-detail-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.article-detail-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.18;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
}

.article-detail-content {
  padding: 0 2rem 4.5rem;
  margin-top: -1.5rem;
}

.article-detail-container {
  max-width: 44rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(13, 74, 147, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(7, 45, 92, 0.07);
  overflow: hidden;
}

.article-detail-figure {
  margin: 0;
  line-height: 0;
}

.article-detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
}

.article-detail-article {
  padding: 2rem 2.25rem 2.5rem;
}

.article-detail-byline {
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(13, 74, 147, 0.1);
  font-size: 0.88rem;
  font-weight: 600;
  color: #737782;
  letter-spacing: 0.02em;
}

.article-detail-byline strong {
  color: #0d4a93;
  font-weight: 700;
}

.article-detail-standfirst {
  margin: 0 0 2rem;
  padding: 1rem 0 1rem 1.15rem;
  border-left: 3px solid #13aa65;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.65;
  color: #00336d;
  font-style: normal;
}

.article-detail-body {
  color: #2e3133;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-detail-body p {
  margin: 0 0 1.5rem;
  text-align: left;
}

.article-detail-body p:last-child {
  margin-bottom: 0;
}

.article-detail-footer {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(13, 74, 147, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article-detail-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 6px;
  background: #0d4a93;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.article-detail-footer a:hover,
.article-detail-footer a:focus-visible {
  background: #13aa65;
  outline: none;
}

.article-detail-not-found {
  max-width: 40rem;
  margin: 4rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(13, 74, 147, 0.1);
  border-radius: 12px;
}

.article-detail-not-found h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: #00336d;
  font-weight: 400;
}

.article-detail-not-found p {
  margin: 0 0 1.5rem;
  color: #424751;
  line-height: 1.6;
}

.article-detail-not-found a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0d4a93;
  font-weight: 700;
  text-decoration: none;
}

.article-detail-not-found a:hover {
  color: #13aa65;
}

/* Override wsgr-page constraints on article view */
body.anyray-site .wsgr-main > .article-detail-page,
body.anyray-site .wsgr-main > .article-detail-not-found-wrap {
  margin: 0;
  padding: 0;
  max-width: none;
}

.article-detail-not-found-wrap {
  padding: 3rem 1.25rem 4rem;
  background: #f8f9fc;
}

@media (max-width: 700px) {
  .article-detail-header {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .article-detail-content {
    padding: 0 1.25rem 3rem;
    margin-top: -1rem;
  }

  .article-detail-container {
    border-radius: 10px;
  }

  .article-detail-figure img {
    max-height: 14rem;
  }

  .article-detail-article {
    padding: 1.5rem 1.25rem 2rem;
  }

  .article-detail-standfirst {
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
  }

  .article-detail-body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-detail-footer a {
    width: 100%;
    justify-content: center;
  }
}
