/* Dig deeper shelf and the Taste page (interests, settings, examples, stats, left-out list). */

/* --- shelf ---------------------------------------------------------------------- */

.page-title { font: 620 2rem/1.15 var(--serif); letter-spacing: -.015em; margin: 12px 0 8px; }
.lede { font: .95rem/1.55 var(--sans); color: var(--ink-2); margin: 0 0 28px; max-width: 60ch; }
.shelf { list-style: none; margin: 0; padding: 0; }
.clip { position: relative; margin: 0 0 18px; padding: 16px 16px 6px 20px; overflow-wrap: anywhere;
        background: var(--surface); border-radius: 4px 16px 16px 4px; }
.clip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
                border-radius: 4px 0 0 4px; background: var(--hl); }
.clip.pending::before { opacity: .45; }
.clip-text { margin: 0; font: 400 1.02rem/1.6 var(--serif); }
.clip.long:not(.open) .clip-text {
  max-height: 12.8em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}
.clip-more { min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--hl-ink);
             font: 600 .85rem/1 var(--sans); cursor: pointer; }
.clip-text p { margin: 0 0 .8em; }
.clip-text a.cite { font-size: .66em; }
.clip-from { font: .85rem/1.4 var(--sans); color: var(--ink-2); margin: 6px 0; }
.clip-sources { font: .85rem/1.45 var(--sans); padding-left: 1.1em; margin: 0 0 6px; color: var(--ink-2); }
.clip-sources li { margin: 4px 0; }
.clip-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
             border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 2px; }
.status { font: 600 .82rem/1.2 var(--sans); }
.status-queued { color: var(--hl-ink); }
.status-done { color: var(--ink-2); }
.clip-foot .btn { min-height: var(--tap); border: 0; padding: 0 6px; }

/* --- taste ---------------------------------------------------------------------- */

.taste textarea {
  display: block; width: 100%; min-height: 60vh; resize: vertical;
  padding: 14px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font: .9rem/1.55 ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}
.taste-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
              margin-top: 12px; position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
              padding: 8px 0; background: var(--paper); }
.taste-status { font: .85rem/1.35 var(--sans); color: var(--ink-3); min-width: 0; overflow-wrap: anywhere; }
.taste-status.dirty { color: var(--hl-ink); }

.int-pending:empty { display: none; }
.int-pending { margin: 0 0 20px; }
.int-job { font: .88rem/1.4 var(--sans); color: var(--hl-ink); margin: 0 0 6px; overflow-wrap: anywhere; }
.int-job:not(.failed)::before { content: ""; display: inline-block; width: 8px; height: 8px;
                                margin-right: 8px; border-radius: 50%; background: var(--hl);
                                animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; } }
.int-job.failed { color: var(--danger); }
.int-group { margin: 0 0 28px; }
.int-h { display: block; font: 650 1.05rem/1.3 var(--sans); color: var(--ink); margin: 0 0 10px; }
.int-list { list-style: none; margin: 0; padding: 0; }
.int-row { position: relative; background: var(--surface); border-radius: 4px 14px 14px 4px;
           padding: 4px 4px 2px 16px; margin: 0 0 8px; min-width: 0; }
.int-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
                   border-radius: 4px 0 0 4px; background: var(--hl); }
