/* Purpose: Single blog post (Figma 84:564) — dark hero, prose article column, share bar,
   author box, "More Buyer's Guides" related grid. Sidebar deferred. Mobile-first. */

.single { background: #fafaf6; }

/* ---------- Hero ---------- */
.single-hero {
    position: relative;
    background: var(--color-primary);
    color: var(--color-on-navy);
    overflow: hidden;
}
.single-hero__bg { position: absolute; inset: 0; z-index: 0; }
.single-hero__img { width: 100%; height: 100%; object-fit: cover; }
.single-hero__bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--color-primary) 0%, rgba(11, 30, 56, 0.55) 100%);
}
.single-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.single-hero__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    font-size: 12px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.single-hero__crumb a { color: rgba(255, 255, 255, 0.45); text-decoration: none; }
.single-hero__crumb a:hover { color: rgba(255, 255, 255, 0.8); }
.single-hero__crumb-sep { color: rgba(255, 255, 255, 0.25); letter-spacing: 0; }
.single-hero__crumb-current {
    color: var(--color-gold-light);
    font-weight: var(--weight-medium);
    letter-spacing: 0;
    text-transform: none;
    max-width: 100%;
}

.single-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline: 8px;
    font-family: var(--font-eyebrow);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-gold);
}
.single-hero__eyebrow-rule { width: 44px; height: 1px; background: var(--color-gold); }

.single-hero__title {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: clamp(38px, 7vw, 84px);
    line-height: 1.08;
    color: var(--color-on-navy);
    max-width: 1133px;
}

.single-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    font-size: 12px;
    color: var(--color-on-navy);
}
.single-hero__author { display: inline-flex; align-items: center; gap: 10px; }
.single-hero__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: var(--weight-medium);
    font-size: 14px;
}
.single-hero__author-name { color: var(--color-gold); font-weight: var(--weight-medium); }
.single-hero__meta-item { position: relative; }
.single-hero__meta-em { color: var(--color-gold); font-weight: var(--weight-medium); }
.single-hero__meta-item--gold { color: var(--color-gold); font-weight: var(--weight-medium); }
.single-hero__meta-plain { color: var(--color-on-navy); font-weight: var(--weight-light); }

/* ---------- Layout ---------- */
.single-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 48px;
}
.single-article { max-width: 827px; }

/* ---------- Sidebar ---------- */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sb-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: #fff;
}
.sb-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e7e8eb;
}
.sb-card__rule { width: 18px; height: 1px; background: var(--color-gold); }
.sb-card__title {
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-gold);
}
.sb-item { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; }
.sb-item__media { flex-shrink: 0; width: 72px; height: 72px; overflow: hidden; background: #fafaf6; }
.sb-item__img { width: 100%; height: 100%; object-fit: cover; }
.sb-item__img--placeholder { display: block; background: #f0eee7; }
.sb-item__body { display: flex; flex-direction: column; gap: 4px; }
.sb-item__cat {
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    font-size: 12px;
    line-height: 20px;
    text-transform: uppercase;
    color: var(--color-gold);
}
.sb-item__title {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 14px;
    line-height: 22px;
    color: var(--color-primary);
}
.sb-item:hover .sb-item__title { color: var(--color-gold); }

.sb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-tag {
    padding: 4px 8px;
    background: #fafaf6;
    border: 1px solid #e2e4e3;
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    font-size: 12px;
    line-height: 16px;
    color: #7a7870;
    text-decoration: none;
}
.sb-tag:hover { border-color: var(--color-gold); color: var(--color-primary); }

/* ---------- Article prose ---------- */
.article-body { display: flex; flex-direction: column; gap: 20px; }
.article-body > *:first-child { margin-top: 0; }

.article-body p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: 16px;
    line-height: 24px;
    color: #7a7870;
    margin: 0;
}
.article-body p strong { font-weight: var(--weight-medium); color: var(--color-primary); }
.article-body a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--color-primary); }

.article-body h2 {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 32px;
    line-height: 40px;
    color: var(--color-primary);
    text-transform: capitalize;
    margin: 12px 0 0;
}
.article-body h2 strong { font-weight: inherit; }

.article-body h3 {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 20px;
    line-height: 24px;
    color: var(--color-primary);
    margin: 8px 0 0;
}
.article-body h3 strong { font-weight: inherit; }

