@charset "UTF-8";
:root {
  --primary: #5865f2;
  --primary-dark: #4652d8;
  --text: #20263e;
  --muted: #8990a4;
  --border: #e9ecf3;
  --surface: #f7f8fc;
  --radius: 14px
}
* {
  box-sizing: border-box
}
body {
  margin: 0;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--text);
  font-size: 14px;
  background: #fff;
  line-height: 1.6
}
.language-switcher {
  position: absolute;
  top: 16px;
  right: 22px;
  z-index: 4;
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--muted)
}
.language-switcher a {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.82)
}
.language-switcher a:hover {
  color: var(--primary);
  border-color: #cfd4ff
}
.related-keywords {
  display: block;
  height: auto;
  min-height: 0;
  align-items: initial;
  gap: 0;
  margin-top: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent
}
.related-keywords h2 {
  margin: 0 0 16px;
  color: #27324a;
  font-size: 18px;
  font-weight: 500
}
.related-keywords .related-term {
  color: #ef3e32;
  font-weight: 550
}
.related-keywords>div {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px
}
.related-keywords a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  gap: 11px;
  padding: 0 17px;
  border: 1px solid #e3e6eb;
  border-radius: 28px;
  background: #fff;
  color: #26344d;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.related-keywords a::before {
  content: '⌕';
  flex: 0 0 auto;
  color: #7b8088;
  font-size: 25px;
  line-height: 1;
  transform: rotate(-20deg)
}
.related-keywords a:hover {
  border-color: #cbd2e8;
  background: #fafbff;
  color: var(--primary)
}
.has-results #pagination.pagination {
  justify-content: flex-start;
  gap: 18px;
  margin-top: 31px;
  margin-bottom: 10px
}
.has-results #pagination.pagination :is(a,button) {
  min-width: 25px;
  height: 38px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  color: #6f7889;
  font-size: 14px
}
.has-results #pagination.pagination .active {
  position: relative;
  background: transparent;
  color: #20242c;
  border-color: transparent
}
.has-results #pagination.pagination .active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: #242a34;
  content: ''
}
.has-results #pagination.pagination span {
  display: none
}
@media(max-width:600px) {
  .related-keywords>div {
    grid-template-columns: 1fr
  }
  .related-keywords a {
    min-height: 46px
  }
}

