/* ============================================================
   CorfuDiscovery  -  owners directory (Settings -> Owners Directory)
   ============================================================ */

.cdf-od-sub { margin: 10px 0 0; color: var(--tc-owners-ffffffdb,rgba(255, 255, 255, .86)); font-size: 18px; max-width: 60ch; }
.page-hero .crumb span[aria-hidden] { margin: 0 6px; }

.cdf-od { padding-top: 28px; }

/* ---------- filters ---------- */
.cdf-od-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cdf-od-filters input[type="search"], .cdf-od-filters select { border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 11px 14px; font: inherit; background: var(--paper); color: var(--ink); min-width: 0; }
.cdf-od-filters input[type="search"] { flex: 1 1 220px; }
.cdf-od-filters select { flex: 0 1 190px; }

.cdf-od-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cdf-od-kinds a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--paper); font-weight: 600; }
.cdf-od-kinds a b { color: var(--muted); font-weight: 600; }
.cdf-od-kinds a.is-on { background: var(--navy); border-color: var(--navy); color: var(--tc-owners-ffffff,#fff); }
.cdf-od-kinds a.is-on b { color: var(--tc-owners-ffffffcc,rgba(255, 255, 255, .8)); }

.cdf-od-count { color: var(--muted); margin: 0 0 18px; }
.cdf-od-empty { padding: 40px 0; text-align: center; color: var(--body); }

/* ---------- cards ---------- */
.cdf-od-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.cdf-od-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.cdf-od-card:hover { box-shadow: var(--shadow-md, 0 10px 30px rgba(10, 30, 43, .12)); transform: translateY(-2px); }

.cdf-od-cover { position: relative; height: 112px; background: var(--sand); }
.cdf-od-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdf-od-cover.fb-rose { background: linear-gradient(135deg, var(--tc-owners-fbe3dc,#fbe3dc), var(--tc-owners-f6c9bd,#f6c9bd)); }
.cdf-od-cover.fb-grey { background: linear-gradient(135deg, var(--tc-owners-eceff1,#eceff1), var(--tc-owners-d9dee2,#d9dee2)); }
.cdf-od-type { position: absolute; top: 10px; left: 10px; background: var(--tc-owners-ffffffeb,rgba(255, 255, 255, .92)); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--navy); }

.cdf-od-body { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 16px; flex: 1; }
.cdf-od-av { position: relative; margin-top: -32px; width: 64px; }
.cdf-od-face { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); color: var(--tc-owners-ffffff,#fff); font-weight: 700; font-size: 22px; border: 3px solid var(--paper); overflow: hidden; position: relative; }
.cdf-od-av.biz .cdf-od-face { background: var(--navy); border-radius: 16px; }
.cdf-od-av.plain .cdf-od-face { background: var(--muted); }
.cdf-od-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cdf-od-ver { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tc-owners-1f7a44,#1f7a44); color: var(--tc-owners-ffffff,#fff); font-size: 13px; border: 2px solid var(--paper); }

.cdf-od-name { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--navy); }
.cdf-od-name a { color: inherit; text-decoration: none; }
.cdf-od-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole card is the link */
.cdf-od-you { margin-left: 6px; font-family: inherit; font-size: 11px; font-weight: 700; background: var(--coral-soft); color: var(--coral-deep); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.cdf-od-loc { color: var(--muted); font-size: 14px; }
.cdf-od-plus { background: var(--sand); border-radius: 999px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.cdf-od-bio { margin: 0; color: var(--body); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdf-od-bio.is-auto { color: var(--muted); }
.cdf-od-cats { display: flex; flex-wrap: wrap; gap: 6px; max-height: 58px; overflow: hidden; }
.cdf-od-cat { background: var(--sand); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--ink); }
.cdf-od-thumbs { display: flex; gap: 6px; position: relative; z-index: 2; }
.cdf-od-thumbs a { flex: 0 0 calc((100% - 12px) / 3); aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.cdf-od-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cdf-od-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.cdf-od-stats { display: flex; gap: 16px; }
.cdf-od-stat { display: flex; flex-direction: column; line-height: 1.2; }
.cdf-od-stat b { color: var(--navy); font-size: 16px; }
.cdf-od-stat b.is-none { color: var(--muted); }
.cdf-od-stat span { color: var(--muted); font-size: 12px; }
.cdf-od-icbtn { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--coral-deep); font-size: 17px; cursor: pointer; text-decoration: none; }
.cdf-od-icbtn:hover { background: var(--coral-soft); }

@media (max-width: 560px) {
  .cdf-od-filters select { flex: 1 1 100%; }
  .cdf-od-grid { grid-template-columns: 1fr; }
}

/* ---------- the author page ---------- */
.author-panel__initial { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--coral); color: var(--tc-owners-ffffff,#fff); font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 0 auto; }
.author-back { margin: 0 0 18px; font-size: 14.5px; }
.author-back a { color: var(--coral-deep); }
