.blog-directory {
    color: #26343c;
}

#content #main .blog-directory-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 0 1.15rem;
    padding: 1.5rem 1.65rem;
    border: 1px solid #dce7ed;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, #f3f9fc 100%);
    box-shadow: 0 .5rem 1.75rem rgb(31 77 101 / 8%);
}

.blog-directory-hero__content {
    min-width: 0;
}

.blog-directory-hero__eyebrow {
    margin-bottom: .5rem;
    color: #1683c7;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

#content #main .blog-directory-hero h1 {
    margin: 0;
    padding: 0;
    color: #25343c;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
}

#content #main .blog-directory-hero h1::before {
    display: none;
}

#content #main .blog-directory-hero p {
    max-width: 34rem;
    margin: .55rem 0 0;
    color: #647681;
    font-size: .88rem;
    line-height: 1.45;
}

.blog-directory-hero__side {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    gap: .6rem;
}

.blog-directory-hero__count {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 4.75rem;
    padding: .7rem .85rem;
    border: 1px solid #cce5f2;
    border-radius: .8rem;
    background: rgb(255 255 255 / 82%);
    text-align: center;
}

.blog-directory-hero__count strong {
    color: #1683c7;
    font-size: 1.55rem;
    line-height: 1;
}

.blog-directory-hero__count span {
    margin-top: .25rem;
    color: #73838c;
    font-size: .69rem;
}

.blog-directory-hero__create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1rem;
    border: 0;
    border-radius: .8rem;
    background: #1683c7;
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.blog-directory-hero__create:hover,
.blog-directory-hero__create:focus {
    background: #0e72ae;
}

.blog-directory-hero__create svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.blog-directory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
}

#content #main .blog-directory-card--personal {
    min-height: 0;
}

#content #main .blog-directory-card--personal .blog-directory-card__description {
    min-height: 0;
}

#content #main .blog-directory-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    min-height: 15.5rem;
    padding: 1.15rem;
    border: 1px solid #e0e7eb;
    border-radius: .95rem;
    background: #fff;
    box-shadow: 0 .3rem 1.15rem rgb(31 63 79 / 7%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#content #main .blog-directory-card:hover {
    transform: translateY(-2px);
    border-color: #c8dbe5;
    box-shadow: 0 .65rem 1.5rem rgb(31 63 79 / 12%);
}

.blog-directory-card__heading {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: .7rem;
}

.blog-directory-card__heading--company {
    align-items: center;
}

.blog-directory-card__avatar {
    display: block;
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    padding: .12rem;
    border: 1px solid #d9e4ea;
    border-radius: 50%;
    background: #fff;
}

.blog-directory-card__avatar img {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    object-fit: cover;
}

.blog-directory-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.6rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .75rem;
    background: #eaf6fb;
    color: #1683c7;
}

.blog-directory-card__icon svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: currentColor;
}

.blog-directory-card__title {
    flex: 1 1 auto;
    min-width: 0;
}

#content #main .blog-directory-card__title h2 {
    margin: .05rem 0 0;
    padding: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}

#content #main .blog-directory-card__title h2 a {
    color: #1683c7;
    text-decoration: none;
}

#content #main .blog-directory-card__title h2 a:hover {
    color: #0d6ea9;
    text-decoration: underline;
}

.blog-directory-card__owner {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    max-width: 100%;
    overflow: hidden;
    margin-top: .3rem;
    color: #788991;
    font-size: .7rem;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-directory-card__owner:hover {
    color: #1683c7;
    text-decoration: underline;
}

.blog-directory-card__owner span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 .85rem;
    width: .85rem;
    height: .85rem;
    border-radius: 50%;
    background: #1683c7;
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
}

.blog-directory-card__new {
    flex: 0 0 auto;
    padding: .25rem .48rem;
    border-radius: 99px;
    background: #e7f6ed;
    color: #287448;
    font-size: .64rem;
    font-weight: 700;
    white-space: nowrap;
}

.blog-directory-card__private {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .35rem;
    color: #9a6427;
    font-size: .67rem;
}

.blog-directory-card__private svg {
    width: .78rem;
    height: .78rem;
    fill: currentColor;
}

#content #main .blog-directory-card__description {
    flex: 1 1 auto;
    min-height: 2.7rem;
    margin: .9rem 0;
    color: #687982;
    font-size: .78rem;
    line-height: 1.45;
}

#content #main .blog-directory-card__description--empty {
    color: #93a0a6;
}

.blog-directory-card__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 .9rem;
    padding: .75rem 0;
    border-top: 1px solid #edf1f3;
    border-bottom: 1px solid #edf1f3;
}

.blog-directory-card__stats > div {
    min-width: 0;
    padding: 0 .35rem;
    text-align: center;
}

.blog-directory-card__stats > div + div {
    border-left: 1px solid #edf1f3;
}

