/* Split out of style.css — enqueued only where it is needed.
   Edit here, not in style.css. */

/* ═══════════════════════════════════════════════════════
   BLOG — article body, search form, pagination
   Previously index.php used Tailwind classes that were
   never loaded; these are the real definitions.
═══════════════════════════════════════════════════════ */
.tpc-article > * + * { margin-top: 1.4rem; }

.tpc-article h2,
.tpc-article h3,
.tpc-article h4 {
    color: #fff;
    font-weight: 800;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: .75rem;
}
.tpc-article h2 { font-size: 1.6rem; }
.tpc-article h3 { font-size: 1.3rem; }
.tpc-article h4 { font-size: 1.1rem; }

.tpc-article p     { color: var(--c-text-muted, #94a3b8); }
.tpc-article strong{ color: #fff; font-weight: 700; }

.tpc-article a {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tpc-article ul,
.tpc-article ol { padding-inline-start: 1.5rem; color: var(--c-text-muted, #94a3b8); }
.tpc-article li + li { margin-top: .5rem; }

.tpc-article blockquote {
    padding: 1.25rem 1.5rem;
    border-inline-start: 3px solid var(--c-primary);
    background: var(--c-surface-2);
    border-radius: var(--r-md, 12px);
    font-style: italic;
}

.tpc-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-lg, 16px);
    display: block;
}

.tpc-article pre {
    padding: 1.25rem;
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r-md, 12px);
    overflow-x: auto;
    font-size: .9rem;
}
.tpc-article code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9em;
}
.tpc-article :not(pre) > code {
    padding: .15em .45em;
    border-radius: 5px;
    background: var(--c-surface-2);
    color: var(--c-primary);
}

.tpc-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.tpc-article th,
.tpc-article td {
    padding: .7rem 1rem;
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: start;
}
.tpc-article th { background: var(--c-surface-2); color: #fff; font-weight: 700; }

/* ── Search form ───────────────────────────────────────── */
.tpc-searchform { display: flex; gap: .5rem; }
.tpc-searchform input[type="search"] {
    flex: 1;
    padding: .8rem 1.1rem;
    border-radius: var(--r-md, 12px);
    border: 1px solid rgba(255, 255, 255, .1);
    background: var(--c-surface-2);
    color: var(--c-text);
    font-family: inherit;
    font-size: .95rem;
}
.tpc-searchform input[type="search"]:focus {
    outline: none;
    border-color: var(--c-primary);
}
.tpc-searchform button {
    padding: 0 1.1rem;
    border: 0;
    border-radius: var(--r-md, 12px);
    background: var(--c-primary);
    color: #fff;
    cursor: pointer;
    font-size: .95rem;
}

/* ── Pagination ────────────────────────────────────────── */
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md, 12px);
    background: var(--c-surface-2);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--c-text-muted, #94a3b8);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--c-primary); color: #fff; }
.pagination .page-numbers.current {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

