/* Resources editorial rebuild: moving resource routes, visual FAQ and final action. */
body[data-page="resources"] {
  --resources-space-section: clamp(54px, 6vw, 84px);
  --resources-card-gap: clamp(10px, 1.15vw, 16px);
}

body[data-page="resources"] main > :is(.resource-paths, .resource-faq) {
  max-width: none;
  padding-top: var(--resources-space-section);
  padding-bottom: var(--resources-space-section);
}

body[data-page="resources"] .resource-paths {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(38px, 4.5vw, 62px);
}

body[data-page="resources"] .resource-paths > :not(.resource-path-art):not(.resource-path-watermark) {
  position: relative;
  z-index: 2;
}

body[data-page="resources"] .resource-section-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(34px, 5.5vw, 82px);
  max-width: 1288px;
  align-items: center;
  margin: 0 auto clamp(30px, 4vw, 52px);
  isolation: isolate;
}

body[data-page="resources"] .resource-paths .resource-section-head {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(22px, 2.8vw, 36px);
}

body[data-page="resources"] .resource-faq .resource-section-head {
  display: block;
}

body[data-page="resources"] .resource-section-copy {
  position: relative;
  z-index: 2;
  max-width: 830px;
}

body[data-page="resources"] .resource-section-head h2 {
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
}

body[data-page="resources"] .resource-section-head h2 em {
  color: var(--burgundy);
  font-weight: 400;
}

body[data-page="resources"] .resource-section-copy > p:last-child {
  max-width: 590px;
  margin: clamp(18px, 2.1vw, 25px) 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.7;
}

body[data-page="resources"] .resource-loop {
  position: relative;
  max-width: 1288px;
  margin: 0 auto;
  isolation: isolate;
}

body[data-page="resources"] .resource-loop-viewport {
  position: relative;
  overflow: hidden;
  direction: ltr;
}

body[data-page="resources"] .resource-loop-controls {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 0 0 16px;
}

body[data-page="resources"] .resource-loop-controls button {
  display: inline-grid;
  height: 38px;
  min-width: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(247, 242, 233, .72);
  color: var(--burgundy);
  padding: 0;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

body[data-page="resources"] .resource-loop-controls button i {
  font-size: .88rem;
  font-style: normal;
  line-height: 1;
}

body[data-page="resources"] .resource-loop-controls button:hover,
body[data-page="resources"] .resource-loop-controls button:focus-visible {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--cream);
  transform: translateY(-2px);
}

body[data-page="resources"] .resource-loop-controls button:focus-visible,
body[data-page="resources"] [data-resource-carousel-track]:focus-visible,
body[data-page="resources"] .resource-faq-card:focus-visible {
  outline: 3px solid rgba(68, 7, 9, .34);
  outline-offset: 3px;
}

body[data-page="resources"] [data-resource-carousel-track] {
  display: flex;
  width: max-content;
  gap: var(--resources-card-gap);
  overflow: visible;
  padding: 2px 0 18px;
  touch-action: pan-y;
  cursor: grab;
}

body[data-page="resources"] [data-resource-carousel-track].is-dragging { cursor: grabbing; }

body[data-page="resources"] [data-resource-carousel-item] {
  flex: 0 0 var(--resource-card-width);
  min-width: 0;
}

body[data-page="resources"] .resource-path-art,
body[data-page="resources"] .resource-cta-art {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(41, 4, 5, .1);
}

body[data-page="resources"] .resource-path-art {
  position: absolute;
  inset-block: clamp(10px, 2vw, 30px) -140px;
  inset-inline-end: clamp(-340px, -13vw, -112px);
  z-index: 0;
  width: min(92vw, 1380px);
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: .16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .42) 22%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .42) 22%, #000 62%);
}

body[data-page="resources"] .resource-path-art::after,
body[data-page="resources"] .resource-cta-art::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 250, 240, .42);
  content: "";
  pointer-events: none;
}

body[data-page="resources"] .resource-path-art::after { content: none; }

body[data-page="resources"] :is(.resource-path-art, .resource-cta-art) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="resources"] .resource-path-art img {
  object-position: center 56%;
  filter: grayscale(.28) sepia(.16) saturate(.68) contrast(.96);
}

