.resource-detail,
.resource-detail * { box-sizing: border-box; }

.resource-detail {
  --det-max: 1600px;
  --det-gutter: 32px;
  background: #fff;
  padding: 40px 0 64px;
  font-family: 'Roboto', sans-serif;
  color: #2E2E2E;
}

.resource-detail__inner {
  max-width: var(--det-max);
  margin: 0 auto;
  padding: 0 var(--det-gutter);
}

.resource-detail__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #000000;
  margin-bottom: 20px;
}
.resource-detail__crumbs a { color: #000000; text-decoration: none; }
.resource-detail__crumbs a:hover { text-decoration: underline; }

.resource-detail__title {
  font-family: 'Crimson Text', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  color: #005E81;
  margin: 0 0 8px;
}

.resource-detail__date {
  font-size: 13px;
  color: #000000;
  margin-bottom: 28px;
}

/* ---- Hero with offset slab ------------------------------------------
   Slab is nudged down-right behind the photo; the photo sits on top.
   Parent needs the extra bottom padding so the slab has somewhere to
   live — a child margin would escape and move the whole section.      */
.resource-detail__hero {
  position: relative;
  margin-bottom: 40px;
  padding: 0 24px 24px 0;
}

.resource-detail__hero-media {
  position: relative;
  z-index: 2;
  border-radius: 14px;
  overflow: hidden;
}

.resource-detail__hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.resource-detail__hero-slab {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 0;
  bottom: 0;
  left: 48px;
  background: #00AEEF;
  border-radius: 14px;
}

.resource-detail__hero-shape {
  position: absolute;
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.20);
  pointer-events: none;
}

.resource-detail__hero-shape--1 {
  width: 64px;
  height: 64px;
  left: 0;
  bottom: 78px;
}

.resource-detail__hero-shape--2 {
  width: 48px;
  height: 48px;
  left: 42px;
  bottom: 30px;
  background: rgba(2, 175, 239, 0.30);
}

/* ---- Body copy (CKEditor-authored) ---------------------------------- */
.resource-detail__body {
  font-size: 17px;
  line-height: 1.7;
  color: #000000;
}

.resource-detail__inline-figure {
  float: left;
  width: 32%;
  max-width: 420px;
  margin: 120px 28px 16px 0;
  shape-margin: 20px;
}

.resource-detail__inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Float must not escape the body box and collide with the footer. */
.resource-detail__body::after {
  content: "";
  display: block;
  clear: both;
}


.resource-detail__body h2,
.resource-detail__body h3 {
  font-family: 'Crimson Text', serif;
  font-weight: 400;
  color: #003346;
  margin: 32px 0 12px;
}
.resource-detail__body h2 { font-size: 28px; }
.resource-detail__body h3 { font-size: 22px; }

.resource-detail__body p { margin: 0 0 16px; }

.resource-detail__body a { color: #005E81; }

.resource-detail__body img { max-width: 100%; height: auto; border-radius: 10px; }

.resource-detail__body .resource-detail__inline-figure {
  float: left;
  width: 32%;
  max-width: 420px;
  margin: 6px 28px 16px 0;
  shape-margin: 20px;
}

.resource-detail__body figure.align-left {
  float: left;
  width: 32%;
  max-width: 420px;
  margin: 6px 28px 16px 0;
}

.resource-detail__body figcaption {
  font-size: 11px;
  color: #6b6b6b;
  margin-top: 6px;
}

.resource-detail__body blockquote {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 3px solid #00AEEF;
  font-style: italic;
  font-size: 16px;
  color: #003346;
}

/* ---- Footer ---------------------------------------------------------- */
.resource-detail__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.resource-detail__share-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.resource-detail__share-icons { display: flex; gap: 12px; }

.resource-detail__share-icon {
  width: 16px;
  height: 16px;
  background-color: #003346;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  transition: background-color 0.2s ease;
}
.resource-detail__share-icon:hover { background-color: #00AEEF; }

.resource-detail__share-icon--link {
  -webkit-mask-image: url("../images/link2.svg");
          mask-image: url("../images/link2.svg");
}
.resource-detail__share-icon--linkedin {
  -webkit-mask-image: url("../images/linkedin.svg");
          mask-image: url("../images/linkedin.svg");
}
.resource-detail__share-icon--x {
  -webkit-mask-image: url("../images/x.svg");
          mask-image: url("../images/x.svg");
}
.resource-detail__share-icon--facebook {
  -webkit-mask-image: url("../images/facebook.svg");
          mask-image: url("../images/facebook.svg");
}

.resource-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.resource-detail__tag {
  background: #A04D0B;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 767px) {
  .resource-detail__title { font-size: 32px; }
  .resource-detail__hero { padding: 0 14px 14px 0; }
  .resource-detail__hero-slab { top: 14px; left: 28px; }
  .resource-detail__footer { flex-direction: column; align-items: flex-start; }
    .resource-detail__inline-figure {
      float: none;
      width: 100%;
      margin: 0 0 20px;
    }

  .resource-detail__body .align-left,
  .resource-detail__body .align-right {
    float: none;
    display: block;
    width: 70%;
    max-width: none;
    margin: 0 auto 20px;
  }

    .resource-detail {
      --det-gutter: 16px;
    }

        .resource-detail__hero-shape {
          display: none;
        }

        .resource-detail__footer {
          flex-direction: column-reverse;
          align-items: flex-start;
        }

    .resource-detail__share-label {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .resource-detail__share-icons {
    gap: 20px;
  }

  .resource-detail__share-icon {
    width: 20px;
    height: 20px;
  }

  .resource-detail__tag {
    font-size: 12px;
    padding: 8px 16px;
  }

  .resource-detail__tags {
    gap: 10px;
  }
}
