/* ============================================================
   Wag'n Tails - Blog / Resources Hub
   Enqueue only on blog / veterinary-resources / vet-blog / posts index.
   Scoped under body.wagn-blog-resources. Do NOT style bare form controls
   except the hub search field inside .br-search.
   ============================================================ */

body.wagn-blog-resources *,
body.wagn-blog-resources *::before,
body.wagn-blog-resources *::after {
  box-sizing: border-box;
}

html:has(body.wagn-blog-resources) {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.wagn-blog-resources {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--wagn-atmosphere);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.wagn-blog-resources img,
body.wagn-blog-resources svg {
  display: block;
  max-width: 100%;
}

body.wagn-blog-resources a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

body.wagn-blog-resources h1,
body.wagn-blog-resources h2,
body.wagn-blog-resources h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 0.75rem;
}

body.wagn-blog-resources p {
  margin: 0 0 1rem;
}

body.wagn-blog-resources p:last-child {
  margin-bottom: 0;
}

body.wagn-blog-resources ul,
body.wagn-blog-resources ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.wagn-blog-resources :focus {
  outline: none;
}

body.wagn-blog-resources :focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

body.wagn-blog-resources .container {
  width: min(100% - (2 * var(--page-gutter)), var(--container));
  margin-inline: auto;
}

body.wagn-blog-resources .container--narrow {
  width: min(100% - (2 * var(--page-gutter)), var(--container-narrow));
  margin-inline: auto;
}

body.wagn-blog-resources .br-main {
  width: 100%;
  overflow-x: clip;
}

body.wagn-blog-resources .section {
  padding-block: var(--section-y);
  position: relative;
}

body.wagn-blog-resources .section > .container,
body.wagn-blog-resources .section > .container--narrow {
  position: relative;
  z-index: 1;
}

body.wagn-blog-resources .text-gradient {
  background-image: var(--heading-gradient);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

body.wagn-blog-resources .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.br-section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(1.25rem, 2.8vw, 1.75rem);
}