/* Keep search pagination separate from the footer and from result borders. */
.keyword-page .catalog-main {
  padding-bottom: 52px
}
.has-results #pagination.pagination {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  margin-bottom: 0;
  padding-bottom: 4px
}
.has-results #pagination.pagination a,
.has-results #pagination.pagination button {
  border: 0 !important;
  box-shadow: none;
}
a {
  color: inherit;
  text-decoration: none
}
button,input,select,textarea {
  font: inherit
}
button {
  cursor: pointer
}
button: disabled {
  cursor: not-allowed;
  opacity: .5
}
button,a,input,select,textarea {
  outline-offset: 4px
}
button {
  color: inherit
}
img,svg {
  max-width: 100%
}
h1,h2,h3,p {
  margin: 0
}
button {
  border: 0;
  background: transparent
}
input,select,textarea {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--text);
  background: white;
  max-width: 100%
}
input: focus,select:focus,textarea:focus {
  outline: 2px solid #a6affb;
  border-color: transparent
}
textarea {
  resize: vertical
}
input[type=checkbox] {
  accent-color: var(--primary)
}
[hidden] {
  display: none!important
}
.container {
  max-width: 1250px;
  padding: 0 30px;
  margin: auto
}
.site-header {
  height: 83px;
  border-bottom: 1px solid #f0f1f6
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 64px
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.8px
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 5px 12px #5865f229
}
.brand-name>span {
  color: var(--primary)
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%
}
nav a,nav button {
  font-size: 14px;
  color: #778099;
  position: relative;
  padding: 29px 0
}
nav .nav-active {
  color: var(--primary);
  font-weight: 600
}
nav .nav-active:after {
  position: absolute;
  content: "";
  height: 3px;
  width: 24px;
  background: var(--primary);
  bottom: 0;
  left: calc(50% - 12px);
  border-radius: 3px
}
.external {
  font-size: 12px
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  transition: background .2s,transform .2s
}
.button:hover {
  transform: translateY(-1px)
}
.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px #5865f21a
}
.button-primary:hover {
  background: var(--primary-dark)
}
.button-soft {
  background: #f0f2ff;
  color: var(--primary)
}
.button-white {
  background: white;
  color: var(--primary)
}
.header-inner>.button {
  margin-left: auto;
  padding: 9px 15px;
  font-size: 12px
}
.hero {
  background: radial-gradient(ellipse at 20% 80%,#f1f2ff,transparent 55%),radial-gradient(ellipse at 85% 5%,#eaf6ff,transparent 55%),#fafaff;
  border-bottom: 1px solid #edf0f8;
  text-align: center;
  position: relative
}
.hero-inner {
  padding-top: 55px;
  padding-bottom: 36px
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 600
}
.hero .eyebrow {
  border: 1px solid #e0e5fb;
  background: #ffffffa8;
  border-radius: 24px;
  padding: 7px 14px;
  letter-spacing: .7px;
  display: inline-flex;
  gap: 8px;
  align-items: center
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%
}
.hero h1 {
  font-size: 38px;
  letter-spacing: -1px;
  font-weight: 750;
  margin-top: 18px;
  line-height: 1.5
}
.hero h1>span {
  color: var(--primary)
}
.hero p {
  color: #8b91a8;
  font-size: 14px;
  margin-top: 11px
}
.search-box {
  max-width: 754px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #dfe3f3;
  box-shadow: 0 8px 28px #53628c0b;
  padding: 8px;
  border-radius: 12px;
  margin: 28px auto 15px
}
.search-symbol {
  font-size: 32px;
  color: #939ab2;
  margin-left: 12px;
  line-height: 1
}
.search-box input {
  flex: 1;
  width: 0;
  border: 0;
  padding-left: 6px;
  font-size: 14px
}
.search-box input:focus {
  outline: none
}
.search-box:focus-within {
  outline: 2px solid #a6affb
}
.search-box input::placeholder {
  color: #a0a6ba
}
.search-box .button {
  min-width: 105px
}
.suggestions {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  color: #a0a6b8;
  font-size: 11px;
  flex-wrap: wrap
}
.suggestions :is(button, a) {
  color: #727b9b;
  padding: 3px 8px;
  border-radius: 4px
}
.suggestions :is(button, a):hover {
  background: #e6eafe
}
.hero-foot {
  display: flex;
  justify-content: center;
  gap: 27px;
  margin-top: 28px;
  font-size: 11px;
  color: #8f97af
}
.catalog-shell {
  padding-top: 26px
}
.announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f8ff;
  border: 1px solid #eef0fe;
  border-radius: 9px;
  padding: 12px 15px;
  color: #7b83aa;
  font-size: 11px
}
.announcement-icon {
  color: var(--primary);
  font-size: 16px
}
.announcement-end {
  margin-left: auto;
  font-size: 10px;
  color: #a2a8c1
}
.announcement-end span {
  color: var(--primary)
}
.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 255px;
  gap: 26px;
  margin-top: 32px
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}
.section-title h2 {
  font-size: 20px;
  font-weight: 650;
  display: flex;
  gap: 10px;
  align-items: center
}
.tiny-badge {
  font-size: 8px;
  letter-spacing: 1px;
  color: #a4aac2;
  background: #f1f3f8;
  padding: 2px 6px;
  border-radius: 4px
}
.section-title p {
  font-size: 11px;
  color: #9199ae;
  margin-top: 6px
}
.sort-label {
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #a2a9b9
}
.sort-label select {
  font-size: 11px;
  padding: 7px 10px;
  min-width: 108px;
  border-color: #e8ebf2
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 19px 0 18px
}
.type-tabs {
  display: flex;
  gap: 20px
}
.type-tabs :is(button, a) {
  font-size: 11px;
  padding: 0;
  color: #939aad
}
.type-tabs :is(button, a).active {
  color: var(--primary);
  font-weight: 600
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #929aae
}
.checkbox input {
  margin: 0
}
.demo-notice {
  font-size: 10px;
  color: #9097aa;
  background: #f8f9fd;
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 14px
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px
}
.resource-card {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 17px 15px 12px;
  min-width: 0;
  transition: box-shadow .2s,border-color .2s;
  background: white
}
.resource-card:hover {
  box-shadow: 0 5px 20px #223d770c;
  border-color: #cdd3ed
}
.card-top {
  display: flex;
  gap: 9px;
  align-items: center
}
.resource-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: #eef1ff;
  color: #5865f2
}
.card-heading {
  flex: 1;
  min-width: 0
}
.card-title {
  display: block;
  text-align: left;
  padding: 0;
  font-weight: 650;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%
}
.card-username {
  display: block;
  color: #a6acbd;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  margin-top: 3px
}
.type-badge {
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #6891cb;
  background: #f1f6fc;
  white-space: nowrap
}
.type-badge.channel {
  color: #8e81c1;
  background: #f5f2fc
}
.type-badge.bot {
  color: #16a987;
  background: #eefaf5
}
.card-description {
  font-size: 10px;
  color: #9299ac;
  line-height: 1.9;
  margin-top: 13px;
  height: 39px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}
