.uml-directory-body .page-wrap {
    width: min(1200px, calc(100% - 48px));
    padding-top: 112px;
    padding-bottom: 88px;
}

.uml-directory-page {
    display: grid;
    gap: 26px;
    color: var(--landing-ink);
}

.uml-directory-hero {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: end;
    padding: clamp(38px, 6vw, 68px);
    overflow: hidden;
    border: 1px solid #d5e5f1;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 5%, rgba(99, 217, 230, .2), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f0f8ff 63%, #eaf9f8 100%);
    box-shadow: 0 24px 54px rgba(35, 78, 113, .1);
}

.uml-directory-hero::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    top: -128px;
    left: 42%;
    border: 42px solid rgba(34, 116, 229, .055);
    border-radius: 50%;
    pointer-events: none;
}

.uml-directory-hero-copy {
    position: relative;
    z-index: 1;
    width: min(66%, 760px);
}

.uml-directory-hero-visual {
    position: absolute;
    z-index: 0;
    right: clamp(18px, 4.5vw, 58px);
    bottom: 0;
    width: clamp(280px, 30vw, 390px);
    pointer-events: none;
}

.uml-directory-hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 20px rgba(31, 76, 111, .12));
}

.uml-directory-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--landing-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.uml-directory-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(38px, 5.4vw, 64px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.uml-directory-hero-copy > p {
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--landing-muted);
    font-size: 16px;
    line-height: 1.75;
}

.uml-directory-stats {
    display: flex;
    gap: 34px;
    margin-top: 32px;
}

.uml-directory-stats > div {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 8px;
}

