/* BAPO Digital Library — refined visual system */
.bapo-lib,
.bapo-resource-access {
  --bapo-navy: #17395d;
  --bapo-blue: #24547d;
  --bapo-ink: #1b2f43;
  --bapo-muted: #607285;
  --bapo-soft: #f4f8fb;
  --bapo-soft-2: #edf4fa;
  --bapo-border: #d7e3ee;
  --bapo-white: #ffffff;
  --bapo-shadow: 0 18px 45px rgba(18, 44, 69, .08);
  --bapo-shadow-sm: 0 8px 24px rgba(18, 44, 69, .06);
  color: var(--bapo-ink);
  font-family: inherit;
}
.bapo-lib *, .bapo-resource-access * { box-sizing: border-box; }
.bapo-lib a, .bapo-resource-access a { text-decoration: none; }
.bapo-lib { width: min(1200px, 100%); margin: 0 auto; padding: 18px 0 56px; }

.bapo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr);
  gap: 24px;
  background: linear-gradient(125deg, #163858 0%, #214a70 48%, #2f648f 100%);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(16, 42, 68, .16);
}
.bapo-hero::before,
.bapo-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.bapo-hero::before {
  width: 320px; height: 320px; right: -110px; top: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0));
}
.bapo-hero::after {
  width: 280px; height: 280px; right: -80px; bottom: -140px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 36px rgba(255,255,255,.05), 0 0 0 76px rgba(255,255,255,.03);
}
.bapo-hero-copy, .bapo-hero-panel { position: relative; z-index: 1; }
.bapo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #d2e5f5; font-weight: 700; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase;
}
.bapo-eyebrow::before {
  content: ''; width: 30px; height: 1px; background: rgba(255,255,255,.45);
}
.bapo-hero h1 {
  color: #fff; font-size: clamp(31px, 4vw, 50px); line-height: 1.08;
  letter-spacing: -.03em; margin: 16px 0 14px; font-weight: 760; max-width: 760px;
}
.bapo-hero p {
  color: #e6eff7; font-size: 16px; line-height: 1.78; max-width: 700px; margin: 0;
}
.bapo-hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.bapo-hero-panel {
  align-self: stretch;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 20px;
}
.bapo-hero-panel-title {
  color: #fff; font-size: 17px; line-height: 1.35; font-weight: 700; margin: 0 0 14px;
}
.bapo-stats { display: grid; gap: 12px; }
.bapo-stat {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.bapo-stat-label { color: #d9e7f2; font-size: 13px; line-height: 1.4; }
.bapo-stat-value { color: #fff; font-size: 24px; line-height: 1; font-weight: 750; }
.bapo-stat small { display: block; color: #d9e7f2; font-size: 12px; margin-top: 4px; }

.bapo-toolbar {
  display: grid; gap: 16px; margin-bottom: 24px;
}
.bapo-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(190px, .9fr) auto;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--bapo-border);
  border-radius: 20px;
  box-shadow: var(--bapo-shadow-sm);
}
.bapo-filters label { display: block; margin: 0; }
.bapo-filters input, .bapo-filters select {
  font-size: 15px; height: 50px; width: 100%;
  border: 1px solid #d6e1eb; padding: 0 16px; border-radius: 12px;
  background: #fff; color: #273d51; outline-offset: 3px; margin: 0;
}
.bapo-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bapo-chip, .bapo-chip:visited {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--bapo-border); background: #fff; color: #244b70; font-weight: 650; font-size: 13px;
  box-shadow: 0 2px 9px rgba(18,44,69,.04);
}
.bapo-chip small { color: var(--bapo-muted); font-size: 12px; }
.bapo-chip.is-active { background: var(--bapo-navy); color: #fff; border-color: var(--bapo-navy); }
.bapo-chip.is-active small { color: #d8e7f3; }
.bapo-results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 0 4px;
}
.bapo-results-bar p { margin: 0; color: var(--bapo-muted); font-size: 14px; }

.bapo-btn {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 18px; text-align: center;
  border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1.45;
  border: 1px solid transparent; transition: transform .18s, background .18s, border-color .18s, color .18s;
  white-space: normal;
}
.bapo-btn:hover { transform: translateY(-1px); }
.bapo-btn-main, .bapo-btn-main:visited { background: #214e77; color: #fff; }
.bapo-btn-main:hover, .bapo-btn-main:focus { color: #fff; background: #153957; }
.bapo-btn-alt, .bapo-btn-alt:visited { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.10); }
.bapo-btn-alt:hover { background: rgba(255,255,255,.17); color: #fff; }
.bapo-btn-soft, .bapo-btn-soft:visited { border-color: #bfd2e3; color: #1d4e77; background: #f2f7fc; }
.bapo-btn-soft:hover { background: #e8f1f8; color: #17395d; }

.bapo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bapo-card {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--bapo-border); background: #fff; border-radius: 22px;
  box-shadow: var(--bapo-shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.bapo-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #214d76, #5e88ab);
}
.bapo-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(23,57,93,.11); border-color: #c5d9e9; }
.bapo-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dfeaf4; }
.bapo-media img { display: block; height: 100%; width: 100%; object-fit: cover; transition: transform .35s; }
.bapo-card:hover .bapo-media img { transform: scale(1.03); }
.bapo-placeholder {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.55), transparent 30%), linear-gradient(135deg, #e7f0f8, #d6e5f0);
  color: #2f6086; font-size: 30px; font-weight: 800; letter-spacing: .16em;
}
.bapo-placeholder span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bapo-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.bapo-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bapo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bapo-tags span, .bapo-label {
  display: inline-flex; align-items: center; color: #345f83; font-size: 11px; font-weight: 700;
  padding: 6px 10px; background: #eef5fb; border: 1px solid #e1ebf4; border-radius: 999px; letter-spacing: .02em;
}
.bapo-badge-access { background: #f3f8fd; }
.bapo-card h3 { color: var(--bapo-navy); font-size: 20px; line-height: 1.38; font-weight: 760; margin: 0 0 10px; }
.bapo-card h3 a, .bapo-card h3 a:visited { color: inherit; }
.bapo-card p {
  color: var(--bapo-muted); font-size: 14px; line-height: 1.72; margin: 0 0 18px; flex: 1;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.bapo-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.bapo-card-note { color: var(--bapo-muted); font-size: 12px; }
.bapo-text-link, .bapo-text-link:visited { color: #28587d; font-weight: 700; font-size: 14px; }
.bapo-text-link:hover { color: #17395d; }
.bapo-text-link span { margin-left: 4px; }

.bapo-pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.bapo-pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--bapo-border);
  border-radius: 10px; padding: 4px 10px; color: #24547d; background: #fff;
}
.bapo-pagination .current { color: #fff; background: var(--bapo-navy); border-color: var(--bapo-navy); }
.bapo-empty {
  text-align: center; border: 1px dashed #bdcfdf; background: #f8fafc; padding: 56px 18px; border-radius: 20px;
}
.bapo-empty h2 { font-size: 24px; margin: 0 0 10px; }
.bapo-empty p { color: var(--bapo-muted); margin: 0; }
.bapo-footnote {
  font-size: 13px; color: var(--bapo-muted); line-height: 1.7; margin-top: 28px;
  padding: 18px 20px; background: var(--bapo-soft); border: 1px solid var(--bapo-border); border-radius: 16px;
}

.bapo-resource-access {
  margin: 30px 0; border: 1px solid var(--bapo-border); border-radius: 20px; padding: 26px; background: #f7fafe;
}
.bapo-resource-access h2 { font-size: 24px; color: var(--bapo-navy); margin: 12px 0 10px; }
.bapo-resource-access p { font-size: 14px; color: var(--bapo-muted); line-height: 1.72; }
.bapo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.bapo-access-note { color: #6b5e50; font-size: 14px; }

.bapo-my-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.bapo-my-header h2 { margin: 0 0 6px; color: var(--bapo-navy); font-size: 30px; line-height: 1.15; }
.bapo-my-header p { color: var(--bapo-muted); margin: 0; }
.bapo-my-list { display: grid; gap: 12px; }
.bapo-my-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--bapo-border); border-radius: 16px; padding: 16px 18px; box-shadow: var(--bapo-shadow-sm);
}
.bapo-my-item strong { display: block; color: var(--bapo-navy); font-size: 16px; }
.bapo-my-item small { display: block; color: var(--bapo-muted); margin-top: 4px; }

@media (max-width: 1100px) {
  .bapo-hero { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .bapo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bapo-filters { grid-template-columns: 1fr; }
  .bapo-results-bar { align-items: flex-start; }
}
@media (max-width: 660px) {
  .bapo-lib { padding-bottom: 32px; }
  .bapo-hero { padding: 24px 20px; border-radius: 20px; }
  .bapo-hero p { font-size: 14px; }
  .bapo-hero-actions { flex-direction: column; }
  .bapo-hero-actions .bapo-btn { width: 100%; }
  .bapo-chip-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .bapo-chip { white-space: nowrap; }
  .bapo-grid { grid-template-columns: 1fr; gap: 16px; }
  .bapo-card-body { padding: 18px; }
  .bapo-card h3 { font-size: 18px; }
  .bapo-card-footer { flex-direction: column; align-items: flex-start; }
  .bapo-my-header h2 { font-size: 26px; }
  .bapo-my-item { flex-direction: column; align-items: stretch; }
  .bapo-btn { width: 100%; }
}


/* v0.2.2 — brand-led visual redesign. Defensive selectors guard against inherited theme article/CTA rules. */
.bapo-lib,
.bapo-lib :is(h1,h2,h3,h4,h5,p,span,div,small,strong,a,button,input,select,label),
.bapo-resource-access,
.bapo-resource-access :is(h1,h2,h3,p,span,div,small,strong,a,button) {
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
}
.bapo-lib {
  --bapo-ink: #342c39;
  --bapo-muted: #716b79;
  --bapo-border: #e9e1e8;
  --bapo-navy: #493251;
  --bapo-blue: #704b76;
  --bapo-soft: #faf7f9;
  color: #342c39 !important;
  padding: 24px 0 65px !important;
}
.bapo-lib .bapo-hero {
  background: linear-gradient(114deg, #fcf9fa 0%, #f7f0f5 55%, #f1ebf3 100%) !important;
  color: #342c39 !important;
  border: 1px solid #ece1e9 !important;
  box-shadow: none !important;
  border-radius: 26px !important;
  padding: clamp(30px, 4.2vw, 52px) !important;
  min-height: 330px !important;
  align-items: center;
  margin: 0 0 26px !important;
}
.bapo-lib .bapo-hero::before { background: radial-gradient(circle, rgba(214,166,188,.16), transparent 71%); }
.bapo-lib .bapo-hero::after { border-color: rgba(114,78,121,.12); box-shadow: 0 0 0 36px rgba(114,78,121,.025), 0 0 0 76px rgba(114,78,121,.02); }
.bapo-lib .bapo-eyebrow { color: #946a87 !important; font-size: 11px !important; letter-spacing: .12em !important; }
.bapo-lib .bapo-eyebrow::before { background: #c7a8c0 !important; }
.bapo-lib .bapo-hero h1 {
  color: #36263d !important;
  font-size: clamp(35px, 4.5vw, 53px) !important;
  font-weight: 760 !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
  max-width: 650px;
  margin: 18px 0 16px !important;
}
.bapo-lib .bapo-hero p { color: #655b6a !important; font-size: 16px !important; line-height: 1.8 !important; max-width: 640px !important; }
.bapo-lib .bapo-hero-actions { min-height: 48px; margin-top: 25px !important; display: flex !important; gap: 12px !important; }
.bapo-lib .bapo-hero-actions a.bapo-btn,
.bapo-lib .bapo-filters button.bapo-btn,
.bapo-lib a.bapo-btn,
.bapo-resource-access a.bapo-btn {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0 !important;
  height: auto !important;
  line-height: 1.35 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  text-transform: none !important;
  text-decoration: none !important;
  z-index: 1 !important;
  box-shadow: none !important;
}
.bapo-lib a.bapo-btn-main,
.bapo-lib .bapo-filters button.bapo-btn-main,
.bapo-resource-access a.bapo-btn-main { background: #633f70 !important; border: 1px solid #633f70 !important; color: white !important; }
.bapo-lib a.bapo-btn-main:hover,
.bapo-lib .bapo-filters button.bapo-btn-main:hover,
.bapo-resource-access a.bapo-btn-main:hover { background: #4c2d5c !important; border-color: #4c2d5c !important; }
.bapo-lib a.bapo-btn-alt,
.bapo-lib a.bapo-btn-soft,
.bapo-resource-access a.bapo-btn-alt { background: white !important; border: 1px solid #dfcfde !important; color: #633f70 !important; }
.bapo-lib a.bapo-btn-alt:hover,
.bapo-lib a.bapo-btn-soft:hover { background: #f7eff6 !important; }
.bapo-lib .bapo-hero-panel {
  background: rgba(255,255,255,.8) !important;
  border: 1px solid #ebdfe8 !important;
  box-shadow: 0 14px 32px rgba(86,55,90,.055) !important;
  backdrop-filter: none !important;
  border-radius: 20px !important;
  padding: 23px !important;
}
.bapo-lib .bapo-hero-panel h2 { color: #4a3352 !important; font-size: 18px !important; line-height: 1.45 !important; font-weight: 750 !important; }
.bapo-lib .bapo-stat { background: #fcf9fc !important; border: 1px solid #eee5ed !important; border-radius: 14px !important; }
.bapo-lib .bapo-stat-label { color: #5c4d64 !important; font-size: 13px !important; }
.bapo-lib .bapo-stat small { color: #827689 !important; font-size: 11px !important; }
.bapo-lib .bapo-stat-value { color: #69466e !important; font-weight: 800 !important; }
.bapo-lib .bapo-hero-aside-note { margin-top: 13px; padding: 4px 3px; font-size: 12px; line-height: 1.6; color: #817387 !important; }
.bapo-lib .bapo-filters { border: 1px solid #ebe3e9 !important; box-shadow: 0 7px 20px rgba(60,43,62,.03) !important; border-radius: 17px !important; }
.bapo-lib .bapo-filters input,
.bapo-lib .bapo-filters select { border: 1px solid #e8e1e8 !important; background: #fcfafc !important; color: #3c3041 !important; border-radius: 11px !important; font-size: 14px !important; }
.bapo-lib .bapo-chip { background: #fff !important; color: #625368 !important; border-color: #e8e0e9 !important; box-shadow: none !important; }
.bapo-lib .bapo-chip.is-active { background: #633f70 !important; color: white !important; border-color: #633f70 !important; }
.bapo-lib .bapo-chip small { color: #85788b !important; }
.bapo-lib .bapo-chip.is-active small { color: #eadcea !important; }
.bapo-lib .bapo-results-bar p { color: #6c6272 !important; }
.bapo-lib .bapo-grid { gap: 22px !important; }
.bapo-lib article.bapo-card {
  background: #fff !important;
  color: #342c39 !important;
  border: 1px solid #ede5eb !important;
  border-radius: 19px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 10px 30px rgba(65,43,65,.06) !important;
  overflow: hidden !important;
}
.bapo-lib article.bapo-card::before { display: none !important; }
.bapo-lib article.bapo-card:hover { transform: translateY(-4px) !important; box-shadow: 0 20px 42px rgba(65,43,65,.12) !important; border-color: #deccd9 !important; }
.bapo-lib .bapo-card .bapo-media { display: block !important; height: 192px !important; aspect-ratio: auto !important; margin: 0 !important; background: transparent !important; }
.bapo-lib .bapo-card .bapo-media img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.bapo-lib .bapo-cover {
  display: flex !important; height: 100% !important; width: 100% !important;
  flex-direction: column !important; justify-content: space-between !important;
  position: relative !important; isolation: isolate !important;
  overflow: hidden !important; padding: 22px 24px 19px !important;
  color: #4e4462 !important;
  background: linear-gradient(126deg, #efe8f0, #e3dbe8) !important;
}
.bapo-lib .bapo-cover--guide { color: #745362 !important; background: linear-gradient(129deg, #f6e7e7 0%, #ebd3d7 100%) !important; }
.bapo-lib .bapo-cover--research { color: #3b6474 !important; background: linear-gradient(129deg, #e9f0f3 0%, #d9e7ee 100%) !important; }
.bapo-lib .bapo-cover--books { color: #554467 !important; background: linear-gradient(125deg, #eee7f2 0%, #ded6e7 100%) !important; }
.bapo-lib .bapo-cover-orbit { position: absolute; width: 215px; height: 215px; border: 1px solid currentColor; opacity: .13; border-radius: 50%; top: -104px; right: -57px; z-index: -1; }
.bapo-lib .bapo-cover-orbit--second { width: 245px; height: 245px; right: -122px; top: 70px; opacity: .09; }
.bapo-lib .bapo-cover-topline { display: flex; align-items: center; gap: 9px; color: inherit !important; font-size: 10px !important; font-weight: 750 !important; letter-spacing: .11em !important; }
.bapo-lib .bapo-cover-topline span { font-size: 12px; color: inherit !important; }
.bapo-lib .bapo-cover-symbol { display: flex; align-items: center; justify-content: center; color: inherit !important; opacity: .7; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -56%) !important; }
.bapo-lib .bapo-cover-symbol svg { display: block; width: 61px; height: 61px; }
.bapo-lib .bapo-cover-kind { color: inherit !important; font-size: 15px !important; font-weight: 800 !important; letter-spacing: -.015em !important; }
.bapo-lib .bapo-cover-bottomline { display: none !important; }
.bapo-lib .bapo-card-body { background: #fff !important; padding: 22px 23px 24px !important; }
.bapo-lib .bapo-tags { gap: 7px !important; margin: 0 !important; }
.bapo-lib .bapo-tags span {
  display: inline-flex !important; background: #f6f0f5 !important; border: 1px solid #efe5ee !important;
  color: #704b76 !important; border-radius: 999px !important; font-size: 11px !important;
  font-weight: 700 !important; padding: 6px 10px !important; margin: 0 !important;
}
.bapo-lib .bapo-tags .bapo-badge-access { background: #f8f8f8 !important; border-color: #eeeeee !important; color: #726b75 !important; }
.bapo-lib .bapo-card h3 { color: #392b42 !important; font-size: 19px !important; line-height: 1.42 !important; font-weight: 750 !important; margin: 0 0 9px !important; }
.bapo-lib .bapo-card h3 a { color: #392b42 !important; position: static !important; text-decoration: none !important; }
.bapo-lib .bapo-card h3 a:hover { color: #744a7b !important; }
.bapo-lib .bapo-card-author { color: #8a7689 !important; font-size: 12px !important; font-weight: 600 !important; margin-bottom: 12px !important; }
.bapo-lib .bapo-card p { color: #716a76 !important; font-size: 13px !important; line-height: 1.67 !important; margin-bottom: 20px !important; }
.bapo-lib .bapo-card-footer { padding-top: 15px !important; border-top: 1px solid #f0ebef !important; }
.bapo-lib .bapo-card .bapo-text-link { color: #6b4374 !important; font-weight: 760 !important; font-size: 13px !important; }
.bapo-lib .bapo-card-note { color: #928992 !important; font-size: 11px !important; }
.bapo-lib .bapo-footnote { color: #716876 !important; background: #faf7fa !important; border-color: #eee5ee !important; }
.bapo-lib .bapo-my-item { background: #fff !important; border-color: #eee5ed !important; box-shadow: 0 9px 22px rgba(65,43,65,.045) !important; }
.bapo-lib .bapo-my-item strong { color: #392b42 !important; }
.bapo-resource-access { background: #fbf8fa !important; border-color: #eee4ed !important; color: #443749 !important; }
.bapo-resource-access h2 { color: #46304e !important; }
@media (max-width: 1100px) {
  .bapo-lib .bapo-hero { min-height: 0 !important; }
}
@media (max-width: 660px) {
  .bapo-lib { padding-top: 16px !important; }
  .bapo-lib .bapo-hero { padding: 26px 22px !important; border-radius: 21px !important; }
  .bapo-lib .bapo-hero h1 { font-size: 34px !important; }
  .bapo-lib .bapo-hero p { font-size: 14px !important; }
  .bapo-lib .bapo-hero-panel { padding: 18px !important; }
  .bapo-lib .bapo-card .bapo-media { height: 184px !important; }
  .bapo-lib article.bapo-card { border-radius: 17px !important; }
  .bapo-lib .bapo-card-body { padding: 20px !important; }
  .bapo-lib .bapo-card h3 { font-size: 18px !important; }
}
/* BAPO v0.2.3 — CTA sizing and editorial final card */
.bapo-lib .bapo-hero-actions a.bapo-btn {
 width:auto!important;max-width:none!important;min-width:176px!important;height:auto!important;flex:0 0 auto!important;white-space:nowrap!important;padding:13px 23px!important;
}
.bapo-lib .bapo-filters button.bapo-btn {
 width:auto!important;max-width:none!important;min-width:145px!important;height:50px!important;flex:0 0 auto!important;white-space:nowrap!important;padding:12px 24px!important;
}
@media(min-width:961px){
 .bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n + 1) {
  grid-column:1/-1!important;display:grid!important;grid-template-columns:34% minmax(0,1fr)!important;align-items:stretch!important;min-height:265px!important;
 }
 .bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n + 1) .bapo-media {height:100%!important;min-height:265px!important;}
 .bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n + 1) .bapo-card-body {padding:28px 32px!important;}
}
@media(max-width:760px){.bapo-lib .bapo-filters button.bapo-btn{width:100%!important;}}
@media(max-width:660px){.bapo-lib .bapo-hero-actions a.bapo-btn{width:100%!important;max-width:100%!important;white-space:normal!important;}}
/* BAPO v0.2.4: fix oversized last wide card */
@media(min-width:961px){
 .bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n + 1) {
  height:260px!important;min-height:260px!important;max-height:260px!important;grid-template-rows:260px!important;align-self:start!important;
 }
 .bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n + 1) .bapo-media {
  height:260px!important;min-height:0!important;max-height:260px!important;aspect-ratio:auto!important;
 }
 .bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n + 1) .bapo-cover {
  height:260px!important;min-height:260px!important;max-height:260px!important;
 }
 .bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n + 1) .bapo-card-body {
  height:260px!important;max-height:260px!important;min-height:0!important;overflow:hidden!important;
 }
}
@media(min-width:961px){.bapo-lib .bapo-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:auto!important}.bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n+1){grid-column:2/3!important;display:flex!important;grid-template-columns:none!important;grid-template-rows:none!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;align-self:stretch!important}.bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n+1) .bapo-media{height:192px!important;min-height:0!important;max-height:192px!important}.bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n+1) .bapo-cover{height:100%!important;min-height:0!important;max-height:none!important}.bapo-lib .bapo-grid > article.bapo-card:last-child:nth-child(3n+1) .bapo-card-body{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:22px 23px 24px!important}}