/* ---- site-blogs/blogs.css ---- */
/* HackerBooks /blogs, /feed — loaded after app.css on these pages only; uses its palette, fonts and layout.
   No coloured left borders or accent rules: emphasis comes from type and spacing. */

/* ---- sidebar extras ---- */
.nav small { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.topics .grp-all { font-style: italic; }
.btn.link { border: 0; background: none; padding: 4px 6px; color: var(--accent-strong); }
.btn.link:hover { text-decoration: underline; background: none; }
/* signups: site-shared/signup.js renders [data-hb-prompt]; a page with one doesn't repeat the footer form */
body:has([data-hb-prompt]) .footer #subscribe { display: none; }
.bl-wrap > [data-hb-prompt], .fdw [data-hb-prompt] { margin: 28px 0 0; }

/* ---- follow buttons ---- */
.fbtn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--accent-strong);
  background: transparent; color: var(--accent-strong); font: 600 12.5px var(--sans); cursor: pointer; white-space: nowrap; }
.fbtn:hover { background: var(--accent-soft); }
.fbtn.on { background: var(--accent-soft); border-color: transparent; }
.fbtn.on:hover { background: var(--surface-2); color: var(--muted); }
.fbtn.on:hover .t-on { display: none; }
.fbtn .t-off2 { display: none; }
.fbtn.on:hover .t-off2 { display: inline; }
.fbtn.sm { height: 24px; padding: 0 9px; font-size: 12px; }

