.pkp_page_index .pkp_structure_content,
.jl-home-shell {
  max-width: none !important;
}

.pkp_page_index .pkp_structure_main {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.jl-home-shell {
  padding: 24px 0 48px;
  background: #f8fafc;
}

.jl-home-shell .gp-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.jl-home-layout {
  display: grid;
  grid-template-columns: minmax(230px, 260px) minmax(0, 1fr) minmax(230px, 260px);
  grid-template-areas: "left main right";
  gap: 24px;
  align-items: start;
}

.jl-home-main { grid-area: main; min-width: 0; }
.jl-home-sidebar-left { grid-area: left; }
.jl-home-sidebar-right { grid-area: right; }
.jl-home-sidebar { display: flex; flex-direction: column; gap: 16px; }

.jl-panel,
.jl-directory-toolbar,
.jl-alpha-sticky {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.jl-panel {
  padding: 18px;
}

.jl-panel-heading {
  margin-bottom: 16px;
}

.jl-panel-kicker {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jl-panel h2,
.jl-directory-heading h1 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 900;
}

.jl-panel h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 800;
}

.jl-panel-group + .jl-panel-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.jl-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.jl-directory-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.jl-directory-heading p,
.jl-control-note,
.jl-results-summary {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.jl-search-wrap {
  position: relative;
  width: 100%;
  justify-self: end;
}

.jl-search-wrap i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.jl-search-wrap input,
.jl-select-wrap select,
.jl-select-wrap input {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.jl-search-wrap input {
  padding: 0 14px 0 42px;
}

.jl-select-wrap {
  position: relative;
}

.jl-select-wrap select,
.jl-select-wrap input {
  appearance: none;
  padding: 0 40px 0 12px;
}

.jl-select-wrap i {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.jl-control-stack,
.jl-control-grid {
  display: grid;
  gap: 8px;
}

.jl-control-grid {
  grid-template-columns: 1fr 1fr;
}

.jl-tool-btn,
.jl-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.jl-tool-btn:hover,
.jl-tool-btn:focus {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.jl-tool-btn.is-active {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.jl-tool-btn.is-disabled,
.jl-tool-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  color: #94a3b8;
}

.jl-tool-count {
  flex-shrink: 0;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
}

.jl-tool-count:empty {
  display: none;
}

.jl-tool-btn.is-active .jl-tool-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.jl-reset-btn {
  justify-content: center;
  border-color: #fecaca;
  color: #dc2626;
}

.jl-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.jl-switch-row input {
  width: 18px;
  height: 18px;
  accent-color: #dc2626;
}

.jl-alpha-sticky {
  position: static;
  margin-top: 16px;
  padding: 12px;
}

.jl-alpha-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.jl-alpha-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.jl-alpha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 22px;
  padding: 0 5px;
  border-radius: 5px;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  flex: 0 0 auto;
}

.jl-clear-letter {
  display: none;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: #fff;
  color: #dc2626;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.jl-clear-letter.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.jl-alpha-btn:hover,
.jl-alpha-btn:focus {
  background: #fee2e2;
  color: #b91c1c;
}

.jl-alpha-btn.active {
  background: #dc2626;
  color: #fff;
}

.jl-alpha-btn.disabled {
  color: #cbd5e1;
  pointer-events: none;
}

.jl-list-section {
  margin-top: 16px;
}

.jl-list {
  display: flex;
  flex-direction: column;
}

.jl-letter-header {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
}

.jl-letter-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  border-radius: 8px;
  background: #fff1f2;
  color: #dc2626;
  font-weight: 900;
}

.jl-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 152px;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  scroll-margin-top: 96px;
}

.jl-item-thumb,
.jl-item-thumb img,
.jl-item-thumb-placeholder {
  width: 88px;
}

.jl-item-thumb img,
.jl-item-thumb-placeholder {
  height: 118px;
  border-radius: 5px;
  background: #f1f5f9;
  object-fit: cover;
}

.jl-item-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.6rem;
}

.jl-item-body {
  min-width: 0;
}

.jl-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.jl-badge-oa,
.jl-badge-pr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.jl-badge-oa {
  background: #ecfdf5;
  color: #16a34a;
}

.jl-badge-pr {
  background: #fff1f2;
  color: #dc2626;
}

.jl-item-title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  line-height: 1.36;
  font-weight: 850;
}

.jl-item-title a {
  color: #0f172a !important;
  text-decoration: none;
}

.jl-item-title a:hover,
.jl-item-title a:focus {
  color: #dc2626 !important;
}

.jl-item-desc {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.58;
}

.jl-item-actions {
  display: grid;
  gap: 8px;
  align-self: start;
}

.jl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.jl-btn-primary {
  background: #dc2626;
  color: #fff !important;
}

.jl-btn-outline {
  border-color: #fecaca;
  background: #fff;
  color: #dc2626 !important;
}

.jl-home-layout.is-compact .jl-item {
  grid-template-columns: 68px minmax(0, 1fr) 132px;
  gap: 12px;
  padding: 12px 14px;
}

.jl-home-layout.is-compact .jl-item-thumb,
.jl-home-layout.is-compact .jl-item-thumb img,
.jl-home-layout.is-compact .jl-item-thumb-placeholder {
  width: 68px;
}

.jl-home-layout.is-compact .jl-item-thumb img,
.jl-home-layout.is-compact .jl-item-thumb-placeholder {
  height: 91px;
}

.jl-home-layout.hide-covers .jl-item {
  grid-template-columns: minmax(0, 1fr) 150px;
}

.jl-home-layout.hide-covers .jl-item-thumb {
  display: none;
}

.jl-home-layout.hide-descriptions .jl-item-desc {
  display: none;
}

.jl-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.jl-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 800;
}

