/* ==========================================================================
   FARMHOUSE PET SUPPLY - THE JOURNAL (EDITORIAL ARTICLES)
   ========================================================================== */

/* --------------------------------------------------------------------------
   General Typography & Prose container overrides
   -------------------------------------------------------------------------- */
.prose-container {
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-charcoal, #1C1917);
}

.prose-container p {
    margin-bottom: 1.75em;
}

.prose-container h2 {
    font-family: var(--font-display, 'Lora', serif);
    font-size: 2rem;
    margin-top: 1.75em;
    margin-bottom: 1em;
    color: var(--color-charcoal, #1C1917);
    font-weight: 600;
}

.prose-container h3 {
    font-family: var(--font-display, 'Lora', serif);
    font-size: 1.5rem;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.prose-container a {
    color: var(--color-forest, #2D5530);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.prose-container a:hover {
    color: var(--color-brand-amber, #D4A373);
}

/* Drop Cap Support */
p.is-style-fps-dropcap::first-letter {
    font-family: var(--font-display, 'Lora', serif);
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 0.15rem;
    padding-right: 0.5rem;
    padding-left: 0.1rem;
    color: var(--color-forest, #2D5530);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   SINGLE ARTICLE HERO
   -------------------------------------------------------------------------- */
.article-hero {
    padding: var(--space-12, 5rem) 0 var(--space-8, 3rem);
    background: var(--color-cream, #FAF9F6);
    text-align: center;
}

.article-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.article-hero__title {
    font-family: var(--font-display, 'Lora', serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-charcoal, #1C1917);
    margin: 1rem 0;
}

.article-hero__subtext {
    font-size: 1.25rem;
    color: var(--color-muted, #78716C);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-hero__meta {
    font-size: 0.875rem;
    color: var(--color-muted, #78716C);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.article-hero__author {
    font-weight: 600;
    color: var(--color-forest, #2D5530);
}

/* --------------------------------------------------------------------------
   FEATURED IMAGE
   -------------------------------------------------------------------------- */
.article-featured-image {
    padding: 0 0 2.5rem;
    background: var(--color-cream, #FAF9F6);
}

.article-featured-image__frame {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 12px;
}

.article-featured-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   FLEXIBLE BLOCKS
   -------------------------------------------------------------------------- */
.article-content {
    background: white;
    padding-bottom: 3rem;
}

.article-block {
    padding: 1.25rem 0;
}

/* Block: Full Image */
.article-block--full-image {
    padding: 1.25rem 0;
}

.article-image-figure {
    margin: 0;
    padding: 0;
}

.article-image-figure__img {
    width: 100%;
    height: auto;
}

.article-image-figure__caption {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-muted, #78716C);
    font-family: var(--font-body, 'Inter', sans-serif);
}

/* Block: Pull Quote */
.article-block--pull-quote {
    padding: 1.75rem 0;
}

.editorial-pull-quote {
    margin: 0;
    padding: 2rem 0;
    border-top: 2px solid var(--color-forest, #2D5530);
    border-bottom: 2px solid var(--color-forest, #2D5530);
    text-align: center;
}

.editorial-pull-quote__text {
    font-family: var(--font-display, 'Lora', serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-forest, #2D5530);
    line-height: 1.4;
    margin-bottom: 1rem !important;
}

.editorial-pull-quote__author {
    font-size: 0.875rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted, #78716C);
}

/* Block: Two Column */
.editorial-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .editorial-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Block: Technical Spec Box */
.editorial-tech-box {
    background: var(--color-cream, #FAF9F6);
    border: 1px solid rgba(45, 85, 48, 0.15);
    border-radius: 8px;
    padding: 2.5rem;
}

.editorial-tech-box__title {
    font-family: var(--font-display, 'Lora', serif);
    font-size: 1.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
}

.editorial-tech-box__list {
    margin: 0;
}

.editorial-tech-box__row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.editorial-tech-box__row:last-child {
    border-bottom: none;
}

.editorial-tech-box__row dt {
    font-weight: 600;
    color: var(--color-forest, #2D5530);
}

.editorial-tech-box__row dd {
    margin: 0;
    color: var(--color-charcoal, #1C1917);
    text-align: right;
}

/* --------------------------------------------------------------------------
   ARTICLE FOOTER
   -------------------------------------------------------------------------- */
.article-footer {
    padding-top: var(--space-10, 4rem);
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: var(--space-8, 3rem);
}

.article-footer .prose-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-footer__signature p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted, #78716C);
    margin-bottom: 0.25rem !important;
}

.article-footer__signature h3 {
    font-family: var(--font-display, 'Lora', serif);
    font-size: 1.5rem !important;
    margin: 0 !important;
    color: var(--color-forest, #2D5530) !important;
}

@media (max-width: 600px) {
    .article-footer .prose-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   ARCHIVE (JOURNAL HOME)
   -------------------------------------------------------------------------- */
.journal-header {
    background: var(--color-cream, #FAF9F6);
    padding: var(--space-12, 5rem) 0 var(--space-6, 2rem);
    text-align: center;
}

.journal-header__title {
    font-family: var(--font-display, 'Lora', serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 0.5rem;
}

.journal-header__subtitle {
    font-size: 1.25rem;
    color: var(--color-muted, #78716C);
}

/* Cover Story */
.journal-cover {
    background: var(--color-cream, #FAF9F6);
    padding-bottom: var(--space-10, 4rem);
}

.journal-cover__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.journal-cover__article {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 21/9;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .journal-cover__article {
        aspect-ratio: 1/1;
    }
}

.journal-cover__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.journal-cover__link:hover .journal-cover__img {
    transform: scale(1.03);
    opacity: 0.8;
}

.journal-cover__content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    width: 100%;
    color: white;
}

.journal-cover__title {
    font-family: var(--font-display, 'Lora', serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: white;
    margin: 0.5rem 0 1rem;
    max-width: 800px;
}

.journal-cover__excerpt {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.journal-cover__read-more {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-brand-amber, #D4A373);
}

/* Grid */
.journal-grid-section {
    padding: var(--space-10, 4rem) 0;
    background: white;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .journal-grid {
        grid-template-columns: 1fr;
    }
}

.journal-card {
    transition: transform 0.3s ease;
}

.journal-card:hover {
    transform: translateY(-5px);
}

.journal-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.journal-card__image-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    background: var(--color-cream, #FAF9F6);
}

.journal-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.journal-card:hover .journal-card__img {
    transform: scale(1.05);
}

.journal-card__tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-amber, #D4A373);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.journal-card__title {
    font-family: var(--font-display, 'Lora', serif);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.journal-card__date {
    font-size: 0.875rem;
    color: var(--color-muted, #78716C);
    margin-top: auto;
}

.journal-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.journal-pagination a,
.journal-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-cream, #FAF9F6);
    color: var(--color-charcoal, #1C1917);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.journal-pagination a:hover {
    background: var(--color-forest, #2D5530);
    color: white;
}

.journal-pagination .current {
    background: var(--color-forest, #2D5530);
    color: white;
}

/* Gutenberg Block Alignment Overrides */
.article-blocks-wrapper > * {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.article-blocks-wrapper > .alignwide {
    max-width: 1000px;
}

.article-blocks-wrapper > .alignfull {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}



/* ============================================================
   Editorial content tables (Quick Reference / size guides)
   Mobile-friendly: real table on desktop, stacked cards on phones.
   ============================================================ */
.prose-container table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.95rem; }
.prose-container th,
.prose-container td { padding: 0.75rem 0.9rem; border: 1px solid #d8d2c8; text-align: left; vertical-align: top; line-height: 1.45; }
.prose-container thead th { background: #2d2a26; color: #ffffff; font-weight: 600; letter-spacing: 0.01em; }
.prose-container tbody tr:nth-child(even) { background: #faf7f1; }
.prose-container td a { font-weight: 600; }

@media (max-width: 600px) {
    .prose-container table { border: 0; font-size: 1rem; }
    .prose-container thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .prose-container tbody tr { display: block; margin: 0 0 1.1rem; border: 1px solid #d8d2c8; border-radius: 10px; overflow: hidden; background: #ffffff; }
    .prose-container tbody tr:nth-child(even) { background: #ffffff; }
    .prose-container td { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; border: 0; border-bottom: 1px solid #ece7dd; padding: 0.7rem 0.95rem; text-align: right; }
    .prose-container td:last-child { border-bottom: 0; }
    .prose-container td::before { content: attr(data-label); font-weight: 600; color: #6b6357; text-align: left; flex: 0 0 auto; }
}

/* Tighter article vertical rhythm — normalize block edges + scope editorial bands to articles */
.prose-container > :first-child { margin-top: 0; }
.prose-container > :last-child { margin-bottom: 0; }
.article-content .editorial-wrap { padding-top: 2rem; padding-bottom: 2.5rem; }
.article-content .editorial-problem__inner { padding: 2.5rem 0; }
.article-content .editorial-solution { padding: 2.5rem 1.5rem; }


/* Mobile cover (archive): stack image above text so the full photo shows (no over-crop/dimming) */
@media (max-width: 768px) {
    .journal-cover__article { display: block; aspect-ratio: auto; min-height: 0; background: transparent; overflow: visible; }
    .journal-cover__image { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
    .journal-cover__img { position: relative; opacity: 1; }
    .journal-cover__content { position: relative; z-index: 2; background: none; color: inherit; padding: 1.1rem 0 0; }
    .journal-cover__title { color: #2D2A26; }
    .journal-cover__excerpt { color: #6b6357; }
}


/* Author E-E-A-T bio box */
.article-author-box { display:flex; gap:1.5rem; align-items:flex-start; padding:1.75rem; margin-top:2rem; background:var(--color-cream,#FAF9F6); border:1px solid #e7e0d4; border-radius:14px; }
.article-author-box__photo { flex:0 0 auto; }
.article-author-box__photo img { width:96px; height:96px; border-radius:50%; object-fit:cover; display:block; }
.article-author-box__name { margin:.35rem 0 0; font-size:1.4rem; }
.article-author-box__role { margin:.15rem 0 .6rem; color:var(--color-muted,#78716C); font-size:.95rem; }
.article-author-box__bio { margin:0; line-height:1.6; }
.article-author-box__links { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; margin-top:1rem; }
.article-author-box__more { font-weight:600; }
@media (max-width:600px){ .article-author-box{ flex-direction:column; align-items:center; text-align:center; } .article-author-box__links{ justify-content:center; } }
