/* Bookmarks: the Bookmark buttons on a thread (in its bar, and under each post) and the
   /bookmarks page (Pages/Bookmarks).

   Mobile first: the rules outside a media query lay things out for a phone; the min-width
   blocks add room on wider screens. Everything tapped is at least 44 px tall. Every color
   is a custom property from site.css. Bookmarked is never said by color alone: the ribbon
   is filled instead of hollow, and the words change ("Bookmark", "Bookmarked"). */

.bookmark-icon { flex: none; }
.bookmark-form { margin: 0; display: flex; }

/* In the bar above a thread's posts it is one of the thread's buttons (.thread-actions in
   threads.css), after Moderate and Watch, before Reply. Under a post it is a quiet action.
   Both are the ribbon alone at every width (Alex, 2026-11-14: "just show the icon"): the
   words are read out and are the tooltip, and the button stays a 44 px square to tap. */
.bookmark-button { justify-content: center; min-width: 44px; padding: 0 12px; }
.bookmark-button.is-on { border-color: var(--ink); }
.post-actions .bookmark-button.is-on { color: var(--ink); }
.bookmark-word {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* The page's two orders, as links: the current one is filled as well as marked. */
.bookmark-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bookmark-sort-label { margin-right: 4px; color: var(--muted); font-size: 14px; }
.bookmark-sort a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--button-line); border-radius: var(--radius-small);
  background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: var(--elev-1);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.bookmark-sort a:hover { border-color: var(--control-line); box-shadow: var(--elev-2); }
.bookmark-sort a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.bookmark-sort a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A post bookmark: whose post and when, then its first words, under the thread's title. */
.bookmark-post { margin: 4px 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bookmark-post-by { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.bookmark-post-by .bookmark-icon { width: 14px; height: 14px; color: var(--accent); }
.bookmark-excerpt {
  color: var(--ink); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}

/* The row's Remove button: beside the last post on a phone, a column of its own from tablet up. */
.bookmark-row .thread-last { flex: 1 1 0; min-width: 0; }
.bookmark-remove { flex: none; margin: 0; display: flex; align-items: center; }
.bookmark-remove .forum-button { color: var(--muted); }
.bookmark-remove .forum-button:hover { color: var(--ink); }

@media (min-width: 768px) {
  .bookmark-row .thread-last { flex: 0 1 216px; }
}
