.se-single-main {
    overflow: hidden;
    background: var(--se-canvas);
}

.se-single-header {
    padding-block: 48px 56px;
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(237, 115, 19, 0.1),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 5%,
            rgba(23, 104, 186, 0.13),
            transparent 34%
        ),
        #ffffff;
    border-bottom: 1px solid var(--se-line);
}

.se-breadcrumbs {
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--se-muted);
    font-size: 12px;
}

.se-breadcrumbs a {
    color: var(--se-blue-600);
}

.se-breadcrumbs span[aria-current="page"] {
    max-width: 620px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.se-single-heading {
    max-width: 1050px;
}

.se-single-labels {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.se-single-category,
.se-single-draft {
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
}

.se-single-category {
    color: var(--se-blue-600);
    background: var(--se-blue-100);
}

.se-single-draft {
    color: #a74400;
    background: var(--se-orange-100);
}

.se-single-heading h1 {
    max-width: 1100px;
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 4.5vw, 4rem);
    line-height: 1.48;
}

.se-single-lead {
    max-width: 980px;
    margin-bottom: 28px;
    color: var(--se-muted);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 2.05;
}

.se-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.se-single-author,
.se-single-meta-item {
    min-height: 58px;
    padding: 7px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--se-line);
    border-radius: 13px;
}

.se-single-author:hover {
    color: inherit;
    border-color: #bed4ef;
}

.se-single-author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.se-single-author span,
.se-single-meta-item {
    display: grid;
    align-content: center;
}

.se-single-author small,
.se-single-meta-item small {
    color: var(--se-muted);
    font-size: 10px;
    line-height: 1.5;
}

.se-single-author strong,
.se-single-meta-item strong,
.se-single-meta-item time {
    color: var(--se-navy-950);
    font-size: 12px;
    font-weight: 700;
}

.se-single-featured {
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: min(1180px, 100%);
    margin: 44px auto 0;
    aspect-ratio: 16 / 8.2;
    background: #dfe8f4;
    border: 1px solid var(--se-line);
    border-radius: 25px;
    box-shadow: 0 24px 65px rgba(6, 27, 69, 0.13);
}

.se-single-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.se-single-layout {
    padding-block: 58px 86px;
    display: grid;
    grid-template-columns: 280px minmax(0, 860px);
    justify-content: center;
    align-items: start;
    gap: 48px;
}

.se-single-sidebar {
    position: sticky;
    top: 110px;
    min-width: 0;
    display: grid;
    gap: 18px;
}

.admin-bar .se-single-sidebar {
    top: 142px;
}

.se-article-toc,
.se-article-share {
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--se-line);
    border-radius: 16px;
    box-shadow: var(--se-shadow-sm);
}

.se-article-toc h2,
.se-article-share h2 {
    margin-bottom: 14px;
    font-size: 14px;
}

.se-article-toc ol {
    max-height: calc(100vh - 270px);
    padding: 0 0 0 5px;
    margin: 0;
    overflow-y: auto;
    list-style: none;
}

.se-article-toc li {
    position: relative;
    padding-right: 15px;
}

.se-article-toc li::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--se-blue-600);
}

.se-article-toc li.is-subheading {
    padding-right: 27px;
}

.se-article-toc li.is-subheading::before {
    right: 13px;
    width: 4px;
    height: 4px;
    background: #9db2cd;
}

.se-article-toc a {
    padding-block: 6px;
    display: block;
    color: var(--se-muted);
    font-size: 11px;
    line-height: 1.75;
}

.se-article-toc a:hover {
    color: var(--se-blue-600);
}

.se-article-share > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.se-article-share a {
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid var(--se-line);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: var(--se-navy-900);
    background: var(--se-canvas);
    font-size: 10px;
    font-weight: 700;
}

.se-article-share a:hover {
    color: var(--se-blue-600);
    background: var(--se-blue-100);
    border-color: #c8dcf3;
}

.se-single-content-column {
    min-width: 0;
}

.se-article-content {
    padding: 46px 54px;
    background: #ffffff;
    border: 1px solid var(--se-line);
    border-radius: 21px;
    box-shadow: var(--se-shadow-sm);
    color: #263b5e;
    font-size: 16px;
    line-height: 2.05;
}

