/* ============================================================
   Resources Hub + Editorial Article
============================================================ */
.hua-resource-hub,
.hua-resource-article { overflow: hidden; background: var(--hua-white); }

/* Shared breadcrumb */
.hua-resource-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  color: var(--hua-faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hua-resource-breadcrumb a { color: var(--hua-muted); }
.hua-resource-breadcrumb a:hover { color: var(--hua-navy); }

/* Hub hero */
.hua-resource-hero {
  position: relative;
  padding: 168px 0 104px;
  background:
    radial-gradient(circle at 14% 24%, rgba(201,162,39,.09), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--hua-ivory) 100%);
}
.hua-resource-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--hua-border); }
.hua-resource-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr);
  gap: clamp(64px, 8vw, 124px);
  align-items: center;
}
.hua-resource-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--hua-navy);
  font-family: var(--hua-serif);
  font-size: clamp(76px, 7.4vw, 112px);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.052em;
}
.hua-resource-hero h1 em { color: var(--hua-gold); font-style: normal; }
.hua-resource-hero__lead { max-width: 650px; margin: 30px 0 0; color: var(--hua-muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.72; }
.hua-resource-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.hua-resource-hero__actions .hua-text-link { border: 0; background: transparent; cursor: pointer; }
.hua-resource-hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  margin: 0;
  border-radius: 34px;
  background: var(--hua-card);
  box-shadow: var(--hua-shadow-high);
}
.hua-resource-hero__visual img { width: 100%; height: 610px; object-fit: cover; object-position: center; }
.hua-resource-hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,28,58,.76) 100%); }
.hua-resource-hero__visual figcaption { position: absolute; z-index: 2; inset: auto 34px 32px; color: var(--hua-white); }
.hua-resource-hero__visual strong { display: block; font-family: var(--hua-serif); font-size: 31px; font-weight: 600; line-height: 1; }
.hua-resource-hero__visual span { display: block; margin-top: 7px; color: rgba(255,255,255,.7); font-size: 11px; }

/* Topic index */
.hua-resource-index { background: var(--hua-white); }
.hua-resource-index__list { border-top: 1px solid var(--hua-border); }
.hua-resource-index__list a {
  display: grid;
  grid-template-columns: 76px minmax(240px, .75fr) minmax(320px, 1fr) 36px;
  gap: 28px;
  align-items: center;
  min-height: 116px;
  border-bottom: 1px solid var(--hua-border);
  transition: padding-left .35s var(--hua-ease), color .35s var(--hua-ease);
}
.hua-resource-index__list a:hover { padding-left: 14px; color: var(--hua-gold); }
.hua-resource-index__list span { color: var(--hua-gold); font-family: var(--hua-serif); font-size: 26px; }
.hua-resource-index__list strong { color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(28px, 2.6vw, 39px); font-weight: 600; line-height: 1; }
.hua-resource-index__list small { color: var(--hua-muted); font-size: 12px; line-height: 1.5; }
.hua-resource-index__list i { color: var(--hua-navy); font-style: normal; font-size: 24px; transition: transform .35s var(--hua-ease); }
.hua-resource-index__list a:hover i { transform: translate(4px, 4px); }

