/**
 * Curated Resource Hub — scoped redesign surface.
 * Tokens from Arize Design System May 2026. Classes prefixed arh- to avoid theme collisions.
 */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap');

.arh {
  /* Light mode (default) — follows site `html.dark` from system preference. */
  color-scheme: light;
  --arh-page: #f8f8f6;
  --arh-page-alt: #eef0f2;
  --arh-surface: #fbfbf9;
  --arh-t1: #121221;
  --arh-t2: #73738c;
  --arh-t3: #8f8f9c;
  --arh-hair: rgba(19, 22, 64, 0.12);
  --arh-hair-strong: rgba(19, 22, 64, 0.2);
  --arh-nav-border: rgba(19, 22, 64, 0.12);
  --arh-pill-bg: rgba(18, 18, 33, 0.05);
  --arh-pill-border: rgba(19, 22, 64, 0.14);
  --arh-glow-op: 0.35;
  --arh-ph-base: #eef0f2;
  --arh-ph-stripe: rgba(117, 130, 255, 0.1);
  --arh-pink: #ea338a;
  --arh-cta: #d41c7a;
  --arh-cta-hover: #e03088;
  --arh-teal: #008394;
  --arh-indigo: #5a63d6;
  --arh-shadow-card: 0 4px 32px rgba(18, 18, 33, 0.08);
  --arh-cta-surface: #ffffff;
  --arh-cta-title: #121221;
  --arh-cta-sub: #73738c;
  --arh-cta-glow: radial-gradient(ellipse at center, rgba(117, 130, 255, 0.18) 0%, rgba(248, 248, 246, 0) 62%);
  --arh-radius-xs: 2px;
  --arh-radius-sm: 4px;

  background: var(--arh-page);
  color: var(--arh-t1);
  font-family: Rubik, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dark .arh {
  color-scheme: dark;
  --arh-page: #121221;
  --arh-page-alt: #0e0d14;
  --arh-surface: #1a1a2c;
  --arh-t1: #f7f7fc;
  --arh-t2: #ababba;
  --arh-t3: #8f8fa5;
  --arh-hair: rgba(194, 196, 234, 0.14);
  --arh-hair-strong: rgba(194, 196, 234, 0.22);
  --arh-nav-border: #262030;
  --arh-pill-bg: rgba(247, 247, 252, 0.05);
  --arh-pill-border: rgba(247, 247, 252, 0.16);
  --arh-ph-base: #15151f;
  --arh-ph-stripe: rgba(177, 185, 249, 0.07);
  --arh-indigo: #7582ff;
  --arh-shadow-card: 0 4px 32px rgba(0, 0, 0, 0.1);
  --arh-cta-surface: #080d0c;
  --arh-cta-title: #f7f7fc;
  --arh-cta-sub: #ababba;
  --arh-cta-glow: radial-gradient(ellipse at center, #5c2c74 0%, rgba(18, 18, 33, 0) 60%);
}

.arh *,
.arh *::before,
.arh *::after {
  box-sizing: border-box;
}

.arh a {
  color: inherit;
  text-decoration: none;
}

.arh img {
  display: block;
  max-width: 100%;
}

.arh-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.arh-mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
}

.arh-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arh-indigo);
}

/* Buttons */
.arh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--arh-radius-xs);
  font-family: Rubik, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.arh-btn--primary,
.arh a.arh-btn--primary {
  background: var(--arh-cta);
  border-color: var(--arh-cta);
  color: #fff;
}

.arh-btn--primary:hover,
.arh a.arh-btn--primary:hover {
  background: var(--arh-cta-hover);
  border-color: var(--arh-cta-hover);
  color: #fff;
}

.arh-btn--secondary {
  background: transparent;
  color: var(--arh-t1);
  border-color: var(--arh-hair-strong);
}

.arh-btn--secondary:hover {
  border-color: var(--arh-t1);
  background: var(--arh-pill-bg);
  color: var(--arh-t1);
}

.arh-btn--lg {
  padding: 13px 22px;
  font-size: 16px;
}

.arh-btn--sm {
  padding: 7px 13px;
  font-size: 13px;
}

/* Learn subnav */
.arh-subnav {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: var(--arh-page);
  border-bottom: 1px solid var(--arh-nav-border);
}

.arh-subnav__row {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.arh-subnav__row::-webkit-scrollbar {
  display: none;
}

.arh-subnav__brand {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arh-t3);
  margin-right: 20px;
  flex-shrink: 0;
}

.arh-subnav__link {
  font-size: 14px;
  color: var(--arh-t2);
  padding: 7px 13px;
  border-radius: var(--arh-radius-xs);
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease;
}

.arh-subnav__link:hover {
  color: var(--arh-t1);
  background: var(--arh-pill-bg);
}

.arh-subnav__link--active {
  color: var(--arh-t1);
}

