/* NA Science & Sourcing — long-form Our Method page.
   Editorial Scandinavian, restrained, AI-friendly structure. 1rem = 10px. */

.nss {
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
}
.nss__inner {
  max-width: var(--page-width, 120rem);
  margin: 0 auto;
  padding: 0 clamp(2rem, 4vw, 5rem);
}
.nss__eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 1.4rem;
  color: rgba(var(--color-foreground), 0.62);
}

/* ------------------------------------------------------------------
   1) Hero
   ------------------------------------------------------------------ */
.nss-hero {
  padding: clamp(7rem, 10vw, 12rem) 0 clamp(5rem, 7vw, 8rem);
  border-bottom: 1px solid rgba(var(--color-foreground), 0.12);
}
.nss-hero__inner { max-width: 80ch; }
.nss-hero__heading {
  font-family: var(--font-heading-family);
  font-style: var(--font-heading-style);
  font-weight: var(--font-heading-weight);
  font-size: clamp(3.2rem, 5vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 2rem;
}
.nss-hero__intro {
  font-size: clamp(1.6rem, 1.85vw, 1.95rem);
  line-height: 1.6;
  margin: 0;
  color: rgba(var(--color-foreground), 0.78);
  max-width: 60ch;
}

/* ------------------------------------------------------------------
   2) Generic block (principles, sourcing, compliance)
   ------------------------------------------------------------------ */
.nss-block {
  padding: clamp(5rem, 7vw, 9rem) 0;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.12);
}
.nss-block__head { max-width: 64ch; margin: 0 0 clamp(3rem, 4vw, 4.6rem); }
.nss-block__heading {
  font-family: var(--font-heading-family);
  font-style: var(--font-heading-style);
  font-weight: var(--font-heading-weight);
  font-size: clamp(2.6rem, 3.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 1.6rem;
}
.nss-block__intro {
  font-size: clamp(1.5rem, 1.7vw, 1.75rem);
  line-height: 1.6;
  margin: 0;
  color: rgba(var(--color-foreground), 0.78);
}
.nss-block__body {
  font-size: 1.5rem;
  line-height: 1.75;
  max-width: 70ch;
  color: rgba(var(--color-foreground), 0.84);
}
.nss-block__body p { margin: 0 0 1.4rem; }
.nss-block__body p:last-child { margin-bottom: 0; }
.nss-block__note {
  margin-top: 2rem;
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(var(--color-foreground), 0.62);
  max-width: 60ch;
}

/* Principles grid */
.nss-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 2.6vw, 3.2rem) clamp(3rem, 5vw, 6rem);
}
@media screen and (max-width: 749px) {
  .nss-principles { grid-template-columns: 1fr; }
}
.nss-principle {
  border-top: 1px solid rgba(var(--color-foreground), 0.18);
  padding: clamp(1.8rem, 2.4vw, 2.4rem) 0 0;
}
.nss-principle__num {
  font-family: var(--font-heading-family);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: rgba(var(--color-foreground), 0.45);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
}
.nss-principle__title {
  font-family: var(--font-heading-family);
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  line-height: 1.18;
  margin: 0 0 1rem;
}
.nss-principle__text {
  font-size: 1.4rem;
  line-height: 1.65;
  margin: 0;
  color: rgba(var(--color-foreground), 0.78);
}

/* Evidence table */
.nss-evidence {
  display: grid;
  grid-template-columns: 18rem 1fr 1fr;
  border-top: 1px solid rgba(var(--color-foreground), 0.2);
}
@media screen and (max-width: 749px) {
  .nss-evidence { grid-template-columns: 1fr; }
  .nss-evidence__head { display: none; }
}
.nss-evidence__cell {
  padding: clamp(1.6rem, 2vw, 2rem) clamp(1.6rem, 2vw, 2.2rem);
  border-bottom: 1px solid rgba(var(--color-foreground), 0.18);
  border-right: 1px solid rgba(var(--color-foreground), 0.12);
  font-size: 1.4rem;
  line-height: 1.55;
}
@media screen and (max-width: 749px) {
  .nss-evidence__cell { border-right: 0; padding-left: 0; padding-right: 0; }
  .nss-evidence__cell--type { font-weight: 600; }
}
.nss-evidence__cell:last-child,
.nss-evidence__row > .nss-evidence__cell:nth-child(3n) { border-right: 0; }
.nss-evidence__head {
  display: contents;
}
.nss-evidence__head .nss-evidence__cell {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(var(--color-foreground), 0.6);
  background: rgba(var(--color-foreground), 0.02);
}
.nss-evidence__cell--type {
  font-family: var(--font-heading-family);
  font-size: 1.5rem;
}

