/* Social (/social/, /social/posts/, /social/hot-water/). Uses the tokens in styles.css: white
   paper, black ink, footnote blue for sources, and the highlighter for the words that put a
   person on Hot Water. */

.so-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.so-chips a { padding: 6px 12px; border: 1px solid var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--paper); }
.so-chips a:hover { background: var(--wash); }
.so-chips a[aria-current] { background: var(--ink); color: var(--paper); }

.so-h { margin: 0 0 4px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.so-h a { text-decoration: none; }
.so-h a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.so-sub { margin: 0 0 14px; font-size: 14px; color: var(--quiet); }
.so-note { list-style: none; color: var(--quiet); padding: 14px 0; }
.so-src { margin: 14px 0 0; font-size: 13px; color: var(--quiet); max-width: 72ch; }
.so-src a { color: var(--cite); }
.so-updated { font-size: 13px; color: var(--quiet); margin: 8px 0 56px; }
.so-sec { margin-top: 48px; }

/* A person's photo, or their initials when there isn't one. */
.so-av { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--rail); }
span.so-av { display: grid; place-items: center; font-weight: 800; font-size: 16px; color: var(--quiet); }

/* Which platforms a topic is trending on: a filled cell for each one it's on. */
.so-plat { display: inline-flex; gap: 3px; vertical-align: middle; }
.so-plat span { min-width: 22px; padding: 1px 5px; border: 1px solid var(--faint); font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; color: var(--faint); }
.so-plat span.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- Hub ---------------------------------------------------------------------------------- */
.so-hub { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; margin-top: 12px; }
.so-main { min-width: 0; }

.so-lead { padding: 28px 0 32px; border-top: 5px solid var(--ink); border-bottom: 1px solid var(--faint); }
.so-kicker { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--quiet); }
.so-lead-t { margin: 0; font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; line-height: .98; letter-spacing: -.035em; overflow-wrap: anywhere; }
.so-lead-meta { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; }
.so-lead-meta b { font-weight: 800; }
.so-lead-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; margin-top: 22px; align-items: start; }
.so-lead-desc { margin: 0 0 10px; font-size: 18px; color: var(--quiet); }
.so-heads { list-style: none; margin: 0; padding: 0; }
.so-heads li { padding: 9px 0; border-top: 1px solid var(--rail); font-size: 17px; line-height: 1.35; }
.so-heads li:first-child { border-top: 0; padding-top: 0; }
.so-heads a { text-decoration: none; font-weight: 600; }
.so-heads a:hover { text-decoration: underline; }
.so-heads small { display: block; margin-top: 2px; font-size: 13px; color: var(--quiet); }
.so-lead-img { width: 180px; height: 180px; object-fit: cover; background: var(--rail); }
.so-person { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
.so-person img, .so-person .so-av { width: 28px; height: 28px; font-size: 11px; }

.so-rank { list-style: none; margin: 0; padding: 0; border-top: 5px solid var(--ink); counter-reset: r; }
.so-rank > li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--faint); counter-increment: r; }
.so-rank > li::before { content: counter(r); font-weight: 800; font-size: 18px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.so-rank .t { font-size: 19px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.so-rank .t a { text-decoration: none; }
.so-rank .t a:hover { text-decoration: underline; }
.so-rank .m { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--quiet); }
.so-rank .m a { color: var(--ink); font-weight: 600; }

.so-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 5px solid var(--ink); margin-top: 12px; }
.so-tabs button { font: inherit; font-size: 15px; font-weight: 600; padding: 9px 16px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.so-tabs button:hover { background: var(--wash); }
.so-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.so-plist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.so-plist li { break-inside: avoid; display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rail); }
.so-plist .n { flex: none; width: 24px; font-weight: 800; color: var(--quiet); font-variant-numeric: tabular-nums; }
.so-plist .b { min-width: 0; }
.so-plist .t { margin: 0; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.so-plist .t a { text-decoration: none; }
.so-plist .t a:hover { text-decoration: underline; }
.so-plist .d { margin: 2px 0 0; font-size: 13px; color: var(--quiet); }
.so-spark { vertical-align: middle; overflow: visible; margin-left: 4px; }
.so-spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.so-spark circle { fill: var(--ink); }
.so-plist-src { margin: 12px 0 0; font-size: 13px; color: var(--quiet); }
.so-plist-src a { color: var(--cite); }

.so-side { min-width: 0; }
.so-box { border-top: 5px solid var(--ink); padding-top: 14px; margin-bottom: 40px; }
.so-mini { list-style: none; margin: 10px 0 0; padding: 0; }
.so-mini > li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rail); }
.so-mini .b { min-width: 0; }
.so-mini .w { margin: 0; font-weight: 800; font-size: 16px; line-height: 1.25; }
.so-mini .w a { text-decoration: none; }
.so-mini .w a:hover { text-decoration: underline; }
.so-mini .w span { font-weight: 400; font-size: 13px; color: var(--quiet); margin-left: 4px; }
.so-mini .x { margin: 3px 0 0; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.so-mini .x a { text-decoration: none; }
.so-mini .x a:hover { text-decoration: underline; }
.so-all { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; }

/* ---- Posts -------------------------------------------------------------------------------- */
.so-narrow { max-width: 760px; }
.so-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.so-people button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 3px 10px 3px 3px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.so-people button.all { padding: 5px 12px; }
.so-people button:hover { background: var(--wash); }
.so-people button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.so-people .so-av { width: 24px; height: 24px; font-size: 10px; }
.so-people small { font-weight: 400; opacity: .7; }

.so-feed { list-style: none; margin: 0; padding: 0; border-top: 5px solid var(--ink); }
.so-post { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--faint); }
.so-who { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; }
.so-who b { font-weight: 800; font-size: 16px; }
.so-who a { text-decoration: none; }
.so-who a:hover { text-decoration: underline; }
.so-who .h, .so-who time { color: var(--quiet); }
.so-rp { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--quiet); }
.so-text { margin: 6px 0 0; font-size: 19px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.so-text a { color: var(--cite); }
.so-go { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--cite); }
.so-more { font: inherit; font-weight: 600; margin: 20px 0 0; padding: 9px 16px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.so-more:hover { background: var(--wash); }

/* ---- Hot Water ---------------------------------------------------------------------------- */
.so-hw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 5px solid var(--ink); }
.so-hw > li.so-flag { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--faint); }
.so-hw > li.so-earlier, .so-hw > li.so-note { grid-column: 1 / -1; }
.so-hw > li.so-earlier { padding: 36px 0 0; border-bottom: 5px solid var(--ink); }
.so-earlier h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.so-flag .so-av { width: 96px; height: 96px; border-radius: 0; font-size: 28px; }
.so-flag .nm { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.15; }
.so-flag .nm a { text-decoration: none; }
.so-flag .nm a:hover { text-decoration: underline; }
.so-flag .when { margin: 4px 0 0; font-size: 13px; color: var(--quiet); }
.so-flag .so-heads { margin-top: 12px; }
.so-flag .so-heads li { font-size: 16px; }
.so-flag .so-heads a { font-weight: 400; }
mark { background: var(--hl); color: inherit; padding: 0 1px; }

@media (max-width: 1000px) {
  .so-hub { grid-template-columns: 1fr; gap: 8px; }
  .so-hw { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .so-lead-body { grid-template-columns: 1fr; }
  .so-lead-img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .so-plist { columns: 1; }
  .so-text { font-size: 17px; }
  .so-hw > li.so-flag { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .so-flag .so-av { width: 64px; height: 64px; font-size: 20px; }
  .so-flag .nm { font-size: 20px; }
}
