/* Resources catalog: tabs, service cards, responsive details, and shared CTA. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --resource-red: var(--brand-red);
  --resource-red-dark: var(--brand-red-dark);
  --resource-black: var(--brand-black);
  --resource-text: var(--text-main);
  --resource-muted: var(--text-muted);
  --resource-line: #dedede;
  --resource-soft: #f6f6f6;
  --resource-white: #ffffff;
  --resource-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--resource-text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.resources-page {
  width: 100%;
  background:
    radial-gradient(circle at 12% 4%, rgba(225, 25, 25, 0.035), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.resources-catalog {
  position: relative;
  padding: 58px 48px 84px;
  overflow: hidden;
}

.resources-catalog::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 280px;
  height: 390px;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(29, 29, 29, 0.11) 1px, transparent 1.5px),
    linear-gradient(45deg, transparent 49.5%, rgba(225, 25, 25, 0.07) 50%, transparent 50.5%);
  background-size: 17px 17px, 100% 100%;
  pointer-events: none;
  mask-image: linear-gradient(90deg, #000 0%, transparent 95%);
}

.resources-catalog::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -122px;
  right: -116px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(15, 15, 15, 0.045);
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      transparent 0 62px,
      rgba(225, 25, 25, 0.045) 63px 64px,
      transparent 65px 102px,
      rgba(15, 15, 15, 0.04) 103px 105px,
      transparent 106px 143px,
      rgba(225, 25, 25, 0.045) 144px 145px,
      transparent 146px 184px,
      rgba(15, 15, 15, 0.035) 185px 187px,
      transparent 188px);
  pointer-events: none;
}

.resources-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

/* Page heading and category navigation. */
.resources-header {
  display: block;
  margin-bottom: 40px;
}

.resources-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.resources-heading-mark {
  width: 5px;
  height: 23px;
  margin-top: 1px;
  border-radius: 1px;
  background: var(--resource-red);
  box-shadow: 0 4px 12px rgba(225, 25, 25, 0.22);
}

.resources-eyebrow {
  margin-bottom: 13px;
  color: var(--resource-muted);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resources-heading h1 {
  color: var(--resource-black);
  font-size: clamp(48px, 4.5vw, 68px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: uppercase;
}

.resources-heading h1 span {
  color: var(--resource-red);
}

.resources-intro {
  max-width: 650px;
  margin: 20px 0 0 25px;
  color: #565656;
  font-size: 16px;
  line-height: 1.55;
}

.resource-category-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  border-radius: 0;
  background: transparent;
}

.resource-category-tab {
  position: relative;
  min-height: 82px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #646464;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.resource-category-tab:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 0;
  width: 1px;
  height: 32px;
  background: #d7d7d7;
}

.resource-category-tab::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--resource-red);
  box-shadow: 0 5px 13px rgba(225, 25, 25, 0.25);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.resource-tab-icon {
  width: 44px;
  height: 44px;
  color: #4b4b4b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  font-size: 31px;
  transition: color 180ms ease, transform 180ms ease;
}

.resource-tab-icon i {
  line-height: 1;
}

.resource-tab-label {
  white-space: nowrap;
}

.resource-category-tab small {
  margin-left: auto;
  padding: 0;
  background: transparent;
  color: #a2a2a2;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.resource-category-tab:hover {
  color: var(--resource-black);
}

.resource-category-tab:focus {
  outline: none;
}

.resource-category-tab:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(225, 25, 25, 0.34);
}

.resource-category-tab.is-active {
  color: var(--resource-black);
}

.resource-category-tab.is-active::before {
  transform: scaleX(1);
}

.resource-category-tab.is-active .resource-tab-icon {
  color: var(--resource-red);
  transform: translateY(-1px);
}

.resource-category-tab.is-active small {
  background: transparent;
  color: var(--resource-red);
}

.resource-category-panel[hidden] {
  display: none;
}

