/* A single reading feed for desktop and mobile. */
.library-surface { margin-bottom: 20px; }
.library-filters .field-tags { flex: 2 1 230px; }
.library-filter-help { padding: 12px 20px 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.library-active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 0; }
.library-quick-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 20px 0; font-size: 11px; }
.library-quick-tags > span { color: var(--muted); margin-right: 4px; }
.project-more-tags { font-size: 11px; color: var(--muted); }
.project-more-tags summary { cursor: pointer; min-height: 28px; display: list-item; padding: 5px 0; }
.project-more-tags[open] { flex-basis: 100%; }
.project-more-tags > div { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.tag-selected { background: var(--accent-soft); color: var(--accent-ink); }
.project-card-topics .tag, .tag-list .tag, .library-active-filters .tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.repository-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-card {
  padding: 24px;
  border: var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.project-card.is-read {
  background: var(--color-paper);
}
.project-read-toggle[hidden], .project-reading-note[hidden], .reading-local-note[hidden] { display: none; }
.project-read-toggle[aria-pressed="true"] {
  background: var(--surface-strong);
  color: var(--ink);
}
.project-reading-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.project-reading-note[data-reading-error="true"] { color: var(--danger); }
.reading-local-note { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-card-heading, .project-card-identity, .project-card-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-card-heading { justify-content: space-between; align-items: flex-start; }
.project-card-identity { min-width: 0; flex-wrap: wrap; }
.project-card h2 { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.project-card h2 a { color: var(--ink-strong); }
.project-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.project-card-badges { gap: 6px; flex-wrap: wrap; }
.project-language { flex-shrink: 0; font-size: 12px; color: var(--muted); padding-top: 3px; }
.project-card-body { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 32px; margin-top: 16px; }
.project-card-reading { min-width: 0; }
.project-original-description { color: var(--ink); font-size: 13px; line-height: 1.75; max-width: 75ch; }
.project-brief { margin-top: 20px; }
.project-brief-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.project-brief-heading h3 { font-size: 12px; font-weight: 650; }
.project-brief-heading > span, .project-brief-source { font-size: 11px; color: var(--muted); }
.project-brief-text { max-width: 75ch; font-size: 14px; line-height: 1.85; white-space: normal; }
.project-brief-source { margin-top: 8px; }
.project-brief-pending { font-size: 12px; color: var(--muted); line-height: 1.7; }
.project-brief-outline { margin: 0; }
.project-brief-outline > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
.project-brief-outline dt { color: var(--muted); font-size: 11px; line-height: 1.85; padding-top: 2px; }
.project-brief-outline dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.project-brief-outline .brief-secondary { margin-top: 7px; font-size: 12px; line-height: 1.65; }
.project-development { margin-top: 15px; }
.activity-heading, .activity-source, .activity-note { font-size: 11px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.activity-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 3px; font-size: 12px; line-height: 1.7; }
.activity-summary strong { font-weight: 600; }
.activity-partial { font-size: 11px; color: var(--warning); }
.activity-note { margin-top: 5px; }
.analysis-purpose-label { font-size: 12px; margin-bottom: 7px; }
.repository-development { padding: 22px 0; border-top: var(--rule); border-bottom: var(--rule); margin-bottom: 24px; }
.repository-development .section-heading { gap: 12px; }
.repository-development .activity-summary { font-size: 14px; gap: 6px 24px; }
.repository-development .activity-source { margin-top: 7px; }
.commit-chart { margin-top: 18px; max-width: 900px; }
.commit-bars { display: block; width: 100%; height: 100px; overflow: visible; }
.commit-bar { fill: var(--accent); }
.commit-bar.commit-zero { fill: var(--color-rule-strong); }
.commit-bar.commit-unknown { fill: none; stroke: var(--color-rule-strong); stroke-width: 0.8; stroke-dasharray: 1.5 1; }
.commit-chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.activity-daily { margin-top: 12px; font-size: 12px; }
.activity-daily summary { cursor: pointer; width: fit-content; padding: 7px 0; color: var(--accent-ink); }
.activity-daily ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 24px; list-style: none; padding: 12px 0; margin: 0; }
.activity-daily li { display: flex; gap: 15px; justify-content: space-between; color: var(--ink); font-variant-numeric: tabular-nums; }
.age-explanation { display: block; margin-top: 5px; font-size: 11px; line-height: 1.65; color: var(--muted); max-width: 65ch; }
.project-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; align-content: start; margin: 0; padding: 0; }
.project-card-metrics > div { min-width: 0; }
.project-card-metrics dt { font-size: 11px; line-height: 1.5; color: var(--muted); margin-bottom: 5px; }
.project-card-metrics dd { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.project-card-metrics small { display: block; font-size: 11px; margin-top: 4px; line-height: 1.5; }
.project-card-metrics .project-card-rank { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 16px; }
.project-card-rank > span:first-child { color: var(--muted); font-weight: 450; }
.project-comparison-note { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-card-metrics .project-comparison-note dd { font-size: 11px; font-weight: 400; line-height: 1.6; }
.metric-pending { color: var(--muted); }
.project-card-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.project-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: var(--rule); padding-top: 16px; margin-top: 20px; }
.project-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-card-meta > span { white-space: nowrap; }
.project-card-meta .repository-age { white-space: normal; }
.project-card-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 8px; }
.project-card-actions .button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.project-github-link { color: var(--accent-ink); }
@media (max-width: 1200px) {
  .project-card-body { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
  .project-card-footer { align-items: flex-start; }
}
@media (max-width: 960px) {
  .project-card-body { grid-template-columns: 1fr; gap: 20px; }
  .project-card-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 18px; border-top: var(--rule); gap: 16px; }
  .project-card-metrics dd { font-size: 18px; }
  .project-card-metrics .project-card-rank { font-size: 14px; }
}
@media (max-width: 600px) {
  .library-filters .field-tags { flex-basis: 100%; }
  .library-filter-help, .library-active-filters, .library-quick-tags { padding-left: 16px; padding-right: 16px; }
  .repository-feed { gap: 14px; }
  .project-card { padding: 18px; }
  .project-card-heading { gap: 12px; }
  .project-card h2 { font-size: 16px; }
  .project-language { font-size: 11px; }
  .project-card-body { margin-top: 12px; }
  .project-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .project-card-footer { flex-direction: column; gap: 14px; }
  .project-card-actions { width: 100%; }
  .project-card-actions .button { flex: 1; min-height: 42px; }
  .project-brief { margin-top: 16px; }
  .project-brief-outline > div { grid-template-columns: 1fr; gap: 2px; }
  .project-brief-outline .brief-secondary { margin-top: 10px; }
  .repository-development .section-heading { flex-direction: column; align-items: flex-start; }
  .commit-bars { height: 76px; }
}
@media print {
  .project-card { break-inside: avoid; }
  .project-card-actions { display: none; }
  .project-reading-note, .reading-local-note { display: none; }
}
