/* Reusable layout for WhizLearning Kids articles and resource pages. */
.resource-page {
  --resource-ink: #17345e;
  --resource-muted: #50617b;
  --resource-line: #dbe6f3;
  background: #fff;
}

.resource-page .skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffca3a;
  color: #0b235c;
  font-weight: 900;
  transform: translateY(-160%);
}

.resource-page .skip-link:focus {
  transform: translateY(0);
}

.resource-page .site-header {
  background: rgba(214, 0, 17, .96);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(11, 35, 92, .12);
  padding: 10px 0;
}

.resource-page .site-header.scrolled {
  background: rgba(214, 0, 17, .96);
}

.resource-page .resource-container {
  width: min(100% - 36px, 1130px);
  margin-inline: auto;
}

.resource-page .article-hero {
  padding: 145px 0 54px;
  background:
    radial-gradient(circle at 82% 22%, rgba(102, 212, 225, .25), transparent 28%),
    linear-gradient(125deg, #edf4ff, #fff8e2);
}

.resource-page .article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: #536587;
  font-size: .85rem;
  font-weight: 750;
}

.resource-page .article-breadcrumb a {
  color: #174ca1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource-page .article-eyebrow {
  margin-bottom: 13px;
  color: #bf2f3b;
  font-size: .83rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.resource-page .article-hero h1 {
  max-width: 950px;
  margin-bottom: 19px;
  color: #0b235c;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.resource-page .article-deck {
  max-width: 790px;
  margin-bottom: 0;
  color: #395272;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.56;
}

.resource-page .article-media {
  margin: 0;
  background: #dce8f4;
}

.resource-page .article-media img {
  width: 100%;
  height: min(51vw, 580px);
  object-fit: cover;
  object-position: center 44%;
}

.resource-page .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 730px) minmax(245px, 300px);
  gap: clamp(35px, 6vw, 90px);
  align-items: start;
  padding: 72px 0 95px;
}

.resource-page .article-body {
  color: #293c5a;
  font-size: 1.09rem;
  line-height: 1.83;
}

.resource-page .article-body p {
  margin: 0 0 22px;
}