/* ---- /blogs list ---- */
.bl-wrap { max-width: 980px; }
.bl-tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 8px; }
.bl-wrap > .sub { max-width: none; margin: 2px 0 12px; }
.bl-tools .chips { margin: 0; }
.bl-search { flex: 1 1 200px; max-width: 300px; height: 34px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 17px; }
.bl-sort { height: 34px; padding: 0 8px; font: 14px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.bl-tools .btn { height: 34px; padding: 0 14px; }
/* compact filter row: search, the Filters pill (details.hv-filters, from home-conv.css), sort; active filters as chips below */
.bl-tools .hv-filters summary { height: 34px; min-height: 34px; padding: 0 12px; font-size: 14px; }
.bl-tools .hv-filters #chips { left: 0; right: auto; width: min(calc(100vw - 32px), 520px); max-height: min(70vh, 560px); overflow-y: auto; }
.hv-filters .fl-n { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.hv-filters.on .fl-n { background: var(--bg); color: var(--text); }
.hv-filters .chips select { height: 36px; max-width: 100%; padding: 0 8px; font: 14px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.hv-filters .chips label.lbl { display: block; }
.hv-filters .chip.flt[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.act-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-2); color: var(--text); font: 600 13px var(--sans); cursor: pointer; }
.achip:hover { background: var(--surface); border-color: var(--muted); }
.achip svg { color: var(--muted); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.chip.flt[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); font-weight: 600; }
.bl-count { color: var(--muted); font-size: 13px; margin: 0; flex: 1 1 auto; min-width: 0; }
.bl-count b { color: var(--text); font-weight: 600; }
.bl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bl { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; padding: 14px 16px 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s; }
.bl:hover { border-color: color-mix(in srgb, var(--muted) 55%, var(--border)); }
.bl.open { cursor: default; border-color: color-mix(in srgb, var(--muted) 70%, var(--border)); }
.bl-rank { font: 700 22px var(--serif); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; padding-top: 1px; }
.bl-body { min-width: 0; }
.bl-hrow { display: flex; align-items: flex-start; gap: 12px; }
.bl-h { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.bl-h h2 { font: 700 18px/1.25 var(--serif); overflow-wrap: anywhere; }
.bl-h h2 a:hover { color: var(--accent-strong); }
.bl-by { color: var(--muted); font-size: 14px; }
.bl-dom { color: var(--muted); font-size: 12.5px; font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 6px; font-size: 13px; color: var(--muted); }
.bl-meta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bl-meta .chip { padding: 1px 9px; font-size: 12px; }
.kind { padding: 0 7px; font-size: 11.5px; font-weight: 600; line-height: 1.6; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.kind.rise { color: var(--st-r-text); }
.kind.down { color: var(--muted); border-style: dashed; }
.kind.arch { color: var(--muted); }
/* blog icons (common.js tile()): a lettered tile in the blog's colour; the real icon, when there is one, on a plate on top */
.tile { --ts: 32px; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--ts); height: var(--ts);
  border-radius: calc(var(--ts) * .22); background: var(--ink, #5b5853); color: #fff; overflow: hidden; vertical-align: middle; }
.tile b { font: 700 calc(var(--ts) * .56)/1 var(--serif); }
.tile > i, .tile > img { position: absolute; inset: 0; width: 100%; height: 100%; background-color: var(--surface); background-repeat: no-repeat; }
.tile > i:not(.ok) { visibility: hidden; }   /* a sprite cell shows once its sprite has loaded; until then (or if it fails) the letter */
.tile.ip2 > i, .tile.ip2 > img { background-color: #2c2925; }   /* light icon: dark plate in light mode */
:root[data-theme="dark"] .tile.ip1 > i, :root[data-theme="dark"] .tile.ip1 > img { background-color: #f4f1ea; }   /* dark icon: light plate */
:root[data-theme="dark"] .tile.ip2 > i, :root[data-theme="dark"] .tile.ip2 > img { background-color: var(--surface); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile.ip1 > i, :root:not([data-theme="light"]) .tile.ip1 > img { background-color: #f4f1ea; }
  :root:not([data-theme="light"]) .tile.ip2 > i, :root:not([data-theme="light"]) .tile.ip2 > img { background-color: var(--surface); }
}
:root[data-theme="dark"] .tile { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.bl-hrow > .tile { margin-top: 1px; }
.pk-tiles { display: flex; flex-wrap: wrap; gap: 4px; }
.act { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.act::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-r); }
.bl-feed { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.bl-feed:hover { color: var(--accent-strong); }
.bl-feed svg { width: 12px; height: 12px; }
.bl-top { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.bl-top li { display: flex; gap: 8px; min-width: 0; }
.bl-top a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bl-top a:hover { color: var(--accent-strong); }
.pts { flex: none; width: 64px; white-space: nowrap; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.yr { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bl-tog { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 3px 0; border: 0; background: none; color: var(--accent-strong); font: 600 13px var(--sans); cursor: pointer; }
.bl-tog svg { width: 12px; height: 12px; transition: transform .25s var(--ease-out-soft); }
.bl.open .bl-tog svg { transform: rotate(180deg); }
.bl-more { display: block; margin: 16px auto 0; }
.bl-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; position: relative; margin: 6px 0 10px; font-size: 13px; }
.bl-also { display: inline-flex; flex-wrap: wrap; gap: 2px 12px; }
.bl-also:empty { display: none; }
.bl-also a { color: var(--accent-strong); font-weight: 600; white-space: nowrap; }
.bl-also a::after { content: " \2192"; }
.bl-also small { color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bl-about { font-size: 14px; }
.bl-about summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; font-size: 13px; }
.bl-about[open] > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(640px, 100%); padding: 4px 16px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.bl-about p { margin: 8px 0; color: var(--muted); }
.bl-about b { color: var(--text); font-weight: 600; }
.bl-list > .empty, .bl-list > .skel { list-style: none; }

/* sparkline (row) */
.spark { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; vertical-align: middle; }
.spark i { display: block; width: 3px; border-radius: 1.5px 1.5px 0 0; background: var(--accent); opacity: .8; }
.spark i.z { height: 1px !important; background: var(--border); opacity: 1; border-radius: 0; }

/* expanded row: the region is always there; it opens by animating its grid row 0fr -> 1fr (no height measuring) */
:root { --ease-out-soft: cubic-bezier(.32, .72, 0, 1); }
.bx-w { grid-column: 2; display: grid; grid-template-rows: 0fr; min-width: 0; transition: grid-template-rows .25s var(--ease-out-soft); }
.bl.open .bx-w { grid-template-rows: 1fr; }
.bx-c { min-height: 0; min-width: 0; overflow: hidden; opacity: 0; transition: opacity .2s ease; }
.bl.open .bx-c { opacity: 1; }
.bl.bx-done .bx-c { overflow: visible; }  /* once open: focus rings and wide content aren't clipped */
@media (prefers-reduced-motion: reduce) { .bx-w, .bx-c, .bl-tog svg { transition: none; } }
.bx { margin: 6px 0 4px; padding: 12px 0 2px; border-top: 1px solid var(--border); cursor: default; min-width: 0; }
.bx:empty { display: none; }
.bx-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.bx-facts b { color: var(--text); font-weight: 600; }
.yc { margin: 0 0 12px; }
.yc-h { max-width: 520px; display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.yc-h .ro { color: var(--text); font-variant-numeric: tabular-nums; }
.yc-bars { display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 2px; align-items: end; height: 46px; border-bottom: 1px solid var(--border); max-width: 520px; }
.yc-bars span { display: flex; align-items: flex-end; height: 100%; cursor: default; }
.yc-bars i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--accent); }
.yc-bars span:hover i { background: var(--accent-strong); }
.yc-bars span.z i { height: 0 !important; }
.yc-ax { display: flex; justify-content: space-between; max-width: 520px; font-size: 11.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; border-bottom: 1px solid var(--border); }
.tab { padding: 6px 10px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: 600 13.5px var(--sans); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.tab small { font-weight: 500; color: var(--muted); margin-left: 3px; }
.sl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.sl li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; min-width: 0; }
.sl .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl .t a:hover { color: var(--accent-strong); }
.sl .c { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sl .c a { color: var(--muted); }
.sl .c a:hover { color: var(--accent-strong); }
.sl .rs { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.ci li { grid-template-columns: 64px minmax(0, 1fr); }
.ci .t { white-space: normal; }
.ci .t > a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci .n { color: var(--text); font-weight: 600; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.ci .sub2 { display: block; color: var(--muted); font-size: 12.5px; }
.ci .sub2 a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); }
.ci .path { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.bx-more { margin: 8px 0 0; padding: 4px 0; border: 0; background: none; color: var(--accent-strong); font: 600 13px var(--sans); cursor: pointer; }
.bx-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 12px 0 2px; font-size: 13px; color: var(--muted); }
.bx-foot a { color: var(--accent-strong); }
.bx-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.bx-hint a { color: var(--accent-strong); }
.hnp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bx-foot .nofeed { color: var(--muted); }

/* evergreen dot timeline */
.dt { position: relative; height: 14px; max-width: 360px; min-width: 160px; flex: 1; }
.dt::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid var(--border); }
.dt i { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--surface); }
.dt i.fp { background: var(--accent); border-color: var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev li { min-width: 0; }
.ev .h { display: flex; gap: 8px; align-items: baseline; min-width: 0; font-size: 14px; }
.ev .h a.tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .h a.tt:hover { color: var(--accent-strong); }
.ev .m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ev .m b { color: var(--text); font-weight: 600; }
.dt-key { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.dt-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); vertical-align: -1px; margin-right: 4px; }
.dt-key i.fp { background: var(--accent); border-color: var(--accent); }

/* evergreen strip + page (reading list) */
.evs { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--surface-2); }
.evs h2 { font: 700 16px var(--serif); margin: 0 0 2px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.evs h2 a { font: 600 13px var(--sans); color: var(--accent-strong); white-space: nowrap; }
.evs p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.evs ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.evs li { display: flex; gap: 8px; min-width: 0; align-items: baseline; }
.evs li .tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evs li .c { flex: none; color: var(--muted); font-size: 12.5px; }
.bl-list .evp { padding: 10px 2px 12px; border-bottom: 1px solid var(--border); }
.bl-list:has(.evp) { gap: 0; max-width: 760px; }
.evp .ev .h { font-size: 15.5px; }
.evp .ev .h a.tt { white-space: normal; font: 600 16px/1.35 var(--serif); }
.evp .evn { flex: none; color: var(--muted); font-size: 13px; width: 2.2em; font-variant-numeric: tabular-nums; }
.evp .ev .m { padding-left: calc(2.2em + 8px); }
.evp .by a { color: var(--text); font-weight: 600; }

/* spotlight (Surprise me / #b=) */
.spot { margin: 0 0 16px; }
.spot-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.spot-h .acts { display: flex; gap: 8px; text-transform: none; letter-spacing: 0; }
.spot-h button { border: 0; background: none; color: var(--accent-strong); font: 600 13px var(--sans); cursor: pointer; padding: 2px 4px; }
.spot .bl-list { gap: 0; }

/* ---- Following list rows (the panel on /feed) ---- */
.fl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fl li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; min-width: 0; }
.fl li:hover { background: var(--surface-2); }
.fl .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.fl .nm small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.fl .rm { flex: none; width: 26px; height: 26px; border-radius: 13px; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.fl .rm:hover { background: var(--surface); color: var(--text); }
.fl-hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.fd-empty { color: var(--muted); font-size: 14px; margin: 6px 0; }
.fd-empty a { color: var(--accent-strong); }

/* toast */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: inherit; text-decoration: underline; }
.toast button { border: 0; background: none; color: var(--accent); font: 700 14px var(--sans); cursor: pointer; padding: 0; }

/* import offer (a link with a different list) */
.imp { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.imp p { margin: 0 0 8px; }
.imp .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.imp .btn { padding: 6px 12px; font-size: 13px; }
.imp ul { margin: 8px 0 0; padding: 0 0 0 18px; font-size: 13px; columns: 2; column-gap: 24px; }
@media (max-width: 520px) { .imp ul { columns: 1; } }

/* ---- Following panel sections (on /feed) ---- */
.fw { max-width: 880px; }
.fsec { margin: 28px 0 0; }
.fsec > h2 { font: 700 20px var(--serif); margin: 0 0 4px; }
.fsec > .sub { margin: 2px 0 12px; }
.h-n { font: 500 14px var(--sans); color: var(--muted); }
.fbox { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.fbox-pad { padding: 16px; }
.fbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pack { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.pack h3 { font: 700 17px var(--serif); }
.pack p { margin: 0; font-size: 13.5px; color: var(--muted); }
.pack .names { font-size: 13px; color: var(--text); line-height: 1.5; }
.pack .names a:hover { color: var(--accent-strong); }
.pack .row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; padding-top: 6px; }
.pack .row .c { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pack .btn { padding: 6px 12px; font-size: 13px; }
.pack .btn.done { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.impf { display: flex; gap: 8px; max-width: 560px; }
.impf input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; font: 14px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.impf .btn { height: 36px; padding: 0 14px; }
.ppl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pp { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.pp .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp .who { font-weight: 700; font-size: 15px; }
.pp .n { font-size: 12.5px; color: var(--muted); }
.pp .n a { color: var(--muted); text-decoration: underline; }
.pp .ex { font-size: 13.5px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pp .ex a:hover { color: var(--accent-strong); }
.ctg { margin: 0 0 14px; }
.ctg h3 { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 2px; }
.ctl { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.ct-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--border); min-width: 0; }
.ct-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14.5px; }
.ct-row .nm:hover { color: var(--accent-strong); }
.ct-row .n { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.psearch { width: 100%; max-width: 320px; height: 34px; padding: 0 12px; font: 14px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 17px; margin: 0 0 10px; }

/* ---- /feed: a reading list ---- */
.fdw { max-width: 720px; }
.fgrp { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 2px; }
.fgrp-note { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.fi { display: flex; align-items: flex-start; gap: 14px; padding: 14px 2px 16px; border-bottom: 1px solid var(--border); }
.fi-main { flex: 1; min-width: 0; }
.fi-img { flex: none; width: 72px; height: 72px; margin-top: 22px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.pvb { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 12.5px var(--sans); cursor: pointer; }
.pvb:hover, .pvb[aria-expanded="true"] { background: var(--surface-2); }
.fi-by { color: var(--text); font-weight: 600; }
.fi-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--muted); margin: 0 0 3px; }
.fi-src a, .fi-src .who { color: var(--text); font-weight: 600; }
.fi-src a:hover { color: var(--accent-strong); }
.fi h3 { font: 700 18.5px/1.3 var(--serif); margin: 0 0 4px; overflow-wrap: anywhere; }
.fi h3 a:hover { color: var(--accent-strong); }
.fi-snip { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.fi.c .fi-snip { font-family: var(--serif); }
.fi-ctx { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.fi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 0; font-size: 13px; }
.fi-foot .orig { color: var(--muted); }
.fi-foot .orig:hover { color: var(--accent-strong); }
.hnb { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hnb svg { width: 9px; height: 9px; color: var(--accent); }
.disc { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; font-size: 12.5px; }
.disc:hover { text-decoration: none; filter: brightness(.97); }
.sl .c .disc { padding: 0; background: none; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.sl .c .disc:hover { color: var(--accent-strong); }
.done { text-align: center; padding: 30px 16px 8px; }
.done svg { width: 34px; height: 34px; color: var(--st-r); }
.done h2 { font: 700 22px var(--serif); margin: 6px 0 4px; }
.done p { color: var(--muted); margin: 4px auto; max-width: 52ch; font-size: 14px; }
.done a { color: var(--accent-strong); }
.fd-upd { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.fd-emptybox { max-width: 62ch; padding: 6px 0 4px; }
.fd-emptybox h2 { font: 700 22px var(--serif); margin: 0 0 6px; }
.fd-emptybox p { color: var(--muted); margin: 6px 0; }
.fd-emptybox a { color: var(--accent-strong); }

/* ---- HN discussion pane: side pane on desktop, bottom sheet on phones ---- */
.dpane { position: fixed; z-index: 45; top: var(--topbar-h); right: 0; bottom: 0; width: min(480px, 42vw); display: flex; flex-direction: column;
  background: var(--bg); border-left: 1px solid var(--border); box-shadow: var(--shadow); transform: translateX(105%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; outline: none; }
.dpane.open { transform: none; visibility: visible; transition: transform .22s ease; }
.dp-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--border); }
.dp-head h2 { flex: 1; font: 700 18px var(--serif); }
.dp-x { font-size: 26px; font-weight: 400; }
.dp-grab { display: none; }
.dp-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 28px; }
.dp-skel { height: 40vh; }
.dp-scrim { display: none; }
@media (min-width: 1240px) { body.dp-open main { margin-right: min(480px, 42vw); } }
.dp-story { margin: 0 0 6px; }
.dp-st { font: 700 17px/1.3 var(--serif); }
.dp-story p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.dp-story p a { color: var(--muted); text-decoration: underline; }
.dp-rh { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 4px; }
.dp-list { list-style: none; margin: 0; padding: 0; }
.dc { padding: 12px 0; border-bottom: 1px solid var(--border); }
.dc-h { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.dc-h .who { color: var(--text); font-weight: 600; }
.dc-h a:hover { color: var(--accent-strong); }
.dc-rep { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--accent-strong); }
.dpane .hn-text { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.dpane .hn-text p { margin: 0 0 .7em; }
.dpane .hn-text p:last-child { margin-bottom: 0; }
.dpane .hn-text p.q { color: var(--muted); padding-left: 10px; border-left: 2px solid var(--border); }
.dpane .hn-text a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.dpane .hn-text pre { margin: 0 0 .7em; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; overflow-x: auto; font-size: 13px; }
.dpane .hn-text code { font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dp-more { margin: 10px 0 0; padding: 4px 0; border: 0; background: none; color: var(--accent-strong); font: 600 13px var(--sans); cursor: pointer; }
.dp-more:disabled { color: var(--muted); }
.dp-end { margin: 20px 0 0; }
.pv-src { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.pv-src span { color: var(--text); font-weight: 600; }
.pv-t { font: 700 19px/1.3 var(--serif); margin: 0 0 8px; overflow-wrap: anywhere; }
.pv-sum { margin: 0; font: 16px/1.6 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.pv-sum:empty { display: none; }
.pv-go { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0 0; }
.pv-note { font-size: 12.5px; color: var(--muted); }
.pv-disc { margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); }
.dp-sh { font: 700 16px var(--serif); margin: 0; }
.dp-sm { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.dp-sm a { color: var(--muted); text-decoration: underline; }
@media (max-width: 700px) {
  .dpane { top: auto; left: 0; width: auto; height: 88vh; height: 88dvh; border-left: 0; border-radius: 16px 16px 0 0; transform: translateY(105%);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .25); padding-bottom: env(safe-area-inset-bottom); }
  .dpane.dragging { transition: none; }
  .dp-head { position: relative; padding-top: 18px; touch-action: none; }
  .dp-grab { display: block; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--border); }
  .dp-body { padding: 12px 14px 24px; }
  body.dp-open .dp-scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .45); }
  body.dp-open { overflow: hidden; }
}

@media (max-width: 600px) {
  .bl { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 8px; }
  .bl-rank { text-align: left; font-size: 15px; }
  .bx-w { grid-column: 1; }
  .pts { width: auto; }
  .sl li { grid-template-columns: 66px minmax(0, 1fr); }
  .sl li .c { grid-column: 2; }
  .ci li { grid-template-columns: 40px minmax(0, 1fr); }
  .bl-hrow { gap: 8px; }
  .bl-h h2 { font-size: 17px; }
  .dt { min-width: 0; flex-basis: 100%; }
  .evs li { flex-wrap: wrap; gap: 0 8px; }
  .evs li .tt { flex-basis: 100%; white-space: normal; }
  .bl-search { flex-basis: 100%; max-width: none; }
  .bl-sort { flex: 1; min-width: 0; max-width: none; }
  .bl-tools .btn { padding: 0 10px; }
  .bl-tools { gap: 8px; }
  .evp .ev .m { padding-left: 0; }
  .fi h3 { font-size: 17.5px; }
  .fi { gap: 10px; }
  .fi-img { width: 56px; height: 56px; }
}

/* mid-list signup (blogs.js, feed.js; site-shared/signup.js renders it) */
.bl-list > .bl-mid { list-style: none; display: block; min-width: 0; padding: 0; border: 0; }
.bl-list > .bl-mid .hbs { box-sizing: border-box; max-width: 100%; margin: 18px 0; }
.bl-tools .hv-filters .chips, .cn-tools .hv-filters .chips { margin: 0 0 12px; }
.bl-tools .hv-filters .chips:last-child, .cn-tools .hv-filters .chips:last-child { margin-bottom: 0; }
.hv-filters .chip small { margin-left: 6px; color: inherit; opacity: .7; }

@media (max-width: 640px) {
  .bl-wrap > .sub:not([data-v="evergreen"]) { display: none; }   /* the title says it; the long text is in "How this list is made" */
  .bl-wrap > .page-h { margin-bottom: 10px; }
  .bl-tools { gap: 8px; }
  .bl-search { flex: 1 1 100%; max-width: none; }
  .bl-sort { flex: 1 1 0; min-width: 0; }
  .bl-tools .btn { padding: 0 12px; }
  .bl-top li:nth-child(n+2) { display: none; }   /* one story under the name; "Best of HN" opens them all */
}

/* server-rendered first rows (no-JS and crawlers; blogs.js replaces them when it draws the list) */
.bl-list > .ssr { padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.45; }
.bl-list > .ssr span { color: var(--muted); }
.ssr-l { margin: 8px 0; padding-left: 20px; }

/* ---- site-blogs/rows.css ---- */
/* The /blogs row redesign (hanging icon, preview that folds away, dot timeline, share + follow, books line).
   Ported from the owner-approved Nov 9-10 integration mock. Loaded after blogs.css, uses the site's
   palette. No coloured left borders or accent rules: emphasis from type, spacing and hairlines. */

/* ---- /blogs rows: the built design, with one alignment fix ----
   The icon hangs in the body's left padding, so the title, tags, story lines and the toggle share one left edge;
   the yearly chart is pinned to the right end of the stats line, so it sits at the same x on every row. */
.bl-body { position: relative; padding-left: 44px; }
.bl-hrow > .tile { position: absolute; left: 0; top: 0; margin-top: 1px; }
.bl .bx-w { padding-left: 44px; }
@media (min-width: 701px) {
  .bl-meta { position: relative; padding-right: 96px; }
  .bl-meta > .spark { position: absolute; right: 0; top: 4px; }
}
@media (max-width: 700px) {
  .bl { grid-template-columns: 26px minmax(0, 1fr); gap: 0 10px; padding: 12px 12px 10px; }
  .bl-rank { font-size: 18px; }
  .bl-body { padding-left: 34px; }
  .bl-hrow > .tile { --ts: 24px !important; }
  .bl .bx-w { padding-left: 0; grid-column: 1 / -1; }
  .bl-meta > .spark { margin-left: auto; }   /* right end of its line: the same x on every row */
}

/* the dot timeline in Best of HN  */
.tl { position: relative; margin: 2px 0 14px; }
.tl-h { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.tl-h .ro { color: var(--muted); font-style: italic; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-h .ro.on { color: var(--text); font-style: normal; }
.tl-svg { min-height: 170px; }
.tl svg { display: block; width: 100%; overflow: visible; }
.tl .grid { stroke: var(--border); stroke-width: 1; }
.tl .base { stroke: color-mix(in srgb, var(--muted) 45%, var(--border)); }
.tl .tick { fill: var(--muted); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.tl .dot { fill: var(--accent); fill-opacity: .55; stroke: none; }
.tl .dot.hi { fill: var(--accent-strong); fill-opacity: 1; stroke: var(--text); stroke-width: 1.5; }
.tl .lead { stroke: var(--muted); stroke-width: 1; fill: none; }
.tl .hit { fill: transparent; cursor: pointer; }
.tl .lab { fill: var(--text); font: 600 12px var(--serif); pointer-events: none; }
.tip { position: absolute; z-index: 5; pointer-events: none; max-width: 280px; padding: 6px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12.5px; line-height: 1.35; box-shadow: var(--shadow); opacity: 0; transition: opacity 120ms; }
.tip.on { opacity: 1; }
.tip b { font-weight: 650; }
.tpanel .sl li.hi { background: var(--accent-soft); border-radius: 6px; }
@media (max-width: 700px) { .tl-h { flex-direction: column; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* the closed row's preview (top 3 stories) folds away while the row is open, with the same motion as the details */
.bl-prev { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s var(--ease-out-soft); }
.bl.open .bl-prev { grid-template-rows: 0fr; }
.bl-prev-c { min-height: 0; overflow: hidden; transition: opacity .2s ease; }
.bl.open .bl-prev-c { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bl-prev, .bl-prev-c { transition: none; } }

/* share + follow, at the right end of the row's header (the share button itself is styled in share.css) */
.bl-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.bl-hrow .bl-h { flex: 1 1 auto; min-width: 0; }
.bl-books { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.bl-books a { color: var(--text); }
.bl-books a:hover { color: var(--accent-strong); }
.bl-books a.more { color: var(--muted); }

/* ---- site-blogs/packs.css ---- */
/* Starter packs (site-blogs/packs.js): a reading list of rows, a cover and geometric art per pack, a preview pane.
   Site variables only (paper and night both read); no accent left-borders; nothing is hover-only. */
.tile.person { border-radius: 50%; }
.tile.person b { font-family: var(--sans); font-weight: 650; font-size: calc(var(--ts) * .48); }
.tiles { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.cover { display: block; width: 100%; height: 100%; }
.pks-h { font: 700 20px var(--serif); margin: 36px 0 4px; }
.pks-more { margin: 14px 0 0; }
.pk-ld { height: 30vh; max-width: 860px; }

.pks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: var(--s-4); max-width: 860px; }
.pk { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: var(--s-4) var(--s-5); padding: var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.pk[hidden] { display: none; }
.pk-cover { position: relative; display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 400 / 250; align-self: start; cursor: pointer; background: var(--surface-2); }
.pk-cover .cover { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.32, .72, 0, 1); }
.pk-cover:hover .cover { transform: scale(1.025); }
.pk-cover .cap { position: absolute; left: 8px; bottom: 6px; font: 600 11px var(--sans); color: rgba(255, 246, 230, .88); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.pk-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pk-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pk-h h3 { font: 700 20px/1.2 var(--serif); }
.pk-h .n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pk.person .pk-h h3 { display: flex; align-items: center; gap: 8px; }
.pk-blurb { margin: 0; color: var(--muted); font-size: 14.5px; }
.pk-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; font-size: 13.5px; }
.pk-who .names { min-width: 0; color: var(--text); }
.pk-who .names span { color: var(--muted); }
.pk-read { margin: 4px 0 0; }
.pk-read .lbl { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; margin: 0 0 3px; }
.pk-read ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pk-read li { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 14.5px; }
.pk-read li .tile { align-self: center; }
.pk-read a.t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); color: var(--text); }
.pk-read a.t:hover { color: var(--accent-strong); text-decoration: underline; }
.pk-read small { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; }
.pk-acts .btn { padding: 7px 14px; font-size: 14px; }
.pk-acts .btn.done { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.pk-acts .c { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .pk { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3); }
  .pk-cover { aspect-ratio: 400 / 190; }
}

/* ---------- geometric background art: arcs (Truchet tiles). One ground and four tints, all within a few steps of the
   page colour, so text keeps its contrast anywhere on the art (both themes). ---------- */
.pk.has-art { --pkg0: light-dark(#faf6ef, #252320); --pkg1: light-dark(#f3ebdf, #2a2723); --pkg2: light-dark(#f1e1d6, #362b25); --pkg3: light-dark(#e2e7d6, #2b3129); --pkg4: light-dark(#dfe5ea, #282e35); --pkgl: light-dark(#e6d9c6, #3a342c);
  position: relative; overflow: hidden; background: var(--pkg0); isolation: isolate; }
.pk-art { position: absolute; top: 0; right: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 100% 140% at 100% 0%, #000 35%, rgba(0, 0, 0, .55) 60%, transparent 92%);
          mask-image: radial-gradient(ellipse 100% 140% at 100% 0%, #000 35%, rgba(0, 0, 0, .55) 60%, transparent 92%); }
.pka { display: block; }
.pkg1 { fill: var(--pkg1); } .pkg2 { fill: var(--pkg2); } .pkg3 { fill: var(--pkg3); } .pkg4 { fill: var(--pkg4); }
.pkl { stroke: var(--pkgl); stroke-width: 1.25; fill: none; }
.pk.has-art .pk-acts .btn:not(.primary):not(.done), .pk.has-art .shb { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.pk-acts .shb { padding: 7px 14px; }
@media (max-width: 640px) { .pk-art { top: auto; bottom: 0; -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 85%); mask-image: linear-gradient(to top, #000 20%, transparent 85%); } }

/* ---------- the preview pane: extends .dpane (side pane; bottom sheet under 700px) ---------- */
@media (min-width: 701px) { .dpane.pkp { width: min(560px, 46vw); } }
@media (min-width: 1240px) { body.dp-open.pkp-open main { margin-right: 0; } }
.pkp-foot { flex: none; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg); }
.pkp-foot .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pkp-foot .btn.primary { padding: 9px 18px; font-size: 15px; }
.pkp-foot .note { font-size: 12.5px; color: var(--muted); }
.pkp-cover { position: relative; margin: -14px -18px 14px; aspect-ratio: 400 / 150; overflow: hidden; background: #1c1a17; }
.pkp-cover .cover { position: absolute; inset: 0; }
.pkp-cover .over { position: absolute; z-index: 0; left: 18px; right: 18px; bottom: 12px; color: #fff6e6; }
.pkp-cover .over::before { content: ""; position: absolute; inset: -60px -18px -12px; background: linear-gradient(to top, rgba(10, 8, 6, .78), rgba(10, 8, 6, 0)); z-index: -1; }
.pkp-cover h3 { font: 700 24px/1.15 var(--serif); }
.pkp-cover p { margin: 3px 0 0; font-size: 13.5px; opacity: .94; }
.pkp-sec { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 6px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
.pkp-sec span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pkp-feed, .pkp-blogs { list-style: none; margin: 0; padding: 0; }
.pkp-feed li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.pkp-feed li[hidden] { display: none; }
.pkp-feed .src { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.pkp-feed .src b { color: var(--text); font-weight: 600; }
.pkp-feed h4 { margin: 3px 0 0; font: 600 16px/1.35 var(--serif); }
.pkp-feed h4 a:hover { text-decoration: underline; }
.pkp-feed p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pkp-blogs li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--border); }
.pkp-blogs .tile { grid-row: span 3; margin-top: 2px; }
.pkp-blogs .nm { font-weight: 650; font-size: 15px; min-width: 0; }
.pkp-blogs .nm small { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.pkp-blogs .d { grid-column: 2; font-size: 13.5px; color: var(--text); margin: 0; }
.pkp-blogs .m { grid-column: 2; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.pkp-blogs .m a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.pkp-blogs .pkp-sw { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
.pkp-blogs li.off .tile, .pkp-blogs li.off .nm, .pkp-blogs li.off .d { opacity: .5; }
/* the switch: a real checkbox, drawn with appearance:none */
.pkp-sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 12px; background: var(--border); cursor: pointer; transition: background .2s; }
.pkp-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .2s; }
.pkp-sw:checked { background: var(--accent-strong); }
.pkp-sw:checked::after { transform: translateX(16px); }
.pkp-sw:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pk-cover .cover, .pkp-sw, .pkp-sw::after, .dpane.pkp { transition: none; } }

/* ---- site-blogs/share.css ---- */
/* Share button + menu (site-blogs/share.js). Colours come from the site variables, so paper and night both read. */
.shb { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
.shb svg { width: 16px; height: 16px; flex: none; }
.shb:hover { background: var(--surface-2); }
.shb.ico { width: 30px; height: 28px; padding: 0; justify-content: center; border-radius: 14px; color: var(--muted); }
.shb.ico:hover { color: var(--text); }
.shm { position: absolute; z-index: 95; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; }
.shm-h { margin: 6px 10px 0; font: 600 14px/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shm-u { margin: 1px 10px 6px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shm button { display: block; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 14.5px var(--sans); cursor: pointer; }
.shm button:hover, .shm button:focus-visible { background: var(--surface-2); }

/* ---- site-blogs/feed.css ---- */
/* /feed: grouped timeline (design v5 feed-b; from mocks/design-v5/v5.css and v4.css). Base tile/btn/fbtn/.done/.fsec
   rules live in blogs.css. No accent borders; colours from the site variables so dark mode follows. */
#fdw { max-width: 640px; }
.fhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; margin: 4px 0 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.fh-who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fh-who .tiles { display: flex; gap: 4px; }
.fh-who p { margin: 0; font-size: 14px; color: var(--muted); }
.fh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fh-acts .btn, .fh-acts .shb { padding: 7px 14px; }
.fg-sw { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 6px; border: 0; background: none; color: var(--text); font: 500 13.5px var(--sans); cursor: pointer; }
.fg-k { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--border); transition: background-color 120ms; flex: none; }
.fg-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: transform 120ms; }
.fg-sw[aria-checked="true"] .fg-k { background: var(--accent-strong); }
.fg-sw[aria-checked="true"] .fg-k::after { transform: translateX(12px); }

.tl-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 2px 8px; }
.tl-sec span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; }
.tl-note { font-size: 13px; color: var(--muted); margin: -4px 2px 8px; }
.tl { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tw { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 14px 8px; border-top: 1px solid var(--border); transition: background-color 120ms; }
.tl > .tw:first-child, .tw-seen + .tw { border-top: 0; }
.tw:hover { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.tw-av { display: block; padding-top: 2px; }
.tw-av .tile { border-radius: 9px; }
.tw-av .tile.person { border-radius: 50%; }
.tile.topic b { font-family: var(--sans); font-weight: 700; }
.tw-m { min-width: 0; }
.tw-h { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 14px; line-height: 1.3; }
.tw-h .nm { flex: 0 1 auto; min-width: 0; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-h a.nm:hover { text-decoration: underline; }
.tw-h .hd { flex: 0 10 auto; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.tw-h .cnt { flex: none; color: var(--muted); font-size: 13px; }
.tw-h .cnt::before { content: "· "; }
.tw-h time { flex: none; margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.tw-t { text-wrap: pretty; margin: 3px 0 0; font: 600 16px/1.35 var(--sans); letter-spacing: -.005em; overflow-wrap: anywhere; }
.tw-t a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.tw-s { margin: 3px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tw-s.q { font-family: var(--serif); color: var(--text); opacity: .86; }
.tw-s.one { -webkit-line-clamp: 1; }
.tw-ctx { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.tw-a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 4px 0 0 -8px; font-size: 13px; }
.tw-b { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.tw-b svg { width: 14px; height: 14px; flex: none; }
.tw-b:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.tw-b.orig { margin-left: auto; }
.shb.tw-b { border: 0; padding: 0 8px; font-weight: 500; background: none; }
.tw-seen { display: flex; align-items: center; gap: 10px; padding: 7px 14px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tw-seen::before, .tw-seen::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* grouped: one card per blog with several posts in the section */
.grp .tw-h { margin-bottom: 2px; }
.gp { list-style: none; margin: 0; padding: 0; }
.gp-i { padding: 8px 0 2px; border-top: 1px solid var(--border); }
.gp-i:first-child { border-top: 0; padding-top: 2px; }
.gp-th { display: flex; align-items: baseline; gap: 10px; }
.gp-th .tw-t { flex: 1; min-width: 0; margin: 0; }
.gp-th time { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gp-i .tw-a { margin-top: 0; }
.gp-i.rest { display: none; }
.grp.all .gp-i.rest { display: block; }
.gp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0 0 -8px; padding-top: 4px; border-top: 1px solid var(--border); }
.gp-more { min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--accent-strong); font: 600 13px var(--sans); cursor: pointer; }
.gp-more:hover { background: var(--surface-2); }
/* desktop: a post's actions float over the end of its one-line snippet on hover/focus, so the stack stays tight */
@media (hover: hover) and (pointer: fine) and (min-width: 521px) {
  .gp-i { position: relative; padding-bottom: 8px; }
  .gp-i .tw-a.sm { position: absolute; right: -4px; bottom: 2px; margin: 0; padding-left: 28px; opacity: 0; pointer-events: none; transition: opacity 120ms;
    background: linear-gradient(to right, transparent, var(--surface) 26px); }
  .tw:hover .gp-i .tw-a.sm { background: linear-gradient(to right, transparent, color-mix(in srgb, var(--surface-2) 45%, var(--surface)) 26px); }
  .gp-i:hover .tw-a.sm, .gp-i:focus-within .tw-a.sm { opacity: 1; pointer-events: auto; }
}

@media (max-width: 520px) {
  .tw { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 11px 12px 6px; }
  .tw-av .tile { --ts: 36px !important; border-radius: 8px; }
  .tw-av .tile.person { border-radius: 50%; }
  .tw-h { font-size: 13.5px; }
  .tw-h .hd { display: none; }
  .tw-t { font-size: 15.5px; }
  .tw-s { font-size: 14.5px; }
  .tw-a { gap: 0 2px; }
  .tw-a .orig { display: none; }
  .tw-b { padding: 0 7px; }
  .tl { border-radius: 10px; margin: 0 -6px; }
  .fhead { padding: 10px 12px; }
}

/* the Following panel (moved here from /following): a collapsed card above the timeline; while you follow nothing it is the page */
.fpanel { margin: 0 0 8px; }
details.fpanel { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
details.fpanel > summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; padding: 11px 14px; min-height: 44px; cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
details.fpanel > summary::-webkit-details-marker { display: none; }
details.fpanel > summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 120ms; }
details.fpanel[open] > summary::after { transform: rotate(-135deg); margin-top: -1px; }
details.fpanel > summary:hover { background: var(--surface-2); border-radius: 12px; }
details.fpanel > summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: -2px; border-radius: 12px; }
.fp-t { font: 700 15px var(--sans); }
.fp-n { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-s { color: var(--muted); font-size: 13.5px; }
.fp-body { padding: 0 14px 16px; border-top: 1px solid var(--border); }
.fp-body > .fp-mine h2, .fp-body .fsec > h2 { font-size: 18px; }
.fp-body > .fp-mine { margin: 14px 0 0; }
.fp-mine > h2 { font: 700 18px var(--serif); margin: 0 0 4px; }
.fp-mine .fbox { max-height: min(46vh, 380px); overflow-y: auto; }
.fpanel .fsec { margin-top: 24px; }
.fpanel.flat .fsec:first-of-type { margin-top: 18px; }
.fpanel .ppl { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.fpanel .ctl { max-width: none; }
.fpanel .impf { max-width: none; }
.fpanel [data-hb-prompt] { margin: 0; }
@media (max-width: 520px) {
  details.fpanel { margin: 0 -6px 8px; border-radius: 10px; }
  details.fpanel > summary { padding: 10px 40px 10px 12px; }
  .fp-body { padding: 0 12px 14px; }
  .fpanel .ppl { grid-template-columns: 1fr; }
  .fpanel .fsec { margin-top: 20px; }
  .fpanel .pks .pk-cover { max-width: 100%; }
}

/* when the feed data is from: "Posts up to <date>" and, if the data is old, a gentle note */
.fd-asof { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.fd-asof:empty { display: none; }
.fd-asof .stale { margin-left: 6px; }
