/**
 * Resources pages — CSS hero + icon-led document/cert cards.
 * No stock / GPT photo dependency.
 */

body.make-site .nw-resource-page {
  --nw-res-line: rgba(215, 224, 236, 0.95);
  --nw-res-ink: #1a2b42;
  --nw-res-muted: #5a6575;
  --nw-res-soft: #f5f7fb;
}

/* —— Hero (no photo) —— */
body.make-site .nw-resource-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, #e8eefc 0%, transparent 55%),
    linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--nw-res-line);
}

body.make-site .nw-resource-hero__inner {
  padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 3.5vw, 44px);
  max-width: var(--nw-inner-max, 1440px);
}

body.make-site .nw-resource-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0 0 22px;
  font-size: var(--nw-fs-meta);
  color: #7a8aa5;
}

body.make-site .nw-resource-hero__crumb a {
  color: #5d7396;
  text-decoration: none;
}

body.make-site .nw-resource-hero__crumb a:hover {
  color: var(--main-color);
}

body.make-site .nw-resource-hero__crumb .icon {
  font-size: var(--nw-fs-secondary);
  opacity: 0.7;
}

body.make-site .nw-resource-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size:var(--nw-fs-meta);
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--main-color);
}

body.make-site .nw-resource-hero__kicker > span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

body.make-site .nw-resource-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 550;
  letter-spacing: -1.6px;
  line-height: 1.12;
  color: var(--nw-res-ink);
}

body.make-site .nw-resource-hero__lead {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: var(--nw-fs-body);
  line-height: 1.65;
  color: var(--nw-res-muted);
}

body.make-site .nw-resource-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

body.make-site .nw-resource-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--nw-res-line);
  border-radius: 999px;
  background: #fff;
  color: #3d5277;
  font-size: var(--nw-fs-meta);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.make-site .nw-resource-nav__link:hover {
  border-color: #c5d0e8;
  color: var(--main-color);
}

body.make-site .nw-resource-nav__link.is-active {
  border-color: transparent;
  background: var(--main-color);
  color: #fff;
}

/* —— Section —— */
body.make-site .nw-resource-section {
  padding-block: clamp(40px, 5vw, 72px);
}

body.make-site .nw-resource-section .container {
  max-width: var(--nw-inner-max, 1440px);
}

body.make-site .nw-resource-note {
  margin: 28px 0 0;
  max-width: 70ch;
  font-size: var(--nw-fs-meta);
  line-height: 1.7;
  color: #7a8aa5;
}

/* —— Download document cards —— */
body.make-site .nw-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.make-site .nw-doc-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--nw-res-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.make-site .nw-doc-card:hover {
  border-color: #c9d5ec;
  box-shadow: 0 10px 28px rgba(32, 55, 110, 0.06);
  transform: translateY(-1px);
}

body.make-site .nw-doc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.make-site .nw-doc-card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(160deg, #eef3ff 0%, #f5f7fb 100%);
  color: var(--main-color);
  font-size: 24px;
  line-height: 1;
}

body.make-site .nw-doc-card__format {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  background: #f0f3f9;
  color: #5d7396;
  font-size:var(--nw-fs-meta);
  font-weight: 650;
  letter-spacing: 0.8px;
}

body.make-site .nw-doc-card h3 {
  margin: 16px 0 0;
  font-size: var(--nw-fs-lead);
  font-weight: 550;
  letter-spacing: -0.3px;
  line-height: 1.35;
  color: var(--nw-res-ink);
}

body.make-site .nw-doc-card h3 a {
  color: inherit;
  text-decoration: none;
}

body.make-site .nw-doc-card h3 a:hover {
  color: var(--main-color);
}

body.make-site .nw-doc-card p {
  margin: 8px 0 0;
  flex: 1 1 auto;
  font-size: var(--nw-fs-secondary);
  line-height: 1.65;
  color: var(--nw-res-muted);
}

body.make-site .nw-doc-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: var(--nw-fs-secondary);
  font-weight: 550;
  color: var(--main-color);
  text-decoration: none;
}

body.make-site .nw-doc-card__action .icon {
  font-size: var(--nw-fs-body);
  transition: transform 0.2s ease;
}

body.make-site .nw-doc-card:hover .nw-doc-card__action .icon {
  transform: translateY(1px);
}

/* —— Certification cards —— */
body.make-site .nw-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.make-site .nw-cert-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 22px 22px;
  border: 1px solid var(--nw-res-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.make-site .nw-cert-card:hover {
  border-color: #c9d5ec;
  box-shadow: 0 10px 28px rgba(32, 55, 110, 0.06);
}

body.make-site .nw-cert-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--main-color);
  font-size: 22px;
  line-height: 1;
}

body.make-site .nw-cert-card h3 {
  margin: 18px 0 0;
  font-size: var(--nw-fs-lead);
  font-weight: 550;
  letter-spacing: -0.3px;
  line-height: 1.35;
  color: var(--nw-res-ink);
}

body.make-site .nw-cert-card p {
  margin: 8px 0 0;
  font-size: var(--nw-fs-secondary);
  line-height: 1.65;
  color: var(--nw-res-muted);
}

@media (max-width: 980px) {
  body.make-site .nw-doc-grid {
    grid-template-columns: 1fr;
  }
  body.make-site .nw-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Downloads library (layout only; type stays on the resource scale) —— */
body.make-site .nw-dl-head,
body.make-site .nw-dl-subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
}

body.make-site .nw-dl-head {
  margin-bottom: 28px;
}