.jl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: #64748b;
  text-align: center;
}

.jl-empty i {
  color: #94a3b8;
  font-size: 1.8rem;
}

.stats-section {
  display: none;
}

@media (max-width: 1199.98px) {
  .jl-home-layout {
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr) minmax(210px, 240px);
    gap: 18px;
  }

  .jl-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .jl-item-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .jl-home-shell .gp-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .jl-home-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "left"
      "right";
  }

  .jl-directory-heading {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .jl-item,
  .jl-home-layout.is-compact .jl-item,
  .jl-home-layout.hide-covers .jl-item {
    grid-template-columns: 1fr;
  }

  .jl-item-thumb,
  .jl-item-thumb img,
  .jl-item-thumb-placeholder,
  .jl-home-layout.is-compact .jl-item-thumb,
  .jl-home-layout.is-compact .jl-item-thumb img,
  .jl-home-layout.is-compact .jl-item-thumb-placeholder {
    width: 100%;
  }

  .jl-item-thumb img,
  .jl-item-thumb-placeholder,
  .jl-home-layout.is-compact .jl-item-thumb img,
  .jl-home-layout.is-compact .jl-item-thumb-placeholder {
    height: 210px;
  }

  .jl-item-actions {
    grid-template-columns: 1fr;
  }
}

