/* Shared website feeds: list/grid, date batches, sidebar and pagination. */
/* stylelint-disable no-descending-specificity, selector-class-pattern */
.wh-category-directory {
  padding-top: 16px;
}

.wh-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wh-category-list > li {
  min-width: 0;
  border-bottom: 1px solid var(--wh-home-line);
}

.wh-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding: 22px 16px;
  border-radius: 6px;
}

.wh-category-link:hover {
  background: rgb(242 240 231 / 55%);
}

.wh-category-name {
  display: block;
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.wh-category-count {
  display: block;
  margin-top: 6px;
  color: #767970;
  font-size: 12px;
}

.wh-category-arrow {
  color: #898c83;
  font-size: 18px;
}

@media (width <= 991.98px) {
  .wh-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}

@media (width <= 575.98px) {
  .wh-category-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wh-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 12px;
}

.wh-share a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e1e1d9;
  border-radius: 8px;
  background: #fff;
  color: #55584f;
  text-decoration: none;
}

.wh-share a:hover,
.wh-share a:focus-visible {
  border-color: #22231f;
  background: #22231f;
  color: #fff;
}

.wh-share a:focus-visible {
  outline: 3px solid #978200;
  outline-offset: 3px;
}

.wh-share svg {
  width: 17px;
  height: 17px;
}

.wh-home-body {
  --wh-home-ink: #22231f;
  --wh-home-line: #e1e1d9;

  margin: 0;
  color: var(--wh-home-ink);
  font-size: 14px;
  line-height: 1.5;
}

.wh-home-body [hidden] {
  display: none !important;
}

.wh-home-body a {
  color: inherit;
}

.wh-home-body a:hover {
  text-decoration: none;
}

.wh-home-body button,
.wh-home-body input,
.wh-home-body select {
  font: inherit;
}

.wh-home-body button,
.wh-home-body a,
.wh-home-body input,
.wh-home-body select {
  -webkit-tap-highlight-color: transparent;
}

.wh-home-body :focus-visible {
  outline: 3px solid #978200;
  outline-offset: 4px;
}

.wh-home-main {
  padding-top: 8px;
  padding-bottom: 12px;
}

.wh-home-feed-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 650;
}

.wh-home-date-title {
  margin: 20px 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.wh-home-daily-loader {
  padding: 24px 0;
  text-align: center;
}

.wh-home-main h1,
.wh-home-main h2,
.wh-home-main h3 {
  color: inherit;
}

.wh-home-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 40px;
  align-items: start;
}

.wh-home-two-column > * {
  min-width: 0;
}

.wh-home-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}

.wh-home-search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--wh-home-line);
  border-radius: 5px;
  padding: 9px 12px;
  background: #fff;
}

.wh-home-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.wh-home-search input:focus {
  outline: 0;
}

.wh-home-search:focus-within {
  outline: 2px solid #978200;
  outline-offset: 2px;
}

.wh-home-sort {
  margin: 0;
}

.wh-home-sort select {
  width: 116px;
  border: 0;
  padding: 9px 2px;
  background: transparent;
  color: #55584f;
  font-size: 12px;
  cursor: pointer;
}

.wh-home-row {
  display: flex;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--wh-home-line);
  padding: 22px 14px;
}

.wh-home-row:hover {
  background: rgb(242 240 231 / 55%);
}

.wh-home-logo {
  position: relative;
  display: grid;
  flex: 0 0 50px;
  place-items: center;
  overflow: hidden;
  width: 50px;
  height: 50px;
  border: 1px solid rgb(0 0 0 / 6%);
  border-radius: 11px;
  background: #e8ece3;
  color: #3e5147;
  font-size: 16px;
  font-weight: 700;
}

.wh-home-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.wh-home-site-copy {
  min-width: 0;
  flex: 1;
}

.wh-home-site-title {
  margin: 0 0 8px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 18px;
  font-weight: 650;
}

.wh-home-site-title > a:first-child {
  overflow-wrap: anywhere;
}

.wh-home-site-copy p {
  margin: 0 0 7px;
  color: #63665e;
  font-size: 13px;
}

.wh-home-external {
  flex-shrink: 0;
  color: #898c83 !important;
  font-size: 13px;
  font-weight: 400;
}

.wh-home-meta {
  display: block;
  color: #767970;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.wh-home-meta > span {
  padding: 0 5px;
}

.wh-home-sidebar {
  display: grid;
  gap: 12px;
  font-size: 16px;
}

.wh-home-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.wh-home-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e5eadf;
  color: #304331 !important;
}

.wh-home-visual > .wh-home-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 180ms ease;
}

