
/* paper */
/* Paper — component styles. Colours and shapes come from the tokens in plugin.php; --paper-tint is the soft warm fill of tags and stat cells. */

/* type: serif for page headings only; lists and posts stay in the interface font */
.list-head h1, .topic-title, .category-head h1, .profile-name, .error-box h1 { font-family: var(--paper-heading-font, inherit); font-weight: 500; letter-spacing: -.005em; }
.topic-title { font-size: 30px; line-height: 1.2; }

/* top bar: translucent page colour with a blur, the current link underlined in the accent */
.topbar { backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); }
.topnav a:hover { background: transparent; color: var(--text); }
.topnav a.active { background: transparent; color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.search-form { background: var(--panel); border-radius: var(--radius); }

/* topic lists sit on the page: no box, hairlines between rows */
.list-card { background: transparent; border-color: transparent; border-radius: 0; overflow: visible; }
.list-card > .list-head { padding: 0 0 14px; border-bottom: 0; }
.list-card > .topic-rows { border-top: 1px solid var(--line); }
.topic-rows { background: transparent; border: 0; border-radius: 0; }
.topic-row { border-bottom-color: var(--line); }
.topic-row:hover { background: transparent; }
.row-title { font-size: var(--font-size-lg); font-weight: 500; }
.row-title a:hover { color: var(--brand); }
.row-meta { font-size: var(--font-size-sm); color: var(--text-muted); }
.row-meta .meta { color: var(--text-muted); }
.row-cat, .tag-badge { border: 0; border-radius: 4px; background: var(--paper-tint); color: var(--text-muted); padding: 2px 7px; }
.row-cat:hover, .tag-badge:hover { color: var(--brand); }

/* filters: outlined pills, the current one filled with the accent */
.tab { border: 1px solid var(--line); background: var(--panel); color: var(--text-muted); font-weight: 400; }
.tab:hover { border-color: var(--text-subtle); color: var(--text); }
.tab.active { border-color: var(--brand); }
.tab.active .icon { color: currentColor; }
.tabs { gap: 6px; }

/* cards: white, fine border, generous padding, heading without a rule under it */
.card-head { border-bottom: 0; }
.card-head h3 { font-size: var(--font-size-md); font-weight: 600; }
.btn-primary { box-shadow: none; }
.btn:not(.btn-primary):not(.btn-danger) { background: var(--panel); }

/* left navigation: the current link is a white chip with a fine border */
.side-link.active { box-shadow: 0 0 0 1px var(--line); }
.side-link:hover { background: var(--paper-tint); }

/* posts */
.post-content blockquote { border-inline-start-color: var(--brand); background: var(--paper-tint); }
.footer { border-top-color: var(--line); }

/* statistics card (views/card_stats.php): four soft cells */
.paper-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.paper-stats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--paper-tint); }
.paper-stats b { font-family: var(--paper-heading-font, inherit); font-size: var(--font-size-xl); font-weight: 500; line-height: 1.15; color: var(--text); }
.paper-stats span { color: var(--text-muted); font-size: var(--font-size-xs); }

@media (max-width: 640px) {
  .list-card > .list-head { padding: 0 4px 10px; }
  .topic-title { font-size: 24px; }
}

