/* Why Join Us magazine module.
 * The visual system follows the original standalone HTML edition: paper
 * pages, Georgia body copy, blue/rust editorial palette and two-column story
 * spreads. Every selector is scoped to this module.
 */
.wj-main-shell,
.wj-legacy-content {
  min-width: 0;
}

.wj-legacy-main {
  padding: 34px 18px 60px;
  background: #dfe7eb;
}

.wj-mag-page {
  --wj-blue: #245d89;
  --wj-blue-deep: #163d5b;
  --wj-blue-soft: #e8f2f8;
  --wj-ink: #172532;
  --wj-muted: #60717e;
  --wj-paper: #fbfaf7;
  --wj-line: #cfd9df;
  --wj-rust: #b76546;
  width: min(100%, 980px);
  min-height: 1260px;
  margin: 0 auto 34px;
  padding: 44px 62px 58px;
  position: relative;
  overflow: hidden;
  background: var(--wj-paper);
  color: var(--wj-ink);
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 14px 35px rgba(22, 61, 91, .18);
}

.wj-mag-page *,
.wj-mag-page *::before,
.wj-mag-page *::after {
  box-sizing: border-box;
}

.wj-mag-page a {
  color: inherit;
}

/* A div is used in the PHP markup on purpose. The parent site's global
 * `header` selector is sticky and dark; a nested semantic header would inherit
 * that site chrome and create the black bar seen in the deployed version. */
.wj-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--wj-line);
  background: transparent;
  color: var(--wj-blue-deep);
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wj-issue {
  color: var(--wj-muted);
  letter-spacing: .08em;
  text-align: right;
}

.wj-issue i {
  padding: 0 5px;
  color: var(--wj-blue);
  font-style: normal;
}

.wj-kicker {
  margin-top: 43px;
  color: var(--wj-rust);
  font: 700 13px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.wj-mag-page h1,
.wj-mag-page h2 {
  color: var(--wj-blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.035em;
}

.wj-mag-page h1 {
  max-width: 840px;
  margin: 10px 0 15px;
  font-size: clamp(44px, 6.2vw, 74px);
  line-height: .96;
}

.wj-feature-title {
  max-width: 780px;
  margin: 10px 0 17px;
  font-size: clamp(38px, 5.3vw, 63px);
  line-height: .99;
}

.wj-dek {
  max-width: 750px;
  margin: 0 0 34px;
  color: #405362;
  font-size: 22px;
  line-height: 1.34;
}

.wj-figure {
  margin: 0;
}

.wj-figure img {
  display: block;
  width: 100%;
  height: 355px;
  object-fit: cover;
  background: #eef3f4;
  border: 1px solid #b9c9d1;
}

.wj-figure.wj-site-screen img {
  object-fit: contain;
  background: #edf2f6;
}

.wj-figure-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wj-figure-pair .wj-figure img {
  height: 250px;
}

.wj-figure-pair-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wj-figure-pair-3 .wj-figure img {
  height: 190px;
}

.wj-figure-pair .wj-figure figcaption {
  font-size: 12.5px;
}

.wj-figure figcaption {
  margin-top: 8px;
  color: #4d5e69;
  font-size: 14px;
  line-height: 1.4;
}

.wj-workflow-note {
  margin: 21px 0 24px;
  padding: 14px 17px 15px;
  border-left: 4px solid var(--wj-rust);
  background: #f4eee9;
}

.wj-workflow-label,
.wj-scenario-label {
  color: var(--wj-rust);
  font: 700 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wj-workflow-note p {
  margin: 7px 0 0;
  color: #405362;
  font-size: 15.5px;
  line-height: 1.47;
}

.wj-article-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 42px;
  margin-top: 35px;
}

.wj-story p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.59;
}

.wj-story > p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  color: var(--wj-rust);
  font-size: 66px;
  line-height: .72;
}

.wj-side {
  padding-left: 24px;
  border-left: 4px solid var(--wj-blue);
}

.wj-side h3 {
  margin: 0 0 13px;
  color: var(--wj-blue-deep);
  font: 700 15px/1.25 Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wj-side ul {
  margin: 0;
  padding-left: 19px;
  color: #405362;
}

.wj-side li {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.42;
}

.wj-scenario {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--wj-line);
}

