/**
 * Single article reading page — closer to reading-layout example, site tokens.
 */

.narticle {
  padding: 56px 0 96px;
  color: #1f1f1f;
}

.narticle-hero {
  margin-bottom: 32px;
}

.narticle-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 140%;
}

.narticle-crumb a {
  font-weight: 600;
  color: #002051;
  opacity: 0.7;
}

.narticle-crumb a:hover {
  opacity: 1;
  color: #e8b73f;
}

.narticle-crumb__sep {
  opacity: 0.35;
  color: #002051;
}

.narticle-crumb__current {
  color: #1f1f1f;
  opacity: 0.85;
  max-width: 100%;
}

.narticle-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.narticle-hero__pill-muted {
  border-color: #cfcfcf;
  color: #666;
}

.narticle-hero__title {
  text-align: left;
  margin: 0 0 24px;
  max-width: 1500px;
}

.narticle-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  /* Same column width as .narticle-main (1fr of 1fr + 0.4fr, gap 48px). */
  width: 100%;
  max-width: calc((100% - 48px) * (1 / 1.4));
  box-sizing: border-box;
  margin-bottom: 0;
}

.narticle-hero__meta .nblog-author {
  margin-bottom: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.narticle-hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-left: auto;
  font-size: 0.9rem;
  opacity: 0.7;
  flex: 0 0 auto;
}

.narticle-hero__facts span + span,
.narticle-hero__facts time + span {
  position: relative;
}

/* Layout: photo + aside start on the same row */
.narticle-layout {
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 40px 48px;
  align-items: start;
  margin-top: 28px;
  margin-bottom: 72px;
}

.narticle-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.narticle-hero__media {
  margin: 0;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 16 / 9;
}

.narticle-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.narticle-body {
  font-size: 1.125rem;
  line-height: 165%;
}

.narticle-body > *:first-child {
  margin-top: 0;
}

.narticle-body h2,
.narticle-body h2.narticle-body__heading {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 125%;
  margin: 2em 0 0.65em;
  color: #002051;
}

.narticle-body h3,
.narticle-body h3.narticle-body__heading {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 130%;
  margin: 1.6em 0 0.55em;
}

.narticle-body h2,
.narticle-body h3,
.narticle-body .narticle-body__heading {
  scroll-margin-top: 110px;
}

.narticle-body p {
  margin: 0 0 1.15em;
}

.narticle-body ul,
.narticle-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.narticle-body li {
  margin: 0 0 0.45em;
  list-style: inherit;
}

.narticle-body a {
  color: #002051;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.narticle-body a:hover {
  color: #e8b73f;
}

.narticle-body img,
.narticle-body .wp-block-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.narticle-body .wp-block-image,
.narticle-body figure {
  margin: 1.5em 0;
  max-width: 100%;
}

/* Full-width embeds / video */
.narticle-body iframe,
.narticle-body video,
.narticle-body .wp-block-embed,
.narticle-body .wp-block-video,
.narticle-body .wp-video,
.narticle-body .fb-video {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 1.5em 0;
}

.narticle-body .wp-block-embed__wrapper,
.narticle-body .wp-block-embed {
  position: relative;
  width: 100%;
}

.narticle-body iframe {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  height: auto !important;
  border: 0;
  border-radius: 16px;
}

.narticle-body blockquote {
  margin: 1.5em 0;
  padding: 18px 22px;
  border-left: 4px solid #e8b73f;
  background: #f2f2f2;
  border-radius: 0 12px 12px 0;
}

/* CTA */
.narticle-cta {
  padding: 28px 32px;
  border-radius: 24px;
  background: #002051;
  color: #fff;
}

.narticle-cta__title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 130%;
  margin: 0 0 10px;
}

.narticle-cta__text {
  margin: 0 0 18px;
  opacity: 0.9;
  line-height: 150%;
}

.narticle-cta .btn {
  background: #e8b73f;
  color: #002051;
}

.narticle-cta .btn:hover {
  background: #fff;
  color: #002051;
}

/* Author card */
.narticle-author-card {
  padding: 28px 32px;
  border-radius: 24px;
  background: #f2f2f2;
}

.narticle-author-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8b73f;
  margin: 0 0 16px;
}

.narticle-author-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.nblog-author__avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 0.95rem;
}

.narticle-author-card__name {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 125%;
  margin: 0;
}

.narticle-author-card__role {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 4px 0 0;
}

.narticle-author-card__bio {
  margin: 0;
  line-height: 150%;
  opacity: 0.9;
}

/* Aside */
.narticle-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.narticle-aside__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: #002051;
}

.narticle-toc,
.narticle-prev,
.narticle-aside-box {
  padding: 22px;
  border-radius: 24px;
  background: #f2f2f2;
}

.narticle-toc__list,
.narticle-prev__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.narticle-toc__item {
  margin: 0 0 10px;
}

.narticle-toc__item:last-child {
  margin-bottom: 0;
}

