/* Blue Tracker, the front page feed strip and Thoughts. Uses the tokens
   from style.css. */

/* ---------- feeds ---------- */
.feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .feed-grid { grid-template-columns: minmax(0, 1fr); } }

.feed-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; min-width: 0; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.feed-head h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.feed-head .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #3fa2ff; box-shadow: 0 0 12px rgba(63, 162, 255, .6); }
.feed-head .dot.news { background: var(--y); box-shadow: 0 0 12px var(--y-glow); }
.feed-head .feed-tools { display: flex; align-items: center; gap: 12px; }
.feed-head a.more { font-size: .9rem; color: var(--dim); }
.feed-head a.more:hover { color: var(--text); }

.feed-filter { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.feed-filter button { background: transparent; border: 0; color: var(--dim); font: 600 .85rem var(--font-body); padding: 6px 12px; cursor: pointer; }
.feed-filter button + button { border-left: 1px solid var(--line-strong); }
.feed-filter button[aria-pressed="true"] { background: var(--y-soft); color: var(--y); }
.feed-filter button:focus-visible { outline: 2px solid var(--y); outline-offset: -2px; }

.feed-list { display: grid; gap: 6px; }
.feed-row {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid transparent;
  color: var(--text); text-decoration: none;
}
.feed-row:hover { border-color: var(--line-strong); background: var(--panel-2); }
.feed-region { flex: none; font: 700 .68rem var(--font-mono); padding: 2px 6px; border-radius: 5px; background: #12306b; color: #cfe1ff; }
.feed-age { flex: none; min-width: 30px; color: var(--faint); font: 600 .8rem var(--font-mono); }
.feed-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.feed-blue .feed-title { color: #5cb6ff; }
.feed-news { border-left: 3px solid var(--y-deep); }
.feed-author { flex: none; color: var(--faint); font-size: .8rem; }
@media (max-width: 560px) { .feed-author { display: none; } }
.feed-empty { color: var(--dim); padding: 8px 2px; }
.feed-updated, .feed-credit { color: var(--faint); font-size: .82rem; margin-top: 12px; }
.feed-credit a { color: var(--dim); }


/* ---------- thoughts ---------- */
.thought-list { display: grid; gap: 16px; max-width: 900px; }
.thought-card {
  display: grid; gap: 8px; padding: 22px; border-radius: var(--radius-sm);
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.thought-card:hover { border-color: var(--y-deep); }
.thought-card time { color: var(--faint); font: 600 .82rem var(--font-mono); }
.thought-card h2 { font-size: 1.35rem; }
.thought-card p { color: var(--dim); }
.thought-card .read { display: inline-flex; align-items: center; gap: 6px; color: var(--y); font-weight: 600; font-size: .92rem; }
.thought-card .read svg { width: 16px; height: 16px; flex: none; }

.thought { max-width: 860px; display: grid; gap: 18px; color: var(--dim); font-size: 1.05rem; line-height: 1.75; }
.thought h3 { color: var(--text); font-size: 1.35rem; margin-top: 18px; }
.thought b { color: var(--text); }
.thought ul, .thought ol { display: grid; gap: 8px; padding-left: 22px; }
.thought .note { border-left: 3px solid var(--y); padding: 10px 16px; background: var(--y-soft); border-radius: 0 10px 10px 0; color: var(--text); }
/* Images in a post: the full width of the post (a .shot spans 4 grid columns
   elsewhere, which would split the post into columns), caption underneath. */
.thought .shot { grid-column: 1 / -1; display: block; margin: 6px 0; max-width: 100%; }
.thought .shot img { height: auto; }
.thought .shot figcaption { position: static; background: none; padding: 10px 14px 12px; font-size: .88rem; color: var(--faint); line-height: 1.5; }
/* The heading and post (or list) in one column with the sidebar beside
   both, below them on phones. The grid background stays at the top. */
.thought-page { position: relative; padding-bottom: 48px; }
.thought-bg { inset: 0 0 auto 0; height: 640px; }
.thought-head { padding-bottom: clamp(32px, 5vw, 56px); }
.thought-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.thought-layout > .thought-side { margin-top: clamp(36px, 6vw, 72px); }
@media (max-width: 1000px) { .thought-layout > .thought-side { margin-top: 0; } }
@media (max-width: 1000px) { .thought-layout { grid-template-columns: minmax(0, 1fr); } }
/* Scrolls with the page (it used to stick, and ran off the bottom of shorter screens). */
.thought-side { display: grid; gap: 18px; }
@media (max-width: 1000px) { .thought-side { position: static; } }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; display: grid; gap: 12px; min-width: 0; }
.side-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; color: var(--text); }
.side-card .feed-head { margin-bottom: 0; }
.side-card .feed-head h2, .side-card .feed-head h3 { font-size: 1.05rem; }
/* About the author: a full-width strip at the bottom of the page. */
.author-strip { padding-bottom: 72px; }
.author-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px;
}
.author-text h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 4px; }
.author-text p { color: var(--dim); }
@media (max-width: 760px) {
  .author-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .author-card .brand-keys { justify-self: start; }
}
.side-links { display: flex; flex-wrap: wrap; gap: 8px; }
.side-links .btn { --bh: 36px; padding: 0 12px; font-size: .85rem; }
.side-feed .feed-row { padding: 8px 10px; flex-wrap: wrap; row-gap: 4px; }
.side-feed .feed-title { flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.side-feed .feed-author { display: none; }
.side-more { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: .88rem; }
.side-more:hover { color: var(--text); }
.side-more svg { width: 14px; height: 14px; }
.side-posts a { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); }
.side-posts a:hover b { color: var(--y); }
.side-posts small { color: var(--faint); }

.thought-foot { max-width: 760px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
