/* HRUS Supplier Directory, v2. Only the directory content is restyled.
   Shared hero, navigation, subscription, and footer are intentionally unchanged. */
body[data-page="suppliers-index"] {
    --sd-green: #4e8625;
    --sd-accent: #76b82e;
    --sd-ink: #182a24;
    --sd-muted: #66736a;
    --sd-line: #e0e7dd;
    --sd-field: #f7f9f6
}

body[data-page="suppliers-index"] [hidden] {
    display: none!important
}

.sd-sr {
    position: absolute!important;
    width: 1px!important;
    height: 1px!important;
    padding: 0!important;
    margin: -1px!important;
    overflow: hidden!important;
    clip-path: inset(50%)!important;
    white-space: nowrap!important;
    border: 0!important
}

.sd-directory-section {
    padding: 78px 0 112px;
    background: #fff;
}

.sd-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    min-width: 0;
}

.sd-controls {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(250px,330px);
    gap: 20px;
    align-items: center;
    margin: 0 0 48px;
}

.sd-search,.sd-filter {
    position: relative;
    min-width: 0;
    min-height: 58px;
    height: 58px;
    background: var(--sd-field);
    border: 1px solid #dce5d6;
    border-radius: 999px;
    transition: border-color .2s,background-color .2s,box-shadow .2s;
}

.sd-search:hover,.sd-filter:hover {
    border-color: #c5d7be
}

.sd-search:focus-within,.sd-filter:focus-within {
    border-color: var(--sd-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(118,184,46,.1)
}

.sd-search__icon {
    position: absolute;
    inset-inline-start: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #4e822e;
    pointer-events: none;
    width: 21px;
    height: 21px
}

.sd-search svg,.sd-filter svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none
}

.sd-search input {
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    outline: 0!important;
    background: transparent;
    border: none;
    box-shadow: none!important;
    border-radius: 999px;
    color: var(--sd-ink);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    padding: 9px 55px 9px 54px;
    text-overflow: ellipsis
}

.sd-search input::placeholder {
    color: #687468;
    opacity: 1
}

.sd-search input::-webkit-search-cancel-button {
    display: none
}

.sd-search__clear {
    position: absolute;
    inset-inline-end: 11px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #627762;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    padding: 7px
}

.sd-search__clear:hover {
    background: #e9f2e3;
    color: #376b24
}

.sd-search__clear svg {
    width: 15px;
    height: 15px
}

.sd-filter select {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    outline: 0!important;
    box-shadow: none!important;
    border-radius: 999px;
    padding: 10px 23px 10px 53px;
    direction: rtl;
    text-overflow: ellipsis;
    font-size: 17px;
    line-height: 1.4;
    color: #35483a;
    cursor: pointer;
    font-weight: 400
}

.sd-filter select option {
    background: #fff;
    color: #1b3125
}

.sd-filter__arrow {
    position: absolute;
    top: 50%;
    inset-inline-end: 20px;
    transform: translateY(-50%);
    color: #638252;
    pointer-events: none;
    height: 19px;
}

.sd-filter__arrow svg {
    width: 18px;
    height: 18px
}

.sd-list {
    border-top: 1px solid var(--sd-line);
}

.sd-entry {
    position: relative;
    display: grid;
    grid-template-columns: 200px minmax(0,1fr) 172px;
    align-items: center;
    column-gap: 31px;
    min-height: 195px;
    padding: 29px 0;
    border-bottom: 1px solid var(--sd-line);
    color: var(--sd-ink);
    transition: background-color .2s;
}

.sd-entry::before {
    content: none!important
}

.sd-entry__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 102px;
    height: 102px;
    padding-inline-end: 15px;
    padding-inline-start: 15px;
    border-inline-end:1px solid #e4ebe1;
    }

.sd-entry__logo img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 90px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .25s ease
}

.sd-entry__logo:hover img {
    transform: scale(1.035)
}

.sd-entry__body {
    min-width: 0;
}

.sd-entry__heading {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 11px;
}

.sd-entry__name {
    font-family: inherit;
    font-size: 27px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--sd-ink);
    margin: 0;
}

.sd-entry__name a {
    color: inherit;
    text-decoration: none;
}

.sd-entry__name a:hover {
    color: var(--sd-green)
}

.sd-entry__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #50852d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.sd-entry__category-dot {
    display: block;
    width: 5px;
    height: 5px;
    background: #83b740;
    border-radius: 50%;
    flex: none;
}

.sd-entry__description {
    max-width: 540px;
    color: var(--sd-muted);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
    margin: 0;
}

.sd-entry__action {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--sd-green);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.sd-entry__action-icon {
    width: 37px;
    height: 37px;
    border: 1px solid #d5e3cc;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background-color .2s,border-color .2s,transform .2s
}