/* Product-page lenses (Origin / Structure / Research / Routine) */
.nss-lenses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 2.6vw, 3.2rem);
}
@media screen and (max-width: 989px) { .nss-lenses { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 599px) { .nss-lenses { grid-template-columns: 1fr; } }
.nss-lens {
  border-top: 1px solid rgba(var(--color-foreground), 0.18);
  padding: clamp(1.8rem, 2.4vw, 2.4rem) 0 0;
}
.nss-lens__label {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(var(--color-foreground), 0.55);
  display: block;
  margin-bottom: 1rem;
}
.nss-lens__text {
  font-size: 1.4rem;
  line-height: 1.65;
  margin: 0;
  color: rgba(var(--color-foreground), 0.84);
}

/* FAQ */
.nss-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(var(--color-foreground), 0.18);
}
.nss-faq__item {
  border-bottom: 1px solid rgba(var(--color-foreground), 0.18);
}
.nss-faq__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.8rem, 2.4vw, 2.4rem) 0;
  font-family: var(--font-heading-family);
  font-style: var(--font-heading-style);
  font-weight: var(--font-heading-weight);
  font-size: clamp(1.6rem, 1.85vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.nss-faq__summary::-webkit-details-marker { display: none; }
.nss-faq__icon {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nss-faq__icon::before,
.nss-faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.nss-faq__icon::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.nss-faq__icon::after  { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.nss-faq__item[open] .nss-faq__icon::after { opacity: 0; }
.nss-faq__item[open] .nss-faq__icon { transform: rotate(180deg); }
.nss-faq__answer {
  font-size: 1.45rem;
  line-height: 1.7;
  margin: 0;
  padding: 0 0 clamp(1.8rem, 2.4vw, 2.4rem);
  color: rgba(var(--color-foreground), 0.82);
  max-width: 70ch;
}
.nss-faq__answer p { margin: 0 0 1.2rem; }
.nss-faq__answer p:last-child { margin-bottom: 0; }

/* Last block has no border */
.nss-block--last { border-bottom: 0; }

/* ------------------------------------------------------------------
   Sourcing-specific: process timeline + criteria list
   ------------------------------------------------------------------ */
.nss-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid rgba(var(--color-foreground), 0.18);
}
@media screen and (max-width: 989px) { .nss-process { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 599px) { .nss-process { grid-template-columns: 1fr; } }

.nss-step {
  padding: clamp(2rem, 2.6vw, 3rem) clamp(1.6rem, 2.4vw, 2.8rem) clamp(2rem, 2.6vw, 3rem) 0;
  border-right: 1px solid rgba(var(--color-foreground), 0.12);
  position: relative;
}
.nss-process > .nss-step:last-child { border-right: 0; }
@media screen and (max-width: 989px) {
  .nss-step:nth-child(2n) { border-right: 0; }
  .nss-step:nth-child(-n+2) { border-bottom: 1px solid rgba(var(--color-foreground), 0.12); }
}
@media screen and (max-width: 599px) {
  .nss-step { border-right: 0; padding-right: 0; }
  .nss-step:not(:last-child) { border-bottom: 1px solid rgba(var(--color-foreground), 0.12); }
}
.nss-step__num {
  font-family: var(--font-heading-family);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--color-foreground), 0.45);
  display: block;
  margin-bottom: 1.2rem;
}
.nss-step__title {
  font-family: var(--font-heading-family);
  font-size: clamp(1.7rem, 1.85vw, 2rem);
  line-height: 1.18;
  margin: 0 0 0.9rem;
}
.nss-step__text {
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(var(--color-foreground), 0.78);
}

/* Criteria list — restrained editorial bullets without icons */
.nss-criteria {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(var(--color-foreground), 0.18);
}
@media screen and (max-width: 749px) { .nss-criteria { grid-template-columns: 1fr; } }

.nss-criterion {
  padding: clamp(1.6rem, 2vw, 2rem) clamp(1.4rem, 2vw, 2.4rem) clamp(1.6rem, 2vw, 2rem) 0;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.12);
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: clamp(1.4rem, 2vw, 2rem);
}
.nss-criterion:nth-child(2n) { padding-right: 0; }
@media screen and (min-width: 750px) {
  .nss-criterion:nth-child(odd) { border-right: 1px solid rgba(var(--color-foreground), 0.12); padding-right: clamp(1.6rem, 2.4vw, 2.8rem); }
}
@media screen and (max-width: 549px) {
  .nss-criterion { grid-template-columns: 1fr; gap: 0.6rem; }
}
.nss-criterion__label {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(var(--color-foreground), 0.55);
  padding-top: 0.3rem;
}
.nss-criterion__title {
  font-family: var(--font-heading-family);
  font-size: clamp(1.55rem, 1.7vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
.nss-criterion__text {
  font-size: 1.35rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(var(--color-foreground), 0.78);
}

html[data-na-theme='dark'] .nss-process,
html[data-na-theme='dark'] .nss-step,
html[data-na-theme='dark'] .nss-criteria,
html[data-na-theme='dark'] .nss-criterion {
  border-color: rgba(246, 241, 235, 0.16) !important;
}

/* ------------------------------------------------------------------
   Dark mode hooks
   ------------------------------------------------------------------ */
html[data-na-theme='dark'] .nss-hero,
html[data-na-theme='dark'] .nss-block,
html[data-na-theme='dark'] .nss-principle,
html[data-na-theme='dark'] .nss-lens,
html[data-na-theme='dark'] .nss-evidence,
html[data-na-theme='dark'] .nss-evidence__cell,
html[data-na-theme='dark'] .nss-faq__list,
html[data-na-theme='dark'] .nss-faq__item {
  border-color: rgba(246, 241, 235, 0.16);
}
html[data-na-theme='dark'] .nss-evidence__head .nss-evidence__cell {
  background: rgba(246, 241, 235, 0.04);
}
