.nx-resource-empty {
  max-width: 36rem;
  padding: 1.5rem 1.25rem;
  border: 1px dashed var(--nx-border);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-surface);
}

.nx-resource-empty i {
  font-size: 1.75rem;
  color: var(--nx-muted);
}

.nx-resource-empty p {
  margin: 0.65rem 0 0;
  color: var(--nx-text);
}

:root {
  --nx-header-h: 68px;
}

.nx-page-inner {
  width: 100%;
  margin: 0;
  padding-inline: clamp(20px, 4vw, 72px);
}

body:has(.nx-res) .nx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* —— Resources hub —— */
.nx-res {
  --nx-res-green: #8ee53f;
  --nx-res-green-deep: #8ee53f;
  --nx-res-green-text: #8ee53f;
  --nx-res-blue: #1e90ff;
  --nx-res-on-green: #10210a;
  --nx-res-ink: #12284a;
  --nx-res-muted: #5d6d7e;
  --nx-res-card: #ffffff;
  --nx-res-soft: rgba(142, 229, 63, 0.22);
  padding: calc(var(--nx-header-h) + 0.5rem) 0 0;
  background:
    radial-gradient(820px 380px at 92% 0%, rgba(142, 229, 63, 0.34), transparent 68%),
    radial-gradient(640px 320px at 0% 8%, rgba(30, 144, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #f6fdec 0%, #f8fcf6 46%, #ffffff 100%);
  color: var(--nx-res-ink);
}

.nx-res-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-res-blue);
}

.nx-res-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 460px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 1.75rem 0 2.25rem;
}

.nx-res-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.4rem, 5vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--nx-res-blue);
}

.nx-res-hero h1 span {
  color: var(--nx-res-green);
}

.nx-res-lead,
.nx-res-feed-lead,
.nx-res-hub p,
.nx-res-feature-body p,
.nx-res-cta p {
  color: var(--nx-res-muted);
  line-height: 1.6;
}

.nx-res-lead {
  max-width: 34rem;
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
}

.nx-res-rule {
  display: block;
  width: 4.5rem;
  height: 3px;
  border-radius: 99px;
  background: var(--nx-res-blue);
}

.nx-res-collage {
  position: relative;
  height: 340px;
  margin-right: 0.5rem;
}

.nx-res-leaf {
  position: absolute;
  z-index: 0;
  background: #8ee53f;
  border-radius: 70% 30% 60% 40% / 40% 60% 40% 60%;
  pointer-events: none;
}

.nx-res-leaf--a {
  width: 86px;
  height: 150px;
  top: -18px;
  right: 8px;
  transform: rotate(24deg);
  opacity: 0.85;
}

.nx-res-leaf--b {
  width: 64px;
  height: 110px;
  right: 18px;
  bottom: 6px;
  background: #8ee53f;
  opacity: 0.35;
  transform: rotate(-18deg);
}

.nx-res-shot {
  position: absolute;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #d7eee2;
  box-shadow: 0 18px 40px rgba(16, 40, 74, 0.16);
}

.nx-res-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-res-shot--main {
  top: 18%;
  left: 0;
  width: 68%;
  height: 78%;
  transform: rotate(-7deg);
}

.nx-res-shot--side {
  top: 0;
  right: 6%;
  z-index: 2;
  width: 44%;
  height: 62%;
  transform: rotate(8deg);
}

.nx-res-shot--side img {
  object-position: center 18%;
}

.nx-res-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 20px rgba(16, 40, 74, 0.16);
}

.nx-res-badge--play {
  left: 7%;
  bottom: 6%;
  background: var(--nx-res-green);
}

.nx-res-badge--play i {
  margin-left: 2px;
}

.nx-res-badge--play,
.nx-res-badge--image,
.nx-res-hub-icon--green {
  color: var(--nx-res-on-green);
}

.nx-res-badge--chat {
  top: 4%;
  right: 0;
  background: var(--nx-res-blue);
}

.nx-res-badge--image {
  right: 2%;
  bottom: 27%;
  background: var(--nx-res-green);
}

.nx-res-hubs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  padding-bottom: 2.75rem;
}

