/**
 * Category × Chapter Landing V2 — Direction A (Resource Navigator).
 * Scoped to .rbl-ccv2. Reuses Ribblu tokens; does not alter other page families.
 * Geometry targets from frozen kit site.css (1440 / 390 / 320).
 */
.rbl-ccv2 {
  --ccv2-page: var(--rbl-white, #fff);
  --ccv2-warm: var(--rbl-surface-warm, #fcf7f1);
  --ccv2-navy: var(--rbl-ink-strong, #142238);
  --ccv2-ink: var(--rbl-ink, #1f2937);
  --ccv2-muted: var(--rbl-muted-readable, #4b5563);
  --ccv2-muted-dark: var(--rbl-muted-readable, #4b5563);
  /* Filled CTA / accent fill → accessible global CTA tokens (Phase B). */
  --ccv2-orange: var(--rbl-cta-fill, #c2410c);
  --ccv2-orange-dark: var(--rbl-cta-fill-hover, #9a3412);
  --ccv2-outline: var(--rbl-border-warm, #ece8e2);
  --ccv2-edge: #f0dfd3;
  color: var(--ccv2-ink);
  font-family: var(--rbl-font-body, inherit);
  background: var(--ccv2-page);
  /* Clear fixed mobile bottom nav + any floating chrome near Account */
  padding-bottom: calc(var(--rbl-bottom-nav-h, 80px) + var(--rbl-space-12, 48px) + var(--rbl-safe-bottom, 0px));
}

.rbl-ccv2-shell {
  width: min(1140px, 100%);
  max-width: 1140px;
}

.rbl-ccv2-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: #647081;
  padding: 20px 0 15px;
}

.rbl-ccv2-breadcrumb a {
  color: inherit;
}

.rbl-ccv2 h1,
.rbl-ccv2 h2,
.rbl-ccv2 h3 {
  font-family: var(--rbl-font-display, inherit);
  color: var(--ccv2-navy);
  letter-spacing: -0.03em;
}

.rbl-ccv2-hero {
  position: relative;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 27px 32px;
  border: 1px solid var(--ccv2-edge);
  border-radius: 17px;
  background: var(--ccv2-warm);
  border-left: 4px solid var(--ccv2-orange);
  overflow: hidden;
}

.rbl-ccv2-hero-copy {
  z-index: 1;
  min-width: 0;
}

.rbl-ccv2-eyebrow {
  color: #b34013;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rbl-ccv2-dot {
  width: 6px;
  height: 6px;
  background: var(--ccv2-orange);
  border-radius: 50%;
  flex: 0 0 auto;
}

.rbl-ccv2-split {
  color: #c4a090;
  font-weight: 500;
}

.rbl-ccv2-hero h1 {
  font-size: 32px;
  line-height: 1.17;
  margin: 12px 0 9px;
  font-weight: 800;
  max-width: 740px;
}

.rbl-ccv2-hero-sub {
  font-size: 14px;
  color: #536074;
  margin: 0 0 12px;
  line-height: 1.45;
}

.rbl-ccv2-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ccv2-muted-dark);
}

.rbl-ccv2-hero-meta strong {
  font-weight: 750;
  color: #29384b;
}

.rbl-ccv2-meta-icon {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 6px;
}

.rbl-ccv2-decor {
  width: 130px;
  min-width: 130px;
  height: 118px;
  opacity: 0.9;
}

.rbl-ccv2-decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rbl-ccv2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 24px;
  margin-top: 25px;
  align-items: start;
}

.rbl-ccv2-primary,
.rbl-ccv2-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.rbl-ccv2-section-label {
  font-size: 11px;
  font-weight: 800;
  color: #ae481b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rbl-ccv2-section-head {
  margin: 1px 0 15px;
}

.rbl-ccv2-section-head h2 {
  font-size: 21px;
  font-weight: 790;
  line-height: 1.2;
  margin: 5px 0;
}

.rbl-ccv2-count {
  color: #7e8895;
  font-weight: 620;
}

.rbl-ccv2-section-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ccv2-muted);
  margin: 0;
}

.rbl-ccv2-library {
  background: #fff;
  border: 1px solid var(--ccv2-outline);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(21, 31, 48, 0.035);
}

.rbl-ccv2-row {
  width: 100%;
  min-height: 72px;
  border-bottom: 1px solid #eeecea;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 17px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.rbl-ccv2-row:last-of-type {
  border-bottom: none;
}

.rbl-ccv2-row:hover,
.rbl-ccv2-row:focus-visible {
  background: #fffaf5;
  outline: none;
}

.rbl-ccv2-file-icon {
  width: 39px;
  height: 42px;
  border-radius: 11px;
  background: #fff2e9;
  color: #d45321;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rbl-ccv2-file-icon img {
  width: 19px;
  height: 19px;
}

.rbl-ccv2-row-body {
  flex: 1;
  min-width: 0;
}

.rbl-ccv2-row-title {
  display: block;
  color: #19293e;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 690;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.rbl-ccv2-row-meta {
  font-size: 12px;
  color: var(--ccv2-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 3px;
}

.rbl-ccv2-meta-sep {
  color: #c4c9d2;
}

.rbl-ccv2-answer {
  color: #2f6b4f;
  font-weight: 650;
}

.rbl-ccv2-row-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #fff5ee;
  border-radius: 50%;
  flex-shrink: 0;
}

.rbl-ccv2-row-arrow img {
  width: 17px;
  height: 17px;
}

.rbl-ccv2-library-foot {
  background: #fbfaf9;
  color: #718092;
  padding: 11px 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}

.rbl-ccv2-complete {
  color: #7e8895;
}

.rbl-ccv2-empty {
  padding: 24px 18px;
  text-align: center;
  color: var(--ccv2-muted);
}

.rbl-ccv2-empty a {
  color: var(--ccv2-orange);
  font-weight: 650;
}

.rbl-ccv2-dense-toolbar {
  display: flex;
  gap: 8px;
  margin: 0 0 13px;
  flex-wrap: wrap;
}

.rbl-ccv2-dense-toolbar input,
.rbl-ccv2-dense-toolbar select {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  background: #fff;
}

.rbl-ccv2-dense-toolbar select {
  flex: 0 0 150px;
}

.rbl-ccv2-apply {
  background: var(--ccv2-orange);
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-weight: 750;
  padding: 10px 16px;
  font-size: 13px;
}

.rbl-ccv2-dense-results {
  font-size: 12px;
  color: #7a8596;
  margin: 0 0 10px;
}

.rbl-ccv2-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.rbl-ccv2-pager a {
  color: var(--ccv2-orange);
  font-weight: 650;
}

.rbl-ccv2-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff9f4;
  border: 1px solid var(--ccv2-edge);
  padding: 14px 17px;
  border-radius: 12px;
  color: #b84416;
  font-weight: 720;
  gap: 10px;
  font-size: 13px;
  text-decoration: none;
}

.rbl-ccv2-parent-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rbl-ccv2-parent-icon img {
  width: 16px;
  height: 16px;
}

.rbl-ccv2-subcard {
  background: #fff;
  border: 1px solid var(--ccv2-outline);
  border-radius: 15px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 16px rgba(21, 31, 48, 0.03);
}

.rbl-ccv2-subcard h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 6px 0 10px;
  font-weight: 750;
  color: #16243a;
}

.rbl-ccv2-about-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: #647084;
}

