.wrapper {
  width: 100%;
}

.content {
  height: 100%;
  margin: auto;
  text-align: left;
  width: 750px;
  min-width: 750px;
}

.box {
  position: relative;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  border: 1px solid;
}

.boxBar {
  padding-left: 0.5em;
  line-height: 2em;
  text-transform: capitalize;
}

.boxBar h2 {
  font-size: 131%;
  font-weight: 700;
}

.boxContent {
  line-height: 1.5em;
  font-size: 93%;
  padding: 0.5em;
  padding-top: 0.25em;
  padding-bottom: 0;
  color: #000;
}

.infoBox {
  background: var(--homepage-box-background-color);
  color: var(--homepage-infobox-text-color);
  border: 1px solid var(--homepage-box-border-color);
}

.infoBox .boxBar {
  background: var(--homepage-box-bar-background-color);
  color: var(--homepage-box-bar-text-color);
}

.selectorBox {
  background: #efe;
  color: #060;
}

.selectorBox .boxBar {
  background: #9c6;
  color: #060;
}

.selectorRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.customAddressForm {
  display: flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
}

.addressInput {
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid #aaa;
  border-radius: 0;
  min-width: 200px;
  box-sizing: border-box;
}

.addressInput:focus {
  border-color: #ea8;
  outline: none;
}

/* Match homepage search "Go" button (home.module.css .searchButton). */
.goButton {
  padding: 3px 5px;
  font-size: 14px;
  display: inline-block;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  box-sizing: border-box;
}

.columns {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.leftColumn {
  flex: 0 0 29.9%;
  width: 29.9%;
  min-width: 0;
}

.rightColumn {
  flex: 1 1 auto;
  min-width: 0;
}

/*
 * Green sidebar (4chan .left-box) — rules.2.css + global .boxcontent.
 * Same 93% font, 1.5em line-height, and .5em padding as other boxes (.boxContent).
 */
.selectorBox .boxContent > .directoryNav > ul {
  color: #060;
}

.selectorBox .directoryNav ul {
  margin: 1em;
  padding-left: 0;
  list-style: disc outside;
}

/* 4chan: div ul { margin-left: 2em } — top list under boxcontent */
.selectorBox .directoryNav > ul {
  margin-left: 2em;
}

/* 4chan: li ul { margin-left: 1em; margin-top: 0 } */
.selectorBox .directoryNav li ul {
  margin-left: 1em;
  margin-top: 0;
}

/* 4chan: li li ul { margin-bottom: .5em } */
.selectorBox .directoryNav li li ul {
  margin-bottom: 0.5em;
}

.selectorBox .directoryNav li {
  margin: 0;
  line-height: inherit;
}

.selectorBox .directoryNav a {
  color: #00e;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.selectorBox .directoryNavHeader {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #00e;
  text-decoration: underline;
  cursor: pointer;
}

.directoryTitle {
  font-size: 100%;
  font-weight: 700;
  color: #006;
  margin: 0 0 5px;
}

.directoryDivider {
  border: 0;
  height: 1px;
  /* Match the rules box border color (#006, the rulesBox currentColor), like 4chan's <hr>. */
  background: #006;
  margin: 0 0 1em;
}

.rulesBox {
  background: #eff;
  color: #006;
}

.rulesBox .boxBar {
  background: #59a;
  color: #fff;
}

/* 4chan's .right-box ol overrides only top + left of the base 1em margin (bottom/right stay 1em). */
.box ol {
  margin: 0.5em 1em 1em 2.5em;
}

/* No per-item spacing: line height drives the gap. 1.5 matches 4chan's rule list exactly. */
.box ol li {
  list-style: decimal outside;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .content {
    min-width: 0;
    width: auto;
    padding: 10px;
  }

  .selectorRow {
    flex-direction: column;
    align-items: stretch;
  }

  .addressInput {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Keep the input and button on one row on mobile instead of stacking them. */
  .customAddressForm {
    width: 100%;
    box-sizing: border-box;
  }

  .goButton {
    flex: 0 0 auto;
  }

  .columns {
    flex-direction: column;
  }

  .leftColumn {
    flex: none;
    width: 100%;
  }

  /* Mobile: tighter list margins + left inset (font size stays same as desktop .boxContent) */
  .leftColumn .selectorBox .boxContent {
    line-height: 130%;
    padding: 0.25em 0.5em 0 10px;
  }

  .leftColumn .selectorBox .directoryNav ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: disc outside;
  }

  .leftColumn .selectorBox .directoryNav > ul {
    margin-left: 0;
  }

  .leftColumn .selectorBox .directoryNav li ul {
    margin-left: 0;
    margin-top: 0;
    padding-left: 1em;
  }

  .leftColumn .selectorBox .directoryNav li {
    padding: 5px 10px 5px 0;
  }
}

.selectorBoxTitle, .rulesBoxTitle {
  text-transform: none;
}