.wj-scenario-label {
  font-size: 11px;
}

.wj-scenario p {
  margin: 7px 0 0;
  color: #405362;
  font-size: 16px;
  line-height: 1.48;
}

.wj-pull {
  margin-top: 27px;
  padding: 18px 22px 19px;
  background: var(--wj-blue-soft);
  color: var(--wj-blue-deep);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.wj-page-footer {
  position: absolute;
  right: 62px;
  bottom: 25px;
  left: 62px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 11px;
  border-top: 1px solid var(--wj-line);
  color: var(--wj-muted);
  font: 10px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Landing/map page: same paper page and editorial palette, with a compact
 * index added for the independent PHP feature pages. */
.wj-map-page {
  min-height: auto;
}

.wj-wordmark {
  color: var(--wj-blue-deep);
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wj-wordmark span {
  font-weight: 400;
  letter-spacing: .06em;
}

.wj-map-page .wj-masthead {
  color: var(--wj-blue-deep);
}

.wj-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, .94fr);
  gap: 42px;
  align-items: center;
  padding: 22px 0 45px;
}

.wj-cover h1 {
  margin: 10px 0 15px;
  color: var(--wj-blue-deep);
  font-size: clamp(44px, 6.2vw, 74px);
}

.wj-cover h1 em {
  color: var(--wj-blue);
  font-weight: 400;
}

.wj-cover .wj-dek {
  margin-bottom: 18px;
}

.wj-cover-intro {
  max-width: 530px;
  margin: 0;
  color: #405362;
  font-size: 16px;
  line-height: 1.55;
}

.wj-cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 23px;
}

.wj-button {
  display: inline-block;
  padding: 10px 15px;
  background: var(--wj-blue);
  color: #fff !important;
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.wj-button:hover {
  background: var(--wj-blue-deep);
}

.wj-text-link {
  color: var(--wj-blue);
  font: 700 12px/1.3 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.wj-text-link:hover {
  text-decoration: underline;
}

.wj-cover-figure {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--wj-line);
  transform: rotate(1deg);
  box-shadow: 0 12px 22px rgba(31, 78, 121, .12);
}

.wj-cover-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--wj-line);
}

.wj-cover-figure figcaption {
  padding: 9px 4px 1px;
  color: var(--wj-muted);
  font: 11px/1.4 Arial, Helvetica, sans-serif;
}

.wj-opening-note {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 34px;
  padding: 28px 0;
  border-top: 1px solid var(--wj-line);
  border-bottom: 1px solid var(--wj-line);
}

.wj-opening-note h2 {
  margin: 7px 0 17px;
  font-size: clamp(32px, 4.6vw, 55px);
  line-height: .99;
}

.wj-opening-note h2 em {
  color: var(--wj-blue);
  font-weight: 400;
}

.wj-opening-copy p {
  margin: 0 0 16px;
  color: #405362;
  font-size: 17px;
  line-height: 1.59;
}

.wj-opening-copy p:last-child {
  color: var(--wj-blue-deep);
  font-weight: 700;
}

.wj-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 43px;
  border: 1px solid var(--wj-line);
  background: var(--wj-blue-soft);
}

.wj-quick-facts div {
  padding: 16px;
  text-align: center;
}

.wj-quick-facts div + div {
  border-left: 1px solid var(--wj-line);
}

.wj-quick-facts strong,
.wj-quick-facts span {
  display: block;
}

.wj-quick-facts strong {
  color: var(--wj-blue-deep);
  font: 700 25px/1 Arial, Helvetica, sans-serif;
}

.wj-quick-facts span {
  margin-top: 5px;
  color: var(--wj-muted);
  font: 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wj-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 27px;
}

.wj-section-heading h2 {
  margin: 10px 0 17px;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: .99;
}

.wj-section-heading > p {
  margin: 0;
  color: #405362;
  font-size: 16px;
  line-height: 1.55;
}

.wj-map-section {
  margin-top: 28px;
}