body[data-page="resources"] .resource-path-watermark {
  position: absolute;
  top: clamp(138px, 15vw, 206px);
  inset-inline-end: clamp(-28px, 2vw, 32px);
  z-index: 1;
  color: rgba(68, 7, 9, .065);
  font-family: var(--serif);
  font-size: clamp(5.4rem, 15vw, 13rem);
  letter-spacing: -.065em;
  line-height: .78;
  pointer-events: none;
  white-space: nowrap;
}

body[data-page="resources"] .resource-route-loop {
  --resource-card-width: min(calc(100vw - 40px), 1288px);
}

body[data-page="resources"] .resource-route-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

body[data-page="resources"] .resource-route-track {
  cursor: default;
}

body[data-page="resources"] .resource-route-loop .resource-loop-controls {
  margin-bottom: 12px;
}

body[data-page="resources"] .resource-route-card {
  display: grid;
  min-height: clamp(430px, 38vw, 520px);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  overflow: hidden;
  border: 1px solid rgba(68, 7, 9, .2);
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 24px 54px rgba(41, 4, 5, .09);
}

body[data-page="resources"] .resource-route-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(32px, 4.1vw, 58px);
  background: linear-gradient(110deg, rgba(255, 250, 240, .99), rgba(247, 242, 233, .94));
}

body[data-page="resources"] .resource-route-copy > span {
  display: none;
}

body[data-page="resources"] .resource-route-copy .eyebrow {
  margin: clamp(38px, 5vw, 70px) 0 15px;
  color: var(--burgundy);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
}

body[data-page="resources"] .resource-route-copy h3 {
  max-width: 650px;
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .96;
}

body[data-page="resources"] .resource-route-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 27px;
  color: var(--muted);
  font-size: clamp(.72rem, .9vw, .82rem);
  line-height: 1.7;
}

body[data-page="resources"] .resource-route-copy a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding: 12px 0 4px;
  border-bottom: 1px solid rgba(68, 7, 9, .38);
  color: var(--burgundy);
  font-size: .68rem;
  font-weight: 600;
  transition: border-color .2s ease, gap .2s ease;
}

body[data-page="resources"] .resource-route-copy a i { font-style: normal; }
body[data-page="resources"] .resource-route-copy a:hover { gap: 22px; border-color: var(--burgundy); }
body[data-page="resources"] .resource-route-copy a:focus-visible { outline: 3px solid rgba(68, 7, 9, .34); outline-offset: 5px; }

body[data-page="resources"] .resource-route-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  background: var(--paper) var(--resource-poster) center / cover no-repeat;
}

body[data-page="resources"] .resource-route-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 242, 233, .16), rgba(68, 7, 9, .025));
  content: "";
  pointer-events: none;
}

body[data-page="resources"] .resource-route-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.01);
}

body[data-page="resources"] .resource-faq {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--cream);
  isolation: isolate;
}

body[data-page="resources"] .resource-faq::before {
  position: absolute;
  top: clamp(28px, 3.5vw, 54px);
  inset-inline-end: clamp(-180px, -8vw, -84px);
  z-index: 0;
  width: min(46vw, 640px);
  aspect-ratio: 1 / 1;
  background: url("assets/admissions/shadows/document-evidence-v1.jpg") center / cover no-repeat;
  content: "";
  opacity: .09;
  filter: grayscale(.34) sepia(.24) saturate(.64) contrast(.92);
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, rgba(0, 0, 0, .82) 48%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 28%, rgba(0, 0, 0, .82) 48%, transparent 78%);
}

body[data-page="resources"] .resource-faq > * {
  position: relative;
  z-index: 1;
}

body[data-page="resources"] .resource-faq-loop { --resource-card-width: clamp(285px, 28.6vw, 390px); }
body[data-page="resources"] .resource-faq-track { cursor: ew-resize; }
body[data-page="resources"] .resource-faq-track.is-dragging { cursor: grabbing; }

body[data-page="resources"] .resource-faq-card {
  position: relative;
  min-height: 430px;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1400px;
  -webkit-perspective: 1400px;
}