.br-section-header h2 {
  font-family: var(--font-fun);
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.br-section-header p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

body.wagn-blog-resources a.btn--primary,
body.wagn-blog-resources a.btn--primary:link,
body.wagn-blog-resources a.btn--primary:visited,
body.wagn-blog-resources .btn--primary {
  color: var(--white) !important;
}

body.wagn-blog-resources .btn--large {
  padding: 0.95rem 1.55rem;
  font-size: 1.05rem;
}

body.wagn-blog-resources .doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

body.wagn-blog-resources .doodle {
  position: absolute;
  color: var(--purple);
  opacity: 0.14;
  line-height: 0;
}

body.wagn-blog-resources .doodle--icon {
  display: block;
  width: 1.6rem;
  aspect-ratio: 1 / 1;
  height: auto;
  background-color: currentColor;
  -webkit-mask-image: var(--doodle-icon);
  mask-image: var(--doodle-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

body.wagn-blog-resources .doodle--icon-paw { --doodle-icon: url("images/icons/paw.svg"); }
body.wagn-blog-resources .doodle--icon-heart { --doodle-icon: url("images/icons/heart.svg"); }
body.wagn-blog-resources .doodle--icon-vehicle { --doodle-icon: url("images/icons/vehicle.svg"); }
body.wagn-blog-resources .doodle--icon-document { --doodle-icon: url("images/icons/pdf.svg"); }
body.wagn-blog-resources .doodle--icon-calendar { --doodle-icon: url("images/icons/calendar.svg"); }
body.wagn-blog-resources .doodle--icon-star { --doodle-icon: url("images/icons/star.svg"); }

body.wagn-blog-resources .doodle--teal { color: var(--aqua); opacity: 0.22; }
body.wagn-blog-resources .doodle--soft { color: var(--purple); opacity: 0.14; }

body.wagn-blog-resources .doodle--br-1 { width: 2.1rem; top: 14%; left: 5%; transform: rotate(-16deg); }
body.wagn-blog-resources .doodle--br-2 { width: 1.55rem; top: 20%; right: 7%; transform: rotate(12deg); }
body.wagn-blog-resources .doodle--br-3 { width: 1.7rem; top: 52%; left: 6%; transform: rotate(10deg); }
body.wagn-blog-resources .doodle--br-4 { width: 1.4rem; bottom: 18%; right: 8%; transform: rotate(-8deg); }
body.wagn-blog-resources .doodle--br-5 { width: 1.6rem; top: 18%; left: 8%; transform: rotate(-14deg); }
body.wagn-blog-resources .doodle--br-6 { width: 1.5rem; bottom: 16%; right: 7%; transform: rotate(12deg); }

html.js body.wagn-blog-resources [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--ease-editorial),
    transform var(--reveal-duration) var(--ease-editorial);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Hero: opacity-only so H1 stays centered before .is-inview */
html.js body.wagn-blog-resources [data-hero] [data-reveal],
html.js body.wagn-blog-resources [data-hero] [data-reveal="title"] {
  transform: none;
}

html.js body.wagn-blog-resources [data-reveal].is-inview,
html.js body.wagn-blog-resources [data-reveal="title"].is-inview,
html:not(.js) body.wagn-blog-resources [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js body.wagn-blog-resources [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero ---------- */
.br-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-top: calc(var(--header-h) + var(--header-gap));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
  background: var(--wagn-hero-atmosphere);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.br-hero__glow {
  position: absolute;
  inset: 0;
  height: auto;
  background: var(--wagn-hero-glow);
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.br-brand {
  font-family: var(--font-fun);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--purple);
  margin: 0 0 0.65rem;
  text-align: center;
}

.br-hero__eyebrow {
  display: inline-block;
  margin: 0 auto 0.55rem;
  padding: 0.22rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(138, 214, 204, 0.32);
  border-radius: 0.45rem;
  text-align: center;
}

.br-hero__title {
  font-family: var(--font-fun);
  font-size: clamp(2.05rem, 4.6vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 auto 0.85rem;
  text-align: center;
}

.br-hero__lede {
  max-width: 38rem;
  margin: 0 auto 1.35rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
  text-align: center;
}

.br-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem;
}

.br-hero__trust {
  margin: 0 auto;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.45;
}

.br-wave {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.br-wave svg {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(2.5rem, 6vw, 4rem);
  transition: transform var(--motion-coast, 0.32s) var(--ease-editorial);
}

.br-wave__fill {
  fill: var(--lavender);
}

/* Hero → Quick Launches (white) */
.br-wave--into-white .br-wave__fill {
  fill: var(--white);
}

/* Featured (white) → Resource Library (footer pastel) */
.br-wave--into-footer .br-wave__fill,
.br-wave--into-purple .br-wave__fill {
  fill: var(--footer, #ebe8f1);
}

.br-wave--mint .br-wave__fill {
  fill: var(--mint);
}

/* ---------- Quick launches (app tiles) ---------- */
.br-launch {
  background: var(--white);
  padding-top: clamp(1.35rem, 2.8vw, 2rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.br-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 9.5rem));
  gap: 1.25rem 1.1rem;
  justify-content: center;
  align-items: stretch;
  max-width: 58rem;
  margin: 0 auto;
}

.br-launch-tile {
  margin: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
}

.br-launch-tile[hidden] {
  display: none !important;
}

.br-launch-tile__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0.45rem 0.4rem 0.6rem;
  text-decoration: none;
  text-align: center;
  border-radius: 1.1rem;
  transition:
    transform var(--motion-coast, 0.32s) var(--ease-spring, var(--ease)),
    opacity var(--motion-fast) var(--ease);
  will-change: transform;
}

/*
  Soft neutral wells for full-color main icons (soft blobs).
  Strong colored fills / mask recoloring fight the sheet art — keep wells
  airy so the PNG is the hero of each tile.
*/
.br-launch-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 5.15rem;
  height: 5.15rem;
  margin-inline: auto;
  padding: 0.62rem;
  border-radius: 1.35rem;
  background: linear-gradient(165deg, #ffffff 0%, #f7f4fb 100%);
  border: 1px solid rgba(96, 51, 135, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(58, 48, 72, 0.08);
  /* Soft-blob sheet art needs room — never crop glyph halos */
  overflow: visible;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

/* Full-color PNG via --launch-icon (no mask / invert / filter).
   Square glyph box + contain keeps every launch icon optically centered. */
.br-launch-tile__icon::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto;
  flex-shrink: 0;
  background: transparent var(--launch-icon) center center / contain no-repeat;
  opacity: 1;
}

/* Subtle tone wash — never a saturated fill behind blob art */
.br-launch-tile[data-tone="purple"] .br-launch-tile__icon {
  background: linear-gradient(165deg, #ffffff 0%, #f3ecfb 100%);
  border-color: rgba(96, 51, 135, 0.12);
}

.br-launch-tile[data-tone="lavender"] .br-launch-tile__icon {
  background: linear-gradient(165deg, #ffffff 0%, #f0e8f8 100%);
  border-color: rgba(155, 123, 184, 0.18);
}

.br-launch-tile[data-tone="mint"] .br-launch-tile__icon {
  background: linear-gradient(165deg, #ffffff 0%, #eaf7f4 100%);
  border-color: rgba(107, 191, 180, 0.22);
}

.br-launch-tile[data-tone="teal"] .br-launch-tile__icon {
  background: linear-gradient(165deg, #ffffff 0%, #e4f4f1 100%);
  border-color: rgba(95, 184, 172, 0.22);
}

.br-launch-tile__label {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.2;
}

.br-launch-tile__title {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--purple);
  /* Reserve two lines so uneven titles don’t make tiles look crooked */
  min-height: calc(1.25em * 2);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .br-launch-tile__link:hover {
    transform: translate3d(0, -3px, 0);
  }

  .br-launch-tile__link:hover .br-launch-tile__icon {
    transform: translate3d(0, -2px, 0) scale(1.03);
    border-color: rgba(96, 51, 135, 0.18);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 14px 30px rgba(58, 48, 72, 0.12);
  }

  .br-launch-tile__link:active {
    transform: translate3d(0, 1px, 0) scale(0.985);
    transition-duration: var(--motion-press, 0.14s);
  }

  .br-launch-tile__link:active .br-launch-tile__icon {
    transform: scale(0.97);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.85) inset,
      0 6px 14px rgba(58, 48, 72, 0.08);
  }
}

/* ---------- Featured Explore callout (white, 3 posts) ---------- */
.br-featured {
  background: var(--white);
  padding-top: clamp(0.35rem, 1.2vw, 0.75rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.35rem);
}

.br-featured__grid {
  margin: 0;
}

/* ---------- Resource library (footer pastel, searchable feed) ---------- */
.br-app {
  background:
    radial-gradient(ellipse 70% 50% at 10% 12%, rgba(138, 214, 204, 0.18), transparent 56%),
    radial-gradient(ellipse 55% 45% at 92% 88%, rgba(96, 51, 135, 0.06), transparent 55%),
    var(--footer, #ebe8f1);
  padding-top: clamp(1.5rem, 3vw, 2.35rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--ink);
}

.br-app .br-section-header p {
  color: var(--ink-muted);
}

.br-app .br-empty {
  color: var(--ink-muted);
}

.br-app .br-count {
  color: var(--ink-muted);
}

/* Center with margin — do NOT use transform (reveals set transform: none). */
.br-segment {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem;
  margin: 0 auto 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 0.2rem;
  position: relative;
  align-items: stretch;
  justify-content: center;
}

.br-segment__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--nav);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.15rem;
  min-height: 2.65rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}

.br-segment__btn.is-active {
  background: var(--purple);
  color: var(--white);
}

.br-segment__btn:hover:not(.is-active) {
  background: rgba(96, 51, 135, 0.08);
}

.br-toolbar {
  display: grid;
  gap: 0.9rem;
  max-width: 42rem;
  margin: 0 auto 1.35rem;
  justify-items: stretch;
}

.br-search {
  display: block;
  width: 100%;
}

.br-search input[type="search"] {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--white) !important;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
  box-shadow: 0 8px 22px rgba(58, 48, 72, 0.06);
}

.br-search input[type="search"]::placeholder {
  color: var(--ink-muted);
}

.br-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.br-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--nav);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  min-height: 2.35rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}

.br-chip.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.br-chip:hover:not(.is-active) {
  border-color: rgba(96, 51, 135, 0.35);
  background: var(--white);
}

.br-count {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.br-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1rem;
  align-items: stretch;
}

.br-card {
  margin: 0;
  min-width: 0;
  height: 100%;
}

.br-card[hidden] {
  display: none !important;
}

.br-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  transition:
    transform var(--motion-coast, 0.32s) var(--ease-spring, var(--ease)),
    box-shadow var(--motion-hover, 0.34s) var(--ease-settle, var(--ease)),
    border-color var(--motion-hover, 0.34s) var(--ease-settle, var(--ease));
  box-shadow: 0 10px 28px rgba(58, 48, 72, 0.06);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .br-card__link:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(96, 51, 135, 0.28);
    box-shadow: 0 16px 36px rgba(58, 48, 72, 0.12);
  }

  .br-card__link:active {
    transform: translate3d(0, 1px, 0) scale(0.99);
    transition-duration: var(--motion-press, 0.14s);
  }

  .br-card__link:hover .br-card__media img {
    transform: scale(1.04);
  }
}

/* Media: featured image when present; brand gradient placeholder when not */
.br-card__media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse 80% 70% at 20% 20%, rgba(138, 214, 204, 0.55), transparent 60%),
    linear-gradient(135deg, #603387 0%, #8AD6CC 100%);
  overflow: hidden;
}

.br-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.br-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
  text-align: left;
}

