article > *:not(:where(:last-child)) {
    margin-bottom: 1.5rem;
}
article
    :where(
        p,
        hr,
        figure,
        img,
        blockquote,
        ul,
        ol,
        pre,
        table,
        video,
        audio,
        iframe,
        details,
        div[class*="typo-"]
    ):not(
        :where(
            video[class],
            audio[class],
            :last-child,
            :where(figure, blockquote) :last-of-type
        )
    ) {
    margin-bottom: 1.5rem;
}

article :where(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

article :where(ul, ol) {
    padding-inline-start: 1.5rem;
}
article :where(ul) {
    list-style-type: square;
}
article :where(ol) {
    list-style-type: decimal;
}

article :where(table) {
    border-collapse: collapse;
}
article :where(tr > *) {
    padding: var(--typo-table-cell-padding);
    border: 1px solid var(--typo-border-color);
    word-break: normal;
}
article :where(blockquote) {
    border-inline-start: 3px solid var(--typo-border-color);
    padding-inline-start: var(--typo-spacing);
}

article :where(figure) {
    width: max-content;
}
article :where(figcaption) {
    text-align: center;
    margin-top: var(--typo-caption-spacing);
    font-size: var(--typo-caption-size);
}
article :where(img, video, iframe, figure) {
    display: block;
    max-width: 100%;
    height: auto;
}
article :where(audio) {
    width: 100%;
}
article :where(iframe[src*="vimeo" i], iframe[src*="youtube" i], video) {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
}

article pre {
    background-color: #374151;
    border-radius: 8px;
    color: #f2f4f8;
    padding: 1rem;
    font-family: monospace;
}
.mainter-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 15px 0 5px 0;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}
.mainter-breadcrumbs .separator,
.mainter-breadcrumbs a {
    flex-shrink: 0;
}
.mainter-breadcrumbs .current-item,
.mainter-breadcrumbs span:last-child {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #374151;
    font-weight: 500;
}
.mainter-breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.crumb-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.crumb-link:hover {
    color: var(--theme-color-brand, #e25822);
    text-decoration: underline;
}
.sep {
    color: #d1d5db;
    font-size: 10px;
    user-select: none;
}
.crumb-current {
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}
@media (max-width: 600px) {
    .mainter-breadcrumbs {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }
    .mainter-breadcrumbs .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .mainter-breadcrumbs .container::-webkit-scrollbar {
        display: none;
    }
    .crumb-current {
        max-width: none;
        color: #374151;
        padding-right: 15px;
    }
}
.full-width-layout-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 50px;
    overflow: hidden;
}
.app-store-header {
    position: relative;
    background-color: #050505;
    color: #fff;
    padding: 80px 0;
    overflow: hidden;
    margin-bottom: 0;
}
.app-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.35);
    transform: scale(1.2);
    z-index: 1;
    pointer-events: none;
}
.app-store-container {
    position: relative;
    z-index: 2;
}
.app-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}
.app-poster {
    flex-shrink: 0;
    width: 260px;
    aspect-ratio: 2/3;
    border-radius: 15px;
    overflow: hidden;
    background: #222;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}
.app-poster:hover {
    transform: rotate(0) scale(1.02);
}
.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.app-info {
    flex-grow: 1;
}
.app-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-new {
    background: #00e676;
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
}
.badge-cat {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-title {
    font-size: clamp(1rem, 5vw, 2.65rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
@media (max-width: 900px) {
    .app-store-header {
        padding: 50px 0;
    }
    .app-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .app-poster {
        width: 200px;
        transform: rotate(0);
        margin: 0 auto;
    }
    .app-title {
        font-size: 2.2rem;
    }
    .app-actions,
    .app-badges {
        justify-content: center;
    }
}
.single-hero-header {
    height: 40vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #000;
    color: #fff;
}
.single-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.single-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.single-hero-container {
    position: relative;
    z-index: 3;
}
.single-hero-title {
    font-size: clamp(1rem, 5vw, 2.65rem);
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #fff;
}
.hero-cat {
    background: #e25822;
    padding: 5px 15px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .app-grid {
        flex-direction: column;
        text-align: center;
    }
    .app-poster {
        width: 180px;
        margin: 0 auto;
    }
}
.entry-header {
    margin-bottom: 30px;
}
.entry-header .post-thumbnail {
    margin-top: 20px;
}
.entry-header .post-thumbnail img {
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
}
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.comments-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}
.comment-form {
    background: var(--card-bg, #fff);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}
.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.comment-form input[type="email"],
.comment-form input[type="text"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--theme-text-main);
}
.comment-form input:focus,
.comment-form textarea:focus {
    background: #fff;
    border-color: var(--theme-color-brand);
    outline: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}
.comment-form .submit {
    background: var(--theme-color-brand) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 700;
    margin-top: 10px;
    width: auto;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s;
}
.comment-form .submit:hover {
    opacity: 0.9;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-body {
    background: var(--card-bg, #fff);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.comment-body:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}
.avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid var(--theme-color-brand);
    padding: 2px;
}
.fn {
    font-style: normal;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--theme-text-main);
}
.fn a {
    color: inherit;
    text-decoration: none;
}
.comment-metadata {
    margin-left: auto;
    font-size: 0.85rem;
    color: #888;
}
.comment-metadata a {
    color: #888;
    text-decoration: none;
}
.comment-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--theme-text-main);
}
.reply {
    text-align: right;
}
.comment-reply-link {
    display: inline-block;
    background: var(--theme-color-brand);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.comment-reply-link:hover {
    background: #333;
    color: #fff;
}
.children {
    list-style: none;
    padding-left: 0;
    margin-left: 20px;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
    .children {
        margin-left: 50px;
        padding-left: 20px;
    }
}
body.dark-mode .comment-form input,
body.dark-mode .comment-form textarea {
    background: #1f2937;
    color: #fff;
    border-color: #374151;
}
body.dark-mode .comment-form input:focus,
body.dark-mode .comment-form textarea:focus {
    border-color: var(--theme-color-brand);
    background: #111827;
}
.author-box-simple {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}
.author-simple-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.author-simple-content {
    flex: 1;
}
.author-simple-name {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--theme-text-main);
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.author-simple-name .small-label {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
}
.author-simple-name a {
    font-weight: 800;
    text-decoration: none;
    color: inherit;
}
.author-simple-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}
@media (max-width: 600px) {
    .author-box-simple {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    .author-simple-name {
        margin-top: 15px;
    }
}
body.dark-mode .author-box-simple {
    background: #1f2937;
    border-color: #374151;
}
body.dark-mode .author-simple-bio {
    color: #ccc;
}
.mainter-share-section {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.share-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--theme-text-main);
}
.share-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}
.share-btn svg {
    margin-right: 8px;
}
.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}
.btn-fb {
    background-color: #1877f2;
}
.btn-x {
    background-color: #000;
}
.btn-wa {
    background-color: #25d366;
}
.btn-li {
    background-color: #0a66c2;
}
@media (max-width: 480px) {
    .share-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
        padding: 10px 15px;
    }
    .share-btn span {
        display: none;
    }
    .share-btn svg {
        margin-right: 0;
    }
}
.related-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
@media (max-width: 576px) {
    .related-grid-wrapper {
        grid-template-columns: 1fr;
    }
    .related-grid-wrapper .post-card .style-overlay {
        height: 220px;
    }
}
.mainter-toc-container {
    margin: 40px 0;
    clear: both;
}
.mainter-toc {
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    width: 100%;
    min-width: 320px;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.toc-header {
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 2px solid #f3f4f6;
    transition: background 0.2s;
    list-style: none;
    color: #111827;
}
.toc-title-text::before {
    content: "☰";
    margin-right: 10px;
    color: var(--theme-color-brand, #e25822);
}
.toc-header::-webkit-details-marker {
    display: none;
}
.toc-toggle-icon {
    font-size: 0.8rem;
    color: #9ca3af;
    transition: transform 0.3s ease;
    background: #f3f4f6;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.mainter-toc[open] .toc-toggle-icon {
    transform: rotate(180deg);
    background: var(--theme-color-brand, #e25822);
    color: #fff;
}
.toc-list-wrapper {
    padding: 25px;
    background: #fff;
    counter-reset: h2counter;
}
.toc-list-wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.toc-list-wrapper li {
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
}
.toc-list-wrapper li::before {
    background-color: var(--theme-color-brand, #e25822);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 12px;
    min-width: 35px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(var(--theme-color-brand-rgb, 226, 88, 34), 0.3);
}
.toc-item {
    counter-increment: h2counter;
    counter-reset: h3counter;
}
.toc-item::before {
    content: counter(h2counter) ".";
}
.toc-subitem {
    counter-increment: h3counter;
    margin-left: 20px;
    font-size: 0.95rem;
}
.toc-subitem::before {
    content: counter(h2counter) "." counter(h3counter);
    background-color: #fff;
    color: var(--theme-color-brand, #e25822);
    border: 2px solid var(--theme-color-brand, #e25822);
    box-shadow: none;
    padding: 2px 6px;
}
.toc-list-wrapper a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}
.toc-list-wrapper a:hover {
    color: var(--theme-color-brand, #e25822);
    border-bottom-color: var(--theme-color-brand, #e25822);
}
body.dark-mode .mainter-toc,
body.dark-mode .toc-header,
body.dark-mode .toc-list-wrapper {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}
body.dark-mode .toc-header {
    border-bottom-color: #374151;
}
body.dark-mode .toc-toggle-icon {
    background: #374151;
    color: #e5e7eb;
}
body.dark-mode .mainter-toc[open] .toc-toggle-icon {
    background: var(--theme-color-brand, #e25822);
    color: #fff;
}
body.dark-mode .toc-list-wrapper a {
    color: #d1d5db;
}
body.dark-mode .toc-list-wrapper a:hover {
    color: var(--theme-color-brand, #e25822);
}
body.dark-mode .toc-subitem::before {
    background-color: #374151;
}
.post-author-meta {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.author-avatar-wrap .author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.author-info-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}
.author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-color-brand);
}
.by-text {
    font-weight: 400;
    color: #666;
}
.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.post-date-row {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
}
.entry-footer-tags {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.single-tag {
    font-size: 1.1rem;
    color: var(--theme-color-brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.single-tag:hover {
    color: #e25822;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .entry-footer-tags {
        justify-content: center;
    }
}
.author-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.author-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition:
        color 0.3s ease,
        transform 0.2s;
    text-decoration: none;
}
.author-social-links a:hover {
    color: #e25822;
    transform: translateY(-2px);
}
.author-social-links svg {
    width: 20px;
    height: 20px;
}