.blog-directory-card__stats dt {
    overflow: hidden;
    margin-bottom: .28rem;
    color: #8a989f;
    font-size: .64rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-directory-card__stats dd {
    overflow: hidden;
    margin: 0;
    color: #35464f;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.blog-directory-card__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.blog-directory-card__open,
.blog-directory-card__rss,
.blog-directory-card__profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 2.2rem;
    border-radius: .55rem;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-directory-card__open {
    flex: 1 1 auto;
    gap: .4rem;
    padding: .45rem .75rem;
    background: #1683c7;
    color: #fff;
}

.blog-directory-card__open:hover {
    background: #0e72ae;
    color: #fff;
    text-decoration: none;
}

.blog-directory-card__open svg {
    width: .9rem;
    height: .9rem;
    fill: currentColor;
}

.blog-directory-card__rss {
    flex: 0 0 auto;
    gap: .32rem;
    padding: .45rem .65rem;
    border: 1px solid #ecd8bd;
    background: #fffaf3;
    color: #b76a13;
}

.blog-directory-card__profile {
    flex: 0 0 auto;
    gap: .32rem;
    padding: .45rem .65rem;
    border: 1px solid #d9e3e8;
    background: #f8fafb;
    color: #50636d;
}

.blog-directory-card__profile:hover {
    border-color: #b9d3df;
    background: #f0f8fc;
    color: #1683c7;
    text-decoration: none;
}

.blog-directory-card__profile svg {
    width: .9rem;
    height: .9rem;
    fill: currentColor;
}

.blog-directory-card__rss:hover {
    border-color: #ddb77f;
    background: #fff5e8;
    color: #975209;
    text-decoration: none;
}

.blog-directory-card__rss svg {
    width: .9rem;
    height: .9rem;
    fill: currentColor;
}

.blog-directory-pagination {
    margin-top: 1.25rem;
}

.blog-directory-pagination:empty {
    display: none;
}

.blog-directory-empty {
    padding: 3rem 1.25rem;
    border: 1px dashed #cddbe2;
    border-radius: .95rem;
    background: #fff;
    text-align: center;
}

.blog-directory-empty > span {
    display: block;
    color: #91bdcf;
    font-size: 2.75rem;
    line-height: 1;
}

#content #main .blog-directory-empty h2 {
    margin: .75rem 0 .3rem;
    color: #33464f;
    font-size: 1.25rem;
}

#content #main .blog-directory-empty p {
    margin: 0;
    color: #75858d;
    font-size: .88rem;
}

/* Диалог создания блога */
.fx-create-blog-dialog.ui-dialog {
    box-sizing: border-box;
    max-width: calc(100vw - 2rem);
    padding: 0;
    border: 0;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 1rem 2.75rem rgb(0 0 0 / 22%);
}

.fx-create-blog-dialog .ui-dialog-titlebar {
    padding: 1.3rem 1.5rem 0;
    border: 0;
    background: transparent;
    color: #16324a;
    font: 700 1.45rem/1.2 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fx-create-blog-dialog .ui-dialog-titlebar-close {
    top: 1rem;
    right: 1rem;
}

.fx-create-blog-dialog .ui-dialog-content {
    overflow: visible;
    padding: 1.25rem 1.5rem;
}

.fx-create-blog-dialog .fx-row {
    margin-top: 1rem;
}

.fx-create-blog-dialog .fx-input-wrapper {
    position: relative;
}

.fx-create-blog-dialog .fx-input-floating-label {
    padding: 1em .75em;
}

.fx-create-blog-dialog .fx-floating-label {
    left: .6em !important;
}

.fx-create-blog-dialog .fx-input,
.fx-create-blog-dialog .fx-textarea {
    width: 100%;
}

.fx-create-blog-dialog .fx-textarea {
    min-height: 8rem;
    font-family: inherit;
}

.fx-create-blog-dialog .ui-dialog-buttonpane {
    margin: 0;
    padding: 0 1.5rem 1.5rem;
    border: 0;
    background: transparent;
}

.fx-create-blog-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    float: none;
    gap: .75rem;
    justify-content: flex-end;
}

.fx-create-blog-dialog .ui-dialog-buttonpane .fx-button {
    margin: 0;
    border: 0;
    border-radius: .5rem;
    font: 600 1rem/1.4 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fx-create-blog-dialog .ui-dialog-buttonpane .fx-button-primary {
    min-width: 0;
    background: #0078d4;
    color: #fff;
}

.fx-create-blog-dialog .ui-dialog-buttonpane .fx-button-secondary {
    background: #e1e1e1;
    color: #333;
}

@media (max-width: 860px) {
    .blog-directory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #content #main .blog-directory-hero {
        align-items: flex-start;
        gap: .75rem;
        margin-bottom: .75rem;
        padding: 1.2rem 1.05rem;
        border-radius: .8rem;
    }

    #content #main .blog-directory-hero h1 {
        font-size: 1.45rem;
    }

    #content #main .blog-directory-hero p {
        font-size: .8rem;
    }

    .blog-directory-hero__side {
        flex-direction: column;
    }

    .blog-directory-hero__count {
        min-width: 3.55rem;
        padding: .55rem .45rem;
    }

    .blog-directory-hero__count strong {
        font-size: 1.25rem;
    }

    .blog-directory-hero__count span {
        font-size: .58rem;
    }

    .blog-directory-hero__create {
        padding: .55rem .65rem;
        font-size: .7rem;
    }

    #content #main .blog-directory-card {
        min-height: 0;
        padding: .95rem;
        border-radius: .8rem;
    }

    .blog-directory-card__new {
        padding: .23rem .4rem;
        font-size: .6rem;
    }

    .fx-create-blog-dialog .ui-dialog-titlebar,
    .fx-create-blog-dialog .ui-dialog-content {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .fx-create-blog-dialog .ui-dialog-buttonpane {
        padding: 0 1rem 1rem;
    }

    .fx-create-blog-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
        flex-direction: column-reverse;
    }

    .fx-create-blog-dialog .ui-dialog-buttonpane .fx-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #content #main .blog-directory-card {
        transition: none;
    }
}
