/* Хаб «Описание умений»: поиск, фильтры, алфавитный каталог (category-skill-desc.php + skill-desc-hub.js).
   Цвета и формы как у наших панелей: #16171c / #2a2a2f, радиус 6px у панелей и 4px у кнопок, никаких овалов. */
.sv-sd{ margin: 22px 0 0; font-family: Montserrat, Arial, sans-serif; }
.sv-sd *{ box-sizing: border-box; }

.sv-sd-panel{ padding: 16px 18px; background: #16171c; border: 1px solid #2a2a2f; border-radius: 6px; }
.sv-sd-lab{ display: block; margin: 0 0 6px; font: 600 10.5px/1 Montserrat, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8c8674; }

.sv-sd-bar{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 0 0 14px; }
.sv-sd-search{ display: block; min-width: 0; margin: 0; }
.sv-sd-search input{
  width: 100%; height: 42px; padding: 0 12px; margin: 0; background: #1c1e25; border: 1px solid #2a2a2f; border-radius: 4px;
  color: #f0e6cf; font: 500 14px/1 Montserrat, Arial, sans-serif; outline: none; box-shadow: none; appearance: none; -webkit-appearance: none;
}
.sv-sd-search input::placeholder{ color: #6d7689; }
.sv-sd-search input:focus{ border-color: #c89b5a; }

.sv-sd-reset{ height: 42px; padding: 0 16px; background: #1c1e25; border: 1px solid #2a2a2f; border-radius: 4px; color: #bdb6a4; font: 600 12px/1 Montserrat, Arial, sans-serif; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.sv-sd-reset:hover{ background: #23262e; border-color: #3a3d47; color: #f0e6cf; }
.sv-sd-reset--link{ display: inline; height: auto; padding: 0; background: none; border: 0; border-radius: 0; color: #ffcc00; font: inherit; font-weight: 600; }
.sv-sd-reset--link:hover{ background: none; color: #ffcc00; text-decoration: underline; }

.sv-sd-row{ margin: 0 0 12px; }
.sv-sd-chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.sv-sd-chip{ padding: 8px 12px; background: #1c1e25; border: 1px solid #2a2a2f; border-radius: 4px; color: #bdb6a4; font: 600 13px/1 Montserrat, Arial, sans-serif; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sv-sd-chip i{ margin-left: 4px; font-style: normal; font-weight: 500; color: #6d7689; }
.sv-sd-chip:hover{ background: #23262e; border-color: #3a3d47; color: #f0e6cf; }
.sv-sd-chip.is-on{ background: rgba(200,155,90,.13); border-color: #c89b5a; color: #f0e6cf; }
.sv-sd-chip.is-on i{ color: #c89b5a; }

.sv-sd-meta{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #2a2a2f; }
.sv-sd-count{ font-size: 13px; color: #bdb6a4; }
.sv-sd-count b{ color: #f0e6cf; font-weight: 600; }
.sv-sd-abc{ display: flex; flex-wrap: wrap; gap: 2px; }
.sv-sd-abc a{ min-width: 26px; padding: 5px 4px; text-align: center; border-radius: 3px; font: 600 12px/1 Montserrat, Arial, sans-serif; color: #ffcc00; text-decoration: none; }
.sv-sd-abc a:hover{ background: #1c1e25; }
.sv-sd-abc a.is-off{ color: #4a4d57; pointer-events: none; }

/* каталог по буквам */
.sv-sd-list{ margin: 22px 0 0; }
.sv-sd-sec{ margin: 0 0 22px; scroll-margin-top: 90px; }
.sv-sd-h{ margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; text-align: left !important; font: 700 13px/1.4 Montserrat, Arial, sans-serif !important; letter-spacing: .16em; text-transform: uppercase; color: #c89b5a !important; }
.sv-sd-h i{ margin-left: 6px; font-style: normal; font-weight: 500; letter-spacing: .02em; color: #6d7689; }
.sv-sd-ul{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sv-sd-it{ margin: 0; padding: 0; }
.sv-sd-it::before{ content: none; }
.sv-sd-it[hidden], .sv-sd-sec[hidden]{ display: none; }
.sv-sd-it a{ display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px 8px 8px; background: #16171c; border: 1px solid #2a2a2f; border-radius: 6px; text-decoration: none; transition: background .15s, border-color .15s; }
.sv-sd-it a:hover{ background: #1c1e25; border-color: #3a3d47; }
.sv-sd-it img{ flex: 0 0 32px; width: 32px !important; height: 32px !important; border: 1px solid #3a3d47; border-radius: 4px; background: #0e0f14; object-fit: cover; }
.sv-sd-it span{ min-width: 0; }
.sv-sd-it b{ display: block; font: 600 13.5px/1.3 Montserrat, Arial, sans-serif; color: #ffcc00; overflow-wrap: anywhere; }


.sv-sd-empty{ margin: 22px 0 0; padding: 18px 22px; background: #16171c; border: 1px solid #2a2a2f; border-radius: 6px; color: #bdb6a4; font-size: 14px; line-height: 1.6; }
.sv-sd-empty[hidden]{ display: none; }

@media (max-width: 720px){
  .sv-sd-panel{ padding: 14px; }
  .sv-sd-bar{ grid-template-columns: 1fr; gap: 10px; }
  .sv-sd-reset:not(.sv-sd-reset--link){ width: 100%; }
  .sv-sd-ul{ grid-template-columns: 1fr; }
  .sv-sd-chip{ padding: 8px 10px; font-size: 12.5px; }
  .sv-sd-abc a{ min-width: 24px; padding: 6px 3px; }
}

/* мета-строка умения: ID в рамке и цветной тип (без разделительных точек) */
.sv-sd-m{ display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; font-style: normal; }
.sv-sd-m u{ padding: 1px 6px; text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: #8c8674; border: 1px solid #2a2a2f; border-radius: 3px; white-space: nowrap; }
.sv-sd-m strong{ font-size: 11.5px; font-weight: 600; line-height: 1.3; color: #8c8674; }
.sv-sd-it .sv-ty-buff{ color: #8fb59a; }
.sv-sd-it .sv-ty-debuff{ color: #c98f86; }
.sv-sd-it .sv-ty-pdam{ color: #d0a458; }
.sv-sd-it .sv-ty-mdam{ color: #93a6cc; }
.sv-sd-it .sv-ty-heal{ color: #8fc4b0; }
.sv-sd-it .sv-ty-summon{ color: #b69fd0; }
.sv-sd-it .sv-ty-cancel{ color: #c9b08a; }
.sv-sd-it .sv-ty-passive, .sv-sd-it .sv-ty-toggle, .sv-sd-it .sv-ty-other{ color: #8c8674; }


/* подсказка-ссылка под фильтрами: страница профессии или разбор по теме */
.sv-sd-hint{ margin: 0 0 12px; padding: 10px 14px; background: #181a20; border: 1px solid #2a2a2f; border-radius: 4px; font-size: 13px; line-height: 1.5; color: #bdb6a4; }
.sv-sd-hint[hidden]{ display: none; }
.sv-sd-hint a{ color: #ffcc00; font-weight: 600; text-decoration: none; }

/* SEO-блок под каталогом */
.sv-sdseo{ margin: 34px 0 8px; font-family: Montserrat, Arial, sans-serif; }
.sv-sdseo h2{ margin: 0 0 14px; padding: 0; border: 0; text-align: left; font: 700 13px/1.4 Montserrat, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #c89b5a; }
.sv-sdseo-box{ margin: 0 0 30px; padding: 18px 22px; background: #16171c; border: 1px solid #2a2a2f; border-radius: 6px; color: #bdb6a4; font-size: 14.5px; line-height: 1.7; }
.sv-sdseo-box p{ margin: 0; }
.sv-sdseo-box p + p{ margin-top: 10px; }
.sv-sdseo-box b{ color: #f0e6cf; font-weight: 600; }
.sv-sdseo-box a{ color: #ffcc00; text-decoration: none; }
.sv-sdseo-list{ list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sv-sdseo-list li{ margin: 0; padding: 0; }
.sv-sdseo-list li::before{ content: none; }
.sv-sdseo-list a{ display: block; height: 100%; padding: 13px 16px; background: #16171c; border: 1px solid #2a2a2f; border-radius: 6px; text-decoration: none; color: #bdb6a4; font-size: 13px; line-height: 1.5; transition: background .2s, border-color .2s; }
.sv-sdseo-list a:hover{ background: #1c1e25; border-color: #3a3d47; }
.sv-sdseo-list a b{ display: block; margin-bottom: 2px; color: #ffcc00; font-weight: 600; font-size: 14px; }
.sv-sdseo-list a b i{ margin-left: 4px; font-style: normal; font-weight: 500; color: #8c8674; }
.sv-sdseo-list a span{ display: block; color: #8c8674; }
@media (max-width: 720px){
  .sv-sdseo-list{ grid-template-columns: 1fr; }
  .sv-sdseo-box{ padding: 16px; font-size: 14px; }
}

/* выбор профессии: кнопка и выпадающее дерево (то же дерево профессий, что в навигации на страницах умений) */
.sv-pk{ position: relative; display: flex; align-items: stretch; gap: 6px; max-width: 460px; }
.sv-pk-btn{ flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; height: 42px; padding: 0 14px; background: #1c1e25; border: 1px solid #2a2a2f; border-radius: 4px; color: #f0e6cf; font: 600 14px/1 Montserrat, Arial, sans-serif; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.sv-pk-btn:hover{ background: #23262e; border-color: #3a3d47; }
.sv-pk-btn[aria-expanded="true"]{ border-color: #c89b5a; }
.sv-pk-cur{ display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sv-pk-cur img{ flex: 0 0 24px; width: 24px; height: 24px; border-radius: 3px; object-fit: cover; }
.sv-pk.has-val .sv-pk-btn{ border-color: #c89b5a; background: rgba(200,155,90,.10); }
.sv-pk-chev{ flex: 0 0 8px; width: 8px; height: 8px; margin-right: 2px; border-right: 2px solid #c89b5a; border-bottom: 2px solid #c89b5a; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.sv-pk-btn[aria-expanded="true"] .sv-pk-chev{ transform: rotate(-135deg) translateY(-2px); }
.sv-pk-clear{ flex: 0 0 42px; height: 42px; background: #1c1e25; border: 1px solid #2a2a2f; border-radius: 4px; color: #bdb6a4; font-size: 20px; line-height: 1; cursor: pointer; }
.sv-pk-clear:hover{ background: #23262e; color: #f0e6cf; border-color: #3a3d47; }
.sv-pk-clear[hidden]{ display: none; }

.sv-pk-pop{ position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: min(720px, calc(100vw - 32px)); max-height: min(560px, 70vh); overflow: auto; padding: 14px; background: #14171d; border: 1px solid #323641; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.sv-pk-pop[hidden]{ display: none; }
.sv-pk-quick{ display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sv-pk-q{ padding: 8px 12px; background: #1c1e25; border: 1px solid #2a2a2f; border-radius: 4px; color: #bdb6a4; font: 600 12.5px/1 Montserrat, Arial, sans-serif; cursor: pointer; }
.sv-pk-q:hover{ background: #23262e; color: #f0e6cf; border-color: #3a3d47; }
.sv-pk-tabs{ margin: 0 0 12px; }
.sv-pk-pane{ display: none; }
.sv-pk-pane.is-active{ display: block; }
.sv-pk-base{ margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid #22252c; }
.sv-pk-base:last-child{ margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.sv-pk-bb{ display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; padding: 0; background: none; border: 0; color: #ecc982; font: 500 14px/1.2 Unbounded, Montserrat, Arial, sans-serif; letter-spacing: .02em; cursor: pointer; text-align: left; }
.sv-pk-bb span{ font: 500 11px/1 Montserrat, Arial, sans-serif; letter-spacing: 0; color: #8c8674; }
.sv-pk-bb:hover{ color: #ffcc00; }
.sv-pk-bb.is-current{ color: #ffcc00; }

/* плитки профессий-кнопки: как в навигации на страницах умений (там это ссылки) */
.sv-pk-pop .sv-tr{ margin: 0; }
.sv-pk-pop .sv-tr button.sv-pk-c{ width: 100%; min-height: var(--row); display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 4px; background: #1a1e26; border: 1px solid transparent; color: #f1ead7; font: 600 13px/1.2 Montserrat, Arial, sans-serif; text-align: left; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.sv-pk-pop .sv-tr button.sv-pk-c:hover{ background: #252a34; color: #ecc982; }
.sv-pk-pop .sv-tr button.sv-pk-c.is-current{ background: #d0a458; border-color: #d0a458; color: #14171d; }
.sv-pk-pop .sv-tr button.sv-pk-c span{ min-width: 0; overflow-wrap: break-word; }
.sv-pk-pop .sv-tr__grp:first-of-type{ border-top: 0; padding-top: 0; }
@media (max-width: 720px){
  .sv-pk{ max-width: none; }
  .sv-pk-pop{ position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 78vh; }
  .sv-pk-pop .sv-tr{ --row: 42px; --gap: 22px; }
  .sv-pk-pop .sv-tr button.sv-pk-c{ gap: 6px; padding: 6px 6px 6px 6px; font-size: 11.5px; }
  .sv-pk-pop .sv-tr button.sv-pk-c .sv-cm{ flex-basis: 24px; width: 24px; height: 24px; }
  .sv-pk-pop .sv-tr .sv-tr__row{ grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); }
}