.nx-res-hub {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--nx-res-card);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(16, 64, 40, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nx-res-hub:hover {
  transform: translateY(-3px);
  color: inherit;
  box-shadow: 0 18px 36px rgba(16, 64, 40, 0.12);
}

.nx-res-hub-media {
  position: relative;
  height: 148px;
}

.nx-res-hub-media img,
.nx-res-feature-media img,
.nx-res-mini-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-res-hub-icon {
  position: absolute;
  left: 1rem;
  bottom: -18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 16px rgba(16, 40, 74, 0.16);
}

.nx-res-hub-icon--blue {
  background: var(--nx-res-blue);
}

.nx-res-hub-icon--green {
  background: var(--nx-res-green);
  color: var(--nx-res-on-green);
}

.nx-res-hub-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem 1.15rem 1.2rem;
}

.nx-res-hub h2,
.nx-res-feature h3,
.nx-res-cta h3,
.nx-res-tags h3,
.nx-res-mini-title {
  color: var(--nx-res-blue);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nx-res-hub h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.nx-res-hub p {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.nx-res-explore,
.nx-res-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--nx-res-green-text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nx-res-hub:hover .nx-res-explore,
.nx-res-more:hover {
  gap: 0.45rem;
}

.nx-res-mini:hover .nx-res-mini-title {
  color: var(--nx-res-blue);
}

.nx-res-feed {
  padding: 2.6rem 0 4.25rem;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(142, 229, 63, 0.24), transparent 70%),
    linear-gradient(180deg, #f7fcee 0%, #f4f8ff 100%);
}

.nx-res-feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 1.35rem;
}

.nx-res-feed h2 {
  margin: 0 0 0.4rem;
  color: var(--nx-res-blue);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.nx-res-feed-lead {
  max-width: 30rem;
  margin: 0;
  font-size: 0.98rem;
}

.nx-res-tools {
  display: flex;
  flex: 1 1 440px;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.nx-res-search {
  position: relative;
  width: min(100%, 380px);
}

.nx-res-search i {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  color: #8aa0b3;
  transform: translateY(-50%);
  pointer-events: none;
}

.nx-res-search input {
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 2.55rem;
  border: 1px solid #e3ece7;
  border-radius: 999px;
  background: #fff;
  color: var(--nx-res-ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.nx-res-search input:focus {
  border-color: var(--nx-res-blue);
  box-shadow: 0 0 0 3px rgba(31, 157, 87, 0.16);
}

.nx-res-pills,
.nx-res-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nx-res-pills {
  justify-content: flex-end;
}

.nx-res-media-tags {
  margin: 0 0 1.75rem;
}

.nx-res .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nx-res-pill,
.nx-res-tag {
  border: 1px solid #e4eee8;
  border-radius: 999px;
  background: #fff;
  color: #3d5166;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.nx-res-pill {
  padding: 0.42rem 0.9rem;
}

.nx-res-pill:hover,
.nx-res-tag:hover {
  border-color: var(--nx-res-blue);
  color: var(--nx-res-blue);
}

.nx-res-pill.is-active {
  border-color: var(--nx-res-green);
  background: var(--nx-res-green);
  color: var(--nx-res-on-green);
}

.nx-res-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.92fr) minmax(220px, 0.72fr);
  grid-template-areas: "feature list aside";
  gap: 1.15rem;
  align-items: stretch;
}

.nx-res-feature { grid-area: feature; }
.nx-res-list { grid-area: list; }
.nx-res-aside { grid-area: aside; }

.nx-res-layout.is-feature-off {
  grid-template-areas: "list list aside";
}

.nx-res-layout.is-list-off {
  grid-template-areas: "feature feature aside";
}

.nx-res-layout.is-feature-off.is-list-off {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  grid-template-areas: "empty aside";
}

.nx-res-feature,
.nx-res-mini,
.nx-res-cta,
.nx-res-tags {
  background: var(--nx-res-card);
  box-shadow: 0 12px 30px rgba(16, 40, 74, 0.06);
}

.nx-res-feature {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
}

.nx-res-feature-media {
  position: relative;
  display: block;
  flex: 1 1 220px;
  min-height: 220px;
}

.nx-res-feature-media img {
  position: absolute;
  inset: 0;
}

.nx-res-chip {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: #fff;
  color: var(--nx-res-green-text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.nx-res-feature-body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.nx-res-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.nx-res-feature h3 a {
  color: inherit;
  text-decoration: none;
}

.nx-res-feature h3 a:hover {
  color: var(--nx-res-blue);
}

.nx-res-feature-body p {
  margin: 0;
  font-size: 0.95rem;
}

.nx-res-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.85rem;
  color: #7d8b99;
  font-size: 0.8rem;
}

.nx-res-meta i {
  margin-right: 0.15rem;
  vertical-align: -1px;
}

.nx-res-more {
  margin-top: 0.95rem;
}

.nx-res-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.nx-res-list:not(:has(.nx-res-mini[hidden])) .nx-res-mini {
  flex: 1 1 0;
}

.nx-res-layout.is-list-off .nx-res-list {
  display: none;
}

.nx-res-mini {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 118px;
  overflow: hidden;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
}

.nx-res-mini:hover {
  color: inherit;
}

.nx-res-mini-media {
  position: relative;
  display: block;
  min-height: 118px;
}

.nx-res-mini-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 0.9rem;
}

.nx-res-mini-title {
  font-size: 0.98rem;
  line-height: 1.3;
}

.nx-res-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.nx-res-cta {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(142, 229, 63, 0.28) 0%, rgba(142, 229, 63, 0.08) 100%);
}

.nx-res-leaf--cta {
  top: -28px;
  right: -12px;
  width: 92px;
  height: 130px;
  background: #8ee53f;
  opacity: 0.9;
  transform: rotate(28deg);
}

.nx-res-cta-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: #fff;
  color: var(--nx-res-green);
  font-size: 1.3rem;
}

.nx-res-cta h3,
.nx-res-cta p,
.nx-res-cta-btn {
  position: relative;
  z-index: 1;
}

.nx-res-cta h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.nx-res-cta p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.nx-res-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--nx-res-green);
  color: var(--nx-res-on-green);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nx-res-cta-btn:hover {
  background: var(--nx-res-blue);
  color: #fff;
}

