/* components.css — the parts pages are assembled from, on all four sites.
 *
 * One motif runs through it: the lane. Three parallel bands that end in a
 * point facing east. It cuts the lead photographs (.arrow-frame), draws the
 * rule above a section (.lane-rule), marks list items (.bar-list) and gives
 * the lane switch its shape. Colour comes from the accent ramp, so the same
 * parts read as NC East in orange, STEM East in lime, ARI in cyan and the
 * Maritime Association in red.
 */

/* ---- The lane motif ----------------------------------------------------- */

.lane-rule {
  display: block;
  width: 5.5rem;
  height: 1rem;
  background: linear-gradient(
    to bottom,
    var(--accent-rule) 0 22%,
    transparent 22% 39%,
    var(--accent-rule) 39% 61%,
    transparent 61% 78%,
    var(--accent-rule) 78% 100%
  );
  clip-path: polygon(0 0, calc(100% - 0.6rem) 0, 100% 50%, calc(100% - 0.6rem) 100%, 0 100%);
}

.arrow-frame {
  overflow: hidden;
  background: var(--navy-100);
  clip-path: polygon(0 0, calc(100% - var(--point)) 0, 100% 50%, calc(100% - var(--point)) 100%, 0 100%);
}

.arrow-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow-photo figcaption {
  margin-top: 0.5rem;
  padding-right: var(--point);
}

.bar-list {
  padding: 0;
  list-style: none;
}

.bar-list li {
  position: relative;
  padding-left: 1.6rem;
}

.bar-list li + li {
  margin-top: calc(var(--line) * 0.4);
}

.bar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--line) * 0.5 - 2px);
  width: 0.9rem;
  height: 4px;
  background: var(--accent-rule);
  clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 50%, calc(100% - 3px) 100%, 0 100%);
}

/* ---- Crumbs --------------------------------------------------------------- */

.crumbs {
  border-bottom: 1px solid var(--navy-100);
  font-size: var(--fs-200);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin: 0;
  padding: 0.6rem 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--navy-300);
}

.crumbs a {
  display: inline-block;
  padding-block: 0.2rem;
}

.crumbs [aria-current] {
  color: var(--navy-600);
}

/* ---- Page head -------------------------------------------------------------- */

.page-head {
  padding-block: var(--opening) calc(var(--line) * 2.5);
}

.page-head__grid {
  display: grid;
  gap: calc(var(--line) * 1.5) 3rem;
  align-items: start;
}

.page-head h1 {
  font-size: var(--fs-700);
  view-transition-name: page-title;
}

/* A long page title steps down so it breaks into phrases, not one word a line. */
.page-head--long h1 {
  font-size: var(--fs-600);
  font-stretch: 108%;
  text-wrap: balance;
}

.page-head__text > * + * {
  margin-top: calc(var(--line) * 0.9);
}

.page-head .lede {
  font-size: var(--fs-500);
  line-height: 1.35;
  font-weight: 500;
  max-width: 34rem;
}

.page-head__photo .arrow-frame {
  aspect-ratio: 2 / 1;
}

@media (min-width: 62rem) {
  .page-head--photo .page-head__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }

  .page-head__photo .arrow-frame {
    aspect-ratio: 1.9 / 1;
  }
}

/* ---- Home: the statement and the three lanes ---------------------------------- */

.hero {
  padding-block: var(--opening) calc(var(--line) * 2.5);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: calc(var(--line) * 1.25) 3rem;
  align-items: center;
}

/* NC East's own sentence is sixteen words, so it runs the full width of the
   page and narrows its letters on a phone instead of stacking into a column. */
.hero h1 {
  font-size: clamp(1.375rem, 0.625rem + 2.34vw, 2.5rem);
  font-stretch: 78%;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__text > * + * {
  margin-top: calc(var(--line) * 1.1);
}

.hero .lede {
  max-width: 33rem;
}

@media (min-width: 40rem) {
  .hero h1 {
    font-stretch: 100%;
    font-weight: 900;
    line-height: 1.12;
  }
}

.hero__lanes {
  display: grid;
  gap: 0.6rem;
  container-type: inline-size;
}

/* Each photograph is an arrow; the three thin bands behind it are its tail, longer for each lane further east. */
.lane {
  --indent: 0cqw;
  position: relative;
  width: 84cqw;
  margin: 0 0 0 var(--indent);
}

.lane:nth-child(2) {
  --indent: 8cqw;
}

.lane:nth-child(3) {
  --indent: 16cqw;
}

.lane::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 0.5rem);
  width: calc(var(--indent) - 0.5rem);
  height: 19px;
  transform: translateY(-50%);
  background: linear-gradient(
    to bottom,
    var(--accent-500) 0 3px,
    transparent 3px 8px,
    var(--accent-500) 8px 11px,
    transparent 11px 16px,
    var(--accent-500) 16px 19px
  );
}