.int-row[data-pol="-1"]::before { background: var(--ink-3); }
.int-text, .int-add input {
  display: block; min-width: 0; min-height: var(--tap); padding: 10px 8px;
  margin: 0 0 0 -8px; width: calc(100% + 8px);
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink);
  font: 500 1rem/1.4 var(--sans);
}
.int-text { resize: none; overflow: hidden; overflow-wrap: anywhere; }
.int-text:hover { border-color: var(--rule); }
.int-text:focus { outline: none; border-color: var(--hl); background: var(--paper); }
.int-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.int-meta { font: .78rem/1.3 var(--sans); color: var(--ink-3); min-width: 0;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-actions { display: flex; flex: none; }
.int-actions .fb-btn { width: 40px; height: 40px; font-size: 1.12rem; }
.int-del { width: 40px; height: 40px; border: 0; background: none; padding: 0; border-radius: 12px;
           color: var(--ink-3); font: 500 .9rem/1 var(--sans); cursor: pointer; }
.int-del:hover { color: var(--danger); }
.int-empty { font: .9rem/1.45 var(--sans); color: var(--ink-3); margin: 0 0 8px; }
.int-empty[hidden] { display: none; }
.int-add { margin: 8px 0 32px; }
.int-add input { margin: 0; width: 100%; background: var(--surface); border-color: var(--rule); }
.int-add input:focus { outline: none; border-color: var(--hl); }
.int-add-btns { display: flex; gap: 8px; margin-top: 10px; }
.int-add-btns .btn { flex: 1; padding: 0 10px; }
.int-help { font: .88rem/1.5 var(--sans); color: var(--ink-2); margin: -4px 0 12px; }

/* tomorrow's issue */
.tune { margin: 8px 0 32px; }
.tune-form { background: var(--surface); border-radius: 16px; padding: 14px 16px 10px; }
.tune-row { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.tune-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
              font: 600 .92rem/1.3 var(--sans); color: var(--ink); margin-bottom: 6px; padding: 0; }
.tune-label output { font: 500 .85rem/1.3 var(--sans); color: var(--hl-ink);
                     font-variant-numeric: tabular-nums; }
.tune-note { font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.tune input[type="range"] { width: 100%; height: var(--tap); margin: 0; accent-color: var(--hl);
                            cursor: pointer; }
.tune-ends { display: flex; justify-content: space-between; font: .76rem/1.2 var(--sans);
             color: var(--ink-3); margin-top: -4px; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 22px; background: var(--raised); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: grid; place-items: center; min-width: 44px; height: 38px; padding: 0 10px;
                border-radius: 19px; font: 600 .92rem/1 var(--sans); color: var(--ink-2); }
.seg-opt input:checked + span { background: var(--hl); color: var(--on-hl); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--hl); outline-offset: 2px; }
.tune-plan { font: .88rem/1.45 var(--sans); color: var(--ink-2); margin: 0 0 6px;
             padding-top: 10px; border-top: 1px solid var(--rule); }
.tune-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tune-foot .btn[disabled] { opacity: .45; cursor: default; }

/* articles I'd have wanted */
.ex { margin: 0 0 32px; }
.ex-list { list-style: none; margin: 0 0 10px; padding: 0; }
.ex-row { position: relative; background: var(--surface); border-radius: 4px 14px 14px 4px;
          padding: 10px 4px 2px 16px; margin: 0 0 8px; min-width: 0; }
.ex-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
                  border-radius: 4px 0 0 4px; background: var(--hl); }
.ex-row[data-state="pending"]::before { opacity: .4; }
.ex-title { display: block; padding-right: 12px; font: 600 .95rem/1.35 var(--sans); color: var(--ink);
            text-decoration: none; overflow-wrap: anywhere; }
.ex-title:hover { text-decoration: underline; text-decoration-color: var(--hl); }
.ex-state { display: block; font: .78rem/1.3 var(--sans); color: var(--ink-3); margin-top: 2px; }
.ex-state:empty { display: none; }
.ex-foot { display: flex; align-items: flex-start; gap: 4px; }
.ex-reason { flex: 1; min-width: 0; min-height: var(--tap); padding: 10px 8px; margin-left: -8px;
             border: 1px solid transparent; border-radius: 10px; background: transparent;
             color: var(--ink-2); font: 400 .9rem/1.4 var(--sans); resize: none; overflow: hidden; }
.ex-reason:hover { border-color: var(--rule); }
.ex-reason:focus { outline: none; border-color: var(--hl); background: var(--paper); color: var(--ink); }
.ex-add { display: grid; gap: 8px; }
.ex-add input { min-height: var(--tap); padding: 0 12px; border: 1px solid var(--rule); border-radius: 10px;
                background: var(--surface); color: var(--ink); font: 500 .95rem/1 var(--sans); min-width: 0; }