body[data-page="resources"] .resource-faq-card-inner {
  position: relative;
  width: 100%;
  min-height: inherit;
  transform: translateZ(0);
  transform-style: preserve-3d;
  -webkit-transform: translateZ(0);
  -webkit-transform-style: preserve-3d;
  isolation: isolate;
}

body[data-page="resources"] .resource-faq-face {
  position: absolute;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(24px, 2.5vw, 32px);
  border: 1px solid rgba(68, 7, 9, .14);
  inset: 0;
  background: var(--paper);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition:
    transform .72s cubic-bezier(.2, .68, .2, 1),
    opacity 0s linear .36s,
    visibility 0s linear .36s;
  -webkit-transition:
    -webkit-transform .72s cubic-bezier(.2, .68, .2, 1),
    opacity 0s linear .36s,
    visibility 0s linear .36s;
}

body[data-page="resources"] .resource-faq-front {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0deg) translateZ(.01px);
  -webkit-transform: rotateY(0deg) translateZ(.01px);
}

body[data-page="resources"] .resource-faq-front::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 242, 233, .12) 0%, rgba(247, 242, 233, .45) 48%, rgba(247, 242, 233, .98) 100%),
    url("assets/resources/faq-study-atlas-v1.jpg") var(--faq-image-position) / 400% 200% no-repeat;
  content: "";
  filter: saturate(.78) sepia(.04);
  transform: scale(1.012);
  transition: filter .5s ease, transform .8s ease;
}

body[data-page="resources"] .resource-faq-front::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(68, 7, 9, .13);
  content: "";
  pointer-events: none;
}

body[data-page="resources"] .resource-faq-face > * {
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body[data-page="resources"] .resource-faq-face > span {
  color: var(--burgundy);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .12em;
}

body[data-page="resources"] .resource-faq-front h3 {
  max-width: 92%;
  margin: auto 0 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .96;
}

body[data-page="resources"] .resource-faq-front > i {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 18px 0 0 auto;
  place-items: center;
  border: 1px solid rgba(68, 7, 9, .28);
  border-radius: 50%;
  color: var(--burgundy);
  font-style: normal;
}

body[data-page="resources"] .resource-faq-back {
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(238, 231, 215, .55), transparent 54%),
    var(--paper);
  transform: rotateY(180deg) translateZ(.01px);
  -webkit-transform: rotateY(180deg) translateZ(.01px);
}

body[data-page="resources"] .resource-faq-back::after {
  position: absolute;
  right: -36px;
  bottom: -74px;
  color: rgba(68, 7, 9, .045);
  content: "?";
  font-family: var(--serif);
  font-size: 270px;
  line-height: 1;
  pointer-events: none;
}

body[data-page="resources"] .resource-faq-back p {
  max-height: 290px;
  margin: clamp(28px, 5vw, 62px) 0 0;
  overflow-y: auto;
  color: var(--ink);
  font-size: clamp(.75rem, .9vw, .84rem);
  line-height: 1.72;
  scrollbar-color: rgba(68, 7, 9, .3) transparent;
}

body[data-page="resources"] .resource-faq-card.is-flipped .resource-faq-front {
  visibility: hidden;
  opacity: 0;
  transform: rotateY(-180deg) translateZ(.01px);
  -webkit-transform: rotateY(-180deg) translateZ(.01px);
}

body[data-page="resources"] .resource-faq-card.is-flipped .resource-faq-back {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0deg) translateZ(.01px);
  -webkit-transform: rotateY(0deg) translateZ(.01px);
}

/*
 * Safari/WebKit fallback: a scrollable answer can be promoted to a separate
 * compositing layer during a 3D turn, causing the two text faces to flash over
 * one another. The Apple-specific class is set by resources-interactions.js.
 * Switching display guarantees a single painted face without relying on
 * fragile 3D layering or cross-face transitions.
 */
html.guga-apple-webkit body[data-page="resources"] .resource-faq-card-inner {
  transform: none;
  transform-style: flat;
  -webkit-transform: none;
  -webkit-transform-style: flat;
}

