/**
 * Arrow Resource Center
 * Builds on the Arrow ACF theme's existing black, gold, typography, spacing,
 * button, panel, and container tokens.
 */

.resource-center {
  --resource-reading-width: 800px;
  --resource-toc-width: 270px;
  --resource-panel-bg: linear-gradient(145deg, rgba(16, 35, 52, 0.78), rgba(21, 24, 18, 0.94));
  color: var(--text);
}

.resource-hero,
.resource-archive-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 570px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(227, 170, 54, 0.17), transparent 28rem),
    radial-gradient(circle at 10% 0%, rgba(16, 35, 52, 0.72), transparent 34rem),
    #070909;
}

.resource-hero::before,
.resource-archive-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.98) 0%, rgba(7, 9, 9, 0.9) 47%, rgba(7, 9, 9, 0.54) 100%),
    linear-gradient(0deg, rgba(7, 9, 9, 0.88), transparent 58%);
}

.resource-archive-hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(100deg, transparent 8%, #000 55%, transparent 100%);
}

.resource-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.resource-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.06);
}

.resource-hero-inner,
.resource-archive-hero-inner {
  display: grid;
  align-content: end;
  width: var(--container);
  min-height: 570px;
  margin-inline: auto;
  padding: 136px 0 78px;
}

.resource-breadcrumb {
  margin-bottom: 26px;
}

.resource-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 4px;
}

.resource-breadcrumb span[aria-current="page"] {
  max-width: min(48rem, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-hero-copy {
  max-width: 1050px;
}

.resource-eyebrow,
.resource-card-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.resource-eyebrow {
  margin-bottom: 20px;
}

.resource-eyebrow span,
.resource-eyebrow a,
.resource-card-taxonomy span,
.resource-panel-kicker {
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.resource-eyebrow span,
.resource-eyebrow a {
  padding: 7px 10px;
  border: 1px solid rgba(244, 201, 104, 0.34);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.28);
}

.resource-eyebrow a:hover,
.resource-eyebrow a:focus-visible {
  color: #090909;
  border-color: var(--gold);
  background: var(--gold);
}

.resource-hero h1,
.resource-archive-hero h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.resource-single .resource-hero h1 {
  font-size: 3.5rem;
}

.resource-deck,
.resource-archive-hero p {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.45vw, 1.3rem);
  line-height: 1.72;
}

.resource-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.resource-byline span {
  position: relative;
}

.resource-byline span + span::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.resource-byline a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: rgba(244, 201, 104, 0.45);
  text-underline-offset: 0.22em;
}

.resource-preview-banner {
  color: #100d06;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-bottom: 1px solid rgba(0, 0, 0, 0.34);
}

.resource-preview-banner .section-inner {
  display: flex;
  gap: 12px 20px;
  align-items: center;
  min-height: 56px;
  padding-block: 10px;
}