.arh-subnav__link--active::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 6px;
  background: var(--arh-pink);
  border-radius: 2px;
}

.arh-subnav__spacer {
  flex: 1;
}

/* Topic bar */
.arh-topicbar {
  border-bottom: 1px solid var(--arh-nav-border);
  background: var(--arh-page);
}

.arh-topicbar__row {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.arh-topicbar__row::-webkit-scrollbar {
  display: none;
}

.arh-topicbar__lead {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arh-t3);
  margin-right: 14px;
  flex-shrink: 0;
}

.arh-topic {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--arh-t2);
  padding: 7px 12px;
  border-radius: var(--arh-radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: color 140ms ease;
}

.arh-topic:hover {
  color: var(--arh-t1);
}

.arh-topic--active {
  color: var(--arh-t1);
}

.arh-topic--active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--arh-indigo);
}

/* Sections */
.arh-section {
  padding: 84px 0;
  position: relative;
}

.arh-section--tight {
  padding: 56px 0;
}

.arh-section--alt {
  background: var(--arh-page-alt);
}

.arh-section__head {
  margin-bottom: 40px;
}

.arh-section__title {
  font-family: Rubik, sans-serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 14px 0 0;
  color: var(--arh-t1);
}

.arh-section__lead {
  font-family: Rubik, sans-serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--arh-t2);
  margin: 14px 0 0;
  max-width: 620px;
}

.arh-section__link {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--arh-indigo);
}

.arh-section__link:hover {
  color: var(--arh-t1);
}

.arh-section__headrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* Tags */
.arh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arh-tag--pm {
  color: var(--arh-indigo);
}

.arh-tag--tut {
  color: var(--arh-teal);
}

.arh-tag--field {
  color: #c99be8;
}

.arh-tag--case {
  color: var(--arh-pink);
}

.arh-tag--video {
  color: #e8a04e;
}

.arh-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

/* Placeholder media */
.arh-ph {
  position: relative;
  background-color: var(--arh-ph-base);
  background-image: repeating-linear-gradient(
    135deg,
    var(--arh-ph-stripe) 0 1px,
    transparent 1px 11px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arh-t3);
  overflow: hidden;
}

.arh-ph__label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arh-t3);
  border: 1px dashed var(--arh-hair-strong);
  padding: 5px 11px;
  border-radius: 3px;
  background: var(--arh-page);
  opacity: 0.92;
}

.arh-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Featured story — left media fills card height; image cover anchored left. */
.arh-feature {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--arh-hair);
  border-radius: 6px;
  overflow: hidden;
  background: var(--arh-surface);
  box-shadow: var(--arh-shadow-card);
}

.arh-feature__media {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 280px;
}

.arh-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.arh-feature__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.arh-feature__title {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--arh-t1);
}

.arh-feature__desc {
  font-family: Rubik, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--arh-t2);
  margin: 0;
}

.arh-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--arh-t3);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.arh-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--arh-t3);
}

/* Cards */
.arh-card {
  background: var(--arh-surface);
  border: 1px solid var(--arh-hair);
  border-radius: var(--arh-radius-sm);
  box-shadow: var(--arh-shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.arh-card:hover {
  border-color: var(--arh-hair-strong);
  transform: translateY(-2px);
}

.arh-card__media {
  height: 170px;
}

.arh-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.arh-card__title {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--arh-t1);
  margin: 0;
  letter-spacing: -0.005em;
}

.arh-card__desc {
  font-family: Rubik, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--arh-t2);
  margin: 0;
}

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

.arh-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Paths */
.arh-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arh-path {
  border: 1px solid var(--arh-hair);
  border-radius: 6px;
  padding: 26px;
  background: var(--arh-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.arh-path:hover {
  transform: translateY(-2px);
  border-color: var(--arh-indigo);
}

.arh-path--accent {
  border-left: 2px solid var(--arh-indigo);
}

.arh-path__k {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arh-indigo);
}

.arh-path__t {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--arh-t1);
  margin: 4px 0 0;
}

.arh-path__d {
  font-family: Rubik, sans-serif;
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--arh-t2);
  margin: 0;
}

/* PM cards */
.arh-pmcard {
  background: var(--arh-surface);
  border: 1px solid var(--arh-hair);
  border-left: 2px solid var(--arh-indigo);
  border-radius: var(--arh-radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--arh-shadow-card);
  transition: border-color 160ms ease, transform 160ms ease;
}

.arh-pmcard:hover {
  transform: translateY(-2px);
  border-left-color: var(--arh-pink);
}

.arh-pmcard__media {
  height: 140px;
  flex-shrink: 0;
}

.arh-pmcard__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.arh-pmcard__title {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  color: var(--arh-t1);
  margin: 0;
}

.arh-pmcard__desc {
  font-family: Rubik, sans-serif;
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--arh-t2);
  margin: 0;
}