.sd-entry__action-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sd-entry__action:hover {
    color: #315f1d;
    text-decoration: none
}

.sd-entry__action:hover .sd-entry__action-icon {
    background: #eaf4e2;
    border-color: #8bbb61;
    transform: translateX(-3px)
}

.sd-entry:focus-within {
    background: linear-gradient(270deg,rgba(244,249,241,.5),transparent 65%)
}

.sd-entry :is(a,button):focus-visible,.sd-controls :is(input,select,button):focus-visible {
    outline: 2px solid var(--sd-green);
    outline-offset: 4px
}

.sd-empty {
    padding: 78px 0;
    text-align: center
}

.sd-empty h2 {
    font-size: 25px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--sd-ink)
}

.sd-empty p {
    font-size: 16px;
    color: var(--sd-muted);
    margin-bottom: 25px
}

.sd-empty button {
    background: none;
    border: 1px solid #cce0c1;
    border-radius: 999px;
    color: var(--sd-green);
    font-size: 16px;
    font-weight: 600;
    padding: 11px 24px;
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    align-items: center
}

.sd-empty button svg {
    height: 18px;
    width: 18px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none
}

.sd-empty button:hover {
    background: #f3f8ef
}

@media(min-width: 1025px) and (hover:hover) {
    .sd-entry:hover {
        background:linear-gradient(270deg,rgba(248,251,245,.72),rgba(255,255,255,0) 77%)
    }
}

@media(max-width: 1100px) {
    .sd-shell {
        max-width:970px
    }

    .sd-entry {
        grid-template-columns: 165px minmax(0,1fr) 153px;
        column-gap: 24px
    }

    .sd-entry__logo {
        padding-inline-end:22px}

    .sd-entry__name {
        font-size: 25px
    }

    .sd-entry__description {
        font-size: 16px
    }

    .sd-entry__action {
        font-size: 14px
    }
}

@media(max-width: 830px) {
    .sd-directory-section {
        padding:58px 0 84px
    }

    .sd-controls {
        grid-template-columns: minmax(0,1fr) 240px;
        margin-bottom: 35px;
        gap: 14px
    }

    .sd-entry {
        grid-template-columns: 130px minmax(0,1fr);
        grid-template-areas: "logo body" "logo action";
        column-gap: 23px;
        min-height: 158px;
        padding: 27px 0;
        align-items: start
    }

    .sd-entry__logo {
        grid-area: logo;
        align-self: center;
        padding-inline-end:19px;min-height: 88px;
        height: 94px
    }

    .sd-entry__logo img {
        max-height: 74px
    }

    .sd-entry__body {
        grid-area: body
    }

    .sd-entry__heading {
        gap: 8px 15px;
        margin-bottom: 7px
    }

    .sd-entry__name {
        font-size: 23px
    }

    .sd-entry__description {
        font-size: 15px;
        line-height: 1.65
    }

    .sd-entry__action {
        grid-area: action;
        justify-self: start;
        margin-top: 13px;
        font-size: 14px
    }

    .sd-entry__action-icon {
        width: 30px;
        height: 30px
    }
}

@media(max-width: 590px) {
    .sd-directory-section {
        padding:38px 0 63px
    }

    .sd-shell {
        width: 100%
    }

    .sd-controls {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 27px
    }

    .sd-search,.sd-filter {
        height: 55px;
        min-height: 55px
    }

    .sd-search input,.sd-filter select {
        font-size: 16px
    }

    .sd-entry {
        grid-template-columns: 100px minmax(0,1fr);
        column-gap: 19px;
        min-height: 0;
        padding: 28px 0;
        grid-template-areas: "logo body" ". action"
    }

    .sd-entry__logo {
        height: 80px;
        min-height: 80px;
        padding-inline-end:13px;align-self: start
    }

    .sd-entry__logo img {
        max-width: 88px;
        max-height: 67px
    }

    .sd-entry__name {
        font-size: 21px
    }

    .sd-entry__heading {
        display: block;
        margin-bottom: 8px
    }

    .sd-entry__category {
        font-size: 12px;
        margin-top: 7px
    }

    .sd-entry__description {
        font-size: 14.5px;
        line-height: 1.65
    }

    .sd-entry__action {
        margin-top: 9px
    }

    .sd-entry__action-icon {
        width: 28px;
        height: 28px
    }
}

@media(max-width: 350px) {
    .sd-entry {
        grid-template-columns:78px minmax(0,1fr);
        column-gap: 14px
    }

    .sd-entry__logo {
        padding-inline-end:8px}

    .sd-entry__logo img {
        max-width: 65px;
        max-height: 60px
    }

    .sd-entry__name {
        font-size: 19px
    }

    .sd-entry__description {
        font-size: 14px
    }
}

@media(prefers-reduced-motion:reduce) {
    .sd-directory-section * {
        transition: none!important
    }
}
