:root {
    --tishtrya-blue: #1C39BB;
    --tishtrya-blue-soft: #3d56d4;
    --tishtrya-blue-glow: rgba(28, 57, 187, 0.35);
    --tishtrya-black: #050505;
    --tishtrya-bg: #050505;
    --tishtrya-surface: #0c0c10;
    --tishtrya-border: rgba(255, 255, 255, 0.08);
    --tishtrya-text: #f4f4f5;
    --tishtrya-muted: #a1a1aa;
    --tishtrya-header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--tishtrya-bg);
    color: var(--tishtrya-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--tishtrya-blue-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #7b93ff;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--tishtrya-header-h);
    border-bottom: 1px solid var(--tishtrya-border);
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(14px);
    direction: ltr;
}

.site-header__inner {
    max-width: 1120px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    order: 1;
}

.site-nav {
    order: 2;
    margin-left: auto;
}

.site-brand__logo {
    width: auto;
    height: 38px;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list li {
    margin: 0;
}

.site-nav__list a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--tishtrya-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item a,
.site-nav__list .is-active a {
    color: var(--tishtrya-text);
    background: rgba(28, 57, 187, 0.16);
}

.site-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.site-main--home {
    position: relative;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--tishtrya-header-h));
    overflow: hidden;
}

.home-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tishtrya-blue);
    box-shadow: 0 0 12px var(--tishtrya-blue-glow);
    animation: starPulse 4s ease-in-out infinite;
}

.home-star--one { top: 12%; left: 18%; }
.home-star--two { top: 22%; right: 14%; animation-delay: 1.2s; }
.home-star--three { top: 8%; right: 38%; width: 3px; height: 3px; animation-delay: 2s; }

.home-rain {
    position: absolute;
    width: 2px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, var(--tishtrya-blue));
    opacity: 0.25;
    animation: rainFall 5s linear infinite;
}

.home-rain--one { top: -60px; left: 24%; }
.home-rain--two { top: -60px; left: 52%; animation-delay: 1.5s; }
.home-rain--three { top: -60px; right: 20%; animation-delay: 2.8s; }

@keyframes starPulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

@keyframes rainFall {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 0.35; }
    100% { transform: translateY(110vh); opacity: 0; }
}

.home-hero {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 40px;
    min-height: calc(100vh - var(--tishtrya-header-h));
}

.home-hero__intro {
    text-align: center;
    margin-bottom: 24px;
}

.home-hero__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
}

.home-hero__tagline {
    margin: 0;
    color: var(--tishtrya-muted);
    font-size: 15px;
    letter-spacing: 0.02em;
}

.home-hero__chat {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-footer {
    border-top: 1px solid var(--tishtrya-border);
    background: rgba(5, 5, 5, 0.95);
}

.site-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--tishtrya-muted);
    font-size: 13px;
}

.site-footer__brand {
    color: var(--tishtrya-text);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.page-header {
    margin-bottom: 32px;
}

.page-header__title {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
}

.page-header__desc {
    margin: 0;
    color: var(--tishtrya-muted);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    border: 1px solid var(--tishtrya-border);
    border-radius: 16px;
    background: var(--tishtrya-surface);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(28, 57, 187, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.post-card__link {
    display: block;
    color: inherit;
}

.post-card__thumb {
    overflow: hidden;
    border-bottom: 1px solid var(--tishtrya-border);
    background: rgba(28, 57, 187, 0.08);
    min-height: 180px;
}

.post-card__thumb img,
.post-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.post-card__thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(28, 57, 187, 0.2), rgba(5, 5, 5, 0.9));
}

.post-card__meta,
.single-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.post-card__author,
.single-post__author {
    color: var(--tishtrya-blue-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.post-card__author::before,
.single-post__author::before {
    content: none;
}

.post-card__body {
    padding: 20px;
}

.post-card__date,
.single-post__date {
    display: inline;
    margin-bottom: 0;
    color: var(--tishtrya-muted);
    font-size: 13px;
}

.post-card__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.post-card__excerpt {
    margin: 0;
    color: var(--tishtrya-muted);
    font-size: 14px;
}

.single-post__header {
    margin-bottom: 28px;
}

.single-post__hero {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--tishtrya-border);
    background: rgba(28, 57, 187, 0.06);
}

.single-post__hero-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.single-post__back {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 14px;
}

.single-post__title,
.page-content__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
}

.tishtrya-author-inline {
    color: var(--tishtrya-blue-soft);
    font-weight: 600;
}

.tishtrya-figure--svg svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
}