.wj-map-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wj-blue);
  color: var(--wj-rust);
  font: 700 11px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wj-map-section-title i {
  color: var(--wj-muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .05em;
}

.wj-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.wj-map-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 15px;
  gap: 9px;
  align-items: start;
  min-height: 89px;
  padding: 16px 3px 14px 0;
  border-bottom: 1px solid var(--wj-line);
  color: var(--wj-blue-deep);
  text-decoration: none;
}

.wj-map-card:hover .wj-map-card-copy strong,
.wj-map-card:hover .wj-map-arrow {
  color: var(--wj-rust);
}

.wj-map-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--wj-blue-soft);
  color: var(--wj-blue-deep);
  font: 700 10px/1 Arial, Helvetica, sans-serif;
}

.wj-map-card-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wj-map-card-copy strong {
  color: var(--wj-blue-deep);
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
}

.wj-map-card-copy span {
  color: var(--wj-muted);
  font: 11px/1.4 Arial, Helvetica, sans-serif;
}

.wj-map-arrow {
  color: var(--wj-blue);
  font: 18px/1 Arial, Helvetica, sans-serif;
}

.wj-closing-panel {
  margin-top: 52px;
  padding: 34px 44px;
  background: var(--wj-blue);
  color: #fff;
}

.wj-closing-panel .wj-kicker {
  margin-top: 0;
  color: #fff;
}

.wj-closing-panel h2 {
  margin: 10px 0 17px;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: .99;
}

.wj-closing-panel p {
  max-width: 600px;
  margin: 0 0 21px;
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
  opacity: .9;
}

.wj-closing-panel .wj-button {
  background: #fff;
  color: var(--wj-blue-deep) !important;
}

.wj-closing-panel .wj-button:hover {
  background: var(--wj-blue-soft);
}

.wj-module-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 11px;
  border-top: 1px solid var(--wj-line);
  color: var(--wj-muted);
  font: 10px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.wj-module-footer a {
  color: var(--wj-blue);
  text-decoration: none;
}

.wj-module-footer a:hover {
  text-decoration: underline;
}

.wj-route-nav {
  width: min(100%, 980px);
  margin: -12px auto 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  color: #245d89;
  font: 700 11px/1.3 Arial, Helvetica, sans-serif;
}

.wj-route-nav a {
  text-decoration: none;
}

.wj-route-nav a:hover {
  color: var(--wj-rust);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .wj-cover,
  .wj-opening-note,
  .wj-section-heading {
    grid-template-columns: 1fr;
  }

  .wj-cover-figure {
    max-width: 600px;
    justify-self: center;
  }

  .wj-article-grid {
    grid-template-columns: 1.08fr .92fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .wj-legacy-main {
    padding: 14px 0 24px;
  }

  .wj-mag-page {
    min-height: auto;
    margin-bottom: 18px;
    padding: 27px 23px 67px;
  }

  .wj-masthead {
    font-size: 9px;
  }

  .wj-kicker {
    margin-top: 32px;
    font-size: 10px;
  }

  .wj-mag-page h1,
  .wj-feature-title {
    font-size: 44px;
  }

  .wj-dek {
    font-size: 19px;
  }

  .wj-figure img {
    height: 260px;
  }

  .wj-figure-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wj-figure-pair .wj-figure img,
  .wj-figure-pair-3 .wj-figure img {
    height: 260px;
  }

  .wj-article-grid {
    grid-template-columns: 1fr;
    gap: 23px;
    margin-top: 27px;
  }

  .wj-story p {
    font-size: 16.5px;
  }

  .wj-side {
    padding-left: 17px;
  }

  .wj-side li {
    font-size: 15px;
  }

  .wj-pull {
    font-size: 20px;
  }

  .wj-page-footer {
    right: 23px;
    bottom: 22px;
    left: 23px;
    font-size: 9px;
  }

  .wj-map-grid,
  .wj-quick-facts {
    grid-template-columns: 1fr;
  }

  .wj-quick-facts div + div {
    border-top: 1px solid var(--wj-line);
    border-left: 0;
  }

  .wj-closing-panel {
    padding: 27px 23px;
  }

  .wj-module-footer,
  .wj-route-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .wj-mag-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
    page-break-after: always;
  }

  .wj-mag-page:last-of-type {
    page-break-after: auto;
  }

  .wj-route-nav {
    display: none;
  }
}