.lane .arrow-frame {
  aspect-ratio: 2.4 / 1;
}

.lane__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.3rem 1.3rem 0.3rem 0.7rem;
  background: var(--navy-800);
  color: var(--white);
  font-size: var(--fs-200);
  font-weight: 700;
  font-stretch: 115%;
  clip-path: polygon(0 0, calc(100% - 0.55rem) 0, 100% 50%, calc(100% - 0.55rem) 100%, 0 100%);
}

.js .lane {
  animation: lane-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.js .lane:nth-child(2) {
  animation-delay: 0.09s;
}

.js .lane:nth-child(3) {
  animation-delay: 0.18s;
}

@keyframes lane-in {
  from {
    transform: translateX(-3rem);
  }

  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .lane {
    animation: none;
  }
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .hero h1 {
    grid-column: 1 / -1;
    font-stretch: 112%;
    letter-spacing: -0.005em;
  }

  .hero__text {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .hero__lanes {
    grid-column: 2;
    grid-row: 2;
  }

  .lane {
    --indent: 5cqw;
    width: 74cqw;
  }

  .lane:nth-child(2) {
    --indent: 15cqw;
  }

  .lane:nth-child(3) {
    --indent: 25cqw;
  }

  .lane .arrow-frame {
    aspect-ratio: 2.5 / 1;
  }
}

/* On a wide screen the second and third lanes run the width of the page: their
   tails start at the left margin, under the opening paragraph, and end in the
   photographs. The paragraph column is two thirds of the lanes column wide. */
@media (min-width: 80rem) {
  .hero__text {
    position: relative;
    z-index: 1;
    background: var(--white);
  }

  .lane:nth-child(2)::before,
  .lane:nth-child(3)::before {
    width: calc(var(--indent) + 66.667cqw + 2.5rem);
  }
}

/* ---- The lane switch ------------------------------------------------------------ */

.lane-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 44rem;
  margin-bottom: calc(var(--line) * 1.25);
}

html:not(.js) .lane-switch {
  display: none;
}

.lane-btn {
  display: grid;
  gap: 0.1rem;
  min-height: 3.5rem;
  padding: 0.6rem 1.6rem 0.6rem 1.1rem;
  border: 0;
  background: var(--navy-100);
  color: var(--navy-800);
  font: inherit;
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%, 0.9rem 50%);
  transition: background-color 0.15s ease;
}

.lane-btn:first-child {
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%);
  padding-left: 0.9rem;
}

.lane-btn:not(:first-child) {
  padding-left: 1.7rem;
}

.lane-btn__label {
  font-size: var(--fs-300);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1.15;
}

.lane-btn__who {
  font-size: var(--fs-100);
  line-height: 1.25;
  color: var(--navy-600);
}

.lane-btn:hover {
  background: var(--navy-200);
}

.lane-btn[aria-pressed="true"] {
  background: var(--navy-800);
  color: var(--white);
}

.lane-btn[aria-pressed="true"] .lane-btn__who {
  color: var(--navy-100);
}

/* The button is cut to a point, so its ring sits inside the shape where the cut cannot remove it. */
.lane-btn:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 6px var(--focus);
}

.lanes__grid {
  display: grid;
  gap: calc(var(--line) * 1.5) 3rem;
}

.lanes__photos {
  position: relative;
  margin: 0;
}

.lanes__photos .arrow-frame {
  aspect-ratio: 3 / 1;
}

.js .lanes__photo {
  display: none;
}

.js [data-lane="industry"] .lanes__photo[data-lane-photo="industry"],
.js [data-lane="education"] .lanes__photo[data-lane-photo="education"],
.js [data-lane="talent"] .lanes__photo[data-lane-photo="talent"] {
  display: block;
  animation: lane-forward 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html:not(.js) .lanes__photo + .lanes__photo {
  display: none;
}

@keyframes lane-forward {
  from {
    transform: translateX(-2.5rem);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 39.99rem) {
  .lane-btn {
    min-height: 2.75rem;
    padding-right: 1.1rem;
  }

  .lane-btn__label {
    font-size: var(--fs-200);
    font-stretch: 100%;
  }

  .lane-btn__who {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-lane] .lanes__photo {
    animation: none;
  }

  .lane-btn {
    transition: none;
  }
}

@media (min-width: 62rem) {
  .lanes__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
  }

  .lanes__photos {
    position: sticky;
    top: 1.5rem;
    order: 2;
  }

  .lanes__photos .arrow-frame {
    aspect-ratio: 1.7 / 1;
  }
}

.cluster-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy-800);
}

