/* Navigation, search and reading surfaces for the forum and home feed. */
.v61-design .main .v290-forum-header {
  display: flex;
  align-items: center;
  gap: .65rem 1rem;
  margin-block: .25rem .9rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.v61-design .main .v290-forum-header h1 {
  font-size: clamp(1.6rem, 2.3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.v61-design .main .v290-forum-header p { margin-block: .4rem 0; font-size: .9rem; }

.v290-forum-header :is(.primary-btn,.secondary-btn) {
  align-items: center;
  gap: .45rem;
}

.v111-design .main .v39-tabs.v290-forum-tabs {
  display: flex;
  inline-size: 100%;
  max-inline-size: 100%;
  flex-wrap: wrap;
  gap: .15rem .35rem;
  margin: 0 0 .75rem;
  padding: 0;
  overflow: visible;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

.v111-design .main .v39-tabs.v290-forum-tabs > a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-inline-size: 100%;
  padding: .55rem .8rem;
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: .45rem .45rem 0 0;
  background: none;
  color: var(--muted);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.v111-design .main .v39-tabs.v290-forum-tabs > a[aria-current="page"] {
  border-block-end-color: var(--accent);
  color: var(--ink);
  background: transparent;
}

.v290-forum-tabs a:focus-visible { outline-offset: -3px; }

.v61-design .v190-forum-results > .v190-feed-toolbar {
  gap: .45rem 1rem;
  margin-block: 0 .65rem;
}

.v190-feed-toolbar .v110-list-controls {
  flex-wrap: wrap;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.v190-feed-toolbar .v110-list-controls > details { flex: 0 1 auto; }
.v190-feed-toolbar .v110-list-controls > details[open]:not([data-v61-mode]) { flex-basis: 100%; }

.v290-forum-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 12rem;
  min-inline-size: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
}

.v290-forum-search input {
  flex: 1 1 auto;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
  margin: 0;
  padding-inline: .7rem .2rem;
  border: 0;
  border-radius: .65rem 0 0 .65rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.v290-forum-search :is(input,button):focus-visible { outline-offset: -3px; }

.v61-design .v290-forum-search button {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  min-inline-size: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 .65rem .65rem 0;
  background: transparent;
}

.v61-design .v290-forum-search button:is(:hover,:focus-visible) { background: var(--panel2); }

.v61-design .v280-forum-list .v110-topic-row:first-child:last-child { border-radius: 13px; }
.v61-design .v280-forum-list .v110-topic-row .feed-row-title { overflow-wrap: anywhere; }

.v280-forum-discussion .v290-thread-header { padding-block-end: .2rem; }

.v290-thread-header .v190-thread-breadcrumb {
  gap: .25rem .45rem;
}

.v290-thread-header .v190-thread-breadcrumb a {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.v290-thread-header .v190-thread-command > details[open]:not([data-v61-mode]) {
  flex-basis: 100%;
}

.v290-thread-header .v190-thread-command > details > summary {
  display: inline-flex;
  gap: .4rem;
  min-inline-size: 44px;
  padding-inline: .7rem;
  font-size: .84rem;
}

.v280-topic-rail .v280-topic-rail-meta > time::before { content: none; }

.main .v290-feed {
  inline-size: 100%;
  max-inline-size: 76rem;
}

.v290-feed-layout,
.v290-feed-results,
.v290-feed-community {
  display: grid;
  align-content: start;
  gap: .85rem;
  min-inline-size: 0;
}

.v290-feed-results > .v280-feed-pager { margin: 0; }

.main .v290-feed-community-links {
  margin: 0;
  padding: .8rem;
  border-radius: var(--v200-radius, .8rem);
}

.v290-feed-community-links h2 {
  margin: .15rem .35rem .45rem;
  font-size: 1rem;
}

.v290-feed-community-links nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .1rem;
}

.v290-feed-community-links a {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-inline-size: 0;
  min-block-size: 44px;
  padding-inline: .5rem;
  border-radius: .45rem;
  overflow-wrap: anywhere;
}

.v290-feed-community-links a > svg { flex: 0 0 1.15rem; }
.v290-feed-community-links a:is(:hover,:focus-visible) { background: var(--panel2); }
.v290-feed-community .v200-feed-discovery { margin-block-end: 0; }

.main .v290-feed .v280-feed-heading {
  padding-block-end: .6rem;
  border-block-end: 1px solid var(--line);
}

.v290-feed .v280-feed-tabs > a {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.v290-feed .v280-feed-tabs > a[aria-current="page"] {
  background: var(--v61-tint);
  color: var(--ink);
}

.v290-feed .v280-feed-tools .v61-disclosure > .v61-trigger {
  justify-content: center;
  gap: .35rem;
  inline-size: auto;
  min-inline-size: 44px;
  padding-inline: .65rem;
  font-size: .83rem;
}

.v290-feed .v280-feed-tools .v61-disclosure > .v61-trigger > span {
  position: static;
  inline-size: auto;
  block-size: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
}

@media (min-width: 1000px) {
  .v290-feed-layout-community { grid-template-columns: minmax(14rem, 24%) minmax(0, 1fr); }
  .v290-feed-community .v200-feed-discovery:has(> .v110-story-strip + .v110-live-strip) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .v61-design .main .v290-forum-header > div:first-child { flex-basis: auto; }
  .v190-feed-toolbar .v190-feed-title { order: 1; }
  .v190-feed-toolbar .v190-feed-title .v190-topic-count { margin: 0; }
  .v61-design .main .v290-forum-header h1 { line-height: 1.15; }
  .v111-design .main .v39-tabs.v290-forum-tabs > a {
    flex: 1 1 auto;
    padding-inline: .3rem;
    font-size: .8rem;
  }

  .v190-feed-toolbar .v110-list-controls { flex: 1 1 100%; }
  .v290-forum-search { flex-basis: 10rem; }
  .v290-forum-search input { font-size: .94rem; }
  .v61-design .v190-feed-toolbar .v110-list-controls { gap: .5rem; }

  .v290-feed .v280-feed-toolbar {
    justify-content: space-between;
    gap: .25rem .45rem;
  }

  .v290-feed .v280-feed-tabs a { padding-inline: .4rem; }
  .v290-feed .v280-feed-tools { margin-inline-start: 0; }
  .main .v290-feed-community-links { padding: .3rem; }
  .v290-feed-community-links h2 { margin-block-end: 0; }
  .v290-feed-community-links nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v290-feed-community-links a {
    justify-content: center;
    padding-inline: .2rem;
    font-size: .82rem;
  }
  .v290-feed-community-links a > svg { display: none; }
}

@media (max-width: 350px) {
  .v290-feed .v280-feed-tools { flex-basis: 100%; }
  .v290-thread-header .v190-thread-command > details > summary { padding-inline: .45rem; }
}
