/* Free Resources: compact, visual cards using the Academy and Mike Weinberg palettes. */
body.is-resources-view .hero {
  display: none;
}

body.is-resources-view .workspace-shell {
  padding-top: clamp(20px, 3vw, 36px);
}

.resources-page {
  display: grid;
  gap: clamp(30px, 4vw, 46px);
}

.resources-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(170px, 0.55fr);
  gap: 16px;
  overflow: hidden;
  min-height: 250px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 16px;
  background: #112c3f;
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 38, 56, 0.14);
}

.resources-intro::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(17, 44, 63, 0) 30%, rgba(240, 79, 35, 0.24));
  content: "";
  pointer-events: none;
}

.resources-intro-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.resources-intro .eyebrow {
  margin-bottom: 14px;
  color: #ffb593;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.resources-intro h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 4.3rem);
  line-height: 0.95;
}

.resources-intro-copy > p:last-child {
  max-width: 48ch;
  margin: 0;
  color: #d9e6eb;
  font-size: 1rem;
  line-height: 1.5;
}

.resources-intro-art {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 175px;
  transform: rotate(-9deg);
}

.resources-intro-art::before,
.resources-intro-art::after {
  position: absolute;
  width: min(230px, 100%);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  content: "";
}

.resources-intro-art::after {
  width: min(180px, 78%);
  border-color: #f04f23;
}

.resources-intro-art span {
  position: absolute;
  top: 12%;
  left: 4%;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.resources-intro-art strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.resources-intro-art i {
  position: absolute;
  right: 0;
  bottom: 12%;
  width: 26px;
  height: 26px;
  background: #f04f23;
  transform: rotate(45deg);
}

.resources-section {
  min-width: 0;
}

.resources-section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 17px;
}

.resources-section-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #f04f23;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.resources-section:nth-of-type(2) .resources-section-number {
  background: #112c3f;
}

.resources-section-heading .eyebrow {
  margin: 0 0 3px;
  color: #c34725;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.resources-section-heading h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.resource-tool-grid,
.resource-download-grid {
  display: grid;
  gap: 16px;
}

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

.resource-tool,
.resource-download {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #d9dedf;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 38, 56, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.resource-tool:hover,
.resource-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(15, 38, 56, 0.12);
}

.resource-tool-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  overflow: hidden;
  padding: 20px 24px;
  background: var(--resource-color);
  color: #fff;
}

.resource-tool-art::after {
  position: absolute;
  right: 10%;
  bottom: -83px;
  width: 184px;
  height: 184px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.resource-tool-art strong {
  position: absolute;
  right: 24px;
  bottom: -36px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 8rem;
  font-weight: 400;
  line-height: 1;
}

.resource-art-label,
.resource-art-number {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.resource-art-number {
  align-self: flex-end;
  opacity: 0.8;
}

.resource-tool--red,
.resource-download--red { --resource-color: #d8172f; }
.resource-tool--navy,
.resource-download--navy { --resource-color: #112c3f; }
.resource-tool--orange,
.resource-download--orange { --resource-color: #f04f23; }
.resource-tool--teal,
.resource-download--teal { --resource-color: #536f73; }

.resource-tool-content,
.resource-download-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 24px;
}

.resource-meta {
  margin: 0 0 8px;
  color: #ad3b21;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.resource-tool h4,
.resource-download h4 {
  margin: 0 0 8px;
  color: #142331;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.08;
}

.resource-tool-content > p:not(.resource-meta),
.resource-download-content > p:not(.resource-meta) {
  flex: 1;
  margin: 0 0 19px;
  color: #52636f;
  font-size: 0.97rem;
  line-height: 1.45;
}

.resource-tool .primary-button,
.resource-download .secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-height: 42px;
}

.resource-tool .primary-button {
  background: #c9212f;
}

.resource-tool .primary-button:hover {
  background: #9f1924;
}

.resource-tool button span,
.resource-download button span {
  font-size: 1.15rem;
  line-height: 1;
}

.resources-note {
  margin: 13px 0 0;
  color: #607384;
  font-size: 0.81rem;
  line-height: 1.45;
}

.resource-download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-download-cover {
  position: relative;
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  padding: 16px 20px;
  background: var(--resource-color);
  color: #fff;
}

.resource-download-cover::after {
  position: absolute;
  right: 47px;
  bottom: -76px;
  width: 144px;
  height: 144px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  content: "";
}

.resource-download-cover span {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.resource-download-cover strong {
  position: absolute;
  right: 15px;
  bottom: -26px;
  font-size: 5.8rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.85;
}

.resource-download-content {
  padding: 18px 20px 20px;
}

.resource-download h4 {
  font-size: 1.18rem;
  line-height: 1.17;
}

.resource-download-content > p:not(.resource-meta) {
  margin-bottom: 15px;
  font-size: 0.87rem;
}

.resource-download .secondary-button {
  border-color: #c8d3dc;
  color: #112c3f;
  font-size: 0.82rem;
}

.resources-page button:focus-visible {
  outline: 3px solid #f04f23;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .resource-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body.is-resources-view .portal-title { display: none; }
  .resources-intro { grid-template-columns: 1fr; min-height: 0; }
  .resources-intro-art { display: none; }
  .resource-tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .resource-download-grid { grid-template-columns: 1fr; }
  .resources-intro { padding: 26px 22px; }
  .resources-section-heading { gap: 11px; }
  .resource-tool-art { min-height: 98px; }
}

@media (prefers-reduced-motion: reduce) {
  .resource-tool,
  .resource-download { transition: none; }
}