.cluster-row {
  display: grid;
  gap: 0.35rem 2rem;
  padding-block: calc(var(--line) * 0.7);
  border-bottom: 1px solid var(--rule);
}

.cluster-row__name {
  font-size: var(--fs-500);
  font-stretch: 112%;
}

.cluster-row__name a {
  text-decoration: none;
}

.cluster-row__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--accent-rule);
}

.cluster-row__label {
  font-size: var(--fs-100);
  font-weight: 700;
  color: var(--navy-600);
}

.cluster-row__facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-200);
  line-height: 1.5;
}

.cluster-row__facts li {
  display: inline;
}

.cluster-row__facts li:not(:last-child)::after {
  content: ",";
}

.cluster-row__facts--long li {
  display: block;
}

.cluster-row__facts--long li:not(:last-child)::after {
  content: none;
}

.cluster-row__facts--long li + li {
  margin-top: 0.2rem;
}

.js [data-lane="industry"] [data-lane-fact]:not([data-lane-fact="industry"]),
.js [data-lane="education"] [data-lane-fact]:not([data-lane-fact="education"]),
.js [data-lane="talent"] [data-lane-fact]:not([data-lane-fact="talent"]) {
  display: none;
}

@media (min-width: 40rem) {
  .cluster-row {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    align-items: baseline;
  }

  .cluster-row__facts {
    grid-column: 2;
  }
}

/* ---- The region ------------------------------------------------------------------- */

.region__grid {
  display: grid;
  gap: calc(var(--line) * 1.5) 3rem;
  align-items: center;
}

.region__map img {
  width: 100%;
  height: auto;
}

.region-line {
  font-size: var(--fs-600);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.15;
  text-wrap: balance;
}

.region-line__part {
  display: inline-block;
}

.region-line__n {
  color: var(--accent-text);
}

.region__text > * + * {
  margin-top: var(--line);
}

@media (min-width: 62rem) {
  .region__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

/* ---- The four buckets ---------------------------------------------------------------- */

.buckets {
  display: grid;
  gap: calc(var(--line) * 1.5) 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bucket > * + * {
  margin-top: calc(var(--line) * 0.6);
}

.bucket__line {
  font-size: var(--fs-400);
  font-weight: 700;
  line-height: 1.3;
}

.bucket__text {
  font-size: var(--fs-200);
}

.bucket__where {
  font-size: var(--fs-200);
  font-weight: 600;
}

.bucket--data,
.family__item--ari {
  --accent-rule: #00869c;
}

.bucket--talent,
.family__item--stemeast {
  --accent-rule: #6f8100;
}

.bucket--support,
.family__item--maritime {
  --accent-rule: #cc3e38;
}

.bucket--brand,
.family__item--alliance {
  --accent-rule: #bf5200;
}

@media (min-width: 40rem) {
  .buckets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .buckets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.family {
  display: grid;
  gap: calc(var(--line) * 1.25) 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.family__item > * + * {
  margin-top: calc(var(--line) * 0.5);
}

.family__name {
  font-size: var(--fs-400);
}

@media (min-width: 48rem) {
  .family {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
}

/* ---- News ---------------------------------------------------------------------------- */

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy-800);
}

.news-list > li {
  border-bottom: 1px solid var(--rule);
}

.news-row {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: calc(var(--line) * 0.8);
}

.news-row__title {
  font-size: var(--fs-400);
  font-stretch: 100%;
  font-weight: 700;
  line-height: 1.25;
}

.news-row__title a {
  text-decoration: none;
}

.news-row__title a:hover {
  text-decoration: underline;
}

.news-row__excerpt {
  margin-top: 0.4rem;
  font-size: var(--fs-200);
  color: var(--navy-600);
  max-width: 44rem;
}

/* The opening words stop mid-post; the ellipsis is drawn, not stored, so the text stays NC East's own. */
.news-row__excerpt.is-cut::after {
  content: "\2026";
}

@media (min-width: 40rem) {
  .news-row {
    grid-template-columns: 9.5rem minmax(0, 1fr);
  }

  .news-row__date {
    padding-top: 0.2rem;
  }
}

.news-more {
  margin-top: calc(var(--line) * 1.25);
}

.article {
  padding-block: var(--opening) calc(var(--line) * 3);
}

.article__head > * + * {
  margin-top: calc(var(--line) * 0.75);
}

.article h1 {
  font-size: var(--fs-600);
  font-stretch: 105%;
  max-width: 46rem;
  text-wrap: balance;
  view-transition-name: page-title;
}

/* NC East's longer headlines: smaller and narrower, on a wider measure, so they stay a headline. */
.article h1.article__title--long {
  font-size: clamp(1.3125rem, 1.1rem + 0.9vw, 1.6875rem);
  font-stretch: 100%;
  line-height: 1.18;
  letter-spacing: 0;
  max-width: 54rem;
}

.article h1.article__title--xlong {
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  font-stretch: 88%;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 56rem;
}

.article__orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-100);
  font-weight: 600;
}

.article__orgs a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--navy-300);
  border-radius: 999px;
  text-decoration: none;
}

