/* Other Writers (2026-11-09) -- a Leonardo Library shelf of stories, essays and poems other
   people wrote. The shelf wears the Vehicles / Podcasts board look (vehicles.css loads first);
   this sheet adds the cards that fold, the bands, the badges and the stars. */

/* ---- the header: the trail over the title ---- */
.ow-titles { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ow-titles h1 { flex: 0 0 auto; }
.ow-titles nav.pcr { --pcr-ink: #C9D3E0; --pcr-ink-hover: #fff; }
.ct-header .ow-head-title { color: #fff; margin: 0; font-size: 18px; }

/* ---- the filters ---- */
.vh-filters.ef-pane { display: block; }
.ow-tools-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.ow-chip-n { opacity: .75; margin-left: 4px; font-size: 12px; }
.ow-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 8px; }
.ow-fcell { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ow-flabel { font-size: 12px; color: #555; display: flex; align-items: center; gap: 4px; }
.vh-filters .ow-search { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; }
.vh-filters .voice-mic-wrap { display: block; }
@media (max-width: 480px) { .ow-fgrid { grid-template-columns: 1fr; } }

.ow-statusrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ow-statusrow .vh-status-line { margin: 0; flex: 1 1 auto; }
.ow-foldall { font-size: 15px; line-height: 1; padding: 4px 10px; }
.ow-foldall[hidden] { display: none; }

/* ---- cards ---- */
.ow-list { display: flex; flex-direction: column; gap: 8px; }
.ow-card { border: 1px solid #E7E7EC; border-left: 4px solid #8B5A2B; border-radius: 8px; background: #fff; }
.ow-card.is-fav { border-left-color: #D97706; }
.ow-card.is-wanted { border-left-color: #9AA0A6; background: #FAFAFB; }
.ow-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 9px 12px; cursor: pointer; user-select: none; }
.ow-chev { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
           border-top: 6px solid #8B5A2B; transition: transform .15s; align-self: center; flex: 0 0 auto; }
.ow-card.collapsed .ow-chev, .ow-group.collapsed > .ow-group-head > .ow-chev { transform: rotate(-90deg); }
.ow-card.collapsed > .ow-card-body { display: none; }
.ow-card-title { font-size: 14px; font-weight: 600; color: #1B1B1F; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; text-decoration: none; }
a.ow-card-title:hover { text-decoration: underline; color: #5C3A1A; }
.ow-card-by { font-size: 12px; color: #555; }
.ow-card-body { padding: 0 12px 10px 27px; }
.ow-card-rows { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; }
.ow-card-rows div { min-width: 0; }
.ow-card-rows dt { font-size: 11px; color: #667; text-transform: uppercase; letter-spacing: .3px; }
.ow-card-rows dd { margin: 0; font-size: 13px; color: #222; white-space: pre-wrap; overflow-wrap: anywhere; }
.ow-card-rows dd a { color: #5C3A1A; }
.ow-card-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.ow-card-btns .ed-btn { padding: 4px 10px; font-size: 11px; }

/* ---- badges and stars ---- */
.ow-badge { font-size: 11px; font-weight: 600; color: #5C3A1A; background: #F5EBDD; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.ow-badge.wanted { color: #92400E; background: #FEF3C7; }
.ow-badge.has { color: #15803D; background: #E3F5EA; }
.ow-stars { color: #D97706; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.ow-fav { color: #D97706; font-size: 14px; }

/* ---- Group by: a folding band per group, its cards inside ---- */
.ow-group { border: 1px solid #E8D9C5; border-radius: 10px; background: #FBF7F1; }
.ow-group + .ow-group { margin-top: 8px; }
.ow-group-head { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; cursor: pointer; user-select: none; }
.ow-group-title { font-size: 15px; font-weight: 700; color: #1B1B1F; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ow-group.collapsed > .ow-group-body { display: none; }
.ow-group-body { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 10px; }