.card-tags {
  display: flex;
  gap: 5px;
  margin-top: 13px;
  min-height: 20px;
  flex-wrap: wrap
}
.card-tags button {
  font-size: 8px;
  color: #8994b0;
  background: #f5f7fc;
  border-radius: 4px;
  padding: 2px 6px
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f3f7;
  padding-top: 11px;
  margin-top: 13px;
  font-size: 9px;
  color: #a1a8b9;
  gap: 5px;
  flex-wrap: wrap
}
.card-action {
  color: var(--primary);
  font-size: 9px;
  padding: 0;
  white-space: nowrap
}
.demo-badge {
  font-size: 8px;
  color: #aa91bd;
  background: #f7f2fb;
  padding: 1px 4px;
  border-radius: 3px
}
.panel {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px;
  background: white
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}
.panel h3 {
  font-size: 13px;
  font-weight: 650
}
.fire {
  color: #f08c50;
  margin-right: 4px
}
.subtle-badge {
  font-size: 9px;
  background: #f5f6fa;
  color: #969eb1;
  border-radius: 4px;
  padding: 2px 6px
}
.hot-list {
  margin-top: 17px
}
.hot-item {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  text-align: left;
  font-size: 11px;
  padding: 9px 0
}
.hot-item>span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}
.hot-item small {
  font-size: 9px;
  color: #adb3c3
}
.rank {
  font-size: 10px;
  width: 17px;
  color: #a8aebf
}
.rank-1 {
  color: #f27876
}
.rank-2 {
  color: #e9a060
}
.rank-3 {
  color: #c7ac6c
}
.panel-note {
  font-size: 9px;
  color: #adb3c3;
  border-top: 1px solid #f0f2f6;
  padding-top: 12px;
  margin-top: 12px
}
.empty-hot {
  text-align: center;
  color: #9ea5b8;
  font-size: 11px;
  padding: 20px 0
}
.empty-hot small {
  font-size: 9px
}
.submit-panel {
  margin-top: 20px;
  background: linear-gradient(125deg,#f1f2ff,#f7f5ff);
  border: 1px solid #eae9fe;
  border-radius: 11px;
  padding: 22px;
  position: relative;
  overflow: hidden
}
.submit-panel h3 {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 650;
  color: #555d94
}
.submit-panel p {
  font-size: 11px;
  line-height: 1.9;
  color: #8f95b6;
  margin-top: 10px
}
.submit-panel .button {
  margin-top: 19px;
  width: 100%;
  font-size: 11px;
  gap: 20px;
  padding: 9px 12px
}
.submit-art {
  position: absolute;
  right: 15px;
  top: 5px;
  font-size: 75px;
  line-height: 1.5;
  color: #dedfff;
  transform: rotate(10deg)
}
.directory-stats {
  margin-top: 20px
}
.directory-stats>div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #959db0;
  margin-top: 15px
}
.directory-stats strong {
  font-size: 13px;
  color: #616b88;
  font-weight: 550
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px
}
.pagination :is(button, a) {
  border: 1px solid var(--border);
  border-radius: 7px;
  min-width: 31px;
  height: 31px;
  color: #9099b0;
  font-size: 11px
}
.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary)
}
.pagination span {
  font-size: 10px;
  color: #a4aabd;
  margin-left: 8px
}
.bottom-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(105deg,#f0f2ff,#f5f7ff);
  border: 1px solid #e9edfc;
  border-radius: 12px;
  margin: 37px 0 46px;
  padding: 24px 28px
}
.banner-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #e2e6ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 31px
}
.bottom-banner h3 {
  font-size: 15px;
  font-weight: 600;
  color: #606b96
}
.bottom-banner p {
  font-size: 11px;
  color: #979eb7;
  margin-top: 5px
}
.bottom-banner .button {
  margin-left: auto;
  font-size: 11px;
  border: 1px solid #e4e9fb
}
.site-footer {
  border-top: 1px solid #edf0f5;
  padding: 29px 0;
  color: #9aa2b4
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}
.brand.small {
  font-size: 16px;
  color: #6c7590;
  letter-spacing: -.4px;
  gap: 8px
}
.small .brand-icon {
  height: 25px;
  width: 25px;
  border-radius: 7px;
  font-size: 21px
}
.site-footer p {
  font-size: 10px;
  margin-top: 8px
}
.footer-right {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 10px
}
.footer-right button {
  padding: 0;
  font-size: 10px;
  color: #929ab0
}
.footer-right>span {
  margin-left: 14px;
  color: #b0b6c6
}
mark {
  background: transparent;
  color: #e53935;
  border-radius: 0;
  font-weight: inherit
}
.empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: #9199af;
  text-align: center;
  padding: 30px
}
.empty-state h3 {
  font-size: 15px;
  color: #66708a;
  margin-top: 10px
}
.empty-state p {
  font-size: 12px;
  margin: 8px 0 15px
}
.empty-symbol {
  font-size: 45px;
  color: #b7bee2
}
.muted {
  color: var(--muted);
  font-size: 12px
}
.modal {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 27px;
  width: min(550px,calc(100% - 30px));
  max-height: 90vh;
  color: var(--text);
  box-shadow: 0 20px 90px #19235330
}
.modal::backdrop {
  background: #141b3b60;
  backdrop-filter: blur(3px)
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px
}
.modal h2 {
  font-size: 23px;
  letter-spacing: -.5px
}
.icon-button {
  font-size: 28px;
  color: #9ca3b9;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 7px
}
.icon-button:hover {
  background: #f0f2f8
}
.modal form>label,.modal .form-grid label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 6px;
  margin-top: 16px;
  font-weight: 500
}
.modal input,.modal textarea,.modal select {
  width: 100%;
  font-size: 12px;
  font-weight: 400
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}
.form-message {
  color: #de6b6b;
  font-size: 12px;
  margin: 13px 0;
  min-height: 18px
}
.full-width {
  width: 100%
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #29314d;
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px #16204325;
  z-index: 100;
  font-size: 13px;
  max-width: calc(100vw - 40px);
  text-align: center
}
.info-content p {
  margin: 15px 0;
  color: #7d879e;
  font-size: 13px;
  line-height: 1.9
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: #929bad;
  background: #f7f8fc;
  padding: 16px;
  border-radius: 10px
}
.ad-card {
  border: 1px solid #ecebff;
  background: #fafaff;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px
}
.ad-card>div {
  flex: 1
}
.ad-card h3 {
  font-size: 13px
}
.ad-card p {
  font-size: 10px;
  color: #8a93a9;
  margin-top: 4px
}
.ad-card .button {
  font-size: 10px;
  padding: 7px 12px
}
.mobile-only {
  display: none
}
@media(min-width:1450px) {
  .container {
    max-width: 1350px
  }
  .resource-card {
    padding: 21px 18px 14px
  }
  .card-title {
    font-size: 13px
  }
  .card-description {
    font-size: 11px;
    height: 42px
  }
  .catalog-grid {
    grid-template-columns: minmax(0,1fr) 270px;
    gap: 30px
  }
}
@media(max-width:1100px) {
  .container {
    padding: 0 24px
  }
  .catalog-grid {
    grid-template-columns: minmax(0,1fr) 230px;
    gap: 20px
  }
  .resource-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .header-inner {
    gap: 35px
  }
  nav {
    gap: 22px
  }
  .card-title {
    font-size: 13px
  }
  .card-description {
    font-size: 11px;
    height: 42px
  }
}
@media(max-width:780px) {
  .site-header {
    height: 68px
  }
  .header-inner {
    gap: 24px
  }
  .brand {
    font-size: 20px
  }
  .brand-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 25px
  }
  nav {
    margin-left: auto;
    gap: 20px
  }
  nav a,nav button {
    font-size: 12px;
    padding: 22px 0
  }
  .header-inner>.button {
    display: none
  }
  .hero-inner {
    padding-top: 37px
  }
  .hero h1 {
    font-size: 30px
  }
  .hero p {
    font-size: 12px
  }
  .catalog-grid {
    grid-template-columns: 1fr
  }
  .catalog-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
  }
  .submit-panel {
    margin: 0
  }
  .directory-stats {
    display: none
  }
  .announcement-end {
    display: none
  }
  .bottom-banner {
    padding: 22px;
    gap: 15px
  }
  .bottom-banner h3 {
    font-size: 12px
  }
  .bottom-banner p {
    font-size: 10px
  }
  .bottom-banner .button {
    padding: 9px 13px
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px
  }
  .footer-right {
    flex-wrap: wrap;
    gap: 18px
  }
}
@media(max-width:480px) {
  .container {
    padding: 0 17px
  }
  .brand {
    font-size: 17px;
    gap: 6px
  }
  .brand-icon {
    height: 28px;
    width: 28px;
    font-size: 22px
  }
  nav {
    gap: 16px
  }
  nav a,nav button {
    font-size: 11px
  }
  nav .nav-active {
    display: none
  }
  .mobile-only {
    display: block
  }
  .hero h1 {
    font-size: 29px;
    line-height: 1.45
  }
  .hero .eyebrow {
    font-size: 9px
  }
  .hero p {
    font-size: 11px
  }
  .search-box {
    margin-top: 23px;
    padding: 6px
  }
  .search-box input {
    font-size: 12px
  }
  .search-box .button {
    padding: 10px 13px;
    min-width: 70px;
    font-size: 12px;
    gap: 12px
  }
  .search-symbol {
    margin-left: 5px;
    font-size: 27px
  }
  .hero-foot {
    gap: 16px;
    font-size: 10px
  }
  .catalog-shell {
    padding-top: 20px
  }
  .announcement {
    font-size: 10px;
    padding: 10px
  }
  .catalog-grid {
    margin-top: 25px
  }
  .section-title h2 {
    font-size: 18px
  }
  .tiny-badge {
    display: none
  }
  .sort-label {
    font-size: 10px
  }
  .sort-label select {
    min-width: 92px;
    font-size: 10px
  }
  .type-tabs {
    gap: 16px
  }
  .type-tabs :is(button, a) {
    font-size: 10px
  }
  .resource-grid {
    grid-template-columns: 1fr
  }
  .resource-card {
    padding: 18px
  }
  .resource-avatar {
    width: 42px;
    height: 42px
  }
  .card-title {
    font-size: 14px
  }
  .card-username {
    font-size: 10px
  }
  .card-description {
    font-size: 12px;
    height: 46px
  }
  .card-tags button {
    font-size: 10px
  }
  .card-bottom,.card-action {
    font-size: 10px
  }
  .type-badge {
    font-size: 10px
  }
  .catalog-aside {
    grid-template-columns: 1fr
  }
  .submit-panel {
    display: none
  }
  .bottom-banner {
    padding: 19px;
    margin: 25px 0 30px;
    flex-wrap: wrap
  }
  .banner-icon {
    display: none
  }
  .bottom-banner .button {
    margin-left: 0
  }
  .site-footer {
    padding: 22px 0
  }
  .footer-right>span {
    margin-left: 0
  }
  .modal {
    padding: 22px
  }
  .form-grid {
    gap: 12px
  }
  .detail-meta {
    grid-template-columns: 1fr
  }
  .ad-card {
    gap: 9px
  }
  .ad-card .button {
    padding: 6px 8px
  }
}
/* Search-engine landing layout */ .site-header {
  height: 64px;
  border-bottom: 1px solid #f1f3f6;
  background: #fff
}
.header-inner {
  gap: 28px
}
.brand {
  font-size: 20px;
  letter-spacing: -.5px
}
.brand-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: 23px;
  box-shadow: none
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px
}
.header-actions a,.header-actions button {
  font-size: 12px;
  padding: 21px 0;
  color: #70798d
}
.header-bot {
  padding: 7px 12px!important;
  border: 1px solid #e2e6ee;
  border-radius: 5px;
  color: #5965c8!important
}
.hero {
  background: #fff;
  border: 0;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center
}
.hero-inner {
  width: 100%;
  padding-top: 0;
  padding-bottom: 86px
}
.search-wordmark {
  display: inline-block;
  font-size: 58px;
  font-weight: 650;
  letter-spacing: -3px;
  color: #414b69;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease
}
.search-wordmark:hover {
  color: #5865f2
}
.search-wordmark span {
  color: var(--primary)
}
.hero p {
  font-size: 13px;
  color: #858da0;
  margin-top: 17px
}
.search-box {
  max-width: 640px;
  margin: 27px auto 16px;
  border-radius: 28px;
  padding: 7px 8px 7px 5px;
  box-shadow: 0 2px 12px #1c2b4a16;
  border: 1px solid #e0e4eb
}
.search-box:hover {
  box-shadow: 0 3px 15px #1c2b4a20
}
.search-symbol {
  font-size: 27px;
  margin-left: 14px;
  color: #8d96a7
}
.search-box input {
  font-size: 15px;
  padding: 10px 9px
}
.search-box .button {
  border-radius: 22px;
  min-width: 88px;
  padding: 10px 19px
}
.suggestions {
  font-size: 11px;
  color: #8f97a8
}
.suggestions :is(button, a) {
  color: #5865c8;
  padding: 4px 9px;
  border-radius: 14px
}
.hero-foot {
  margin-top: 42px;
  gap: 30px;
  color: #a2a9b7;
  font-size: 10px
}
#results-shell:not(.show) {
  display: none
}
.has-results .hero {
  min-height: auto;
  border-bottom: 1px solid #edf0f4;
  display: block
}
.has-results .hero-inner {
  min-height: 0;
  padding-top: 17px;
  padding-bottom: 17px;
  display: flex;
  align-items: center;
  gap: 25px;
  text-align: left
}
.has-results .search-wordmark {
  font-size: 29px;
  letter-spacing: -1.5px
}
.has-results .hero p {
  display: none
}
.has-results .search-box {
  margin: 0;
  max-width: 680px;
  flex: 1
}
.has-results .suggestions {
  display: none
}
.has-results .hero-foot {
  display: none
}
.has-results .catalog-shell {
  padding-top: 28px;
  max-width: 980px
}
.has-results .site-footer {
  display: block
}
.has-results .announcement,.has-results .bottom-banner {
  display: none
}
.has-results .catalog-grid {
  display: grid;
  grid-template-columns: minmax(0,760px) 255px;
  max-width: 1080px;
  margin: 0 auto;
  gap: 56px
}
.has-results .section-title {
  padding-bottom: 17px;
  border-bottom: 1px solid #edf0f4
}
.has-results .section-title h2 {
  font-size: 18px;
  font-weight: 500;
  color: #30394f
}
.has-results .section-title p {
  font-size: 11px;
  color: #7d8799
}
.has-results .has-results .has-results .has-results .filter-row {
  margin: 14px 0 0;
  padding-bottom: 5px
}
.has-results .type-tabs {
  gap: 18px
}
.has-results .type-tabs :is(button, a) {
  font-size: 11px
}
.has-results .catalog-aside {
  display: block;
  padding-top: 3px
}
.has-results .resource-grid {
  display: flex;
  flex-direction: column;
  gap: 0
}
.has-results .resource-card {
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  padding: 21px 4px 20px;
  background: transparent;
  box-shadow: none
}
.has-results .resource-card:hover {
  border-color: #edf0f4;
  box-shadow: none;
  background: #fcfdff
}
.has-results .resource-avatar {
  display: none
}
.has-results .card-top {
  gap: 0
}
.has-results .result-source {
  display: block;
  font-size: 10px;
  color: #6d7d68;
  line-height: 1.4;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.has-results .card-title {
  font-size: 17px;
  color: #3d55bd;
  font-weight: 500;
  width: auto;
  display: inline-block
}
.has-results .card-title:hover {
  text-decoration: underline
}
.has-results .card-username {
  font-size: 11px;
  color: #75836f;
  margin-top: 3px
}
.has-results .type-badge {
  margin-left: auto
}
.has-results .card-description {
  height: auto;
  max-width: 680px;
  font-size: 13px;
  line-height: 1.7;
  color: #59657a;
  margin-top: 7px;
  -webkit-line-clamp: 2
}
.has-results .card-tags {
  margin-top: 8px
}
.has-results .card-tags button {
  font-size: 10px;
  background: #f2f4fb;
  color: #6d79a0
}
.has-results .card-bottom {
  border: 0;
  padding-top: 8px;
  margin-top: 0;
  font-size: 10px
}
@media(max-width:1100px) {
  .has-results .catalog-grid {
    grid-template-columns: minmax(0,1fr) 230px;
    gap: 24px
  }
}
@media(max-width:780px) {
  .has-results .catalog-grid {
    grid-template-columns: 1fr
  }
  .has-results .catalog-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
  }
  .has-results .catalog-aside .directory-stats {
    display: none
  }
}
@media(max-width:600px) {
  .search-wordmark {
    font-size: 44px
  }
  .hero-inner {
    padding-bottom: 70px
  }
  .hero-foot {
    gap: 15px
  }
  .header-inner {
    padding: 0 17px
  }
  .header-bot {
    display: none!important
  }
  .header-actions {
    gap: 16px
  }
  .header-actions a,.header-actions button {
    font-size: 11px;
    padding: 20px 0
  }
  .has-results .hero-inner {
    padding-top: 18px;
    padding-bottom: 18px;
    display: block;
    text-align: center
  }
  .has-results .search-wordmark {
    font-size: 26px
  }
  .has-results .search-box {
    margin: 15px 0 0
  }
  .search-box {
    margin-top: 22px
  }
  .search-box input {
    font-size: 13px
  }
  .search-box .button {
    min-width: 73px;
    padding: 9px 13px
  }
  .has-results .catalog-shell {
    padding-top: 20px
  }
  .has-results .section-title {
    align-items: flex-start
  }
  .has-results .section-title h2 {
    font-size: 16px
  }
  .has-results .sort-label select {
    min-width: 88px
  }
}
/* Readable community directory sizing and avatar-ready result rows. */ body {
  font-size: 15px
}
.container {
  max-width: 1440px
}
.hero-inner {
  padding-left: 36px;
  padding-right: 36px
}
.search-box {
  max-width: 820px
}
.suggestions,.hero-foot {
  font-size: 13px
}
.catalog-grid {
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 38px
}
.catalog-aside {
  font-size: 14px
}
.panel h3 {
  font-size: 16px
}
.hot-item {
  font-size: 14px;
  padding: 11px 0
}
.section-title h2 {
  font-size: 24px
}
.section-title p,.sort-label {
  font-size: 13px
}
.type-tabs :is(button, a) {
  font-size: 14px
}
.checkbox {
  font-size: 13px
}
.resource-grid {
  gap: 0
}
.resource-card {
  padding: 24px 8px 23px
}
.resource-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  font-size: 25px;
  overflow: hidden;
  position: relative;
  text-align: center
}
.resource-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}
.resource-avatar {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none
}
.resource-avatar img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none
}
.resource-avatar span {
  position: relative;
  z-index: 1
}
.card-top {
  gap: 15px
}
.card-title {
  font-size: 20px;
  font-weight: 650
}
.card-username {
  font-size: 13px
}
.result-source {
  font-size: 12px!important
}
.type-badge {
  font-size: 12px;
  padding: 4px 8px
}
.card-description {
  font-size: 15px;
  line-height: 1.8;
  height: auto;
  min-height: 52px;
  margin-top: 14px
}
.card-tags {
  margin-top: 14px
}
.card-tags button {
  font-size: 12px;
  padding: 4px 8px
}
.card-bottom {
  font-size: 13px;
  padding-top: 13px;
  margin-top: 15px
}
.card-action {
  font-size: 13px
}
.demo-badge {
  font-size: 11px
}
.has-results .catalog-shell {
  max-width: 1380px
}
.has-results .catalog-grid {
  grid-template-columns: minmax(0,1fr) 300px;
  max-width: 1320px;
  gap: 58px
}
.has-results .resource-avatar {
  display: grid
}
.has-results .card-top {
  gap: 15px
}
.has-results .card-title {
  font-size: 21px
}
.has-results .card-description {
  font-size: 15px;
  max-width: 900px;
  line-height: 1.8
}
.has-results .card-username {
  font-size: 13px
}
.has-results .type-badge {
  font-size: 12px
}
.has-results .card-bottom {
  font-size: 13px
}
@media(max-width:1100px) {
  .container {
    padding-left: 24px;
    padding-right: 24px
  }
  .has-results .catalog-grid {
    grid-template-columns: minmax(0,1fr) 260px;
    gap: 30px
  }
}
@media(max-width:780px) {
  body {
    font-size: 14px
  }
  .container {
    padding-left: 18px;
    padding-right: 18px
  }
  .catalog-grid {
    grid-template-columns: 1fr
  }
  .section-title h2 {
    font-size: 21px
  }
  .resource-card {
    padding: 20px 4px
  }
  .resource-avatar {
    width: 48px;
    height: 48px
  }
  .card-title,.has-results .card-title {
    font-size: 18px
  }
  .card-description,.has-results .card-description {
    font-size: 14px
  }
  .has-results .catalog-grid {
    grid-template-columns: 1fr
  }
  .has-results .catalog-aside {
    font-size: 13px
  }
}
/* Compact Google-style result rows. */ .has-results .catalog-shell {
  max-width: 1080px
}
.has-results .catalog-grid {
  grid-template-columns: minmax(0,980px);
  max-width: 1000px;
  gap: 0
}
.has-results .catalog-aside {
  display: none
}
.has-results .resource-card {
  padding: 24px 0 23px;
  border-bottom: 1px solid #edf0f4
}
.has-results .resource-card:hover {
  background: transparent
}
.has-results .card-top {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 14px;
  align-items: start
}
.has-results .resource-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  margin-top: 3px
}
.has-results .card-heading {
  min-width: 0
}
.has-results .result-source {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: 14px!important;
  line-height: 1.35;
  color: #64748b;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.has-results .result-source:hover {
  color: #3f5fc1;
  text-decoration: underline
}
.has-results .card-title {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: 21px;
  color: #3159bd;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.has-results .card-title:hover {
  text-decoration: underline
}
.has-results .card-description {
  height: auto;
  min-height: 0;
  max-width: 850px;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.75;
  color: #59687d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}
@media(max-width:600px) {
  .has-results .catalog-shell {
    max-width: none
  }
  .has-results .catalog-grid {
    max-width: none
  }
  .has-results .resource-card {
    padding: 20px 0
  }
  .has-results .card-top {
    grid-template-columns: 36px minmax(0,1fr);
    gap: 11px
  }
  .has-results .resource-avatar {
    width: 36px;
    height: 36px;
    font-size: 19px
  }
  .has-results .result-source {
    font-size: 13px!important
  }
  .has-results .card-title {
    font-size: 18px
  }
  .has-results .card-description {
    font-size: 14px;
    line-height: 1.7
  }
}
/* Result rows: avatar and handle on line one, title on line two, summary on line three. */ .has-results .catalog-shell {
  max-width: 1320px
}
.has-results .catalog-grid {
  grid-template-columns: minmax(0,1fr) 300px;
  max-width: 1320px;
  gap: 58px
}
.has-results .catalog-aside {
  display: block;
  padding-top: 3px
}
.has-results .resource-card {
  padding: 24px 0 23px
}
.has-results .result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px
}
.has-results .result-row .resource-avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%
}
.has-results .result-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-top: 1px
}
.has-results .result-group-name {
  display: block;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.4;
  color: #39435e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.has-results .result-source {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: 13px!important;
  line-height: 1.35;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  cursor: default
}
.has-results .card-title {
  margin: 10px 0 0;
  min-width: 0;
  max-width: 100%
}
.has-results .card-description {
  margin: 5px 0 0;
  max-width: 850px;
  font-size: 13px;
  line-height: 1.65;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}