.wh-home-visual:hover img {
  transform: scale(1.025);
}

@media (width <= 1199.98px) {
  .wh-home-two-column {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
  }
}

@media (width <= 991.98px) {
  .wh-home-two-column {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .wh-home-view-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (width <= 767.98px) {
  .wh-home-two-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .wh-home-row {
    gap: 12px;
    padding: 20px 10px;
  }

  .wh-home-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 9px;
  }

  .wh-home-site-title {
    font-size: 16px;
  }

  .wh-home-site-copy p {
    font-size: 12px;
  }

  .wh-home-meta {
    font-size: 9px;
  }

  .wh-home-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
}

@media (width <= 449.98px) {
  .wh-home-view-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wh-home-visual > .wh-home-screenshot {
    transition: none;
  }
}

/* Shared sidebar and pagination. */
.wh-home-pagination {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--wh-home-line);
}

.wh-home-page-footer {
  padding-bottom: 24px;
}

.wh-home-view-toggle {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  border: 1px solid var(--wh-home-line);
  border-radius: 6px;
  padding: 3px;
  background: #fff;
}

.wh-home-view-toggle a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #767970;
  cursor: pointer;
}

.wh-home-view-toggle a[aria-current="true"] {
  background: var(--wh-home-ink);
  color: #fff;
}

.wh-home-switchable-list:not(.wh-home-view-grid)
  > .wh-home-row
  > .wh-home-visual {
  display: none;
}

.wh-home-view-grid > .wh-home-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  align-content: start;
  gap: 18px 12px;
  overflow: hidden;
  border: 1px solid var(--wh-home-line);
  border-radius: 9px;
  padding: 0 18px 18px;
  background: #fff;
}

.wh-home-view-grid > .wh-home-row > .wh-home-visual {
  width: calc(100% + 36px);
  grid-column: 1 / -1;
  margin: 0 -18px;
}

.wh-home-view-grid > .wh-home-row > .wh-home-logo {
  display: none;
}

.wh-home-view-grid .wh-home-site-title {
  font-size: 19px;
  line-height: 1.2;
}

.wh-home-view-grid .wh-home-site-copy p {
  margin-top: 10px;
  font-size: 12px;
}

@media (width <= 767.98px) {
  .wh-home-body .wh-home-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wh-home-body .wh-home-search {
    flex-basis: 100%;
  }

  .wh-home-body .wh-home-view-toggle {
    margin-left: auto;
  }
}

.wh-home-search button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.wh-home-vote {
  flex-shrink: 0;
}

.wh-home-vote form {
  margin: 0;
}

.wh-home-vote .upvotes-container {
  min-width: 42px;
  min-height: 48px;
  justify-content: center;
  border: 1px solid #dddfd6;
  border-radius: 6px;
  color: #62665a;
  box-shadow: none;
}

.wh-home-vote .upvotes-container:hover {
  background: #f3efd2 !important;
  border-color: #b7ad69;
}

.wh-home-view-grid .wh-home-vote .upvotes-container {
  min-width: 33px;
  min-height: 40px;
}

.wh-home-sidebar img {
  object-fit: contain;
}

.wh-home-view-grid > .text-muted {
  grid-column: 1 / -1;
}

.wh-home-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wh-home-page-link,
.wh-home-page-gap {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.wh-home-page-gap {
  min-width: 20px;
  color: #767970;
}

.wh-home-page-link[href]:hover {
  background: #eaece5;
}

.wh-home-page-link[aria-current="page"] {
  background: var(--wh-home-ink);
  color: #fff;
}

.wh-home-page-link[aria-disabled="true"] {
  color: #bbbeb5;
}

.wh-home-featured {
  width: 100%;
  min-width: 0;
  padding-top: 16px;
}

.wh-home-featured > h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.wh-home-row--sidebar {
  align-items: start;
  gap: 12px;
  padding: 18px 10px;
}

.wh-home-row--sidebar .wh-home-logo {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 9px;
}

.wh-home-row--sidebar .wh-home-site-title {
  margin-bottom: 6px;
  font-size: 15px;
}

.wh-home-row--sidebar .wh-home-site-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.wh-home-row--sidebar .badge {
  display: table;
  margin-top: 7px;
  margin-left: 0 !important;
}

.wh-home-featured-link {
  display: block;
  padding-top: 14px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}

@media (width <= 449.98px) {
  .wh-home-pages {
    gap: 3px;
  }

  .wh-home-page-link {
    min-width: 32px;
  }

  .wh-home-page-gap {
    min-width: 14px;
  }
}
