/* This pass refines only the community UI introduced in the homepage refresh. */
.community-container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.community-home { background: var(--paper); color: var(--ink); }
.community-head { background: var(--paper); }
.community-top { background: var(--accent); }
.topbar-inner { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.community-brand { display: inline-flex; flex: 0 0 auto; }
.community-brand img { display: block; width: 116px; height: 56px; object-fit: cover; }
.community-top a:focus-visible, .community-top input:focus-visible, .community-top button:focus-visible { outline-color: #000; }
.community-search { display: flex; align-items: center; width: min(340px, 100%); height: 38px; margin-left: auto; background: #fff; border: 1px solid #0002; border-radius: 2px; }
.community-search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 9px 12px; font-size: 14px; color: var(--ink); }
.community-search input::placeholder { color: var(--muted); }
.community-search button { display: grid; place-items: center; width: 42px; height: 36px; flex: 0 0 auto; padding: 0; background: transparent; border: 0; color: var(--ink); }
.community-navline { border-bottom: 1px solid var(--line); }
.community-nav { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.community-nav::-webkit-scrollbar, .feed-tabs::-webkit-scrollbar { display: none; }
.community-nav a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; border-bottom: 2px solid transparent; padding-top: 2px; font-size: 14px; font-weight: 500; }
.community-nav a[aria-current] { border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.community-nav a:hover { color: var(--accent-text); }
.community-nav .nav-all { margin-left: auto; font-size: 12px; color: var(--muted); }
.community-main { margin-top: 22px; margin-bottom: 44px; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; align-items: start; gap: 38px; }
.community-feed { min-width: 0; scroll-margin-top: 18px; }
.spotlight { position: relative; overflow: hidden; margin-bottom: 26px; background: #24272b; color: #fff; }
.spotlight-slides { position: relative; height: 230px; overflow: hidden; }
.spotlight.is-sliding .spotlight-slide { position: absolute; inset: 0; width: 100%; }
.spotlight-slide { height: 100%; }
.spotlight-link { display: block; position: relative; isolation: isolate; height: 100%; }
.spotlight-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.76) 42%, rgba(0,0,0,.28) 75%, rgba(0,0,0,.06) 100%); }
.spotlight-copy { padding: 26px 28px 42px; width: 78%; min-width: 0; }
.spotlight-category { display: block; margin-bottom: 8px; font-size: 12px; }
.spotlight h2 { font-size: 24px; font-weight: 750; letter-spacing: -.035em; line-height: 1.45; margin: 0; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight-copy p { margin: 10px 0 0; font-size: 13px; line-height: 1.65; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spotlight-link:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.spotlight-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.spotlight-controls { position: absolute; bottom: 9px; left: 22px; display: flex; align-items: center; gap: 2px; }
.spotlight-controls button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 2px; }
.spotlight-controls .slide-toggle { width: auto; font-size: 11px; padding: 0 8px; margin-left: 7px; border-left: 1px solid #ffffff65; border-radius: 0; }
.spotlight-controls button:hover { background: #fff4; }
.spotlight-controls button:focus-visible, .spotlight-link:focus-visible { outline-color: #fff; outline-offset: -3px; }
.slide-count { font-size: 11px; font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }
.community-feed-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.community-feed-title h1 { font-size: 21px; font-weight: 700; line-height: 1.5; letter-spacing: -.025em; margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.community-feed-title h1 > span { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.feed-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 15px; }
.feed-sort { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.feed-sort a { padding: 9px 0; }
.feed-sort [aria-current] { color: var(--ink); font-weight: 700; }
.view-options { display: flex; gap: 1px; }
.view-options a { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); border: 1px solid transparent; }
.view-options [aria-current] { border-color: #c8cbd0; color: var(--ink); background: var(--canvas); }
.view-options a:hover { color: var(--accent-text); }
.feed-tabs { display: flex; gap: 25px; border-bottom: 1px solid #b9bdc3; overflow-x: auto; scrollbar-width: none; }
.feed-tabs a { flex: 0 0 auto; padding: 0 0 11px; border-bottom: 2px solid transparent; font-size: 13px; line-height: 1.5; color: var(--muted); }
.feed-tabs a[aria-current] { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 700; }
.active-filter { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.active-filter span { overflow-wrap: anywhere; min-width: 0; }
.active-filter a { color: var(--muted); white-space: nowrap; }
.community-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 0; margin: 0; list-style: none; }
.community-stories > li { min-width: 0; border-bottom: 1px solid var(--line); }
.story-card { height: 100%; }
.story-thumbnail { aspect-ratio: 8 / 5; width: 100%; background: #fd582b; color: #000000; margin-bottom: 7px; overflow: hidden; container-type: inline-size; }
.story-thumbnail canvas { display: block; width: 100%; height: auto; }
.thumbnail-fallback { display: flex; flex-direction: column; justify-content: space-between; padding: 5% 6.7%; aspect-ratio: 8 / 5; }
.thumbnail-fallback strong { font-size: clamp(16px, 7.6cqw, 36px); font-weight: 800; line-height: 1.18; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.thumbnail-fallback > span { font-size: clamp(10px, 3.2cqw, 15px); line-height: 1.3; }
.community-stories .story-row { display: flex; flex-direction: column; align-items: stretch; gap: 7px; height: 100%; padding: 19px 0 20px; background: transparent; }
.community-stories .story-row:hover { background: transparent; }
.community-stories .story-row:active { background: var(--canvas); }
.card-category { flex: 0 0 auto; font-size: 12px; line-height: 1.6; color: var(--accent-text); }
.row-views { color: var(--muted); font-size: 11px; line-height: 1.6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.story-card-copy { min-width: 0; }
.story-card-copy h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.55; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
.card-teaser { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.community-stories.is-list { grid-template-columns: minmax(0, 1fr); }
.is-list .story-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: start; column-gap: 12px; padding: 15px 2px; }
.is-list .card-category { padding-top: 4px; }
.is-list .row-views { padding-top: 5px; text-align: right; }
.is-list .story-card-copy h2 { font-size: 16px; line-height: 1.65; font-weight: 500; }
.is-list .card-teaser { margin-top: 3px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.community-pagination { border: 0; margin-top: 22px; padding: 0; font-size: 13px; }
.community-pagination a, .community-pagination span { min-width: 34px; min-height: 36px; border-radius: 2px; }
.community-pagination a:hover { background: var(--canvas); }
.community-list-count { text-align: center; color: var(--muted); font-size: 11px; margin: 10px 0 0; }
.community-empty { text-align: center; padding: 55px 20px; border-bottom: 1px solid var(--line); }
.community-empty h2 { font-size: 18px; font-weight: 600; }
.community-empty p, .community-empty a { font-size: 14px; line-height: 1.8; }
.community-empty p { color: var(--muted); }
.community-empty a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.community-side { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.side-box + .side-box { margin-top: 26px; }
.side-box > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 2px; }
.side-box > header > a { font-size: 11px; color: var(--muted); }
.side-box h2 { font-size: 14px; font-weight: 700; margin: 0; }
.board-directory { margin: 0; padding: 0; list-style: none; }
.board-directory a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; font-size: 13px; }
.board-directory a > span:last-child { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-directory a:hover > span:first-child { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.reading-picks { padding: 0; margin: 0; list-style: none; }
.reading-picks li + li { border-top: 1px solid var(--line); }
.reading-picks a { display: block; padding: 12px 0; }
.reading-picks h3 { font-size: 13px; font-weight: 500; line-height: 1.65; margin: 0 0 3px; word-break: keep-all; overflow-wrap: anywhere; }
.reading-picks a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.reading-picks small { font-size: 11px; color: var(--muted); }
.topic-tags { display: flex; flex-wrap: wrap; gap: 2px 12px; padding-top: 8px; }
.topic-tags a { padding-block: 5px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.topic-tags a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.board-roundup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid #b9bdc3; padding-top: 20px; margin-top: 36px; }
.board-roundup > div { min-width: 0; }
.board-roundup header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board-roundup h2 { font-size: 14px; margin: 0; }
.board-roundup header a { font-size: 11px; color: var(--muted); }
.board-roundup ul { list-style: none; margin: 10px 0 0; padding: 0; }
.board-roundup li a { display: block; padding: 7px 0; font-size: 13px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-roundup a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.community-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 16px; }
.community-footer-inner { display: flex; align-items: center; gap: 22px; font-size: 12px; color: var(--muted); }
.community-footer img { display: block; width: 76px; height: 36px; object-fit: cover; }
.community-footer-inner > a:nth-last-child(2) { margin-left: auto; }
.community-footer a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.embedded-reader .community-head, .embedded-reader .community-footer { display: none; }
@media (max-width: 960px) {
  .community-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 26px; }
  .community-side { padding-left: 20px; }
  .spotlight-copy { width: 87%; }
  .spotlight-copy { padding: 19px 20px 35px; }
  .spotlight h2 { font-size: 22px; }
  .spotlight-controls { left: 15px; }
}
@media (max-width: 760px) {
  .community-container { width: calc(100% - 36px); }
  .community-layout { grid-template-columns: minmax(0, 1fr); }
  .community-side { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .community-side > .side-box { flex: 1 1 210px; margin: 0; }
  .community-side .side-reading { display: none; }
  .spotlight-copy { width: 78%; }
  .spotlight-slides { height: 210px; }
  .spotlight h2 { font-size: 23px; }
  .board-roundup { gap: 24px; }
}
@media (max-width: 560px) {
  .topbar-inner { gap: 8px 16px; padding-block: 5px 12px; flex-wrap: wrap; min-height: 0; }
  .community-brand img { width: 104px; height: 44px; }
  .community-search { order: 3; width: 100%; height: 36px; }
  .community-search input { padding: 8px 11px; font-size: 14px; }
  .community-search button { height: 34px; }
  .community-nav { gap: 24px; }
  .community-nav a { min-height: 42px; font-size: 13px; }
  .community-nav .nav-all { font-size: 12px; }
  .community-main { margin-top: 16px; margin-bottom: 28px; }
  .spotlight { margin-bottom: 23px; }
  .spotlight-slides { height: 190px; }
  .spotlight-copy { width: 94%; }
  .spotlight-copy { padding: 15px 16px 35px; }
  .spotlight-category { font-size: 11px; margin-bottom: 6px; }
  .spotlight h2 { font-size: 19px; line-height: 1.45; }
  .spotlight-copy p { font-size: 12px; margin-top: 7px; }
  .spotlight-controls { left: 10px; bottom: 6px; }
  .community-feed-title { gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
  .community-feed-title h1 { font-size: 19px; }
  .community-feed-title h1 > span { font-size: 12px; }
  .feed-controls { margin-left: auto; gap: 9px; }
  .feed-sort { gap: 10px; font-size: 11px; }
  .view-options a { width: 28px; height: 28px; }
  .feed-tabs { gap: 22px; }
  .feed-tabs a { font-size: 13px; }
  .community-stories { column-gap: 19px; }
  .community-stories .story-row { padding-block: 16px; }
  .story-card-copy h2 { font-size: 16px; }
  .card-teaser { font-size: 12px; }
  .is-list .story-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px; padding: 12px 0 14px; }
  .is-list .row-views { grid-column: 2; grid-row: 1; padding-top: 0; }
  .is-list .story-card-copy { grid-column: 1 / -1; grid-row: 2; }
  .is-list .card-category { padding: 0; font-size: 11px; }
  .is-list .story-card-copy h2 { font-size: 16px; line-height: 1.55; font-weight: 500; }
  .is-list .card-teaser { margin-top: 4px; }
  .board-roundup { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 28px; }
  .board-roundup li a { font-size: 13px; }
  .community-footer-inner { gap: 17px; font-size: 11px; }
}
@media (max-width: 360px) {
  .community-container { width: calc(100% - 28px); }
  .spotlight h2 { font-size: 18px; }
  .spotlight-copy { padding-inline: 13px; }
  .community-stories:not(.is-list) { grid-template-columns: minmax(0, 1fr); }
}
