/* NRTR blog + resource pages — centered reading column, home-matching close CTAs, images */

.nrtr-content-article,
.nrtr-content-resource {
  color: var(--nrtr-text, #e8f0f5);
}

.nrtr-prose-wrap {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.nrtr-directory-inner {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.nrtr-directory-controls {
  margin: 1.35rem 0 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.nrtr-directory-search {
  position: relative;
}

.nrtr-directory-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 240, 245, 0.16);
  background: rgba(20, 25, 31, 0.72);
  color: var(--nrtr-text, #e8f0f5);
  font: inherit;
  font-size: 1rem;
}

.nrtr-directory-search input::placeholder {
  color: rgba(232, 240, 245, 0.45);
}

.nrtr-directory-search input:focus {
  outline: 2px solid rgba(173, 216, 230, 0.55);
  outline-offset: 2px;
}

.nrtr-directory-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: rgba(232, 240, 245, 0.55);
  pointer-events: none;
}

.nrtr-directory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nrtr-directory-chip {
  appearance: none;
  border: 1px solid rgba(232, 240, 245, 0.16);
  background: rgba(20, 25, 31, 0.55);
  color: rgba(232, 240, 245, 0.86);
  border-radius: 999px;
  min-height: 2.25rem;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nrtr-directory-chip:hover {
  border-color: rgba(173, 216, 230, 0.45);
}

.nrtr-directory-chip.is-active {
  background: rgba(173, 216, 230, 0.16);
  border-color: rgba(173, 216, 230, 0.55);
  color: #add8e6;
}

.nrtr-directory-meta {
  margin: 0;
  color: var(--nrtr-muted, rgba(232, 240, 245, 0.62));
  font-size: 0.92rem;
}

.nrtr-directory-empty {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 240, 245, 0.12);
  background: rgba(20, 25, 31, 0.55);
  color: var(--nrtr-muted, rgba(232, 240, 245, 0.62));
}

.nrtr-byline,
.nrtr-resource-meta,
.nrtr-muted-note,
.nrtr-card-meta {
  color: var(--nrtr-muted, rgba(232, 240, 245, 0.62));
  font-size: 0.95rem;
  margin: 0 0 1.35rem;
}

.nrtr-article-tags,
.nrtr-card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  padding: 0;
}

.nrtr-article-tags li,
.nrtr-card-tags li {
  margin: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(173, 216, 230, 0.22);
  background: rgba(173, 216, 230, 0.08);
  color: rgba(232, 240, 245, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nrtr-card-tags {
  margin: 0.65rem 0 0.35rem;
}

.nrtr-card-tags li {
  font-size: 0.68rem;
}

.nrtr-prose {
  line-height: 1.55;
  font-size: 1.05rem;
  color: #e8f0f5;
}

.nrtr-prose h1,
.nrtr-prose h2,
.nrtr-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.2;
  color: #e8f0f5;
  font-weight: 700;
}

/* Leftover body H1s (if any) should not inherit theme mega-title styles */
.nrtr-prose h1 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
}

.nrtr-prose h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

.nrtr-prose h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.nrtr-prose p,
.nrtr-prose ul,
.nrtr-prose ol {
  margin: 0 0 0.95rem;
  line-height: 1.55;
  color: rgba(232, 240, 245, 0.92);
}

.nrtr-prose hr {
  border: 0;
  border-top: 1px solid rgba(232, 240, 245, 0.14);
  margin: 1.5rem 0;
  height: 0;
  background: none;
  opacity: 1;
}

.nrtr-prose a {
  color: var(--nrtr-accent, #add8e6);
}

.nrtr-prose strong {
  color: var(--nrtr-text, #e8f0f5);
}

/* Inline article images */
.nrtr-prose figure.nrtr-figure,
.nrtr-prose .nrtr-figure {
  margin: 1.75rem 0;
  padding: 0;
}

.nrtr-prose img,
.nrtr-prose .nrtr-prose-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(232, 240, 245, 0.12);
  background: rgba(20, 25, 31, 0.55);
}

.nrtr-prose figcaption,
.nrtr-prose .nrtr-figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--nrtr-muted, rgba(232, 240, 245, 0.62));
  text-align: center;
}

.nrtr-resource-cta {
  margin: 2rem auto;
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid rgba(232, 240, 245, 0.12);
  border-radius: 14px;
  background: rgba(20, 25, 31, 0.55);
  max-width: 100%;
}

.nrtr-cta-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.25;
  color: var(--nrtr-text, #e8f0f5);
}

.nrtr-cta-desc {
  margin: 0;
  color: var(--nrtr-muted, rgba(232, 240, 245, 0.62));
  font-size: 0.98rem;
  line-height: 1.5;
}

#nrtr-content .nrtr-cta--primary,
.nrtr-resource-cta .nrtr-cta--primary,
.nrtr-ch--close .nrtr-cta--primary {
  background: #e8f0f5 !important;
  color: #0c0f12 !important;
}

#nrtr-content .nrtr-cta--primary:hover,
.nrtr-resource-cta .nrtr-cta--primary:hover,
.nrtr-ch--close .nrtr-cta--primary:hover {
  color: #0c0f12 !important;
  opacity: 0.92;
}

/* Close CTAs: full width of the headline measure */
#nrtr-content .nrtr-ch--close .nrtr-cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 20em;
  margin-left: auto;
  margin-right: auto;
  gap: 0.65rem;
}

#nrtr-content .nrtr-ch--close .nrtr-cta-row .nrtr-cta {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

.nrtr-resource-cta .nrtr-cta-row {
  justify-content: flex-start;
  margin-bottom: 0;
}

.nrtr-highlights {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: rgba(232, 240, 245, 0.88);
}

.nrtr-pdf-viewer {
  margin: 1rem 0 2rem;
  border: 1px solid rgba(232, 240, 245, 0.12);
  border-radius: 14px;
  background: rgba(20, 25, 31, 0.55);
  overflow: hidden;
}

.nrtr-pdf-viewer object {
  display: block;
  min-height: 720px;
  background: #111;
}

.nrtr-references {
  margin-top: 2.5rem;
}

.nrtr-references h2 {
  margin-bottom: 0.75rem;
  color: var(--nrtr-text, #e8f0f5);
}

.nrtr-references ol {
  padding-left: 1.2rem;
  color: var(--nrtr-text, #e8f0f5);
}

.nrtr-content-grid {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.nrtr-content-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 240, 245, 0.12);
  background: rgba(20, 25, 31, 0.55);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nrtr-content-grid a:hover {
  border-color: rgba(173, 216, 230, 0.45);
  background: rgba(20, 25, 31, 0.8);
}

.nrtr-content-grid .nrtr-kicker {
  margin: 0;
}

.nrtr-content-grid h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.3;
  color: var(--nrtr-text, #e8f0f5);
}

.nrtr-content-grid p {
  margin: 0;
  color: var(--nrtr-muted, rgba(232, 240, 245, 0.62));
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 749px) {
  .nrtr-content-grid {
    grid-template-columns: 1fr;
  }
  .nrtr-pdf-viewer object {
    min-height: 480px;
  }
}