@media(max-width:1100px) {
  .has-results .catalog-grid {
    grid-template-columns: minmax(0,1fr) 260px;
    gap: 30px
  }
}
@media(max-width:780px) {
  .has-results .catalog-grid {
    grid-template-columns: 1fr
  }
  .has-results .catalog-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
  }
  .has-results .catalog-aside .directory-stats {
    display: none
  }
}
@media(max-width:600px) {
  .has-results .catalog-aside {
    grid-template-columns: 1fr
  }
  .has-results .result-row {
    gap: 10px
  }
  .has-results .result-row .resource-avatar {
    flex-basis: 36px;
    width: 36px;
    height: 36px
  }
  .has-results .result-group-name {
    font-size: 15px
  }
  .has-results .result-source {
    max-width: 100%;
    font-size: 12px!important
  }
  .has-results .card-title {
    margin-left: 0;
    max-width: 100%;
    font-size: 18px
  }
  .has-results .card-description {
    margin-left: 0;
    font-size: 12px;
    line-height: 1.6
  }
}
/* Keep the source row quiet and make the searchable result title the visual anchor. */ .has-results .result-row {
  min-height: 38px;
  gap: 10px
}
.has-results .result-row .resource-avatar {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  font-size: 20px
}
.has-results .result-group-name {
  font-size: 14px;
  line-height: 1.3
}
.has-results .result-source {
  font-size: 12px!important;
  line-height: 1.25
}
.has-results .resource-card {
  cursor: pointer
}
.has-results .resource-card:focus-visible {
  outline: 2px solid #a6affb;
  outline-offset: 3px
}
.has-results .card-title {
  font-weight: 540
}
.has-results .result-media-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  margin-right: .34em;
  font-size: .82em;
  line-height: 1;
  vertical-align: -.08em;
  text-decoration: none;
  pointer-events: none
}
.has-results .result-row .resource-avatar {
  cursor: default
}
@media(max-width:600px) {
  .has-results .result-row .resource-avatar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 18px
  }
  .has-results .result-group-name {
    font-size: 13px
  }
  .has-results .result-source {
    font-size: 11px!important
  }
  .has-results .card-title {
    font-weight: 540
  }
}
/* Replace the font glyph with a stable magnifier so it stays centered in the search field. */ .search-symbol {
  position: relative;
  display: block;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin-left: 13px;
  font-size: 0;
  line-height: 1;
  transform: none
}
.search-symbol::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 11px;
  height: 11px;
  border: 2px solid #8d96a7;
  border-radius: 50%
}
.search-symbol::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 8px;
  height: 2px;
  background: #8d96a7;
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: left center
}
@media(max-width:480px) {
  .search-symbol {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
    margin-left: 5px
  }
  .search-symbol::before {
    left: 2px;
    top: 2px;
    width: 10px;
    height: 10px
  }
  .search-symbol::after {
    left: 13px;
    top: 14px;
    width: 7px
  }
}
/* Frontend readability: larger footer, support text and secondary labels. */ .site-footer {
  padding: 36px 0;
  color: #536078;
  font-size: 13px
}
.site-footer .footer-inner {
  gap: 28px
}
.site-footer p,.site-footer .footer-inner>div>p {
  font-size: 13px;
  line-height: 1.8;
  color: #536078
}
.site-footer a,.site-footer button,.footer-right {
  font-size: 13px;
  color: #465574
}
.footer-right {
  gap: 26px
}
.footer-right button {
  font-size: 13px;
  color: #536078
}
.footer-right>span {
  color: #65718a
}
.site-footer .brand.small {
  font-size: 18px
}
.site-footer .brand.small p {
  font-size: 13px
}
.hero #site-description {
  font-size: 15px;
  color: #596780
}
.announcement {
  font-size: 13px;
  color: #596780;
  padding: 14px 17px
}
.announcement-end {
  font-size: 12px;
  color: #66738d
}
.panel-note {
  font-size: 12px;
  color: #66738d;
  line-height: 1.7
}
.submit-panel p {
  font-size: 13px;
  color: #65718b
}
.directory-stats>div {
  font-size: 13px
}
.hot-item {
  font-size: 14px
}
.hot-item small {
  font-size: 11px
}
.has-results .result-group-name {
  font-size: 15px
}
.has-results .result-source {
  font-size: 13px!important
}
.has-results .card-description {
  font-size: 15px;
  line-height: 1.75
}
@media(max-width:680px) {
  .site-footer {
    padding: 29px 0
  }
  .site-footer .footer-inner {
    gap: 12px
  }
  .site-footer p,.site-footer a,.site-footer button,.footer-right {
    font-size: 12px
  }
  .footer-right {
    gap: 16px;
    flex-wrap: wrap
  }
  .site-footer .brand.small {
    font-size: 16px
  }
  .announcement {
    font-size: 12px
  }
  .announcement-end {
    font-size: 11px
  }
  .has-results .card-description {
    font-size: 14px
  }
}
.type-tabs {
  flex-wrap: wrap;
  row-gap: 10px
}