/* Study framework */
.hua-resource-framework { padding: clamp(92px, 9vw, 150px) 0; color: var(--hua-white); background: var(--hua-navy); }
.hua-resource-framework__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: clamp(72px, 9vw, 142px); align-items: center; }
.hua-resource-framework__media { overflow: hidden; min-height: 680px; margin: 0; border-radius: 32px; }
.hua-resource-framework__media img { width: 100%; height: 680px; object-fit: cover; transition: transform 1.1s var(--hua-ease); }
.hua-resource-framework__media:hover img { transform: scale(1.025); }
.hua-resource-framework__content h2 { max-width: 600px; margin: 0; font-family: var(--hua-serif); font-size: clamp(58px, 6.3vw, 92px); font-weight: 600; line-height: .9; letter-spacing: -.045em; }
.hua-resource-framework__content > p:not(.hua-eyebrow) { max-width: 540px; margin: 26px 0 0; color: rgba(255,255,255,.65); }
.hua-resource-framework__content ol { margin: 44px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.hua-resource-framework__content li { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hua-resource-framework__content li > span { color: var(--hua-gold-light); font-family: var(--hua-serif); font-size: 24px; }
.hua-resource-framework__content strong { display: block; font-family: var(--hua-serif); font-size: 25px; font-weight: 600; line-height: 1; }
.hua-resource-framework__content small { display: block; margin-top: 7px; color: rgba(255,255,255,.57); font-size: 11px; line-height: 1.55; }

/* Resource library */
.hua-resource-library { background: var(--hua-ivory); }
.hua-resource-library__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-bottom: 56px; }
.hua-resource-library__header h2 { max-width: 800px; margin: 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(54px, 5.8vw, 84px); font-weight: 600; line-height: .94; letter-spacing: -.04em; }
.hua-resource-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 560px; }
.hua-resource-filters button { min-height: 40px; padding: 9px 14px; border: 1px solid var(--hua-border); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--hua-muted); cursor: pointer; font-size: 10px; font-weight: 500; transition: background .3s var(--hua-ease), color .3s var(--hua-ease), border-color .3s var(--hua-ease); }
.hua-resource-filters button:hover,
.hua-resource-filters button.is-active { border-color: var(--hua-navy); background: var(--hua-navy); color: var(--hua-white); }
.hua-resource-library__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hua-resource-card { display: grid; overflow: hidden; min-height: 520px; border: 1px solid var(--hua-border); border-radius: 28px; background: var(--hua-white); box-shadow: 0 16px 50px rgba(8,28,58,.06); }
.hua-resource-card--featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 610px; }
.hua-resource-card__media { overflow: hidden; min-height: 260px; background: var(--hua-card); }
.hua-resource-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s var(--hua-ease); }
.hua-resource-card:hover .hua-resource-card__media img { transform: scale(1.035); }
.hua-resource-card__body { display: flex; flex-direction: column; padding: 38px; }
.hua-resource-card__meta { display: flex; justify-content: space-between; gap: 20px; color: var(--hua-gold); font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hua-resource-card__meta small { color: var(--hua-faint); font-size: 9px; }
.hua-resource-card h3 { margin: 26px 0 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(34px, 3.7vw, 55px); font-weight: 600; line-height: .96; letter-spacing: -.025em; }
.hua-resource-card:not(.hua-resource-card--featured) h3 { font-size: clamp(31px, 2.7vw, 42px); }
.hua-resource-card__body > p { margin: 18px 0 30px; color: var(--hua-muted); font-size: 12px; }
.hua-resource-card .hua-text-link { margin-top: auto; }
.hua-resource-card[hidden] { display: none; }
.hua-resource-empty { padding: 30px; border-radius: 22px; background: var(--hua-white); color: var(--hua-muted); text-align: center; }
.hua-resource-library__empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr); gap: 64px; align-items: end; padding: 54px; border: 1px solid var(--hua-border); border-radius: 30px; background: var(--hua-white); }
.hua-resource-library__empty h3 { max-width: 700px; margin: 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(43px, 5vw, 70px); font-weight: 600; line-height: .95; }
.hua-resource-library__empty > p { margin: 0; color: var(--hua-muted); }

/* FAQ */
.hua-resource-faq { background: var(--hua-white); }
.hua-resource-faq__grid { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); gap: clamp(72px, 9vw, 146px); align-items: start; }
.hua-resource-faq__intro { position: sticky; top: 128px; }
.hua-resource-faq__intro h2 { margin: 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(52px, 5.7vw, 82px); font-weight: 600; line-height: .94; letter-spacing: -.04em; }
.hua-resource-faq__intro > p:last-child { margin: 24px 0 0; color: var(--hua-muted); }
.hua-resource-faq__items article { border-top: 1px solid var(--hua-border); }
.hua-resource-faq__items article:last-child { border-bottom: 1px solid var(--hua-border); }
.hua-resource-faq__items button { display: grid; grid-template-columns: 1fr 36px; gap: 24px; align-items: center; width: 100%; padding: 26px 0; border: 0; background: transparent; color: var(--hua-navy); text-align: left; cursor: pointer; font-family: var(--hua-serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.hua-resource-faq__items i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--hua-border); border-radius: 50%; font-family: var(--hua-sans); font-style: normal; font-size: 18px; transition: transform .3s var(--hua-ease); }
.hua-resource-faq__items button[aria-expanded="true"] i { transform: rotate(45deg); }
.hua-resource-faq__items article > div { padding: 0 64px 26px 0; color: var(--hua-muted); }
.hua-resource-faq__items article > div p { margin: 0; }