.resource-preview-banner strong {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-preview-banner span {
  font-weight: 750;
}

.resource-reading-section {
  overflow: visible;
}

.resource-reading-grid {
  display: grid;
  grid-template-columns: minmax(220px, var(--resource-toc-width)) minmax(0, var(--resource-reading-width));
  gap: clamp(34px, 5vw, 72px);
  justify-content: center;
  align-items: start;
}

.resource-toc-column {
  min-width: 0;
  align-self: stretch;
}

.resource-toc {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 35, 52, 0.76), rgba(21, 24, 18, 0.9));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.resource-toc-desktop {
  position: sticky;
  top: calc(var(--header-height, 90px) + 28px);
  max-height: calc(100vh - var(--header-height, 90px) - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.resource-toc-mobile {
  display: none;
}

.resource-toc h2,
.resource-toc summary {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-toc summary {
  cursor: pointer;
}

.resource-toc ol {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: resource-toc;
}

.resource-toc li {
  counter-increment: resource-toc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.resource-toc li:first-child {
  border-top: 0;
}

.resource-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 11px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.resource-toc a::before {
  content: counter(resource-toc, decimal-leading-zero);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.resource-toc a:hover,
.resource-toc a:focus-visible {
  color: var(--gold-2);
}

.resource-article {
  min-width: 0;
}

.resource-short-answer,
.resource-takeaways,
.resource-field-note,
.resource-download,
.resource-review-panel,
.resource-sources {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--resource-panel-bg);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.24);
}

.resource-short-answer,
.resource-field-note {
  padding: clamp(24px, 4vw, 38px);
  border-left: 3px solid var(--gold);
}

.resource-short-answer {
  margin-bottom: 28px;
}

.resource-short-answer h2,
.resource-takeaways h2,
.resource-field-note h2,
.resource-download h2,
.resource-review-panel h2,
.resource-sources h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.resource-short-answer h2,
.resource-field-note h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.resource-short-answer p,
.resource-field-note p {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.resource-takeaways {
  margin-bottom: 44px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(227, 170, 54, 0.09), transparent 48%),
    rgba(21, 24, 18, 0.92);
}

.resource-takeaways h2 {
  margin-top: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.resource-takeaways ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.resource-takeaways li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  line-height: 1.65;
}

.resource-takeaways li svg {
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  color: var(--gold);
}

.resource-prose {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.25vw, 1.16rem);
  line-height: 1.78;
}

.resource-prose > :first-child {
  margin-top: 0;
}

.resource-prose h2,
.resource-prose h3,
.resource-prose h4 {
  color: var(--text);
  font-family: var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.resource-prose h2 {
  margin: 72px 0 22px;
  padding-top: 4px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  scroll-margin-top: calc(var(--header-height, 90px) + 34px);
}

.resource-prose h2::before {
  display: block;
  width: 62px;
  height: 2px;
  margin-bottom: 20px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.resource-prose h3 {
  margin: 42px 0 16px;
  color: var(--gold-2);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-height, 90px) + 34px);
}

.resource-prose h4 {
  margin: 32px 0 12px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.resource-prose p,
.resource-prose ul,
.resource-prose ol,
.resource-prose blockquote,
.resource-prose figure,
.resource-prose pre,
.resource-prose .resource-table-wrap {
  margin-top: 0;
  margin-bottom: 24px;
}

.resource-prose strong {
  color: var(--text);
}

.resource-prose a {
  color: var(--gold-2);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(244, 201, 104, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.resource-prose a:hover,
.resource-prose a:focus-visible {
  color: #fff;
  text-decoration-color: var(--gold-2);
}

.resource-prose ul,
.resource-prose ol {
  display: grid;
  gap: 10px;
  padding-left: 1.35em;
}

.resource-prose li::marker {
  color: var(--gold);
  font-weight: 900;
}

.resource-prose blockquote {
  padding: 22px 24px;
  color: var(--text);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.035);
}

.resource-prose blockquote > :last-child {
  margin-bottom: 0;
}

.resource-prose hr {
  height: 1px;
  margin: 52px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.resource-prose img {
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.resource-prose figcaption {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.86rem;
  line-height: 1.55;
}

.resource-prose code {
  padding: 0.15em 0.35em;
  color: var(--gold-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.resource-prose pre {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050606;
}

.resource-prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.resource-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.06);
}

.resource-table-wrap:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.resource-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.resource-table caption {
  padding: 16px 18px;
  color: var(--text);
  font-weight: 850;
  text-align: left;
}

.resource-table th,
.resource-table td {
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.resource-table th:last-child,
.resource-table td:last-child {
  border-right: 0;
}

.resource-table tr:last-child td {
  border-bottom: 0;
}

.resource-table thead th {
  color: #090909;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  font-weight: 900;
}

.resource-table tbody th {
  color: var(--text);
  background: rgba(227, 170, 54, 0.08);
}

.resource-field-note {
  margin-top: 52px;
}

.resource-download {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 24px;
}

.resource-download h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.resource-download .btn {
  flex: 0 0 auto;
}

.resource-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr);
  gap: 26px;
  align-items: start;
}

.resource-sources,
.resource-review-panel {
  padding: clamp(26px, 4vw, 42px);
}

.resource-sources h2,
.resource-review-panel h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}

.resource-sources ol {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding-left: 1.35em;
}

.resource-sources li {
  padding-left: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.resource-sources li::marker {
  color: var(--gold);
  font-weight: 900;
}

.resource-sources li a {
  color: var(--text);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(244, 201, 104, 0.38);
  text-underline-offset: 0.2em;
}

.resource-sources li span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.resource-review-panel p {
  display: grid;
  gap: 5px;
  margin: 24px 0 0;
  color: var(--muted);
}

.resource-review-panel p + p {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.resource-review-panel strong {
  color: var(--gold-2);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resource-review-panel a {
  color: var(--text);
  font-weight: 800;
}

.resource-review-panel span,
.resource-maintenance-note {
  color: var(--muted-2);
  font-size: 0.88rem;
}

.resource-maintenance-note {
  margin: 24px 0 0;
}

.resource-cta-section,
.resource-archive-cta {
  padding-block: clamp(54px, 7vw, 90px);
}

.resource-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(227, 170, 54, 0.16), transparent 46%),
    linear-gradient(145deg, rgba(16, 35, 52, 0.9), rgba(21, 24, 18, 0.96));
}

.resource-cta h2 {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.8vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.resource-cta p {
  max-width: 720px;
  margin-top: 16px;
}

.resource-cta .panel-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.resource-hub-directory {
  position: relative;
  overflow: hidden;
}

.resource-hub-directory::before {
  position: absolute;
  top: -260px;
  left: 50%;
  width: min(980px, 90vw);
  height: 560px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(227, 170, 54, 0.1), transparent 67%);
  transform: translateX(-50%);
}

.resource-hub-directory .section-inner {
  position: relative;
  z-index: 1;
}

.resource-hub-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 42px;
}

.resource-hub-directory-head h2 {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.resource-hub-directory-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.resource-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.resource-hub-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 2.5vw, 32px);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(16, 35, 52, 0.84), rgba(21, 24, 18, 0.97)),
    var(--resource-panel-bg);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  transition: transform 260ms var(--ease), border-color 220ms ease, box-shadow 260ms ease;
}

.resource-hub-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0.22);
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}

