/* 1.0.84: Critical Thinking category archive, "All N articles at a glance" index.
   Palette: navy #0F1E3A, blue #1D4ED8, warm off-white #F5F1E8. No teal.
   Contrast: header text #F5F1E8 on #0F1E3A 14.7:1; body text #1A2233 on #FFFFFF 16.1:1;
   links #1D4ED8 on #FFFFFF 6.7:1; bias chip #1E3A8A on #E7EEFB 8.3:1; number badge #F5F1E8 on #1B3A6B 9.99:1. */
.pb-ctx {
  container-type: inline-size;
  container-name: pbctx;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 2rem;
  padding: 1.25rem;
  background: #F5F1E8;
  border: 1px solid #DDD6C6;
  border-radius: 14px;
  color: #1A2233;
}
.pb-ctx__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.2;
  color: #0F1E3A;
}
.pb-ctx__lede {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #33415C;
}
.pb-ctx__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  border: 1px solid #D5DDEA;
  border-radius: 10px;
  overflow: hidden;
  table-layout: auto;
}
.pb-ctx__table thead th {
  background: #0F1E3A;
  color: #F5F1E8;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 0.6rem;
  border: 0;
}
.pb-ctx__table tbody th,
.pb-ctx__table tbody td {
  padding: 0.75rem 0.6rem;
  vertical-align: top;
  text-align: left;
  border: 0;
  border-top: 1px solid #E3E9F3;
  background: #FFFFFF;
  color: #1A2233;
  font-size: 0.95rem;
  line-height: 1.45;
}
.pb-ctx__table tbody tr:first-child th,
.pb-ctx__table tbody tr:first-child td { border-top: 0; }
.pb-ctx__table tbody tr:nth-child(even) th,
.pb-ctx__table tbody tr:nth-child(even) td { background: #F6F8FB; }
.pb-ctx__c-no { width: 2.75rem; }
.pb-ctx__c-img { width: 4rem; }
.pb-ctx__c-title { width: 28%; }
.pb-ctx__c-bias { width: 9.5rem; }
.pb-ctx__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #1B3A6B;
  color: #F5F1E8;
  font-weight: 700;
  font-size: 0.95rem;
}
.pb-ctx__no-label { display: none; }
.pb-ctx__img {
  display: block;
  width: 56px;
  height: 70px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  border: 1px solid #D5DDEA;
  background: #F5F1E8;
}
.pb-ctx__table tbody th a {
  color: #1D4ED8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pb-ctx__table tbody th a:visited { color: #1E40AF; }
.pb-ctx__table tbody th a:hover,
.pb-ctx__table tbody th a:focus { color: #0F1E3A; text-decoration-thickness: 2px; }
.pb-ctx__table tbody th a:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; border-radius: 3px; }
.pb-ctx__bias {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #E7EEFB;
  color: #1E3A8A;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Narrow container (the archive column) or narrow screen: each row becomes a card
   (thumbnail left, number, title, bias, then the line). */
@container pbctx (max-width: 620px) {
  .pb-ctx { padding: 1rem; border-radius: 12px; }
  .pb-ctx__table,
  .pb-ctx__table tbody { display: block; background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .pb-ctx__table thead {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .pb-ctx__table tbody tr {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "img no" "img title" "img bias" "desc desc";
    column-gap: 0.85rem;
    row-gap: 0.3rem;
    margin: 0 0 0.75rem;
    padding: 0.85rem;
    background: #FFFFFF;
    border: 1px solid #D5DDEA;
    border-radius: 12px;
  }
  .pb-ctx__table tbody tr:last-child { margin-bottom: 0; }
  .pb-ctx__table tbody th,
  .pb-ctx__table tbody td,
  .pb-ctx__table tbody tr:nth-child(even) th,
  .pb-ctx__table tbody tr:nth-child(even) td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    min-width: 0;
  }
  .pb-ctx__c-no { grid-area: no; }
  .pb-ctx__c-img { grid-area: img; }
  .pb-ctx__c-title { grid-area: title; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
  .pb-ctx__c-bias { grid-area: bias; }
  .pb-ctx__c-desc { grid-area: desc; margin-top: 0.4rem; font-size: 0.98rem; color: #33415C; }
  .pb-ctx__no { height: auto; min-width: 0; padding: 0.1rem 0.55rem; font-size: 0.85rem; }
  .pb-ctx__no-label { display: inline; }
  .pb-ctx__img { width: 72px; height: 90px; }
}
@media (max-width: 700px) {
  .pb-ctx { padding: 1rem; border-radius: 12px; }
  .pb-ctx__table,
  .pb-ctx__table tbody { display: block; background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .pb-ctx__table thead {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .pb-ctx__table tbody tr {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "img no" "img title" "img bias" "desc desc";
    column-gap: 0.85rem;
    row-gap: 0.3rem;
    margin: 0 0 0.75rem;
    padding: 0.85rem;
    background: #FFFFFF;
    border: 1px solid #D5DDEA;
    border-radius: 12px;
  }
  .pb-ctx__table tbody tr:last-child { margin-bottom: 0; }
  .pb-ctx__table tbody th,
  .pb-ctx__table tbody td,
  .pb-ctx__table tbody tr:nth-child(even) th,
  .pb-ctx__table tbody tr:nth-child(even) td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    min-width: 0;
  }
  .pb-ctx__c-no { grid-area: no; }
  .pb-ctx__c-img { grid-area: img; }
  .pb-ctx__c-title { grid-area: title; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
  .pb-ctx__c-bias { grid-area: bias; }
  .pb-ctx__c-desc { grid-area: desc; margin-top: 0.4rem; font-size: 0.98rem; color: #33415C; }
  .pb-ctx__no { height: auto; min-width: 0; padding: 0.1rem 0.55rem; font-size: 0.85rem; }
  .pb-ctx__no-label { display: inline; }
  .pb-ctx__img { width: 72px; height: 90px; }
}