.article__orgs a:hover {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--white);
}

.article__photo {
  margin-top: calc(var(--line) * 1.25);
  max-width: 46rem;
}

.article__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article .prose {
  margin-top: calc(var(--line) * 1.5);
}

.article .prose img {
  height: auto;
}

/* In a migrated post a bold line on its own labels the list under it, so the two sit together. */
.article .prose p:has(> strong:only-child) + ul,
.article .prose p:has(> strong:only-child) + ol {
  margin-top: 0.35rem;
}

.article .prose li + li {
  margin-top: 0.15rem;
}

@media (min-width: 62rem) {
  .article .prose--columns {
    columns: 2;
    column-gap: 2.5rem;
  }

  .prose--columns > * {
    break-inside: avoid;
  }

  .prose--columns > p:has(> strong:only-child) {
    break-after: avoid;
  }
}

.article__next {
  display: grid;
  gap: 1rem 2rem;
  margin-top: calc(var(--line) * 2.5);
  padding-top: var(--line);
  border-top: 2px solid var(--navy-800);
  max-width: 46rem;
}

.article__next .lane-rule {
  display: none;
}

.article__all a {
  font-weight: 700;
}

/* Wide screens: the text keeps its measure and the neighbouring posts ride beside it. */
@media (min-width: 62rem) {
  .article__grid {
    display: grid;
    grid-template-columns: minmax(0, 46rem) minmax(13rem, 18rem);
    justify-content: space-between;
    column-gap: 3rem;
  }

  .article__head {
    grid-column: 1 / -1;
  }

  .article__main {
    grid-column: 1;
    min-width: 0;
  }

  .article__grid .article__next {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
    position: sticky;
    top: 1.5rem;
    margin-top: calc(var(--line) * 1.5);
    padding-top: 0;
    border-top: 0;
  }

  .article__next .lane-rule {
    display: block;
  }
}

.article__next p {
  font-size: var(--fs-100);
  font-weight: 700;
  color: var(--navy-600);
}

.article__next a {
  font-weight: 700;
}

@media (min-width: 40rem) {
  .article__next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- People ---------------------------------------------------------------------------- */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--line) * 1.5) 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  scroll-margin-top: 2rem;
}

.person__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy-100);
  border-radius: var(--radius);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person__name {
  margin-top: 0.7rem;
  font-size: var(--fs-300);
  font-stretch: 105%;
}

.person__role {
  margin-top: 0.15rem;
  font-size: var(--fs-200);
  color: var(--navy-600);
}

.person:target .person__name {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--accent-rule);
}

@media (min-width: 40rem) {
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .people {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: calc(var(--line) * 1.75) 1.5rem;
  }
}

/* ---- Closing band -------------------------------------------------------------------------- */

/* The last word on a page is set on the organization's own color, so it never sits navy-on-navy above the footer. */
.cta-band.room--navy {
  background: var(--accent-500);
  color: var(--navy-950);
  --focus: var(--navy-950);
}

.cta-band.room--navy .btn {
  border-color: var(--navy-950);
  color: var(--navy-950);
}

.cta-band.room--navy .btn:hover {
  background: var(--navy-950);
  color: var(--white);
}

.cta-band.room--navy .btn--primary {
  background: var(--navy-950);
  color: var(--white);
}

.cta-band.room--navy .btn--primary:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy-950);
}

.cta-band.room {
  padding-block: calc(var(--line) * 2.25);
}

.cta-band__grid {
  display: grid;
  gap: var(--line) 3rem;
  align-items: center;
}

.cta-band h2 {
  font-size: var(--fs-500);
  font-stretch: 108%;
  max-width: 40rem;
}

@media (min-width: 62rem) {
  .cta-band__grid {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

/* ---- Two-column reading layouts ---------------------------------------------------------------- */

.split {
  display: grid;
  gap: calc(var(--line) * 1.75) 4rem;
}

.split > * {
  min-width: 0;
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }

  .split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  }
}

.stack > * + * {
  margin-top: var(--line);
}

