:root {
  --category-primary: #d31745;
  --category-ink: #171716;
  --category-muted: #626871;
  --category-line: #d5d9dc;
  --category-paper: #fff;
  --category-height: min(780px, calc(100svh - 28px));
}

.category-main {
  min-height: 100svh;
  padding: 14px 0;
}

.category-spread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(calc(100vw - 20px), 1280px);
  height: var(--category-height);
  margin-inline: auto;
  overflow: hidden;
  background: var(--category-paper);
  box-shadow: 0 18px 40px rgba(22, 22, 22, 0.16), 0 2px 8px rgba(22, 22, 22, 0.1);
}

.category-spread::after {
  content: "";
  position: absolute;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 24px;
  pointer-events: none;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(29, 36, 42, 0.09), rgba(29, 36, 42, 0.03), transparent);
}

.category-cover,
.category-archive {
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--category-paper);
}

.category-cover {
  display: grid;
  grid-template-rows: 86px 30px minmax(0, 1fr) 22px;
  padding: 0 24px 12px;
  overflow: hidden;
}

.category-cover__content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  padding: 18px 0 12px;
}

.category-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 18px;
  align-items: end;
}

.category-heading > p:first-child {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--category-primary);
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.7rem;
  line-height: 0.88;
}

.category-heading > p:last-child {
  max-width: 37ch;
  margin: 0 0 3px;
  color: #596169;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  line-height: 1.25;
}

.category-lead {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-top: 2px solid var(--category-ink);
}

.category-lead__copy {
  padding: 10px 0 11px;
}

.category-lead__copy > p:first-child {
  margin: 0 0 4px;
  color: var(--category-primary);
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-lead__copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 0.96;
}

.category-lead__copy > p:last-child {
  margin: 6px 0 0;
  color: #596169;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  line-height: 1.25;
}

.category-lead__image {
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #deded8;
}

.category-lead__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.category-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--category-line);
}

.category-secondary article {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.category-secondary article > a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.category-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-secondary p {
  margin: 0 0 4px;
  color: var(--category-primary);
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-secondary h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.02;
}

.category-cover__footer {
  align-self: end;
  margin: 0;
  color: #737a81;
  font-size: 0.46rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.category-cover__footer span {
  margin-inline: 5px;
}

.category-archive {
  border-left: 1px solid var(--category-line);
  background: #f7f8f9;
}

.category-archive__scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--category-primary) #e3e6e8;
  scrollbar-width: thin;
}

.category-archive__scroll::-webkit-scrollbar {
  width: 7px;
}

.category-archive__scroll::-webkit-scrollbar-track {
  background: #e3e6e8;
}

.category-archive__scroll::-webkit-scrollbar-thumb {
  background: var(--category-primary);
}

.category-archive__header {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  padding: 24px 28px 18px;
  background: #fff;
}

