/*
Theme Name: Zeroy
Theme URI: https://zeroy.dev
Author: Zeroy Team
Author URI: https://zeroy.dev
Description: 极简 WordPress 主题，集成 Tailwind CSS v4，零干扰设计
Version: 1.0.4
License: GPL v2 or later
Text Domain: zeroy
*/

/* 主题样式将通过 Tailwind CSS 提供 */
/* =========================================================
   TrustNovar Single Article
   ========================================================= */

.tn-article-page {
    background: #ffffff;
    padding: 42px 24px 96px;
}

.tn-single-article {
    width: 100%;
}

.tn-article-header-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.tn-article-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #C9A14A;
}

.tn-article-kicker a {
    color: #C9A14A;
    text-decoration: none;
}

.tn-kicker-divider {
    color: #AAB3BF;
}

.tn-article-title {
    max-width: 920px;
    margin: 0;
    color: #0F2747;
    font-size: clamp(38px, 4.3vw, 62px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.tn-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 24px;
    color: #677487;
    font-size: 15px;
    line-height: 1.6;
}

.tn-article-meta a {
    color: #536174;
    text-decoration: none;
}

.tn-article-meta a:hover {
    color: #C9A14A;
}

.tn-meta-divider {
    color: #C9A14A;
}

/* Featured Image */

.tn-article-featured-image {
    width: 100%;
    max-width: 1100px;
    margin: 44px auto 54px;
}

.tn-article-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
}

/* Main Article Content */

.tn-article-content {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    color: #33455B;
    font-size: 18px;
    line-height: 1.85;
}

.tn-article-content p {
    margin: 0 0 24px;
}

.tn-article-content h2 {
    margin: 52px 0 20px;
    color: #0F2747;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.tn-article-content h3 {
    margin: 38px 0 16px;
    color: #0F2747;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
}

.tn-article-content ul,
.tn-article-content ol {
    margin: 0 0 26px;
    padding-left: 26px;
}

.tn-article-content li {
    margin-bottom: 10px;
}

.tn-article-content strong {
    color: #0F2747;
}

.tn-article-content a {
    color: #0F2747;
    text-decoration-color: #C9A14A;
    text-underline-offset: 3px;
}

.tn-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 34px auto;
    border-radius: 14px;
}

/* Article Footer */

.tn-article-footer {
    width: 100%;
    max-width: 820px;
    margin: 64px auto 0;
    padding-top: 28px;
    border-top: 1px solid #E4E9F0;
}

.tn-back-resources {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #0F2747;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.tn-back-resources:hover {
    color: #C9A14A;
}

/* Tablet */

@media (max-width: 991px) {

    .tn-article-page {
        padding: 56px 28px 80px;
    }

    .tn-article-featured-image {
        margin-top: 36px;
        margin-bottom: 44px;
    }

}

/* Mobile */

@media (max-width: 767px) {

    .tn-article-page {
        padding: 40px 18px 64px;
    }

    .tn-article-kicker {
        font-size: 11px;
        margin-bottom: 18px;
    }

    .tn-article-title {
        font-size: 34px;
        line-height: 1.15;
    }

    .tn-article-meta {
        margin-top: 18px;
        font-size: 13px;
    }

    .tn-article-featured-image {
        margin: 28px auto 36px;
    }

    .tn-article-image {
        border-radius: 12px;
    }

    .tn-article-content {
        font-size: 17px;
        line-height: 1.8;
    }

    .tn-article-content h2 {
        margin-top: 40px;
        font-size: 27px;
    }

    .tn-article-content h3 {
        margin-top: 32px;
        font-size: 22px;
    }

    .tn-article-footer {
        margin-top: 48px;
    }

}
/* =========================================================
   TrustNovar Resources Category Pages
   ========================================================= */

.tn-category-page {
    width: 100%;
    background: #ffffff;
    padding: 78px 32px 105px;
    box-sizing: border-box;
}

.tn-category-shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}


/* Category Header */

.tn-category-header {
    width: 100%;
    max-width: 800px;
    margin: 0 0 60px;
}

