/* Public resources and their native WordPress metabox. All rules are scoped. */
.lfpe .lfdl-jump { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 20px; padding: 8px 18px; border: 1px solid #c2d6f0; border-radius: 999px; color: #0743a9; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.lfpe .lfdl-jump:hover { background: #eaf2ff; }
.lfpe .lfdl-jump:focus-visible { outline: 3px solid #0a59d9; outline-offset: 4px; }
.lfdl {
  --lfdl-navy: #00184e;
  --lfdl-blue: #0a59d9;
  --lfdl-muted: #496078;
  --lfdl-border: #cdddf0;
  color: var(--lfdl-navy);
  font-family: inherit;
  box-sizing: border-box;
}
.lfdl *, .lfdl *::before, .lfdl *::after { box-sizing: border-box; }
.lfdl-library { margin-block: clamp(48px, 6vw, 88px); scroll-margin-top: 110px; }
.lfdl .lfdl-header { max-width: 730px; margin: 0 0 28px; }
.lfdl .lfdl-kicker { margin: 0 0 10px; color: var(--lfdl-blue); font-size: 12px; line-height: 1.5; font-weight: 800; letter-spacing: .08em; }
.lfdl .lfdl-title { margin: 0 0 14px; color: var(--lfdl-navy); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.lfdl .lfdl-description { margin: 0 0 20px; color: var(--lfdl-muted); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.lfdl .lfdl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lfdl .lfdl-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--lfdl-border); border-radius: 14px; background: #fff; }
.lfdl .lfdl-file-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--lfdl-muted); font-size: 13px; line-height: 1.5; }
.lfdl .lfdl-format { padding: 4px 9px; border-radius: 5px; background: #eaf2ff; color: #0743a9; font-weight: 800; }
.lfdl .lfdl-card-title { margin: 0 0 14px; color: var(--lfdl-navy); font-size: clamp(21px, 2vw, 25px); line-height: 1.25; font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.lfdl .lfdl-card .lfdl-description { font-size: 15px; }
.lfdl .lfdl-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }
.lfdl a.lfdl-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; max-width: 100%; padding: 11px 18px; border: 1px solid var(--lfdl-blue); border-radius: 7px; background: var(--lfdl-blue); color: #fff; font-size: 15px; line-height: 1.4; font-weight: 700; text-decoration: none; text-align: center; }
.lfdl a.lfdl-button:hover { background: #0743a9; border-color: #0743a9; color: #fff; }
.lfdl a.lfdl-read, .lfdl .lfdl-pagination a { color: #0743a9; font-size: 14px; line-height: 1.5; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lfdl a.lfdl-read { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.lfdl a:focus-visible { outline: 3px solid #00184e; outline-offset: 4px; }
.lfdl .lfdl-empty { padding: 28px; border: 1px solid var(--lfdl-border); border-radius: 12px; background: #f4f8ff; }
.lfdl .lfdl-empty p { margin: 0; color: var(--lfdl-muted); font-size: 16px; line-height: 1.65; }
.lfdl .lfdl-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 25px; }
.lfdl .lfdl-pagination a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; }
.lfdl.lfdl-article { margin-block: 42px 16px; padding: clamp(23px, 3vw, 34px); border: 1px solid var(--lfdl-border); border-radius: 14px; background: #f4f8ff; }
.lfdl.lfdl-article .lfdl-title { font-size: clamp(24px, 2.5vw, 32px); }
.lfdl.lfdl-article .lfdl-description { max-width: 65ch; }

/* Administration: conspicuous controls without affecting the rest of WordPress. */
#lf_download_resource { border-color: #9ab7dc; }
#lf_download_resource .postbox-header { background: #edf4ff; }
#lf_download_resource .postbox-header h2 { color: #00184e; font-size: 15px; }
.lfdl-admin { padding-block: 6px; color: #1d2327; }
.lfdl-admin [hidden] { display: none !important; }
.lfdl-admin .lfdl-admin-intro { margin-bottom: 20px; padding: 16px 18px; border-left: 4px solid #0a59d9; background: #f2f7ff; }
.lfdl-admin .lfdl-admin-intro p { margin: 0; font-size: 14px; line-height: 1.6; }
.lfdl-admin .lfdl-admin-intro .lfdl-admin-kicker { margin-bottom: 6px; color: #0743a9; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.lfdl-admin .lfdl-admin-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; padding: 14px 16px; border: 1px solid #cdddf0; border-radius: 5px; overflow-wrap: anywhere; }
.lfdl-admin .lfdl-admin-file strong { flex-basis: 100%; color: #00184e; }
.lfdl-admin .lfdl-admin-file span { color: #50575e; }
.lfdl-admin .lfdl-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lfdl-admin .lfdl-admin-actions .button { min-height: 36px; padding: 3px 15px; }
.lfdl-admin .lfdl-admin-fields { display: grid; gap: 6px; max-width: 900px; }
.lfdl-admin .lfdl-admin-fields label { display: block; margin-bottom: 6px; }
.lfdl-admin .lfdl-admin-fields label span { color: #50575e; font-weight: 400; }
.lfdl-admin .lfdl-admin-fields .description, .lfdl-admin .lfdl-admin-fallback .description { display: block; margin-top: 5px; }
.lfdl-admin .lfdl-admin-feedback { padding: 12px 14px; border-left: 3px solid #0a59d9; background: #f2f7ff; color: #00184e; }
.lfdl-admin .lfdl-admin-fallback { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dcdcde; }
.lfdl-admin .lfdl-admin-fallback summary { width: fit-content; cursor: pointer; color: #2271b1; }
.lfdl-admin .lfdl-admin-fallback label { margin-right: 10px; }
.lfdl-admin .lfdl-admin-fallback input { width: 140px; }
.lfdl-admin [aria-invalid="true"] { border-color: #b32d2e; }

@media (max-width: 1040px) {
  .lfdl .lfdl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lfdl .lfdl-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lfdl .lfdl-card { padding: 22px; }
  .lfdl .lfdl-card-actions { gap: 12px; }
  .lfdl a.lfdl-button { min-height: 48px; }
  .lfdl.lfdl-article { margin-block: 30px 12px; }
  .lfdl-admin .lfdl-admin-actions { align-items: stretch; flex-direction: column; }
}
