/* ==========================================================================
   Resources page — Prime Investments Hong Kong Limited
   Page-specific layout only. Shared tokens/components live in site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Featured guides
   -------------------------------------------------------------------------- */
.resources-guides .section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.resources-guides__grid {
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   Tool callout cards (calculator / FAQ)
   -------------------------------------------------------------------------- */
.resources-tools__grid {
  align-items: stretch;
}

.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(201, 162, 39, 0.1), transparent 55%),
    var(--ivory);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 9, 53, 0.26);
  box-shadow: var(--shadow-md);
}

.resource-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(100, 9, 53, 0.1);
  border-radius: 14px;
  background-color: var(--surface);
  color: var(--brand-700);
}

.resource-card__icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.resource-card .eyebrow {
  margin-bottom: 0.65rem;
}

.resource-card__title {
  margin: 0;
  font-size: var(--h3);
  line-height: 1.22;
}

.resource-card__text {
  margin: 0.9rem 0 1.5rem;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.resource-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Glossary
   -------------------------------------------------------------------------- */
.resources-glossary {
  position: relative;
}

.resources-glossary .section-head {
  margin-bottom: 2rem;
}

.resources-glossary .accordion {
  border-top-color: var(--line-strong);
}

.resources-glossary .accordion__trigger {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .resource-card:hover {
    transform: none;
  }
}
