/*
Theme Name: Cats Judging Humans
Theme URI: https://www.catsjudginghumans.com/
Author: Cats Judging Humans
Description: Official Cats Judging Humans public-site theme for Design Pages, Breed Judgment Articles, archives and related editorial content.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: cats-judging-humans
*/

/* CJH_WORDPRESS_THEME_V1_0_2 */


/* CJH_THEME_ARTWORK_NO_CROP_V1_0_1
   Homepage/archive card artwork must always be fully visible.
   Never use object-fit: cover for CJH artwork thumbnails. */

:root {
    --cjh-ink: #171717;
    --cjh-cream: #F1E5CF;
    --cjh-rust: #C46535;
    --cjh-gold: #C69A4B;
    --cjh-burgundy: #9B4638;
    --cjh-paper: #FFFDF8;
    --cjh-muted: #6E6257;
    --cjh-line: rgba(23, 23, 23, 0.15);
    --cjh-shadow: 0 18px 50px rgba(23, 23, 23, 0.09);
    --cjh-radius: 22px;
    --cjh-content: 780px;
    --cjh-wide: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cjh-cream);
    color: var(--cjh-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--cjh-burgundy);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
    color: var(--cjh-rust);
}

button,
input,
textarea,
select {
    font: inherit;
}

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

.screen-reader-text:focus {
    width: auto;
    height: auto;
    clip: auto;
    margin: 8px;
    padding: 10px 14px;
    background: var(--cjh-paper);
    color: var(--cjh-ink);
    z-index: 9999;
}

.cjh-site-header {
    background: var(--cjh-ink);
    color: var(--cjh-cream);
    border-bottom: 4px solid var(--cjh-gold);
}

.cjh-header-inner,
.cjh-footer-inner,
.cjh-wide,
.cjh-home-section {
    width: min(calc(100% - 40px), var(--cjh-wide));
    margin-inline: auto;
}

.cjh-header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding-block: 14px;
}

.cjh-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--cjh-cream);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.cjh-brand:hover,
.cjh-brand:focus-visible {
    color: #fff;
}

.cjh-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--cjh-cream);
}