html.guga-apple-webkit body[data-page="resources"] .resource-faq-face {
  position: relative;
  width: 100%;
  min-height: inherit;
  inset: auto;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transform: none;
  -webkit-transform: none;
  transition: none;
  -webkit-transition: none;
}

html.guga-apple-webkit body[data-page="resources"] .resource-faq-face > * {
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

html.guga-apple-webkit body[data-page="resources"] .resource-faq-face[hidden] {
  display: none !important;
}

html.guga-apple-webkit body[data-page="resources"] .resource-faq-front {
  display: flex;
  visibility: visible;
  opacity: 1;
}

html.guga-apple-webkit body[data-page="resources"] .resource-faq-back {
  display: none;
  visibility: hidden;
  opacity: 0;
}

html.guga-apple-webkit body[data-page="resources"] .resource-faq-card.is-flipped .resource-faq-front {
  display: none;
  visibility: hidden;
  opacity: 0;
}

html.guga-apple-webkit body[data-page="resources"] .resource-faq-card.is-flipped .resource-faq-back {
  display: flex;
  visibility: visible;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="resources"] .resource-faq-card:hover .resource-faq-front::before { filter: saturate(.9); transform: scale(1.055); }
}

body[data-page="resources"] .resource-final-cta.page-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 5vw, 76px);
  max-width: none;
  overflow: hidden;
  padding-top: clamp(34px, 3.8vw, 50px);
  padding-bottom: clamp(34px, 3.8vw, 50px);
  border-color: rgba(255, 250, 240, .2);
  background:
    linear-gradient(105deg, rgba(68, 7, 9, 1) 0%, rgba(68, 7, 9, .98) 48%, rgba(68, 7, 9, .78) 100%),
    var(--burgundy);
  color: var(--cream);
  isolation: isolate;
}

body[data-page="resources"] .resource-final-cta.page-cta .resource-cta-copy {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 820px;
}
body[data-page="resources"] .resource-final-cta.page-cta .section-index { color: rgba(255, 250, 240, .72); }
body[data-page="resources"] .resource-final-cta.page-cta h2 {
  max-width: 780px;
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  color: var(--cream);
}
body[data-page="resources"] .resource-final-cta.page-cta h2 em { color: rgba(255, 250, 240, .76); font-weight: 400; }
body[data-page="resources"] .resource-final-cta.page-cta p { max-width: 620px; color: rgba(255, 250, 240, .74); }
body[data-page="resources"] .resource-final-cta.page-cta .resource-cta-copy > p:last-of-type { margin-top: 20px; }
body[data-page="resources"] .resource-final-cta.page-cta .button {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: end;
  justify-self: end;
  margin-top: 0;
  border-color: var(--cream);
  background: var(--cream);
  color: var(--burgundy);
}
body[data-page="resources"] .resource-final-cta.page-cta .button:hover {
  border-color: var(--cream);
  background: transparent;
  color: var(--cream);
}
body[data-page="resources"] .resource-final-cta.page-cta .button:focus-visible {
  outline: 3px solid rgba(255, 250, 240, .5);
  outline-offset: 4px;
}
body[data-page="resources"] .resource-cta-art {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 0;
  width: min(52vw, 820px);
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: .24;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .58) 34%, #000 68%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .58) 34%, #000 68%);
}
body[data-page="resources"] .resource-cta-art::after { content: none; }
body[data-page="resources"] .resource-cta-art img {
  object-position: center 58%;
  filter: grayscale(.12) sepia(.18) saturate(.72) contrast(.94);
}

/* The topic chips are real routes; keep the decorative letter from blocking the final link. */
body[data-page="resources"] .topic-visual-copy::after { pointer-events: none; }
body[data-page="resources"] .topic-visual-copy > * { position: relative; z-index: 1; }
body[data-page="resources"] .brand-story-resources::before { top: clamp(-115px, -8vw, -28px); }
body[data-page="resources"] .topic-chips a:hover,
body[data-page="resources"] .topic-chips a:focus-visible {
  border-color: #fffaf0;
  background: #fffaf0;
  color: var(--burgundy);
  transform: translateY(-3px);
}
body[data-page="resources"] .topic-chips a:focus-visible { outline: 3px solid rgba(255, 250, 240, .38); outline-offset: 3px; }