/* Search keywords are semantic headings and remain readable at every width. */
.section-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-wrap: anywhere;
}
.has-results .section-title h1 {
  font-size: 18px;
  font-weight: 500;
  color: #30394f;
}
.section-title .result-count {
  font-size: 11px;
  color: #7d8799;
  margin-top: 6px;
  line-height: 1.5;
}
.section-title .inline-keyword {
  display: inline;
  margin: 0 3px;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  overflow-wrap: anywhere;
}
.has-results .section-title .inline-keyword {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}
@media(max-width:680px) {
  .section-title h1,
  .has-results .section-title h1 {
    font-size: 18px;
  }
}

/* Final keyword-page layout overrides.  These selectors intentionally live
 * after the global nav/pagination rules: a related-search <nav> must keep
 * its own grid layout instead of inheriting the site navigation height. */
.keyword-page nav.related-keywords {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 36px 0 0;
  padding: 0;
  align-items: initial;
  gap: 0;
}
.keyword-page nav.related-keywords h2 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.45;
}
.keyword-page nav.related-keywords > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.keyword-page nav.related-keywords > div > a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  padding: 0 17px;
  border: 1px solid #e3e6eb;
  border-radius: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.has-results #pagination.pagination {
  display: flex;
  position: relative;
  clear: both;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin: 36px 0 12px;
  padding: 0 0 4px;
  z-index: 1;
}
.has-results #pagination.pagination a,
.has-results #pagination.pagination button {
  flex: 0 0 auto;
  min-width: 25px;
  height: 38px;
  padding: 0 4px;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
}
.has-results #pagination.pagination .active {
  position: relative;
  background: transparent;
  color: #20242c;
}
.has-results #pagination.pagination .active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: #242a34;
  content: '';
}
.keyword-page .catalog-main {
  min-width: 0;
  padding-bottom: 64px;
}
.keyword-page main {
  padding-bottom: 0;
  background: #fff;
}
.keyword-page .catalog-shell {
  padding-bottom: 0;
}
.keyword-page .catalog-main {
  padding-bottom: 0;
}
.keyword-page .site-footer {
  clear: both;
  margin-top: 0;
}

