body.template-resource-library {
  max-width: none;
  padding: 0;
  background: #fff;
  color: #102a43;
}
.template-resource-library .portal-site-header {
  max-width: 1348px;
  margin: 0 auto;
  border-width: 0 0 1px;
  border-radius: 0;
}
.template-resource-library .portal-site-header a:focus-visible,
.template-resource-library .portal-site-header button:focus-visible,
.resource-library a:focus-visible,
.resource-library button:focus-visible,
.resource-library input:focus-visible,
.resource-library select:focus-visible {
  outline: 3px solid #f5b942;
  outline-offset: 3px;
}
.resource-library {
  max-width: 1348px;
  margin: 0 auto;
  padding: 20px 28px 48px;
}
.resource-library__hero {
  padding: 42px 48px;
  border-radius: 12px;
  background: #eff6fa;
}
.resource-library__hero-content {
  max-width: 780px;
}
.resource-library__hero h1 {
  margin-top: 8px;
  color: #102a43;
  font-size: clamp(2.35rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.resource-library__hero-content > p:last-child {
  max-width: 720px;
  margin-top: 12px;
  color: #334e5a;
  font-size: 18px;
  line-height: 1.55;
}
.resource-library__section-nav {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  border-bottom: 1px solid #d8e4e8;
}
.resource-library__section-nav a {
  padding: 12px 2px 10px;
  border-bottom: 3px solid transparent;
  color: #526b75;
  font-weight: 700;
  text-decoration: none;
}
.resource-library__section-nav a:hover,
.resource-library__section-nav a[aria-current="page"] {
  border-bottom-color: #176b7a;
  color: #105866;
}
.resource-library__audience-review {
  padding: 16px;
  border: 1px solid #d8e4e8;
  border-radius: 12px;
  background: #f7fafb;
}
.portal-resources__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.portal-resources__tab {
  padding: 9px 15px;
  border: 1px solid #b9ccd3;
  border-radius: 999px;
  background: #fff;
  color: #45616b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.portal-resources__tab:hover {
  border-color: #176b7a;
  color: #105866;
}
.portal-resources__tab--active {
  border-color: #176b7a;
  background: #176b7a;
  color: #fff;
}
.resource-library__section {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid #d8e4e8;
  border-radius: 12px;
  background: #fff;
}
.resource-library__section-heading h2 {
  margin-top: 6px;
  color: #102a43;
  font-size: 28px;
  line-height: 1.2;
}
.resource-library__section-heading p:last-child {
  max-width: 760px;
  margin-top: 8px;
  color: #526b75;
  font-size: 16px;
  line-height: 1.5;
}
.resource-filter {
  display: grid;
  grid-template-columns:
    minmax(280px, 2fr) repeat(4, minmax(140px, 1fr))
    auto auto;
  align-items: end;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #d8e4e8;
  border-radius: 10px;
  background: #f7fafb;
}
.resource-filter label {
  display: block;
  margin-bottom: 7px;
  color: #334e5a;
  font-size: 13px;
  font-weight: 700;
}
.resource-filter__search-control {
  position: relative;
}
.resource-filter__search-control svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #526b75;
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}
.resource-filter input,
.resource-filter select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #b9ccd3;
  border-radius: 7px;
  background: #fff;
  color: #102a43;
  font: inherit;
}
.resource-filter input {
  padding-left: 45px;
}
.resource-filter input:hover,
.resource-filter select:hover {
  border-color: #176b7a;
}
.resource-filter__submit,
.resource-filter__clear {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}
.resource-filter__submit {
  border: 1px solid #176b7a;
  background: #176b7a;
  color: #fff;
  cursor: pointer;
}
.resource-filter__submit:hover {
  background: #105866;
}
.resource-filter__clear {
  border: 1px solid #b9ccd3;
  background: #fff;
  color: #105f70;
  text-decoration: none;
}
.resource-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 14px;
  color: #526b75;
  font-size: 14px;
}
.resource-results-summary strong {
  color: #102a43;
  font-size: 18px;
}
.resource-library__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}
.resource-library__pagination a {
  color: #105f70;
  font-weight: 700;
}
.resource-results-summary span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f3f5;
  color: #105866;
  font-weight: 700;
}
.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.portal-card--resource,
.portal-card--referral {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #d8e4e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.05);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}
.portal-card--resource:hover,
.portal-card--resource:focus-visible,
.portal-card--referral:hover,
.portal-card--referral:focus-visible {
  border-color: #8eb5bf;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.1);
  transform: translateY(-2px);
}
.portal-card__media--resource {
  height: 148px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #eff6fa;
}
.portal-card__media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-card__media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eff6fa, #dcebef);
}
.portal-card__media-placeholder span,
.portal-card__type {
  color: #105866;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.portal-card__media-placeholder span {
  padding: 7px 11px;
  border: 1px solid rgba(23, 107, 122, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}
.portal-card__meta-row,
.portal-card__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.portal-card__tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4f6;
  color: #46616b;
  font-size: 12px;
  font-weight: 700;
}
.portal-card__meta-row .portal-card__tag {
  margin-left: auto;
}
.portal-card--resource h3,
.portal-card--referral h3 {
  margin-top: 12px;
  color: #102a43;
  font-size: 20px;
  line-height: 1.28;
}
.portal-card--referral h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.portal-card--resource p,
.portal-card--referral p {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: #526b75;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.portal-card__meta {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  color: #105f70;
  font-size: 14px;
  font-weight: 700;
}
.portal-card__save {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 12px 0 0;
}
.resource-empty-state {
  display: grid;
  justify-items: center;
  padding: 52px 24px;
  border: 1px dashed #b9ccd3;
  border-radius: 12px;
  background: #f7fafb;
  text-align: center;
}
.resource-empty-state svg {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  fill: none;
  stroke: #176b7a;
  stroke-linecap: round;
  stroke-width: 2;
}
.resource-empty-state h3 {
  color: #102a43;
  font-size: 20px;
}
.resource-empty-state p {
  margin-top: 7px;
  color: #526b75;
}
.resource-empty-state a {
  margin-top: 16px;
  color: #105f70;
  font-weight: 700;
}
.resource-empty-state--compact {
  padding: 30px 24px;
}
.portal-resource-modal {
  width: min(1320px, 90vw);
  max-width: 90vw;
  height: min(880px, 88vh);
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(16, 42, 67, 0.28);
}
.portal-resource-modal::backdrop {
  background: rgba(16, 42, 67, 0.58);
}
.portal-resource-modal [hidden] {
  display: none !important;
}
.portal-resource-modal__shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.portal-resource-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #d9e6eb;
}
.portal-resource-modal__heading {
  min-width: 0;
}
.portal-resource-modal__heading h2 {
  margin-top: 4px;
  color: #102a43;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.portal-resource-modal__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.portal-resource-modal__badges span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf4f6;
  color: #45616b;
  font-size: 13px;
  font-weight: 700;
}
.portal-resource-modal__close {
  width: 44px;
  height: 44px;
  border: 1px solid #b9ccd3;
  border-radius: 50%;
  background: #fff;
  color: #105f70;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}
.portal-resource-modal__close:focus-visible {
  outline: 3px solid #f5b942;
  outline-offset: 2px;
}
.portal-resource-modal__layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
}
.portal-resource-modal__viewer {
  position: relative;
  min-width: 0;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: auto;
  border-right: 1px solid #d9e6eb;
  background: #eff6fa;
}
.portal-resource-modal__frame,
.portal-resource-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}
.portal-resource-modal__image {
  padding: 24px;
  object-fit: contain;
}
.portal-resource-modal__placeholder {
  display: grid;
  gap: 12px;
  place-items: center;
  max-width: 520px;
  padding: 40px;
  color: #45616b;
  text-align: center;
}
.portal-resource-modal__placeholder svg {
  width: 70px;
  fill: none;
  stroke: #6a929c;
  stroke-width: 2;
}
.portal-resource-modal__placeholder strong {
  color: #105866;
  font-size: 20px;
  font-weight: 700;
}
.portal-resource-modal__website-choice,
.portal-resource-modal__iframe-note,
.portal-resource-modal__loading {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  border: 1px solid #b9ccd3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #334e5a;
  font-size: 13px;
  text-align: center;
}
.portal-resource-modal__website-choice .portal-button {
  margin-top: 10px;
}
.portal-resource-modal__loading {
  top: 18px;
  bottom: auto;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
}
.portal-resource-modal__details {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 24px;
  overflow-y: auto;
}
.portal-resource-modal__details h3 {
  color: #102a43;
  font-size: 19px;
}
.portal-resource-modal__description {
  margin-top: 8px;
  color: #334e5a;
  line-height: 1.6;
  white-space: pre-line;
}
.portal-resource-modal__metadata {
  display: grid;
  gap: 0;
}
.portal-resource-modal__metadata div {
  padding: 11px 0;
  border-bottom: 1px solid #e1ebef;
}
.portal-resource-modal__metadata dt {
  color: #607780;
  font-size: 12px;
  font-weight: 700;
}
.portal-resource-modal__metadata dd {
  margin-top: 4px;
  color: #102a43;
  overflow-wrap: anywhere;
}
.portal-resource-modal__warning {
  padding: 12px;
  border: 1px solid #e1c777;
  border-radius: 8px;
  background: #fff8df;
  color: #6b5100;
}
.portal-resource-modal__actions {
  display: grid;
  gap: 10px;
}
.portal-resource-modal__actions .portal-button {
  width: 100%;
}
@media (max-width: 1250px) {
  .resource-filter {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
@media (max-width: 1100px) {
  .resource-filter__submit,
  .resource-filter__clear {
    width: 100%;
  }
  .resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .portal-resource-modal {
    width: calc(100vw - 24px);
    max-width: none;
    height: calc(100vh - 24px);
    max-height: none;
  }
  .portal-resource-modal__layout {
    display: block;
    overflow-y: auto;
  }
  .portal-resource-modal__viewer {
    min-height: 48vh;
    border-right: 0;
    border-bottom: 1px solid #d9e6eb;
  }
  .portal-resource-modal__frame,
  .portal-resource-modal__image {
    min-height: 48vh;
  }
  .resource-library {
    padding: 12px 16px 36px;
  }
  .resource-library__hero {
    padding: 34px 24px;
  }
  .resource-library__hero h1 {
    font-size: 2.25rem;
  }
  .resource-library__section {
    margin-top: 22px;
    padding: 20px;
  }
  .resource-filter {
    grid-template-columns: 1fr 1fr;
  }
  .resource-filter__search {
    grid-column: 1/-1;
  }
  .resource-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .resource-library {
    padding-right: 12px;
    padding-left: 12px;
  }
  .resource-library__hero,
  .resource-library__section {
    padding: 22px 16px;
  }
  .resource-library__section-nav {
    gap: 18px;
  }
  .resource-filter {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .resource-filter__search {
    grid-column: auto;
  }
  .resource-results-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .portal-resource-modal__header,
  .portal-resource-modal__details {
    padding: 18px;
  }
}
