/**
 * आरतीसंध्या — टैक्सोनॉमी (category listing) पेज रीडिज़ाइन (taxonomy1.css)
 * archive1.css / single1.css जैसा ही थीम/टोकन सिस्टम — विज़ुअल consistency के लिए
 * नोट: स्वतंत्र फ़ाइल — सभी क्लासेज़ 't1-' प्रीफ़िक्स के साथ
 */

:root {
    --t1-maroon:      #8A1220;
    --t1-maroon-deep: #4A0E17;
    --t1-saffron:     #E9871E;
    --t1-marigold:    #F6B93B;

    --t1-ink:         #2A1810;
    --t1-ink-soft:    #6B4A3A;
    --t1-ink-faint:   #9C8172;
    --t1-cream:       #FFF3E0;
    --t1-tint:        #FFFAF2;
    --t1-line:        #F0DFC6;
    --t1-white:       #FFFFFF;

    --t1-radius-sm: 12px;
    --t1-radius-md: 18px;
    --t1-radius-lg: 26px;

    --t1-shadow-sm: 0 2px 10px rgba(90, 30, 15, 0.06);
    --t1-shadow-md: 0 14px 32px rgba(90, 30, 15, 0.12);

    --t1-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --t1-font-display: 'Noto Serif Devanagari', 'Tiro Devanagari Hindi', serif;
    --t1-font-body: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    --t1-font-utility: 'Poppins', 'Noto Sans Devanagari', sans-serif;
}

.t1-page, .t1-page h1, .t1-page h2, .t1-page h3, .t1-page h4, .t1-page p {
    overflow-wrap: break-word;
    word-break: break-word;
}

.t1-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ================================================
   हेडर बैंड
================================================ */
.t1-header-band {
    background: linear-gradient(160deg, var(--t1-cream) 0%, var(--t1-white) 100%);
    padding: 46px 0 36px;
    border-bottom: 1px solid var(--t1-line);
    text-align: center;
}

.t1-header-band h1 {
    font-family: var(--t1-font-display);
    font-size: clamp(21px, 2vw + 14px, 32px);
    font-weight: 700;
    color: var(--t1-maroon);
    margin-bottom: 12px;
}

.t1-header-desc {
    font-family: var(--t1-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--t1-ink-soft);
    max-width: 1100px;
    margin: 0 auto 16px;
}

.t1-total-pill {
    display: inline-block;
    font-family: var(--t1-font-utility);
    font-size: 16px;
    font-weight: 600;
    color: var(--t1-maroon);
    background: var(--t1-white);
    border: 1px solid var(--t1-line);
    padding: 8px 20px;
    border-radius: 50px;
}

/* ================================================
   लेआउट — Posts Grid + Sidebar
================================================ */
.t1-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 40px 0 60px;
    align-items: start;
}

.t1-main { min-width: 0; }

.t1-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.t1-post-card {
    background: var(--t1-white);
    border: 1px solid var(--t1-line);
    border-radius: var(--t1-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--t1-ease);
}

.t1-post-card:hover { transform: translateY(-6px); box-shadow: var(--t1-shadow-md); border-color: var(--t1-marigold); }

.t1-post-thumb { aspect-ratio: 16/10; background: var(--t1-cream); overflow: hidden; }
.t1-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--t1-ease); }
.t1-post-card:hover .t1-post-thumb img { transform: scale(1.06); }

.t1-post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.t1-post-body h3 { font-family: var(--t1-font-display); font-size: clamp(16px, 0.5vw + 13px, 17px); line-height: 1.4; }
.t1-post-body h3 a { color: var(--t1-ink); text-decoration: none; }
.t1-post-body h3 a:hover { color: var(--t1-maroon); }

.t1-post-body p {
    font-family: var(--t1-font-body); font-size: clamp(16px, 0.25vw + 11px, 16px); line-height: 1.65; color: var(--t1-ink-soft);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.t1-read-more {
    margin-top: auto;
    font-family: var(--t1-font-utility);
    font-size: 16px;
    font-weight: 600;
    color: var(--t1-saffron);
    text-decoration: none;
    align-self: flex-start;
}
.t1-read-more:hover { color: var(--t1-maroon); }

/* Empty state */
.t1-empty { text-align: center; padding: 70px 20px; }
.t1-empty h2 { font-family: var(--t1-font-display); font-size: 22px; color: var(--t1-maroon); margin-bottom: 10px; }
.t1-empty p { font-family: var(--t1-font-body); color: var(--t1-ink-faint); }

/* Pagination */
.t1-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }

.t1-pagination a, .t1-pagination span {
    font-family: var(--t1-font-utility);
    font-size: 16px; font-weight: 600;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--t1-ink-soft);
    background: var(--t1-white);
    border: 1px solid var(--t1-line);
    transition: all 0.25s var(--t1-ease);
}

.t1-pagination a:hover { border-color: var(--t1-marigold); color: var(--t1-maroon); }
.t1-pagination span.t1-current { background: var(--t1-maroon); border-color: var(--t1-maroon); color: #fff; }

/* ================================================
   साइडबार
================================================ */
.t1-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.t1-widget {
    background: var(--t1-white);
    border: 1px solid var(--t1-line);
    border-radius: var(--t1-radius-md);
    padding: 22px;
}

.t1-widget h3 {
    font-family: var(--t1-font-display);
    font-size: 16.5px; font-weight: 700; color: var(--t1-maroon);
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 2px solid var(--t1-line);
}

.t1-simple-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.t1-simple-list li a {
    display: block;
    font-family: var(--t1-font-body); font-size: 16px; color: var(--t1-ink);
    text-decoration: none; padding: 9px 6px;
    border-bottom: 1px dashed var(--t1-line);
    transition: all 0.2s var(--t1-ease);
}
.t1-simple-list li:last-child a { border-bottom: none; }
.t1-simple-list li a:hover { color: var(--t1-maroon); padding-left: 12px; }

.t1-post-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px dashed var(--t1-line);
}
.t1-post-item:last-child { border-bottom: none; }

.t1-post-item-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--t1-cream); }
.t1-post-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.t1-post-item-info { min-width: 0; }
.t1-post-item-info h4 { font-family: var(--t1-font-body); font-size: 16px; font-weight: 700; color: var(--t1-ink); margin-bottom: 3px; line-height: 1.4; }
.t1-post-item-info h4 a { color: inherit; text-decoration: none; }
.t1-post-item-info h4 a:hover { color: var(--t1-maroon); }
.t1-post-item-date { font-family: var(--t1-font-utility); font-size: 16px; color: var(--t1-ink-faint); }

a:focus-visible { outline: 3px solid var(--t1-saffron); outline-offset: 2px; }

/* ================================================
   RESPONSIVE — same 5-tier system used site-wide
================================================ */
/* ================================================
   RESPONSIVE — archive1.css जैसा ही final principle:
   sidebar हमेशा साथ में रहता है (कभी नीचे स्टैक नहीं होता जब तक मोबाइल न आ जाए),
   सिर्फ़ ratio बदलता है, और उसी हिसाब से posts-grid adjust होता है
================================================ */
@media (min-width: 1280px) and (max-width: 1400px) {
    .t1-container { max-width: 1200px; }
}

/* ---------- छोटा लैपटॉप (1024px – 1280px) — sidebar साथ, posts अब भी 3-कॉलम ---------- */
@media (max-width: 1280px) and (min-width: 1024px) {
    .t1-layout { grid-template-columns: 1fr 300px; gap: 15px; }
    .t1-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* ---------- टैबलेट (768px – 1023px) — sidebar अभी भी साथ है, बस ratio 2:1 हो गया ---------- */
@media (max-width: 1023px) and (min-width: 768px) {
    .t1-layout {
        grid-template-columns: 2fr 1fr;
        gap: 10px;
    }
    .t1-sidebar { order: 2; }
    .t1-main { order: 1; }
    .t1-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ---------- मोबाइल (<767px) — यहां से genuinely स्टैक + 2-कॉलम ---------- */
@media (max-width: 767px) {
    .t1-container { padding: 0 16px; }
    .t1-layout { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 44px; }
    .t1-sidebar { order: 2; }
    .t1-main { order: 1; }
    .t1-header-band { padding: 34px 0 26px; }
    .t1-header-desc { font-size: 16px; }
    .t1-posts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .t1-post-body { padding: 14px; }
    .t1-post-body p { -webkit-line-clamp: 2; }
    .t1-pagination a, .t1-pagination span { width: 34px; height: 34px; font-size: 16px; }
}

/* ---------- बहुत छोटे फ़ोन (<280px) ---------- */
@media (max-width: 280px) {
    .t1-container { padding: 0 10px; }
    .t1-posts-grid { grid-template-columns: 1fr; }
}