.stack--tight > * + * {
  margin-top: calc(var(--line) * 0.5);
}

.stack--apart {
  margin-top: calc(var(--line) * 2);
}

.subhead {
  font-size: var(--fs-400);
  font-weight: 700;
  line-height: 1.3;
}

/* ---- Cluster pages: numbers and the three lanes ------------------------------------------------- */

.figures {
  margin: calc(var(--line) * 0.9) 0 0;
  padding: 0;
  border-top: 2px solid var(--navy-800);
  list-style: none;
}

.figures li {
  padding-block: calc(var(--line) * 0.6);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-400);
  font-weight: 600;
  line-height: 1.35;
}

.figures li:first-child {
  border-top: 0;
}

.trio {
  display: grid;
  gap: calc(var(--line) * 1.75) 2.5rem;
}

.trio__lane > * + * {
  margin-top: calc(var(--line) * 0.6);
}

.trio__tag {
  display: inline-block;
  padding: 0.25rem 1.25rem 0.25rem 0.7rem;
  background: var(--navy-800);
  color: var(--white);
  font-size: var(--fs-200);
  font-weight: 700;
  font-stretch: 115%;
  clip-path: polygon(0 0, calc(100% - 0.55rem) 0, 100% 50%, calc(100% - 0.55rem) 100%, 0 100%);
}

.trio h2 {
  font-size: var(--fs-500);
}

.split h2 {
  font-size: var(--fs-500);
}

@media (min-width: 62rem) {
  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cluster-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cluster-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--navy-800);
  border-radius: var(--radius);
  font-size: var(--fs-200);
  font-weight: 700;
  text-decoration: none;
}

.cluster-nav a:hover,
.cluster-nav a[aria-current] {
  background: var(--navy-800);
  color: var(--white);
}

/* ---- Initiative pages --------------------------------------------------------------------------- */

.programs {
  margin: 0;
  border-top: 2px solid var(--navy-800);
}

.programs > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: calc(var(--line) * 0.7);
  border-bottom: 1px solid var(--rule);
}

.programs dt {
  font-weight: 700;
  font-stretch: 105%;
}

.programs dd {
  margin: 0;
}

@media (min-width: 48rem) {
  .programs > div {
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  }
}

.pull {
  margin: 0;
  padding: calc(var(--line) * 1.25) 0 0;
  border-top: 4px solid var(--accent-rule);
}

.pull p {
  font-size: var(--fs-500);
  font-weight: 600;
  line-height: 1.35;
}

.pull footer {
  margin-top: var(--line);
  font-size: var(--fs-200);
  color: var(--ink-soft);
}

.work-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy-800);
}

.work-row {
  display: grid;
  gap: 0.4rem 2rem;
  padding-block: calc(var(--line) * 0.9);
  border-bottom: 1px solid var(--rule);
}

.work-row h3 {
  font-size: var(--fs-500);
  font-stretch: 110%;
}

.work-row h3 a {
  text-decoration: none;
}

.work-row h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--accent-rule);
}

@media (min-width: 48rem) {
  .work-row {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    align-items: baseline;
  }
}

/* ---- Counties ------------------------------------------------------------------------------------- */

.county-list {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-200);
}

.county-list li {
  break-inside: avoid;
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--navy-100);
}

.county-list a {
  display: block;
  text-decoration: none;
}

.county-list a:hover {
  text-decoration: underline;
}

@media (min-width: 40rem) {
  .county-list {
    columns: 3;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-200);
}