.ex-add input:focus { outline: none; border-color: var(--hl); }
.ex-add .btn { justify-self: start; }
.model-line { font: .8rem/1.5 var(--sans); color: var(--ink-3); margin: 20px 0 0; }

/* Collapsible section: a full-width row with a rule under it and a chevron that flips. */
.disclose { margin-top: 8px; }
.disclose > summary { list-style: none; display: flex; align-items: center; gap: 12px;
                      min-height: var(--tap); padding: 12px 0; cursor: pointer;
                      border-bottom: 1px solid var(--rule); -webkit-tap-highlight-color: transparent; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary:hover .disclose-title { color: var(--hl-ink); }
.disclose > summary:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; border-radius: 4px; }
.disclose-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.disclose-title { font: 600 .98rem/1.3 var(--sans); color: var(--ink); }
.disclose-note { font: 400 .82rem/1.4 var(--sans); color: var(--ink-3); }
.disclose-chev { flex: none; width: 36px; height: 36px; display: grid; place-items: center;
                 border-radius: 50%; color: var(--ink-2); background: var(--surface);
                 transition: transform .2s ease; }
.disclose[open] > summary .disclose-chev { transform: rotate(180deg); }
.disclose[open] > summary { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .disclose-chev { transition: none; } }

/* "Didn't make the cut": compact rows, title + one meta line, 👍 and Dig deeper on the right */
.skipped { margin-top: 48px; }
.skip-help { font: .85rem/1.5 var(--sans); color: var(--ink-3); margin: 0 0 8px; }
.issue .skip-list { list-style: none; margin: 0; padding: 0; }
.issue .skip-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; margin: 0;
            border-bottom: 1px solid var(--rule); }
.issue .skip-row:last-child { border-bottom: 0; }
.skip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.skip-title { font: 500 .93rem/1.35 var(--sans); color: var(--ink); text-decoration: none;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
              overflow: hidden; overflow-wrap: anywhere; }
a.skip-title:hover { text-decoration: underline; text-decoration-color: var(--hl); }
a.skip-title:visited { color: var(--ink-2); }
.skip-why { font: .76rem/1.3 var(--sans); color: var(--ink-3); white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis; }
.skip-actions { flex: none; display: flex; align-items: center; gap: 2px; }
.skip-dig { min-height: 36px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 18px;
            background: none; color: var(--ink-2); font: 500 .78rem/1 var(--sans); cursor: pointer;
            white-space: nowrap; }
.skip-dig:hover, .skip-dig:focus-visible { border-color: var(--hl); color: var(--ink); }
.skip-dig[aria-pressed="true"] { background: var(--hl); border-color: var(--hl); color: #1a1a1a; }
.skip-dig:disabled { opacity: .6; }

/* Stats ledger at the bottom of Taste: label left, figure right, tabular numbers */
.stats { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--rule); }
.stats-groups { display: grid; gap: 20px 32px; grid-template-columns: 1fr; }
.stats-group { margin: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 0;
               font: .88rem/1.3 var(--sans); }
.stats-group dt, .stats-group dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.stats-group dt { color: var(--ink-2); }
.stats-group dd { padding-left: 12px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums;
                  font-weight: 600; }
.stats-group dt.stats-gh { grid-column: 1 / -1; color: var(--ink); font-weight: 600;
                           padding-top: 0; border-bottom-color: var(--ink-3); }
.stats-group dt.stats-gh + dd { display: none; }
.stats-sub { font-weight: 400; color: var(--ink-3); }
.stats-last { font: .82rem/1.5 var(--sans); color: var(--ink-3); margin: 14px 0 0; }
@media (min-width: 640px) { .stats-groups { grid-template-columns: 1fr 1fr; } }

.sync-line { font: .8rem/1.5 var(--sans); color: var(--ink-3); margin: 20px 0 0; }
.install-btn { min-height: 36px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--hl);
               border-radius: 18px; background: none; color: var(--ink); font: 500 .85rem/1 var(--sans);
               cursor: pointer; }
