.young-single {
    width: 100%;
    background: var(--background-color);
}

.young-single__container {
    box-sizing: border-box;
    width: 100%;
    max-width: 896px;
    margin: 24px auto 48px;
    padding: 16px;
    border-radius: 24px;
    background: var(--single-container-background-color);
    overflow: visible;
}

.young-single__view {
    min-height: 100%;
    background: transparent;
}

.young-single__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 0;
}

.young-single__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--single-back-link-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.young-single__back:hover,
.young-single__back:focus-visible {
    color: var(--single-back-link-hover-color);
}

.young-single__back-icon,
.young-single__action-icon,
.young-single__date-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.young-single__back-icon svg,
.young-single__action-icon svg,
.young-single__date-icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
}

.young-single__back-icon svg {
    width: 22px;
    height: 22px;
}

.young-single__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.young-single__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--single-action-color);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.young-single__action:hover,
.young-single__action:focus-visible,
.young-single__action.is-copied {
    color: var(--single-action-hover-color);
    background: var(--single-action-hover-background-color);
}

.young-single__action-icon svg {
    width: 20px;
    height: 20px;
}

.young-single__article {
    max-width: none;
}

.young-single__image-wrap {
    width: 100%;
    height: 192px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.young-single__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.young-single__date-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--single-date-color);
    font-size: 14px;
    line-height: 1.3;
}

.young-single__date-icon svg {
    width: 14px;
    height: 14px;
}

.young-single__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 0 4px;
}

.young-single__category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--single-category-border-color);
    border-radius: 999px;
    background: var(--single-category-background-color);
    color: var(--single-category-color);
    font-size: 12px;
    line-height: 1.35;
}

.young-single__category {
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.young-single__category:hover,
.young-single__category:focus-visible {
    background: var(--single-category-hover-background-color);
    color: var(--single-category-hover-color);
}

.young-single__title {
    margin: 0 0 16px;
    color: var(--single-title-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.young-single__preview {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 16px;
    background: var(--single-muted-surface-color);
    color: var(--single-preview-color);
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
}

.young-single__content {
    color: var(--single-content-color);
    font-size: 16px;
    line-height: 1.625;
    white-space: normal;
    word-break: break-word;
}

.young-single__content > :first-child {
    margin-top: 0;
}

.young-single__content > :last-child {
    margin-bottom: 0;
}

.young-single__content p {
    margin: 0 0 24px;
}

.young-single__content h2,
.young-single__content h3,
.young-single__content h4 {
    margin: 36px 0 18px;
    color: var(--single-heading-color);
    line-height: 1.25;
}

.young-single__content h2 {
    font-size: 28px;
}

.young-single__content h3 {
    font-size: 24px;
}

.young-single__content h4 {
    font-size: 20px;
}

.young-single__content a {
    color: var(--single-link-color);
    text-decoration: none;
}

.young-single__content a:hover,
.young-single__content a:focus-visible {
    color: var(--single-link-hover-color);
}

.young-single__content ul,
.young-single__content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.young-single__content li {
    margin-bottom: 10px;
}

.young-single__content blockquote {
    margin: 24px 0;
    padding: 16px;
    border-radius: 16px;
    background: var(--single-muted-surface-color);
    color: var(--single-preview-color);
    font-style: italic;
}

.young-single__content blockquote > :last-child {
    margin-bottom: 0;
}

.young-single__content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 22px 0;
    border-radius: 16px;
}

.young-single__content table,
.young-single__content table thead,
.young-single__content table tbody,
.young-single__content table tr,
.young-single__content table th,
.young-single__content table td {
    border: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    word-break: auto-phrase !important;
}

.young-single__content table {
    width: 100% !important;
    margin: 24px 0 !important;
    border: 1px solid var(--single-table-border-color) !important;
    border-radius: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: var(--single-table-background-color) !important;
    table-layout: auto !important;
    overflow: hidden;
}

.young-single__content table thead {
    background: var(--single-table-head-background-color) !important;
}

.young-single__content table thead tr th {
    padding: 12px 24px !important;
    color: var(--single-table-head-color) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
}

.young-single__content table tbody tr + tr td {
    border-top: 1px solid var(--single-table-row-border-color);
}

.young-single__content table tbody tr td {
    padding: 16px 24px !important;
    color: var(--single-table-cell-color) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    vertical-align: top !important;
    border-left: 0 !important;
    border-right: 0 !important;
    background: var(--single-table-background-color) !important;
}

.young-single__content table tbody tr td:first-child {
    color: var(--single-table-cell-strong-color) !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.young-single__content .wp-block-table,
.young-single__content figure.wp-block-table {
    scrollbar-color: var(--single-table-scrollbar-thumb-color) var(--single-table-scrollbar-track-color);
    margin: 0 !important;
}

.young-single__content .wp-block-table::-webkit-scrollbar,
.young-single__content figure.wp-block-table::-webkit-scrollbar {
    height: 10px;
}

.young-single__content .wp-block-table::-webkit-scrollbar-track,
.young-single__content figure.wp-block-table::-webkit-scrollbar-track {
    background: var(--single-table-scrollbar-track-color);
    border-radius: 999px;
}

.young-single__content .wp-block-table::-webkit-scrollbar-thumb,
.young-single__content figure.wp-block-table::-webkit-scrollbar-thumb {
    background: var(--single-table-scrollbar-thumb-color);
    border-radius: 999px;
}

.young-single__content .wp-block-table::-webkit-scrollbar-thumb:hover,
.young-single__content figure.wp-block-table::-webkit-scrollbar-thumb:hover {
    background: var(--single-table-scrollbar-thumb-hover-color);
}

.young-single__content .wp-block-table::-webkit-scrollbar-button,
.young-single__content figure.wp-block-table::-webkit-scrollbar-button {
    background: var(--single-table-scrollbar-track-color);
}

.young-single__empty {
    text-align: center;
    padding: 40px 0;
}

@media (max-width: 1023px) {
    .young-single__title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .young-single__container {
        margin-top: 16px;
        padding: 14px;
        border-radius: 20px;
    }

    .young-single__topbar {
        margin-bottom: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .young-single__image-wrap {
        height: 192px;
    }

    .young-single__title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .young-single__preview {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .young-single__content {
        line-height: 1.625;
    }

    .young-single__content table thead tr th,
    .young-single__content table tbody tr td {
        padding: 12px 14px !important;
    }

    .young-single__content table thead tr th {
        font-size: 11px !important;
    }
}

@media (min-width: 768px) {
    .young-single__container {
        margin-top: 32px;
        margin-bottom: 40px;
        padding: 24px;
        border-radius: 28px;
    }

    .young-single__image-wrap {
        height: 256px;
    }

    .young-single__title {
        font-size: 36px;
    }
}