.nx-res-tags {
  flex: 0 0 auto;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 22px;
}

.nx-res-tags h3 {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
}

.nx-res-tag {
  padding: 0.4rem 0.75rem;
  border: 0;
  background: var(--nx-res-soft);
  color: var(--nx-res-on-green);
}

.nx-res-tag.is-active {
  background: var(--nx-res-green);
  color: var(--nx-res-on-green);
}

.nx-res-empty {
  grid-area: empty;
  margin: 0;
  padding: 1.35rem 1.2rem;
  border-radius: 18px;
  background: var(--nx-res-card);
  color: var(--nx-res-muted);
  box-shadow: 0 12px 30px rgba(16, 40, 74, 0.06);
}

.nx-res [hidden] {
  display: none !important;
}

.nx-res-pill:focus-visible,
.nx-res-tag:focus-visible,
.nx-res-search input:focus-visible,
.nx-res-hub:focus-visible,
.nx-res-mini:focus-visible,
.nx-res-cta-btn:focus-visible,
.nx-res-more:focus-visible {
  outline: 2px solid var(--nx-res-blue);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .nx-res-hubs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nx-res-layout,
  .nx-res-layout.is-feature-off,
  .nx-res-layout.is-list-off {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    grid-template-areas:
      "feature feature"
      "list aside";
  }

  .nx-res-layout.is-feature-off {
    grid-template-areas: "list aside";
  }

  .nx-res-layout.is-list-off {
    grid-template-areas:
      "feature feature"
      "aside aside";
  }

  .nx-res-layout.is-feature-off.is-list-off {
    grid-template-areas: "empty aside";
  }
}