.data-table caption {
  padding-bottom: 0.75rem;
  text-align: left;
  font-weight: 700;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.data-table thead th {
  border-bottom: 2px solid var(--navy-800);
  font-weight: 700;
}

.data-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr:target {
  background: var(--accent-50);
}

.data-table tfoot th,
.data-table tfoot td {
  border-top: 2px solid var(--navy-800);
  border-bottom: 0;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

/* ---- Photo bands -------------------------------------------------------------------------------------- */

.photo-run {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-run .arrow-frame {
  aspect-ratio: 2.2 / 1;
}

.photo-run li:nth-child(2) {
  margin-left: 6%;
}

.photo-run li:nth-child(3) {
  margin-left: 12%;
}

.photo-run li {
  width: 88%;
}

@media (min-width: 48rem) {
  .photo-run {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .photo-run li,
  .photo-run li:nth-child(2),
  .photo-run li:nth-child(3) {
    width: auto;
    margin-left: 0;
  }

  .photo-run .arrow-frame {
    aspect-ratio: 1.5 / 1;
  }
}

/* ---- Offices and sponsors ------------------------------------------------------------------------------ */

.office h3 {
  font-size: var(--fs-400);
}

.office address {
  margin-top: 0.4rem;
  font-style: normal;
}

.office p {
  margin-top: 0.4rem;
  font-size: var(--fs-200);
}

.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsors li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10.5rem;
  height: 5.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
}

.sponsors img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

/* ---- Forms ------------------------------------------------------------------------------------------------ */

.form {
  display: grid;
  gap: var(--line);
  max-width: 34rem;
}

.field label {
  display: block;
  font-size: var(--fs-200);
  font-weight: 700;
}

.field__req {
  font-weight: 400;
  color: var(--navy-600);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--navy-600);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-800);
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field__hint {
  margin-top: 0.3rem;
  font-size: var(--fs-100);
  color: var(--navy-600);
}

.field__error {
  margin-top: 0.3rem;
  font-size: var(--fs-200);
  font-weight: 700;
  color: #a52a27;
}

.field [aria-invalid="true"] {
  border-color: #a52a27;
}

.form__done {
  padding: var(--line);
  border-left: 4px solid var(--accent-rule);
  background: var(--panel);
}

.form__done-title {
  font-weight: 700;
}

.footer-signup .field__error {
  color: var(--accent-200);
}

.footer-social {
  margin-top: var(--line);
}

/* ---- The news index: sticky controls ------------------------------------------------------------------------ */

.index-controls {
  background: var(--white);
  border-block: 1px solid var(--rule);
  --stoa-index-sticky-top: 0px;
}

.index-controls__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: end;
  padding-block: 0.6rem 0.35rem;
}

.index-controls .field--q {
  grid-column: 1 / -1;
}

.index-controls .field label {
  font-size: var(--fs-100);
}

.index-controls .field input,
.index-controls .field select {
  margin-top: 0.15rem;
}

/* The list filters as you type or choose, and the button stays: it is the visible way to apply, with or without scripts. */
.index-controls__submit {
  display: inline-flex;
  align-self: end;
}

.index-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.45rem;
}

.index-summary {
  font-size: var(--fs-100);
  color: var(--navy-600);
}

.linkish {
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-100);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.linkish[hidden] {
  display: none;
}

.index-body {
  padding-block: calc(var(--line) * 1.25) calc(var(--line) * 3);
}

.news-list--index {
  border-top: 0;
}

.index-results {
  scroll-margin-top: 12rem;
}

.index-empty {
  padding-block: calc(var(--line) * 1.5);
  font-weight: 600;
}

[data-stoa-index-pagination] {
  margin-top: calc(var(--line) * 1.5);
}

[data-stoa-index-pagination] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-stoa-index-pagination] a,
[data-stoa-index-pagination] span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.8rem;
  border: 2px solid var(--navy-800);
  border-radius: var(--radius);
  font-size: var(--fs-200);
  font-weight: 700;
  text-decoration: none;
}

[data-stoa-index-pagination] span[aria-hidden] {
  border-color: transparent;
}

[data-stoa-index-pagination] a:hover,
[data-stoa-index-pagination] [aria-current] {
  background: var(--navy-800);
  color: var(--white);
}

@media (min-width: 48rem) {
  .index-controls__form {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr) auto;
  }

  .index-controls .field--q {
    grid-column: auto;
  }
}

/* ---- Search results ---------------------------------------------------------------------------------------- */

.search-page {
  padding-block: var(--opening) calc(var(--line) * 3);
}

.search-page__title {
  font-size: var(--fs-600);
}

.search-page .omnibox {
  max-width: 40rem;
  margin-top: var(--line);
}

.search-page__status {
  margin-top: var(--line);
  font-weight: 600;
}

.answer {
  max-width: 44rem;
  margin-top: var(--line);
  padding: var(--line) var(--line) var(--line) calc(var(--line) * 1.1);
  border-left: 6px solid var(--accent-rule);
  background: var(--panel);
}

.answer[hidden] {
  display: none;
}

.answer__label {
  font-size: var(--fs-200);
  font-weight: 700;
  font-stretch: 110%;
  color: var(--navy-600);
}

.answer__text {
  margin-top: 0.5rem;
  font-size: var(--fs-400);
  line-height: 1.5;
}

.answer__text p + p {
  margin-top: 0.75rem;
}

.answer__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-200);
  font-weight: 600;
}

.search-results {
  max-width: 48rem;
}

.result-group {
  margin-top: calc(var(--line) * 1.75);
}

.result-group__title {
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--navy-800);
  font-size: var(--fs-300);
  font-stretch: 110%;
}

.result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result {
  padding-block: calc(var(--line) * 0.6);
  border-bottom: 1px solid var(--rule);
}