/* Update 2.12: readable mobile directory with visible tool panels */
@media (max-width: 767.98px) {
  .jl-home-shell {
    padding: 10px 0 28px;
  }

  .jl-home-shell .gp-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .jl-home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "toolbar toolbar"
      "left right"
      "list list" !important;
    gap: 10px !important;
    align-items: start;
  }

  .jl-home-main,
  .jl-home-sidebar-left,
  .jl-home-sidebar-right {
    min-width: 0;
  }

  .jl-home-main {
    display: contents;
  }

  .jl-directory-toolbar {
    grid-area: toolbar;
  }

  .jl-list-section {
    grid-area: list;
  }

  .jl-home-sidebar {
    gap: 10px;
  }

  .jl-panel,
  .jl-directory-toolbar,
  .jl-alpha-sticky {
    border-radius: 6px;
    box-shadow: none;
  }

  .jl-directory-toolbar,
  .jl-panel {
    padding: 10px;
  }

  .jl-directory-heading {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }

  .jl-directory-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .jl-directory-heading h1 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .jl-directory-heading p,
  .jl-results-summary,
  .jl-control-note,
  .jl-switch-row {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .jl-search-wrap input {
    min-height: 42px;
    padding: 0 12px 0 38px;
    font-size: 0.9rem;
  }

  .jl-search-wrap i {
    left: 13px;
    font-size: 0.9rem;
  }

  .jl-alpha-sticky {
    margin-top: 8px;
    padding: 6px 8px;
  }

  .jl-alpha-bar {
    gap: 3px;
  }

  .jl-alpha-btn {
    min-width: 20px;
    height: 21px;
    padding: 0 4px;
    font-size: 0.6rem;
    border-radius: 4px;
  }

  .jl-count {
    flex-shrink: 0;
    font-size: 0.72rem;
  }

  .jl-clear-letter {
    min-height: 21px;
    padding: 0 6px;
    font-size: 0.58rem;
  }

  .jl-letter-header {
    min-height: 34px;
    padding: 8px;
  }

  .jl-letter-header span {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .jl-panel-heading {
    gap: 4px;
    margin-bottom: 8px;
  }

  .jl-panel-kicker {
    font-size: 0.58rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .jl-panel h2 {
    font-size: 0.95rem;
    line-height: 1.18;
  }

  .jl-panel h3 {
    margin-bottom: 6px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .jl-panel-group + .jl-panel-group {
    margin-top: 10px;
    padding-top: 10px;
  }

  .jl-select-wrap select,
  .jl-select-wrap input {
    min-height: 34px;
    padding: 0 24px 0 8px;
    font-size: 0.75rem;
  }

  .jl-select-wrap i {
    right: 8px;
    font-size: 0.65rem;
  }

  .jl-control-stack {
    gap: 5px;
  }

  .jl-control-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .jl-tool-btn,
  .jl-reset-btn {
    min-height: 32px;
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 0.72rem;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .jl-tool-count {
    display: none;
  }

  .jl-switch-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 6px;
    margin-top: 8px;
  }

  .jl-switch-row input {
    width: 16px;
    height: 16px;
  }

  .jl-active-filters {
    min-height: 18px;
    gap: 3px;
  }

  .jl-filter-chip {
    min-height: 20px;
    padding: 0 6px;
    font-size: 0.65rem;
  }

  .jl-home-sidebar-right .jl-panel:not(.jl-results-toolbar) {
    max-height: 180px;
    overflow: hidden;
  }

  .jl-item,
  .jl-home-layout.is-compact .jl-item,
  .jl-home-layout.hide-covers .jl-item {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 10px;
    padding: 12px 10px;
  }

  .jl-item-thumb,
  .jl-item-thumb img,
  .jl-item-thumb-placeholder,
  .jl-home-layout.is-compact .jl-item-thumb,
  .jl-home-layout.is-compact .jl-item-thumb img,
  .jl-home-layout.is-compact .jl-item-thumb-placeholder {
    width: 62px !important;
  }

  .jl-item-thumb img,
  .jl-item-thumb-placeholder,
  .jl-home-layout.is-compact .jl-item-thumb img,
  .jl-home-layout.is-compact .jl-item-thumb-placeholder {
    height: 83px !important;
    border-radius: 5px;
  }

  .jl-item-meta {
    gap: 3px;
    margin-bottom: 4px;
  }

  .jl-badge-oa,
  .jl-badge-pr {
    gap: 3px;
    padding: 2px 5px;
    font-size: 0.56rem;
    line-height: 1.1;
  }

  .jl-item-title {
    margin-bottom: 5px;
    font-size: 0.92rem;
    line-height: 1.28;
  }

  .jl-item-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .jl-item-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .jl-btn {
    min-height: 32px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    line-height: 1.1;
  }
}

@media (max-width: 390px) {
  .jl-home-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "toolbar"
      "left"
      "right"
      "list" !important;
    gap: 10px !important;
  }

  .jl-directory-toolbar,
  .jl-panel {
    padding: 10px;
  }
}

/* Update 2.14: downscaled desktop/tablet density */
.jl-home-shell {
  padding: 14px 0 30px !important;
}

.jl-home-shell .gp-container {
  max-width: 1320px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.jl-home-layout {
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) minmax(190px, 220px) !important;
  gap: 14px !important;
}

.jl-panel,
.jl-directory-toolbar,
.jl-alpha-sticky {
  border-radius: 5px !important;
  box-shadow: none !important;
}

.jl-panel,
.jl-directory-toolbar {
  padding: 12px !important;
}

.jl-panel-heading {
  margin-bottom: 10px !important;
}

.jl-panel-kicker {
  margin-bottom: 4px !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.07em !important;
}

.jl-panel h2,
.jl-directory-heading h1 {
  font-size: 1rem !important;
  line-height: 1.15 !important;
}

.jl-panel h3 {
  margin-bottom: 6px !important;
  font-size: 0.78rem !important;
}

.jl-panel-group + .jl-panel-group {
  margin-top: 10px !important;
  padding-top: 10px !important;
}

.jl-directory-heading p,
.jl-control-note,
.jl-results-summary {
  font-size: 0.76rem !important;
  line-height: 1.42 !important;
}

.jl-search-wrap input,
.jl-select-wrap input,
.jl-select-wrap select {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 5px !important;
  font-size: 0.78rem !important;
}

.jl-search-wrap input {
  padding-left: 34px !important;
}

.jl-search-wrap i {
  left: 11px !important;
  font-size: 0.78rem !important;
}

.jl-tool-btn,
.jl-reset-btn {
  min-height: 30px !important;
  padding: 5px 7px !important;
  border-radius: 5px !important;
  font-size: 0.72rem !important;
  line-height: 1.18 !important;
}

.jl-alpha-sticky {
  margin-top: 10px !important;
  padding: 6px 8px !important;
}

.jl-alpha-bar {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin !important;
}

.jl-alpha-btn {
  min-width: 20px !important;
  height: 21px !important;
  padding: 0 4px !important;
  border-radius: 4px !important;
  font-size: 0.6rem !important;
}

.jl-count {
  font-size: 0.7rem !important;
}

.jl-letter-header {
  margin: 12px 0 8px !important;
  min-height: 32px !important;
}

.jl-letter-header span {
  min-width: 30px !important;
  height: 28px !important;
  border-radius: 5px !important;
  font-size: 0.92rem !important;
}

.jl-item {
  grid-template-columns: 72px minmax(0, 1fr) 132px !important;
  gap: 12px !important;
  padding: 12px 14px !important;
}

.jl-item + .jl-item {
  margin-top: 8px !important;
}

.jl-item-thumb,
.jl-item-thumb img,
.jl-item-thumb-placeholder {
  width: 72px !important;
}

.jl-item-thumb img,
.jl-item-thumb-placeholder {
  height: 96px !important;
  border-radius: 4px !important;
}

.jl-item-meta {
  gap: 5px !important;
  margin-bottom: 6px !important;
}

.jl-badge-oa,
.jl-badge-pr {
  padding: 3px 6px !important;
  border-radius: 4px !important;
  font-size: 0.58rem !important;
}

.jl-item-title {
  margin-bottom: 5px !important;
  font-size: 0.92rem !important;
  line-height: 1.32 !important;
}

.jl-item-desc {
  font-size: 0.78rem !important;
  line-height: 1.48 !important;
}

.jl-btn {
  min-height: 32px !important;
  padding: 0 9px !important;
  border-radius: 5px !important;
  font-size: 0.7rem !important;
}

@media (max-width: 1180px) {
  .jl-home-layout {
    grid-template-columns: minmax(170px, 205px) minmax(0, 1fr) minmax(170px, 205px) !important;
    gap: 12px !important;
  }
}

@media (max-width: 767.98px) {
  .jl-home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "toolbar toolbar"
      "left right"
      "list list" !important;
  }
}

@media (max-width: 390px) {
  .jl-home-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "toolbar"
      "left"
      "right"
      "list" !important;
  }
}

