/* Reader tools: issue follow toggle, followed-issues hub, unified search (/search).
   Builds on tokens.css + app.css (.tp scope). */

/* follow toggle */
.tp .follow-btn{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:var(--r-pill);font-size:var(--fs-13);font-weight:700;color:rgb(var(--c-ink));background:rgb(var(--c-surface));border:1px solid rgb(var(--c-line-strong));white-space:nowrap;cursor:pointer}
.tp .follow-btn:hover{color:rgb(var(--c-brand));border-color:rgb(var(--c-brand))}
.tp .follow-btn[aria-pressed="true"]{color:rgb(var(--c-brand));background:rgb(var(--c-brand-soft));border-color:transparent}
.tp .follow-btn[aria-pressed="true"] .icon{fill:currentColor}
.tp .follow-btn[hidden]{display:none}
.tp .ai-card-top .follow-btn{margin-left:auto}
@media(max-width:767px){.tp .follow-btn{min-height:44px}}

/* followed issues hub */
.tp .follow-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
.tp .follow-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:16px 18px}
.tp .follow-card.has-new{border-color:rgb(var(--c-brand) / .45);box-shadow:inset 3px 0 0 rgb(var(--c-brand))}
.tp .follow-card.is-missing{opacity:.8}
.tp .follow-title{font-size:var(--fs-17);line-height:1.45;font-weight:750;color:rgb(var(--c-ink-strong));overflow-wrap:anywhere}
.tp .follow-title a{color:inherit}
.tp .follow-title a:hover{color:rgb(var(--c-brand))}
.tp .follow-actions{display:flex;flex-wrap:wrap;gap:6px}
.tp .follow-new{font-variant-numeric:tabular-nums}
.tp .follow-summary-list{display:grid;margin-top:8px}
.tp .follow-summary-list li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid rgb(var(--c-line))}
.tp .follow-summary-list li:first-child{border-top:0}
.tp .follow-summary-list a{font-weight:650;color:rgb(var(--c-ink-strong));overflow-wrap:anywhere}
.tp .follow-summary-list a:hover{color:rgb(var(--c-brand))}

/* unified search */
.tp .search-form{display:grid;gap:12px;align-items:end}
@media(min-width:640px){.tp .search-form{grid-template-columns:minmax(0,1fr) 180px auto}}
.tp .search-summary{margin:4px 0 14px}
.tp .search-section{margin-top:22px}
.tp .search-section:first-of-type{margin-top:6px}
.tp .search-list{display:grid;gap:10px;margin-top:10px}
.tp .search-item{position:relative;padding:16px 18px}
.tp .search-item h3{margin-top:6px;font-size:var(--fs-17);line-height:1.45;font-weight:750;color:rgb(var(--c-ink-strong));overflow-wrap:anywhere}
.tp .search-item .summary{margin-top:6px;font-size:var(--fs-15);color:rgb(var(--c-ink));overflow-wrap:anywhere}
.tp .search-item .kw-row,.tp .search-item .search-extra{position:relative;z-index:1}
.tp .search-extra{margin-top:6px;font-size:var(--fs-13);color:rgb(var(--c-ink-muted));overflow-wrap:anywhere}
.tp .search-head-list{display:grid;margin-top:6px}
.tp .search-head-list li{padding:12px 0;border-top:1px solid rgb(var(--c-line))}
.tp .search-head-list li:first-child{border-top:0}
.tp .search-head-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:var(--fs-13);color:rgb(var(--c-ink-muted))}
.tp .search-head-meta strong{color:rgb(var(--c-ink-strong));font-weight:750}
.tp .search-head-link{display:inline;font-size:var(--fs-15);line-height:1.5;font-weight:600;color:rgb(var(--c-ink-strong));overflow-wrap:anywhere}
.tp .search-head-link:hover{color:rgb(var(--c-brand));text-decoration:underline}
.tp .search-head-link .icon{font-size:12px;margin-left:3px;color:rgb(var(--c-ink-muted))}
.tp .search-page mark,.tp .follow-card mark{background:rgb(var(--c-caution) / .22);color:inherit;border-radius:3px;padding:0 1px}
.tp .search-suggest{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