.uml-directory-stats strong {
    color: var(--landing-blue-dark);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.uml-directory-stats span {
    color: #566a80;
    font-size: 12px;
    font-weight: 700;
}

.uml-search-panel {
    padding: 28px;
    border: 1px solid #d7e5f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(34, 75, 109, .07);
}

.uml-search-heading,
.uml-results-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.uml-search-heading h2,
.uml-results-heading h2 {
    margin: 0;
    color: var(--landing-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.uml-search-heading p,
.uml-results-heading p { margin: 6px 0 0; color: var(--landing-muted); font-size: 13px; }

.uml-results-summary { flex-shrink: 0; text-align: right; }

.uml-reset-button,
.uml-empty-reset,
.uml-pagination button {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #cbddea;
    border-radius: 11px;
    color: #31536f;
    background: #f8fbfe;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .14s ease;
}

.uml-reset-button:hover,
.uml-empty-reset:hover,
.uml-pagination button:hover:not(:disabled) {
    border-color: #9fc6e4;
    color: var(--landing-blue-dark);
    background: #fff;
    box-shadow: 0 7px 16px rgba(34, 85, 124, .1);
}

.uml-reset-button:active,
.uml-empty-reset:active,
.uml-pagination button:active:not(:disabled) { transform: translateY(1px); }

.uml-search-form {
    display: grid;
    grid-template-columns: minmax(310px, 1.7fr) minmax(180px, .85fr) minmax(180px, .8fr);
    align-items: start;
    gap: 15px;
    margin-top: 24px;
}

.uml-field { display: grid; gap: 8px; }
.uml-field label { color: #344b62; font-size: 12px; font-weight: 750; }
.uml-field small { color: #77879a; font-size: 10px; line-height: 1.5; }

.uml-field input,
.uml-field select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cbdbe8;
    border-radius: 12px;
    color: var(--landing-ink);
    background: #fbfdff;
    font-size: 13px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.uml-field input { padding: 11px 14px 11px 44px; }
.uml-field select { padding: 11px 38px 11px 14px; cursor: pointer; }
.uml-field input::placeholder { color: #718196; opacity: 1; }
.uml-field input:focus,
.uml-field select:focus { outline: 3px solid rgba(34, 116, 229, .14); border-color: var(--landing-blue); background: #fff; }

.uml-search-control { position: relative; }
.uml-search-control > .icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    color: #58718a;
    transform: translateY(-50%);
    pointer-events: none;
}

.uml-results-section { padding-top: 8px; }
.uml-results-heading { justify-content: flex-end; align-items: end; margin-bottom: 18px; }
.uml-result-range { color: #61758a; font-size: 11px; font-weight: 750; }

.uml-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.uml-result-card {
    position: relative;
    min-height: 176px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #d9e6ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 76, 108, .055);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}

.uml-result-card:hover {
    border-color: #b9d4e8;
    box-shadow: 0 16px 34px rgba(36, 76, 108, .09);
    transform: translateY(-2px);
}

.uml-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.uml-card-type { color: var(--landing-blue-dark); font-size: 10px; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; }
.uml-card-code { color: #708196; font-size: 10px; font-weight: 700; }
.uml-result-card h3 { margin: 13px 0 20px; color: var(--landing-ink); font-size: 18px; font-weight: 800; letter-spacing: -.025em; line-height: 1.35; }

.uml-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #e5edf4;
}

.uml-card-details div { min-width: 0; }
.uml-card-details dt { margin-bottom: 2px; color: #8291a2; font-size: 9px; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.uml-card-details dd { margin: 0; color: #3c536a; font-size: 12px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }

.uml-skeleton-card {
    min-height: 176px;
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e0e9f1;
    border-radius: 16px;
    background: #fff;
}

.uml-skeleton-card span,
.uml-skeleton-card strong,
.uml-skeleton-card i {
    display: block;
    border-radius: 7px;
    background: #eaf1f6;
}

.uml-skeleton-card span { width: 28%; height: 10px; }
.uml-skeleton-card strong { width: 64%; height: 20px; }
.uml-skeleton-card i { width: 86%; height: 11px; }

@media (prefers-reduced-motion: no-preference) {
    .uml-result-grid.is-loading .uml-skeleton-card { animation: umlSkeletonPulse 1.4s ease-in-out infinite alternate; }
}

@keyframes umlSkeletonPulse { from { opacity: .55; } to { opacity: 1; } }

.uml-empty-state,
.uml-error-state {
    padding: 58px 24px;
    border: 1px dashed #c7d9e7;
    border-radius: 16px;
    text-align: center;
    background: #f8fbfe;
}

.uml-empty-state > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 14px;
    color: var(--landing-blue-dark);
    background: var(--landing-blue-soft);
}

.uml-empty-state .icon { width: 22px; height: 22px; }
.uml-empty-state h3,
.uml-error-state h3 { margin: 0; color: var(--landing-ink); font-size: 20px; }
.uml-empty-state p,
.uml-error-state p { max-width: 500px; margin: 8px auto 20px; color: var(--landing-muted); font-size: 13px; line-height: 1.65; }
.uml-error-state { border-style: solid; border-color: #efc9ce; background: #fff7f8; }
.uml-error-state p { margin-bottom: 0; }

.uml-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #dfe9f2;
}

.uml-pagination[hidden] { display: none; }

.uml-pagination button:first-child { justify-self: start; }
.uml-pagination button:last-child { justify-self: end; }
.uml-pagination button:disabled { opacity: .48; cursor: not-allowed; }
.uml-pagination span { color: #5d7186; font-size: 12px; font-weight: 750; }
.uml-noscript { padding: 16px; border-radius: 12px; color: #6e4e00; background: #fff7dc; font-size: 13px; }

@media (max-width: 900px) {
    .uml-directory-body .page-wrap { width: min(100% - 32px, 700px); padding-top: 102px; }
    .uml-directory-hero { min-height: 0; }
    .uml-directory-hero-copy { width: min(66%, 430px); }
    .uml-directory-hero-visual { right: 4px; bottom: 0; width: min(38vw, 286px); }
    .uml-search-form { grid-template-columns: 1fr 1fr; }
    .uml-field-search { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .uml-directory-body .page-wrap { width: calc(100% - 24px); padding-top: 92px; padding-bottom: 62px; }
    .uml-directory-page { gap: 18px; }
    .uml-directory-hero { padding: 30px 22px 218px; border-radius: 18px; }
    .uml-directory-hero-copy { width: 100%; }
    .uml-directory-hero-visual {
        right: 50%;
        bottom: 0;
        width: min(220px, 66vw);
        transform: translateX(50%);
    }
    .uml-directory-hero h1 { font-size: clamp(35px, 11vw, 46px); }
    .uml-directory-hero-copy > p { font-size: 14px; }
    .uml-directory-stats { gap: 24px; }
    .uml-directory-stats > div { grid-template-columns: 1fr; gap: 5px; }
    .uml-search-panel { padding: 22px 18px; }
    .uml-search-heading { display: grid; }
    .uml-results-summary { text-align: left; }
    .uml-reset-button { width: 100%; }
    .uml-search-form { grid-template-columns: 1fr; }
    .uml-field-search { grid-column: auto; }
    .uml-result-grid { grid-template-columns: 1fr; }
    .uml-results-heading { display: grid; gap: 8px; }
    .uml-result-range { min-height: 16px; }
    .uml-pagination { grid-template-columns: 1fr 1fr; }
    .uml-pagination span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .uml-pagination button { grid-row: 2; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .uml-result-card,
    .uml-reset-button,
    .uml-empty-reset,
    .uml-pagination button { transition: none; }
}
