/* Light category directory: white list, quiet dividers, warm accent. */
body.editorial-index .p-side .category-directory,
body.editorial-index.estate-page .p-side .category-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 18px #28374708;
  overflow: hidden;
}
body.editorial-index .p-side .category-panel {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.category-directory .category-panel + .category-panel { border-top: 1px solid #e9edf0!important; }
.category-panel .category-panel__head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 15px; color: #263743; background: #fafbfc; border-bottom: 1px solid #edf0f2; }
.category-panel .category-panel__symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #f5dcc8; border-radius: 11px; background: #fff3e9; color: #ba6329; }
.category-panel .category-panel__symbol svg { display: block; width: 22px; height: 22px; }
.category-panel .category-panel__heading { min-width: 0; flex: 1; }
body.editorial-page .category-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 600!important; letter-spacing: -.2px; line-height: 1.3; color: #263743; }
.category-panel h2::before { content: none; }
.category-panel h2 a { color: inherit; text-decoration: none; }
.category-panel .category-panel__heading p { margin: 4px 0 0; color: #879099; font-size: 12px; line-height: 1.4; }
body.editorial-index .category-panel .cat-list { display: flex; flex-direction: column; gap: 0; padding: 5px 14px 10px; margin: 0; }
body.editorial-index .category-panel .cat-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 47px;
  padding: 11px 8px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  border-radius: 0;
  background: transparent;
  color: #46525e;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  transition: background .15s ease, color .15s ease;
}
body.editorial-index .category-panel .cat-btn:last-child { border-bottom: 0; }
.category-panel .category-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #f5f6f7; color: #7a8791; }
.category-panel .category-icon svg { display: block; width: 18px; height: 18px; }
.category-panel .category-label { flex: 1; min-width: 0; overflow-wrap: break-word; }
.category-panel svg.category-arrow { display: block; width: 14px; height: 14px; flex: 0 0 14px; color: #aab1b7; }
body.editorial-index .category-panel .cat-btn:hover,
body.editorial-index .category-panel .cat-btn[aria-current="page"] { padding: 11px 8px; background: #fff6ee; color: #a34e1b; box-shadow: inset 2px 0 #ea8c48; }
.category-panel .cat-btn:hover .category-icon,
.category-panel .cat-btn[aria-current="page"] .category-icon,
.category-panel .cat-btn:hover .category-arrow { color: #af5b23; }
.category-panel a:focus-visible { outline: 2px solid #c77535; outline-offset: -2px; border-radius: 3px; }
@media (max-width: 768px) {
  body.editorial-index .p-side .category-directory { width: 100%; min-width: 0; order: 1; }
  body.editorial-index .p-side .category-panel { width: 100%; padding: 0; }
  .category-panel .category-panel__head { padding: 17px 18px 14px; }
  body.editorial-index .category-panel .cat-btn { min-height: 48px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { body.editorial-index .category-panel .cat-btn { transition: none; } }

/* Show six complete rows; longer category menus scroll within their panel. */
body.editorial-index .category-panel .cat-list {
  --category-row-height: 44px;
  box-sizing: border-box;
  max-height: calc(6 * var(--category-row-height));
  padding: 0 14px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c4cbd1 #f6f7f8;
  scrollbar-gutter: stable;
}
body.editorial-index .category-panel .cat-btn,
body.editorial-index .category-panel .cat-btn:hover,
body.editorial-index .category-panel .cat-btn[aria-current="page"] {
  box-sizing: border-box;
  flex: 0 0 var(--category-row-height);
  height: var(--category-row-height);
  min-height: var(--category-row-height);
  padding: 8px;
}
.category-panel .cat-list::-webkit-scrollbar { width: 6px; }
.category-panel .cat-list::-webkit-scrollbar-track { background: #f6f7f8; }
.category-panel .cat-list::-webkit-scrollbar-thumb { background: #c4cbd1; border-radius: 6px; }

/* Match the compact text rows in the automobile category list. */
body.editorial-index .category-panel .cat-list { padding: 0; scrollbar-gutter: stable; }
body.editorial-index .category-panel .cat-btn,
body.editorial-index .category-panel .cat-btn:hover,
body.editorial-index .category-panel .cat-btn[aria-current="page"] { padding: 11px 12px; color: #0a1d3c; }
.category-panel .category-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.editorial-index .category-panel .cat-btn:hover { background: #f4f7fc; font-weight: 600; box-shadow: none; }
body.editorial-index .category-panel .cat-btn[aria-current="page"] { background: #f4f7fc; font-weight: 600; box-shadow: inset 2px 0 #bd7845; }

/* Unboxed line icons aligned with the category titles. */
.category-directory .category-panel .category-panel__symbol { width:28px; height:28px; flex:0 0 28px; align-self:flex-start; margin-top:0; border:0; border-radius:0; background:none; box-shadow:none; }
.category-directory .category-panel .category-panel__symbol svg { width:26px; height:26px; }
.category-directory .category-panel .category-panel__symbol--vehicles { color:#376b96; }
.category-directory .category-panel .category-panel__symbol--estate { color:#75618e; }
.category-directory .category-panel .category-panel__symbol--parts { color:#368479; }