/* Keep the pagination compact; the separation from the footer is provided
 * by the requested bottom margin instead of an oversized blank band. */
.has-results #pagination.pagination {
  min-height: 42px;
  margin-top: 36px;
  margin-bottom: 28px;
  padding: 0 0 4px;
  border-top: 0;
  border-bottom: 0;
}
.keyword-page .site-footer {
  padding-top: 36px;
  padding-bottom: 44px;
  background: #fff;
  border-top: 1px solid #edf0f4;
}
@media (max-width: 600px) {
  .has-results #pagination.pagination {
    min-height: 42px;
    margin-top: 28px;
    margin-bottom: 28px;
    padding-bottom: 4px;
  }
  .keyword-page .site-footer {
    padding-top: 30px;
    padding-bottom: 36px;
  }
  .has-results .card-description {
    -webkit-line-clamp: 3;
  }
}

/* Both normal searches and keyword pages share the has-results class. */
.has-results #pagination.pagination {
  margin-bottom: 28px;
}

/* Shared polished pagination for normal searches and keyword pages. */
.has-results #pagination.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 14px 0;
}
.has-results #pagination.pagination a,
.has-results #pagination.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e1e5ef !important;
  border-radius: 9px;
  background: #fff;
  color: #66718a;
  font-size: 13px;
  line-height: 1;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.has-results #pagination.pagination a:hover,
.has-results #pagination.pagination button:hover {
  border-color: #bfc8ff !important;
  background: #f4f5ff;
  color: var(--primary);
  transform: translateY(-1px);
}
.has-results #pagination.pagination .active {
  border-color: var(--primary) !important;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px #5865f226;
}
.has-results #pagination.pagination .active::after {
  display: none;
  content: none;
}
.has-results #pagination.pagination span {
  display: inline-block;
  margin-left: 6px;
  color: #98a1b5;
  font-size: 12px;
}
@media (max-width: 600px) {
  .has-results #pagination.pagination {
    gap: 6px;
    margin-top: 22px;
    margin-bottom: 24px;
    padding: 10px 0;
  }
  .has-results #pagination.pagination a,
  .has-results #pagination.pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
  }
}