/* v2.25: alphabet filter must be compact without horizontal scrolling */
.jl-alpha-inner,
.jl-alpha-bar {
  overflow: visible !important;
}

.jl-alpha-bar {
  display: grid !important;
  grid-template-columns: 36px repeat(26, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
}

.jl-alpha-bar::-webkit-scrollbar {
  display: none !important;
}

.jl-alpha-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 23px !important;
  padding: 0 2px !important;
  border-radius: 4px !important;
  font-size: 0.68rem !important;
  line-height: 23px !important;
  text-align: center !important;
}

.jl-drawer-alpha-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.jl-clear-drawer-letter {
  display: none;
  margin-top: 8px;
}

.jl-clear-drawer-letter.is-visible {
  display: inline-flex;
}

.jl-mobile-result-tools {
  display: none;
}

.jl-alpha-all {
  font-size: 0.66rem !important;
  font-weight: 850 !important;
}

@media (max-width: 767.98px) {
  .jl-alpha-sticky {
    display: none !important;
  }

  .jl-drawer-alpha-bar .jl-alpha-btn {
    height: 24px !important;
    line-height: 24px !important;
    font-size: 0.66rem !important;
  }

  .jl-drawer-alpha-bar .jl-alpha-all {
    grid-column: span 2;
  }
}

.jl-mobile-tools-backdrop,
.jl-mobile-tools-bar {
  display: none;
}

