/* Homepage listing cards + "Keep exploring" list (owner 2026-10-09: the card grid was "too much to visually handle… all the same…
   blazing the eyes. do a total overhaul"). Loaded after home-desk.css. Calm: white, hairlines, one colour per kind used only on
   small things (the icon tile and the kind word), money green, everything else grey. */

/* ── Cards without a photo (owner 2026-10-09: "small and unattractive… remove the top border colours… simple, clean, modern") ──
   One white card with a hairline border and no colour bands or tint. Icon tile + kind, a large title, one grey line, then price and time
   at the foot. The kind's colour (--k) appears only in the small icon tile. Lifts softly on hover. */
.hd-card.hd-info { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 236px; padding: 18px 18px 16px;
  border-radius: 18px; background: #fff; border: 1px solid #e8eaef; border-top: 1px solid #e8eaef; box-shadow: 0 1px 2px rgba(16,24,40,.04);
  color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.hd-card.hd-info, .hd-card.hd-li, .hd-grp { --k: var(--bf-navy, #1e3a5f) !important; }   /* one theme colour on every homepage list card (owner 2026-10-09: "maintain one color. the theme color") */
.hd-card.hd-info:hover { border-color: #dde0e6; box-shadow: 0 16px 32px -18px rgba(16,24,40,.3); transform: translateY(-3px); }
.hd-car > .hd-card.hd-info { height: auto; }
.hd-card.hd-info .hd-info-k { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 6px; font-size: calc(12.5px*var(--bf-type-sm,1)); font-weight: 600; color: #6b7280; white-space: nowrap; }
.hd-card.hd-info .hd-tag-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--k) 10%, #fff); font-size: calc(17px*var(--bf-type,1)); }
.hd-card.hd-info .hd-info-k em { margin-left: auto; font-style: normal; padding: 3px 9px; border-radius: 999px; background: #f4f5f7; color: #4b5563; font-size: calc(11px*var(--bf-type-sm,1)); font-weight: 600; }
.hd-card.hd-info .hd-info-t { font-size: calc(17px*var(--bf-type,1)); font-weight: 700; color: #111827; line-height: 1.32; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hd-card.hd-info .hd-info-m { font-size: calc(13px*var(--bf-type,1)); color: #6b7280; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.hd-card.hd-info .hd-info-bar { display: block; height: 5px; margin-top: 2px; border-radius: 9px; background: #eef0f3; overflow: hidden; }
.hd-card.hd-info .hd-info-bar i { display: block; height: 100%; background: var(--k); border-radius: 9px; }
.hd-card.hd-info .hd-info-r { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border: 0; min-width: 0; }
.hd-card.hd-info .hd-info-p { font-size: calc(19px*var(--bf-type,1)); font-weight: 800; color: var(--wb-green, #15803d); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hd-card.hd-info .hd-info-see { font-size: calc(13.5px*var(--bf-type,1)); font-weight: 700; color: #1f2937; }
.hd-card.hd-info .hd-info-r time { flex: none; font-size: calc(12px*var(--bf-type-sm,1)); color: #9aa1ad; }
.hd-card.hd-info .hd-info-x, .hd-card.hd-info .hd-info-f, .hd-card.hd-info .hd-info-go, .hd-card.hd-info .hd-info-top { display: none; }
@media (max-width: 767.98px) {
  .hd-card.hd-info { min-height: 0; padding: 14px; border-radius: 14px; gap: 6px; }
  .hd-card.hd-info .hd-tag-ic { width: 32px; height: 32px; border-radius: 10px; font-size: calc(15px*var(--bf-type,1)); }
  .hd-card.hd-info .hd-info-k { margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
  .hd-card.hd-info .hd-info-t { font-size: calc(15px*var(--bf-type,1)); }
  .hd-card.hd-info .hd-info-p { font-size: calc(16px*var(--bf-type,1)); }
}

/* ── Keep exploring: a calm list, two columns on wide screens ── */
.hd-grid-more, .hd-grid-more.is-mason { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; columns: auto; }
.hd-grid-more > .hd-card.hd-li { margin: 0; }
.hd-card.hd-li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 8px; border: 0; border-bottom: 1px solid #eef0f3;
  border-radius: 0; background: transparent; box-shadow: none; transform: none; text-decoration: none; color: inherit; transition: background .15s; }
.hd-card.hd-li:hover { background: #f7f8fa; border-radius: 10px; border-bottom-color: transparent; box-shadow: none; transform: none; }
.hd-li-pic { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--k) 9%, #fff); display: flex; align-items: center; justify-content: center; }
.hd-li-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-li-pic .hd-tag-ic { font-size: calc(21px*var(--bf-type,1)); }
.hd-li-b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hd-li-k { font-size: calc(11.5px*var(--bf-type-sm,1)); font-weight: 650; color: var(--k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-li-k span { font-weight: 500; color: #8a919c; }
.hd-li-b b { font-size: calc(14.5px*var(--bf-type,1)); font-weight: 650; color: #111827; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-card.hd-li:hover .hd-li-b b { color: var(--bf-navy, #1e3a5f); }
.hd-li-m { font-size: calc(12.5px*var(--bf-type,1)); color: #8a919c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-li-m:empty { display: none; }
.hd-li-p { justify-self: end; max-width: 170px; font-size: calc(14.5px*var(--bf-type,1)); font-weight: 750; color: var(--wb-green, #15803d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.hd-li-p .bi { color: #b6bcc6; }
.hd-grid-more .hd-card.hd-li.hd-rise, .hd-grid-more .hd-card.hd-li.hd-rise.hd-in:hover { transform: none; }
@media (max-width: 899.98px) { .hd-grid-more, .hd-grid-more.is-mason { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 575.98px) {
  .hd-card.hd-li { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 11px; padding: 10px 2px; }
  .hd-li-pic { width: 48px; height: 48px; border-radius: 10px; }
  .hd-card.hd-li { row-gap: 3px; align-items: start; }
  .hd-li-pic { grid-row: span 2; }
  .hd-li-p { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; max-width: 100%; font-size: calc(14px*var(--bf-type,1)); }
  .hd-li-p:has(.bi) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hd-card.hd-li, .hd-card.hd-info { transition: none; } }

/* ── Keep exploring in order (owner 2026-10-09: "what will my eyes look at first? … no order?"): one titled block per kind,
   always the same order, the newest four in each. Two blocks side by side on wide screens. ── */
.hd-grid-more, .hd-grid-more.is-mason { gap: 34px 48px; align-items: start; }
.hd-grp { min-width: 0; }
.hd-grp > header { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 2px solid #111827; }
.hd-grp-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--k) 10%, #fff); color: var(--k); font-size: calc(15px*var(--bf-type,1)); }
.hd-grp h3 { flex: 1; min-width: 0; margin: 0; font-size: calc(17px*var(--bf-type,1)); font-weight: 750; color: #111827; letter-spacing: -.01em; }
.hd-grp > header a { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: calc(13px*var(--bf-type,1)); font-weight: 650; color: var(--bf-navy, #1e3a5f); text-decoration: none; }
.hd-grp > header a:hover { text-decoration: underline; }
.hd-grp-l > .hd-card.hd-li:last-child { border-bottom: 0; }
.hd-grp .hd-li-k { color: #8a919c; font-weight: 500; }
.hd-grp .hd-li-pic { width: 52px; height: 52px; }
.hd-grp .hd-card.hd-li { grid-template-columns: 52px minmax(0, 1fr) auto; }
@media (max-width: 575.98px) { .hd-grp .hd-li-pic { width: 46px; height: 46px; } .hd-grp .hd-card.hd-li { grid-template-columns: 46px minmax(0, 1fr); } .hd-grp h3 { font-size: calc(16px*var(--bf-type,1)); } }
#hdMoreGrid { margin-top: 18px; }
@media (max-width: 575.98px) { .hd-grp-l > .hd-card.hd-li:nth-child(n+4) { display: none; } .hd-grp-l > .hd-card.hd-li:nth-child(3) { border-bottom: 0; } }
