/* single.css — Classic Editorial Blog Post Template */
/* Monk of Colne — uses CSS variables defined in main.css */

/* ---------- BREADCRUMB ---------- */
.svc-breadcrumb {
    width: 100%;
    background: var(--light-color);
    border-bottom: 1px solid rgba(148, 117, 85, 0.2);
    box-sizing: border-box;
}
.svc-breadcrumb-inner {
    width: 100%;
    max-width: var(--svc-max);
    margin-inline: auto;
    padding: 14px clamp(16px, 4vw, 40px);
    box-sizing: border-box;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}
.svc-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.svc-breadcrumb a:hover { color: rgb(57, 37, 17); }
.svc-breadcrumb-sep { opacity: 0.5; flex-shrink: 0; }
.svc-breadcrumb-current {
    color: rgb(92, 60, 27);
    font-weight: 600;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────
   PAGE-LEVEL OVERRIDES  (mirrors template-empty.css pattern)
───────────────────────────────────────────────── */

/* Give the fixed navbar a solid background on blog posts */
/* single.css is only enqueued on is_single() pages, so plain selectors are safe */
#logo-overlay {
    display: none;
}

.navbar {
    background-color: var(--primary-color);
}

/* Override body centering so blog-single fills full width */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: start;
    background-color: var(--light-color);
}

/* ─────────────────────────────────────────────────
   LAYOUT WRAPPER
───────────────────────────────────────────────── */
.blog-single {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: var(--cream-color);
    background-clip: content-box;
    padding-top: 100px; /* clear fixed navbar (mobile) */
}

@media (min-width: 768px) {
    .blog-single {
        padding-top: 140px; /* clear fixed navbar (desktop) */
    }
}

/* ─────────────────────────────────────────────────
   BACK LINK
───────────────────────────────────────────────── */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Calibri, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    text-decoration: none;
    padding: 16px 48px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.blog-back-link:hover {
    color: rgb(92, 60, 27);
    gap: 10px;
}

.blog-back-link__arrow {
    font-size: 15px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.blog-back-link:hover .blog-back-link__arrow {
    transform: translateX(-4px);
}

/* ─────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────── */
.blog-hero {
    position: relative;
    height: 400px;
    background-color: var(--primary-color); /* fallback when no featured image */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* gradient overlay via pseudo-element so the image isn't obscured at top */
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: color-mix(in srgb, var(--accent-color) 65%, transparent);
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0.30) 45%,
        rgba(0, 0, 0, 0.68) 100%
    );
    z-index: 0;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px 48px;
    animation: blog-hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes blog-hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Category pill + read time */
.blog-hero__meta-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.blog-hero__tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-family: Calibri, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    line-height: 1.4;
}

.blog-hero__readtime {
    font-family: Calibri, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

/* Title */
.blog-hero__title {
    font-family: Calibri, sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.38);
    max-width: 840px;
    margin: 0;
}

/* Excerpt / subtitle */
.blog-hero__sub {
    font-family: Calibri, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
    max-width: 640px;
    margin: 12px 0 0;
}

/* ─────────────────────────────────────────────────
   META ROW  (author · date · location)
───────────────────────────────────────────────── */
.blog-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 10px;
    padding: 18px 48px;
    font-family: Calibri, sans-serif;
    font-size: 14px;
    color: rgb(92, 60, 27);
    border-bottom: 1px solid var(--light-color);
    background-color: var(--cream-color);
}

.blog-meta-row__dot {
    opacity: 0.3;
    font-size: 20px;
    line-height: 1;
}

.blog-meta-row__author strong {
    font-weight: 700;
}

/* ─────────────────────────────────────────────────
   SHARE + ARTICLE  GRID
───────────────────────────────────────────────── */
.blog-share-wrap {
    display: grid;
    grid-template-columns: 64px 1fr;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 48px 48px;
    gap: 0 28px;
    align-items: start;
}

/* ─────────────────────────────────────────────────
   VERTICAL SHARE RAIL
───────────────────────────────────────────────── */
.blog-share-rail {
    grid-column: 1;
}

.blog-share-rail__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 44px;
}

.blog-share-floating {
    position: sticky;
    top: 160px;
    align-self: flex-start;
}

.blog-share-rail__label {
    font-family: Calibri, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 2px;
}

.blog-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-family: Calibri, sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.15s ease,
        border-color 0.18s ease;
    line-height: 1;
    padding: 0;
}

.blog-share-btn:hover,
.blog-share-btn--copied {
    background-color: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
}