html[dir="rtl"] body[data-page="resources"] .resource-loop-controls { justify-content: flex-start; }
html[dir="rtl"] body[data-page="resources"] .resource-faq-front > i { margin-right: auto; margin-left: 0; }
html[dir="rtl"] body[data-page="resources"] .resource-path-art {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .42) 22%, #000 62%);
  mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .42) 22%, #000 62%);
}
html[dir="rtl"] body[data-page="resources"] .resource-cta-art {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .58) 34%, #000 68%);
  mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .58) 34%, #000 68%);
}
html[lang^="zh"] body[data-page="resources"] .resource-faq-head h2 em { display: none; }

@media (max-width: 1024px) {
  body[data-page="resources"] .resource-section-head { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 34px; }
  body[data-page="resources"] .resource-route-card { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); }
  body[data-page="resources"] .resource-route-copy { padding: 34px; }
  body[data-page="resources"] .resource-route-copy .eyebrow { margin-top: 32px; }
  body[data-page="resources"] .resource-faq-loop { --resource-card-width: clamp(290px, 42vw, 372px); }
  body[data-page="resources"] .resource-final-cta.page-cta .resource-cta-copy { width: auto; max-width: 720px; }
  body[data-page="resources"] .resource-cta-art { width: 58vw; }
  body[data-page="resources"] .resource-path-art {
    inset-inline-end: -32%;
    width: 128%;
  }
}

@media (max-width: 760px) {
  body[data-page="resources"] main > :is(.resource-paths, .resource-faq) { padding-inline: 20px; }
  body[data-page="resources"] .resource-section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 26px; }
  body[data-page="resources"] .resource-section-head h2 { font-size: clamp(2.72rem, 13vw, 4.4rem); }
  body[data-page="resources"] .resource-section-copy > p:last-child { max-width: 560px; }
  body[data-page="resources"] .resource-path-art { min-height: 0; }
  body[data-page="resources"] .resource-path-watermark { top: 150px; inset-inline-end: -12px; font-size: clamp(4.5rem, 24vw, 7rem); }
  body[data-page="resources"] .resource-route-loop { --resource-card-width: 100%; }
  body[data-page="resources"] .resource-route-card { min-height: 0; grid-template-columns: 1fr; }
  body[data-page="resources"] .resource-route-copy { min-height: 430px; padding: 28px 24px 30px; }
  body[data-page="resources"] .resource-route-copy .eyebrow { margin-top: 24px; }
  body[data-page="resources"] .resource-route-copy h3 { font-size: clamp(2.25rem, 10.5vw, 3.35rem); }
  body[data-page="resources"] .resource-route-copy > p:not(.eyebrow) { font-size: .75rem; line-height: 1.65; }
  body[data-page="resources"] .resource-route-media { min-height: clamp(210px, 66vw, 315px); }
  body[data-page="resources"] .resource-loop-controls { justify-content: flex-start; margin-bottom: 13px; }
  body[data-page="resources"] .resource-faq-loop { --resource-card-width: min(84vw, 340px); }
  body[data-page="resources"] .resource-faq::before {
    top: 72px;
    inset-inline-end: -132px;
    width: min(102vw, 410px);
    opacity: .065;
  }
  body[data-page="resources"] [data-resource-carousel-track] { padding-bottom: 14px; }
  body[data-page="resources"] .resource-faq-card { min-height: 420px; }
  body[data-page="resources"] .resource-faq-card-inner { transform: none !important; transform-style: flat; -webkit-transform: none !important; -webkit-transform-style: flat; }
  body[data-page="resources"] .resource-faq-face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transition: transform .28s ease, opacity 0s linear .14s, visibility 0s linear .14s;
    -webkit-transition: -webkit-transform .28s ease, opacity 0s linear .14s, visibility 0s linear .14s;
  }
  body[data-page="resources"] .resource-faq-front { visibility: visible; opacity: 1; transform: none; -webkit-transform: none; }
  body[data-page="resources"] .resource-faq-back { visibility: hidden; opacity: 0; transform: translateY(12px); -webkit-transform: translateY(12px); }
  body[data-page="resources"] .resource-faq-card.is-flipped .resource-faq-front { visibility: hidden; opacity: 0; transform: translateY(-8px); -webkit-transform: translateY(-8px); }
  body[data-page="resources"] .resource-faq-card.is-flipped .resource-faq-back { visibility: visible; opacity: 1; transform: none; -webkit-transform: none; }
  body[data-page="resources"] .resource-faq-back p { max-height: 310px; }
  body[data-page="resources"] .resource-final-cta.page-cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: clamp(38px, 11vw, 50px) 20px;
  }
  body[data-page="resources"] .resource-final-cta.page-cta .resource-cta-copy { width: 100%; }
  body[data-page="resources"] .resource-final-cta.page-cta .button { grid-column: 1; width: 100%; justify-self: stretch; }
  body[data-page="resources"] .resource-path-art {
    inset-block: -2% -78px;
    inset-inline-end: -62%;
    width: 176%;
    opacity: .12;
  }
  body[data-page="resources"] .resource-cta-art {
    inset-inline-end: -28%;
    width: 118%;
    min-height: 0;
    opacity: .105;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .52) 34%, #000 76%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .52) 34%, #000 76%);
  }
  html[dir="rtl"] body[data-page="resources"] .resource-cta-art {
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .52) 34%, #000 76%);
    mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .52) 34%, #000 76%);
  }
}

