:root {
    --jpts-ink: #172127;
    --jpts-muted: #5f6c70;
    --jpts-surface: #f6f2e8;
    --jpts-paper: #fffdf8;
    --jpts-line: rgba(23, 33, 39, 0.1);
    --jpts-accent: #b15f2c;
    --jpts-accent-soft: rgba(177, 95, 44, 0.12);
    --jpts-teal: #1d6f74;
    --jpts-shadow: 0 24px 60px rgba(23, 33, 39, 0.08);
    --jpts-radius-lg: 28px;
    --jpts-radius-md: 20px;
    --jpts-radius-sm: 14px;
    --jpts-wrap: min(1180px, calc(100vw - 32px));
}

.jpts-taxonomy-page {
    color: var(--jpts-ink);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(29, 111, 116, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(177, 95, 44, 0.09), transparent 32%),
        linear-gradient(180deg, #fbf7f0 0%, #f1efe8 100%);
}

.jpts-wrap {
    width: var(--jpts-wrap);
    margin: 0 auto;
}

.jpts-hero {
    padding: 56px 0 28px;
}

.jpts-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jpts-breadcrumbs a,
.jpts-breadcrumbs span {
    color: var(--jpts-muted);
}

.jpts-breadcrumbs a::after {
    content: "/";
    margin-left: 8px;
}

.jpts-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.jpts-hero-copy,
.jpts-hero-panel,
.jpts-child-card,
.jpts-post-card,
.jpts-empty-state {
    border: 1px solid var(--jpts-line);
    border-radius: var(--jpts-radius-lg);
    background: rgba(255, 253, 248, 0.88);
    box-shadow: var(--jpts-shadow);
    backdrop-filter: blur(8px);
}

.jpts-hero-copy {
    padding: 38px;
}

.jpts-kicker,
.jpts-section-heading span,
.jpts-post-meta {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--jpts-teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.jpts-kicker::before,
.jpts-section-heading span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--jpts-accent);
}

.jpts-hero-copy h1,
.jpts-section-heading h2,
.jpts-post-card h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.jpts-hero-copy h1 {
    margin: 16px 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.02;
}

.jpts-description,
.jpts-intro,
.jpts-post-card p,
.jpts-child-card p,
.jpts-empty-state p {
    color: var(--jpts-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.jpts-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background:
        linear-gradient(160deg, rgba(177, 95, 44, 0.98), rgba(29, 111, 116, 0.98));
    color: #fff8ef;
}

.jpts-hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.jpts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.jpts-metrics {
    display: grid;
    gap: 18px;
    margin: 0;
}

.jpts-metrics div {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 248, 239, 0.18);
}

.jpts-metrics div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.jpts-metrics dt {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jpts-metrics dd {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.jpts-section {
    padding: 28px 0 56px;
}

.jpts-section-heading {
    margin-bottom: 24px;
}

.jpts-section-heading h2 {
    margin: 14px 0 0;
    font-size: clamp(1.8rem, 2.4vw, 2.8rem);
    line-height: 1.08;
}

.jpts-children-grid,
.jpts-post-grid {
    display: grid;
    gap: 22px;
}

.jpts-children-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.jpts-post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.jpts-child-card,
.jpts-post-card,
.jpts-empty-state {
    padding: 24px;
}

.jpts-card-count {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--jpts-accent-soft);
    color: var(--jpts-accent);
    font-size: 13px;
    font-weight: 700;
}

.jpts-child-card h3,
.jpts-post-card h3 {
    margin: 0 0 14px;
    font-size: 1.55rem;
    line-height: 1.15;
}

.jpts-child-card a,
.jpts-post-card a {
    color: inherit;
    text-decoration: none;
}

.jpts-child-card a:hover,
.jpts-post-card a:hover {
    color: var(--jpts-teal);
}

.jpts-post-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.jpts-post-image {
    display: block;
    overflow: hidden;
    border-radius: var(--jpts-radius-md);
    aspect-ratio: 16 / 10;
    background: #d8ddd7;
}

.jpts-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jpts-post-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jpts-post-meta {
    color: var(--jpts-muted);
}

.jpts-post-meta span + span::before {
    content: "•";
    margin-right: 10px;
}

.jpts-post-author {
    color: var(--jpts-accent);
    font-size: 14px;
    font-weight: 700;
}

.jpts-pagination {
    margin-top: 28px;
}

.jpts-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jpts-pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--jpts-line);
    background: var(--jpts-paper);
    color: var(--jpts-ink);
    text-decoration: none;
}

.jpts-pagination .page-numbers.current,
.jpts-pagination .page-numbers:hover {
    border-color: transparent;
    background: var(--jpts-accent);
    color: #fff;
}

.jpts-empty-state {
    text-align: center;
}

.jpts-empty-state h1,
.jpts-empty-state h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

@media (max-width: 960px) {
    .jpts-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .jpts-hero {
        padding-top: 36px;
    }

    .jpts-hero-copy,
    .jpts-hero-panel,
    .jpts-child-card,
    .jpts-post-card,
    .jpts-empty-state {
        padding: 20px;
        border-radius: 22px;
    }
}