.se-article-content > *:first-child {
    margin-top: 0;
}

.se-article-content > *:last-child {
    margin-bottom: 0;
}

.se-article-content p {
    margin-bottom: 22px;
}

.se-article-content h2,
.se-article-content h3 {
    scroll-margin-top: 115px;
}

.se-article-content h2 {
    margin: 52px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--se-line);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.se-article-content h2::before {
    content: "";
    width: 6px;
    height: 24px;
    margin-left: 10px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: -4px;
    background: var(--se-orange-600);
}

.se-article-content h3 {
    margin: 34px 0 13px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.se-article-content ul,
.se-article-content ol {
    margin-bottom: 24px;
    padding-right: 25px;
}

.se-article-content li {
    margin-bottom: 8px;
    padding-right: 4px;
}

.se-article-content li::marker {
    color: var(--se-blue-600);
    font-weight: 700;
}

.se-article-content a {
    color: var(--se-blue-600);
    text-decoration: underline;
    text-decoration-color: rgba(23, 104, 186, 0.35);
    text-underline-offset: 4px;
}

.se-article-content a:hover {
    text-decoration-color: currentColor;
}

.se-article-content blockquote {
    margin: 30px 0;
    padding: 21px 24px;
    color: var(--se-navy-900);
    background: var(--se-blue-100);
    border-right: 4px solid var(--se-blue-600);
    border-radius: 12px;
}

.se-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.se-article-content figure {
    max-width: 100%;
    margin: 30px 0;
}

.se-article-content figure img {
    border-radius: 15px;
}

.se-article-content figcaption {
    margin-top: 8px;
    color: var(--se-muted);
    font-size: 11px;
    text-align: center;
}

.se-article-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--se-line);
    border-radius: 13px;
}

.se-article-content table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.8;
}

.se-article-content th,
.se-article-content td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--se-line);
    border-left: 1px solid var(--se-line);
    text-align: right;
    vertical-align: top;
}

.se-article-content th:last-child,
.se-article-content td:last-child {
    border-left: 0;
}

.se-article-content tr:last-child td {
    border-bottom: 0;
}

.se-article-content th {
    color: var(--se-navy-950);
    background: var(--se-blue-100);
    font-weight: 700;
}

.se-article-content tbody tr:nth-child(even) {
    background: #f9fbfe;
}

.se-article-content code {
    direction: ltr;
    padding: 2px 6px;
    border-radius: 5px;
    background: #edf2f8;
    color: #8b2a14;
    font-family: monospace;
    font-size: 0.92em;
}

.se-article-content pre {
    direction: ltr;
    padding: 20px;
    overflow-x: auto;
    border-radius: 12px;
    background: var(--se-navy-950);
    color: #e7eef8;
    text-align: left;
}

.se-article-tags {
    margin-top: 22px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--se-line);
    border-radius: 17px;
}

.se-article-tags h2 {
    margin-bottom: 14px;
    font-size: 14px;
}

.se-article-tags > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.se-article-tags a {
    min-height: 34px;
    padding: 5px 11px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    color: var(--se-blue-600);
    background: var(--se-blue-100);
    font-size: 11px;
    font-weight: 600;
}

.se-article-tags a:hover {
    color: #ffffff;
    background: var(--se-blue-600);
}

.se-article-author-box {
    margin-top: 22px;
    padding: 26px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #ffffff;
    border: 1px solid var(--se-line);
    border-radius: 17px;
}

.se-article-author-box > img {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.se-article-author-box small {
    color: var(--se-orange-600);
    font-size: 10px;
    font-weight: 700;
}

.se-article-author-box h2 {
    margin: 2px 0 7px;
    font-size: 17px;
}

.se-article-author-box p {
    margin-bottom: 0;
    color: var(--se-muted);
    font-size: 12px;
    line-height: 1.9;
}

.se-related-posts {
    padding-block: 72px 88px;
    background: #ffffff;
    border-top: 1px solid var(--se-line);
}

.se-related-header {
    margin-bottom: 27px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.se-related-header p {
    margin-bottom: 6px;
    color: var(--se-orange-600);
    font-size: 11px;
    font-weight: 700;
}

.se-related-header h2 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.se-related-header > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--se-blue-600);
    font-size: 12px;
    font-weight: 700;
}