.tishtrya-figure--svg {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.single-post__content img,
.single-post__content .tishtrya-figure img {
    max-width: 100%;
    height: auto;
    display: block;
}

.single-post__content,
.page-content__body {
    color: #d4d4d8;
    font-size: 1.05rem;
    line-height: 1.85;
}

.single-post__content h2,
.single-post__content h3,
.page-content__body h2,
.page-content__body h3 {
    color: var(--tishtrya-text);
    margin-top: 2rem;
}

.single-post__content p,
.page-content__body p {
    margin: 0 0 1.2rem;
}

.pagination-wrap {
    margin-top: 40px;
}

.pagination-wrap .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--tishtrya-border);
    border-radius: 10px;
    color: var(--tishtrya-muted);
    background: var(--tishtrya-surface);
}

.pagination-wrap .current {
    color: var(--tishtrya-text);
    border-color: rgba(28, 57, 187, 0.45);
    background: rgba(28, 57, 187, 0.18);
}

.empty-state,
.error-panel {
    padding: 48px 24px;
    border: 1px dashed var(--tishtrya-border);
    border-radius: 16px;
    text-align: center;
    color: var(--tishtrya-muted);
    background: rgba(255, 255, 255, 0.02);
}

.error-panel h1 {
    margin: 0 0 8px;
    font-size: 4rem;
    color: var(--tishtrya-blue);
}

.error-panel__link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--tishtrya-blue);
    color: #fff;
}

.error-panel__link:hover {
    color: #fff;
    background: var(--tishtrya-blue-soft);
}

.tishtrya-home-page .site-footer {
    display: none;
}

@media (max-width: 768px) {
    .site-header__inner {
        padding: 0 16px;
    }

    .site-brand__logo {
        height: 32px;
    }

    .home-hero {
        padding: 20px 16px 24px;
    }

    .home-hero__intro {
        margin-bottom: 16px;
    }

    .home-hero__icon {
        width: 56px;
        height: 56px;
    }

    .site-main {
        padding: 28px 16px 48px;
    }
}

.tishtrya-abstract {
    margin-bottom: 32px;
    padding: 24px 28px;
    border: 1px solid rgba(28, 57, 187, 0.25);
    border-radius: 14px;
    background: rgba(28, 57, 187, 0.08);
}

.tishtrya-abstract h2 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--tishtrya-blue-soft);
}

.tishtrya-abstract p {
    margin-bottom: 0;
    font-style: normal;
    line-height: 1.9;
}

    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tishtrya-border);
    color: var(--tishtrya-muted);
    font-size: 14px;
}

.tishtrya-hero {
    margin: 0 0 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--tishtrya-border);
}

.tishtrya-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.tishtrya-article h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.65rem;
    color: var(--tishtrya-text);
    letter-spacing: -0.01em;
}

.tishtrya-article h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.2rem;
    color: #d4d4d8;
}

.tishtrya-article p {
    margin: 0 0 1.15rem;
    color: #d4d4d8;
    line-height: 1.85;
}

.tishtrya-toc {
    margin: 28px 0 36px;
    padding: 20px 24px;
    border: 1px solid var(--tishtrya-border);
    border-radius: 14px;
    background: rgba(28, 57, 187, 0.06);
}

.tishtrya-toc h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.tishtrya-toc ol {
    margin: 0;
    padding-right: 20px;
    color: var(--tishtrya-muted);
}

.tishtrya-toc a {
    color: var(--tishtrya-blue-soft);
}

.tishtrya-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}

.tishtrya-table caption {
    caption-side: top;
    padding: 8px 0 12px;
    color: var(--tishtrya-muted);
    font-size: 13px;
    text-align: right;
}

.tishtrya-table th,
.tishtrya-table td {
    padding: 12px 14px;
    border: 1px solid var(--tishtrya-border);
    text-align: right;
}

.tishtrya-table th {
    background: rgba(28, 57, 187, 0.15);
    color: var(--tishtrya-text);
    font-weight: 600;
}

.tishtrya-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.tishtrya-figure {
    margin: 28px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--tishtrya-border);
    background: var(--tishtrya-surface);
}

.tishtrya-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.tishtrya-figure figcaption {
    padding: 12px 16px;
    color: var(--tishtrya-muted);
    font-size: 13px;
    border-top: 1px solid var(--tishtrya-border);
}

.tishtrya-callout {
    margin: 32px 0;
    padding: 20px 24px;
    border-right: 4px solid var(--tishtrya-blue);
    border-radius: 0 12px 12px 0;
    background: rgba(28, 57, 187, 0.1);
}

.tishtrya-callout h2,
.tishtrya-callout h3 {
    margin-top: 0;
}

.tishtrya-video {
    position: relative;
    margin: 32px 0;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--tishtrya-border);
    background: #000;
}

.tishtrya-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tishtrya-references {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--tishtrya-border);
}

.tishtrya-references h2 {
    font-size: 1.25rem;
}

.tishtrya-references ol {
    padding-right: 20px;
    color: var(--tishtrya-muted);
    font-size: 14px;
    line-height: 1.8;
}

.tishtrya-references a {
    word-break: break-word;
}

