/* ============================================================
   Usenet Glossary
   Page-scoped: loaded only by Glossary templates via
   $this->Html->css('glossary', ['block' => 'css']), which the
   layout emits after the shared stylesheet array.
   ============================================================ */

.glossary-breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 20px;
  font-size: 13px;
}

.glossary-aliases {
  color: #777;
  font-size: 14px;
  margin-bottom: 18px;
}

/* Reference copy is read, not skimmed, so it runs larger than the
   site default of 14px/300. Scoped so no other page shifts. */
.glossary-definition {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 28px;
}

.glossary-extended {
  font-size: 16px;
  line-height: 1.65;
}

.glossary-extended p,
.glossary-extended li {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

/* style.css sets h2 { letter-spacing: -2px } (-3px >=1200px), which suits its
   native 30-50px sizes but is far too tight at the 22px used here. */
.glossary-extended h2 {
  font-size: 22px;
  letter-spacing: normal;
  margin-top: 34px;
  margin-bottom: 14px;
}

.glossary-extended ul,
.glossary-extended ol {
  margin-bottom: 20px;
  padding-left: 22px;
}

.glossary-extended li {
  margin-bottom: 8px;
}

.glossary-extended code {
  font-size: 14px;
  background: #f4f6f8;
  color: #444;
  padding: 2px 5px;
  border-radius: 3px;
}

/* ---- FAQs ---- */

.glossary-faq {
  margin-top: 40px;
}

.glossary-faq h2,
.glossary-related h2 {
  font-size: 22px;
  letter-spacing: normal;
  margin-bottom: 18px;
}

.glossary-faq .panel-title {
  font-size: 15px;
  margin: 0;
}

.glossary-faq .panel-title > a {
  display: block;
  text-decoration: none;
}

.glossary-faq .panel-body {
  font-size: 15px;
  line-height: 1.6;
}

/* ---- Related terms ---- */

.glossary-related {
  margin-top: 40px;
}

.glossary-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glossary-related-list li {
  display: inline-block;
  margin: 0 8px 8px 0;
}

.glossary-chip {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid #d6dde3;
  border-radius: 16px;
  background: #f7f9fa;
  color: #337ab7;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.glossary-chip:hover,
.glossary-chip:focus {
  background: #00addf;
  border-color: #00addf;
  color: #fff;
  text-decoration: none;
}

.glossary-back {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #777;
}

@media (max-width: 767px) {
  .glossary-definition,
  .glossary-extended,
  .glossary-extended p,
  .glossary-extended li {
    font-size: 15px;
  }
}

/* ============================================================
   Index / category / search surfaces
   ============================================================ */

.glossary-intro {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 26px;
}

.glossary-section-heading {
  font-size: 22px;
  letter-spacing: normal;
  margin-top: 44px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.glossary-count-line {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ---- Search box ---- */

.glossary-search {
  margin-bottom: 34px;
}

.glossary-search .form-control {
  height: 44px;
  font-size: 16px;
}

.glossary-search .btn {
  height: 44px;
  padding-left: 22px;
  padding-right: 22px;
}

.glossary-alias-hint {
  display: block;
  margin-top: 4px;
  color: #999;
  font-size: 13px;
}

/* ---- Category cards ---- */

.glossary-category-grid {
  margin-bottom: 10px;
}

.glossary-category-card {
  border: 1px solid #e6ebee;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: #fbfcfd;
  height: 100%;
}

.glossary-category-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.glossary-category-card h3 a {
  text-decoration: none;
}

.glossary-category-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #666;
  margin: 0;
}

.glossary-count {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #8a949c;
  white-space: nowrap;
}

/* ---- A-Z navigation ---- */

.glossary-az {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.glossary-az li {
  display: inline-block;
  margin: 0 4px 6px 0;
}

.glossary-az a,
.glossary-az span {
  display: inline-block;
  min-width: 32px;
  padding: 5px 0;
  text-align: center;
  border: 1px solid #d6dde3;
  border-radius: 3px;
  font-size: 14px;
  text-decoration: none;
}

.glossary-az a:hover,
.glossary-az a:focus {
  background: #00addf;
  border-color: #00addf;
  color: #fff;
  text-decoration: none;
}

.glossary-az .disabled span {
  color: #c8ced3;
  border-color: #eef1f3;
}

/* ---- A-Z term listing ---- */

.glossary-letter-block {
  margin-bottom: 30px;
  /* Anchor targets clear the fixed navbar. */
  padding-top: 70px;
  margin-top: -70px;
}

.glossary-letter {
  font-size: 20px;
  color: #00addf;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef1f3;
}

.glossary-term-columns {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 26px;
}

.glossary-term-columns li {
  margin-bottom: 6px;
  font-size: 15px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* ---- Definition lists (category + search) ---- */

.glossary-term-list {
  margin-top: 10px;
}

.glossary-term-list dt {
  font-size: 17px;
  font-weight: 700;
  margin-top: 22px;
  /* Anchor targets clear the fixed navbar. */
  padding-top: 70px;
  margin-top: -48px;
}

.glossary-term-list dt a {
  text-decoration: none;
}

.glossary-term-list dd {
  font-size: 16px;
  line-height: 1.65;
  margin: 6px 0 0;
  color: #444;
}

@media (max-width: 991px) {
  .glossary-term-columns { column-count: 2; }
}

@media (max-width: 767px) {
  .glossary-term-columns { column-count: 1; }
  .glossary-intro { font-size: 15px; }
  .glossary-term-list dd { font-size: 15px; }
}