.category-archive__header p {
  margin: 0;
  color: var(--category-primary);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-archive__header h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.category-archive__header > span {
  color: #727980;
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-filters {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-width: max-content;
  min-height: 42px;
  overflow-x: auto;
  border-top: 1px solid var(--category-line);
  border-bottom: 1px solid var(--category-line);
  background: rgba(255, 255, 255, 0.97);
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-filters :is(button, a) {
  position: relative;
  display: grid;
  flex: 1 0 86px;
  place-items: center;
  min-width: 86px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #626a72;
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.category-filters :is(button, a)::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 3px;
  background: transparent;
}

.category-filters :is(button, a).is-active {
  color: var(--category-primary);
}

.category-filters :is(button, a).is-active::after {
  background: var(--category-primary);
}

.category-feed {
  display: grid;
  gap: 24px;
  padding: 24px 28px;
}

.category-card-slot {
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}

.category-page .collaborator-card {
  display: grid;
  grid-template-rows: 17.23cqi 17.06cqi 58.88cqi 13.6cqi;
  gap: 2.31cqi;
  box-sizing: border-box;
  width: 100%;
  height: 120.79cqi;
  padding: 2.97cqi 3.3cqi 3.3cqi;
  overflow: hidden;
  border: 1px solid #aeb4b9;
  background: #fff;
  color: #171a1d;
}

.category-page .collaborator-card__header {
  display: grid;
  grid-template-columns: 14.52cqi minmax(0, 1fr) auto;
  gap: 2.31cqi;
  align-items: center;
  height: 100%;
  min-width: 0;
  padding-bottom: 2.31cqi;
  border-bottom: 1px solid #c9cdd1;
}

.category-page .collaborator-card__avatar {
  display: block;
  width: 14.52cqi;
  height: 14.52cqi;
  overflow: hidden;
  border: 0.45cqi solid #171a1d;
  border-radius: 50%;
  background: #eef0f2;
}

.category-page .collaborator-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-page .collaborator-card__identity {
  min-width: 0;
}

.category-page .collaborator-card__name {
  display: flex;
  gap: 1.98cqi;
  align-items: center;
  min-width: 0;
}

.category-page .collaborator-card__name > p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.12cqi;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-page .collaborator-card__verified {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 5.94cqi;
  height: 5.94cqi;
  border-radius: 50%;
  background: var(--category-primary);
  color: #fff;
  font-size: 3.2cqi;
  font-weight: 900;
}

.category-page .collaborator-card__identity > p {
  margin: 1.65cqi 0 0;
  overflow: hidden;
  color: #596169;
  font-size: 2.43cqi;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-page .collaborator-card__identity > p span,
.category-page .collaborator-card__identity > p time {
  color: inherit;
}

.category-page .collaborator-card__identity > p i {
  margin-inline: 0.75cqi;
  color: var(--category-primary);
  font-style: normal;
}

.category-page .collaborator-card__actions {
  display: flex;
  align-items: center;
}

.category-page .collaborator-card__save,
.category-page .collaborator-card__more > summary {
  display: grid;
  place-items: center;
  width: 9.24cqi;
  height: 9.24cqi;
  padding: 0;
  border: 0;
  background: transparent;
  color: #171a1d;
  cursor: pointer;
}

.category-page .collaborator-card__save svg {
  width: 7.92cqi;
  height: 7.92cqi;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.category-page .collaborator-card__save[aria-pressed="true"] {
  color: var(--category-primary);
}

.category-page .collaborator-card__save[aria-pressed="true"] svg {
  fill: currentColor;
}

.category-page .collaborator-card__more {
  position: relative;
}

.category-page .collaborator-card__more > summary {
  display: flex;
  gap: 0.99cqi;
  list-style: none;
}

.category-page .collaborator-card__more > summary::-webkit-details-marker {
  display: none;
}

.category-page .collaborator-card__more > summary i {
  width: 1.32cqi;
  height: 1.32cqi;
  border-radius: 50%;
  background: currentColor;
}

.category-page .collaborator-card__more > div {
  position: absolute;
  z-index: 12;
  top: 9.24cqi;
  right: 0;
  display: grid;
  width: max(112px, 31cqi);
  border: 1px solid #c9cdd1;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 24, 28, 0.14);
}

.category-page .collaborator-card__more > div > * {
  width: 100%;
  padding: max(7px, 2.2cqi);
  border: 0;
  background: #fff;
  color: #171a1d;
  font-size: max(9px, 2.3cqi);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.category-page .collaborator-card__more > div > * + * {
  border-top: 1px solid #e1e4e7;
}

.category-page .collaborator-card__title {
  display: block;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8.71cqi;
  font-weight: 900;
  line-height: 0.96;
}

.category-page .collaborator-card__media {
  position: relative;
  display: grid;
  grid-template-rows: 48.18cqi 9.87cqi;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #c9cdd1;
  background: #eef0f2;
}

.category-page .collaborator-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.category-page .collaborator-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-page .collaborator-card__media figcaption {
  display: -webkit-box;
  padding: 1.65cqi 2.31cqi;
  overflow: hidden;
  background: #fff;
  color: #454b51;
  font-size: 2.53cqi;
  line-height: 1.3;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-page .collaborator-card__category {
  position: absolute;
  top: 2.64cqi;
  right: 0;
  padding: 1.65cqi 2.64cqi;
  background: #171a1d;
  color: #fff;
  font-size: 2.64cqi;
  font-weight: 900;
  text-transform: uppercase;
}

.category-page .collaborator-card__footer {
  display: grid;
  grid-template-columns: auto 9.24cqi minmax(0, 1fr);
  gap: 2.31cqi;
  align-items: center;
  height: 100%;
  min-height: 0;
  padding-top: 1.98cqi;
  border-top: 1px solid #c9cdd1;
}

.category-page .collaborator-card__reactions {
  display: flex;
  gap: 3.96cqi;
  color: #444b52;
  font-size: 3.27cqi;
  font-weight: 800;
}

.category-page [data-reaction] {
  display: inline-flex;
  gap: 1.32cqi;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.category-page [data-reaction] b {
  color: var(--category-primary);
  font-size: 4.75cqi;
  opacity: 0.62;
}

.category-page [data-reaction="surprise"] b {
  color: initial;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.category-page [data-reaction].is-active b {
  opacity: 1;
  transform: scale(1.1);
}

.category-page .collaborator-card__share {
  display: grid;
  place-items: center;
  width: 9.24cqi;
  height: 9.24cqi;
  padding: 0;
  border: 0;
  background: transparent;
  color: #171a1d;
  cursor: pointer;
}

.category-page .collaborator-card__share svg {
  width: 7.26cqi;
  height: 7.26cqi;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.category-page .collaborator-card__read {
  justify-self: end;
  font-size: 2.64cqi;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-page .collaborator-card__read span {
  margin-left: 1.65cqi;
  font-size: 5.28cqi;
}

.category-load-more {
  display: block;
  width: calc(100% - 56px);
  min-height: 46px;
  margin: 0 28px 28px;
  border: 1px solid var(--category-ink);
  border-radius: 4px;
  background: var(--category-ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.category-load-more:hover,
.category-load-more:focus-visible {
  border-color: var(--category-primary);
  background: var(--category-primary);
}

.category-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 20px 28px;
  border-top: 1px solid var(--category-line);
  color: #737a81;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.category-footer a {
  color: var(--category-primary);
}

.category-share-menu[hidden] {
  display: none;
}

.category-share-menu {
  position: fixed;
  z-index: 2500;
  display: grid;
  grid-template-columns: repeat(4, 48px);
  gap: 7px;
  width: 239px;
  padding: 10px;
  border: 1px solid #c9cdd1;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 24, 28, 0.2);
}

.category-share-menu > * {
  display: grid;
  grid-template-rows: 30px 12px;
  gap: 4px;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #171a1d;
  font-size: 0.5rem;
  font-weight: 700;
  cursor: pointer;
}

.category-share-menu b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #555b61;
  color: #fff;
  font-size: 0.72rem;
}

.category-share-menu [data-share-service="whatsapp"] b {
  background: #168c45;
}

.category-share-menu [data-share-service="facebook"] b {
  background: #1769aa;
  font-size: 1rem;
}

.category-share-menu [data-share-service="x"] b {
  background: #111;
}

@media (min-width: 1300px) {
  .category-cover__content {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .category-heading {
    display: none;
  }
}

@media (max-width: 1299.98px) {
  .category-main {
    min-height: 0;
    padding: 0 0 28px;
  }

  .category-spread {
    display: block;
    width: min(100%, 720px);
    height: auto;
    overflow: visible;
  }

  .category-spread::after {
    display: none;
  }

  .category-cover {
    grid-template-rows: 106px 30px auto;
    height: auto;
    padding-bottom: 0;
    overflow: visible;
  }

  .category-cover__content {
    grid-template-rows: auto auto auto;
    padding: 28px 0 26px;
  }

  .category-heading h1 {
    font-size: 4.25rem;
  }

  .category-lead {
    grid-template-rows: auto 340px;
  }

  .category-lead__copy h2 {
    font-size: 2rem;
  }

  .category-secondary article {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .category-secondary h2 {
    font-size: 1.15rem;
  }

  .category-cover__footer {
    display: none;
  }

  .category-archive {
    height: auto;
    border-left: 0;
  }

  .category-archive__scroll {
    height: auto;
    overflow: visible;
  }

  .category-filters {
    position: static;
    width: 100%;
    min-width: 0;
  }

  .category-feed {
    background: #f2f3f4;
  }
}

@media (max-width: 599.98px) {
  .category-cover {
    grid-template-rows: 100px 30px auto;
    padding-inline: 16px;
  }

  .category-cover__content {
    padding-top: 24px;
  }

  .category-heading {
    grid-template-columns: 1fr;
  }

  .category-heading h1 {
    font-size: 3.15rem;
  }

  .category-heading > p:last-child {
    margin-top: 5px;
  }

  .category-lead {
    grid-template-rows: auto 230px;
  }

  .category-lead__copy h2 {
    font-size: 1.58rem;
  }

  .category-secondary {
    grid-template-columns: 1fr;
  }

  .category-secondary article {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .category-archive__header {
    padding: 22px 16px 16px;
  }

  .category-archive__header h2 {
    font-size: 1.65rem;
  }

  .category-feed {
    gap: 24px;
    padding: 24px 10px;
  }

  .category-load-more {
    width: calc(100% - 20px);
    margin: 0 10px 24px;
  }

  .category-footer {
    flex-wrap: wrap;
    padding-inline: 16px;
  }
}

@media (max-width: 359.98px) {
  .category-lead {
    grid-template-rows: auto 205px;
  }

  .category-archive__header > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