.br-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.br-card__topic,
.br-card__type {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
}

.br-card__topic {
  color: var(--purple);
  background: rgba(138, 214, 204, 0.28);
}

.br-card__type {
  color: var(--ink-muted);
  background: rgba(96, 51, 135, 0.06);
}

.br-card__title {
  font-size: 1.12rem;
  margin: 0;
  color: var(--purple);
}

.br-card__excerpt {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  flex: 1;
}

.br-card__cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple);
}

.br-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 1.5rem 1rem;
}

.br-card__sticky {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  color: var(--purple-dark);
  background: rgba(138, 214, 204, 0.45);
}

/* ---------- Posts grid (inside Resource Library) ---------- */
.br-posts__grid {
  margin: 0;
}

.br-posts__empty {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

.br-post.is-sticky .br-card__link {
  border-color: rgba(96, 51, 135, 0.28);
  box-shadow: 0 12px 30px rgba(58, 48, 72, 0.1);
}

.br-pagination {
  margin-top: clamp(1.35rem, 3vw, 2rem);
  text-align: center;
}

.br-pagination[hidden] {
  display: none !important;
}

.br-count[hidden] {
  display: none !important;
}

.br-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.br-pagination .page-numbers li {
  margin: 0;
}

.br-pagination a.page-numbers,
.br-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    background-color var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease);
}