.resource-hub-card::after {
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(227, 170, 54, 0.13), transparent 68%);
  transition: opacity 260ms ease, transform 420ms var(--ease);
}

.resource-hub-card > * {
  position: relative;
  z-index: 1;
}

.resource-hub-card-number {
  position: absolute;
  z-index: 0;
  top: -14px;
  right: 17px;
  color: rgba(244, 201, 104, 0.08);
  font-family: var(--serif);
  font-size: clamp(4.6rem, 6vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.resource-hub-card .resource-panel-kicker {
  max-width: calc(100% - 44px);
}

.resource-hub-card h3 {
  margin: 18px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.resource-hub-card p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.resource-hub-card-action {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  padding-top: 28px;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.resource-hub-card-action svg {
  width: 19px;
  height: 19px;
  transition: transform 200ms var(--ease);
}

.resource-hub-card:hover,
.resource-hub-card:focus-visible {
  color: var(--text);
  border-color: rgba(244, 201, 104, 0.64);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
  transform: translateY(-5px);
}

.resource-hub-card:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 4px;
}

.resource-hub-card:hover::before,
.resource-hub-card:focus-visible::before {
  transform: scaleX(1);
}

.resource-hub-card:hover::after,
.resource-hub-card:focus-visible::after {
  transform: translate(-16px, -10px) scale(1.08);
}

.resource-hub-card:hover .resource-hub-card-action svg,
.resource-hub-card:focus-visible .resource-hub-card-action svg {
  transform: translateX(4px);
}

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

.resource-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 35, 52, 0.74), rgba(21, 24, 18, 0.95));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  transition: transform 260ms var(--ease), border-color 220ms ease, box-shadow 260ms ease;
}

.resource-card:hover,
.resource-card:focus-within {
  border-color: rgba(244, 201, 104, 0.58);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
  transform: translateY(-4px);
}

.resource-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0b1011;
}

.resource-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 9, 9, 0.58), transparent 60%);
}

.resource-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 320ms ease;
}

.resource-card:hover .resource-card-media img,
.resource-card:focus-within .resource-card-media img {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.045);
}

.resource-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(227, 170, 54, 0.56);
  background:
    radial-gradient(circle at 50% 50%, rgba(227, 170, 54, 0.14), transparent 38%),
    linear-gradient(145deg, #102334, #151812);
}

.resource-card-placeholder svg {
  width: 64px;
  height: 64px;
}

.resource-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.resource-status-badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(244, 201, 104, 0.72);
  border-radius: 999px;
  color: #100d06;
  background: var(--gold-2);
  font-size: 0.69rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.resource-card-taxonomy {
  min-height: 1.2em;
  margin-bottom: 14px;
}

