.single-post-main {
    padding: 84px 0 42px;
}

/* When there's no hero, push content down from the fixed header */
.single-post-main--no-hero {
    padding-top: 120px;
}

/* Inline post title rendered inside the article */
.single-post-inline-title {
    color: #fff;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Featured image rendered inline, full-width, below the title */
.single-post-inline-thumb {
    margin-bottom: 0;
    overflow: hidden;
}

.single-post-inline-thumb img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.single-post-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.single-post-page--right-sidebar .single-post-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.single-post-page--no-sidebar .single-post-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 150px;
}

.single-post-article {
    min-width: 0;
}

.single-post-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.single-post-breadcrumbs a {
    color: rgba(255, 255, 255, 0.72);
    transition: color var(--transition);
}

.single-post-breadcrumbs a:hover,
.single-post-breadcrumbs a:focus-visible,
.single-post-breadcrumbs strong {
    color: #fff;
}

.single-post-hero {
    min-height: clamp(420px, 66vh, 760px);
    padding: 150px 0 80px;
    background-position: center center;
}

.single-post-hero .hero-content {
    min-height: auto;
}

.single-post-hero .hero-title {
    font-size: clamp(3.6rem, 8vw, 7rem);
    line-height: 1.06;
}

.single-post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.single-post-media {
    overflow: hidden;
}

.single-post-media img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
}

.single-post-meta-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 18px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.single-post-meta-bar__left,
.single-post-meta-bar__right {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* =============================================
   CONTENT AREA — typography & spacing
   ============================================= */

.single-post-content {
    padding-top: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.95;
    overflow-x: hidden;
}

.single-post-content>* {
    margin-bottom: 22px;
}

.single-post-content>*:last-child {
    margin-bottom: 0;
}

/* Headings */
.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    color: #fff;
    line-height: 1.25;
    margin-top: 36px;
    margin-bottom: 14px;
}

.single-post-content h1 {
    font-size: 28px;
    font-weight: 700;
}

.single-post-content h2 {
    font-size: 24px;
    font-weight: 700;
}

.single-post-content h3 {
    font-size: 20px;
    font-weight: 600;
}

.single-post-content h4 {
    font-size: 18px;
    font-weight: 600;
}

.single-post-content h5,
.single-post-content h6 {
    font-size: 16px;
    font-weight: 600;
}

/* Paragraphs */
.single-post-content p {
    text-align: justify;
    color: rgba(255, 255, 255, 0.82);
}

/* Bold */
.single-post-content strong,
.single-post-content b {
    color: #fff;
    font-weight: 700;
}

/* Italic */
.single-post-content em,
.single-post-content i {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Links */
.single-post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.single-post-content a:hover {
    opacity: 0.78;
}

/* =============================================
   LISTS — ul / ol
   ============================================= */

.single-post-content ul,
.single-post-content ol {
    padding-left: 28px;
    margin-bottom: 22px;
    text-align: justify;
}

.single-post-content ul>li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.82);
}


/* Ordered list */
.single-post-content ol {
    list-style: decimal;
}

.single-post-content ol>li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.82);
    padding-left: 6px;
}

.single-post-content ol>li::marker {
    color: var(--color-accent, #3ecfcf);
    font-weight: 700;
}

/* Nested lists */
.single-post-content ul ul,
.single-post-content ol ol,
.single-post-content ul ol,
.single-post-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 20px;
}

.single-post-content ul ul>li::before {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.38);
    top: 0.72em;
}

/* =============================================
   TABLE — responsive drag-scroll
   ============================================= */

/* JS wraps each table in this div */
.single-post-content .table-scroll-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    border-radius: 6px;
    margin-bottom: 22px;
    cursor: grab;
    /* fade-right hint until scrolled to end */
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}

.single-post-content .table-scroll-wrap.at-end {
    -webkit-mask-image: none;
    mask-image: none;
    cursor: default;
}