.rbl-ccv2-about-body p {
  margin: 0 0 0.75em;
}

.rbl-ccv2-about-body p:last-child {
  margin-bottom: 0;
}

.rbl-ccv2-faq-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.rbl-ccv2-faq-item {
  border: 1px solid #eeeae6;
  border-radius: 10px;
  background: #fcfcfb;
  padding: 0 12px;
}

.rbl-ccv2-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 680;
  color: #243246;
  padding: 12px 0;
}

.rbl-ccv2-faq-item summary::-webkit-details-marker {
  display: none;
}

.rbl-ccv2-faq-item p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #647084;
}

.rbl-ccv2-parent:hover,
.rbl-ccv2-parent:focus-visible {
  background: #fff3e9;
  outline: none;
}

.rbl-ccv2-aside-card {
  background: #fff;
  border: 1px solid var(--ccv2-outline);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 17px rgba(21, 31, 48, 0.025);
}

.rbl-ccv2-aside-card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 750;
  color: #16243a;
}

.rbl-ccv2-aside-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #647084;
  margin: 0 0 13px;
}

.rbl-ccv2-aside-intro h3 {
  text-align: left;
}

.rbl-ccv2-upload-btn {
  width: 100%;
  background: var(--ccv2-orange);
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-weight: 750;
  display: block;
  text-align: center;
  padding: 12px 8px;
  font-size: 13px;
  text-decoration: none;
  margin-top: 4px;
}