.result[hidden] {
  display: none;
}

.result__title {
  font-size: var(--fs-400);
  font-weight: 700;
  line-height: 1.3;
}

.result__meta {
  margin-top: 0.2rem;
  font-size: var(--fs-200);
  color: var(--navy-600);
}

.result-group .linkish {
  margin-top: 0.75rem;
  min-height: 2.75rem;
}

.answer__kind {
  margin-left: 0.4rem;
  font-weight: 400;
  color: var(--navy-600);
}

.search-browse {
  max-width: 44rem;
  margin-top: calc(var(--line) * 2);
}

.search-browse[hidden] {
  display: none;
}

.search-browse h2 {
  margin-top: calc(var(--line) * 1.5);
  font-size: var(--fs-400);
}

.search-browse ul {
  margin-top: 0.75rem;
}

.search-try {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--navy-800);
  border-radius: 999px;
  font-size: var(--fs-200);
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  background: var(--navy-800);
  color: var(--white);
}

.empty-note {
  margin-top: var(--line);
}

/* ---- Brand guidelines ------------------------------------------------------------------------------------- */

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.swatch__chip {
  height: 4.5rem;
  border: 1px solid var(--navy-200);
  border-radius: var(--radius);
}

.swatch__name {
  margin-top: 0.45rem;
  font-size: var(--fs-200);
  font-weight: 700;
}

.swatch__hex {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  color: var(--navy-600);
}

.specimen {
  padding-block: var(--line);
  border-top: 1px solid var(--rule);
}

.specimen__sample {
  line-height: 1.1;
}

.specimen__note {
  margin-top: 0.4rem;
  font-size: var(--fs-200);
  color: var(--navy-600);
}

.lockups {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lockups > li {
  min-width: 0;
}

.lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 0.05rem 0.45rem;
  min-height: 6rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--navy-200);
  border-radius: var(--radius);
}

.lockup--navy {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--white);
}

.lockup--navy .brand__tail {
  color: var(--navy-100);
}

@media (min-width: 48rem) {
  .lockups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Not found ---------------------------------------------------------------------------------------------- */

.notfound {
  padding-block: var(--opening) calc(var(--line) * 3);
}

.notfound__grid {
  display: grid;
  gap: calc(var(--line) * 2) 3rem;
  align-items: center;
}

.notfound__text > * + * {
  margin-top: var(--line);
}

.notfound__photo .arrow-frame {
  aspect-ratio: 2 / 1;
}

@media (min-width: 62rem) {
  .notfound__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

/* ---- Cluster grid (Our Industries) ------------------------------------------------------------------------- */

.cluster-grid {
  display: grid;
  gap: calc(var(--line) * 1.75) 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cluster-card .arrow-frame {
  aspect-ratio: 2.2 / 1;
}

.cluster-card__name {
  margin-top: 0.8rem;
  font-size: var(--fs-500);
  font-stretch: 112%;
}

.cluster-card__name a {
  text-decoration: none;
}

.cluster-card__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--accent-rule);
}

.cluster-card__fact {
  margin-top: 0.3rem;
  font-size: var(--fs-200);
  color: var(--navy-600);
}

@media (min-width: 40rem) {
  .cluster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .cluster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- One person ----------------------------------------------------------------------------------------------- */

.profile {
  padding-block: var(--opening) calc(var(--line) * 3);
}

.profile__grid {
  display: grid;
  gap: calc(var(--line) * 1.5) 3.5rem;
  align-items: start;
}

.profile__photo {
  max-width: 20rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy-100);
  border-radius: var(--radius);
}

.profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h1 {
  font-size: var(--fs-700);
  view-transition-name: page-title;
}

.profile__text > * + * {
  margin-top: var(--line);
}

.profile__reach {
  margin: var(--line) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-200);
}

.profile__reach li + li {
  margin-top: 0.3rem;
}

.profile__reach a {
  display: inline-block;
  padding-block: 0.15rem;
  font-weight: 600;
}

@media (min-width: 62rem) {
  .profile__grid {
    grid-template-columns: 22rem minmax(0, 1fr);
  }
}

