/* =========================================================
   GRID (nav tiles + search results, etc.)
   ========================================================= */

#grid_container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
}
#grid_container a {
  text-decoration: none;
  color: #000;
}
#grid_container .item {
  flex: auto;
  width: 40%;
  text-align: center;
  background-color: #fff;
  border-radius: 1rem;
  border: 0.2rem solid;
  padding: 1rem;
  margin: 0.3rem;
  box-sizing: border-box;
}
#grid_container .title {
  font-size: 2.2rem;
  line-height: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
#grid_container .title_category {
  text-align: left;
  margin-bottom: 0.5rem;
}
#grid_container .title_category a {
  text-align: left;
  font-size: 2.2rem;
  font-weight: 600;
}
#grid_container .tool_count {
  font-size: 1.4rem;
  color: #666;
}
#grid_container .board {
  border-radius: 0;
  border: 0.2rem solid;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* Nav tile title inside full-card link */
#grid_container .title_category {
  margin-bottom: 0.8rem;
  text-align: center;
}
#grid_container .title_category {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
}

/* tool count under title */
#grid_container .tool_count {
  margin-top: 0.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #666;
}

/* =========================================================
   PANEL LIST (category rows)
   ========================================================= */

.panel_list {
  width: 100%;
  margin: 0 auto;
  padding: 0; /* gutter is handled by #middle_column */
  box-sizing: border-box;
}
.panel_row {
  margin-bottom: 0.8rem;
}
.panel_row_link {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  border: 0.2rem solid #000;
  border-radius: 1.4rem;
  text-decoration: none;
  background: #fff;
  box-sizing: border-box;
}
.panel_row_thumb {
  flex: 0 0 11rem;
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel_row_thumb img {
  width: 11rem;
  height: 11rem;
  object-fit: cover;
  border-radius: 0.8rem;
  display: block;
}
.panel_row_content {
  display: flex;
  flex-direction: column;
}
.panel_row_title {
  margin: 0;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.05;
  color: #000;
}
.panel_row_excerpt {
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

/* =========================================================
   SEARCH PANEL (canonical)
   ========================================================= */

.search-panel {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}
.search-panel .final-search-form {
  display: flex;
  justify-content: center;
  margin: 0;
}
.search-panel .input-group {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 4px;
}
.search-panel .search-input, .search-panel .search-button {
  height: 42px;
  font-family: inherit;
  font-size: 2rem;
  line-height: 1.2;
  padding: 10px 12px;
  border: 2px solid #0080FF;
  box-sizing: border-box;
  margin: 0;
}
.search-panel .search-input {
  width: 300px;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  background: #fff;
}
.search-panel .search-button {
  border-left: none;
  border-radius: 0 4px 4px 0;
  background-color: #0080FF;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.search-panel .search-button::-moz-focus-inner {
  border: 0;
  padding: 0;
}
@media (max-width:768px) {
  .search-panel {
    margin: 24px 0;
  }
  .search-panel .search-input {
    width: 70%;
  }
}

/* =========================================================
   DISCOVERY MEDIA QUERIES (grid)
   ========================================================= */

@media all and (min-width:35em) {
  #grid_container .item {
    width: 30%;
    padding: 1.5rem;
  }
}
@media all and (min-width:50em) {
  #grid_container a {
    font-size: 1.4rem;
    line-height: 1.6rem;
  }
  #grid_container .item {
    width: 20%;
  }
}