.rbl-ccv2-upload-btn:hover,
.rbl-ccv2-upload-btn:focus-visible {
  background: var(--ccv2-orange-dark);
  outline: none;
}

.rbl-ccv2-aside-mini {
  font-size: 11px;
  color: #7b8290;
  margin: 11px 0 0;
  text-align: left;
  line-height: 1.55;
}

.rbl-ccv2-aside-link {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b84416;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.rbl-ccv2-aside-link:hover,
.rbl-ccv2-aside-link:focus-visible {
  color: var(--ccv2-orange-dark);
  outline: none;
}

.rbl-ccv2-recent {
  display: flex;
  flex-direction: column;
}

.rbl-ccv2-recent a {
  padding: 11px 0;
  border-bottom: 1px solid #f1edea;
  color: #bd491e;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 680;
  text-decoration: none;
}

.rbl-ccv2-recent a:last-child {
  border: 0;
  padding-bottom: 0;
}

.rbl-ccv2-recent small {
  display: block;
  color: #89909b;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .rbl-ccv2-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
  }

  .rbl-ccv2-hero {
    padding: 22px 25px;
  }
}

@media (max-width: 760px) {
  .rbl-ccv2-breadcrumb {
    padding: 16px 0 13px;
    font-size: 11px;
  }

  .rbl-ccv2-hero {
    min-height: 135px;
    padding: 20px 18px;
    border-radius: 14px;
    align-items: flex-start;
  }

  .rbl-ccv2-hero-sub {
    display: none;
  }

  .rbl-ccv2-decor {
    width: 75px;
    min-width: 75px;
    height: 80px;
    position: absolute;
    right: 6px;
    top: 21px;
    opacity: 0.58;
  }

  .rbl-ccv2-hero-copy {
    padding-right: 43px;
  }

  .rbl-ccv2-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.07em;
    gap: 7px;
    white-space: nowrap;
  }

  .rbl-ccv2-hero h1 {
    font-size: 25px;
    line-height: 1.18;
    margin: 8px 0 10px;
  }

  .rbl-ccv2-hero-meta {
    font-size: 12px;
    gap: 9px;
  }

  .rbl-ccv2-grid {
    display: flex;
    flex-direction: column;
    margin-top: 23px;
    gap: 21px;
  }

  .rbl-ccv2-section-head h2 {
    font-size: 20px;
  }

  .rbl-ccv2-row {
    gap: 11px;
    padding: 12px 11px;
    min-height: 71px;
  }

  .rbl-ccv2-file-icon {
    width: 33px;
    height: 37px;
    border-radius: 9px;
  }

  .rbl-ccv2-file-icon img {
    width: 16px;
    height: 16px;
  }

  .rbl-ccv2-row-title {
    font-size: 13.5px;
  }

  .rbl-ccv2-row-meta {
    font-size: 11.5px;
  }

  .rbl-ccv2-row-arrow {
    width: 34px;
    height: 34px;
  }

  .rbl-ccv2-row-arrow img {
    width: 15px;
    height: 15px;
  }

  .rbl-ccv2-dense-toolbar {
    flex-direction: column;
  }

  .rbl-ccv2-dense-toolbar select {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 340px) {
  .rbl-ccv2-hero {
    padding: 16px 14px;
    min-height: 143px;
  }

  .rbl-ccv2-hero-copy {
    padding-right: 24px;
  }

  .rbl-ccv2-hero h1 {
    font-size: 23px;
  }

  .rbl-ccv2-eyebrow {
    font-size: 8.2px;
    letter-spacing: 0.04em;
  }

  .rbl-ccv2-decor {
    right: 2px;
    width: 63px;
    min-width: 63px;
    opacity: 0.44;
  }

  .rbl-ccv2-row {
    padding: 11px 9px;
    gap: 9px;
  }

  .rbl-ccv2-file-icon {
    width: 31px;
  }

  .rbl-ccv2-row-title {
    font-size: 13px;
  }

  .rbl-ccv2-row-arrow {
    width: 30px;
    height: 30px;
  }

  .rbl-ccv2-breadcrumb {
    font-size: 10.5px;
  }
}