body.make-site .nw-dl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size:var(--nw-fs-meta);
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--main-color);
}

body.make-site .nw-dl-kicker > span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

body.make-site .nw-dl-head h2,
body.make-site .nw-dl-subhead h2,
body.make-site .nw-dl-support h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 550;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--nw-res-ink);
}

body.make-site .nw-dl-lead,
body.make-site .nw-dl-support p {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: var(--nw-fs-body);
  line-height: 1.65;
  color: var(--nw-res-muted);
}

body.make-site .nw-dl-head .nw-resource-nav,
body.make-site .nw-dl-anchors {
  margin-top: 0;
  flex: none;
  justify-content: flex-end;
}

body.make-site .nw-dl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.make-site .nw-dl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.make-site .nw-dl-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--nw-res-line);
  border-radius: 999px;
  background: #fff;
  color: #3d5277;
  font-size: var(--nw-fs-meta);
  font-weight: 500;
  cursor: pointer;
}

body.make-site .nw-dl-filters button span {
  color: #8aa0c0;
  font-size: var(--nw-fs-meta);
}

body.make-site .nw-dl-filters button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--main-color);
  color: #fff;
}

body.make-site .nw-dl-filters button[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.78);
}

body.make-site .nw-dl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 280px);
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--nw-res-line);
  border-radius: 999px;
  background: #fff;
  color: #7a8aa5;
}

body.make-site .nw-dl-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--nw-res-ink);
  font-size: var(--nw-fs-secondary);
}

body.make-site .nw-dl-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 18px 0 0;
  font-size: var(--nw-fs-meta);
  color: #7a8aa5;
}

body.make-site .nw-dl-group {
  margin-top: 36px;
}

body.make-site .nw-dl-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.make-site .nw-dl-group-head h3 {
  margin: 0;
  font-size: var(--nw-fs-title);
  font-weight: 550;
  letter-spacing: -0.3px;
  color: var(--nw-res-ink);
}

body.make-site .nw-dl-group-head span,
body.make-site .nw-dl-product__copy p,
body.make-site .nw-dl-row p {
  font-size: var(--nw-fs-secondary);
  line-height: 1.6;
  color: var(--nw-res-muted);
}

body.make-site .nw-dl-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.make-site .nw-dl-product,
body.make-site .nw-dl-row {
  min-width: 0;
  border: 1px solid var(--nw-res-line);
  border-radius: 10px;
  background: #fff;
}

body.make-site .nw-dl-product__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  background: #f3f5f9;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

body.make-site .nw-dl-product__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body.make-site .nw-dl-product__visual .nw-doc-card__format {
  position: absolute;
  top: 12px;
  right: 12px;
}

body.make-site .nw-dl-product__copy {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
}

body.make-site .nw-dl-product__copy h3,
body.make-site .nw-dl-row h3 {
  margin: 0;
  font-size: var(--nw-fs-title);
  font-weight: 550;
  letter-spacing: -0.3px;
  line-height: 1.35;
  color: var(--nw-res-ink);
}

body.make-site .nw-dl-product__copy h3 a,
body.make-site .nw-dl-row h3 a {
  color: inherit;
  text-decoration: none;
}

body.make-site .nw-dl-product__copy h3 a:hover,
body.make-site .nw-dl-row h3 a:hover {
  color: var(--main-color);
}

body.make-site .nw-dl-product__copy p,
body.make-site .nw-dl-row p {
  margin: 8px 0 0;
}

body.make-site .nw-dl-subhead {
  margin-bottom: 16px;
}

body.make-site .nw-dl-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.make-site .nw-dl-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

body.make-site .nw-dl-row__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--main-color);
  text-decoration: none;
}

body.make-site .nw-dl-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--main-color);
  font-size: var(--nw-fs-secondary);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

body.make-site .nw-dl-empty {
  margin-top: 28px;
  padding: 28px 8px 8px;
}

body.make-site .nw-dl-empty h3 {
  margin: 0;
  font-size: var(--nw-fs-title);
  font-weight: 550;
  color: var(--nw-res-ink);
}

body.make-site .nw-dl-empty p {
  margin: 8px 0 0;
  font-size: var(--nw-fs-secondary);
  color: var(--nw-res-muted);
}

body.make-site .nw-dl-empty button {
  margin-top: 16px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--nw-res-line);
  border-radius: 999px;
  background: #fff;
  color: #3d5277;
  font-size: var(--nw-fs-meta);
  cursor: pointer;
}

body.make-site .nw-dl-support {
  background: var(--nw-res-soft);
  border-top: 1px solid var(--nw-res-line);
}

body.make-site .nw-dl-support__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  padding-block: clamp(40px, 5vw, 72px);
  max-width: var(--nw-inner-max, 1440px);
}

body.make-site .nw-dl-support__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: none;
}

body.make-site .nw-dl .is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  body.make-site .nw-dl-products {
    grid-template-columns: 1fr;
  }
  body.make-site .nw-dl-head,
  body.make-site .nw-dl-subhead,
  body.make-site .nw-dl-support__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body.make-site .nw-resource-hero h1 {
    max-width: none;
    letter-spacing: -1px;
  }
  body.make-site .nw-dl-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  body.make-site .nw-dl-row .nw-doc-card__format {
    display: none;
  }
  body.make-site .nw-cert-grid {
    grid-template-columns: 1fr;
  }
  body.make-site .nw-resource-nav {
    margin-top: 22px;
  }
}