@media (max-width: 860px) {
  .nx-res-hero {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
  }

  .nx-res-collage {
    height: 280px;
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
  }

  .nx-res-feed-head {
    flex-direction: column;
    align-items: stretch;
  }

  .nx-res-tools,
  .nx-res-pills {
    align-items: stretch;
    justify-content: flex-start;
  }

  .nx-res-search {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .nx-res-hubs {
    grid-template-columns: 1fr;
  }

  .nx-res-layout,
  .nx-res-layout.is-feature-off,
  .nx-res-layout.is-list-off,
  .nx-res-layout.is-feature-off.is-list-off {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "list"
      "aside";
  }

  .nx-res-layout.is-feature-off {
    grid-template-areas: "list" "aside";
  }

  .nx-res-layout.is-list-off {
    grid-template-areas: "feature" "aside";
  }

  .nx-res-layout.is-feature-off.is-list-off {
    grid-template-areas: "empty" "aside";
  }

  .nx-res-feature-media {
    height: 200px;
  }
}

[data-theme="dark"] .nx-res {
  --nx-res-ink: #f4f7fb;
  --nx-res-muted: rgba(255, 255, 255, 0.72);
  --nx-res-card: #171c1a;
  --nx-res-soft: rgba(142, 229, 63, 0.16);
  --nx-res-green: #8ee53f;
  --nx-res-green-deep: #8ee53f;
  --nx-res-green-text: #8ee53f;
  --nx-res-blue: #1e90ff;
  --nx-res-on-green: #10210a;
  background:
    radial-gradient(820px 380px at 92% 0%, rgba(142, 229, 63, 0.16), transparent 68%),
    radial-gradient(520px 240px at 0% 0%, rgba(30, 144, 255, 0.12), transparent 70%),
    #0c1210;
}

[data-theme="dark"] .nx-res-feed {
  background: #101614;
}

[data-theme="dark"] .nx-res-search input,
[data-theme="dark"] .nx-res-pill {
  border-color: #2a3830;
  background: #1c2420;
  color: #f4f7fb;
}

[data-theme="dark"] .nx-res-pill.is-active,
[data-theme="dark"] .nx-res-tag.is-active,
[data-theme="dark"] .nx-res-cta-btn {
  background: var(--nx-res-green);
  border-color: var(--nx-res-green);
  color: var(--nx-res-on-green);
}

[data-theme="dark"] .nx-res-chip {
  background: #102018;
}

[data-theme="dark"] .nx-res-cta {
  background: linear-gradient(180deg, rgba(142, 229, 63, 0.18) 0%, rgba(142, 229, 63, 0.06) 100%);
}

[data-theme="dark"] .nx-res-cta-icon {
  background: #102018;
}

[data-theme="dark"] .nx-res-tag {
  color: #8ee53f;
}

a.nx-res-pill,
a.nx-res-tag {
  text-decoration: none;
}

.nx-res-tools form,
.nx-res-section-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.nx-res .nx-contact-hero {
  padding: 1.75rem 0 1.15rem;
}

.nx-res .nx-contact-badge {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--nx-res-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nx-res .nx-contact-hero h1 {
  margin: 0 0 0.6rem;
  color: var(--nx-res-blue);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.nx-res .nx-contact-hero p {
  max-width: 40rem;
  margin: 0;
  color: var(--nx-res-muted);
}

.nx-res-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-bottom: 2.5rem;
}

.nx-res-library .nx-res-mini {
  background: var(--nx-res-card);
  box-shadow: 0 12px 30px rgba(16, 40, 74, 0.06);
}

.nx-res-article {
  width: 100%;
  margin: 0;
  padding: 1.5rem 0 2.5rem;
}

.nx-res-article h1 {
  margin: 0.35rem 0 0.75rem;
  color: var(--nx-res-blue);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.nx-res-title-with-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 1.25rem;
  align-items: start;
}

.nx-res-title-with-thumb h1 {
  margin-top: 0.35rem;
}

.nx-res-title-thumb {
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 14px;
  background: var(--nx-res-soft);
  box-shadow: 0 10px 24px rgba(18, 40, 74, 0.1);
}

.nx-res-article .nx-player {
  margin: 1.5rem 0 2.25rem;
}

.nx-res-article .nx-prose {
  color: var(--nx-res-ink);
}

.nx-res-related {
  padding-bottom: 2.5rem;
}

.nx-res-related h2 {
  margin: 0 0 0.9rem;
  color: var(--nx-res-blue);
  font-size: 1.4rem;
}

@media (max-width: 680px) {
  .nx-res-library {
    grid-template-columns: 1fr;
  }

  .nx-res-title-with-thumb {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 0.85rem;
  }

  .nx-res-title-thumb {
    width: 82px;
    border-radius: 11px;
  }
}