/* ─────────────────────────────────────────────────
   ARTICLE BODY
───────────────────────────────────────────────── */
.blog-article-body {
    grid-column: 2;
    padding: 42px 0 48px;
    font-family: Calibri, sans-serif;
    font-size: 16.5px;
    line-height: 1.76;
    color: rgb(92, 60, 27);
    max-width: 720px;
}

/* Paragraphs */
.blog-article-body p {
    margin-bottom: 1.35em;
}

/* Headings */
.blog-article-body h2 {
    font-family: Calibri, sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 2.2em 0 0.65em;
    letter-spacing: 0.15px;
    line-height: 1.3;
}

.blog-article-body h3 {
    font-family: Calibri, sans-serif;
    font-size: 18.5px;
    font-weight: 700;
    color: rgb(92, 60, 27);
    margin: 1.8em 0 0.5em;
    line-height: 1.3;
}

/* Blockquotes — native + WP block */
.blog-article-body blockquote,
.blog-article-body .wp-block-quote {
    border: none;
    border-left: 4px solid var(--accent-color);
    margin: 2em 0;
    padding: 10px 0 10px 26px;
    font-style: italic;
    color: var(--accent-color);
    font-size: 18.5px;
    line-height: 1.55;
}

.blog-article-body .wp-block-quote p {
    margin-bottom: 0.3em;
}

.blog-article-body .wp-block-quote p:last-child,
.blog-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.blog-article-body cite,
.blog-article-body .wp-block-quote cite {
    display: block;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.65;
    margin-top: 10px;
}

/* Figures & images (WordPress block + native) */
.blog-article-body figure,
.blog-article-body .wp-block-image {
    margin: 1.8em 0;
}

.blog-article-body figure img,
.blog-article-body .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-article-body figcaption,
.blog-article-body .wp-block-image figcaption {
    font-size: 12.5px;
    color: #a08060;
    text-align: center;
    font-style: italic;
    margin-top: 9px;
    line-height: 1.45;
}

/* Lists */
.blog-article-body ul,
.blog-article-body ol {
    margin-bottom: 1.35em;
    padding-left: 1.6em;
}

.blog-article-body li {
    margin-bottom: 0.45em;
}

/* Horizontal rule */
.blog-article-body hr {
    border: none;
    border-top: 1.5px solid var(--light-color);
    margin: 2.5em 0;
}

/* ─────────────────────────────────────────────────
   INLINE CTA CARD  (placed inside article body by editor)
───────────────────────────────────────────────── */
.blog-cta-inline {
    display: flex;
    align-items: center;
    gap: 28px;
    background-color: var(--light-color);
    border-left: 5px solid var(--accent-color);
    padding: 28px 32px;
    margin: 2.2em 0;
    text-decoration: none;
}

.blog-cta-inline__text {
    flex: 1;
}

.blog-cta-inline__heading {
    font-family: Calibri, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 6px;
    line-height: 1.25;
}

.blog-cta-inline__body {
    font-family: Calibri, sans-serif;
    font-size: 14.5px;
    color: rgb(92, 60, 27);
    margin: 0;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────
   CTA BUTTON  (for inline CTA cards in article body)
───────────────────────────────────────────────── */
.blog-cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-family: Calibri, sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 13px 26px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    line-height: 1.4;
}

.blog-cta-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* ─────────────────────────────────────────────────
   MOBILE  ( ≤ 767px )
───────────────────────────────────────────────── */
@media (max-width: 767px) {

    .blog-back-link {
        padding: 14px 20px;
    }

    .blog-hero {
        height: 260px;
    }

    .blog-hero__overlay {
        padding: 22px 20px;
    }

    .blog-hero__title {
        font-size: 26px;
    }

    .blog-hero__sub {
        font-size: 15px;
        margin-top: 8px;
    }

    .blog-meta-row {
        padding: 14px 20px;
        font-size: 13px;
        gap: 0 8px;
    }

    /* Switch from grid to block — share rail goes above article */
    .blog-share-wrap {
        display: block;
        padding: 0 20px;
    }

    .blog-share-rail {
        border-bottom: 1px solid var(--light-color);
    }

    .blog-share-rail__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 14px 0;
    }

    .blog-share-floating {
        position: static;
        top: auto;
    }

    .blog-share-rail__label {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 0;
        margin-right: 2px;
    }

    .blog-article-body {
        padding: 26px 0 40px;
        font-size: 16px;
        max-width: 100%;
    }

    .blog-article-body h2 {
        font-size: 20px;
    }

    .blog-article-body blockquote,
    .blog-article-body .wp-block-quote {
        font-size: 17px;
        padding-left: 18px;
    }

    .blog-cta-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px 20px;
    }

    .blog-cta-btn {
        width: 100%;
        text-align: center;
    }

}
