@charset "UTF-8";

.page__inner-wrap > header,
.page__share,
.pagination {
  display: none;
}

.resource-page {
  --rp-navy: #0b1a29;
  --rp-navy-soft: #18344c;
  --rp-accent: #17c7dc;
  --rp-accent-dark: #087f91;
  --rp-accent-pale: #e7fbfd;
  --rp-ink: #243342;
  --rp-muted: #647586;
  --rp-line: #dbe5eb;
  --rp-surface: #f5fafc;
  color: var(--rp-ink);
}

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

.resource-page a {
  text-decoration: none;
}

.resource-page h1,
.resource-page h2,
.resource-page h3,
.resource-page p {
  margin-top: 0;
}

.resource-page h2 {
  padding-bottom: 0;
  border-bottom: 0;
}

.rp-hero {
  position: relative;
  margin: 0.5rem 0 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(23, 199, 220, 0.26), transparent 28%),
    linear-gradient(145deg, var(--rp-navy), var(--rp-navy-soft));
  border-radius: 18px;
  overflow: hidden;
}

.rp-eyebrow,
.rp-section-kicker {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--rp-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rp-hero h1 {
  max-width: 900px;
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: clamp(1.9rem, 4.8vw, 3.25rem);
  line-height: 1.08;
}

.rp-hero-copy {
  max-width: 760px;
  margin-bottom: 1.25rem;
  color: #d7e8f0;
  font-size: clamp(0.96rem, 2vw, 1.1rem);
  line-height: 1.7;
}

.rp-stats,
.rp-jumps,
.rp-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rp-stats {
  margin-bottom: 1.35rem;
}

.rp-stats span {
  padding: 0.42rem 0.72rem;
  color: #ecfdff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
}

.rp-jumps:empty,
.rp-stats:last-child {
  margin-bottom: 0;
}

.rp-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0.55rem 0.78rem;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.rp-jumps a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.rp-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 3.25rem;
  padding: 1rem 1.15rem;
  color: #3e5364;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-left: 4px solid var(--rp-accent);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.65;
}

.rp-notice strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 31px;
  padding: 0 0.4rem;
  color: var(--rp-navy);
  background: #dffbff;
  border-radius: 999px;
  font-size: 0.72rem;
}

.rp-section {
  margin: 0 0 3.6rem;
  scroll-margin-top: 90px;
}

.rp-section-head {
  display: flex;
  gap: 1.25rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.rp-section-head h2 {
  margin-bottom: 0.5rem;
  color: var(--rp-navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.rp-section-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--rp-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.rp-count {
  flex: 0 0 auto;
  padding: 0.4rem 0.68rem;
  color: var(--rp-accent-dark);
  background: var(--rp-accent-pale);
  border: 1px solid #bceff4;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.rp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.rp-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rp-card {
  min-width: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(11, 26, 41, 0.045);
}

.rp-card--wide {
  grid-column: 1 / -1;
}

.rp-card-top {
  display: flex;
  gap: 0.9rem;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rp-card h3 {
  margin-bottom: 0.25rem;
  color: var(--rp-navy);
  font-size: 1.02rem;
  line-height: 1.35;
}

.rp-card-subtitle {
  margin-bottom: 0;
  color: var(--rp-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rp-card-copy {
  margin-bottom: 1rem;
  color: #536576;
  font-size: 0.84rem;
  line-height: 1.65;
}

.rp-badge {
  flex: 0 0 auto;
  padding: 0.32rem 0.55rem;
  color: #536576;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

.rp-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.24fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-top: 0.85rem;
  border-top: 1px solid #e8eef2;
}

.rp-row + .rp-row {
  margin-top: 0.85rem;
}

.rp-row-label {
  padding-top: 0.42rem;
  color: #405364;
  font-size: 0.75rem;
  font-weight: 800;
}

.rp-file {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.68rem;
  color: var(--rp-accent-dark) !important;
  background: #f2fcfd;
  border: 1px solid #cceff2;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.rp-file::after {
  content: "↗";
  font-size: 0.72rem;
  opacity: 0.7;
}

.rp-file:hover {
  color: var(--rp-navy) !important;
  background: #dffbff;
  border-color: #8de2e9;
  transform: translateY(-1px);
}

.rp-file--primary {
  color: var(--rp-navy) !important;
  background: var(--rp-accent);
  border-color: var(--rp-accent);
}

.rp-file--primary:hover {
  color: var(--rp-navy) !important;
  background: #8df4ff;
  border-color: #8df4ff;
}

.rp-file:focus-visible,
.rp-jumps a:focus-visible {
  outline: 3px solid rgba(23, 199, 220, 0.35);
  outline-offset: 2px;
}

.rp-chapter-card {
  position: relative;
  overflow: hidden;
}

.rp-number {
  display: block;
  margin-bottom: 1.3rem;
  color: var(--rp-accent-dark);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.rp-updated {
  margin: 0 0 1.15rem;
  color: var(--rp-muted);
  font-size: 0.73rem;
}

.rp-card .rp-files:last-child {
  margin-top: 1rem;
}

@media (max-width: 820px) {
  .rp-grid,
  .rp-grid--three {
    grid-template-columns: 1fr;
  }

  .rp-card--wide {
    grid-column: auto;
  }

  .rp-section-head {
    align-items: start;
  }
}

@media (max-width: 540px) {
  .rp-hero {
    padding: 1.35rem;
    border-radius: 14px;
  }

  .rp-stats,
  .rp-jumps {
    gap: 0.45rem;
  }

  .rp-jumps a {
    flex: 1 1 calc(50% - 0.45rem);
    justify-content: center;
    text-align: center;
  }

  .rp-notice {
    grid-template-columns: 1fr;
    margin-bottom: 2.6rem;
  }

  .rp-section {
    margin-bottom: 3rem;
  }

  .rp-section-head {
    display: block;
  }

  .rp-count {
    display: inline-flex;
    margin-top: 0.8rem;
  }

  .rp-card {
    padding: 1rem;
  }

  .rp-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .rp-row-label {
    padding-top: 0;
  }

  .rp-file {
    min-height: 42px;
  }
}
