* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #abc5dc;
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
}




.misc-page {
  width: min(1050px, calc(100% - 50px));
  margin: 0 auto;
  padding: 55px 0 70px;

  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 45px;
}



.highlight {
  display: inline;
  padding: 1px 5px 2px;
  background: #f5dce4;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}




.misc-sidebar {
  width: 190px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 12px;

  border: 1px dashed #f5dce4;
  background: transparent;
  color: #111111;

  font-size: 0.95rem;
  text-decoration: none;
}

.back-link:visited {
  color: #111111;
}

.back-link:hover,
.back-link:focus-visible {
  background: #f5dce4;
}




.sidebar-box {
  width: 190px;
  padding: 16px;

  border: 1px dashed #f5dce4;
  background: transparent;
}

.sidebar-box h1 {
  margin: 0 0 14px;

  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.08em;
}

.misc-subtitle {
  margin: 0 0 18px;

  font-size: 0.88rem;
  line-height: 1.5;
  font-style: italic;
}

.filter-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.filter-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #111111;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;

  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.misc-card.hidden-card {
  display: none;
}




.misc-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}




.misc-card {
  width: 100%;
  padding: 16px 20px;

  border: 1px dashed #f5dce4;
  background: transparent;
}

.misc-card h2 {
  margin: 0 0 12px;

  font-size: 1.1rem;
  font-weight: normal;
}

.category {
  margin-left: 6px;

  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.8;
}

.misc-card p {
  margin: 0;

  font-size: 0.95rem;
  line-height: 1.65;
}




@media (max-width: 760px) {
  .misc-page {
    width: min(680px, calc(100% - 36px));
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 30px;
  }

  .misc-sidebar,
  .sidebar-box {
    width: 160px;
  }
}




@media (max-width: 580px) {
  .misc-page {
    width: min(520px, calc(100% - 30px));
    padding: 30px 0 50px;

    grid-template-columns: 1fr;
    gap: 30px;
  }

  .misc-sidebar,
  .sidebar-box {
    width: 100%;
  }

  .back-link {
    margin-bottom: 18px;
  }

  .filter-nav {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 22px;
}

  .misc-content {
    gap: 18px;
  }
}