@media (max-width: 767.98px) {
  body.jl-tools-open {
    overflow: hidden;
  }

  .jl-home-shell {
    padding-bottom: 86px !important;
  }

  .jl-home-shell .gp-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .jl-home-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "toolbar"
      "list" !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .jl-home-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .jl-home-sidebar-left,
  .jl-home-sidebar-right {
    display: none !important;
  }

  body.jl-tools-open .jl-home-sidebar-left {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 74px !important;
    z-index: 10072 !important;
    display: flex !important;
    max-height: min(72vh, 620px) !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    padding: 0 !important;
  }

  body.jl-tools-open .jl-home-sidebar-left .jl-panel {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28) !important;
  }

  .jl-mobile-tools-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(15, 23, 42, 0.42);
  }

  body.jl-tools-open .jl-mobile-tools-backdrop {
    display: block;
  }

  .jl-mobile-tools-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 10080;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  }

  .jl-mobile-tools-toggle {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: #cf3a32;
    color: #fff;
    font-weight: 850;
    font-size: 0.86rem;
    cursor: pointer;
  }

  .jl-mobile-tools-tabs {
    display: none !important;
  }

  .jl-mobile-result-tools {
    display: block;
  }

  .jl-directory-toolbar,
  .jl-list-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

.jl-insight-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 12px;
  margin-top: 12px;
}

.jl-insight-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 14px;
}

.jl-insight-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 900;
}

.jl-mini-list {
  display: grid;
  gap: 8px;
}

.jl-mini-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-left: 3px solid #dc2626;
  border-radius: 5px;
  color: #334155;
  text-decoration: none;
  background: #fff;
}

.jl-mini-list strong {
  display: block;
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 850;
}

.jl-mini-list span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.4;
}

.jl-issue-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jl-issue-chip-row a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #fecaca;
  border-radius: 4px;
  background: #fff7f7;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

/* v2.52 index insight polish */
.jl-insight-strip-dynamic {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  gap: 14px !important;
  align-items: start !important;
}

.jl-insight-strip-dynamic .jl-insight-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

.jl-insight-strip-dynamic #jlFeaturedArticles,
.jl-insight-strip-dynamic #jlPopularIssues {
  min-width: 0 !important;
}

.jl-insight-strip-dynamic .jl-dynamic-article {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 72px !important;
  padding: 8px 10px !important;
}

.jl-insight-strip-dynamic .jl-dynamic-article img {
  width: 52px !important;
  height: 62px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  margin: 0 !important;
}

.jl-insight-strip-dynamic .jl-dynamic-article span {
  min-width: 0 !important;
}

.jl-insight-strip-dynamic .jl-dynamic-article strong {
  display: -webkit-box !important;
  color: #0f172a !important;
  font-size: .86rem !important;
  line-height: 1.28 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.jl-insight-strip-dynamic .jl-dynamic-article em {
  display: -webkit-box !important;
  color: #64748b !important;
  font-size: .74rem !important;
  line-height: 1.25 !important;
  font-style: normal !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

#jlPopularIssues.jl-issue-chip-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

#jlPopularIssues .jl-dynamic-issue {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 8px 10px !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #0f172a !important;
  text-align: left !important;
}

#jlPopularIssues .jl-dynamic-issue img {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  margin: 0 !important;
}