.arh-pmcard__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--arh-hair);
}

.arh-pmcard__row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.arh-pmcard__k {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--arh-t3);
  min-width: 64px;
  flex-shrink: 0;
  padding-top: 1px;
}

.arh-pmcard__v {
  color: var(--arh-t2);
  font-weight: 300;
}

.arh-chip {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--arh-pill-bg);
  border: 1px solid var(--arh-pill-border);
  color: var(--arh-t2);
}

/* Newsletter */
.arh-newsletter {
  border: 1px solid var(--arh-hair);
  border-radius: 6px;
  padding: 44px;
  background: var(--arh-surface);
  position: relative;
  /* Keep overflow visible so HubSpot validation/success text isn't clipped. */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.arh-newsletter__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.arh-newsletter__form iframe {
  width: 100%;
  max-width: 388px;
  height: 32px;
  border: 0;
  background: transparent;
}

.arh-newsletter input[type='email'] {
  width: 280px;
  max-width: 100%;
  padding: 13px 14px;
  border-radius: var(--arh-radius-xs);
  border: 1px solid var(--arh-hair-strong);
  background: var(--arh-page);
  color: var(--arh-t1);
  font-family: Rubik, sans-serif;
  font-size: 15px;
}

.arh-newsletter input::placeholder {
  color: var(--arh-t3);
}

/* Video hub */
.arh-videohub {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 28px;
  align-items: start;
}

.arh-videohub__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arh-videoframe {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--arh-hair);
  background: #000;
  box-shadow: var(--arh-shadow-card);
}

.arh-videoframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.arh-videohub__now {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--arh-t1);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.arh-videohub__sub {
  font-family: Rubik, sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--arh-t2);
  margin: 6px 0 0;
  line-height: 1.5;
}

.arh-videolist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 486px;
  overflow-y: auto;
  padding-right: 4px;
}

.arh-videolist__item {
  display: flex;
  gap: 13px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  background: transparent;
  transition: background 140ms ease, border-color 140ms ease;
  width: 100%;
  font-family: inherit;
  color: inherit;
}

.arh-videolist__item:hover {
  background: var(--arh-pill-bg);
}

.arh-videolist__item[aria-current='true'] {
  background: var(--arh-surface);
  border-color: var(--arh-hair-strong);
}

.arh-videolist__thumb {
  position: relative;
  width: 124px;
  aspect-ratio: 16 / 9;
  border-radius: var(--arh-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.arh-videolist__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arh-videolist__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}

.arh-videolist__item[aria-current='true'] .arh-videolist__play {
  opacity: 0;
}

.arh-videolist__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  justify-content: center;
}

.arh-videolist__tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8a04e;
}

.arh-videolist__title {
  font-family: Rubik, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--arh-t1);
  line-height: 1.3;
  margin: 0;
}

.arh-videolist__dur {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--arh-t3);
}

/* CTA */
.arh-cta {
  position: relative;
  overflow: hidden;
  background: var(--arh-cta-surface);
  border: 1px solid var(--arh-hair);
  border-radius: 8px;
  padding: 64px 48px;
  text-align: center;
}

.arh-cta__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--arh-cta-glow);
  mix-blend-mode: normal;
  opacity: 1;
  pointer-events: none;
}

.dark .arh-cta__glow {
  mix-blend-mode: screen;
  opacity: 0.6;
}

.arh-cta__title {
  font-family: Stakkat, Rubik, sans-serif;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--arh-cta-title);
  margin: 0;
  position: relative;
}

.arh-cta__sub {
  font-family: Rubik, sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--arh-cta-sub);
  margin: 18px 0 28px;
  position: relative;
}

.arh-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}

/* Empty state */
.arh-empty {
  font-family: Rubik, sans-serif;
  font-size: 18px;
  color: var(--arh-t2);
  margin: 0;
  padding: 48px 0;
}

@media (max-width: 980px) {
  .arh-grid-3,
  .arh-grid-4,
  .arh-paths {
    grid-template-columns: repeat(2, 1fr);
  }

  .arh-feature,
  .arh-videohub {
    grid-template-columns: 1fr;
  }

  .arh-feature__media {
    max-width: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .arh-videolist {
    max-height: none;
  }

  .arh-section__title {
    font-size: 28px;
  }

  .arh-feature__title {
    font-size: 26px;
  }

  .arh-cta__title {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .arh-wrap {
    padding: 0 20px;
  }

  .arh-subnav__row,
  .arh-topicbar__row {
    padding: 0 20px;
  }

  .arh-grid-3,
  .arh-grid-4,
  .arh-paths {
    grid-template-columns: 1fr;
  }

  .arh-newsletter {
    padding: 28px;
  }

  .arh-feature__body {
    padding: 24px;
  }

  .arh-cta {
    padding: 40px 24px;
  }
}