.resource-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.resource-group-heading p {
  margin-bottom: 5px;
  color: var(--resource-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.resource-group-heading h2 {
  color: var(--resource-black);
  font-size: 29px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.resource-group-heading > span {
  max-width: 470px;
  color: #696969;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

/* Repeated service card grid. */
.resource-card-groups,
.resource-card-row {
  display: grid;
  gap: 24px;
}

.resource-card-row + .resource-card-row {
  margin-top: 24px;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.resource-card {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  min-width: 0;
  height: 354px;
  padding: 22px 26px 0;
  border: 1px solid #d5d5d5;
  border-radius: 15px;
  background: #ffffff;
  color: var(--resource-text);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.035);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.resource-card::before {
  content: none;
}

.resource-card:hover {
  border-color: #aaaaaa;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}

.resource-card.is-selected {
  border: 2px solid var(--resource-red);
  padding: 21px 25px 0;
  box-shadow: 0 18px 42px rgba(225, 25, 25, 0.12);
  transform: translateY(-2px);
}

.resource-card-top {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 26px;
  left: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.resource-card.is-selected .resource-card-top {
  top: 21px;
  right: 25px;
  left: 25px;
}

.resource-card-top strong {
  color: var(--resource-red);
  font-size: 46px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.resource-card-badge {
  max-width: 160px;
  min-height: 43px;
  padding: 8px 12px;
  border: 1px solid var(--resource-red);
  border-radius: 9px;
  color: var(--resource-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.16;
  text-align: center;
  text-transform: uppercase;
}

.resource-card-media {
  position: absolute;
  top: 74px;
  right: 26px;
  left: 26px;
  height: 158px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-card.is-selected .resource-card-media {
  right: 25px;
  left: 25px;
}

.resource-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.resource-card:hover .resource-card-media img {
  transform: scale(1.035);
}

.resource-card-title {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 72px;
  left: 26px;
  min-height: 43px;
  padding: 0;
  color: #111111;
  display: flex;
  align-items: flex-end;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.12;
}

.resource-card.is-selected .resource-card-title {
  right: 25px;
  left: 25px;
}

.resource-card-action {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 0;
  left: 26px;
  height: 58px;
  border-top: 1px solid #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #242424;
  font-size: 15px;
  font-weight: 700;
}

.resource-card.is-selected .resource-card-action {
  right: 25px;
  left: 25px;
}

.resource-card-action i {
  color: var(--resource-red);
  font-size: 22px;
  transition: transform 180ms ease;
}

.resource-card.is-selected .resource-card-action i {
  transform: rotate(45deg);
}

/* Desktop inline service details. */
.resource-detail-panel[hidden] {
  display: none;
}

.resource-detail-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-12px);
  transition: max-height 300ms ease, opacity 240ms ease, transform 300ms ease;
}

.resource-detail-panel.is-open {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

.resource-detail {
  border: 1px solid #dedede;
  border-top: 3px solid var(--resource-red);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: var(--resource-shadow);
  overflow: hidden;
}

.resource-detail-header {
  min-height: 76px;
  padding: 0 28px 0 32px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.resource-detail-header > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.resource-detail-header > div > span {
  color: var(--resource-red);
  font-size: 42px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.resource-detail-header h3 {
  color: var(--resource-black);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.resource-detail-close {
  border: 0;
  background: transparent;
  color: #222222;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.resource-detail-close i {
  font-size: 22px;
}

.resource-detail-main {
  display: grid;
  grid-template-columns: 34% 66%;
  padding: 30px 32px 26px;
}

.resource-detail-overview {
  padding-right: 34px;
  border-right: 1px solid #dedede;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.resource-detail-image {
  width: 100%;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-detail-image img {
  width: min(210px, 78%);
  height: 100%;
  object-fit: contain;
}

.resource-detail-overview p {
  color: #3e3e3e;
  font-size: 14px;
  line-height: 1.58;
}

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

.resource-detail-lists section {
  padding: 4px 30px;
}

.resource-detail-lists section + section {
  border-left: 1px solid #dedede;
}

.resource-detail-lists h4 {
  min-height: 43px;
  margin-bottom: 14px;
  color: #171717;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.025em;
  line-height: 1.35;
  text-transform: uppercase;
}

.resource-detail-lists h4 > i {
  width: 20px;
  color: var(--resource-red);
  flex: 0 0 20px;
  font-size: 18px;
  text-align: center;
}

.resource-detail-lists ul {
  list-style: none;
}

.resource-detail-lists li {
  margin-bottom: 11px;
  color: #303030;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.resource-detail-lists li i {
  margin-top: 1px;
  color: var(--resource-red);
  flex: 0 0 auto;
  font-size: 15px;
}

.resource-detail-footer {
  min-height: 86px;
  margin: 0 14px 14px;
  padding: 13px 16px;
  border: 1px solid #dfdfdf;
  border-radius: 11px;
  background: #fcfcfc;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: center;
}

.resource-detail-note-icon {
  width: 50px;
  height: 50px;
  border: 2px solid var(--resource-red);
  border-radius: 15px 15px 18px 18px;
  color: var(--resource-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.resource-detail-note strong {
  margin-bottom: 4px;
  color: #151515;
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.resource-detail-note p {
  max-width: 690px;
  color: #4f4f4f;
  font-size: 12px;
  line-height: 1.45;
}

.resource-detail-footer > .site-hero-cta {
  justify-self: end;
}

/* Final booking action. */
.resources-footer-cta {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto 84px;
  padding: 30px 34px;
  border-radius: 16px;
  background: var(--brand-black);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.14);
}

.resources-footer-cta p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resources-footer-cta h2 {
  color: #ffffff !important;
  font-size: 25px;
  font-weight: 900;
}

.resources-footer-cta > .site-hero-cta {
  flex: 0 0 auto;
}

/* Tablet and compact desktop adjustments. */
@media (max-width: 1180px) {
  .resources-catalog {
    padding-right: 32px;
    padding-left: 32px;
  }

  .resource-category-tab {
    padding-right: 18px;
    padding-left: 18px;
    gap: 12px;
    font-size: 13px;
  }

  .resource-tab-icon {
    width: 38px;
    flex-basis: 38px;
    font-size: 27px;
  }

  .resource-card-grid {
    gap: 18px;
  }

  .resource-card {
    padding-right: 21px;
    padding-left: 21px;
  }

  .resource-card-action {
    right: 21px;
    left: 21px;
  }

  .resource-detail-main {
    grid-template-columns: 37% 63%;
  }

  .resource-detail-overview {
    padding-right: 24px;
  }

  .resource-detail-lists section {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Mobile cards and bottom-sheet details. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
    background: #ffffff;
  }

  body.resource-modal-open {
    overflow: hidden;
  }

  .resources-page {
    background: #ffffff;
  }

  .resources-catalog {
    /* The shared mobile header is absolute, so reserve its 92px footprint here. */
    padding: 108px 14px 34px;
    overflow: visible;
  }

  .resources-catalog::before,
  .resources-catalog::after {
    content: none;
  }

  .resources-shell {
    width: 100%;
  }

  .resources-header {
    display: none;
  }

  .resource-category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 -14px 24px;
    padding: 0 14px;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
  }

  .resource-category-tab {
    min-height: 94px;
    padding: 10px 6px 12px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: #343434;
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1.1;
    text-align: center;
  }

  .resource-category-tab:not(:last-child)::after {
    top: 17px;
    height: 60px;
    background: #dddddd;
  }

  .resource-category-tab::before {
    height: 2px;
  }

  .resource-tab-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 28px;
  }

  .resource-tab-label {
    white-space: normal;
  }

  .resource-category-tab small {
    margin-left: 0;
    color: #4a4a4a;
    font-size: 11px;
    letter-spacing: 0;
  }

  .resource-category-tab.is-active small {
    color: var(--resource-red);
  }

  .resource-group-heading {
    display: block;
    margin-bottom: 16px;
  }

  .resource-group-heading p {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .resource-group-heading h2 {
    font-size: 26px;
    letter-spacing: 0;
    line-height: 1.05;
  }

  .resource-group-heading > span {
    display: block;
    max-width: none;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
  }

  .resource-card-groups,
  .resource-card-row,
  .resource-card-grid {
    display: grid;
    gap: 9px;
  }

  .resource-card-row + .resource-card-row {
    margin-top: 9px;
  }

  .resource-card-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 126px;
    height: auto;
    padding: 14px 36px 13px 14px;
    border-radius: 11px;
    display: grid;
    grid-template-columns: 42px minmax(76px, 31%) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 10px;
    row-gap: 5px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.045);
  }

  .resource-card:hover,
  .resource-card.is-selected {
    border-color: #d5d5d5;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.045);
    transform: none;
  }

  .resource-card.is-selected {
    padding: 14px 36px 13px 14px;
  }

  .resource-card-top,
  .resource-card.is-selected .resource-card-top {
    position: static;
    display: contents;
  }

  .resource-card-top strong {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: start;
    font-size: 35px;
    letter-spacing: 0;
  }

  .resource-card-badge {
    grid-column: 3;
    grid-row: 2;
    width: fit-content;
    max-width: 132px;
    min-height: 25px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 9px;
    line-height: 1.1;
  }

  .resource-card-media,
  .resource-card.is-selected .resource-card-media {
    position: static;
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    height: 88px;
    align-self: center;
  }

  .resource-card-media img {
    max-width: 100%;
    transform: none;
  }

  .resource-card:hover .resource-card-media img {
    transform: none;
  }

  .resource-card-title,
  .resource-card.is-selected .resource-card-title {
    position: static;
    grid-column: 3;
    grid-row: 1;
    min-height: 0;
    align-items: flex-start;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.12;
  }

  .resource-card-action,
  .resource-card.is-selected .resource-card-action {
    position: static;
    grid-column: 3;
    grid-row: 3;
    height: auto;
    margin-top: 7px;
    padding-top: 9px;
    border-top: 1px solid #e3e3e3;
    font-size: 11px;
    line-height: 1;
  }

  .resource-card-action i {
    position: absolute;
    right: 15px;
    bottom: 18px;
    font-size: 17px;
    transform: none;
  }

  .resource-card.is-selected .resource-card-action i {
    transform: none;
  }

  .resource-detail-panel {
    display: none !important;
  }

  .resources-footer-cta {
    width: calc(100% - 28px);
    margin: 0 auto 42px;
    padding: 23px 20px;
    border-radius: 12px;
    display: grid;
    gap: 18px;
  }

  .resources-footer-cta h2 {
    font-size: 22px;
    line-height: 1.1;
  }

  .resources-footer-cta > .site-hero-cta {
    justify-self: center;
  }

  .resource-mobile-modal[hidden] {
    display: none;
  }

  .resource-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: grid;
    align-items: end;
    pointer-events: none;
  }

  .resource-mobile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    transition: opacity 220ms ease;
  }

  .resource-mobile-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: calc(100svh - 22px);
    border-radius: 16px 16px 0 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -24px 58px rgba(0, 0, 0, 0.24);
    transform: translateY(105%);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .resource-mobile-sheet:focus {
    outline: none;
  }

  .resource-mobile-modal.is-open {
    pointer-events: auto;
  }

  .resource-mobile-modal.is-open .resource-mobile-modal-backdrop {
    opacity: 1;
  }

  .resource-mobile-modal.is-open .resource-mobile-sheet {
    transform: translateY(0);
  }

  .resource-mobile-grip {
    position: absolute;
    top: 9px;
    left: 50%;
    z-index: 3;
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: #cfcfcf;
    transform: translateX(-50%);
  }

  .resource-mobile-content {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .resource-mobile-actions {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    padding: 13px 30px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid #e2e5e8;
    background: #ffffff;
    box-shadow: 0 -10px 24px rgba(16, 19, 25, 0.08);
  }

  .resource-mobile-actions[hidden] {
    display: none;
  }

  .resource-mobile-actions > .site-hero-cta {
    width: 100%;
    margin: 0;
  }

  .resource-mobile-content .resource-detail {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .resource-mobile-content .resource-detail-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 68px;
    padding: 22px 30px 10px;
    background: #ffffff;
  }

  .resource-mobile-content .resource-detail-header > div {
    gap: 10px;
    min-width: 0;
  }

  .resource-mobile-content .resource-detail-header > div > span {
    font-size: 34px;
    letter-spacing: 0;
  }

  .resource-mobile-content .resource-detail-header h3 {
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.1;
  }

  .resource-mobile-content .resource-detail-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    justify-content: center;
  }

  .resource-mobile-content .resource-detail-close span {
    display: none;
  }

  .resource-mobile-content .resource-detail-close i {
    font-size: 23px;
  }

  .resource-mobile-content .resource-detail-main {
    display: block;
    padding: 0 30px 22px;
  }

  .resource-mobile-content .resource-detail-overview {
    padding: 0;
    border-right: 0;
    display: block;
  }

  .resource-mobile-content .resource-detail-image {
    height: 130px;
    margin: 14px 0 18px;
  }

  .resource-mobile-content .resource-detail-image img {
    width: min(230px, 88%);
  }

  .resource-mobile-content .resource-detail-overview p {
    font-size: 13px;
    line-height: 1.45;
  }

  .resource-mobile-content .resource-detail-lists {
    display: block;
    margin-top: 22px;
    border-top: 1px solid #e5e5e5;
  }

  .resource-mobile-content .resource-detail-lists section,
  .resource-mobile-content .resource-detail-lists section + section {
    padding: 0;
    border-left: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .resource-mobile-content .resource-detail-lists h4 {
    position: relative;
    min-height: 58px;
    margin: 0;
    padding: 14px 30px 14px 0;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1.25;
    cursor: pointer;
  }

  .resource-mobile-content .resource-detail-lists h4::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    color: #111111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
  }

  .resource-mobile-content .resource-detail-lists section.is-mobile-open h4::after {
    content: "-";
    color: var(--resource-red);
  }

  .resource-mobile-content .resource-detail-lists h4 > i {
    font-size: 16px;
  }

  .resource-mobile-content .resource-detail-lists ul {
    padding: 0 0 15px;
  }

  .resource-mobile-content .resource-detail-lists li {
    margin-bottom: 12px;
    gap: 10px;
    font-size: 13px;
    line-height: 1.3;
  }

  .resource-mobile-content .resource-detail-footer {
    position: relative;
    margin: 0 30px;
    padding: 16px 0 calc(28px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .resource-mobile-content .resource-detail-footer::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 132px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
  }

  .resource-mobile-content .resource-detail-note-icon,
  .resource-mobile-content .resource-detail-note {
    position: relative;
    z-index: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 18px;
  }

  .resource-mobile-content .resource-detail-note-icon {
    grid-column: 1;
    width: 36px;
    height: 36px;
    margin-left: 14px;
    border-radius: 12px;
    font-size: 17px;
  }

  .resource-mobile-content .resource-detail-note {
    grid-column: 2;
    padding: 0 16px 18px 2px;
  }

  .resource-mobile-content .resource-detail-note strong {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .resource-mobile-content .resource-detail-note p {
    font-size: 12px;
    line-height: 1.45;
  }

  .resource-mobile-content .resource-detail-footer > .site-hero-cta {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 18px;
  }
}

/* Keep service cards readable on compact phones without changing their markup. */
@media (max-width: 360px) {
  .resources-catalog {
    padding-right: 10px;
    padding-left: 10px;
  }

  .resource-category-tabs {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .resource-category-tab {
    min-height: 90px;
    padding-right: 2px;
    padding-left: 2px;
    gap: 5px;
    font-size: 9.5px;
  }

  .resource-category-tab:not(:last-child)::after {
    height: 56px;
  }

  .resource-tab-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 24px;
  }

  .resource-category-tab small {
    font-size: 10px;
  }

  .resource-card,
  .resource-card.is-selected {
    min-height: 146px;
    padding: 13px 28px 12px 10px;
    grid-template-columns: 34px 68px minmax(0, 1fr);
    column-gap: 6px;
  }

  .resource-card-top strong {
    font-size: 30px;
  }

  .resource-card-media,
  .resource-card.is-selected .resource-card-media {
    height: 80px;
  }

  .resource-card-title,
  .resource-card.is-selected .resource-card-title {
    font-size: 16px;
    line-height: 1.08;
  }

  .resource-card-badge {
    max-width: 100%;
    min-height: 23px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .resource-card-action,
  .resource-card.is-selected .resource-card-action {
    font-size: 10px;
  }

  .resource-card-action i {
    right: 10px;
    bottom: 16px;
  }

  .resources-footer-cta {
    width: calc(100% - 20px);
    padding: 21px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