.article-body ul,
.article-body ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.article-body li {
    position: relative;
    padding-left: 32px;
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: 16px;
    line-height: 24px;
    color: #7a7870;
}
.article-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.6;
}
.article-body li strong { font-weight: var(--weight-medium); color: var(--color-primary); }

.article-body img,
.article-body .wp-block-image { max-width: 100%; height: auto; display: block; }
.article-body figure { margin: 0; }
.article-body figcaption {
    font-family: var(--font-body);
    font-size: 12px;
    color: #7a7870;
    margin-top: 8px;
}

.article-body blockquote {
    margin: 4px 0;
    padding: 24px;
    border-left: 1px solid var(--color-gold);
    background: #fff;
}
.article-body blockquote p {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: var(--weight-light);
    font-size: 24px;
    line-height: 32px;
    color: var(--color-primary);
}
.article-body blockquote cite {
    display: block;
    margin-top: 8px;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 12px;
    color: var(--color-gold);
}

/* ---------- Share bar ---------- */
.single-share {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding: 24px 0;
    border-top: 1px solid #e2e4e3;
    border-bottom: 1px solid #e2e4e3;
}
.single-share__label {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 14px;
    text-transform: uppercase;
    color: #7a7870;
}
.single-share__links { display: flex; align-items: center; gap: 12px; }
.single-share__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: #fff;
    border: 1px solid rgba(11, 30, 56, 0.1);
    color: var(--color-primary);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.single-share__btn:hover { background: var(--color-primary); color: #fff; }

/* ---------- Author box ---------- */
.author-box {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border-left: 1px solid var(--color-gold);
}
.author-box__avatar {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-gold-light);
    font-family: var(--font-display);
    font-size: 28px;
}
.author-box__body { display: flex; flex-direction: column; gap: 8px; }
.author-box__name {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 24px;
    line-height: 32px;
    color: var(--color-primary);
    margin: 0;
}
.author-box__role {
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0;
}
.author-box__bio {
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text);
    margin: 6px 0 0;
}

/* ---------- Keep Reading ---------- */
.keep-reading { background: #fff; padding: 64px 0 80px; }
.keep-reading__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    margin-bottom: 32px;
}
.keep-reading__eyebrow {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-eyebrow);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0;
}
.keep-reading__rule { width: 44px; height: 1px; background: var(--color-gold); opacity: 0.5; }
.keep-reading__title {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.18;
    color: var(--color-primary);
    margin: 0;
}
.keep-reading__title .about-accent { color: var(--color-gold); }

.keep-reading__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.rel-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e7e8eb; }
.rel-card__media { display: block; height: 300px; overflow: hidden; background: #fafaf6; }
.rel-card__img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}
.rel-card__img--placeholder { display: block; background: linear-gradient(135deg, #16305a, #0b1e38); }
.rel-card:hover .rel-card__img { transform: scale(1.04); }
.rel-card__body {
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
    padding: 16px;
    border-top: 1px solid #e7e8eb;
}
.rel-card__meta {
    display: flex; gap: 8px;
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    font-size: 12px;
    text-transform: uppercase;
}
.rel-card__cat { color: var(--color-gold); }
.rel-card__date { color: #7a7870; }
.rel-card__title {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 18px;
    line-height: 26px;
    color: var(--color-primary);
    margin: 0;
}
.rel-card__title a { color: inherit; text-decoration: none; }
.rel-card__title a:hover { color: var(--color-gold); }
.rel-card__excerpt {
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    font-size: 12px;
    line-height: 20px;
    color: #7a7870;
    margin: 0;
}
.rel-card__cta {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 12px;
    padding: 12px 0;
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gold);
    transition: color var(--duration-base) var(--ease-out);
}
.rel-card__cta:hover,
.rel-card:hover .rel-card__cta { color: var(--color-gold); }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 768px) {
    .single-hero__inner { padding-top: 72px; padding-bottom: 72px; }
    .article-body { gap: 24px; }
    .keep-reading__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .single-hero__inner { padding-top: 120px; padding-bottom: 100px; gap: 20px; }
    .single-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 48px;
        align-items: start;
        padding-top: 64px;
        padding-bottom: 64px;
    }
    .single-article { max-width: 827px; }
}