.narticle-toc__item a {
  display: block;
  font-size: 0.9rem;
  line-height: 135%;
  color: #1f1f1f;
  opacity: 0.8;
}

.narticle-toc__item a:hover,
.narticle-toc__item.is-active a {
  color: #002051;
  opacity: 1;
  font-weight: 600;
}

.narticle-toc__item--h3 {
  padding-left: 12px;
}

/* Previous articles */
.narticle-prev__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.narticle-prev__item a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 32, 81, 0.1);
}

.narticle-prev__item:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}

.narticle-prev__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #e8e8e8;
}

.narticle-prev__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.narticle-prev__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.narticle-prev__topic {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #002051;
  opacity: 0.65;
}

.narticle-prev__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 130%;
  color: #1f1f1f;
}

.narticle-prev__item a:hover .narticle-prev__name {
  color: #002051;
}

.narticle-prev__meta {
  font-size: 0.8rem;
  opacity: 0.65;
}

.narticle-aside-box__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.narticle-aside-box__pills .slug-title {
  margin-bottom: 0;
}

.narticle-aside-box__all {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: #002051;
  font-size: 0.95rem;
}

.narticle-aside-box__all:hover {
  color: #e8b73f;
}

.narticle-aside-box--soft {
  background: #002051;
  color: #fff;
}

.narticle-aside-box--soft .narticle-aside__title {
  color: #fff;
}

.narticle-aside-box__text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0 0 16px;
  line-height: 145%;
}

/* Newsletter form (same CF7 as blog) — compact in aside */
.narticle-subscribe .nissz-form--newsletter .nblog-subscribe__row,
.narticle-subscribe .nblog-subscribe__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  max-width: none;
}

.narticle-subscribe input[type="email"] {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.narticle-subscribe input.wpcf7-submit,
.narticle-subscribe input[type="submit"] {
  width: 100% !important;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  background: #e8b73f !important;
  color: #002051 !important;
  cursor: pointer;
}

.narticle-subscribe input.wpcf7-submit:hover,
.narticle-subscribe input[type="submit"]:hover {
  background: #fff !important;
}

.narticle-subscribe .nblog-subscribe__consent,
.narticle-subscribe .wpcf7-acceptance {
  font-size: 0.75rem;
  line-height: 140%;
  opacity: 0.85;
  color: #fff;
}

.narticle-subscribe .wpcf7-response-output {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  margin: 10px 0 0;
}

/* Related */
.narticle-related {
  padding-top: 48px;
  border-top: 1px solid rgba(0, 32, 81, 0.08);
}

.narticle-related__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin: 0 0 28px;
  line-height: 120%;
}

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

/* Local card / author primitives (article page may not load blog CSS) */
.narticle .nblog-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.narticle .nblog-author__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #002051;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.narticle .nblog-author__name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 130%;
}

.narticle .nblog-author__role {
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 130%;
}

.narticle .nblog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.narticle .nblog-card:hover {
  box-shadow: 0 12px 28px rgba(0, 32, 81, 0.12);
  transform: translateY(-2px);
}

.narticle .nblog-card__media {
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
  overflow: hidden;
}

.narticle .nblog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.narticle .nblog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 24px;
}

.narticle .nblog-card__meta {
  font-size: 0.8rem;
  opacity: 0.65;
  margin: 0 0 8px;
}

.narticle .nblog-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 130%;
  margin: 0 0 10px;
}

.narticle .nblog-card__excerpt {
  font-size: 0.95rem;
  line-height: 145%;
  opacity: 0.85;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media screen and (max-width: 1100px) {
  .narticle-layout {
    grid-template-columns: 1fr 0.45fr;
    gap: 32px;
  }

  .narticle-hero__meta {
    max-width: calc((100% - 32px) * (1 / 1.45));
  }
}

@media screen and (max-width: 960px) {
  .narticle-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .narticle-hero__meta {
    max-width: 100%;
  }

  .narticle-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .narticle-toc,
  .narticle-subscribe {
    grid-column: 1 / -1;
  }

  .narticle-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1080px) {
  .narticle {
    padding: 150px 0 96px;
  }
}

@media screen and (max-width: 880px) {
  .narticle-body h2,
  .narticle-body h2.narticle-body__heading {
    margin: 16px 0;
  }
}

@media screen and (max-width: 680px) {
  .narticle {
    padding: 150px 0 56px;
  }

  .narticle-hero__title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .narticle-hero__media {
    border-radius: 16px;
  }

  .narticle-main {
    gap: 28px;
  }

  .narticle-body {
    font-size: 1.05rem;
  }

  .narticle-aside {
    grid-template-columns: 1fr;
  }

  .narticle-cta,
  .narticle-author-card,
  .narticle-toc,
  .narticle-prev,
  .narticle-aside-box {
    padding: 20px 18px;
  }

  .narticle-related {
    margin-top: 8px;
  }

  .narticle-related__title {
    margin-bottom: 20px;
  }

  .narticle-related__grid {
    grid-template-columns: 1fr;
  }
}