@media (max-width: 360px) {
  body[data-page="resources"] main > :is(.resource-paths, .resource-faq) { padding-inline: 16px; }
  body[data-page="resources"] .resource-faq-loop { --resource-card-width: min(86vw, 292px); }
  body[data-page="resources"] .resource-route-copy { min-height: 440px; padding: 24px 20px 26px; }
  body[data-page="resources"] .resource-faq-card { min-height: 410px; }
  body[data-page="resources"] .resource-faq-face { padding: 23px; }
  body[data-page="resources"] .resource-faq-front h3 { font-size: 2.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="resources"] .resource-loop-controls button,
  body[data-page="resources"] .resource-route-copy a,
  body[data-page="resources"] .resource-faq-card-inner,
  body[data-page="resources"] .resource-faq-face,
  body[data-page="resources"] .resource-faq-front::before,
  body[data-page="resources"] .topic-chips a { transition: none; }
  body[data-page="resources"] .topic-chips a:hover { transform: none; }
  body[data-page="resources"] .resource-route-media video { display: none; }
}

/* 2026-07-22: tighter first route, calmer background art and stable autoplay media. */
body[data-page="resources"] {
  --resources-space-section: clamp(48px, 5vw, 72px);
}

body[data-page="resources"] .resource-paths {
  padding-top: clamp(24px, 3vw, 40px);
}

body[data-page="resources"] .resource-paths .resource-section-head {
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

body[data-page="resources"] .resource-route-track {
  margin-top: 0;
  padding-top: 0;
}

body[data-page="resources"] .resource-path-art {
  display: none;
}

body[data-page="resources"] .resource-route-media video {
  pointer-events: none;
}

body[data-page="resources"] .resource-route-card {
  min-height: 500px;
}

body[data-page="resources"] .resource-route-copy {
  padding: 34px 38px;
}

body[data-page="resources"] .resource-route-copy .eyebrow {
  margin-top: 0;
}

/* Keep route imagery as a restrained rear layer instead of a cropped half-card. */
@media (min-width: 761px) {
  body[data-page="resources"] .resource-route-card {
    position: relative;
    display: block;
    min-height: 470px;
    isolation: isolate;
  }

  body[data-page="resources"] .resource-route-copy {
    min-height: 470px;
    padding-inline-end: clamp(330px, 37vw, 470px);
    background: linear-gradient(90deg, rgba(255,250,240,.995) 0%, rgba(255,250,240,.97) 52%, rgba(255,250,240,.54) 72%, rgba(255,250,240,.08) 100%);
  }

  body[data-page="resources"] .resource-route-media {
    position: absolute;
    z-index: 0;
    inset-block: 7%;
    inset-inline-end: 2.5%;
    width: min(36%, 430px);
    min-height: 0;
    height: 86%;
    opacity: .9;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.78) 28%, #000 58%, rgba(0,0,0,.86) 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.78) 28%, #000 58%, rgba(0,0,0,.86) 100%);
  }

  body[data-page="resources"] .resource-route-media::after {
    background: linear-gradient(90deg, rgba(247,242,233,.1), transparent 58%);
  }

  html[dir="rtl"] body[data-page="resources"] .resource-route-copy {
    padding-inline: clamp(330px, 37vw, 470px) 38px;
    background: linear-gradient(270deg, rgba(255,250,240,.995) 0%, rgba(255,250,240,.97) 52%, rgba(255,250,240,.54) 72%, rgba(255,250,240,.08) 100%);
  }

  html[dir="rtl"] body[data-page="resources"] .resource-route-media {
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,.78) 28%, #000 58%, rgba(0,0,0,.86) 100%);
    mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,.78) 28%, #000 58%, rgba(0,0,0,.86) 100%);
  }
}