.single-post-content .table-scroll-wrap.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.single-post-content .table-scroll-wrap::-webkit-scrollbar {
    height: 5px;
}

.single-post-content .table-scroll-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.single-post-content .table-scroll-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

/* Scroll hint label — visible only on mobile */
.single-post-content .table-scroll-hint {
    display: none;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    font-style: italic;
}

/* Table itself */
.single-post-content table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
}

.single-post-content table th,
.single-post-content table td {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.single-post-content table th {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.07);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.single-post-content table td {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

/* Zebra rows */
.single-post-content table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.03);
}

.single-post-content table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.15s;
}

/* =============================================
   BLOCKQUOTE
   ============================================= */

.single-post-content blockquote:not(.tiktok-embed) {
    margin: 28px 0;
    padding: 20px 24px 20px 28px;
    border-left: 3px solid var(--color-accent, #3ecfcf);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

/* =============================================
   IMAGES
   ============================================= */

.single-post-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-post-content .wp-caption-text {
    color: rgba(255, 255, 255, 0.52);
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    font-style: italic;
}

/* =============================================
   EMBEDS
   ============================================= */

.single-post-embed {
    margin: 28px 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.single-post-embed iframe,
.single-post-embed video,
.single-post-embed blockquote,
.single-post-embed .tiktok-embed {
    width: 100% !important;
    max-width: 100% !important;
}

.single-post-embed iframe {
    min-height: 420px;
    border: 0;
}

.single-post-embed--tiktok {
    display: flex;
    justify-content: center;
    padding: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.single-post-embed--tiktok blockquote.tiktok-embed {
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit;
    text-align: initial !important;
}

.single-post-embed--tiktok .tiktok-embed,
.single-post-embed--tiktok iframe {
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    scrollbar-width: none;
    display: block;
}

.single-post-embed--tiktok iframe {
    width: min(100%, 325px) !important;
    max-width: 325px !important;
    min-height: 720px;
}

.single-post-embed--tiktok .tiktok-embed::-webkit-scrollbar,
.single-post-embed--tiktok iframe::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.single-post-embed--map {
    background: transparent;
}

.single-post-embed--map iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    background: #0b0f14;
}

/* =============================================
   SHARE
   ============================================= */

.single-post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.single-post-share__label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.single-post-share__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-post-share__links a {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.single-post-share__links a:hover,
.single-post-share__links a:focus-visible {
    background: var(--single-share-color);
}

.single-post-share__links svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

/* =============================================
   AUTHOR BOX
   ============================================= */

.single-author-box {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 28px;
    margin-top: 36px;
    padding: 30px;
    background: #2f3340;
}

.single-author-box__avatar img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
}

.single-author-box__content h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.single-author-box__content h2 span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.single-author-box__content p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.single-author-box__content a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--color-accent);
    font-weight: 600;
}

/* =============================================
   RELATED POSTS
   ============================================= */

.single-related-posts {
    margin-top: 42px;
}

.single-related-posts__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.single-related-posts__head h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.single-related-posts__nav {
    display: flex;
    gap: 10px;
}

.single-related-posts__nav button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.single-related-posts__viewport {
    overflow-x: auto;
    scrollbar-width: none;
}

.single-related-posts__viewport::-webkit-scrollbar {
    display: none;
}

.single-related-posts__track {
    display: flex;
    gap: 26px;
}

.single-related-post {
    flex: 0 0 calc((100% - 52px) / 3);
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.single-related-post__thumb img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.single-related-post__content h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-accent);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.single-related-post__content time {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.single-related-post__meta {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

/* =============================================
   COMMENTS
   ============================================= */

.single-comments {
    margin-top: 46px;
    width: 100%;
    clear: both;
}

.single-comments__head h2,
.single-comments__reply-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.single-comments__list {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.single-comment-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.single-comment-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.single-comment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.single-comment-header h4 {
    color: #fff;
    font-size: 16px;
}

.single-comment-header time,
.single-comment-actions a {
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 600;
}

.single-comment-content {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.74);
}

.single-comments .children {
    margin-top: 18px;
    margin-left: 34px;
}

.single-comments .comment-respond,
.single-post-article .comment-respond {
    margin-top: 36px;
    width: 100%;
    clear: both;
    float: none;
}

.single-comments .comment-form,
.single-post-article .comment-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
    width: 100%;
}

.single-post-page .single-post-article #comments,
.single-post-page .single-post-article #respond,
.single-post-page .single-post-article #commentform {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    clear: both;
    float: none;
}

.single-post-page .single-post-article #commentform {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.single-comments .comment-form p,
.single-post-article .comment-form p {
    margin: 0;
}

.single-comments .comment-form label,
.single-post-article .comment-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.single-comments .comment-form-comment,
.single-post-article .comment-form-comment,
.single-post-article .comment-form-author,
.single-post-article .comment-form-email,
.single-post-article .comment-form-url,
.single-comments .logged-in-as,
.single-post-article .logged-in-as,
.single-comments .comment-notes,
.single-post-article .comment-notes,
.single-comments .form-submit,
.single-post-article .form-submit {
    grid-column: 1 / -1;
}

.single-comments input,
.single-comments textarea,
.single-post-article .comment-form input:not([type="submit"]),
.single-post-article .comment-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    float: none;
}