.tn-category-kicker {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tn-category-kicker a {
    color: #C9A14A;
    text-decoration: none;
}

.tn-category-title {
    margin: 0;
    color: #0F2747;
    font-size: clamp(42px, 4vw, 58px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.tn-category-description {
    max-width: 720px;
    margin-top: 20px;
    color: #5F6F84;
    font-size: 18px;
    line-height: 1.7;
}

.tn-category-description p {
    margin: 0;
}


/* Three-column Article Grid */

.tn-category-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    align-items: stretch;
}


/* Article Card */

.tn-category-card {
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;

    background: #ffffff;
    border: 1px solid #E1E6EC;
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 4px 18px rgba(15, 39, 71, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.tn-category-card:hover {
    transform: translateY(-4px);
    border-color: #D5C08B;
    box-shadow: 0 18px 42px rgba(15, 39, 71, 0.10);
}


/* Card Image */

.tn-category-image-link {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #F5F3EE;
}

.tn-category-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.tn-category-card:hover .tn-category-image {
    transform: scale(1.025);
}


/* Card Text */

.tn-category-card-content {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    padding: 28px 28px 30px;
}

.tn-category-date {
    display: block;
    margin: 0 0 13px;
    color: #8995A5;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.tn-category-card-title {
    margin: 0 0 17px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.tn-category-card-title a {
    color: #0F2747;
    text-decoration: none;
}

.tn-category-card-title a:hover {
    color: #C9A14A;
}

.tn-category-excerpt {
    margin: 0 0 27px;
    color: #5F6F84;
    font-size: 16px;
    line-height: 1.7;
}


/* Read Article */

.tn-category-read-more {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;

    width: fit-content;
    margin-top: auto;

    color: #0F2747;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.tn-category-read-more span {
    color: #C9A14A;
    font-size: 19px;
    transition: transform 0.2s ease;
}

.tn-category-read-more:hover {
    color: #C9A14A;
}

.tn-category-read-more:hover span {
    transform: translateX(4px);
}


/* Pagination */

.tn-category-pagination {
    margin-top: 64px;
}

.tn-category-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tn-category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;

    border: 1px solid #DDE3EA;
    border-radius: 9px;

    color: #0F2747;
    background: #ffffff;
    text-decoration: none;
}

.tn-category-pagination .page-numbers.current {
    background: #0F2747;
    border-color: #0F2747;
    color: #ffffff;
}


/* Tablet */

@media (max-width: 991px) {

    .tn-category-page {
        padding: 60px 28px 84px;
    }

    .tn-category-header {
        margin-bottom: 50px;
    }

    .tn-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* Mobile */

@media (max-width: 767px) {

    .tn-category-page {
        padding: 42px 18px 66px;
    }

    .tn-category-header {
        margin-bottom: 40px;
    }

    .tn-category-title {
        font-size: 38px;
    }

    .tn-category-description {
        font-size: 17px;
    }

    .tn-category-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .tn-category-card-content {
        padding: 24px;
    }

    .tn-category-card-title {
        font-size: 22px;
    }
}
/* =========================================================
   TrustNovar Category Page Compact Refinement
   ========================================================= */

/* Reduce top / bottom spacing of whole category page */
.tn-category-page {
    padding-top: 48px !important;
    padding-bottom: 80px !important;
}

/* Reduce spacing between category intro and article cards */
.tn-category-header {
    margin-bottom: 40px !important;
}

/* Slightly tighter description */
.tn-category-description {
    margin-top: 16px !important;
    line-height: 1.6 !important;
}

/* Make article image shorter */
.tn-category-image-link {
    aspect-ratio: 16 / 9 !important;
}

/* Reduce card text area */
.tn-category-card-content {
    padding: 22px 24px 24px !important;
}

/* Date */
.tn-category-date {
    margin-bottom: 10px !important;
    font-size: 12px !important;
}

/* Article title */
.tn-category-card-title {
    margin-bottom: 14px !important;
    font-size: 22px !important;
    line-height: 1.28 !important;
}

/* Excerpt */
.tn-category-excerpt {
    margin-bottom: 20px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Read Article */
.tn-category-read-more {
    font-size: 14px !important;
}
/* =========================================================
   TrustNovar - Remove extra header spacer on static pages
   Keep spacer behavior unchanged for blog articles
   ========================================================= */

body.page > .tn-header-spacer {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}