@media (max-width: 1024px) {
  body[data-page="resources"] .resource-path-art { display: none; }
}

@media (max-width: 760px) {
  body[data-page="resources"] main > :is(.resource-paths, .resource-faq) { padding-block: 42px; }
  body[data-page="resources"] .resource-paths { padding-top: 22px; }
  body[data-page="resources"] .resource-paths .resource-section-head { margin-bottom: 14px; }
  body[data-page="resources"] .resource-route-copy { min-height: 370px; padding: 24px 22px 27px; }
  body[data-page="resources"] .resource-route-media,
  body[data-page="resources"] .resource-route-media video { min-height: 230px; height: 230px; }
  body[data-page="resources"] .resource-path-art { display: none; }
}

@media (max-width: 360px) {
  body[data-page="resources"] .resource-route-copy { min-height: 390px; padding-inline: 19px; }
}

/* 2026-07-22: one restrained section-level knowledge visual, never heading art. */
body[data-page="resources"] .resource-path-art {
  display: block;
  inset: auto;
  top: clamp(18px, 2.8vw, 42px);
  inset-inline-end: clamp(24px, 6vw, 92px);
  z-index: 0;
  width: min(40vw, 520px);
  height: clamp(230px, 26vw, 340px);
  opacity: .13;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .62) 32%, #000 76%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .62) 32%, #000 76%);
}

body[data-page="resources"] .resource-path-art img {
  object-position: 66% center;
  filter: grayscale(.16) sepia(.12) saturate(.82) contrast(.96);
}

html[dir="rtl"] body[data-page="resources"] .resource-path-art {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .62) 32%, #000 76%);
  mask-image: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, .62) 32%, #000 76%);
}

@media (max-width: 760px) {
  body[data-page="resources"] .resource-path-art {
    display: block;
    top: 18px;
    inset-inline-end: -54px;
    width: min(64vw, 245px);
    height: 178px;
    opacity: .075;
  }
}

/* 2026-07-23: one centred route card with compact numeric navigation. */
body[data-page="resources"] .resource-route-loop {
  width: min(100%, 1102px);
  max-width: 1102px;
  margin-inline: auto;
  padding: clamp(14px, 2vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(68, 7, 9, .17);
  background: var(--cream);
  box-shadow: 0 22px 56px rgba(41, 4, 5, .08);
}

body[data-page="resources"] .resource-route-loop .resource-loop-controls {
  direction: ltr;
  min-height: 38px;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
}

body[data-page="resources"] .resource-route-loop .resource-loop-controls button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(68, 7, 9, .22);
  border-radius: 50%;
  background: rgba(255, 250, 240, .74);
  color: rgba(68, 7, 9, .72);
  font: 600 .62rem/1 var(--sans);
  letter-spacing: .04em;
}

body[data-page="resources"] .resource-route-loop .resource-loop-controls button:hover,
body[data-page="resources"] .resource-route-loop .resource-loop-controls button:focus-visible {
  border-color: var(--burgundy);
  background: rgba(255, 250, 240, .96);
  color: var(--burgundy);
  transform: none;
}