.resource-card-taxonomy span + span::before {
  margin-right: 9px;
  color: var(--muted-2);
  content: "/";
}

.resource-card h2,
.resource-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.resource-card h2 a,
.resource-card h3 a {
  color: inherit;
}

.resource-card p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.resource-card-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
}

.resource-card-footer > span {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 750;
}

.resource-card-link,
.resource-view-all {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.resource-card-link svg,
.resource-view-all svg {
  transition: transform 200ms var(--ease);
}

.resource-card-link:hover svg,
.resource-card-link:focus-visible svg,
.resource-view-all:hover svg,
.resource-view-all:focus-visible svg {
  transform: translateX(3px);
}

.resource-archive-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: end;
}

.resource-archive-callout {
  display: grid;
  gap: 13px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 35, 52, 0.86), rgba(21, 24, 18, 0.92));
  box-shadow: var(--shadow);
}

.resource-archive-callout svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.resource-archive-callout strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
}

.resource-archive-callout span {
  color: var(--muted);
  line-height: 1.65;
}

.resource-discovery-head,
.resource-results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 34px;
  align-items: end;
}

.resource-discovery {
  padding-bottom: clamp(38px, 4vw, 60px);
}

.resource-results {
  padding-top: clamp(52px, 6vw, 84px);
}

.resource-discovery-head h2,
.resource-results-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.resource-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resource-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.resource-search input[type="search"] {
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  outline: 0;
  background: rgba(0, 0, 0, 0.24);
  font: inherit;
}

.resource-search input[type="search"]:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(227, 170, 54, 0.14);
}

.resource-filter-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.resource-filter-group > span {
  padding-top: 9px;
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resource-filter-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.resource-topic-links {
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
}

.resource-topic-links > span {
  align-self: center;
  padding-top: 0;
}

.resource-topic-links > .resource-topic-scroller {
  display: flex;
  min-width: 0;
  padding: 0 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.resource-topic-scroller::-webkit-scrollbar {
  height: 6px;
}

.resource-topic-scroller::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.resource-topic-scroller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--gold);
}

.resource-topic-scroller .resource-filter-link {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.resource-filter-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.84rem;
  font-weight: 800;
}

.resource-filter-link.is-child::before {
  margin-right: 7px;
  color: var(--muted-2);
  content: "↳";
}

.resource-filter-link:hover,
.resource-filter-link:focus-visible,
.resource-filter-link.is-active {
  color: #090909;
  border-color: var(--gold);
  background: var(--gold);
}

.resource-results-head {
  margin-bottom: 42px;
}

.resource-results-head .resource-view-all {
  justify-self: end;
  align-self: end;
  min-height: 44px;
}

.resource-results .navigation.pagination {
  margin-top: 46px;
}

.resource-results .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.resource-results .page-numbers {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  font-weight: 850;
}

.resource-results .page-numbers.current,
.resource-results a.page-numbers:hover,
.resource-results a.page-numbers:focus-visible {
  color: #090909;
  border-color: var(--gold);
  background: var(--gold);
}

.resource-empty-state {
  display: grid;
  max-width: 720px;
  justify-items: start;
  gap: 14px;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--resource-panel-bg);
}

.resource-empty-state > svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.resource-empty-state h2,
.resource-empty-state p {
  margin: 0;
}

