/*
  NASA SEWP VI page
  =================
  Built to the supplied design (TEC_NASA-SEWP-VI_05_082026.pdf). Colours were
  sampled straight out of that file and land on the site's own tokens:
  #29266f = --color-primary (hero and the dark bands), #6a4ee6 = --color-secondary
  (the purple cards), white everywhere else.

  Note on the section wrappers: tt-frontend.css drives .tt-section through custom
  properties - it applies `display:var(--display)` and derives padding from
  `--padding-*`. A section that never sets --display collapses to display:inline
  and renders at zero width, so the wrapper rules below set those properties
  rather than plain `display`/`padding`.

  The two full-bleed navy bands (contacts, ordering) sit outside that system on
  purpose: they are asymmetric - one inset from the right, one from the left,
  each with a single large rounded corner - which the boxed section wrapper
  cannot express.
*/

/* ---------- Hero ---------- */

.tt-sewp .tt-el.tt-sewp-hero {
  --display: flex;
  --flex-direction: column;
  --container-widget-width: 100%;
  --flex-wrap-mobile: wrap;
  --padding-top: 40px;
  --padding-bottom: 40px;
  --padding-left: 0px;
  --padding-right: 0px;
  --border-radius: 0px 0px 0px 180px;
}

.tt-sewp .tt-el.tt-sewp-hero:not(.tt-motion-effects-element-type-background) {
  background-color: var(--color-primary);
}

.tt-sewp .tt-el.tt-sewp-hero-inner {
  --display: flex;
  --flex-direction: column;
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
}

.tt-sewp .tt-sewp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.tt-sewp .tt-sewp-hero-copy { max-width: 520px; }

.tt-sewp .tt-sewp-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 6px;
}

.tt-sewp .tt-sewp-title {
  font-family: "Teko", sans-serif;
  font-size: 76px;
  font-weight: 400;
  line-height: 84px;
  letter-spacing: -1px;
  color: var(--color-white);
  margin: 0 0 14px;
}

.tt-sewp .tt-sewp-lede {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 27px;
  color: var(--color-white);
  margin: 0 0 28px;
}

/* Outlined pill, as drawn - not the site's solid cyan button. */
.tt-sewp .tt-sewp-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  padding: 14px 34px;
  transition: background-color .2s ease, color .2s ease;
}

.tt-sewp .tt-sewp-btn:hover,
.tt-sewp .tt-sewp-btn:focus-visible {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.tt-sewp .tt-sewp-hero-art { justify-self: center; }

/* The contract-holder badge is landscape, so it carries a wider box than the
   square artwork it replaced. Its background was made transparent, which is why
   it sits straight on the hero with no panel behind it. */
.tt-sewp .tt-sewp-hero-art img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* ---------- White sections ---------- */

.tt-sewp .tt-el.tt-sewp-sec {
  --display: flex;
  --flex-direction: column;
  --container-widget-width: 100%;
  --flex-wrap-mobile: wrap;
  --padding-top: 80px;
  --padding-bottom: 80px;
  --padding-left: 0px;
  --padding-right: 0px;
}

.tt-sewp .tt-el.tt-sewp-sec--last { --padding-bottom: 110px; }

.tt-sewp .tt-el.tt-sewp-sec-inner {
  --display: flex;
  --flex-direction: column;
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
}

/* One measure shared by the boxed sections and the two bands, so headings on
   white and headings on navy start at the same x. */
.tt-sewp .tt-el.tt-sewp-sec-inner > *,
.tt-sewp .tt-sewp-band-inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.tt-sewp .tt-sewp-h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 42px;
  color: var(--color-secondary);
  margin: 0 0 18px;
}

.tt-sewp .tt-sewp-h2--on-dark { color: var(--color-white); }

/* The long-form paragraphs are set in the display face, not body copy. */
.tt-sewp .tt-sewp-prose {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  line-height: 34px;
  color: var(--color-primary);
  max-width: 900px;
  margin: 0;
}