/* On a narrower screen the name comes first, with a small portrait beside it, and the biography runs the full width below. */
@media (max-width: 61.99rem) {
  .profile__grid {
    grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 24vw, 9rem);
    column-gap: 1.25rem;
    row-gap: 0;
  }

  .profile__text {
    display: contents;
  }

  .profile__photo {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 100%;
  }

  .profile h1 {
    grid-column: 1;
    grid-row: 1;
  }

  .profile__text > .lede {
    grid-column: 1;
    grid-row: 2;
  }

  .profile__reach {
    grid-column: 1;
    grid-row: 3;
  }

  .profile__text > .prose {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

.name-list {
  columns: 1;
  column-gap: 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.name-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  align-items: baseline;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}

.name-list a {
  font-weight: 700;
}

.name-list a[aria-current] {
  text-decoration: none;
}

.name-list span {
  font-size: var(--fs-200);
  color: var(--navy-600);
}

@media (min-width: 48rem) {
  .name-list {
    columns: 2;
  }
}

/* ---- Small layout helpers ------------------------------------------------------------------------------------ */

.region__map--wide {
  margin-bottom: calc(var(--line) * 1.5);
}

.county-note {
  margin-top: var(--line);
  font-size: var(--fs-200);
}

.page-head--index {
  padding-block: var(--opening) var(--line);
}

.room--flush {
  padding-top: 0;
}

.person__name a {
  text-decoration: none;
}

.person__name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--accent-rule);
}

/* ---- Sister-site heroes: one statement, one arrow ------------------------------------------------------------ */

.hero--single .hero__photo .arrow-frame {
  aspect-ratio: 1.5 / 1;
}

.hero__chart figcaption,
.chart figcaption {
  margin-top: var(--line);
  font-size: var(--fs-200);
  color: var(--navy-600);
}

/* A sister site that opens on its name, not a sentence, sets it larger. */
.hero--title h1 {
  font-size: var(--fs-600);
  font-stretch: 112%;
  font-weight: 900;
  letter-spacing: -0.005em;
}

@media (min-width: 62rem) {
  .hero--single .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero--single .hero__photo,
  .hero--single .hero__chart {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Short titled items (a program, a career cluster) sit two across instead of in one long column. */
.prose--wide {
  max-width: none;
}

.prose--wide > p {
  max-width: var(--measure);
}

.chunks {
  display: grid;
  gap: calc(var(--line) * 1.25) 3rem;
}

.chunk > * + * {
  margin-top: calc(var(--line) * 0.5);
}

@media (min-width: 48rem) {
  .chunks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.people__intro {
  margin-bottom: calc(var(--line) * 1.5);
}

.pull--small p {
  font-size: var(--fs-300);
  font-weight: 500;
  line-height: 1.5;
}

.pull--small {
  border-top-width: 2px;
  padding-top: var(--line);
}

/* ---- Counties as lanes (Applied Research Institute) ------------------------------------------------------------ */

.bars {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-200);
}

.bars li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 4.75rem;
  gap: 0.75rem;
  align-items: center;
}

.bars__name {
  font-weight: 600;
}

.bars__track {
  display: block;
}

.bars__bar {
  display: block;
  width: calc(var(--v) * 100%);
  min-width: 1rem;
  height: 1.05rem;
  background: var(--accent-500);
  clip-path: polygon(0 0, calc(100% - 0.5rem) 0, 100% 50%, calc(100% - 0.5rem) 100%, 0 100%);
}

.bars__n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--navy-600);
}

@media (min-width: 62rem) {
  .people--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- MARINER, letter by letter (NC Maritime Association) -------------------------------------------------------- */

.mariner {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy-800);
}

.mariner li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1.25rem;
  align-items: start;
  padding-block: calc(var(--line) * 0.55);
  border-bottom: 1px solid var(--rule);
}

.mariner__letter {
  font-size: var(--fs-700);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.9;
  color: var(--accent-600);
}

.mariner p {
  max-width: 48rem;
  padding-top: 0.2rem;
}

.mariner strong {
  font-stretch: 110%;
}

@media (min-width: 48rem) {
  .mariner li {
    grid-template-columns: 5rem minmax(0, 1fr);
  }
}

/* ---- Brand guidelines: lockup tiles and specimens ---------------------------------------------------------- */

.lockup-tile .lockup {
  background: var(--white);
  border-bottom-width: 6px;
  border-bottom-style: solid;
}

.lockup-tile .swatch__name {
  margin-top: 0.6rem;
}

.swatch__use {
  margin-top: 0.15rem;
  font-size: var(--fs-100);
  color: var(--navy-600);
}

.subhead--apart {
  margin-top: calc(var(--line) * 1.75);
}

.subhead + .swatches {
  margin-top: var(--line);
}

.specimen__sample--display {
  font-size: var(--fs-700);
  font-weight: 800;
  font-stretch: 125%;
}

.specimen__sample--text {
  max-width: var(--measure);
  font-size: var(--fs-400);
  line-height: 1.5;
}

.specimen__sample--mono {
  font-family: var(--font-mono);
  font-size: var(--fs-400);
  line-height: 1.4;
}