.resource-empty-state h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.resource-empty-state p {
  color: var(--muted);
}

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

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

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

  .resource-cta .panel-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .resource-hero,
  .resource-archive-hero,
  .resource-hero-inner,
  .resource-archive-hero-inner {
    min-height: 510px;
  }

  .resource-hero-inner,
  .resource-archive-hero-inner {
    padding: 112px 0 64px;
  }

  .resource-reading-grid,
  .resource-trust-grid,
  .resource-archive-hero-grid,
  .resource-hub-directory-head,
  .resource-discovery-head,
  .resource-results-head {
    grid-template-columns: 1fr;
  }

  .resource-reading-grid {
    max-width: var(--resource-reading-width);
  }

  .resource-toc-desktop {
    display: none;
  }

  .resource-toc-mobile {
    display: block;
  }

  .resource-archive-callout {
    max-width: 620px;
  }

  .resource-results-head .resource-view-all {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .resource-hub-grid {
    grid-template-columns: 1fr;
  }

  .resource-hub-card {
    min-height: 285px;
  }

  .resource-hero h1,
  .resource-archive-hero h1 {
    font-size: clamp(2.45rem, 11vw, 4.2rem);
  }

  .resource-single .resource-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.5rem);
  }

  .resource-breadcrumb span[aria-current="page"] {
    max-width: 48vw;
  }

  .resource-byline {
    display: grid;
    gap: 8px;
  }

  .resource-byline span + span::before {
    display: none;
  }

  .resource-preview-banner .section-inner,
  .resource-download {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .resource-filter-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resource-filter-group > span {
    padding-top: 0;
  }

  .resource-search > div {
    grid-template-columns: 1fr;
  }

  .resource-search .btn,
  .resource-download .btn {
    width: 100%;
  }

  .resource-prose h2 {
    margin-top: 58px;
  }

  .resource-table-wrap::after {
    display: block;
    padding: 9px 14px;
    color: var(--muted-2);
    content: "Scroll horizontally to view the full table";
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 750;
  }
}

@media (max-width: 460px) {
  .resource-hero-inner,
  .resource-archive-hero-inner {
    width: min(100% - 32px, 1440px);
  }

  .resource-card-content,
  .resource-toc,
  .resource-archive-callout {
    padding: 20px;
  }

  .resource-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-cta .panel-actions,
  .resource-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-hub-card,
  .resource-hub-card::before,
  .resource-hub-card::after,
  .resource-hub-card-action svg,
  .resource-card,
  .resource-card-media img,
  .resource-card-link svg,
  .resource-view-all svg {
    transition: none;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  .site-header,
  .site-footer,
  .back-to-top,
  .resource-hero-media,
  .resource-toc-column,
  .resource-preview-banner,
  .resource-cta-section,
  .resource-related-section,
  .resource-archive-cta,
  .resource-discovery,
  .resource-byline span:last-child {
    display: none !important;
  }

  body,
  .resource-center,
  .resource-hero,
  .resource-archive-hero,
  .resource-center .section,
  .resource-short-answer,
  .resource-takeaways,
  .resource-field-note,
  .resource-download,
  .resource-review-panel,
  .resource-sources {
    color: #111 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .resource-hero,
  .resource-archive-hero,
  .resource-hero-inner,
  .resource-archive-hero-inner {
    min-height: 0;
  }

  .resource-hero::before,
  .resource-archive-hero::before,
  .resource-archive-hero::after {
    display: none;
  }

  .resource-hero-inner,
  .resource-archive-hero-inner {
    display: block;
    width: 100%;
    padding: 0 0 24px;
  }

  .resource-breadcrumb,
  .resource-eyebrow {
    display: none;
  }

  .resource-hero h1,
  .resource-archive-hero h1,
  .resource-prose h2,
  .resource-prose h3,
  .resource-prose h4,
  .resource-short-answer h2,
  .resource-takeaways h2,
  .resource-field-note h2,
  .resource-review-panel h2,
  .resource-sources h2,
  .resource-prose strong {
    color: #111 !important;
  }

  .resource-deck,
  .resource-byline,
  .resource-prose,
  .resource-short-answer p,
  .resource-takeaways li,
  .resource-field-note p,
  .resource-review-panel p,
  .resource-sources li {
    color: #222 !important;
  }

  .resource-reading-section,
  .resource-trust-section {
    padding: 24px 0;
    border: 0;
  }

  .resource-reading-grid,
  .resource-trust-grid {
    display: block;
    width: 100%;
    max-width: none;
  }

  .resource-prose a,
  .resource-sources a,
  .resource-review-panel a {
    color: #111 !important;
    text-decoration: underline;
  }

  .resource-table-wrap {
    overflow: visible;
    box-shadow: none;
  }

  .resource-table {
    min-width: 0;
    color: #111;
    font-size: 9pt;
  }

  .resource-table thead th,
  .resource-table tbody th {
    color: #111;
    background: #eee !important;
  }

  .resource-table-wrap::after {
    display: none;
  }

  .resource-short-answer,
  .resource-takeaways,
  .resource-field-note,
  .resource-download,
  .resource-review-panel,
  .resource-sources,
  .resource-prose blockquote {
    break-inside: avoid;
    border-color: #999 !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