/* Hub CTA */
.hua-resource-cta { position: relative; overflow: hidden; padding: clamp(100px, 10vw, 160px) 0; color: var(--hua-white); background: linear-gradient(135deg, #06152c, var(--hua-navy) 55%, #0d2b52); text-align: center; }
.hua-resource-cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 740px; height: 740px; border: 1px solid rgba(226,201,108,.13); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 90px rgba(226,201,108,.035), 0 0 0 180px rgba(226,201,108,.02); }
.hua-resource-cta__inner { position: relative; }
.hua-resource-cta h2 { max-width: 980px; margin: 0 auto; font-family: var(--hua-serif); font-size: clamp(58px, 6.8vw, 98px); font-weight: 600; line-height: .9; letter-spacing: -.045em; }
.hua-resource-cta__inner > p:not(.hua-eyebrow) { max-width: 650px; margin: 26px auto 0; color: rgba(255,255,255,.65); }
.hua-resource-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* ============================================================
   Single resource article
============================================================ */
.hua-resource-article__hero { padding: 170px 0 86px; background: linear-gradient(180deg, #fff, var(--hua-ivory)); }
.hua-resource-article__heading { max-width: 990px; margin: 0 auto; text-align: center; }
.hua-resource-article__heading h1 { margin: 0; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(68px, 7.8vw, 116px); font-weight: 600; line-height: .89; letter-spacing: -.052em; }
.hua-resource-article__dek { max-width: 760px; margin: 28px auto 0; color: var(--hua-muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; }
.hua-resource-article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; color: var(--hua-faint); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.hua-resource-article__media { overflow: hidden; height: min(68vw, 760px); margin-top: 0; border-radius: 34px; background: var(--hua-card); box-shadow: var(--hua-shadow-high); }
.hua-resource-article__media img { width: 100%; height: 100%; object-fit: cover; }
.hua-resource-article__layout { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: center; gap: clamp(60px, 8vw, 120px); padding-top: 96px; padding-bottom: 140px; }
.hua-resource-article__aside { align-self: start; position: sticky; top: 126px; display: grid; gap: 34px; }
.hua-resource-toc { padding: 24px 0; border-top: 1px solid var(--hua-border); border-bottom: 1px solid var(--hua-border); }
.hua-resource-toc > p { margin: 0 0 14px; color: var(--hua-navy); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hua-resource-toc ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hua-resource-toc a { color: var(--hua-muted); font-size: 11px; line-height: 1.5; }
.hua-resource-toc a:hover,
.hua-resource-toc a.is-active { color: var(--hua-gold); }
.hua-resource-author { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; }
.hua-resource-author img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 18%; background: var(--hua-card); }
.hua-resource-author strong,
.hua-resource-author span { display: block; }
.hua-resource-author strong { color: var(--hua-navy); font-family: var(--hua-serif); font-size: 18px; line-height: 1; }
.hua-resource-author span { margin-top: 5px; color: var(--hua-faint); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.hua-resource-article__content { min-width: 0; color: #26354a; font-family: Georgia, serif; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.9; }
.hua-resource-article__content > *:first-child { margin-top: 0; }
.hua-resource-article__content h2 { scroll-margin-top: 132px; margin: 76px 0 24px; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(43px, 4.5vw, 64px); font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.hua-resource-article__content h3 { scroll-margin-top: 132px; margin: 46px 0 18px; color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(31px, 3vw, 43px); font-weight: 600; line-height: 1; }
.hua-resource-article__content p { margin: 0 0 28px; }
.hua-resource-article__content ul,
.hua-resource-article__content ol { margin: 0 0 30px; padding-left: 1.2em; }
.hua-resource-article__content li + li { margin-top: 9px; }
.hua-resource-article__content blockquote { margin: 48px 0; padding: 8px 0 8px 30px; border-left: 2px solid var(--hua-gold); color: var(--hua-navy); font-family: var(--hua-serif); font-size: clamp(29px, 3vw, 42px); line-height: 1.15; }
.hua-resource-article__content img { border-radius: 22px; }
.hua-resource-article__content a { color: var(--hua-navy); text-decoration: underline; text-decoration-color: var(--hua-gold); text-underline-offset: 4px; }
.hua-resource-article__next { padding: clamp(90px, 9vw, 145px) 0; color: var(--hua-white); background: var(--hua-navy); }
.hua-resource-article__next-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); gap: clamp(70px, 9vw, 140px); align-items: end; }
.hua-resource-article__next h2 { max-width: 760px; margin: 0; font-family: var(--hua-serif); font-size: clamp(56px, 6.3vw, 92px); font-weight: 600; line-height: .9; letter-spacing: -.045em; }
.hua-resource-article__next-grid > div:last-child > p { margin: 0; color: rgba(255,255,255,.65); }
.hua-resource-article__next-grid > div:last-child > div { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.hua-text-link--light { color: var(--hua-white); }

@media (max-width: 1080px) {
  .hua-resource-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 50px; }
  .hua-resource-hero__visual,
  .hua-resource-hero__visual img { min-height: 540px; height: 540px; }
  .hua-resource-framework__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hua-resource-framework__media,
  .hua-resource-framework__media img { min-height: 580px; height: 580px; }
  .hua-resource-card--featured { grid-template-columns: 1fr 1fr; }
  .hua-resource-article__layout { grid-template-columns: 220px minmax(0, 700px); gap: 60px; }
}

@media (max-width: 860px) {
  .hua-resource-hero { padding-top: 138px; }
  .hua-resource-hero__grid,
  .hua-resource-framework__grid,
  .hua-resource-faq__grid,
  .hua-resource-article__next-grid { grid-template-columns: 1fr; }
  .hua-resource-hero__visual { min-height: 520px; }
  .hua-resource-hero__visual img { height: 520px; }
  .hua-resource-index__list a { grid-template-columns: 56px 1fr 30px; gap: 16px; padding: 22px 0; }
  .hua-resource-index__list small { grid-column: 2; }
  .hua-resource-index__list i { grid-column: 3; grid-row: 1 / span 2; }
  .hua-resource-library__header { grid-template-columns: 1fr; align-items: start; }
  .hua-resource-filters { justify-content: flex-start; }
  .hua-resource-card--featured { grid-template-columns: 1fr; }
  .hua-resource-faq__intro { position: static; }
  .hua-resource-article__layout { grid-template-columns: 1fr; padding-top: 70px; }
  .hua-resource-article__aside { position: static; }
  .hua-resource-author { display: none; }
  .hua-resource-toc { max-width: 560px; }
  .hua-resource-library__empty { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .hua-resource-hero { padding: 118px 0 72px; }
  .hua-resource-breadcrumb { margin-bottom: 28px; }
  .hua-resource-hero h1 { font-size: clamp(58px, 16vw, 76px); }
  .hua-resource-hero__actions { align-items: stretch; }
  .hua-resource-hero__actions .hua-button { width: 100%; }
  .hua-resource-hero__visual,
  .hua-resource-hero__visual img { min-height: 420px; height: 420px; }
  .hua-resource-hero__visual figcaption { inset: auto 24px 24px; }
  .hua-resource-index__list a { grid-template-columns: 44px 1fr 28px; min-height: 0; }
  .hua-resource-index__list strong { font-size: 27px; }
  .hua-resource-framework__media,
  .hua-resource-framework__media img { min-height: 430px; height: 430px; }
  .hua-resource-framework__content h2 { font-size: clamp(50px, 14vw, 66px); }
  .hua-resource-library__grid { grid-template-columns: 1fr; }
  .hua-resource-card--featured { grid-column: auto; }
  .hua-resource-card { min-height: 0; }
  .hua-resource-card__body { padding: 28px 24px; }
  .hua-resource-library__empty { padding: 34px 24px; }
  .hua-resource-filters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .hua-resource-filters button { width: 100%; }
  .hua-resource-faq__items button { font-size: 24px; }
  .hua-resource-faq__items article > div { padding-right: 0; }
  .hua-resource-cta__actions { align-items: stretch; }
  .hua-resource-cta__actions .hua-button { width: 100%; }
  .hua-resource-article__hero { padding: 126px 0 62px; }
  .hua-resource-article__heading h1 { font-size: clamp(52px, 15vw, 72px); }
  .hua-resource-article__media { height: 68vw; min-height: 320px; border-radius: 24px; }
  .hua-resource-article__layout { padding-top: 54px; padding-bottom: 94px; }
  .hua-resource-article__content { font-size: 18px; line-height: 1.82; }
  .hua-resource-article__next-grid > div:last-child > div { align-items: stretch; }
  .hua-resource-article__next-grid .hua-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hua-resource-hero__visual img,
  .hua-resource-framework__media img,
  .hua-resource-card__media img { transition: none; }
}
