/* Site-authored category layout; existing logo and website identifiers retained. */
body.more-page { background: #f3f5f7 !important; color: #303b47; }
body.more-page::before, body.more-page::after { background-image: none !important; }
body.more-page .main-header { background: #fff; box-shadow: 0 1px 0 #e3e8ec; }
body.more-page .more-directory.container { width: 100% !important; max-width: 1680px !important; margin: 0 auto !important; padding: 20px 28px 36px; min-height: calc(100vh - 100px); }
.more-directory [hidden] { display: none !important; }
.more-intro { padding: 0 2px 16px; }
.more-intro-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.more-titles { min-width: 0; }
.more-breadcrumb { display: flex; gap: 9px; color: #687684; font-size: 12px; line-height: 20px; margin-bottom: 4px; }
.more-breadcrumb a { color: #687684; }
.more-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.more-directory h1.taxonomy-head-title { margin: 0; font-size: 26px; line-height: 1.4; color: #24313e; font-weight: 650; }
.more-directory .taxonomy-head-count { margin: 0 !important; padding: 3px 9px; background: #e8edf1; border-radius: 5px; color: #556473; font-size: 12px; line-height: 20px; font-weight: 400; }
.more-directory .taxonomy-head-count i { display: none; }
.more-note { max-width: 1100px; margin: 10px 0 0; color: #687684; font-size: 13px; line-height: 1.65; }
.more-tools { display: flex; align-items: center; gap: 10px; width: 470px; max-width: 50%; }
.more-filter-field { display: flex; align-items: center; flex: 1; min-width: 0; background: #fff; border: 1px solid #d3dce3; border-radius: 8px; }
.more-filter-field:focus-within { border-color: #a42c3a; box-shadow: 0 0 0 3px #f1404b15; }
.more-filter-field input { width: 100%; min-width: 0; height: 42px; border: 0; border-radius: 8px; background: transparent; padding: 0 12px; color: #303b47; font: inherit; font-size: 14px; outline: none; box-shadow: none; }
.more-filter-field input::placeholder { color: #6c7a88; opacity: 1; }
.more-filter-field input::-webkit-search-cancel-button { display: none; }
.more-clear { flex: none; border: 0; background: transparent; padding: 8px 10px; color: #a42c3a; font-size: 12px; }
.more-tools select { flex: none; min-height: 44px; width: 116px; border: 1px solid #d3dce3; border-radius: 8px; padding: 0 9px; color: #465565; background: #fff; font: inherit; font-size: 13px; }
.more-tools--schools { width: 620px; max-width: 58%; }
.more-directory .more-category-nav { margin: 0 0 14px; border: 1px solid #e3e8ec; border-radius: 10px; background: #fff; padding: 6px 14px; box-shadow: none; }
.more-directory .cat-selects { display: flex; align-items: center; gap: 2px; overflow-x: auto; overflow-y: hidden; padding: 4px 0; margin: 0 !important; scrollbar-width: thin; }
.more-directory .cat-selects-sub { margin: 0; padding: 0; border-top: 1px solid #edf0f3; background: transparent; border-radius: 0; }
.more-directory .cat-select { display: block; flex: none; padding: 9px 13px; margin: 0; min-height: 40px; font-size: 14px; line-height: 22px; color: #51606e; border-radius: 6px; white-space: nowrap; }
.more-directory .cat-select.active { color: #ac2838; background: #fff0f1; font-weight: 600; }
.more-directory .cat-select:hover { color: #ac2838; background: #f7f8fa; }
.more-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 12px; min-height: 38px; }
.more-results-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.more-results-summary h2 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: #354452; }
#more-status { color: #647382; font-size: 12px; }
.more-directory .more-sites-grid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 0; padding: 0; }
.more-directory .more-sites-grid > article { position: relative; display: flex; flex-direction: column; min-width: 0; width: 100% !important; max-width: none !important; flex: none !important; margin: 0 !important; padding: 0 !important; border: 1px solid #e3e8ec; border-radius: 10px; background: #fff; box-shadow: none; overflow: hidden; }
.more-directory .more-sites-grid > article:hover { border-color: #c6d2dc; box-shadow: 0 3px 12px #273b4f0a; transform: none; }
.more-directory .sites-body { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 14px 10px !important; margin: 0; color: #303b47; }
.more-directory .item-header { flex: 0 0 44px; width: 44px; margin: 0 !important; }
.more-directory .item-media, .more-directory .item-image { width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 8px; overflow: hidden; }
.more-directory .item-image img { display: block; width: 44px; height: 44px; padding: 0; object-fit: contain !important; border-radius: 8px; }
.more-directory .item-body { min-width: 0; padding: 0; margin: 0; }
.more-directory .item-title { margin: 0 0 4px; color: inherit; font-size: 15px; line-height: 1.5; }
.more-directory .item-title b { font-weight: 600; }
.more-directory .item-body > div { color: #647382 !important; font-size: 12px !important; line-height: 1.6; }
.more-directory .sites-body:hover { color: #ac2838; }
.more-directory .sites-tags { display: flex; justify-content: flex-end; min-height: 28px; margin: 0; padding: 0 10px 5px !important; border: 0; background: transparent; }
.more-directory .sites-tags .togo { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 28px; margin: 0 !important; padding: 0 5px; color: #586c7d !important; font-size: 12px; line-height: 1.4; border-radius: 4px; }
.more-directory .sites-tags .togo:hover { color: #ac2838 !important; background: #fff0f1; }
/* Override the legacy max-card specificity inside this new layout only. */
.more-directory .more-sites-grid article .sites-body { display: flex !important; gap: 12px !important; }
.more-directory .more-sites-grid article .item-header { flex: 0 0 44px; width: 44px; max-width: 44px; }
.more-directory .more-sites-grid article .item-body { flex: 1 1 auto !important; }
.more-directory .more-sites-grid article .item-title { font-size: 16px; line-height: 1.5; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.more-directory .more-sites-grid article .sites-tags { position: static !important; border: 0 !important; opacity: 1; }
.more-directory .more-sites-grid article .sites-tags::before { display: none; }
.more-directory .more-sites-grid article .togo { position: static !important; transform: none !important; color: #586c7d !important; font-size: 12px; opacity: 1; }
.more-directory .more-sites-grid article .togo:hover { color: #ac2838 !important; }
.more-directory .more-results-head { scroll-margin-top: 90px; }
.more-pagination { display: flex; flex: none; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 8px; white-space: nowrap; }
.more-pagination > * { flex: none; }
.more-pagination button, .more-reset { min-height: 36px; padding: 6px 12px; border: 1px solid #d3dce3; border-radius: 6px; background: #fff; color: #465565; font-size: 13px; }
.more-pagination button:hover:not(:disabled), .more-reset:hover { border-color: #a42c3a; color: #a42c3a; }
.more-pagination button:disabled { opacity: .45; cursor: default; }
.more-pagination span { min-width: 32px; color: #647382; font-size: 12px; text-align: center; }
.more-results-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; color: #647382; font-size: 13px; }
.more-empty { padding: 55px 20px; text-align: center; background: #fff; border: 1px solid #e3e8ec; border-radius: 10px; color: #647382; }
.more-empty p { margin: 0 0 16px; }
.more-directory :is(a,button,select):focus-visible { outline: 2px solid #a42c3a; outline-offset: 3px; }
.more-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1680px) { .more-directory .more-sites-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1199px) { .more-directory .more-sites-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 991px) { .more-directory .more-sites-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } body.more-page .more-directory.container { padding: 16px 20px 30px; } .more-tools { width: 400px; } }
@media (max-width: 767px) {
  .more-intro-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .more-tools { width: 100%; max-width: none; }
  .more-tools--schools { flex-wrap: wrap; }
  .more-tools--schools .more-filter-field { flex-basis: 100%; }
  .more-tools--schools select { flex: 1; width: auto; min-width: 0; }
  .more-results-head { flex-wrap: wrap; }
  .more-results-summary { flex: 1 1 160px; }
  .more-results-head .more-pagination { margin-left: auto; }
}
@media (max-width: 600px) {
  body.more-page .more-directory.container { padding: 12px 14px 26px; }
  .more-intro-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .more-directory h1.taxonomy-head-title { font-size: 22px; }
  .more-tools { width: 100%; max-width: none; gap: 8px; }
  .more-tools select { width: 106px; }
  .more-tools--schools { flex-wrap: wrap; }
  .more-tools--schools .more-filter-field { flex-basis: 100%; }
  .more-tools--schools select { flex: 1; width: auto; }
  .more-note { margin-top: 12px; font-size: 12px; }
  .more-directory .more-category-nav { padding: 4px 8px; margin-bottom: 10px; }
  .more-directory .cat-select { padding: 9px 10px; font-size: 13px; }
  .more-directory .more-sites-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .more-results-head { align-items: flex-start; }
  .more-results-summary { gap: 2px; flex-direction: column; }
  .more-pagination { gap: 5px; }
  .more-pagination button { padding: 6px 9px; min-height: 40px; }
  .more-directory .sites-body { padding: 8px 8px 24px !important; min-height: 68px; }
  .more-directory .more-sites-grid article .sites-body { gap: 6px !important; }
  .more-directory .more-sites-grid article .item-header { flex: 0 0 32px; width: 32px; max-width: 32px; }
  .more-directory .item-media, .more-directory .item-image, .more-directory .item-image img { width: 32px; height: 32px; }
  .more-directory .more-sites-grid article .item-title { font-size: 13px; line-height: 18px; }
  .more-directory .more-sites-grid article .sites-tags { position: static !important; height: 28px; min-height: 28px; padding: 0 !important; }
  .more-directory .more-sites-grid article .togo { position: absolute !important; top: auto; right: 2px; bottom: 0; width: 44px; height: 44px; }
  .more-directory .sites-tags .togo { min-height: 36px; }
  .more-results-bottom { flex-direction: column; gap: 12px; }
  .more-filter-field input, .more-tools select { font-size: 16px; }
  .more-filter-field input, .more-clear, .more-reset { min-height: 44px; }
  .more-pagination button, .more-directory .sites-tags .togo { min-height: 44px; }
  .more-results-head { scroll-margin-top: calc(var(--main-nav-hight, 80px) + 14px); }
  .more-directory .cat-select { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (pointer: coarse) {
  .more-filter-field input, .more-tools select { font-size: 16px; }
  .more-filter-field input, .more-clear, .more-reset, .more-pagination button, .more-directory .sites-tags .togo { min-height: 44px; }
}