.se-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
}

.se-related-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--se-line);
    border-radius: 17px;
    box-shadow: var(--se-shadow-sm);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.se-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--se-shadow-md);
}

.se-related-image {
    overflow: hidden;
    display: block;
    aspect-ratio: 16 / 9;
    background: #dfe8f4;
}

.se-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.se-related-card:hover .se-related-image img {
    transform: scale(1.035);
}

.se-related-card > div {
    padding: 19px;
}

.se-related-card time {
    color: var(--se-muted);
    font-size: 10px;
}

.se-related-card h3 {
    margin: 7px 0 15px;
    font-size: 16px;
    line-height: 1.75;
}

.se-related-card h3 a:hover {
    color: var(--se-blue-600);
}

.se-related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--se-blue-600);
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1080px) {
    .se-single-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 28px;
    }

    .se-article-content {
        padding: 38px;
    }
}

@media (max-width: 880px) {
    .se-single-layout {
        grid-template-columns: 1fr;
    }

    .se-single-sidebar {
        position: static;
        order: 2;
    }

    .se-single-content-column {
        order: 1;
    }

    .se-article-toc ol {
        max-height: none;
    }

    .se-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .se-single-header {
        padding-block: 34px 42px;
    }

    .se-single-featured {
        margin-top: 28px;
        border-radius: 20px;
    }

    .se-single-layout {
        padding-block: 42px 62px;
    }

    .se-article-content {
        padding: 30px 26px;
        border-radius: 17px;
    }

    .se-related-posts {
        padding-block: 58px 68px;
    }
}

@media (max-width: 620px) {
    .se-single-heading h1 {
        font-size: 2rem;
    }

    .se-single-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .se-single-author {
        grid-column: 1 / -1;
    }

    .se-single-meta-item {
        min-width: 0;
    }

    .se-single-featured {
        aspect-ratio: 1.3 / 1;
    }

    .se-article-content {
        padding: 25px 19px;
        font-size: 15px;
    }

    .se-article-content h2 {
        margin-top: 42px;
    }

    .se-article-author-box {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .se-related-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .se-related-grid {
        grid-template-columns: 1fr;
    }
}

/* === SteelExperts Single Visual QA v1 === */

/*
 * Reduce the oversized article heading area.
 */

.se-single-header {
    padding-block: 38px 46px;
}

.se-single-heading {
    max-width: 980px;
}

.se-single-heading h1 {
    max-width: 980px;
    margin-bottom: 17px;
    font-size: clamp(2rem, 3.15vw, 3.15rem);
    line-height: 1.55;
}

.se-single-lead {
    max-width: 900px;
    margin-bottom: 25px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 2;
}

.se-breadcrumbs {
    margin-bottom: 23px;
    font-size: 11.5px;
}

/*
 * Balance article text and internal headings.
 */

.se-article-content {
    padding: 42px 48px;
    font-size: 15.5px;
    line-height: 2.05;
}

.se-article-content h2 {
    margin-top: 46px;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.7;
}

.se-article-content h3 {
    margin-top: 31px;
    font-size: clamp(1.12rem, 1.6vw, 1.35rem);
    line-height: 1.75;
}

.se-article-content p,
.se-article-content li {
    font-size: inherit;
}

.se-single-featured {
    margin-top: 36px;
}

/*
 * Related articles should not reproduce the large heading scale.
 */

.se-related-header h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

.se-related-card h3 {
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 782px) {
    .se-single-heading h1 {
        font-size: clamp(1.9rem, 5.8vw, 2.65rem);
    }

    .se-article-content {
        padding: 30px 26px;
    }
}

@media (max-width: 620px) {
    .se-single-heading h1 {
        font-size: 1.78rem;
        line-height: 1.65;
    }

    .se-single-lead {
        font-size: 14.5px;
    }

    .se-article-content {
        padding: 24px 18px;
        font-size: 14.5px;
    }
}

/* === End SteelExperts Single Visual QA v1 === */