#jlPopularIssues .jl-dynamic-issue span {
  display: -webkit-box !important;
  min-width: 0 !important;
  color: #0f172a !important;
  font-size: .78rem !important;
  line-height: 1.28 !important;
  font-weight: 850 !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 1100px) {
  .jl-insight-strip-dynamic {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  #jlPopularIssues .jl-dynamic-issue {
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  #jlPopularIssues .jl-dynamic-issue img {
    width: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 767.98px) {
  .jl-insight-strip {
    grid-template-columns: 1fr;
  }
}

/* v2.50 directory focus: make journal list the primary content. */
.jl-home-main > .jl-list-section {
  margin-top: 0 !important;
}

.jl-home-main > .jl-insight-strip-dynamic {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.jl-home-sidebar-right .jl-panel {
  padding: 12px !important;
}

.jl-home-sidebar-right .jl-panel + .jl-panel {
  margin-top: 10px !important;
}

.jl-home-sidebar-right .jl-panel-heading h2,
.jl-results-toolbar .jl-panel-heading h2 {
  font-size: 1.05rem !important;
}

.jl-insight-strip-dynamic .jl-insight-card {
  min-height: 0 !important;
}

@media (min-width: 992px) {
  .jl-insight-strip-dynamic {
    grid-template-columns: minmax(0, 1fr) minmax(210px, .42fr) !important;
  }
}

@media (max-width: 767.98px) {
  .jl-home-main > .jl-insight-strip-dynamic {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* v2.52 index insight polish final guard */
@media (min-width: 992px) {
  .jl-home-main > .jl-insight-strip-dynamic {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  }
}

/* v2.63 home hierarchy polish */
.jl-home-shell {
  padding: 22px 0 34px !important;
  background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%) !important;
}

.jl-home-shell .gp-container {
  max-width: 1440px !important;
}

.jl-home-layout {
  gap: 18px !important;
}

.jl-directory-toolbar {
  grid-template-columns: minmax(0, .95fr) minmax(260px, .7fr) !important;
  padding: 16px !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04) !important;
}

.jl-directory-heading {
  align-items: center !important;
}

.jl-directory-heading h1 {
  margin-bottom: 4px !important;
  color: #06122b !important;
  font-size: 1.3rem !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
}

.jl-results-summary {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  padding: 6px 10px !important;
  border: 1px solid #e5ebf3 !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #52647d !important;
  font-size: .8rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.jl-alpha-sticky {
  padding: 10px 12px !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.jl-item,
.jl-home-layout.is-compact .jl-item {
  grid-template-columns: 76px minmax(0, 1fr) 136px !important;
  gap: 14px !important;
  padding: 14px 16px !important;
}

.jl-item + .jl-item {
  margin-top: 0 !important;
}

.jl-item-thumb,
.jl-item-thumb img,
.jl-item-thumb-placeholder,
.jl-home-layout.is-compact .jl-item-thumb,
.jl-home-layout.is-compact .jl-item-thumb img,
.jl-home-layout.is-compact .jl-item-thumb-placeholder {
  width: 76px !important;
}

.jl-item-thumb img,
.jl-item-thumb-placeholder,
.jl-home-layout.is-compact .jl-item-thumb img,
.jl-home-layout.is-compact .jl-item-thumb-placeholder {
  height: 98px !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12) !important;
}

.jl-item-title {
  max-width: 780px !important;
  margin-bottom: 5px !important;
  font-size: 1rem !important;
  line-height: 1.34 !important;
}

.jl-item-desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-width: 760px !important;
  color: #52647d !important;
  font-size: .84rem !important;
  line-height: 1.48 !important;
}

.jl-item-actions .jl-btn {
  min-height: 36px !important;
  border-radius: 6px !important;
  font-size: .8rem !important;
}

.jl-insight-strip-dynamic {
  margin-top: 16px !important;
  gap: 16px !important;
}

.jl-insight-card {
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035) !important;
}

.jl-insight-card h2 {
  font-size: 1.12rem !important;
  line-height: 1.24 !important;
}

#jlPopularIssues .jl-dynamic-issue,
.jl-insight-strip-dynamic .jl-dynamic-article {
  border-color: #dbe3ef !important;
  border-radius: 7px !important;
}

.gp-popular-journals {
  padding: 26px 0 44px !important;
  background: #fff !important;
}

.gp-popular-journals > .gp-container {
  max-width: 1440px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.gp-popular-journals-head {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 16px !important;
}

.gp-popular-journals-head h2 {
  margin: 0 0 5px !important;
  color: #06122b !important;
  font-size: 1.45rem !important;
  line-height: 1.22 !important;
  font-weight: 900 !important;
}

.gp-popular-journals-head p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: .94rem !important;
  line-height: 1.45 !important;
}

.gp-popular-journals-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.gp-popular-journal-card {
  display: grid !important;
  grid-template-rows: auto auto 1fr auto !important;
  min-height: 100% !important;
  padding: 14px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
}

.gp-popular-journal-cover {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  margin: 0 0 12px !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  object-fit: cover !important;
}

.gp-popular-journal-card h3 {
  margin: 0 0 8px !important;
  color: #06122b !important;
  font-size: .98rem !important;
  line-height: 1.32 !important;
  font-weight: 900 !important;
}

.gp-popular-journal-card h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.gp-popular-journal-card p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 0 13px !important;
  color: #52647d !important;
  font-size: .86rem !important;
  line-height: 1.48 !important;
}

.gp-popular-journal-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: auto !important;
}

@media (max-width: 1100px) {
  .gp-popular-journals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .jl-home-shell {
    padding: 14px 0 28px !important;
  }

  .jl-directory-toolbar {
    grid-template-columns: 1fr !important;
  }

  .jl-item,
  .jl-home-layout.is-compact .jl-item {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .jl-item-actions {
    grid-column: 1 / -1 !important;
  }

  .gp-popular-journals-head {
    display: grid !important;
    align-items: start !important;
  }

  .gp-popular-journals-grid {
    grid-template-columns: 1fr !important;
  }
}