.resource-page .article-body h2 {
  margin: 55px 0 18px;
  color: var(--resource-ink);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.resource-page .article-body h2:first-child {
  margin-top: 0;
}

.resource-page .article-body .article-lead {
  color: #1b365f;
  font-size: 1.23rem;
  line-height: 1.72;
}

.resource-page .article-body .closing-thought {
  margin: 38px 0 26px;
  padding: 21px 25px;
  border-left: 7px solid #ffca3a;
  border-radius: 0 16px 16px 0;
  background: #fff8db;
  color: #173c78;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
}

.resource-page .article-body .article-signoff {
  color: #435875;
  font-size: 1rem;
}

.resource-page .article-aside {
  display: grid;
  gap: 18px;
}

.resource-page .article-aside-card {
  overflow: hidden;
  border: 2px solid var(--resource-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 35, 92, .07);
}

.resource-page .aside-art {
  height: 150px;
  overflow: hidden;
  background: #d8eeff;
}

.resource-page .aside-art img {
  display: block;
  width: 100%;
  height: 100%;
}

.resource-page .camps-art img {
  object-fit: cover;
  object-position: center;
}

.resource-page .whizbot-art {
  background: radial-gradient(circle at 50% 60%, #effaff 0, #b9e7fa 70%, #95cfec);
}

.resource-page .whizbot-art img {
  height: 195px;
  object-fit: contain;
  transform: translateY(-20px);
}

.resource-page .aside-content {
  padding: 22px;
}

.resource-page .aside-content .article-eyebrow {
  margin-bottom: 7px;
  font-size: .71rem;
}

.resource-page .aside-content h2 {
  margin-bottom: 9px;
  color: #0b235c;
  font-size: 1.25rem;
  line-height: 1.25;
}

.resource-page .aside-content p {
  margin-bottom: 14px;
  color: var(--resource-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.resource-page .aside-content a {
  color: #1454a8;
  font-size: .89rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource-page .article-camp-bridge {
  padding: 74px 0 82px;
  background: linear-gradient(125deg, #103675, #0b235c);
  color: #fff;
}

.resource-page .article-camp-bridge .resource-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.resource-page .article-camp-bridge .article-eyebrow {
  color: #ffca3a;
}

.resource-page .article-camp-bridge h2 {
  max-width: 700px;
  margin-bottom: 13px;
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
}

.resource-page .article-camp-bridge p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  color: #e1ecff;
  font-size: 1.02rem;
}

.resource-page .article-camp-bridge .btn {
  white-space: nowrap;
  background: #ffca3a;
  color: #0b235c;
}

.resource-page .article-camp-bridge .btn:hover {
  background: #ffe080;
}

.resource-page a:focus-visible,
.resource-page button:focus-visible {
  outline: 3px solid #ffca3a;
  outline-offset: 4px;
}

/* STEM Adventures hub */
.stem-adventures-page .adventures-hero {
  padding: 145px 0 82px;
  background:
    radial-gradient(circle at 85% 24%, rgba(255, 202, 58, .48), transparent 23%),
    radial-gradient(circle at 73% 70%, rgba(89, 210, 221, .42), transparent 27%),
    linear-gradient(125deg, #edf4ff, #fff9e8);
}

.stem-adventures-page .adventures-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  color: #0b235c;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.stem-adventures-page .adventures-hero .lead {
  max-width: 710px;
  margin: 0;
  color: #365373;
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  line-height: 1.6;
}

.stem-adventures-page .adventures-list {
  padding: 72px 0 95px;
  background: #f6f9ff;
}

.stem-adventures-page .adventures-list h2 {
  max-width: 700px;
  margin-bottom: 12px;
  color: #0b235c;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.stem-adventures-page .adventures-list .section-intro {
  max-width: 700px;
  margin-bottom: 30px;
  color: #4a5d78;
}

.stem-adventures-page .adventure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.stem-adventures-page .adventure-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e4f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 35, 92, .07);
}

.stem-adventures-page .adventure-card:hover,
.stem-adventures-page .adventure-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(11, 35, 92, .14);
}

.stem-adventures-page .adventure-card-art {
  display: grid;
  place-items: center;
  height: 290px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #ecfaff, #a9ddf4 73%, #73b8e3);
}

.stem-adventures-page .adventure-card-art img {
  width: 100%;
  height: 100%;
}

.stem-adventures-page .adventure-card.robot .adventure-card-art img {
  width: 310px;
  max-width: 95%;
  height: 310px;
  object-fit: contain;
  transform: translateY(23px);
}

.stem-adventures-page .adventure-card.article .adventure-card-art img {
  object-fit: cover;
  object-position: center;
}

.stem-adventures-page .adventure-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 27px;
}

.stem-adventures-page .adventure-card-copy .article-eyebrow {
  margin-bottom: 9px;
  font-size: .76rem;
}

.stem-adventures-page .adventure-card-copy h3 {
  margin-bottom: 12px;
  color: #0b235c;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

.stem-adventures-page .adventure-card-copy p {
  margin-bottom: 22px;
  color: #465a77;
}

.stem-adventures-page .adventure-card-copy a {
  align-self: flex-start;
  margin-top: auto;
  color: #1454a8;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 850px) {
  .stem-adventures-page .adventure-grid {
    grid-template-columns: 1fr;
  }
  .resource-page .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 55px 0 70px;
  }
  .resource-page .article-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stem-adventures-page .adventures-hero {
    padding: 118px 0 56px;
  }
  .stem-adventures-page .adventures-list {
    padding: 55px 0 70px;
  }
  .stem-adventures-page .adventure-card-art {
    height: 230px;
  }
  .resource-page .article-hero {
    padding: 118px 0 37px;
  }
  .resource-page .article-breadcrumb {
    margin-bottom: 19px;
  }
  .resource-page .article-media img {
    height: auto;
  }
  .resource-page .article-body {
    font-size: 1.03rem;
    line-height: 1.74;
  }
  .resource-page .article-body h2 {
    margin-top: 43px;
  }
  .resource-page .article-aside {
    grid-template-columns: 1fr;
  }
  .resource-page .article-camp-bridge .resource-container {
    grid-template-columns: 1fr;
  }
  .resource-page .article-camp-bridge .btn {
    justify-self: start;
  }
}