body[data-page="resources"] .resource-route-loop .resource-loop-controls button[aria-current="true"] {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--cream);
}

body[data-page="resources"] .resource-route-loop .resource-loop-viewport {
  overflow: hidden;
  border: 1px solid rgba(68, 7, 9, .14);
}

@media (min-width: 761px) {
  body[data-page="resources"] .resource-route-loop .resource-route-card {
    position: relative;
    display: grid;
    min-height: 470px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    isolation: isolate;
  }

  body[data-page="resources"] .resource-route-loop .resource-route-copy {
    min-height: 470px;
    padding: 34px 38px;
    background: var(--paper);
  }

  body[data-page="resources"] .resource-route-loop .resource-route-media {
    position: relative;
    z-index: 0;
    inset: auto;
    width: auto;
    min-height: 470px;
    height: 100%;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body[data-page="resources"] .resource-route-loop .resource-route-media video {
    min-height: 470px;
    height: 100%;
  }

  html[dir="rtl"] body[data-page="resources"] .resource-route-loop .resource-route-copy {
    padding: 34px 38px;
    background: var(--paper);
  }

  html[dir="rtl"] body[data-page="resources"] .resource-route-loop .resource-route-media {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 760px) {
  body[data-page="resources"] .resource-route-loop { padding: 10px; }
  body[data-page="resources"] .resource-route-head {
    margin-bottom: 10px;
    padding: 10px 9px 0;
  }
  body[data-page="resources"] .resource-route-loop .resource-loop-controls { justify-content: flex-start; }
  body[data-page="resources"] .resource-route-loop .resource-loop-controls button {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
  body[data-page="resources"] .resource-route-loop .resource-route-media { order: -1; }
}

/* 2026-07-23: original planning still-life, enlarged beyond the section edge with a soft organic fade. */
body[data-page="resources"] .resource-path-art {
  display: block;
  overflow: visible;
  top: clamp(-74px, -4.8vw, -34px);
  right: clamp(-210px, -12vw, -112px);
  left: auto;
  width: clamp(610px, 54vw, 830px);
  height: auto;
  aspect-ratio: 1280 / 853;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: .19;
  mix-blend-mode: multiply;
  transform: rotate(-1.4deg);
  -webkit-mask-image: radial-gradient(ellipse 72% 67% at 57% 49%, #000 20%, rgba(0, 0, 0, .9) 48%, rgba(0, 0, 0, .34) 67%, transparent 88%);
  mask-image: radial-gradient(ellipse 72% 67% at 57% 49%, #000 20%, rgba(0, 0, 0, .9) 48%, rgba(0, 0, 0, .34) 67%, transparent 88%);
}

body[data-page="resources"] .resource-path-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(.1) sepia(.08) saturate(.88) contrast(.95);
}

html[dir="rtl"] body[data-page="resources"] .resource-path-art {
  right: auto;
  left: clamp(-210px, -12vw, -112px);
  transform: rotate(1.4deg) scaleX(-1);
  -webkit-mask-image: radial-gradient(ellipse 72% 67% at 43% 49%, #000 20%, rgba(0, 0, 0, .9) 48%, rgba(0, 0, 0, .34) 67%, transparent 88%);
  mask-image: radial-gradient(ellipse 72% 67% at 43% 49%, #000 20%, rgba(0, 0, 0, .9) 48%, rgba(0, 0, 0, .34) 67%, transparent 88%);
}

@media (max-width: 1024px) {
  body[data-page="resources"] .resource-path-art {
    top: -28px;
    right: -210px;
    width: clamp(540px, 76vw, 700px);
    opacity: .14;
  }

  html[dir="rtl"] body[data-page="resources"] .resource-path-art {
    right: auto;
    left: -210px;
  }
}

@media (max-width: 760px) {
  body[data-page="resources"] .resource-path-art {
    top: -12px;
    right: -174px;
    width: 430px;
    height: auto;
    opacity: .075;
    transform: rotate(-2deg);
  }

  html[dir="rtl"] body[data-page="resources"] .resource-path-art {
    right: auto;
    left: -174px;
    transform: rotate(2deg) scaleX(-1);
  }
}