.br-pagination a.page-numbers:hover {
  border-color: rgba(96, 51, 135, 0.35);
  background: var(--lavender);
  transform: translateY(-1px);
}

.br-pagination span.page-numbers.current {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.br-pagination span.page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--ink-muted);
  min-width: 1.5rem;
}

/* ---------- Leadership ---------- */
.br-lead {
  background: var(--mint);
  text-align: center;
  overflow: hidden;
}

.br-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
  text-align: left;
  align-items: stretch;
}

.br-pillars li {
  min-width: 0;
  padding: 1.15rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.br-pillars h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.br-pillars p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
}

.br-lead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

@media (max-width: 899px) {
  .br-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.85rem;
  }

  .br-pillars {
    grid-template-columns: 1fr;
  }

  .br-hero__title {
    max-width: 22ch;
  }

  .br-launch-grid {
    grid-template-columns: repeat(auto-fit, minmax(7.75rem, 9rem));
    gap: 1.1rem 0.9rem;
  }

  .br-toolbar {
    max-width: none;
  }
}

@media (max-width: 599px) {
  body.wagn-blog-resources .section {
    padding-block: clamp(1.65rem, 5vw, 2.35rem);
  }

  .br-hero {
    padding-bottom: clamp(1.65rem, 5vw, 2.25rem);
  }

  .br-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .br-section-header {
    margin-bottom: 1.15rem;
    padding-inline: 0;
  }

  .br-section-header h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .br-section-header p {
    font-size: 0.98rem;
  }

  .br-hero__title {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
    max-width: none;
    padding-inline: 0;
  }

  .br-hero__lede {
    font-size: 0.98rem;
    padding-inline: 0;
    margin-bottom: 1.2rem;
  }

  .br-hero__trust {
    font-size: 0.82rem;
    padding-inline: 0;
  }

  .br-hero__actions,
  .br-lead__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 22rem);
    max-width: 22rem;
    margin-inline: auto;
  }

  .br-hero__actions .btn,
  .br-lead__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
  }

  .br-launch {
    padding-top: clamp(1.15rem, 4vw, 1.65rem);
    padding-bottom: clamp(1.1rem, 3.5vw, 1.5rem);
  }

  .br-launch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 1.1rem 0.65rem;
    max-width: none;
  }

  .br-launch-tile__link {
    padding: 0.35rem 0.2rem 0.45rem;
    gap: 0.42rem;
  }

  .br-launch-tile__icon {
    width: 4.35rem;
    height: 4.35rem;
    padding: 0.48rem;
    border-radius: 1.15rem;
  }

  .br-launch-tile__icon::before {
    width: 2.95rem;
    height: 2.95rem;
    margin: 0 auto;
  }

  .br-launch-tile__label {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .br-launch-tile__title {
    font-size: 0.8rem;
    min-height: calc(1.25em * 2);
  }

  .br-segment {
    width: min(100%, 22rem);
    max-width: 100%;
  }

  .br-segment__btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.85rem;
    padding-inline: 0.75rem;
  }

  .br-chips {
    gap: 0.45rem;
    justify-content: center;
  }

  .br-chip {
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
  }

  .br-card__body {
    padding: 0.95rem 1rem 1.1rem;
  }

  .br-pillars {
    gap: 0.85rem;
    margin-bottom: 1.35rem;
  }

  .br-pillars li {
    padding: 1.05rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-segment__btn,
  .br-chip,
  .br-card__link,
  .br-card__media img,
  .br-launch-tile__link,
  .br-launch-tile__icon,
  .br-pagination a.page-numbers,
  .br-wave svg {
    transition: none !important;
  }

  .br-card__link,
  .br-card__link:hover,
  .br-card__link:active,
  .br-launch-tile__link,
  .br-launch-tile__link:hover,
  .br-launch-tile__link:active,
  .br-launch-tile__link:hover .br-launch-tile__icon,
  .br-launch-tile__link:active .br-launch-tile__icon,
  .br-pagination a.page-numbers:hover {
    transform: none !important;
  }
}

/* Avoid scroll-blur / filter motion on mobile blog hub */
@media (max-width: 899px), (pointer: coarse) {
  body.wagn-blog-resources .br-card__link,
  body.wagn-blog-resources .br-launch-tile__link,
  body.wagn-blog-resources .br-card__media img {
    filter: none !important;
    backdrop-filter: none !important;
  }

  body.wagn-blog-resources .br-card__link,
  body.wagn-blog-resources .br-launch-tile__link {
    will-change: auto;
  }
}