.single-post-article .comment-form-author,
.single-post-article .comment-form-email,
.single-post-article .comment-form-url,
.single-post-article .comment-form-comment,
.single-post-article .comment-notes,
.single-post-article .comment-form-cookies-consent,
.single-post-article .form-submit {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.single-comments textarea,
.single-post-article .comment-form textarea {
    min-height: 180px;
    padding: 16px;
    resize: vertical;
}

.single-comments .comment-form-cookies-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.6;
}

.single-comments .comment-form-cookies-consent input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin-top: 4px;
    padding: 0;
    accent-color: var(--color-accent);
}

.single-comments .comment-form-cookies-consent label {
    flex: 1;
}

.single-post-article .comment-form-cookies-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.6;
}

.single-post-article .comment-form-cookies-consent input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin-top: 4px;
    padding: 0;
    accent-color: var(--color-accent);
}

.single-post-article .comment-form-cookies-consent label {
    flex: 1;
    margin-bottom: 0;
}

.single-comments__submit {
    min-height: 46px;
    padding: 0 26px;
    background: var(--color-accent);
    color: #081117;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {

    .single-post-shell,
    .single-post-page--right-sidebar .single-post-shell {
        grid-template-columns: 1fr;
    }

    .single-post-hero {
        min-height: clamp(360px, 58vh, 620px);
        padding: 130px 0 64px;
    }

    .single-post-main {
        padding-top: 64px;
    }

    .single-post-main--no-hero {
        padding-top: 100px;
    }

    .single-related-post {
        flex-basis: 320px;
    }

    .single-comments .comment-form,
    .single-post-article .comment-form {
        grid-template-columns: 1fr;
    }

    .single-post-page .single-post-article #commentform {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .single-post-hero {
        min-height: 340px;
        padding: 118px 0 54px;
    }

    .single-post-main {
        padding-top: 48px;
    }

    .single-post-main--no-hero {
        padding-top: 84px;
    }

    .single-post-inline-title {
        font-size: 26px;
    }

    /* Show scroll hint text on mobile */
    .single-post-content .table-scroll-hint {
        display: flex;
    }

    .single-post-content table {
        min-width: 480px;
    }

    .single-post-hero .hero-title {
        font-size: clamp(2.6rem, 12vw, 4.2rem);
    }

    .single-author-box,
    .single-comment-card {
        grid-template-columns: 1fr;
    }

    .single-post-meta-bar {
        flex-direction: column;
    }

    .single-related-post {
        flex-basis: 280px;
    }

    .single-post-page--no-sidebar .single-post-shell {
        padding: 0;
    }
}

#ez-toc-container ul li {
    list-style: none;
}