/* Life Observer — checklists, explore, bar charts (eBird-style features). Uses the site's colour variables. */
.eb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.eb-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eb-eyebrow--light { color: #f3c99f; }
.eb-h2 { font-size: 1.05rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.eb-h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.eb-step { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .85rem; }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.btn-lg { padding: .75rem 1.4rem; font-size: 1.02rem; }
.btn-accent { background: var(--accent); color: #fff; }
.eb-check { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: #334155; }

/* hero band used by public explore pages */
.eb-hero { background: linear-gradient(120deg, #0d3f4d, var(--brand) 70%, #1f8196); color: #fff; }
.eb-search { display: flex; gap: .5rem; max-width: 40rem; background: #fff; border-radius: .9rem; padding: .35rem; box-shadow: 0 12px 30px -12px rgb(0 0 0 / .45); }
.eb-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .6rem .7rem; font-size: 1rem; color: var(--ink); background: transparent; }
.eb-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.eb-tabs a { flex: none; padding: .6rem 1rem; border-radius: .7rem .7rem 0 0; color: rgb(255 255 255 / .85); font-weight: 600; font-size: .92rem; }
.eb-tabs a:hover { background: rgb(255 255 255 / .1); }
.eb-tabs a[aria-current] { background: var(--paper, #fff); color: var(--brand-dark); }
.eb-crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: #64748b; }
.eb-crumbs a { color: var(--brand); }
.eb-crumbs a:hover { text-decoration: underline; }
.eb-crumbs--light, .eb-crumbs--light a { color: rgb(255 255 255 / .85); }
.eb-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.eb-pills a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid #cbd5e1; font-size: .88rem; font-weight: 600; color: #334155; background: #fff; }
.eb-pills a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* stat tiles */
.eb-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .75rem; }
.eb-stats > div { background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; padding: .8rem 1rem; }
.eb-stats dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.eb-stats dd { margin-top: .2rem; font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.eb-stats dd a:hover { color: var(--brand); }
.eb-stats dd.text-base { font-size: 1.1rem; line-height: 1.6rem; padding-top: .2rem; }

/* tables */
.eb-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.eb-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; padding: .6rem .9rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.eb-table td { padding: .6rem .9rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.eb-table tr:last-child td { border-bottom: 0; }
.eb-table .eb-fam td { background: #f8fafc; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; padding: .35rem .9rem; }
.eb-lvl-country td:first-child { padding-left: 1.6rem; }
.eb-lvl-state td:first-child { padding-left: 2.4rem; }
.eb-lvl-county td:first-child { padding-left: 3.2rem; color: #475569; }
.eb-lvl-world td { font-weight: 700; }
.eb-chip { display: inline-block; margin: 0 .25rem .25rem 0; padding: .1rem .5rem; border-radius: 999px; background: var(--muted); font-size: .78rem; color: #334155; }
.eb-flag { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .72rem; font-weight: 700; }
.eb-flag--no { background: #fee2e2; color: #991b1b; }
.eb-flag--ok { background: #dcfce7; color: #166534; }

/* maps */
.eb-map { height: 320px; width: 100%; background: #e5edf0; z-index: 0; }
.eb-map--sm { height: 220px; border-radius: .7rem; }
.eb-map--lg { height: 460px; }
@media (max-width: 640px) { .eb-map { height: 260px; } .eb-map--lg { height: 340px; } }
.eb-key { display: inline-block; width: .7rem; height: .7rem; border-radius: 999px; vertical-align: -1px; }
.eb-key--g { background: #f59e0b; }
.eb-key--m { background: var(--brand); }

/* checklist form */
.eb-seg { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.eb-seg label { position: relative; cursor: pointer; }
.eb-seg input { position: absolute; opacity: 0; inset: 0; }
.eb-seg span { display: inline-block; padding: .5rem .9rem; border: 1px solid #cbd5e1; border-radius: .7rem; font-size: .9rem; font-weight: 600; color: #334155; background: #fff; }
.eb-seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.eb-seg input:focus-visible + span { outline: 3px solid rgb(24 107 126 / .35); outline-offset: 2px; }
.eb-sp-wrap { max-height: 70vh; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: .8rem; }
.eb-sp { width: 100%; border-collapse: collapse; }
.eb-sp thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; padding: .5rem .7rem; border-bottom: 1px solid #e2e8f0; }
.eb-sp td { padding: .45rem .7rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.eb-row.is-seen { background: #f0f9fa; }
.eb-row.is-seen .eb-sp-name { font-weight: 700; }
.eb-sp-name { color: var(--ink); }
.eb-count { display: flex; align-items: center; gap: .3rem; }
.eb-count input[type=text] { width: 4.2rem; padding: .45rem .5rem; border: 1px solid #cbd5e1; border-radius: .55rem; font-size: 1rem; text-align: right; font-variant-numeric: tabular-nums; }
.eb-count input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(24 107 126 / .18); }
.eb-count input:disabled { background: #f1f5f9; }
.eb-x { position: relative; }
.eb-x input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.eb-x span { display: inline-grid; place-items: center; width: 2rem; height: 2.1rem; border: 1px solid #cbd5e1; border-radius: .55rem; font-weight: 800; color: #94a3b8; }
.eb-x input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.eb-more { width: 2rem; height: 2rem; border-radius: .5rem; color: #64748b; font-weight: 800; }
.eb-more:hover, .eb-more[aria-expanded=true] { background: var(--muted); color: var(--brand); }
.eb-details { margin-top: .6rem; padding: .75rem; border-radius: .6rem; background: #fff; border: 1px dashed #cbd5e1; }
.eb-agesex { display: grid; grid-template-columns: 6rem repeat(3, 1fr); gap: .3rem; align-items: center; font-size: .78rem; }
.eb-agesex b { font-weight: 600; color: #475569; }
.eb-agesex input { width: 100%; padding: .3rem; border: 1px solid #cbd5e1; border-radius: .4rem; text-align: right; }
.eb-suggest { position: relative; margin-top: .35rem; border: 1px solid #cbd5e1; border-radius: .7rem; background: #fff; box-shadow: 0 10px 24px -12px rgb(15 23 42 / .3); max-height: 18rem; overflow: auto; }
.eb-suggest button { display: block; width: 100%; text-align: left; padding: .55rem .8rem; }
.eb-suggest button:hover, .eb-suggest button:focus { background: var(--muted); }
.eb-suggest i { color: #64748b; font-size: .88rem; }
.eb-suggest__none { padding: .6rem .8rem; color: #64748b; font-size: .9rem; }
.eb-loading { padding: 1rem; text-align: center; color: #64748b; font-size: .92rem; }
.eb-submitbar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: .5rem; padding: .8rem 0; background: linear-gradient(to top, var(--paper, #fff) 70%, transparent); }

/* bar charts */
.eb-bars { display: grid; grid-template-columns: repeat(48, 1fr); gap: 1px; align-items: center; height: 14px; min-width: 0; }
.eb-bars--m { grid-template-columns: repeat(12, 1fr); gap: 3px; height: 18px; }
.eb-bars i { display: block; height: 2px; background: #e2e8f0; border-radius: 1px; }
.eb-bars i.l1 { height: 3px; background: #9ccfd8; } .eb-bars i.l2 { height: 5px; background: #6cb7c4; }
.eb-bars i.l3 { height: 7px; background: #3f9fb0; } .eb-bars i.l4 { height: 9px; background: #23879a; }
.eb-bars i.l5 { height: 11px; background: #186b7e; } .eb-bars i.l6 { height: 14px; background: #0d3f4d; }
.eb-bars--m i.l5 { height: 14px; } .eb-bars--m i.l6 { height: 18px; }
.eb-bars--none { display: block; height: auto; font-size: .75rem; color: #94a3b8; }
.eb-chart { overflow-x: auto; }
.eb-chart__row { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(18rem, 1fr); gap: .8rem; align-items: center; padding: .3rem 1rem; border-top: 1px solid #f1f5f9; font-size: .88rem; }
.eb-chart--m .eb-chart__row { grid-template-columns: minmax(9rem, 15rem) minmax(14rem, 1fr); }
.eb-chart__row > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.eb-chart__row > a:hover { color: var(--brand); }
.eb-chart__row small { color: #94a3b8; }
.eb-chart__head { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
.eb-chart__n { font-size: .72rem; color: #64748b; }
.eb-axis { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .68rem; color: #64748b; text-align: center; margin-top: .25rem; }
.eb-axis--48, .eb-axis--12 { margin-top: 0; }
.eb-axis b { font-weight: 600; }
.eb-nums { display: grid; grid-template-columns: repeat(48, 1fr); gap: 1px; font-size: .6rem; text-align: center; color: #94a3b8; }
.eb-nums i { font-style: normal; }

/* lists, ranks */
.eb-recent { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.eb-recent a { display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; }
.eb-recent a:hover { border-color: var(--brand); box-shadow: 0 6px 16px -10px rgb(15 23 42 / .35); }
.eb-recent__n { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: .7rem; background: var(--muted); color: var(--brand-dark); font-weight: 800; font-size: 1.15rem; line-height: 1; }
.eb-recent__n small { display: block; font-size: .58rem; font-weight: 600; text-transform: uppercase; color: #64748b; margin-top: .15rem; }
.eb-rank { list-style: none; padding: 0; margin: 0; }
.eb-rank li { display: grid; grid-template-columns: 2rem 1fr auto; gap: .5rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid #f1f5f9; font-size: .92rem; }
.eb-rank li:last-child { border-bottom: 0; }
.eb-rank span { color: #94a3b8; font-variant-numeric: tabular-nums; }
.eb-rank b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-rank em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand-dark); }
.eb-rank--big li { padding: .6rem .4rem; font-size: 1rem; }
.eb-rank li.is-me { background: #fff7ed; border-radius: .5rem; }
.eb-cols { columns: 2 14rem; column-gap: 2rem; list-style: decimal inside; font-size: .92rem; }
.eb-cols li { break-inside: avoid; padding: .15rem 0; }
.eb-meter { display: block; height: .45rem; background: #eef2f6; border-radius: 999px; overflow: hidden; margin-bottom: .2rem; }
.eb-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* illustrated checklist + photo grids */
.eb-illus { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.eb-illus li { background: #fff; border: 1px solid #e2e8f0; border-radius: .9rem; overflow: hidden; padding-bottom: .6rem; }
.eb-illus__img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--muted); color: #94a3b8; font-size: .8rem; overflow: hidden; }
.eb-illus__img img { width: 100%; height: 100%; object-fit: cover; }
.eb-illus__name { display: block; padding: .5rem .7rem 0; font-weight: 700; color: var(--ink); line-height: 1.25; }
.eb-illus .lo-sci { padding: 0 .7rem; font-size: .8rem; }
.eb-illus__meta { display: block; padding: .25rem .7rem 0; font-size: .75rem; color: #64748b; }
.eb-credit { display: block; padding: .2rem .7rem 0; font-size: .65rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; }
.eb-photos--sm { grid-template-columns: repeat(2, 1fr); }
.eb-photos figure { margin: 0; }
.eb-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .6rem; }
.eb-photos figcaption { font-size: .72rem; color: #64748b; margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-audio { max-width: 100%; height: 2.4rem; }