.cjh-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.cjh-brand-name {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.cjh-brand-note {
    margin-top: 5px;
    color: #D8CBB7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cjh-primary-nav ul,
.cjh-footer-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.cjh-primary-nav a {
    display: block;
    padding: 10px 13px;
    color: var(--cjh-cream);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.cjh-primary-nav a:hover,
.cjh-primary-nav a:focus-visible,
.cjh-primary-nav .current-menu-item > a,
.cjh-primary-nav .current_page_item > a {
    background: var(--cjh-rust);
    color: #fff;
}

.cjh-main {
    min-height: 62vh;
}

.cjh-home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 18%, rgba(198, 154, 75, 0.28), transparent 30%),
        linear-gradient(135deg, var(--cjh-ink), #2B211C 62%, #4A2D26);
    color: var(--cjh-cream);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cjh-home-hero-inner {
    width: min(calc(100% - 40px), var(--cjh-wide));
    margin-inline: auto;
    padding: clamp(72px, 10vw, 132px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
}

.cjh-kicker {
    margin: 0 0 14px;
    color: #E5BE75;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cjh-home-hero h1 {
    max-width: 780px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.cjh-home-hero p {
    max-width: 690px;
    margin: 24px 0 0;
    color: #E8DECF;
    font-size: clamp(1.03rem, 2vw, 1.28rem);
}

.cjh-home-verdict {
    padding: 28px;
    border: 1px solid rgba(241, 229, 207, 0.18);
    border-radius: 26px;
    background: rgba(241, 229, 207, 0.07);
    box-shadow: 0 24px 90px rgba(0,0,0,0.22);
}

.cjh-home-verdict strong {
    display: block;
    color: var(--cjh-gold);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cjh-home-verdict p {
    margin: 9px 0 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.cjh-button,
.wp-element-button,
.cjh-zazzle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--cjh-rust);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: none;
}

.cjh-button:hover,
.cjh-button:focus-visible,
.wp-element-button:hover,
.wp-element-button:focus-visible,
.cjh-zazzle-button:hover,
.cjh-zazzle-button:focus-visible {
    background: var(--cjh-burgundy);
    color: #fff;
}

.cjh-button-secondary {
    background: var(--cjh-gold);
    color: var(--cjh-ink);
}

.cjh-home-section {
    padding-block: clamp(58px, 8vw, 96px);
}

.cjh-home-section + .cjh-home-section {
    border-top: 1px solid var(--cjh-line);
}

.cjh-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.cjh-section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.cjh-section-heading p {
    max-width: 570px;
    margin: 9px 0 0;
    color: var(--cjh-muted);
}

.cjh-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cjh-card {
    overflow: hidden;
    min-width: 0;
    background: var(--cjh-paper);
    border: 1px solid var(--cjh-line);
    border-radius: var(--cjh-radius);
    box-shadow: var(--cjh-shadow);
}

.cjh-card-media {
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 6;
    padding: 10px;
    background: var(--cjh-paper);
    overflow: hidden;
}

.cjh-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.cjh-card-body {
    padding: 22px;
}

.cjh-card-type {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--cjh-rust);
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cjh-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.14;
}

.cjh-card h3 a {
    color: var(--cjh-ink);
    text-decoration: none;
}

.cjh-card h3 a:hover,
.cjh-card h3 a:focus-visible {
    color: var(--cjh-burgundy);
}

.cjh-card p {
    margin: 13px 0 0;
    color: var(--cjh-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cjh-page-shell {
    width: min(calc(100% - 40px), var(--cjh-wide));
    margin-inline: auto;
    padding-block: clamp(48px, 7vw, 88px);
}

.cjh-article {
    width: min(100%, var(--cjh-content));
    margin-inline: auto;
}

.cjh-article-header {
    margin-bottom: 34px;
    text-align: center;
}

.cjh-article-eyebrow {
    margin-bottom: 12px;
    color: var(--cjh-rust);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cjh-article-title,
.cjh-archive-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.cjh-article-title {
    font-size: clamp(2.55rem, 6vw, 5.5rem);
}

.cjh-archive-title {
    font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.cjh-article-excerpt {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--cjh-muted);
    font-size: 1.1rem;
}

.cjh-article-featured {
    margin: 0 0 34px;
    border-radius: var(--cjh-radius);
    overflow: hidden;
    box-shadow: var(--cjh-shadow);
}

.cjh-entry-content {
    font-size: 1.03rem;
}

.cjh-entry-content > p,
.cjh-entry-content .cjh-design-intro p,
.cjh-entry-content .cjh-breed-intro p,
.cjh-entry-content .cjh-design-closing p,
.cjh-entry-content .cjh-breed-closing p {
    margin: 0 0 1.3em;
}

.cjh-entry-content .cjh-design-intro,
.cjh-entry-content .cjh-breed-intro {
    margin-bottom: 44px;
    padding: 24px 26px;
    border-left: 5px solid var(--cjh-gold);
    background: rgba(255, 253, 248, 0.72);
    border-radius: 0 18px 18px 0;
    font-size: 1.12rem;
}

.cjh-entry-content .cjh-design-section,
.cjh-entry-content .cjh-breed-section {
    margin: 0;
    padding: 44px 0;
    border-top: 1px solid var(--cjh-line);
}

.cjh-entry-content h2 {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.cjh-entry-content h3 {
    font-size: 1.35rem;
}

.cjh-entry-content .cjh-design-hero,
.cjh-entry-content .cjh-section-image {
    margin: 0 0 28px;
    border-radius: var(--cjh-radius);
    overflow: hidden;
    background: var(--cjh-paper);
    box-shadow: var(--cjh-shadow);
}

.cjh-entry-content .cjh-design-hero img,
.cjh-entry-content .cjh-section-image img {
    display: block;
    width: 100%;
}

.cjh-entry-content figcaption {
    padding: 10px 14px;
    color: var(--cjh-muted);
    background: var(--cjh-paper);
    font-size: 0.78rem;
}

.cjh-entry-content .cjh-marketplace-cta,
.cjh-entry-content .cjh-judgment-box,
.cjh-entry-content .cjh-related-content {
    margin: 44px 0 0;
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--cjh-radius);
}

.cjh-entry-content .cjh-marketplace-cta {
    background: var(--cjh-ink);
    color: var(--cjh-cream);
    border: 1px solid var(--cjh-gold);
}

.cjh-entry-content .cjh-marketplace-cta h3 {
    margin-top: 0;
    color: var(--cjh-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.cjh-entry-content .cjh-marketplace-cta a:not(.cjh-zazzle-button) {
    color: #fff;
}

.cjh-entry-content .cjh-judgment-box {
    background: #F9E8E3;
    border: 2px solid var(--cjh-burgundy);
    box-shadow: 8px 8px 0 var(--cjh-gold);
}

.cjh-entry-content .cjh-judgment-box h2 {
    color: var(--cjh-burgundy);
}

.cjh-entry-content .cjh-related-content {
    background: var(--cjh-paper);
    border: 1px solid var(--cjh-line);
}

.cjh-entry-content .cjh-related-content h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.cjh-related-content-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 22px 0 0;
}

.cjh-related-content-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--cjh-line);
}

.cjh-related-content-item a {
    color: var(--cjh-ink);
    font-weight: 800;
    text-decoration: none;
}

.cjh-related-content-type {
    color: var(--cjh-rust);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cjh-archive-head {
    max-width: 760px;
    margin: 0 0 38px;
}

.cjh-archive-description {
    margin-top: 16px;
    color: var(--cjh-muted);
}

.cjh-pagination {
    margin-top: 42px;
}

.cjh-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.cjh-pagination .current,
.cjh-pagination .page-numbers:hover,
.cjh-pagination .page-numbers:focus-visible {
    background: var(--cjh-rust);
    color: #fff;
}

.cjh-empty {
    padding: 28px;
    border-radius: var(--cjh-radius);
    background: var(--cjh-paper);
    border: 1px solid var(--cjh-line);
}

.cjh-site-footer {
    margin-top: 60px;
    background: var(--cjh-ink);
    color: #D8CBB7;
    border-top: 4px solid var(--cjh-gold);
}

.cjh-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding-block: 36px;
}

.cjh-footer-brand {
    color: var(--cjh-cream);
    font-weight: 900;
}

.cjh-footer-note {
    margin: 5px 0 0;
    font-size: 0.82rem;
}

.cjh-footer-nav a {
    color: var(--cjh-cream);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 800;
}

.cjh-footer-nav a:hover,
.cjh-footer-nav a:focus-visible {
    color: var(--cjh-gold);
}

@media (max-width: 900px) {
    .cjh-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cjh-primary-nav ul {
        flex-wrap: wrap;
    }

    .cjh-home-hero-inner {
        grid-template-columns: 1fr;
    }

    .cjh-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cjh-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 17px;
    }

    .cjh-header-inner,
    .cjh-footer-inner,
    .cjh-wide,
    .cjh-home-section,
    .cjh-home-hero-inner,
    .cjh-page-shell {
        width: min(calc(100% - 28px), var(--cjh-wide));
    }

    .cjh-brand img {
        width: 52px;
        height: 52px;
    }

    .cjh-primary-nav a {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .cjh-card-grid {
        grid-template-columns: 1fr;
    }

    .cjh-footer-inner {
        grid-template-columns: 1fr;
    }

    .cjh-footer-nav ul {
        flex-wrap: wrap;
    }

    .cjh-related-content-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* CJH_POST_SIDEBAR_WIDGETS_V1_0_2 */
.cjh-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(280px, 340px);
    gap: clamp(34px, 5vw, 64px);
    align-items: start;
}

.cjh-single-layout .cjh-article {
    width: 100%;
    margin-inline: 0;
}

.cjh-post-sidebar {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.cjh-widget {
    padding: 22px;
    background: var(--cjh-paper);
    border: 1px solid var(--cjh-line);
    border-radius: 18px;
    box-shadow: var(--cjh-shadow);
}

.cjh-widget-title {
    margin: 0 0 16px;
    color: var(--cjh-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.15;
}

.cjh-sidebar-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.cjh-sidebar-search input[type="search"],
.cjh-widget .search-field {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--cjh-ink);
    background: #fff;
    border: 1px solid rgba(23, 23, 23, 0.22);
    border-radius: 10px;
}

.cjh-sidebar-search button,
.cjh-widget .search-submit {
    min-height: 44px;
    padding: 9px 14px;
    color: #fff;
    background: var(--cjh-rust);
    border: 0;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
}

.cjh-sidebar-search button:hover,
.cjh-sidebar-search button:focus-visible,
.cjh-widget .search-submit:hover,
.cjh-widget .search-submit:focus-visible {
    background: var(--cjh-burgundy);
}

.cjh-post-details {
    margin: 0;
}

.cjh-post-details > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--cjh-line);
}

.cjh-post-details > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.cjh-post-details dt {
    color: var(--cjh-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cjh-post-details dd {
    margin: 0;
    color: var(--cjh-ink);
    font-size: 0.88rem;
    font-weight: 800;
}

.cjh-detail-group {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--cjh-line);
}

.cjh-detail-group h3 {
    margin: 0 0 10px;
    color: var(--cjh-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cjh-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cjh-detail-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    color: var(--cjh-ink);
    background: #F7EEDC;
    border: 1px solid rgba(196, 101, 53, 0.26);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.cjh-detail-chip:hover,
.cjh-detail-chip:focus-visible {
    color: #fff;
    background: var(--cjh-rust);
}

@media (min-width: 901px) {
    .cjh-post-sidebar {
        position: sticky;
        top: 34px;
    }

    body.admin-bar .cjh-post-sidebar {
        top: 66px;
    }
}

@media (max-width: 900px) {
    .cjh-single-layout {
        grid-template-columns: 1fr;
    }

    .cjh-post-sidebar {
        width: min(100%, var(--cjh-content));
        margin-inline: auto;
    }
}

@media (max-width: 520px) {
    .cjh-sidebar-search {
        grid-template-columns: 1fr;
    }
}