.tt-sewp .tt-sewp-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-primary);
  margin: 0 0 32px;
}

/* ---------- Grids ---------- */

.tt-sewp .tt-sewp-grid {
  display: grid;
  gap: 28px;
  width: 100%;
}

.tt-sewp .tt-sewp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-sewp .tt-sewp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tt-sewp .tt-sewp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tt-sewp .tt-sewp-grid--tight { gap: 28px 40px; }

/* ---------- Navy bands ---------- */

.tt-sewp .tt-sewp-band {
  background-color: var(--color-primary);
  padding: 72px 0 80px;
}

/* Contacts: stops short of the right edge, one big rounded bottom-right corner. */
.tt-sewp .tt-sewp-band--right {
  width: 84%;
  border-radius: 0 0 180px 0;
}

/* Ordering: inset from the left instead, rounded on that side. */
.tt-sewp .tt-sewp-band--left {
  width: 84%;
  margin-left: auto;
  border-radius: 180px 0 0 180px;
}

/* The bands are inset, so their inner measure is nudged to keep the text
   aligned with the white sections above and below. */
.tt-sewp .tt-sewp-band--right .tt-sewp-band-inner { max-width: 1000px; margin-inline: auto 0; padding-left: 24px; }
.tt-sewp .tt-sewp-band--left .tt-sewp-band-inner { max-width: 1000px; margin-inline: 0 auto; padding-left: 60px; }

/* ---------- Contact people (purple cards) ---------- */

.tt-sewp .tt-sewp-person {
  background-color: var(--color-secondary);
  border-radius: 14px;
  padding: 26px 28px 30px;
}

.tt-sewp .tt-sewp-person-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: var(--color-white);
  margin: 0;
}

.tt-sewp .tt-sewp-person-role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 2px 0 18px;
}

.tt-sewp .tt-sewp-person-mail,
.tt-sewp .tt-sewp-person-tel {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 22px;
  color: var(--color-white);
  margin: 0;
}

.tt-sewp .tt-sewp-person-tel { font-weight: 700; }

.tt-sewp .tt-sewp-person a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tt-sewp .tt-sewp-person a:hover { text-decoration: underline; }

/* ---------- Contract detail cards ---------- */

.tt-sewp .tt-sewp-card {
  background-color: var(--color-secondary);
  border-radius: 16px;
  padding: 34px 38px 38px;
}

/* The theme uppercases every h3; the design sets these in title case. */
.tt-sewp .tt-sewp-card-title,
.tt-sewp .tt-sewp-tile-title,
.tt-sewp .tt-sewp-col-title,
.tt-sewp .tt-sewp-flow-heading { text-transform: none; }

.tt-sewp .tt-sewp-card-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 400;
  line-height: 38px;
  color: var(--color-white);
  margin: 0 0 22px;
}

.tt-sewp .tt-sewp-dl { margin: 0; }

.tt-sewp .tt-sewp-dl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.tt-sewp .tt-sewp-dl-row:last-child { border-bottom: 0; }

.tt-sewp .tt-sewp-dl dt {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin: 0;
}

.tt-sewp .tt-sewp-dl dd {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 22px;
  color: var(--color-white);
  margin: 0;
  text-align: right;
  /* Contract numbers, UEI and CAGE codes line up as columns of digits. */
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ---------- Ordering tiles (white cards on navy) ---------- */

.tt-sewp .tt-sewp-tile {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 24px 26px 28px;
}

.tt-sewp .tt-sewp-tile-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.tt-sewp .tt-sewp-tile p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 21px;
  color: var(--color-text);
  margin: 0;
}

/* Support contact sits under the ordering-guide link, separated from it. */
.tt-sewp .tt-sewp-tile .tt-sewp-tile-support { margin-top: 18px; }

.tt-sewp .tt-sewp-tile a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* ---------- Order flow ---------- */

.tt-sewp .tt-sewp-flow-heading {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  color: var(--color-white);
  margin: 56px 0 22px;
}

