/* OFM Digital Editions: the finder, the latest issues and the issue heading. Scoped to .ofm-* classes. */
.ofm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* finder form */
.ofm-finder { --ofm-blue: #25a6e1; --ofm-blue-d: #188bc0; --ofm-ink: #1d2733; --ofm-hair: #e3e9ee; color: var(--ofm-ink); scroll-margin-top: 16px; }
.ofm-finder .ofm-finder-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0 0 14px; padding: 14px; background: #fff; border: 1px solid var(--ofm-hair); border-radius: 14px; box-shadow: 0 8px 24px rgba(29, 39, 51, .06); }
.ofm-finder .ofm-finder-form label { display: block; margin: 0; }
.ofm-finder .ofm-finder-q { flex: 1 1 320px; }
.ofm-finder .ofm-finder-form input[type=search],
.ofm-finder .ofm-finder-form select {
  width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1.5px solid var(--ofm-hair); border-radius: 10px; background: #fff;
  color: var(--ofm-ink); font: 600 16px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: none; transition: border-color .15s;
}
.ofm-finder .ofm-finder-form select { min-width: 150px; padding-right: 30px; cursor: pointer; }
.ofm-finder .ofm-finder-form input[type=search]:focus,
.ofm-finder .ofm-finder-form select:focus { border-color: var(--ofm-blue); outline: 3px solid rgba(37, 166, 225, .25); outline-offset: 0; }
.ofm-finder .ofm-finder-form button,
.ofm-finder .ofm-finder-form button:hover,
.ofm-finder .ofm-finder-form button:focus {
  height: 48px; margin: 0; padding: 0 26px; border: 0; border-radius: 10px; background: var(--ofm-blue); color: #fff; cursor: pointer;
  font: 800 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .02em; text-transform: none; box-shadow: none;
}
.ofm-finder .ofm-finder-form button:hover, .ofm-finder .ofm-finder-form button:focus { background: var(--ofm-blue-d); }

/* what is showing */
.ofm-finder .ofm-finder-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font: 500 15px/1.4 system-ui, sans-serif; }
.ofm-finder .ofm-chip, .ofm-finder .ofm-chip:visited { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ofm-ink); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; }
.ofm-finder .ofm-chip:hover, .ofm-finder .ofm-chip:focus { background: var(--ofm-blue-d); color: #fff; }
.ofm-finder .ofm-finder-clear, .ofm-finder .ofm-finder-clear:visited { color: var(--ofm-blue-d); font-weight: 700; font-size: 13px; }

/* covers */
.ofm-finder .ofm-finder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.ofm-card, .ofm-card:visited { display: flex; flex-direction: column; gap: 6px; color: #1d2733; text-decoration: none; }
.ofm-card .ofm-card-img { display: block; width: 100%; height: auto; aspect-ratio: 1025 / 1298; object-fit: cover; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(29, 39, 51, .14); transition: transform .15s ease, box-shadow .15s ease; }
.ofm-card:hover .ofm-card-img, .ofm-card:focus .ofm-card-img { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(29, 39, 51, .2); }
.ofm-card .ofm-card-noimg { display: flex; align-items: center; justify-content: center; color: #7d8894; font-weight: 700; }
.ofm-card .ofm-card-date { font: 700 17px/1.2 Fraunces, Georgia, serif; color: #1d2733; }
.ofm-card .ofm-card-ed { font: 800 11px/1.2 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #188bc0; }
.ofm-card:hover .ofm-card-date { color: #188bc0; }
.ofm-card .ofm-card-note { font: 600 12px/1.3 system-ui, sans-serif; color: #5b6672; }
.ofm-finder .ofm-finder-empty { padding: 28px; background: #fff; border: 1px dashed #c9d3db; border-radius: 12px; font-size: 16px; }

/* page numbers */
.ofm-finder .ofm-finder-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 30px 0 0; }
.ofm-finder .ofm-finder-pages a, .ofm-finder .ofm-finder-pages span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--ofm-hair); background: #fff; color: var(--ofm-ink); font: 700 14px system-ui, sans-serif; text-decoration: none; }
.ofm-finder .ofm-finder-pages a:hover { border-color: var(--ofm-blue); color: var(--ofm-blue-d); }
.ofm-finder .ofm-finder-pages .is-on { background: var(--ofm-ink); border-color: var(--ofm-ink); color: #fff; }

/* newest issue of each edition */
.ofm-latest { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ofm-latest-item { display: flex; gap: 20px; align-items: center; padding: 18px; background: #fff; border: 1px solid #e3e9ee; border-radius: 16px; box-shadow: 0 8px 24px rgba(29, 39, 51, .06); }
.ofm-latest-cover { flex: 0 0 42%; max-width: 220px; }
.ofm-latest-cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 6px 18px rgba(29, 39, 51, .2); }
.ofm-latest-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ofm-latest-ed { font: 800 12px/1.2 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #e74a2c; }
.ofm-latest-date { font: 700 28px/1.1 Fraunces, Georgia, serif; color: #1d2733; }
.ofm-latest-note { font: 600 13px/1.35 system-ui, sans-serif; color: #5b6672; }
.ofm-latest .ofm-btn, .ofm-latest .ofm-btn:visited { display: inline-flex; align-items: center; min-height: 42px; margin-top: 4px; padding: 0 18px; border-radius: 999px; background: #25a6e1; color: #fff; font: 800 13px/1 system-ui, sans-serif; letter-spacing: .04em; text-decoration: none; }
.ofm-latest .ofm-btn:hover, .ofm-latest .ofm-btn:focus { background: #188bc0; color: #fff; }
.ofm-latest-all, .ofm-latest-all:visited { color: #188bc0; font: 700 13px system-ui, sans-serif; }
@media (max-width: 480px) { .ofm-latest-item { padding: 14px; gap: 14px; } .ofm-latest-date { font-size: 22px; } }

/* issue page heading */
.ofm-issue-heading { display: flex; flex-direction: column; gap: 2px; }
.ofm-issue-heading .ofm-issue-ed, .ofm-issue-heading .ofm-issue-ed:visited { font: 800 11px/1.2 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #188bc0; text-decoration: none; }
.ofm-issue-heading .ofm-issue-title { margin: 0; font: 700 34px/1.05 Fraunces, Georgia, serif; color: #1d2733; }
@media (max-width: 767px) { .ofm-issue-heading .ofm-issue-title { font-size: 26px; } }
.ofm-issue-heading .ofm-issue-note { margin: 4px 0 0; font: 600 14px/1.35 system-ui, sans-serif; color: #5b6672; }
