.afp-wrap {
  width: min(calc(100% - 56px), 1120px);
  margin-inline: auto;
  padding-block: clamp(30px, 5vw, 54px);
  border-top: 1px solid #dbe5ef;
  color: #17334e;
  scroll-margin-top: 110px;
}
.afp-heading {
  max-width: 700px;
  margin-bottom: 22px;
}
.afp-heading .afp-kicker {
  margin: 0 0 8px;
  color: #a42c60;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.afp-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.afp-heading p:last-child {
  margin: 10px 0 0;
  color: #526479;
  font-size: 1rem;
  line-height: 1.65;
}
.afp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.afp-grid:has(.afp-card:only-child) {
  grid-template-columns: minmax(0, 620px);
}
.afp-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: #fff;
  color: #17334e;
  padding: 20px;
  box-shadow: 0 5px 14px #16395008;
  overflow-wrap: anywhere;
}
.afp-card .afp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 0 0 10px;
  color: #52667a;
  font-size: .78rem;
  line-height: 1.45;
}
.afp-label {
  padding: 3px 8px;
  border-radius: 12px;
  background: #eaf3f9;
  color: #184b69;
  font-weight: 600;
}
.afp-card :is(h2, h3) {
  margin: 0;
  color: #17334e;
  font-size: 1.13rem;
  line-height: 1.36;
  letter-spacing: -.016em;
}
.afp-card .afp-text {
  margin: 9px 0 0;
  color: #41566b;
  font-size: .92rem;
  line-height: 1.65;
}
.afp-card .afp-credit {
  margin: 13px 0 15px;
  color: #425e75;
  font-size: .83rem;
  font-weight: 650;
}
.afp-card .afp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  border-top: 1px solid #e7edf3;
  margin-top: auto;
  padding-top: 6px;
}
.afp-card .afp-actions button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #87234e;
  font: inherit;
  font-size: .85rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.afp-card .afp-actions [data-feedback-copy] {
  font-weight: 500;
  color: #425e75;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.afp-wrap .afp-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  color: #87234e;
  font-size: .92rem;
  font-weight: 650;
  text-underline-offset: 3px;
}
.afp-detail .afp-detail-body {
  margin: 20px 26px;
  color: #41566b;
  overflow-wrap: anywhere;
}
.afp-detail .afp-detail-body p { margin: 0 0 12px; }
.afp-detail .afp-source {
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #dbe5ef;
}
.afp-detail .afp-source a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #87234e;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.afp-detail .afp-source img {
  display: block;
  width: min(100%, 510px);
  height: auto;
  margin-top: 8px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
}
.afp-detail [data-feedback-copy] {
  min-height: 44px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid #ccdce4;
  border-radius: 8px;
  background: #f6f9fc;
  color: #214565;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.f124-page .f124-filters {
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
}
.afp-wrap :is(a, button):focus-visible,
.afp-detail :is(a, button):focus-visible {
  outline: 3px solid #247bab;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .afp-grid,
  .f124-page .f124-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f124-page .f124-search { grid-column: auto; }
}
@media (max-width: 640px) {
  .afp-wrap { width: calc(100% - 40px); }
  .afp-grid,
  .f124-page .f124-filters { grid-template-columns: minmax(0, 1fr); }
  .afp-card { padding: 17px; }
  .afp-detail .afp-detail-body { margin-inline: 16px; }
}