.tt-sewp .tt-sewp-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.tt-sewp .tt-sewp-flow li { margin: 0; }

/* Dot with the connector line running off to the right, as drawn. */
.tt-sewp .tt-sewp-flow-mark {
  display: block;
  position: relative;
  height: 10px;
  margin-bottom: 14px;
}

.tt-sewp .tt-sewp-flow-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-secondary);
}

.tt-sewp .tt-sewp-flow-mark::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 0;
  top: 5px;
  height: 1px;
  background-color: rgba(255, 255, 255, .45);
}

.tt-sewp .tt-sewp-flow li:last-child .tt-sewp-flow-mark::after { display: none; }

.tt-sewp .tt-sewp-flow-num {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}

.tt-sewp .tt-sewp-flow-text {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 21px;
  color: rgba(255, 255, 255, .9);
}

/* ---------- Program office columns ---------- */

.tt-sewp .tt-sewp-col-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  color: var(--color-primary);
  margin: 0 0 14px;
}

.tt-sewp .tt-sewp-col p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 21px;
  color: var(--color-text);
  margin: 0;
}

.tt-sewp .tt-sewp-col a {
  color: var(--color-secondary);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .tt-sewp .tt-sewp-band--right,
  .tt-sewp .tt-sewp-band--left { width: 92%; }

  .tt-sewp .tt-sewp-band--left .tt-sewp-band-inner { padding-left: 40px; }

  .tt-sewp .tt-sewp-title { font-size: 62px; line-height: 70px; }
  .tt-sewp .tt-sewp-prose { font-size: 20px; line-height: 31px; }
}

@media (max-width: 900px) {
  .tt-sewp .tt-sewp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* Illustration first reads better once it is above the copy rather than beside it. */
  .tt-sewp .tt-sewp-hero-art { order: -1; }
  .tt-sewp .tt-sewp-hero-art img { max-width: 360px; }
  .tt-sewp .tt-sewp-hero-copy { max-width: none; }

  .tt-sewp .tt-sewp-grid--3,
  .tt-sewp .tt-sewp-grid--4,
  .tt-sewp .tt-sewp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* The connector would point at nothing once the row wraps. */
  .tt-sewp .tt-sewp-flow-mark::after { display: none; }
}

@media (max-width: 767px) {
  .tt-sewp .tt-el.tt-sewp-hero { --border-radius: 0px 0px 0px 0px; }

  .tt-sewp .tt-sewp-hero-grid { padding: 24px 20px 56px; }

  .tt-sewp .tt-el.tt-sewp-sec {
    --padding-top: 56px;
    --padding-bottom: 56px;
  }

  .tt-sewp .tt-el.tt-sewp-sec-inner > *,
  .tt-sewp .tt-sewp-band-inner { padding-inline: 20px; }

  .tt-sewp .tt-sewp-band {
    width: 100%;
    border-radius: 0;
    padding: 56px 0 60px;
  }

  .tt-sewp .tt-sewp-band--left .tt-sewp-band-inner,
  .tt-sewp .tt-sewp-band--right .tt-sewp-band-inner { padding-left: 20px; max-width: none; }

  .tt-sewp .tt-sewp-title { font-size: 52px; line-height: 58px; }
  .tt-sewp .tt-sewp-h2 { font-size: 26px; line-height: 34px; }
  .tt-sewp .tt-sewp-prose { font-size: 18px; line-height: 28px; }

  .tt-sewp .tt-sewp-grid--2,
  .tt-sewp .tt-sewp-grid--3,
  .tt-sewp .tt-sewp-grid--4,
  .tt-sewp .tt-sewp-flow { grid-template-columns: minmax(0, 1fr); }

  .tt-sewp .tt-sewp-card { padding: 26px 22px 30px; }

  /* Stacked label-above-value reads better than a squeezed two-column split. */
  .tt-sewp .tt-sewp-dl-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tt-sewp .tt-sewp-dl dd { text-align: left; }
}
